1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for sane-backends 1.0.32.
4#
5# Report bugs to <sane-devel@alioth-lists.debian.net>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: sane-devel@alioth-lists.debian.net about your system,
279$0: including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='sane-backends'
592PACKAGE_TARNAME='sane-backends'
593PACKAGE_VERSION='1.0.32'
594PACKAGE_STRING='sane-backends 1.0.32'
595PACKAGE_BUGREPORT='sane-devel@alioth-lists.debian.net'
596PACKAGE_URL=''
597
598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
601#ifdef HAVE_SYS_TYPES_H
602# include <sys/types.h>
603#endif
604#ifdef HAVE_SYS_STAT_H
605# include <sys/stat.h>
606#endif
607#ifdef STDC_HEADERS
608# include <stdlib.h>
609# include <stddef.h>
610#else
611# ifdef HAVE_STDLIB_H
612#  include <stdlib.h>
613# endif
614#endif
615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617#  include <memory.h>
618# endif
619# include <string.h>
620#endif
621#ifdef HAVE_STRINGS_H
622# include <strings.h>
623#endif
624#ifdef HAVE_INTTYPES_H
625# include <inttypes.h>
626#endif
627#ifdef HAVE_STDINT_H
628# include <stdint.h>
629#endif
630#ifdef HAVE_UNISTD_H
631# include <unistd.h>
632#endif"
633
634gt_needs=
635ac_config_libobj_dir=lib
636ac_header_list=
637ac_subst_vars='am__EXEEXT_FALSE
638am__EXEEXT_TRUE
639LTLIBOBJS
640AM_LDFLAGS
641AM_CXXFLAGS
642AM_CFLAGS
643AM_CPPFLAGS
644BACKEND_MANS_ENABLED
645BACKEND_CONFS_ENABLED
646PRELOADABLE_BACKENDS_ENABLED
647preloadable_backends_enabled_FALSE
648preloadable_backends_enabled_TRUE
649PRELOADABLE_BACKENDS
650INSTALL_UMAX_PP_TOOLS_FALSE
651INSTALL_UMAX_PP_TOOLS_TRUE
652WITH_GENESYS_TESTS_FALSE
653WITH_GENESYS_TESTS_TRUE
654BACKEND_LIBS_ENABLED
655SANEI_SANEI_JPEG_LO
656HAVE_JPEG_FALSE
657HAVE_JPEG_TRUE
658BACKENDS
659COMPILE_SANED_FALSE
660COMPILE_SANED_TRUE
661configdir
662locksanedir
663SCSI_LIBS
664have_libxml2_FALSE
665have_libxml2_TRUE
666XML_LIBS
667XML_CFLAGS
668have_poppler_glib_FALSE
669have_poppler_glib_TRUE
670POPPLER_GLIB_LIBS
671POPPLER_GLIB_CFLAGS
672have_libcurl_FALSE
673have_libcurl_TRUE
674libcurl_LIBS
675libcurl_CFLAGS
676have_usblib_FALSE
677have_usblib_TRUE
678USB_LIBS
679USB_CFLAGS
680SYSTEMD_LIBS
681SYSTEMD_CFLAGS
682SOCKET_LIBS
683LTALLOCA
684LIBOBJS
685ALLOCA
686RESMGR_LIBS
687SNMP_CFLAGS
688SNMP_LIBS
689SNMP_CONFIG_PATH
690have_libavahi_FALSE
691have_libavahi_TRUE
692AVAHI_LIBS
693AVAHI_CFLAGS
694LIBV4L_LIBS
695LIBV4L_CFLAGS
696GPHOTO2_LDFLAGS
697GPHOTO2_LIBS
698GPHOTO2_CPPFLAGS
699HAVE_GPHOTO2
700LOCKPATH_GROUP
701INSTALL_LOCKPATH
702SANEI_THREAD_LIBS
703PTHREAD_LIBS
704IEEE1284_LIBS
705PNG_LIBS
706TIFF_LIBS
707JPEG_LIBS
708SYSLOG_LIBS
709MATH_LIB
710DYNAMIC_FLAG
711DL_LIBS
712effective_target
713STRICT_LDFLAGS
714HAVE_CXX11
715CROSS_COMPILING_FALSE
716CROSS_COMPILING_TRUE
717PKG_CONFIG_LIBDIR
718PKG_CONFIG_PATH
719PKG_CONFIG
720SANE_CONFIG_PATH
721POSUB
722LTLIBINTL
723LIBINTL
724INTLLIBS
725LTLIBICONV
726LIBICONV
727INTL_MACOSX_LIBS
728XGETTEXT_EXTRA_OPTIONS
729MSGMERGE
730XGETTEXT_015
731XGETTEXT
732GMSGFMT_015
733MSGFMT_015
734GMSGFMT
735MSGFMT
736GETTEXT_MACRO_VERSION
737USE_NLS
738CXXCPP
739LT_SYS_LIBRARY_PATH
740OTOOL64
741OTOOL
742LIPO
743NMEDIT
744DSYMUTIL
745MANIFEST_TOOL
746RANLIB
747LN_S
748NM
749ac_ct_DUMPBIN
750DUMPBIN
751LD
752FGREP
753SED
754host_os
755host_vendor
756host_cpu
757host
758build_os
759build_vendor
760build_cpu
761build
762LIBTOOL
763OBJDUMP
764DLLTOOL
765AS
766ac_ct_AR
767AR
768EGREP
769GREP
770CPP
771pkgpyexecdir
772pyexecdir
773pkgpythondir
774pythondir
775PYTHON_PLATFORM
776PYTHON_EXEC_PREFIX
777PYTHON_PREFIX
778PYTHON_VERSION
779PYTHON
780am__fastdepCXX_FALSE
781am__fastdepCXX_TRUE
782CXXDEPMODE
783ac_ct_CXX
784CXXFLAGS
785CXX
786am__fastdepCC_FALSE
787am__fastdepCC_TRUE
788CCDEPMODE
789am__nodep
790AMDEPBACKSLASH
791AMDEP_FALSE
792AMDEP_TRUE
793am__include
794DEPDIR
795OBJEXT
796EXEEXT
797ac_ct_CC
798CPPFLAGS
799LDFLAGS
800CFLAGS
801CC
802V_REV
803V_MINOR
804V_MAJOR
805AM_BACKSLASH
806AM_DEFAULT_VERBOSITY
807AM_DEFAULT_V
808AM_V
809am__untar
810am__tar
811AMTAR
812am__leading_dot
813SET_MAKE
814AWK
815mkdir_p
816MKDIR_P
817INSTALL_STRIP_PROGRAM
818STRIP
819install_sh
820MAKEINFO
821AUTOHEADER
822AUTOMAKE
823AUTOCONF
824ACLOCAL
825VERSION
826PACKAGE
827CYGPATH_W
828am__isrc
829INSTALL_DATA
830INSTALL_SCRIPT
831INSTALL_PROGRAM
832target_alias
833host_alias
834build_alias
835LIBS
836ECHO_T
837ECHO_N
838ECHO_C
839DEFS
840mandir
841localedir
842libdir
843psdir
844pdfdir
845dvidir
846htmldir
847infodir
848docdir
849oldincludedir
850includedir
851runstatedir
852localstatedir
853sharedstatedir
854sysconfdir
855datadir
856datarootdir
857libexecdir
858sbindir
859bindir
860program_transform_name
861prefix
862exec_prefix
863PACKAGE_URL
864PACKAGE_BUGREPORT
865PACKAGE_STRING
866PACKAGE_VERSION
867PACKAGE_TARNAME
868PACKAGE_NAME
869PATH_SEPARATOR
870SHELL
871am__quote'
872ac_subst_files=''
873ac_user_opts='
874enable_option_checking
875enable_silent_rules
876enable_dependency_tracking
877enable_static
878enable_shared
879with_pic
880enable_fast_install
881with_aix_soname
882with_gnu_ld
883with_sysroot
884enable_libtool_lock
885enable_nls
886enable_rpath
887with_libiconv_prefix
888with_libintl_prefix
889enable_warnings
890enable_dynamic
891enable_pthread
892enable_locking
893with_group
894with_gphoto2
895with_v4l
896with_avahi
897with_snmp
898with_systemd
899with_usb
900with_libcurl
901with_poppler_glib
902with_usb_record_replay
903enable_scsibuffersize
904enable_scsi_directio
905enable_ipv6
906enable_preload
907with_lockdir
908enable_local_backends
909enable_pnm_backend
910enable_parport_directio
911'
912      ac_precious_vars='build_alias
913host_alias
914target_alias
915CC
916CFLAGS
917LDFLAGS
918LIBS
919CPPFLAGS
920CXX
921CXXFLAGS
922CCC
923PYTHON
924CPP
925LT_SYS_LIBRARY_PATH
926CXXCPP
927PKG_CONFIG
928PKG_CONFIG_PATH
929PKG_CONFIG_LIBDIR
930LIBV4L_CFLAGS
931LIBV4L_LIBS
932AVAHI_CFLAGS
933AVAHI_LIBS
934SYSTEMD_CFLAGS
935SYSTEMD_LIBS
936USB_CFLAGS
937USB_LIBS
938libcurl_CFLAGS
939libcurl_LIBS
940POPPLER_GLIB_CFLAGS
941POPPLER_GLIB_LIBS
942XML_CFLAGS
943XML_LIBS
944BACKENDS
945PRELOADABLE_BACKENDS'
946
947
948# Initialize some variables set by options.
949ac_init_help=
950ac_init_version=false
951ac_unrecognized_opts=
952ac_unrecognized_sep=
953# The variables have the same names as the options, with
954# dashes changed to underlines.
955cache_file=/dev/null
956exec_prefix=NONE
957no_create=
958no_recursion=
959prefix=NONE
960program_prefix=NONE
961program_suffix=NONE
962program_transform_name=s,x,x,
963silent=
964site=
965srcdir=
966verbose=
967x_includes=NONE
968x_libraries=NONE
969
970# Installation directory options.
971# These are left unexpanded so users can "make install exec_prefix=/foo"
972# and all the variables that are supposed to be based on exec_prefix
973# by default will actually change.
974# Use braces instead of parens because sh, perl, etc. also accept them.
975# (The list follows the same order as the GNU Coding Standards.)
976bindir='${exec_prefix}/bin'
977sbindir='${exec_prefix}/sbin'
978libexecdir='${exec_prefix}/libexec'
979datarootdir='${prefix}/share'
980datadir='${datarootdir}'
981sysconfdir='${prefix}/etc'
982sharedstatedir='${prefix}/com'
983localstatedir='${prefix}/var'
984runstatedir='${localstatedir}/run'
985includedir='${prefix}/include'
986oldincludedir='/usr/include'
987docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
988infodir='${datarootdir}/info'
989htmldir='${docdir}'
990dvidir='${docdir}'
991pdfdir='${docdir}'
992psdir='${docdir}'
993libdir='${exec_prefix}/lib'
994localedir='${datarootdir}/locale'
995mandir='${datarootdir}/man'
996
997ac_prev=
998ac_dashdash=
999for ac_option
1000do
1001  # If the previous option needs an argument, assign it.
1002  if test -n "$ac_prev"; then
1003    eval $ac_prev=\$ac_option
1004    ac_prev=
1005    continue
1006  fi
1007
1008  case $ac_option in
1009  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1010  *=)   ac_optarg= ;;
1011  *)    ac_optarg=yes ;;
1012  esac
1013
1014  # Accept the important Cygnus configure options, so we can diagnose typos.
1015
1016  case $ac_dashdash$ac_option in
1017  --)
1018    ac_dashdash=yes ;;
1019
1020  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1021    ac_prev=bindir ;;
1022  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1023    bindir=$ac_optarg ;;
1024
1025  -build | --build | --buil | --bui | --bu)
1026    ac_prev=build_alias ;;
1027  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1028    build_alias=$ac_optarg ;;
1029
1030  -cache-file | --cache-file | --cache-fil | --cache-fi \
1031  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1032    ac_prev=cache_file ;;
1033  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1034  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1035    cache_file=$ac_optarg ;;
1036
1037  --config-cache | -C)
1038    cache_file=config.cache ;;
1039
1040  -datadir | --datadir | --datadi | --datad)
1041    ac_prev=datadir ;;
1042  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1043    datadir=$ac_optarg ;;
1044
1045  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1046  | --dataroo | --dataro | --datar)
1047    ac_prev=datarootdir ;;
1048  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1049  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1050    datarootdir=$ac_optarg ;;
1051
1052  -disable-* | --disable-*)
1053    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1054    # Reject names that are not valid shell variable names.
1055    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056      as_fn_error $? "invalid feature name: $ac_useropt"
1057    ac_useropt_orig=$ac_useropt
1058    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059    case $ac_user_opts in
1060      *"
1061"enable_$ac_useropt"
1062"*) ;;
1063      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1064	 ac_unrecognized_sep=', ';;
1065    esac
1066    eval enable_$ac_useropt=no ;;
1067
1068  -docdir | --docdir | --docdi | --doc | --do)
1069    ac_prev=docdir ;;
1070  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1071    docdir=$ac_optarg ;;
1072
1073  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1074    ac_prev=dvidir ;;
1075  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1076    dvidir=$ac_optarg ;;
1077
1078  -enable-* | --enable-*)
1079    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1080    # Reject names that are not valid shell variable names.
1081    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082      as_fn_error $? "invalid feature name: $ac_useropt"
1083    ac_useropt_orig=$ac_useropt
1084    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085    case $ac_user_opts in
1086      *"
1087"enable_$ac_useropt"
1088"*) ;;
1089      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1090	 ac_unrecognized_sep=', ';;
1091    esac
1092    eval enable_$ac_useropt=\$ac_optarg ;;
1093
1094  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1095  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1096  | --exec | --exe | --ex)
1097    ac_prev=exec_prefix ;;
1098  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1099  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1100  | --exec=* | --exe=* | --ex=*)
1101    exec_prefix=$ac_optarg ;;
1102
1103  -gas | --gas | --ga | --g)
1104    # Obsolete; use --with-gas.
1105    with_gas=yes ;;
1106
1107  -help | --help | --hel | --he | -h)
1108    ac_init_help=long ;;
1109  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1110    ac_init_help=recursive ;;
1111  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1112    ac_init_help=short ;;
1113
1114  -host | --host | --hos | --ho)
1115    ac_prev=host_alias ;;
1116  -host=* | --host=* | --hos=* | --ho=*)
1117    host_alias=$ac_optarg ;;
1118
1119  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1120    ac_prev=htmldir ;;
1121  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1122  | --ht=*)
1123    htmldir=$ac_optarg ;;
1124
1125  -includedir | --includedir | --includedi | --included | --include \
1126  | --includ | --inclu | --incl | --inc)
1127    ac_prev=includedir ;;
1128  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1129  | --includ=* | --inclu=* | --incl=* | --inc=*)
1130    includedir=$ac_optarg ;;
1131
1132  -infodir | --infodir | --infodi | --infod | --info | --inf)
1133    ac_prev=infodir ;;
1134  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1135    infodir=$ac_optarg ;;
1136
1137  -libdir | --libdir | --libdi | --libd)
1138    ac_prev=libdir ;;
1139  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1140    libdir=$ac_optarg ;;
1141
1142  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1143  | --libexe | --libex | --libe)
1144    ac_prev=libexecdir ;;
1145  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1146  | --libexe=* | --libex=* | --libe=*)
1147    libexecdir=$ac_optarg ;;
1148
1149  -localedir | --localedir | --localedi | --localed | --locale)
1150    ac_prev=localedir ;;
1151  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1152    localedir=$ac_optarg ;;
1153
1154  -localstatedir | --localstatedir | --localstatedi | --localstated \
1155  | --localstate | --localstat | --localsta | --localst | --locals)
1156    ac_prev=localstatedir ;;
1157  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1158  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1159    localstatedir=$ac_optarg ;;
1160
1161  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1162    ac_prev=mandir ;;
1163  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1164    mandir=$ac_optarg ;;
1165
1166  -nfp | --nfp | --nf)
1167    # Obsolete; use --without-fp.
1168    with_fp=no ;;
1169
1170  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1171  | --no-cr | --no-c | -n)
1172    no_create=yes ;;
1173
1174  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1175  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1176    no_recursion=yes ;;
1177
1178  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1179  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1180  | --oldin | --oldi | --old | --ol | --o)
1181    ac_prev=oldincludedir ;;
1182  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1183  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1184  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1185    oldincludedir=$ac_optarg ;;
1186
1187  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1188    ac_prev=prefix ;;
1189  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1190    prefix=$ac_optarg ;;
1191
1192  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1193  | --program-pre | --program-pr | --program-p)
1194    ac_prev=program_prefix ;;
1195  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1196  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1197    program_prefix=$ac_optarg ;;
1198
1199  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1200  | --program-suf | --program-su | --program-s)
1201    ac_prev=program_suffix ;;
1202  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1203  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1204    program_suffix=$ac_optarg ;;
1205
1206  -program-transform-name | --program-transform-name \
1207  | --program-transform-nam | --program-transform-na \
1208  | --program-transform-n | --program-transform- \
1209  | --program-transform | --program-transfor \
1210  | --program-transfo | --program-transf \
1211  | --program-trans | --program-tran \
1212  | --progr-tra | --program-tr | --program-t)
1213    ac_prev=program_transform_name ;;
1214  -program-transform-name=* | --program-transform-name=* \
1215  | --program-transform-nam=* | --program-transform-na=* \
1216  | --program-transform-n=* | --program-transform-=* \
1217  | --program-transform=* | --program-transfor=* \
1218  | --program-transfo=* | --program-transf=* \
1219  | --program-trans=* | --program-tran=* \
1220  | --progr-tra=* | --program-tr=* | --program-t=*)
1221    program_transform_name=$ac_optarg ;;
1222
1223  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1224    ac_prev=pdfdir ;;
1225  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1226    pdfdir=$ac_optarg ;;
1227
1228  -psdir | --psdir | --psdi | --psd | --ps)
1229    ac_prev=psdir ;;
1230  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1231    psdir=$ac_optarg ;;
1232
1233  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1234  | -silent | --silent | --silen | --sile | --sil)
1235    silent=yes ;;
1236
1237  -runstatedir | --runstatedir | --runstatedi | --runstated \
1238  | --runstate | --runstat | --runsta | --runst | --runs \
1239  | --run | --ru | --r)
1240    ac_prev=runstatedir ;;
1241  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1242  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1243  | --run=* | --ru=* | --r=*)
1244    runstatedir=$ac_optarg ;;
1245
1246  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1247    ac_prev=sbindir ;;
1248  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1249  | --sbi=* | --sb=*)
1250    sbindir=$ac_optarg ;;
1251
1252  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1253  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1254  | --sharedst | --shareds | --shared | --share | --shar \
1255  | --sha | --sh)
1256    ac_prev=sharedstatedir ;;
1257  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1258  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1259  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1260  | --sha=* | --sh=*)
1261    sharedstatedir=$ac_optarg ;;
1262
1263  -site | --site | --sit)
1264    ac_prev=site ;;
1265  -site=* | --site=* | --sit=*)
1266    site=$ac_optarg ;;
1267
1268  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1269    ac_prev=srcdir ;;
1270  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1271    srcdir=$ac_optarg ;;
1272
1273  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1274  | --syscon | --sysco | --sysc | --sys | --sy)
1275    ac_prev=sysconfdir ;;
1276  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1277  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1278    sysconfdir=$ac_optarg ;;
1279
1280  -target | --target | --targe | --targ | --tar | --ta | --t)
1281    ac_prev=target_alias ;;
1282  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1283    target_alias=$ac_optarg ;;
1284
1285  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1286    verbose=yes ;;
1287
1288  -version | --version | --versio | --versi | --vers | -V)
1289    ac_init_version=: ;;
1290
1291  -with-* | --with-*)
1292    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1293    # Reject names that are not valid shell variable names.
1294    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1295      as_fn_error $? "invalid package name: $ac_useropt"
1296    ac_useropt_orig=$ac_useropt
1297    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298    case $ac_user_opts in
1299      *"
1300"with_$ac_useropt"
1301"*) ;;
1302      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1303	 ac_unrecognized_sep=', ';;
1304    esac
1305    eval with_$ac_useropt=\$ac_optarg ;;
1306
1307  -without-* | --without-*)
1308    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1309    # Reject names that are not valid shell variable names.
1310    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1311      as_fn_error $? "invalid package name: $ac_useropt"
1312    ac_useropt_orig=$ac_useropt
1313    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1314    case $ac_user_opts in
1315      *"
1316"with_$ac_useropt"
1317"*) ;;
1318      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1319	 ac_unrecognized_sep=', ';;
1320    esac
1321    eval with_$ac_useropt=no ;;
1322
1323  --x)
1324    # Obsolete; use --with-x.
1325    with_x=yes ;;
1326
1327  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1328  | --x-incl | --x-inc | --x-in | --x-i)
1329    ac_prev=x_includes ;;
1330  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1331  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1332    x_includes=$ac_optarg ;;
1333
1334  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1335  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1336    ac_prev=x_libraries ;;
1337  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1338  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1339    x_libraries=$ac_optarg ;;
1340
1341  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1342Try \`$0 --help' for more information"
1343    ;;
1344
1345  *=*)
1346    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1347    # Reject names that are not valid shell variable names.
1348    case $ac_envvar in #(
1349      '' | [0-9]* | *[!_$as_cr_alnum]* )
1350      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1351    esac
1352    eval $ac_envvar=\$ac_optarg
1353    export $ac_envvar ;;
1354
1355  *)
1356    # FIXME: should be removed in autoconf 3.0.
1357    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1358    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1359      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1360    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1361    ;;
1362
1363  esac
1364done
1365
1366if test -n "$ac_prev"; then
1367  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1368  as_fn_error $? "missing argument to $ac_option"
1369fi
1370
1371if test -n "$ac_unrecognized_opts"; then
1372  case $enable_option_checking in
1373    no) ;;
1374    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1375    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1376  esac
1377fi
1378
1379# Check all directory arguments for consistency.
1380for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1381		datadir sysconfdir sharedstatedir localstatedir includedir \
1382		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1383		libdir localedir mandir runstatedir
1384do
1385  eval ac_val=\$$ac_var
1386  # Remove trailing slashes.
1387  case $ac_val in
1388    */ )
1389      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1390      eval $ac_var=\$ac_val;;
1391  esac
1392  # Be sure to have absolute directory names.
1393  case $ac_val in
1394    [\\/$]* | ?:[\\/]* )  continue;;
1395    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1396  esac
1397  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1398done
1399
1400# There might be people who depend on the old broken behavior: `$host'
1401# used to hold the argument of --host etc.
1402# FIXME: To remove some day.
1403build=$build_alias
1404host=$host_alias
1405target=$target_alias
1406
1407# FIXME: To remove some day.
1408if test "x$host_alias" != x; then
1409  if test "x$build_alias" = x; then
1410    cross_compiling=maybe
1411  elif test "x$build_alias" != "x$host_alias"; then
1412    cross_compiling=yes
1413  fi
1414fi
1415
1416ac_tool_prefix=
1417test -n "$host_alias" && ac_tool_prefix=$host_alias-
1418
1419test "$silent" = yes && exec 6>/dev/null
1420
1421
1422ac_pwd=`pwd` && test -n "$ac_pwd" &&
1423ac_ls_di=`ls -di .` &&
1424ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1425  as_fn_error $? "working directory cannot be determined"
1426test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1427  as_fn_error $? "pwd does not report name of working directory"
1428
1429
1430# Find the source files, if location was not specified.
1431if test -z "$srcdir"; then
1432  ac_srcdir_defaulted=yes
1433  # Try the directory containing this script, then the parent directory.
1434  ac_confdir=`$as_dirname -- "$as_myself" ||
1435$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1436	 X"$as_myself" : 'X\(//\)[^/]' \| \
1437	 X"$as_myself" : 'X\(//\)$' \| \
1438	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1439$as_echo X"$as_myself" |
1440    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1441	    s//\1/
1442	    q
1443	  }
1444	  /^X\(\/\/\)[^/].*/{
1445	    s//\1/
1446	    q
1447	  }
1448	  /^X\(\/\/\)$/{
1449	    s//\1/
1450	    q
1451	  }
1452	  /^X\(\/\).*/{
1453	    s//\1/
1454	    q
1455	  }
1456	  s/.*/./; q'`
1457  srcdir=$ac_confdir
1458  if test ! -r "$srcdir/$ac_unique_file"; then
1459    srcdir=..
1460  fi
1461else
1462  ac_srcdir_defaulted=no
1463fi
1464if test ! -r "$srcdir/$ac_unique_file"; then
1465  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1466  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1467fi
1468ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1469ac_abs_confdir=`(
1470	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1471	pwd)`
1472# When building in place, set srcdir=.
1473if test "$ac_abs_confdir" = "$ac_pwd"; then
1474  srcdir=.
1475fi
1476# Remove unnecessary trailing slashes from srcdir.
1477# Double slashes in file names in object file debugging info
1478# mess up M-x gdb in Emacs.
1479case $srcdir in
1480*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1481esac
1482for ac_var in $ac_precious_vars; do
1483  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1484  eval ac_env_${ac_var}_value=\$${ac_var}
1485  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1486  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1487done
1488
1489#
1490# Report the --help message.
1491#
1492if test "$ac_init_help" = "long"; then
1493  # Omit some internal or obsolete options to make the list less imposing.
1494  # This message is too long to be a string in the A/UX 3.1 sh.
1495  cat <<_ACEOF
1496\`configure' configures sane-backends 1.0.32 to adapt to many kinds of systems.
1497
1498Usage: $0 [OPTION]... [VAR=VALUE]...
1499
1500To assign environment variables (e.g., CC, CFLAGS...), specify them as
1501VAR=VALUE.  See below for descriptions of some of the useful variables.
1502
1503Defaults for the options are specified in brackets.
1504
1505Configuration:
1506  -h, --help              display this help and exit
1507      --help=short        display options specific to this package
1508      --help=recursive    display the short help of all the included packages
1509  -V, --version           display version information and exit
1510  -q, --quiet, --silent   do not print \`checking ...' messages
1511      --cache-file=FILE   cache test results in FILE [disabled]
1512  -C, --config-cache      alias for \`--cache-file=config.cache'
1513  -n, --no-create         do not create output files
1514      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1515
1516Installation directories:
1517  --prefix=PREFIX         install architecture-independent files in PREFIX
1518                          [$ac_default_prefix]
1519  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1520                          [PREFIX]
1521
1522By default, \`make install' will install all the files in
1523\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1524an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1525for instance \`--prefix=\$HOME'.
1526
1527For better control, use the options below.
1528
1529Fine tuning of the installation directories:
1530  --bindir=DIR            user executables [EPREFIX/bin]
1531  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1532  --libexecdir=DIR        program executables [EPREFIX/libexec]
1533  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1534  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1535  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1536  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1537  --libdir=DIR            object code libraries [EPREFIX/lib]
1538  --includedir=DIR        C header files [PREFIX/include]
1539  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1540  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1541  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1542  --infodir=DIR           info documentation [DATAROOTDIR/info]
1543  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1544  --mandir=DIR            man documentation [DATAROOTDIR/man]
1545  --docdir=DIR            documentation root [DATAROOTDIR/doc/sane-backends]
1546  --htmldir=DIR           html documentation [DOCDIR]
1547  --dvidir=DIR            dvi documentation [DOCDIR]
1548  --pdfdir=DIR            pdf documentation [DOCDIR]
1549  --psdir=DIR             ps documentation [DOCDIR]
1550_ACEOF
1551
1552  cat <<\_ACEOF
1553
1554Program names:
1555  --program-prefix=PREFIX            prepend PREFIX to installed program names
1556  --program-suffix=SUFFIX            append SUFFIX to installed program names
1557  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1558
1559System types:
1560  --build=BUILD     configure for building on BUILD [guessed]
1561  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1562_ACEOF
1563fi
1564
1565if test -n "$ac_init_help"; then
1566  case $ac_init_help in
1567     short | recursive ) echo "Configuration of sane-backends 1.0.32:";;
1568   esac
1569  cat <<\_ACEOF
1570
1571Optional Features:
1572  --disable-option-checking  ignore unrecognized --enable/--with options
1573  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1574  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1575  --enable-silent-rules   less verbose build output (undo: "make V=1")
1576  --disable-silent-rules  verbose build output (undo: "make V=0")
1577  --enable-dependency-tracking
1578                          do not reject slow dependency extractors
1579  --disable-dependency-tracking
1580                          speeds up one-time build
1581  --enable-static[=PKGS]  build static libraries [default=no]
1582  --enable-shared[=PKGS]  build shared libraries [default=yes]
1583  --enable-fast-install[=PKGS]
1584                          optimize for fast installation [default=yes]
1585  --disable-libtool-lock  avoid locking (might break parallel builds)
1586  --disable-nls           do not use Native Language Support
1587  --disable-rpath         do not hardcode runtime library paths
1588  --enable-warnings       turn on tons of compiler warnings (GCC only)
1589  --disable-dynamic       Disable dynamic loading of backends
1590  --enable-pthread        use pthread instead of fork (default=yes for
1591                          Linux/MacOS X/MINGW, no for everything else)
1592  --enable-locking        activate device locking (default=yes, but only used
1593                          by some backends)
1594  --enable-scsibuffersize=N
1595                          specify the default size in bytes of the buffer for
1596                          SCSI commands [default=131072]
1597  --enable-scsi-directio  enable SCSI direct IO (Linux only, dangerous, see
1598                          README.linux)
1599  --disable-ipv6          disable IPv6 support
1600  --disable-preload       Disable preloading of backends
1601  --disable-local-backends
1602                          turn off compilation of all backends but net
1603  --enable-pnm-backend    enable the pnm backend for testing frontends
1604                          (possible security risk, see PROBLEMS file)
1605  --enable-parport-directio
1606                          enable direct hardware access to the parallel port,
1607                          so frontends will require special permission level
1608
1609Optional Packages:
1610  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1611  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1612  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1613                          both]
1614  --with-aix-soname=aix|svr4|both
1615                          shared library versioning (aka "SONAME") variant to
1616                          provide on AIX, [default=aix].
1617  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1618  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1619                          compiler's sysroot if not specified).
1620  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1621  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1622  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1623  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1624  --without-libintl-prefix     don't search for libintl in includedir and libdir
1625  --with-group            use the specified group for lock dir [default=uucp]
1626  --with-gphoto2          include the gphoto2 backend [default=yes]
1627  --with-v4l              include the v4l backend [default=yes]
1628  --with-avahi            enable Avahi support [default=check]
1629  --with-snmp             enable SNMP support [default=yes]
1630  --with-systemd          enable systemd support [default=yes]
1631  --with-usb              enable USB support [default=check]
1632  --with-libcurl          enable functionality that needs libcurl
1633                          [default=check]
1634  --with-poppler-glib     enable functionality that needs poppler-glib
1635                          [default=check]
1636  --with-usb-record-replay
1637                          enable USB record and replay to XML files
1638                          [default=yes]
1639  --with-lockdir=DIR      set SANE lockdir [localstatedir/lock]
1640
1641Some influential environment variables:
1642  CC          C compiler command
1643  CFLAGS      C compiler flags
1644  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1645              nonstandard directory <lib dir>
1646  LIBS        libraries to pass to the linker, e.g. -l<library>
1647  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1648              you have headers in a nonstandard directory <include dir>
1649  CXX         C++ compiler command
1650  CXXFLAGS    C++ compiler flags
1651  PYTHON      the Python interpreter
1652  CPP         C preprocessor
1653  LT_SYS_LIBRARY_PATH
1654              User-defined run-time library search path.
1655  CXXCPP      C++ preprocessor
1656  PKG_CONFIG  path to pkg-config utility
1657  PKG_CONFIG_PATH
1658              directories to add to pkg-config's search path
1659  PKG_CONFIG_LIBDIR
1660              path overriding pkg-config's built-in search path
1661  LIBV4L_CFLAGS
1662              C compiler flags for LIBV4L, overriding pkg-config
1663  LIBV4L_LIBS linker flags for LIBV4L, overriding pkg-config
1664  AVAHI_CFLAGS
1665              C compiler flags for AVAHI, overriding pkg-config
1666  AVAHI_LIBS  linker flags for AVAHI, overriding pkg-config
1667  SYSTEMD_CFLAGS
1668              C compiler flags for SYSTEMD, overriding pkg-config
1669  SYSTEMD_LIBS
1670              linker flags for SYSTEMD, overriding pkg-config
1671  USB_CFLAGS  C compiler flags for USB, overriding pkg-config
1672  USB_LIBS    linker flags for USB, overriding pkg-config
1673  libcurl_CFLAGS
1674              C compiler flags for libcurl, overriding pkg-config
1675  libcurl_LIBS
1676              linker flags for libcurl, overriding pkg-config
1677  POPPLER_GLIB_CFLAGS
1678              C compiler flags for POPPLER_GLIB, overriding pkg-config
1679  POPPLER_GLIB_LIBS
1680              linker flags for POPPLER_GLIB, overriding pkg-config
1681  XML_CFLAGS  C compiler flags for XML, overriding pkg-config
1682  XML_LIBS    linker flags for XML, overriding pkg-config
1683  BACKENDS    list of backends to compile
1684  PRELOADABLE_BACKENDS
1685              list of backends to preload into single DLL
1686
1687Use these variables to override the choices made by `configure' or to help
1688it to find libraries and programs with nonstandard names/locations.
1689
1690Report bugs to <sane-devel@alioth-lists.debian.net>.
1691_ACEOF
1692ac_status=$?
1693fi
1694
1695if test "$ac_init_help" = "recursive"; then
1696  # If there are subdirs, report their specific --help.
1697  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1698    test -d "$ac_dir" ||
1699      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1700      continue
1701    ac_builddir=.
1702
1703case "$ac_dir" in
1704.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1705*)
1706  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1707  # A ".." for each directory in $ac_dir_suffix.
1708  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1709  case $ac_top_builddir_sub in
1710  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1711  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1712  esac ;;
1713esac
1714ac_abs_top_builddir=$ac_pwd
1715ac_abs_builddir=$ac_pwd$ac_dir_suffix
1716# for backward compatibility:
1717ac_top_builddir=$ac_top_build_prefix
1718
1719case $srcdir in
1720  .)  # We are building in place.
1721    ac_srcdir=.
1722    ac_top_srcdir=$ac_top_builddir_sub
1723    ac_abs_top_srcdir=$ac_pwd ;;
1724  [\\/]* | ?:[\\/]* )  # Absolute name.
1725    ac_srcdir=$srcdir$ac_dir_suffix;
1726    ac_top_srcdir=$srcdir
1727    ac_abs_top_srcdir=$srcdir ;;
1728  *) # Relative name.
1729    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1730    ac_top_srcdir=$ac_top_build_prefix$srcdir
1731    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1732esac
1733ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1734
1735    cd "$ac_dir" || { ac_status=$?; continue; }
1736    # Check for guested configure.
1737    if test -f "$ac_srcdir/configure.gnu"; then
1738      echo &&
1739      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1740    elif test -f "$ac_srcdir/configure"; then
1741      echo &&
1742      $SHELL "$ac_srcdir/configure" --help=recursive
1743    else
1744      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1745    fi || ac_status=$?
1746    cd "$ac_pwd" || { ac_status=$?; break; }
1747  done
1748fi
1749
1750test -n "$ac_init_help" && exit $ac_status
1751if $ac_init_version; then
1752  cat <<\_ACEOF
1753sane-backends configure 1.0.32
1754generated by GNU Autoconf 2.69
1755
1756Copyright (C) 2012 Free Software Foundation, Inc.
1757This configure script is free software; the Free Software Foundation
1758gives unlimited permission to copy, distribute and modify it.
1759_ACEOF
1760  exit
1761fi
1762
1763## ------------------------ ##
1764## Autoconf initialization. ##
1765## ------------------------ ##
1766
1767# ac_fn_c_try_compile LINENO
1768# --------------------------
1769# Try to compile conftest.$ac_ext, and return whether this succeeded.
1770ac_fn_c_try_compile ()
1771{
1772  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773  rm -f conftest.$ac_objext
1774  if { { ac_try="$ac_compile"
1775case "(($ac_try" in
1776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777  *) ac_try_echo=$ac_try;;
1778esac
1779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780$as_echo "$ac_try_echo"; } >&5
1781  (eval "$ac_compile") 2>conftest.err
1782  ac_status=$?
1783  if test -s conftest.err; then
1784    grep -v '^ *+' conftest.err >conftest.er1
1785    cat conftest.er1 >&5
1786    mv -f conftest.er1 conftest.err
1787  fi
1788  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789  test $ac_status = 0; } && {
1790	 test -z "$ac_c_werror_flag" ||
1791	 test ! -s conftest.err
1792       } && test -s conftest.$ac_objext; then :
1793  ac_retval=0
1794else
1795  $as_echo "$as_me: failed program was:" >&5
1796sed 's/^/| /' conftest.$ac_ext >&5
1797
1798	ac_retval=1
1799fi
1800  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801  as_fn_set_status $ac_retval
1802
1803} # ac_fn_c_try_compile
1804
1805# ac_fn_cxx_try_compile LINENO
1806# ----------------------------
1807# Try to compile conftest.$ac_ext, and return whether this succeeded.
1808ac_fn_cxx_try_compile ()
1809{
1810  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811  rm -f conftest.$ac_objext
1812  if { { ac_try="$ac_compile"
1813case "(($ac_try" in
1814  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1815  *) ac_try_echo=$ac_try;;
1816esac
1817eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818$as_echo "$ac_try_echo"; } >&5
1819  (eval "$ac_compile") 2>conftest.err
1820  ac_status=$?
1821  if test -s conftest.err; then
1822    grep -v '^ *+' conftest.err >conftest.er1
1823    cat conftest.er1 >&5
1824    mv -f conftest.er1 conftest.err
1825  fi
1826  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1827  test $ac_status = 0; } && {
1828	 test -z "$ac_cxx_werror_flag" ||
1829	 test ! -s conftest.err
1830       } && test -s conftest.$ac_objext; then :
1831  ac_retval=0
1832else
1833  $as_echo "$as_me: failed program was:" >&5
1834sed 's/^/| /' conftest.$ac_ext >&5
1835
1836	ac_retval=1
1837fi
1838  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839  as_fn_set_status $ac_retval
1840
1841} # ac_fn_cxx_try_compile
1842
1843# ac_fn_c_try_cpp LINENO
1844# ----------------------
1845# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1846ac_fn_c_try_cpp ()
1847{
1848  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849  if { { ac_try="$ac_cpp conftest.$ac_ext"
1850case "(($ac_try" in
1851  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1852  *) ac_try_echo=$ac_try;;
1853esac
1854eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1855$as_echo "$ac_try_echo"; } >&5
1856  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1857  ac_status=$?
1858  if test -s conftest.err; then
1859    grep -v '^ *+' conftest.err >conftest.er1
1860    cat conftest.er1 >&5
1861    mv -f conftest.er1 conftest.err
1862  fi
1863  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864  test $ac_status = 0; } > conftest.i && {
1865	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1866	 test ! -s conftest.err
1867       }; then :
1868  ac_retval=0
1869else
1870  $as_echo "$as_me: failed program was:" >&5
1871sed 's/^/| /' conftest.$ac_ext >&5
1872
1873    ac_retval=1
1874fi
1875  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876  as_fn_set_status $ac_retval
1877
1878} # ac_fn_c_try_cpp
1879
1880# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1881# -------------------------------------------------------
1882# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1883# the include files in INCLUDES and setting the cache variable VAR
1884# accordingly.
1885ac_fn_c_check_header_mongrel ()
1886{
1887  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888  if eval \${$3+:} false; then :
1889  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1890$as_echo_n "checking for $2... " >&6; }
1891if eval \${$3+:} false; then :
1892  $as_echo_n "(cached) " >&6
1893fi
1894eval ac_res=\$$3
1895	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896$as_echo "$ac_res" >&6; }
1897else
1898  # Is the header compilable?
1899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1900$as_echo_n "checking $2 usability... " >&6; }
1901cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902/* end confdefs.h.  */
1903$4
1904#include <$2>
1905_ACEOF
1906if ac_fn_c_try_compile "$LINENO"; then :
1907  ac_header_compiler=yes
1908else
1909  ac_header_compiler=no
1910fi
1911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1913$as_echo "$ac_header_compiler" >&6; }
1914
1915# Is the header present?
1916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1917$as_echo_n "checking $2 presence... " >&6; }
1918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919/* end confdefs.h.  */
1920#include <$2>
1921_ACEOF
1922if ac_fn_c_try_cpp "$LINENO"; then :
1923  ac_header_preproc=yes
1924else
1925  ac_header_preproc=no
1926fi
1927rm -f conftest.err conftest.i conftest.$ac_ext
1928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1929$as_echo "$ac_header_preproc" >&6; }
1930
1931# So?  What about this header?
1932case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1933  yes:no: )
1934    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1935$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1936    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1937$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1938    ;;
1939  no:yes:* )
1940    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1941$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1942    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1943$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1944    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1945$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1946    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1947$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1948    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1949$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1950( $as_echo "## ------------------------------------------------- ##
1951## Report this to sane-devel@alioth-lists.debian.net ##
1952## ------------------------------------------------- ##"
1953     ) | sed "s/^/$as_me: WARNING:     /" >&2
1954    ;;
1955esac
1956  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1957$as_echo_n "checking for $2... " >&6; }
1958if eval \${$3+:} false; then :
1959  $as_echo_n "(cached) " >&6
1960else
1961  eval "$3=\$ac_header_compiler"
1962fi
1963eval ac_res=\$$3
1964	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965$as_echo "$ac_res" >&6; }
1966fi
1967  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968
1969} # ac_fn_c_check_header_mongrel
1970
1971# ac_fn_c_try_run LINENO
1972# ----------------------
1973# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1974# that executables *can* be run.
1975ac_fn_c_try_run ()
1976{
1977  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1978  if { { ac_try="$ac_link"
1979case "(($ac_try" in
1980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1981  *) ac_try_echo=$ac_try;;
1982esac
1983eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1984$as_echo "$ac_try_echo"; } >&5
1985  (eval "$ac_link") 2>&5
1986  ac_status=$?
1987  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1988  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1989  { { case "(($ac_try" in
1990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1991  *) ac_try_echo=$ac_try;;
1992esac
1993eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1994$as_echo "$ac_try_echo"; } >&5
1995  (eval "$ac_try") 2>&5
1996  ac_status=$?
1997  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1998  test $ac_status = 0; }; }; then :
1999  ac_retval=0
2000else
2001  $as_echo "$as_me: program exited with status $ac_status" >&5
2002       $as_echo "$as_me: failed program was:" >&5
2003sed 's/^/| /' conftest.$ac_ext >&5
2004
2005       ac_retval=$ac_status
2006fi
2007  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2008  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2009  as_fn_set_status $ac_retval
2010
2011} # ac_fn_c_try_run
2012
2013# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2014# -------------------------------------------------------
2015# Tests whether HEADER exists and can be compiled using the include files in
2016# INCLUDES, setting the cache variable VAR accordingly.
2017ac_fn_c_check_header_compile ()
2018{
2019  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2021$as_echo_n "checking for $2... " >&6; }
2022if eval \${$3+:} false; then :
2023  $as_echo_n "(cached) " >&6
2024else
2025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026/* end confdefs.h.  */
2027$4
2028#include <$2>
2029_ACEOF
2030if ac_fn_c_try_compile "$LINENO"; then :
2031  eval "$3=yes"
2032else
2033  eval "$3=no"
2034fi
2035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036fi
2037eval ac_res=\$$3
2038	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2039$as_echo "$ac_res" >&6; }
2040  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041
2042} # ac_fn_c_check_header_compile
2043
2044# ac_fn_c_try_link LINENO
2045# -----------------------
2046# Try to link conftest.$ac_ext, and return whether this succeeded.
2047ac_fn_c_try_link ()
2048{
2049  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050  rm -f conftest.$ac_objext conftest$ac_exeext
2051  if { { ac_try="$ac_link"
2052case "(($ac_try" in
2053  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2054  *) ac_try_echo=$ac_try;;
2055esac
2056eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2057$as_echo "$ac_try_echo"; } >&5
2058  (eval "$ac_link") 2>conftest.err
2059  ac_status=$?
2060  if test -s conftest.err; then
2061    grep -v '^ *+' conftest.err >conftest.er1
2062    cat conftest.er1 >&5
2063    mv -f conftest.er1 conftest.err
2064  fi
2065  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2066  test $ac_status = 0; } && {
2067	 test -z "$ac_c_werror_flag" ||
2068	 test ! -s conftest.err
2069       } && test -s conftest$ac_exeext && {
2070	 test "$cross_compiling" = yes ||
2071	 test -x conftest$ac_exeext
2072       }; then :
2073  ac_retval=0
2074else
2075  $as_echo "$as_me: failed program was:" >&5
2076sed 's/^/| /' conftest.$ac_ext >&5
2077
2078	ac_retval=1
2079fi
2080  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2081  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2082  # interfere with the next link command; also delete a directory that is
2083  # left behind by Apple's compiler.  We do this before executing the actions.
2084  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2085  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2086  as_fn_set_status $ac_retval
2087
2088} # ac_fn_c_try_link
2089
2090# ac_fn_c_check_func LINENO FUNC VAR
2091# ----------------------------------
2092# Tests whether FUNC exists, setting the cache variable VAR accordingly
2093ac_fn_c_check_func ()
2094{
2095  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2096  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2097$as_echo_n "checking for $2... " >&6; }
2098if eval \${$3+:} false; then :
2099  $as_echo_n "(cached) " >&6
2100else
2101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102/* end confdefs.h.  */
2103/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2104   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2105#define $2 innocuous_$2
2106
2107/* System header to define __stub macros and hopefully few prototypes,
2108    which can conflict with char $2 (); below.
2109    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2110    <limits.h> exists even on freestanding compilers.  */
2111
2112#ifdef __STDC__
2113# include <limits.h>
2114#else
2115# include <assert.h>
2116#endif
2117
2118#undef $2
2119
2120/* Override any GCC internal prototype to avoid an error.
2121   Use char because int might match the return type of a GCC
2122   builtin and then its argument prototype would still apply.  */
2123#ifdef __cplusplus
2124extern "C"
2125#endif
2126char $2 ();
2127/* The GNU C library defines this for functions which it implements
2128    to always fail with ENOSYS.  Some functions are actually named
2129    something starting with __ and the normal name is an alias.  */
2130#if defined __stub_$2 || defined __stub___$2
2131choke me
2132#endif
2133
2134int
2135main ()
2136{
2137return $2 ();
2138  ;
2139  return 0;
2140}
2141_ACEOF
2142if ac_fn_c_try_link "$LINENO"; then :
2143  eval "$3=yes"
2144else
2145  eval "$3=no"
2146fi
2147rm -f core conftest.err conftest.$ac_objext \
2148    conftest$ac_exeext conftest.$ac_ext
2149fi
2150eval ac_res=\$$3
2151	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2152$as_echo "$ac_res" >&6; }
2153  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2154
2155} # ac_fn_c_check_func
2156
2157# ac_fn_cxx_try_cpp LINENO
2158# ------------------------
2159# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2160ac_fn_cxx_try_cpp ()
2161{
2162  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2163  if { { ac_try="$ac_cpp conftest.$ac_ext"
2164case "(($ac_try" in
2165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2166  *) ac_try_echo=$ac_try;;
2167esac
2168eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2169$as_echo "$ac_try_echo"; } >&5
2170  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2171  ac_status=$?
2172  if test -s conftest.err; then
2173    grep -v '^ *+' conftest.err >conftest.er1
2174    cat conftest.er1 >&5
2175    mv -f conftest.er1 conftest.err
2176  fi
2177  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2178  test $ac_status = 0; } > conftest.i && {
2179	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2180	 test ! -s conftest.err
2181       }; then :
2182  ac_retval=0
2183else
2184  $as_echo "$as_me: failed program was:" >&5
2185sed 's/^/| /' conftest.$ac_ext >&5
2186
2187    ac_retval=1
2188fi
2189  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2190  as_fn_set_status $ac_retval
2191
2192} # ac_fn_cxx_try_cpp
2193
2194# ac_fn_cxx_try_link LINENO
2195# -------------------------
2196# Try to link conftest.$ac_ext, and return whether this succeeded.
2197ac_fn_cxx_try_link ()
2198{
2199  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2200  rm -f conftest.$ac_objext conftest$ac_exeext
2201  if { { ac_try="$ac_link"
2202case "(($ac_try" in
2203  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2204  *) ac_try_echo=$ac_try;;
2205esac
2206eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2207$as_echo "$ac_try_echo"; } >&5
2208  (eval "$ac_link") 2>conftest.err
2209  ac_status=$?
2210  if test -s conftest.err; then
2211    grep -v '^ *+' conftest.err >conftest.er1
2212    cat conftest.er1 >&5
2213    mv -f conftest.er1 conftest.err
2214  fi
2215  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2216  test $ac_status = 0; } && {
2217	 test -z "$ac_cxx_werror_flag" ||
2218	 test ! -s conftest.err
2219       } && test -s conftest$ac_exeext && {
2220	 test "$cross_compiling" = yes ||
2221	 test -x conftest$ac_exeext
2222       }; then :
2223  ac_retval=0
2224else
2225  $as_echo "$as_me: failed program was:" >&5
2226sed 's/^/| /' conftest.$ac_ext >&5
2227
2228	ac_retval=1
2229fi
2230  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2231  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2232  # interfere with the next link command; also delete a directory that is
2233  # left behind by Apple's compiler.  We do this before executing the actions.
2234  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2235  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2236  as_fn_set_status $ac_retval
2237
2238} # ac_fn_cxx_try_link
2239
2240# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2241# -------------------------------------------
2242# Tests whether TYPE exists after having included INCLUDES, setting cache
2243# variable VAR accordingly.
2244ac_fn_c_check_type ()
2245{
2246  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2247  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2248$as_echo_n "checking for $2... " >&6; }
2249if eval \${$3+:} false; then :
2250  $as_echo_n "(cached) " >&6
2251else
2252  eval "$3=no"
2253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2254/* end confdefs.h.  */
2255$4
2256int
2257main ()
2258{
2259if (sizeof ($2))
2260	 return 0;
2261  ;
2262  return 0;
2263}
2264_ACEOF
2265if ac_fn_c_try_compile "$LINENO"; then :
2266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267/* end confdefs.h.  */
2268$4
2269int
2270main ()
2271{
2272if (sizeof (($2)))
2273	    return 0;
2274  ;
2275  return 0;
2276}
2277_ACEOF
2278if ac_fn_c_try_compile "$LINENO"; then :
2279
2280else
2281  eval "$3=yes"
2282fi
2283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2284fi
2285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2286fi
2287eval ac_res=\$$3
2288	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2289$as_echo "$ac_res" >&6; }
2290  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2291
2292} # ac_fn_c_check_type
2293
2294# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2295# --------------------------------------------
2296# Tries to find the compile-time value of EXPR in a program that includes
2297# INCLUDES, setting VAR accordingly. Returns whether the value could be
2298# computed
2299ac_fn_c_compute_int ()
2300{
2301  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2302  if test "$cross_compiling" = yes; then
2303    # Depending upon the size, compute the lo and hi bounds.
2304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305/* end confdefs.h.  */
2306$4
2307int
2308main ()
2309{
2310static int test_array [1 - 2 * !(($2) >= 0)];
2311test_array [0] = 0;
2312return test_array [0];
2313
2314  ;
2315  return 0;
2316}
2317_ACEOF
2318if ac_fn_c_try_compile "$LINENO"; then :
2319  ac_lo=0 ac_mid=0
2320  while :; do
2321    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2322/* end confdefs.h.  */
2323$4
2324int
2325main ()
2326{
2327static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2328test_array [0] = 0;
2329return test_array [0];
2330
2331  ;
2332  return 0;
2333}
2334_ACEOF
2335if ac_fn_c_try_compile "$LINENO"; then :
2336  ac_hi=$ac_mid; break
2337else
2338  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2339			if test $ac_lo -le $ac_mid; then
2340			  ac_lo= ac_hi=
2341			  break
2342			fi
2343			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2344fi
2345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2346  done
2347else
2348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2349/* end confdefs.h.  */
2350$4
2351int
2352main ()
2353{
2354static int test_array [1 - 2 * !(($2) < 0)];
2355test_array [0] = 0;
2356return test_array [0];
2357
2358  ;
2359  return 0;
2360}
2361_ACEOF
2362if ac_fn_c_try_compile "$LINENO"; then :
2363  ac_hi=-1 ac_mid=-1
2364  while :; do
2365    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2366/* end confdefs.h.  */
2367$4
2368int
2369main ()
2370{
2371static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2372test_array [0] = 0;
2373return test_array [0];
2374
2375  ;
2376  return 0;
2377}
2378_ACEOF
2379if ac_fn_c_try_compile "$LINENO"; then :
2380  ac_lo=$ac_mid; break
2381else
2382  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2383			if test $ac_mid -le $ac_hi; then
2384			  ac_lo= ac_hi=
2385			  break
2386			fi
2387			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2388fi
2389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2390  done
2391else
2392  ac_lo= ac_hi=
2393fi
2394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2395fi
2396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2397# Binary search between lo and hi bounds.
2398while test "x$ac_lo" != "x$ac_hi"; do
2399  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2401/* end confdefs.h.  */
2402$4
2403int
2404main ()
2405{
2406static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2407test_array [0] = 0;
2408return test_array [0];
2409
2410  ;
2411  return 0;
2412}
2413_ACEOF
2414if ac_fn_c_try_compile "$LINENO"; then :
2415  ac_hi=$ac_mid
2416else
2417  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2418fi
2419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2420done
2421case $ac_lo in #((
2422?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2423'') ac_retval=1 ;;
2424esac
2425  else
2426    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2427/* end confdefs.h.  */
2428$4
2429static long int longval () { return $2; }
2430static unsigned long int ulongval () { return $2; }
2431#include <stdio.h>
2432#include <stdlib.h>
2433int
2434main ()
2435{
2436
2437  FILE *f = fopen ("conftest.val", "w");
2438  if (! f)
2439    return 1;
2440  if (($2) < 0)
2441    {
2442      long int i = longval ();
2443      if (i != ($2))
2444	return 1;
2445      fprintf (f, "%ld", i);
2446    }
2447  else
2448    {
2449      unsigned long int i = ulongval ();
2450      if (i != ($2))
2451	return 1;
2452      fprintf (f, "%lu", i);
2453    }
2454  /* Do not output a trailing newline, as this causes \r\n confusion
2455     on some platforms.  */
2456  return ferror (f) || fclose (f) != 0;
2457
2458  ;
2459  return 0;
2460}
2461_ACEOF
2462if ac_fn_c_try_run "$LINENO"; then :
2463  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2464else
2465  ac_retval=1
2466fi
2467rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2468  conftest.$ac_objext conftest.beam conftest.$ac_ext
2469rm -f conftest.val
2470
2471  fi
2472  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2473  as_fn_set_status $ac_retval
2474
2475} # ac_fn_c_compute_int
2476cat >config.log <<_ACEOF
2477This file contains any messages produced by compilers while
2478running configure, to aid debugging if configure makes a mistake.
2479
2480It was created by sane-backends $as_me 1.0.32, which was
2481generated by GNU Autoconf 2.69.  Invocation command line was
2482
2483  $ $0 $@
2484
2485_ACEOF
2486exec 5>>config.log
2487{
2488cat <<_ASUNAME
2489## --------- ##
2490## Platform. ##
2491## --------- ##
2492
2493hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2494uname -m = `(uname -m) 2>/dev/null || echo unknown`
2495uname -r = `(uname -r) 2>/dev/null || echo unknown`
2496uname -s = `(uname -s) 2>/dev/null || echo unknown`
2497uname -v = `(uname -v) 2>/dev/null || echo unknown`
2498
2499/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2500/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2501
2502/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2503/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2504/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2505/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2506/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2507/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2508/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2509
2510_ASUNAME
2511
2512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513for as_dir in $PATH
2514do
2515  IFS=$as_save_IFS
2516  test -z "$as_dir" && as_dir=.
2517    $as_echo "PATH: $as_dir"
2518  done
2519IFS=$as_save_IFS
2520
2521} >&5
2522
2523cat >&5 <<_ACEOF
2524
2525
2526## ----------- ##
2527## Core tests. ##
2528## ----------- ##
2529
2530_ACEOF
2531
2532
2533# Keep a trace of the command line.
2534# Strip out --no-create and --no-recursion so they do not pile up.
2535# Strip out --silent because we don't want to record it for future runs.
2536# Also quote any args containing shell meta-characters.
2537# Make two passes to allow for proper duplicate-argument suppression.
2538ac_configure_args=
2539ac_configure_args0=
2540ac_configure_args1=
2541ac_must_keep_next=false
2542for ac_pass in 1 2
2543do
2544  for ac_arg
2545  do
2546    case $ac_arg in
2547    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2548    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2549    | -silent | --silent | --silen | --sile | --sil)
2550      continue ;;
2551    *\'*)
2552      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2553    esac
2554    case $ac_pass in
2555    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2556    2)
2557      as_fn_append ac_configure_args1 " '$ac_arg'"
2558      if test $ac_must_keep_next = true; then
2559	ac_must_keep_next=false # Got value, back to normal.
2560      else
2561	case $ac_arg in
2562	  *=* | --config-cache | -C | -disable-* | --disable-* \
2563	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2564	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2565	  | -with-* | --with-* | -without-* | --without-* | --x)
2566	    case "$ac_configure_args0 " in
2567	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2568	    esac
2569	    ;;
2570	  -* ) ac_must_keep_next=true ;;
2571	esac
2572      fi
2573      as_fn_append ac_configure_args " '$ac_arg'"
2574      ;;
2575    esac
2576  done
2577done
2578{ ac_configure_args0=; unset ac_configure_args0;}
2579{ ac_configure_args1=; unset ac_configure_args1;}
2580
2581# When interrupted or exit'd, cleanup temporary files, and complete
2582# config.log.  We remove comments because anyway the quotes in there
2583# would cause problems or look ugly.
2584# WARNING: Use '\'' to represent an apostrophe within the trap.
2585# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2586trap 'exit_status=$?
2587  # Save into config.log some information that might help in debugging.
2588  {
2589    echo
2590
2591    $as_echo "## ---------------- ##
2592## Cache variables. ##
2593## ---------------- ##"
2594    echo
2595    # The following way of writing the cache mishandles newlines in values,
2596(
2597  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2598    eval ac_val=\$$ac_var
2599    case $ac_val in #(
2600    *${as_nl}*)
2601      case $ac_var in #(
2602      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2603$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2604      esac
2605      case $ac_var in #(
2606      _ | IFS | as_nl) ;; #(
2607      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2608      *) { eval $ac_var=; unset $ac_var;} ;;
2609      esac ;;
2610    esac
2611  done
2612  (set) 2>&1 |
2613    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2614    *${as_nl}ac_space=\ *)
2615      sed -n \
2616	"s/'\''/'\''\\\\'\'''\''/g;
2617	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2618      ;; #(
2619    *)
2620      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2621      ;;
2622    esac |
2623    sort
2624)
2625    echo
2626
2627    $as_echo "## ----------------- ##
2628## Output variables. ##
2629## ----------------- ##"
2630    echo
2631    for ac_var in $ac_subst_vars
2632    do
2633      eval ac_val=\$$ac_var
2634      case $ac_val in
2635      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2636      esac
2637      $as_echo "$ac_var='\''$ac_val'\''"
2638    done | sort
2639    echo
2640
2641    if test -n "$ac_subst_files"; then
2642      $as_echo "## ------------------- ##
2643## File substitutions. ##
2644## ------------------- ##"
2645      echo
2646      for ac_var in $ac_subst_files
2647      do
2648	eval ac_val=\$$ac_var
2649	case $ac_val in
2650	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2651	esac
2652	$as_echo "$ac_var='\''$ac_val'\''"
2653      done | sort
2654      echo
2655    fi
2656
2657    if test -s confdefs.h; then
2658      $as_echo "## ----------- ##
2659## confdefs.h. ##
2660## ----------- ##"
2661      echo
2662      cat confdefs.h
2663      echo
2664    fi
2665    test "$ac_signal" != 0 &&
2666      $as_echo "$as_me: caught signal $ac_signal"
2667    $as_echo "$as_me: exit $exit_status"
2668  } >&5
2669  rm -f core *.core core.conftest.* &&
2670    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2671    exit $exit_status
2672' 0
2673for ac_signal in 1 2 13 15; do
2674  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2675done
2676ac_signal=0
2677
2678# confdefs.h avoids OS command line length limits that DEFS can exceed.
2679rm -f -r conftest* confdefs.h
2680
2681$as_echo "/* confdefs.h */" > confdefs.h
2682
2683# Predefined preprocessor variables.
2684
2685cat >>confdefs.h <<_ACEOF
2686#define PACKAGE_NAME "$PACKAGE_NAME"
2687_ACEOF
2688
2689cat >>confdefs.h <<_ACEOF
2690#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2691_ACEOF
2692
2693cat >>confdefs.h <<_ACEOF
2694#define PACKAGE_VERSION "$PACKAGE_VERSION"
2695_ACEOF
2696
2697cat >>confdefs.h <<_ACEOF
2698#define PACKAGE_STRING "$PACKAGE_STRING"
2699_ACEOF
2700
2701cat >>confdefs.h <<_ACEOF
2702#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2703_ACEOF
2704
2705cat >>confdefs.h <<_ACEOF
2706#define PACKAGE_URL "$PACKAGE_URL"
2707_ACEOF
2708
2709
2710# Let the site file select an alternate cache file if it wants to.
2711# Prefer an explicitly selected file to automatically selected ones.
2712ac_site_file1=NONE
2713ac_site_file2=NONE
2714if test -n "$CONFIG_SITE"; then
2715  # We do not want a PATH search for config.site.
2716  case $CONFIG_SITE in #((
2717    -*)  ac_site_file1=./$CONFIG_SITE;;
2718    */*) ac_site_file1=$CONFIG_SITE;;
2719    *)   ac_site_file1=./$CONFIG_SITE;;
2720  esac
2721elif test "x$prefix" != xNONE; then
2722  ac_site_file1=$prefix/share/config.site
2723  ac_site_file2=$prefix/etc/config.site
2724else
2725  ac_site_file1=$ac_default_prefix/share/config.site
2726  ac_site_file2=$ac_default_prefix/etc/config.site
2727fi
2728for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2729do
2730  test "x$ac_site_file" = xNONE && continue
2731  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2732    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2733$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2734    sed 's/^/| /' "$ac_site_file" >&5
2735    . "$ac_site_file" \
2736      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2737$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2738as_fn_error $? "failed to load site script $ac_site_file
2739See \`config.log' for more details" "$LINENO" 5; }
2740  fi
2741done
2742
2743if test -r "$cache_file"; then
2744  # Some versions of bash will fail to source /dev/null (special files
2745  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2746  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2747    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2748$as_echo "$as_me: loading cache $cache_file" >&6;}
2749    case $cache_file in
2750      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2751      *)                      . "./$cache_file";;
2752    esac
2753  fi
2754else
2755  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2756$as_echo "$as_me: creating cache $cache_file" >&6;}
2757  >$cache_file
2758fi
2759
2760gt_needs="$gt_needs "
2761as_fn_append ac_header_list " stdlib.h"
2762as_fn_append ac_header_list " unistd.h"
2763as_fn_append ac_header_list " sys/param.h"
2764# Check that the precious variables saved in the cache have kept the same
2765# value.
2766ac_cache_corrupted=false
2767for ac_var in $ac_precious_vars; do
2768  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2769  eval ac_new_set=\$ac_env_${ac_var}_set
2770  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2771  eval ac_new_val=\$ac_env_${ac_var}_value
2772  case $ac_old_set,$ac_new_set in
2773    set,)
2774      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2775$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2776      ac_cache_corrupted=: ;;
2777    ,set)
2778      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2779$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2780      ac_cache_corrupted=: ;;
2781    ,);;
2782    *)
2783      if test "x$ac_old_val" != "x$ac_new_val"; then
2784	# differences in whitespace do not lead to failure.
2785	ac_old_val_w=`echo x $ac_old_val`
2786	ac_new_val_w=`echo x $ac_new_val`
2787	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2788	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2789$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2790	  ac_cache_corrupted=:
2791	else
2792	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2793$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2794	  eval $ac_var=\$ac_old_val
2795	fi
2796	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2797$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2798	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2799$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2800      fi;;
2801  esac
2802  # Pass precious variables to config.status.
2803  if test "$ac_new_set" = set; then
2804    case $ac_new_val in
2805    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2806    *) ac_arg=$ac_var=$ac_new_val ;;
2807    esac
2808    case " $ac_configure_args " in
2809      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2810      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2811    esac
2812  fi
2813done
2814if $ac_cache_corrupted; then
2815  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2816$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2817  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2818$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2819  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2820fi
2821## -------------------- ##
2822## Main body of script. ##
2823## -------------------- ##
2824
2825ac_ext=c
2826ac_cpp='$CPP $CPPFLAGS'
2827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2829ac_compiler_gnu=$ac_cv_c_compiler_gnu
2830
2831
2832
2833ac_config_headers="$ac_config_headers include/sane/config.h"
2834
2835
2836am__api_version='1.16'
2837
2838ac_aux_dir=
2839for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2840  if test -f "$ac_dir/install-sh"; then
2841    ac_aux_dir=$ac_dir
2842    ac_install_sh="$ac_aux_dir/install-sh -c"
2843    break
2844  elif test -f "$ac_dir/install.sh"; then
2845    ac_aux_dir=$ac_dir
2846    ac_install_sh="$ac_aux_dir/install.sh -c"
2847    break
2848  elif test -f "$ac_dir/shtool"; then
2849    ac_aux_dir=$ac_dir
2850    ac_install_sh="$ac_aux_dir/shtool install -c"
2851    break
2852  fi
2853done
2854if test -z "$ac_aux_dir"; then
2855  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2856fi
2857
2858# These three variables are undocumented and unsupported,
2859# and are intended to be withdrawn in a future Autoconf release.
2860# They can cause serious problems if a builder's source tree is in a directory
2861# whose full name contains unusual characters.
2862ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2863ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2864ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2865
2866
2867# Find a good install program.  We prefer a C program (faster),
2868# so one script is as good as another.  But avoid the broken or
2869# incompatible versions:
2870# SysV /etc/install, /usr/sbin/install
2871# SunOS /usr/etc/install
2872# IRIX /sbin/install
2873# AIX /bin/install
2874# AmigaOS /C/install, which installs bootblocks on floppy discs
2875# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2876# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2877# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2878# OS/2's system install, which has a completely different semantic
2879# ./install, which can be erroneously created by make from ./install.sh.
2880# Reject install programs that cannot install multiple files.
2881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2882$as_echo_n "checking for a BSD-compatible install... " >&6; }
2883if test -z "$INSTALL"; then
2884if ${ac_cv_path_install+:} false; then :
2885  $as_echo_n "(cached) " >&6
2886else
2887  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888for as_dir in $PATH
2889do
2890  IFS=$as_save_IFS
2891  test -z "$as_dir" && as_dir=.
2892    # Account for people who put trailing slashes in PATH elements.
2893case $as_dir/ in #((
2894  ./ | .// | /[cC]/* | \
2895  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2896  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2897  /usr/ucb/* ) ;;
2898  *)
2899    # OSF1 and SCO ODT 3.0 have their own names for install.
2900    # Don't use installbsd from OSF since it installs stuff as root
2901    # by default.
2902    for ac_prog in ginstall scoinst install; do
2903      for ac_exec_ext in '' $ac_executable_extensions; do
2904	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2905	  if test $ac_prog = install &&
2906	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2907	    # AIX install.  It has an incompatible calling convention.
2908	    :
2909	  elif test $ac_prog = install &&
2910	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2911	    # program-specific install script used by HP pwplus--don't use.
2912	    :
2913	  else
2914	    rm -rf conftest.one conftest.two conftest.dir
2915	    echo one > conftest.one
2916	    echo two > conftest.two
2917	    mkdir conftest.dir
2918	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2919	      test -s conftest.one && test -s conftest.two &&
2920	      test -s conftest.dir/conftest.one &&
2921	      test -s conftest.dir/conftest.two
2922	    then
2923	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2924	      break 3
2925	    fi
2926	  fi
2927	fi
2928      done
2929    done
2930    ;;
2931esac
2932
2933  done
2934IFS=$as_save_IFS
2935
2936rm -rf conftest.one conftest.two conftest.dir
2937
2938fi
2939  if test "${ac_cv_path_install+set}" = set; then
2940    INSTALL=$ac_cv_path_install
2941  else
2942    # As a last resort, use the slow shell script.  Don't cache a
2943    # value for INSTALL within a source directory, because that will
2944    # break other packages using the cache if that directory is
2945    # removed, or if the value is a relative name.
2946    INSTALL=$ac_install_sh
2947  fi
2948fi
2949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2950$as_echo "$INSTALL" >&6; }
2951
2952# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2953# It thinks the first close brace ends the variable substitution.
2954test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2955
2956test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2957
2958test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2959
2960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2961$as_echo_n "checking whether build environment is sane... " >&6; }
2962# Reject unsafe characters in $srcdir or the absolute working directory
2963# name.  Accept space and tab only in the latter.
2964am_lf='
2965'
2966case `pwd` in
2967  *[\\\"\#\$\&\'\`$am_lf]*)
2968    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2969esac
2970case $srcdir in
2971  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2972    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2973esac
2974
2975# Do 'set' in a subshell so we don't clobber the current shell's
2976# arguments.  Must try -L first in case configure is actually a
2977# symlink; some systems play weird games with the mod time of symlinks
2978# (eg FreeBSD returns the mod time of the symlink's containing
2979# directory).
2980if (
2981   am_has_slept=no
2982   for am_try in 1 2; do
2983     echo "timestamp, slept: $am_has_slept" > conftest.file
2984     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2985     if test "$*" = "X"; then
2986	# -L didn't work.
2987	set X `ls -t "$srcdir/configure" conftest.file`
2988     fi
2989     if test "$*" != "X $srcdir/configure conftest.file" \
2990	&& test "$*" != "X conftest.file $srcdir/configure"; then
2991
2992	# If neither matched, then we have a broken ls.  This can happen
2993	# if, for instance, CONFIG_SHELL is bash and it inherits a
2994	# broken ls alias from the environment.  This has actually
2995	# happened.  Such a system could not be considered "sane".
2996	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2997  alias in your environment" "$LINENO" 5
2998     fi
2999     if test "$2" = conftest.file || test $am_try -eq 2; then
3000       break
3001     fi
3002     # Just in case.
3003     sleep 1
3004     am_has_slept=yes
3005   done
3006   test "$2" = conftest.file
3007   )
3008then
3009   # Ok.
3010   :
3011else
3012   as_fn_error $? "newly created file is older than distributed files!
3013Check your system clock" "$LINENO" 5
3014fi
3015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3016$as_echo "yes" >&6; }
3017# If we didn't sleep, we still need to ensure time stamps of config.status and
3018# generated files are strictly newer.
3019am_sleep_pid=
3020if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3021  ( sleep 1 ) &
3022  am_sleep_pid=$!
3023fi
3024
3025rm -f conftest.file
3026
3027test "$program_prefix" != NONE &&
3028  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3029# Use a double $ so make ignores it.
3030test "$program_suffix" != NONE &&
3031  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3032# Double any \ or $.
3033# By default was `s,x,x', remove it if useless.
3034ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3035program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3036
3037# Expand $ac_aux_dir to an absolute path.
3038am_aux_dir=`cd "$ac_aux_dir" && pwd`
3039
3040if test x"${MISSING+set}" != xset; then
3041  case $am_aux_dir in
3042  *\ * | *\	*)
3043    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3044  *)
3045    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3046  esac
3047fi
3048# Use eval to expand $SHELL
3049if eval "$MISSING --is-lightweight"; then
3050  am_missing_run="$MISSING "
3051else
3052  am_missing_run=
3053  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3054$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3055fi
3056
3057if test x"${install_sh+set}" != xset; then
3058  case $am_aux_dir in
3059  *\ * | *\	*)
3060    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3061  *)
3062    install_sh="\${SHELL} $am_aux_dir/install-sh"
3063  esac
3064fi
3065
3066# Installed binaries are usually stripped using 'strip' when the user
3067# run "make install-strip".  However 'strip' might not be the right
3068# tool to use in cross-compilation environments, therefore Automake
3069# will honor the 'STRIP' environment variable to overrule this program.
3070if test "$cross_compiling" != no; then
3071  if test -n "$ac_tool_prefix"; then
3072  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3073set dummy ${ac_tool_prefix}strip; ac_word=$2
3074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075$as_echo_n "checking for $ac_word... " >&6; }
3076if ${ac_cv_prog_STRIP+:} false; then :
3077  $as_echo_n "(cached) " >&6
3078else
3079  if test -n "$STRIP"; then
3080  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3081else
3082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083for as_dir in $PATH
3084do
3085  IFS=$as_save_IFS
3086  test -z "$as_dir" && as_dir=.
3087    for ac_exec_ext in '' $ac_executable_extensions; do
3088  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3089    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3090    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3091    break 2
3092  fi
3093done
3094  done
3095IFS=$as_save_IFS
3096
3097fi
3098fi
3099STRIP=$ac_cv_prog_STRIP
3100if test -n "$STRIP"; then
3101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3102$as_echo "$STRIP" >&6; }
3103else
3104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3105$as_echo "no" >&6; }
3106fi
3107
3108
3109fi
3110if test -z "$ac_cv_prog_STRIP"; then
3111  ac_ct_STRIP=$STRIP
3112  # Extract the first word of "strip", so it can be a program name with args.
3113set dummy strip; ac_word=$2
3114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3115$as_echo_n "checking for $ac_word... " >&6; }
3116if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3117  $as_echo_n "(cached) " >&6
3118else
3119  if test -n "$ac_ct_STRIP"; then
3120  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3121else
3122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123for as_dir in $PATH
3124do
3125  IFS=$as_save_IFS
3126  test -z "$as_dir" && as_dir=.
3127    for ac_exec_ext in '' $ac_executable_extensions; do
3128  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3129    ac_cv_prog_ac_ct_STRIP="strip"
3130    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3131    break 2
3132  fi
3133done
3134  done
3135IFS=$as_save_IFS
3136
3137fi
3138fi
3139ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3140if test -n "$ac_ct_STRIP"; then
3141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3142$as_echo "$ac_ct_STRIP" >&6; }
3143else
3144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145$as_echo "no" >&6; }
3146fi
3147
3148  if test "x$ac_ct_STRIP" = x; then
3149    STRIP=":"
3150  else
3151    case $cross_compiling:$ac_tool_warned in
3152yes:)
3153{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3154$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3155ac_tool_warned=yes ;;
3156esac
3157    STRIP=$ac_ct_STRIP
3158  fi
3159else
3160  STRIP="$ac_cv_prog_STRIP"
3161fi
3162
3163fi
3164INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3165
3166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3167$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3168if test -z "$MKDIR_P"; then
3169  if ${ac_cv_path_mkdir+:} false; then :
3170  $as_echo_n "(cached) " >&6
3171else
3172  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3174do
3175  IFS=$as_save_IFS
3176  test -z "$as_dir" && as_dir=.
3177    for ac_prog in mkdir gmkdir; do
3178	 for ac_exec_ext in '' $ac_executable_extensions; do
3179	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3180	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3181	     'mkdir (GNU coreutils) '* | \
3182	     'mkdir (coreutils) '* | \
3183	     'mkdir (fileutils) '4.1*)
3184	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3185	       break 3;;
3186	   esac
3187	 done
3188       done
3189  done
3190IFS=$as_save_IFS
3191
3192fi
3193
3194  test -d ./--version && rmdir ./--version
3195  if test "${ac_cv_path_mkdir+set}" = set; then
3196    MKDIR_P="$ac_cv_path_mkdir -p"
3197  else
3198    # As a last resort, use the slow shell script.  Don't cache a
3199    # value for MKDIR_P within a source directory, because that will
3200    # break other packages using the cache if that directory is
3201    # removed, or if the value is a relative name.
3202    MKDIR_P="$ac_install_sh -d"
3203  fi
3204fi
3205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3206$as_echo "$MKDIR_P" >&6; }
3207
3208for ac_prog in gawk mawk nawk awk
3209do
3210  # Extract the first word of "$ac_prog", so it can be a program name with args.
3211set dummy $ac_prog; ac_word=$2
3212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3213$as_echo_n "checking for $ac_word... " >&6; }
3214if ${ac_cv_prog_AWK+:} false; then :
3215  $as_echo_n "(cached) " >&6
3216else
3217  if test -n "$AWK"; then
3218  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3219else
3220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221for as_dir in $PATH
3222do
3223  IFS=$as_save_IFS
3224  test -z "$as_dir" && as_dir=.
3225    for ac_exec_ext in '' $ac_executable_extensions; do
3226  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3227    ac_cv_prog_AWK="$ac_prog"
3228    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3229    break 2
3230  fi
3231done
3232  done
3233IFS=$as_save_IFS
3234
3235fi
3236fi
3237AWK=$ac_cv_prog_AWK
3238if test -n "$AWK"; then
3239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3240$as_echo "$AWK" >&6; }
3241else
3242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243$as_echo "no" >&6; }
3244fi
3245
3246
3247  test -n "$AWK" && break
3248done
3249
3250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3251$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3252set x ${MAKE-make}
3253ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3254if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3255  $as_echo_n "(cached) " >&6
3256else
3257  cat >conftest.make <<\_ACEOF
3258SHELL = /bin/sh
3259all:
3260	@echo '@@@%%%=$(MAKE)=@@@%%%'
3261_ACEOF
3262# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3263case `${MAKE-make} -f conftest.make 2>/dev/null` in
3264  *@@@%%%=?*=@@@%%%*)
3265    eval ac_cv_prog_make_${ac_make}_set=yes;;
3266  *)
3267    eval ac_cv_prog_make_${ac_make}_set=no;;
3268esac
3269rm -f conftest.make
3270fi
3271if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3273$as_echo "yes" >&6; }
3274  SET_MAKE=
3275else
3276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3277$as_echo "no" >&6; }
3278  SET_MAKE="MAKE=${MAKE-make}"
3279fi
3280
3281rm -rf .tst 2>/dev/null
3282mkdir .tst 2>/dev/null
3283if test -d .tst; then
3284  am__leading_dot=.
3285else
3286  am__leading_dot=_
3287fi
3288rmdir .tst 2>/dev/null
3289
3290# Check whether --enable-silent-rules was given.
3291if test "${enable_silent_rules+set}" = set; then :
3292  enableval=$enable_silent_rules;
3293fi
3294
3295case $enable_silent_rules in # (((
3296  yes) AM_DEFAULT_VERBOSITY=0;;
3297   no) AM_DEFAULT_VERBOSITY=1;;
3298    *) AM_DEFAULT_VERBOSITY=1;;
3299esac
3300am_make=${MAKE-make}
3301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3302$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3303if ${am_cv_make_support_nested_variables+:} false; then :
3304  $as_echo_n "(cached) " >&6
3305else
3306  if $as_echo 'TRUE=$(BAR$(V))
3307BAR0=false
3308BAR1=true
3309V=1
3310am__doit:
3311	@$(TRUE)
3312.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3313  am_cv_make_support_nested_variables=yes
3314else
3315  am_cv_make_support_nested_variables=no
3316fi
3317fi
3318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3319$as_echo "$am_cv_make_support_nested_variables" >&6; }
3320if test $am_cv_make_support_nested_variables = yes; then
3321    AM_V='$(V)'
3322  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3323else
3324  AM_V=$AM_DEFAULT_VERBOSITY
3325  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3326fi
3327AM_BACKSLASH='\'
3328
3329if test "`cd $srcdir && pwd`" != "`pwd`"; then
3330  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3331  # is not polluted with repeated "-I."
3332  am__isrc=' -I$(srcdir)'
3333  # test to see if srcdir already configured
3334  if test -f $srcdir/config.status; then
3335    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3336  fi
3337fi
3338
3339# test whether we have cygpath
3340if test -z "$CYGPATH_W"; then
3341  if (cygpath --version) >/dev/null 2>/dev/null; then
3342    CYGPATH_W='cygpath -w'
3343  else
3344    CYGPATH_W=echo
3345  fi
3346fi
3347
3348
3349# Define the identity of the package.
3350 PACKAGE='sane-backends'
3351 VERSION='1.0.32'
3352
3353
3354cat >>confdefs.h <<_ACEOF
3355#define PACKAGE "$PACKAGE"
3356_ACEOF
3357
3358
3359cat >>confdefs.h <<_ACEOF
3360#define VERSION "$VERSION"
3361_ACEOF
3362
3363# Some tools Automake needs.
3364
3365ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3366
3367
3368AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3369
3370
3371AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3372
3373
3374AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3375
3376
3377MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3378
3379# For better backward compatibility.  To be removed once Automake 1.9.x
3380# dies out for good.  For more background, see:
3381# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3382# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3383mkdir_p='$(MKDIR_P)'
3384
3385# We need awk for the "check" target (and possibly the TAP driver).  The
3386# system "awk" is bad on some platforms.
3387# Always define AMTAR for backward compatibility.  Yes, it's still used
3388# in the wild :-(  We should find a proper way to deprecate it ...
3389AMTAR='$${TAR-tar}'
3390
3391
3392# We'll loop over all known methods to create a tar archive until one works.
3393_am_tools='gnutar  pax cpio none'
3394
3395am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3396
3397
3398
3399
3400
3401
3402# POSIX will say in a future version that running "rm -f" with no argument
3403# is OK; and we want to be able to make that assumption in our Makefile
3404# recipes.  So use an aggressive probe to check that the usage we want is
3405# actually supported "in the wild" to an acceptable degree.
3406# See automake bug#10828.
3407# To make any issue more visible, cause the running configure to be aborted
3408# by default if the 'rm' program in use doesn't match our expectations; the
3409# user can still override this though.
3410if rm -f && rm -fr && rm -rf; then : OK; else
3411  cat >&2 <<'END'
3412Oops!
3413
3414Your 'rm' program seems unable to run without file operands specified
3415on the command line, even when the '-f' option is present.  This is contrary
3416to the behaviour of most rm programs out there, and not conforming with
3417the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3418
3419Please tell bug-automake@gnu.org about your system, including the value
3420of your $PATH and any error possibly output before this message.  This
3421can help us improve future automake versions.
3422
3423END
3424  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3425    echo 'Configuration will proceed anyway, since you have set the' >&2
3426    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3427    echo >&2
3428  else
3429    cat >&2 <<'END'
3430Aborting the configuration process, to ensure you take notice of the issue.
3431
3432You can download and install GNU coreutils to get an 'rm' implementation
3433that behaves properly: <https://www.gnu.org/software/coreutils/>.
3434
3435If you want to complete the configuration process using your problematic
3436'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3437to "yes", and re-run configure.
3438
3439END
3440    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3441  fi
3442fi
3443
3444# Check whether --enable-silent-rules was given.
3445if test "${enable_silent_rules+set}" = set; then :
3446  enableval=$enable_silent_rules;
3447fi
3448
3449case $enable_silent_rules in # (((
3450  yes) AM_DEFAULT_VERBOSITY=0;;
3451   no) AM_DEFAULT_VERBOSITY=1;;
3452    *) AM_DEFAULT_VERBOSITY=1;;
3453esac
3454am_make=${MAKE-make}
3455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3456$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3457if ${am_cv_make_support_nested_variables+:} false; then :
3458  $as_echo_n "(cached) " >&6
3459else
3460  if $as_echo 'TRUE=$(BAR$(V))
3461BAR0=false
3462BAR1=true
3463V=1
3464am__doit:
3465	@$(TRUE)
3466.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3467  am_cv_make_support_nested_variables=yes
3468else
3469  am_cv_make_support_nested_variables=no
3470fi
3471fi
3472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3473$as_echo "$am_cv_make_support_nested_variables" >&6; }
3474if test $am_cv_make_support_nested_variables = yes; then
3475    AM_V='$(V)'
3476  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3477else
3478  AM_V=$AM_DEFAULT_VERBOSITY
3479  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3480fi
3481AM_BACKSLASH='\'
3482
3483
3484if test x = "x$AWK"; then :
3485  for ac_prog in gawk mawk nawk awk
3486do
3487  # Extract the first word of "$ac_prog", so it can be a program name with args.
3488set dummy $ac_prog; ac_word=$2
3489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3490$as_echo_n "checking for $ac_word... " >&6; }
3491if ${ac_cv_prog_AWK+:} false; then :
3492  $as_echo_n "(cached) " >&6
3493else
3494  if test -n "$AWK"; then
3495  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3496else
3497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3498for as_dir in $PATH
3499do
3500  IFS=$as_save_IFS
3501  test -z "$as_dir" && as_dir=.
3502    for ac_exec_ext in '' $ac_executable_extensions; do
3503  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3504    ac_cv_prog_AWK="$ac_prog"
3505    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3506    break 2
3507  fi
3508done
3509  done
3510IFS=$as_save_IFS
3511
3512fi
3513fi
3514AWK=$ac_cv_prog_AWK
3515if test -n "$AWK"; then
3516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3517$as_echo "$AWK" >&6; }
3518else
3519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3520$as_echo "no" >&6; }
3521fi
3522
3523
3524  test -n "$AWK" && break
3525done
3526
3527fi
3528if test x = "x`echo $VERSION | sed 's/[.0-9]//g'`"; then :
3529  is_release=yes
3530else
3531  is_release=no
3532fi
3533V_MAJOR=`echo $VERSION | $AWK -F. '{print $1}'`
3534V_MINOR=`echo $VERSION | $AWK -F. '{print $2}'`
3535V_REV=`echo $VERSION | $AWK -F. '{print $3}' | sed 's/^\([0-9]*\).*/\1/'`;
3536
3537
3538cat >>confdefs.h <<_ACEOF
3539#define SANE_DLL_V_MAJOR $V_MAJOR
3540_ACEOF
3541
3542
3543cat >>confdefs.h <<_ACEOF
3544#define SANE_DLL_V_MINOR $V_MINOR
3545_ACEOF
3546
3547
3548cat >>confdefs.h <<_ACEOF
3549#define SANE_DLL_V_BUILD $V_REV
3550_ACEOF
3551
3552
3553
3554
3555
3556ac_ext=c
3557ac_cpp='$CPP $CPPFLAGS'
3558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3560ac_compiler_gnu=$ac_cv_c_compiler_gnu
3561if test -n "$ac_tool_prefix"; then
3562  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3563set dummy ${ac_tool_prefix}gcc; ac_word=$2
3564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3565$as_echo_n "checking for $ac_word... " >&6; }
3566if ${ac_cv_prog_CC+:} false; then :
3567  $as_echo_n "(cached) " >&6
3568else
3569  if test -n "$CC"; then
3570  ac_cv_prog_CC="$CC" # Let the user override the test.
3571else
3572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573for as_dir in $PATH
3574do
3575  IFS=$as_save_IFS
3576  test -z "$as_dir" && as_dir=.
3577    for ac_exec_ext in '' $ac_executable_extensions; do
3578  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3579    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3580    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3581    break 2
3582  fi
3583done
3584  done
3585IFS=$as_save_IFS
3586
3587fi
3588fi
3589CC=$ac_cv_prog_CC
3590if test -n "$CC"; then
3591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3592$as_echo "$CC" >&6; }
3593else
3594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3595$as_echo "no" >&6; }
3596fi
3597
3598
3599fi
3600if test -z "$ac_cv_prog_CC"; then
3601  ac_ct_CC=$CC
3602  # Extract the first word of "gcc", so it can be a program name with args.
3603set dummy gcc; ac_word=$2
3604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3605$as_echo_n "checking for $ac_word... " >&6; }
3606if ${ac_cv_prog_ac_ct_CC+:} false; then :
3607  $as_echo_n "(cached) " >&6
3608else
3609  if test -n "$ac_ct_CC"; then
3610  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3611else
3612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613for as_dir in $PATH
3614do
3615  IFS=$as_save_IFS
3616  test -z "$as_dir" && as_dir=.
3617    for ac_exec_ext in '' $ac_executable_extensions; do
3618  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3619    ac_cv_prog_ac_ct_CC="gcc"
3620    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3621    break 2
3622  fi
3623done
3624  done
3625IFS=$as_save_IFS
3626
3627fi
3628fi
3629ac_ct_CC=$ac_cv_prog_ac_ct_CC
3630if test -n "$ac_ct_CC"; then
3631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3632$as_echo "$ac_ct_CC" >&6; }
3633else
3634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3635$as_echo "no" >&6; }
3636fi
3637
3638  if test "x$ac_ct_CC" = x; then
3639    CC=""
3640  else
3641    case $cross_compiling:$ac_tool_warned in
3642yes:)
3643{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3644$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3645ac_tool_warned=yes ;;
3646esac
3647    CC=$ac_ct_CC
3648  fi
3649else
3650  CC="$ac_cv_prog_CC"
3651fi
3652
3653if test -z "$CC"; then
3654          if test -n "$ac_tool_prefix"; then
3655    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3656set dummy ${ac_tool_prefix}cc; ac_word=$2
3657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3658$as_echo_n "checking for $ac_word... " >&6; }
3659if ${ac_cv_prog_CC+:} false; then :
3660  $as_echo_n "(cached) " >&6
3661else
3662  if test -n "$CC"; then
3663  ac_cv_prog_CC="$CC" # Let the user override the test.
3664else
3665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666for as_dir in $PATH
3667do
3668  IFS=$as_save_IFS
3669  test -z "$as_dir" && as_dir=.
3670    for ac_exec_ext in '' $ac_executable_extensions; do
3671  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3672    ac_cv_prog_CC="${ac_tool_prefix}cc"
3673    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3674    break 2
3675  fi
3676done
3677  done
3678IFS=$as_save_IFS
3679
3680fi
3681fi
3682CC=$ac_cv_prog_CC
3683if test -n "$CC"; then
3684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3685$as_echo "$CC" >&6; }
3686else
3687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3688$as_echo "no" >&6; }
3689fi
3690
3691
3692  fi
3693fi
3694if test -z "$CC"; then
3695  # Extract the first word of "cc", so it can be a program name with args.
3696set dummy cc; ac_word=$2
3697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698$as_echo_n "checking for $ac_word... " >&6; }
3699if ${ac_cv_prog_CC+:} false; then :
3700  $as_echo_n "(cached) " >&6
3701else
3702  if test -n "$CC"; then
3703  ac_cv_prog_CC="$CC" # Let the user override the test.
3704else
3705  ac_prog_rejected=no
3706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707for as_dir in $PATH
3708do
3709  IFS=$as_save_IFS
3710  test -z "$as_dir" && as_dir=.
3711    for ac_exec_ext in '' $ac_executable_extensions; do
3712  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3713    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3714       ac_prog_rejected=yes
3715       continue
3716     fi
3717    ac_cv_prog_CC="cc"
3718    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3719    break 2
3720  fi
3721done
3722  done
3723IFS=$as_save_IFS
3724
3725if test $ac_prog_rejected = yes; then
3726  # We found a bogon in the path, so make sure we never use it.
3727  set dummy $ac_cv_prog_CC
3728  shift
3729  if test $# != 0; then
3730    # We chose a different compiler from the bogus one.
3731    # However, it has the same basename, so the bogon will be chosen
3732    # first if we set CC to just the basename; use the full file name.
3733    shift
3734    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3735  fi
3736fi
3737fi
3738fi
3739CC=$ac_cv_prog_CC
3740if test -n "$CC"; then
3741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3742$as_echo "$CC" >&6; }
3743else
3744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3745$as_echo "no" >&6; }
3746fi
3747
3748
3749fi
3750if test -z "$CC"; then
3751  if test -n "$ac_tool_prefix"; then
3752  for ac_prog in cl.exe
3753  do
3754    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3755set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757$as_echo_n "checking for $ac_word... " >&6; }
3758if ${ac_cv_prog_CC+:} false; then :
3759  $as_echo_n "(cached) " >&6
3760else
3761  if test -n "$CC"; then
3762  ac_cv_prog_CC="$CC" # Let the user override the test.
3763else
3764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765for as_dir in $PATH
3766do
3767  IFS=$as_save_IFS
3768  test -z "$as_dir" && as_dir=.
3769    for ac_exec_ext in '' $ac_executable_extensions; do
3770  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3771    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3772    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3773    break 2
3774  fi
3775done
3776  done
3777IFS=$as_save_IFS
3778
3779fi
3780fi
3781CC=$ac_cv_prog_CC
3782if test -n "$CC"; then
3783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3784$as_echo "$CC" >&6; }
3785else
3786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787$as_echo "no" >&6; }
3788fi
3789
3790
3791    test -n "$CC" && break
3792  done
3793fi
3794if test -z "$CC"; then
3795  ac_ct_CC=$CC
3796  for ac_prog in cl.exe
3797do
3798  # Extract the first word of "$ac_prog", so it can be a program name with args.
3799set dummy $ac_prog; ac_word=$2
3800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3801$as_echo_n "checking for $ac_word... " >&6; }
3802if ${ac_cv_prog_ac_ct_CC+:} false; then :
3803  $as_echo_n "(cached) " >&6
3804else
3805  if test -n "$ac_ct_CC"; then
3806  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3807else
3808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809for as_dir in $PATH
3810do
3811  IFS=$as_save_IFS
3812  test -z "$as_dir" && as_dir=.
3813    for ac_exec_ext in '' $ac_executable_extensions; do
3814  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3815    ac_cv_prog_ac_ct_CC="$ac_prog"
3816    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3817    break 2
3818  fi
3819done
3820  done
3821IFS=$as_save_IFS
3822
3823fi
3824fi
3825ac_ct_CC=$ac_cv_prog_ac_ct_CC
3826if test -n "$ac_ct_CC"; then
3827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3828$as_echo "$ac_ct_CC" >&6; }
3829else
3830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3831$as_echo "no" >&6; }
3832fi
3833
3834
3835  test -n "$ac_ct_CC" && break
3836done
3837
3838  if test "x$ac_ct_CC" = x; then
3839    CC=""
3840  else
3841    case $cross_compiling:$ac_tool_warned in
3842yes:)
3843{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3844$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3845ac_tool_warned=yes ;;
3846esac
3847    CC=$ac_ct_CC
3848  fi
3849fi
3850
3851fi
3852
3853
3854test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3855$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3856as_fn_error $? "no acceptable C compiler found in \$PATH
3857See \`config.log' for more details" "$LINENO" 5; }
3858
3859# Provide some information about the compiler.
3860$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3861set X $ac_compile
3862ac_compiler=$2
3863for ac_option in --version -v -V -qversion; do
3864  { { ac_try="$ac_compiler $ac_option >&5"
3865case "(($ac_try" in
3866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3867  *) ac_try_echo=$ac_try;;
3868esac
3869eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3870$as_echo "$ac_try_echo"; } >&5
3871  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3872  ac_status=$?
3873  if test -s conftest.err; then
3874    sed '10a\
3875... rest of stderr output deleted ...
3876         10q' conftest.err >conftest.er1
3877    cat conftest.er1 >&5
3878  fi
3879  rm -f conftest.er1 conftest.err
3880  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3881  test $ac_status = 0; }
3882done
3883
3884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885/* end confdefs.h.  */
3886
3887int
3888main ()
3889{
3890
3891  ;
3892  return 0;
3893}
3894_ACEOF
3895ac_clean_files_save=$ac_clean_files
3896ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3897# Try to create an executable without -o first, disregard a.out.
3898# It will help us diagnose broken compilers, and finding out an intuition
3899# of exeext.
3900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3901$as_echo_n "checking whether the C compiler works... " >&6; }
3902ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3903
3904# The possible output files:
3905ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3906
3907ac_rmfiles=
3908for ac_file in $ac_files
3909do
3910  case $ac_file in
3911    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3912    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3913  esac
3914done
3915rm -f $ac_rmfiles
3916
3917if { { ac_try="$ac_link_default"
3918case "(($ac_try" in
3919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3920  *) ac_try_echo=$ac_try;;
3921esac
3922eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3923$as_echo "$ac_try_echo"; } >&5
3924  (eval "$ac_link_default") 2>&5
3925  ac_status=$?
3926  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3927  test $ac_status = 0; }; then :
3928  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3929# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3930# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3931# so that the user can short-circuit this test for compilers unknown to
3932# Autoconf.
3933for ac_file in $ac_files ''
3934do
3935  test -f "$ac_file" || continue
3936  case $ac_file in
3937    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3938	;;
3939    [ab].out )
3940	# We found the default executable, but exeext='' is most
3941	# certainly right.
3942	break;;
3943    *.* )
3944	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3945	then :; else
3946	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3947	fi
3948	# We set ac_cv_exeext here because the later test for it is not
3949	# safe: cross compilers may not add the suffix if given an `-o'
3950	# argument, so we may need to know it at that point already.
3951	# Even if this section looks crufty: it has the advantage of
3952	# actually working.
3953	break;;
3954    * )
3955	break;;
3956  esac
3957done
3958test "$ac_cv_exeext" = no && ac_cv_exeext=
3959
3960else
3961  ac_file=''
3962fi
3963if test -z "$ac_file"; then :
3964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3965$as_echo "no" >&6; }
3966$as_echo "$as_me: failed program was:" >&5
3967sed 's/^/| /' conftest.$ac_ext >&5
3968
3969{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3970$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3971as_fn_error 77 "C compiler cannot create executables
3972See \`config.log' for more details" "$LINENO" 5; }
3973else
3974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3975$as_echo "yes" >&6; }
3976fi
3977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3978$as_echo_n "checking for C compiler default output file name... " >&6; }
3979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3980$as_echo "$ac_file" >&6; }
3981ac_exeext=$ac_cv_exeext
3982
3983rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3984ac_clean_files=$ac_clean_files_save
3985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3986$as_echo_n "checking for suffix of executables... " >&6; }
3987if { { ac_try="$ac_link"
3988case "(($ac_try" in
3989  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3990  *) ac_try_echo=$ac_try;;
3991esac
3992eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3993$as_echo "$ac_try_echo"; } >&5
3994  (eval "$ac_link") 2>&5
3995  ac_status=$?
3996  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3997  test $ac_status = 0; }; then :
3998  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3999# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4000# work properly (i.e., refer to `conftest.exe'), while it won't with
4001# `rm'.
4002for ac_file in conftest.exe conftest conftest.*; do
4003  test -f "$ac_file" || continue
4004  case $ac_file in
4005    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4006    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4007	  break;;
4008    * ) break;;
4009  esac
4010done
4011else
4012  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4013$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4014as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4015See \`config.log' for more details" "$LINENO" 5; }
4016fi
4017rm -f conftest conftest$ac_cv_exeext
4018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4019$as_echo "$ac_cv_exeext" >&6; }
4020
4021rm -f conftest.$ac_ext
4022EXEEXT=$ac_cv_exeext
4023ac_exeext=$EXEEXT
4024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025/* end confdefs.h.  */
4026#include <stdio.h>
4027int
4028main ()
4029{
4030FILE *f = fopen ("conftest.out", "w");
4031 return ferror (f) || fclose (f) != 0;
4032
4033  ;
4034  return 0;
4035}
4036_ACEOF
4037ac_clean_files="$ac_clean_files conftest.out"
4038# Check that the compiler produces executables we can run.  If not, either
4039# the compiler is broken, or we cross compile.
4040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4041$as_echo_n "checking whether we are cross compiling... " >&6; }
4042if test "$cross_compiling" != yes; then
4043  { { ac_try="$ac_link"
4044case "(($ac_try" in
4045  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046  *) ac_try_echo=$ac_try;;
4047esac
4048eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4049$as_echo "$ac_try_echo"; } >&5
4050  (eval "$ac_link") 2>&5
4051  ac_status=$?
4052  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4053  test $ac_status = 0; }
4054  if { ac_try='./conftest$ac_cv_exeext'
4055  { { case "(($ac_try" in
4056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057  *) ac_try_echo=$ac_try;;
4058esac
4059eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4060$as_echo "$ac_try_echo"; } >&5
4061  (eval "$ac_try") 2>&5
4062  ac_status=$?
4063  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4064  test $ac_status = 0; }; }; then
4065    cross_compiling=no
4066  else
4067    if test "$cross_compiling" = maybe; then
4068	cross_compiling=yes
4069    else
4070	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4071$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4072as_fn_error $? "cannot run C compiled programs.
4073If you meant to cross compile, use \`--host'.
4074See \`config.log' for more details" "$LINENO" 5; }
4075    fi
4076  fi
4077fi
4078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4079$as_echo "$cross_compiling" >&6; }
4080
4081rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4082ac_clean_files=$ac_clean_files_save
4083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4084$as_echo_n "checking for suffix of object files... " >&6; }
4085if ${ac_cv_objext+:} false; then :
4086  $as_echo_n "(cached) " >&6
4087else
4088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089/* end confdefs.h.  */
4090
4091int
4092main ()
4093{
4094
4095  ;
4096  return 0;
4097}
4098_ACEOF
4099rm -f conftest.o conftest.obj
4100if { { ac_try="$ac_compile"
4101case "(($ac_try" in
4102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103  *) ac_try_echo=$ac_try;;
4104esac
4105eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4106$as_echo "$ac_try_echo"; } >&5
4107  (eval "$ac_compile") 2>&5
4108  ac_status=$?
4109  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4110  test $ac_status = 0; }; then :
4111  for ac_file in conftest.o conftest.obj conftest.*; do
4112  test -f "$ac_file" || continue;
4113  case $ac_file in
4114    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4115    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4116       break;;
4117  esac
4118done
4119else
4120  $as_echo "$as_me: failed program was:" >&5
4121sed 's/^/| /' conftest.$ac_ext >&5
4122
4123{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4124$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4125as_fn_error $? "cannot compute suffix of object files: cannot compile
4126See \`config.log' for more details" "$LINENO" 5; }
4127fi
4128rm -f conftest.$ac_cv_objext conftest.$ac_ext
4129fi
4130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4131$as_echo "$ac_cv_objext" >&6; }
4132OBJEXT=$ac_cv_objext
4133ac_objext=$OBJEXT
4134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4135$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4136if ${ac_cv_c_compiler_gnu+:} false; then :
4137  $as_echo_n "(cached) " >&6
4138else
4139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140/* end confdefs.h.  */
4141
4142int
4143main ()
4144{
4145#ifndef __GNUC__
4146       choke me
4147#endif
4148
4149  ;
4150  return 0;
4151}
4152_ACEOF
4153if ac_fn_c_try_compile "$LINENO"; then :
4154  ac_compiler_gnu=yes
4155else
4156  ac_compiler_gnu=no
4157fi
4158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4159ac_cv_c_compiler_gnu=$ac_compiler_gnu
4160
4161fi
4162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4163$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4164if test $ac_compiler_gnu = yes; then
4165  GCC=yes
4166else
4167  GCC=
4168fi
4169ac_test_CFLAGS=${CFLAGS+set}
4170ac_save_CFLAGS=$CFLAGS
4171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4172$as_echo_n "checking whether $CC accepts -g... " >&6; }
4173if ${ac_cv_prog_cc_g+:} false; then :
4174  $as_echo_n "(cached) " >&6
4175else
4176  ac_save_c_werror_flag=$ac_c_werror_flag
4177   ac_c_werror_flag=yes
4178   ac_cv_prog_cc_g=no
4179   CFLAGS="-g"
4180   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181/* end confdefs.h.  */
4182
4183int
4184main ()
4185{
4186
4187  ;
4188  return 0;
4189}
4190_ACEOF
4191if ac_fn_c_try_compile "$LINENO"; then :
4192  ac_cv_prog_cc_g=yes
4193else
4194  CFLAGS=""
4195      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196/* end confdefs.h.  */
4197
4198int
4199main ()
4200{
4201
4202  ;
4203  return 0;
4204}
4205_ACEOF
4206if ac_fn_c_try_compile "$LINENO"; then :
4207
4208else
4209  ac_c_werror_flag=$ac_save_c_werror_flag
4210	 CFLAGS="-g"
4211	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4212/* end confdefs.h.  */
4213
4214int
4215main ()
4216{
4217
4218  ;
4219  return 0;
4220}
4221_ACEOF
4222if ac_fn_c_try_compile "$LINENO"; then :
4223  ac_cv_prog_cc_g=yes
4224fi
4225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4226fi
4227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4228fi
4229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4230   ac_c_werror_flag=$ac_save_c_werror_flag
4231fi
4232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4233$as_echo "$ac_cv_prog_cc_g" >&6; }
4234if test "$ac_test_CFLAGS" = set; then
4235  CFLAGS=$ac_save_CFLAGS
4236elif test $ac_cv_prog_cc_g = yes; then
4237  if test "$GCC" = yes; then
4238    CFLAGS="-g -O2"
4239  else
4240    CFLAGS="-g"
4241  fi
4242else
4243  if test "$GCC" = yes; then
4244    CFLAGS="-O2"
4245  else
4246    CFLAGS=
4247  fi
4248fi
4249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4250$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4251if ${ac_cv_prog_cc_c89+:} false; then :
4252  $as_echo_n "(cached) " >&6
4253else
4254  ac_cv_prog_cc_c89=no
4255ac_save_CC=$CC
4256cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257/* end confdefs.h.  */
4258#include <stdarg.h>
4259#include <stdio.h>
4260struct stat;
4261/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4262struct buf { int x; };
4263FILE * (*rcsopen) (struct buf *, struct stat *, int);
4264static char *e (p, i)
4265     char **p;
4266     int i;
4267{
4268  return p[i];
4269}
4270static char *f (char * (*g) (char **, int), char **p, ...)
4271{
4272  char *s;
4273  va_list v;
4274  va_start (v,p);
4275  s = g (p, va_arg (v,int));
4276  va_end (v);
4277  return s;
4278}
4279
4280/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4281   function prototypes and stuff, but not '\xHH' hex character constants.
4282   These don't provoke an error unfortunately, instead are silently treated
4283   as 'x'.  The following induces an error, until -std is added to get
4284   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4285   array size at least.  It's necessary to write '\x00'==0 to get something
4286   that's true only with -std.  */
4287int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4288
4289/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4290   inside strings and character constants.  */
4291#define FOO(x) 'x'
4292int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4293
4294int test (int i, double x);
4295struct s1 {int (*f) (int a);};
4296struct s2 {int (*f) (double a);};
4297int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4298int argc;
4299char **argv;
4300int
4301main ()
4302{
4303return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4304  ;
4305  return 0;
4306}
4307_ACEOF
4308for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4309	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4310do
4311  CC="$ac_save_CC $ac_arg"
4312  if ac_fn_c_try_compile "$LINENO"; then :
4313  ac_cv_prog_cc_c89=$ac_arg
4314fi
4315rm -f core conftest.err conftest.$ac_objext
4316  test "x$ac_cv_prog_cc_c89" != "xno" && break
4317done
4318rm -f conftest.$ac_ext
4319CC=$ac_save_CC
4320
4321fi
4322# AC_CACHE_VAL
4323case "x$ac_cv_prog_cc_c89" in
4324  x)
4325    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4326$as_echo "none needed" >&6; } ;;
4327  xno)
4328    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4329$as_echo "unsupported" >&6; } ;;
4330  *)
4331    CC="$CC $ac_cv_prog_cc_c89"
4332    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4333$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4334esac
4335if test "x$ac_cv_prog_cc_c89" != xno; then :
4336
4337fi
4338
4339ac_ext=c
4340ac_cpp='$CPP $CPPFLAGS'
4341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4343ac_compiler_gnu=$ac_cv_c_compiler_gnu
4344
4345ac_ext=c
4346ac_cpp='$CPP $CPPFLAGS'
4347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4349ac_compiler_gnu=$ac_cv_c_compiler_gnu
4350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4351$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4352if ${am_cv_prog_cc_c_o+:} false; then :
4353  $as_echo_n "(cached) " >&6
4354else
4355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356/* end confdefs.h.  */
4357
4358int
4359main ()
4360{
4361
4362  ;
4363  return 0;
4364}
4365_ACEOF
4366  # Make sure it works both with $CC and with simple cc.
4367  # Following AC_PROG_CC_C_O, we do the test twice because some
4368  # compilers refuse to overwrite an existing .o file with -o,
4369  # though they will create one.
4370  am_cv_prog_cc_c_o=yes
4371  for am_i in 1 2; do
4372    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4373   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4374   ac_status=$?
4375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376   (exit $ac_status); } \
4377         && test -f conftest2.$ac_objext; then
4378      : OK
4379    else
4380      am_cv_prog_cc_c_o=no
4381      break
4382    fi
4383  done
4384  rm -f core conftest*
4385  unset am_i
4386fi
4387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4388$as_echo "$am_cv_prog_cc_c_o" >&6; }
4389if test "$am_cv_prog_cc_c_o" != yes; then
4390   # Losing compiler, so override with the script.
4391   # FIXME: It is wrong to rewrite CC.
4392   # But if we don't then we get into trouble of one sort or another.
4393   # A longer-term fix would be to have automake use am__CC in this case,
4394   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4395   CC="$am_aux_dir/compile $CC"
4396fi
4397ac_ext=c
4398ac_cpp='$CPP $CPPFLAGS'
4399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4401ac_compiler_gnu=$ac_cv_c_compiler_gnu
4402
4403DEPDIR="${am__leading_dot}deps"
4404
4405ac_config_commands="$ac_config_commands depfiles"
4406
4407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4408$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4409cat > confinc.mk << 'END'
4410am__doit:
4411	@echo this is the am__doit target >confinc.out
4412.PHONY: am__doit
4413END
4414am__include="#"
4415am__quote=
4416# BSD make does it like this.
4417echo '.include "confinc.mk" # ignored' > confmf.BSD
4418# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4419echo 'include confinc.mk # ignored' > confmf.GNU
4420_am_result=no
4421for s in GNU BSD; do
4422  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4423   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4424   ac_status=$?
4425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426   (exit $ac_status); }
4427  case $?:`cat confinc.out 2>/dev/null` in #(
4428  '0:this is the am__doit target') :
4429    case $s in #(
4430  BSD) :
4431    am__include='.include' am__quote='"' ;; #(
4432  *) :
4433    am__include='include' am__quote='' ;;
4434esac ;; #(
4435  *) :
4436     ;;
4437esac
4438  if test "$am__include" != "#"; then
4439    _am_result="yes ($s style)"
4440    break
4441  fi
4442done
4443rm -f confinc.* confmf.*
4444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4445$as_echo "${_am_result}" >&6; }
4446
4447# Check whether --enable-dependency-tracking was given.
4448if test "${enable_dependency_tracking+set}" = set; then :
4449  enableval=$enable_dependency_tracking;
4450fi
4451
4452if test "x$enable_dependency_tracking" != xno; then
4453  am_depcomp="$ac_aux_dir/depcomp"
4454  AMDEPBACKSLASH='\'
4455  am__nodep='_no'
4456fi
4457 if test "x$enable_dependency_tracking" != xno; then
4458  AMDEP_TRUE=
4459  AMDEP_FALSE='#'
4460else
4461  AMDEP_TRUE='#'
4462  AMDEP_FALSE=
4463fi
4464
4465
4466
4467depcc="$CC"   am_compiler_list=
4468
4469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4470$as_echo_n "checking dependency style of $depcc... " >&6; }
4471if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4472  $as_echo_n "(cached) " >&6
4473else
4474  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4475  # We make a subdir and do the tests there.  Otherwise we can end up
4476  # making bogus files that we don't know about and never remove.  For
4477  # instance it was reported that on HP-UX the gcc test will end up
4478  # making a dummy file named 'D' -- because '-MD' means "put the output
4479  # in D".
4480  rm -rf conftest.dir
4481  mkdir conftest.dir
4482  # Copy depcomp to subdir because otherwise we won't find it if we're
4483  # using a relative directory.
4484  cp "$am_depcomp" conftest.dir
4485  cd conftest.dir
4486  # We will build objects and dependencies in a subdirectory because
4487  # it helps to detect inapplicable dependency modes.  For instance
4488  # both Tru64's cc and ICC support -MD to output dependencies as a
4489  # side effect of compilation, but ICC will put the dependencies in
4490  # the current directory while Tru64 will put them in the object
4491  # directory.
4492  mkdir sub
4493
4494  am_cv_CC_dependencies_compiler_type=none
4495  if test "$am_compiler_list" = ""; then
4496     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4497  fi
4498  am__universal=false
4499  case " $depcc " in #(
4500     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4501     esac
4502
4503  for depmode in $am_compiler_list; do
4504    # Setup a source with many dependencies, because some compilers
4505    # like to wrap large dependency lists on column 80 (with \), and
4506    # we should not choose a depcomp mode which is confused by this.
4507    #
4508    # We need to recreate these files for each test, as the compiler may
4509    # overwrite some of them when testing with obscure command lines.
4510    # This happens at least with the AIX C compiler.
4511    : > sub/conftest.c
4512    for i in 1 2 3 4 5 6; do
4513      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4514      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4515      # Solaris 10 /bin/sh.
4516      echo '/* dummy */' > sub/conftst$i.h
4517    done
4518    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4519
4520    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4521    # mode.  It turns out that the SunPro C++ compiler does not properly
4522    # handle '-M -o', and we need to detect this.  Also, some Intel
4523    # versions had trouble with output in subdirs.
4524    am__obj=sub/conftest.${OBJEXT-o}
4525    am__minus_obj="-o $am__obj"
4526    case $depmode in
4527    gcc)
4528      # This depmode causes a compiler race in universal mode.
4529      test "$am__universal" = false || continue
4530      ;;
4531    nosideeffect)
4532      # After this tag, mechanisms are not by side-effect, so they'll
4533      # only be used when explicitly requested.
4534      if test "x$enable_dependency_tracking" = xyes; then
4535	continue
4536      else
4537	break
4538      fi
4539      ;;
4540    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4541      # This compiler won't grok '-c -o', but also, the minuso test has
4542      # not run yet.  These depmodes are late enough in the game, and
4543      # so weak that their functioning should not be impacted.
4544      am__obj=conftest.${OBJEXT-o}
4545      am__minus_obj=
4546      ;;
4547    none) break ;;
4548    esac
4549    if depmode=$depmode \
4550       source=sub/conftest.c object=$am__obj \
4551       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4552       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4553         >/dev/null 2>conftest.err &&
4554       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4555       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4556       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4557       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4558      # icc doesn't choke on unknown options, it will just issue warnings
4559      # or remarks (even with -Werror).  So we grep stderr for any message
4560      # that says an option was ignored or not supported.
4561      # When given -MP, icc 7.0 and 7.1 complain thusly:
4562      #   icc: Command line warning: ignoring option '-M'; no argument required
4563      # The diagnosis changed in icc 8.0:
4564      #   icc: Command line remark: option '-MP' not supported
4565      if (grep 'ignoring option' conftest.err ||
4566          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4567        am_cv_CC_dependencies_compiler_type=$depmode
4568        break
4569      fi
4570    fi
4571  done
4572
4573  cd ..
4574  rm -rf conftest.dir
4575else
4576  am_cv_CC_dependencies_compiler_type=none
4577fi
4578
4579fi
4580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4581$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4582CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4583
4584 if
4585  test "x$enable_dependency_tracking" != xno \
4586  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4587  am__fastdepCC_TRUE=
4588  am__fastdepCC_FALSE='#'
4589else
4590  am__fastdepCC_TRUE='#'
4591  am__fastdepCC_FALSE=
4592fi
4593
4594
4595ac_ext=cpp
4596ac_cpp='$CXXCPP $CPPFLAGS'
4597ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4598ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4599ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4600if test -z "$CXX"; then
4601  if test -n "$CCC"; then
4602    CXX=$CCC
4603  else
4604    if test -n "$ac_tool_prefix"; then
4605  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4606  do
4607    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4608set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4610$as_echo_n "checking for $ac_word... " >&6; }
4611if ${ac_cv_prog_CXX+:} false; then :
4612  $as_echo_n "(cached) " >&6
4613else
4614  if test -n "$CXX"; then
4615  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4616else
4617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618for as_dir in $PATH
4619do
4620  IFS=$as_save_IFS
4621  test -z "$as_dir" && as_dir=.
4622    for ac_exec_ext in '' $ac_executable_extensions; do
4623  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4624    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4625    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4626    break 2
4627  fi
4628done
4629  done
4630IFS=$as_save_IFS
4631
4632fi
4633fi
4634CXX=$ac_cv_prog_CXX
4635if test -n "$CXX"; then
4636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4637$as_echo "$CXX" >&6; }
4638else
4639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4640$as_echo "no" >&6; }
4641fi
4642
4643
4644    test -n "$CXX" && break
4645  done
4646fi
4647if test -z "$CXX"; then
4648  ac_ct_CXX=$CXX
4649  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4650do
4651  # Extract the first word of "$ac_prog", so it can be a program name with args.
4652set dummy $ac_prog; ac_word=$2
4653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4654$as_echo_n "checking for $ac_word... " >&6; }
4655if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4656  $as_echo_n "(cached) " >&6
4657else
4658  if test -n "$ac_ct_CXX"; then
4659  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4660else
4661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662for as_dir in $PATH
4663do
4664  IFS=$as_save_IFS
4665  test -z "$as_dir" && as_dir=.
4666    for ac_exec_ext in '' $ac_executable_extensions; do
4667  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4668    ac_cv_prog_ac_ct_CXX="$ac_prog"
4669    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4670    break 2
4671  fi
4672done
4673  done
4674IFS=$as_save_IFS
4675
4676fi
4677fi
4678ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4679if test -n "$ac_ct_CXX"; then
4680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4681$as_echo "$ac_ct_CXX" >&6; }
4682else
4683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4684$as_echo "no" >&6; }
4685fi
4686
4687
4688  test -n "$ac_ct_CXX" && break
4689done
4690
4691  if test "x$ac_ct_CXX" = x; then
4692    CXX="g++"
4693  else
4694    case $cross_compiling:$ac_tool_warned in
4695yes:)
4696{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4697$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4698ac_tool_warned=yes ;;
4699esac
4700    CXX=$ac_ct_CXX
4701  fi
4702fi
4703
4704  fi
4705fi
4706# Provide some information about the compiler.
4707$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4708set X $ac_compile
4709ac_compiler=$2
4710for ac_option in --version -v -V -qversion; do
4711  { { ac_try="$ac_compiler $ac_option >&5"
4712case "(($ac_try" in
4713  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4714  *) ac_try_echo=$ac_try;;
4715esac
4716eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4717$as_echo "$ac_try_echo"; } >&5
4718  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4719  ac_status=$?
4720  if test -s conftest.err; then
4721    sed '10a\
4722... rest of stderr output deleted ...
4723         10q' conftest.err >conftest.er1
4724    cat conftest.er1 >&5
4725  fi
4726  rm -f conftest.er1 conftest.err
4727  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4728  test $ac_status = 0; }
4729done
4730
4731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4732$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4733if ${ac_cv_cxx_compiler_gnu+:} false; then :
4734  $as_echo_n "(cached) " >&6
4735else
4736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737/* end confdefs.h.  */
4738
4739int
4740main ()
4741{
4742#ifndef __GNUC__
4743       choke me
4744#endif
4745
4746  ;
4747  return 0;
4748}
4749_ACEOF
4750if ac_fn_cxx_try_compile "$LINENO"; then :
4751  ac_compiler_gnu=yes
4752else
4753  ac_compiler_gnu=no
4754fi
4755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4756ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4757
4758fi
4759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4760$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4761if test $ac_compiler_gnu = yes; then
4762  GXX=yes
4763else
4764  GXX=
4765fi
4766ac_test_CXXFLAGS=${CXXFLAGS+set}
4767ac_save_CXXFLAGS=$CXXFLAGS
4768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4769$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4770if ${ac_cv_prog_cxx_g+:} false; then :
4771  $as_echo_n "(cached) " >&6
4772else
4773  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4774   ac_cxx_werror_flag=yes
4775   ac_cv_prog_cxx_g=no
4776   CXXFLAGS="-g"
4777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778/* end confdefs.h.  */
4779
4780int
4781main ()
4782{
4783
4784  ;
4785  return 0;
4786}
4787_ACEOF
4788if ac_fn_cxx_try_compile "$LINENO"; then :
4789  ac_cv_prog_cxx_g=yes
4790else
4791  CXXFLAGS=""
4792      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4793/* end confdefs.h.  */
4794
4795int
4796main ()
4797{
4798
4799  ;
4800  return 0;
4801}
4802_ACEOF
4803if ac_fn_cxx_try_compile "$LINENO"; then :
4804
4805else
4806  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4807	 CXXFLAGS="-g"
4808	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4809/* end confdefs.h.  */
4810
4811int
4812main ()
4813{
4814
4815  ;
4816  return 0;
4817}
4818_ACEOF
4819if ac_fn_cxx_try_compile "$LINENO"; then :
4820  ac_cv_prog_cxx_g=yes
4821fi
4822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4823fi
4824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4825fi
4826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4827   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4828fi
4829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4830$as_echo "$ac_cv_prog_cxx_g" >&6; }
4831if test "$ac_test_CXXFLAGS" = set; then
4832  CXXFLAGS=$ac_save_CXXFLAGS
4833elif test $ac_cv_prog_cxx_g = yes; then
4834  if test "$GXX" = yes; then
4835    CXXFLAGS="-g -O2"
4836  else
4837    CXXFLAGS="-g"
4838  fi
4839else
4840  if test "$GXX" = yes; then
4841    CXXFLAGS="-O2"
4842  else
4843    CXXFLAGS=
4844  fi
4845fi
4846ac_ext=c
4847ac_cpp='$CPP $CPPFLAGS'
4848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4850ac_compiler_gnu=$ac_cv_c_compiler_gnu
4851
4852depcc="$CXX"  am_compiler_list=
4853
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4855$as_echo_n "checking dependency style of $depcc... " >&6; }
4856if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4857  $as_echo_n "(cached) " >&6
4858else
4859  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4860  # We make a subdir and do the tests there.  Otherwise we can end up
4861  # making bogus files that we don't know about and never remove.  For
4862  # instance it was reported that on HP-UX the gcc test will end up
4863  # making a dummy file named 'D' -- because '-MD' means "put the output
4864  # in D".
4865  rm -rf conftest.dir
4866  mkdir conftest.dir
4867  # Copy depcomp to subdir because otherwise we won't find it if we're
4868  # using a relative directory.
4869  cp "$am_depcomp" conftest.dir
4870  cd conftest.dir
4871  # We will build objects and dependencies in a subdirectory because
4872  # it helps to detect inapplicable dependency modes.  For instance
4873  # both Tru64's cc and ICC support -MD to output dependencies as a
4874  # side effect of compilation, but ICC will put the dependencies in
4875  # the current directory while Tru64 will put them in the object
4876  # directory.
4877  mkdir sub
4878
4879  am_cv_CXX_dependencies_compiler_type=none
4880  if test "$am_compiler_list" = ""; then
4881     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4882  fi
4883  am__universal=false
4884  case " $depcc " in #(
4885     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4886     esac
4887
4888  for depmode in $am_compiler_list; do
4889    # Setup a source with many dependencies, because some compilers
4890    # like to wrap large dependency lists on column 80 (with \), and
4891    # we should not choose a depcomp mode which is confused by this.
4892    #
4893    # We need to recreate these files for each test, as the compiler may
4894    # overwrite some of them when testing with obscure command lines.
4895    # This happens at least with the AIX C compiler.
4896    : > sub/conftest.c
4897    for i in 1 2 3 4 5 6; do
4898      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4899      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4900      # Solaris 10 /bin/sh.
4901      echo '/* dummy */' > sub/conftst$i.h
4902    done
4903    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4904
4905    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4906    # mode.  It turns out that the SunPro C++ compiler does not properly
4907    # handle '-M -o', and we need to detect this.  Also, some Intel
4908    # versions had trouble with output in subdirs.
4909    am__obj=sub/conftest.${OBJEXT-o}
4910    am__minus_obj="-o $am__obj"
4911    case $depmode in
4912    gcc)
4913      # This depmode causes a compiler race in universal mode.
4914      test "$am__universal" = false || continue
4915      ;;
4916    nosideeffect)
4917      # After this tag, mechanisms are not by side-effect, so they'll
4918      # only be used when explicitly requested.
4919      if test "x$enable_dependency_tracking" = xyes; then
4920	continue
4921      else
4922	break
4923      fi
4924      ;;
4925    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4926      # This compiler won't grok '-c -o', but also, the minuso test has
4927      # not run yet.  These depmodes are late enough in the game, and
4928      # so weak that their functioning should not be impacted.
4929      am__obj=conftest.${OBJEXT-o}
4930      am__minus_obj=
4931      ;;
4932    none) break ;;
4933    esac
4934    if depmode=$depmode \
4935       source=sub/conftest.c object=$am__obj \
4936       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4937       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4938         >/dev/null 2>conftest.err &&
4939       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4940       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4941       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4942       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4943      # icc doesn't choke on unknown options, it will just issue warnings
4944      # or remarks (even with -Werror).  So we grep stderr for any message
4945      # that says an option was ignored or not supported.
4946      # When given -MP, icc 7.0 and 7.1 complain thusly:
4947      #   icc: Command line warning: ignoring option '-M'; no argument required
4948      # The diagnosis changed in icc 8.0:
4949      #   icc: Command line remark: option '-MP' not supported
4950      if (grep 'ignoring option' conftest.err ||
4951          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4952        am_cv_CXX_dependencies_compiler_type=$depmode
4953        break
4954      fi
4955    fi
4956  done
4957
4958  cd ..
4959  rm -rf conftest.dir
4960else
4961  am_cv_CXX_dependencies_compiler_type=none
4962fi
4963
4964fi
4965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4966$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4967CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4968
4969 if
4970  test "x$enable_dependency_tracking" != xno \
4971  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4972  am__fastdepCXX_TRUE=
4973  am__fastdepCXX_FALSE='#'
4974else
4975  am__fastdepCXX_TRUE='#'
4976  am__fastdepCXX_FALSE=
4977fi
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987        if test -n "$PYTHON"; then
4988      # If the user set $PYTHON, use it and don't search something else.
4989      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.7" >&5
4990$as_echo_n "checking whether $PYTHON version is >= 2.7... " >&6; }
4991      prog="import sys
4992# split strings by '.' and convert to numeric.  Append some zeros
4993# because we need at least 4 digits for the hex conversion.
4994# map returns an iterator in Python 3.0 and a list in 2.x
4995minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
4996minverhex = 0
4997# xrange is not present in Python 3.0 and range returns an iterator
4998for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
4999sys.exit(sys.hexversion < minverhex)"
5000  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5001   ($PYTHON -c "$prog") >&5 2>&5
5002   ac_status=$?
5003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004   (exit $ac_status); }; then :
5005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5006$as_echo "yes" >&6; }
5007else
5008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5009$as_echo "no" >&6; }
5010			       as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5011fi
5012      am_display_PYTHON=$PYTHON
5013    else
5014      # Otherwise, try each interpreter until we find one that satisfies
5015      # VERSION.
5016      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
5017$as_echo_n "checking for a Python interpreter with version >= 2.7... " >&6; }
5018if ${am_cv_pathless_PYTHON+:} false; then :
5019  $as_echo_n "(cached) " >&6
5020else
5021
5022	for am_cv_pathless_PYTHON in python python2 python3  python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3  python3.2 python3.1 python3.0  python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1  python2.0 none; do
5023	  test "$am_cv_pathless_PYTHON" = none && break
5024	  prog="import sys
5025# split strings by '.' and convert to numeric.  Append some zeros
5026# because we need at least 4 digits for the hex conversion.
5027# map returns an iterator in Python 3.0 and a list in 2.x
5028minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
5029minverhex = 0
5030# xrange is not present in Python 3.0 and range returns an iterator
5031for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5032sys.exit(sys.hexversion < minverhex)"
5033  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5034   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5035   ac_status=$?
5036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037   (exit $ac_status); }; then :
5038  break
5039fi
5040	done
5041fi
5042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5043$as_echo "$am_cv_pathless_PYTHON" >&6; }
5044      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5045      if test "$am_cv_pathless_PYTHON" = none; then
5046	PYTHON=:
5047      else
5048        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5049set dummy $am_cv_pathless_PYTHON; ac_word=$2
5050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5051$as_echo_n "checking for $ac_word... " >&6; }
5052if ${ac_cv_path_PYTHON+:} false; then :
5053  $as_echo_n "(cached) " >&6
5054else
5055  case $PYTHON in
5056  [\\/]* | ?:[\\/]*)
5057  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5058  ;;
5059  *)
5060  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061for as_dir in $PATH
5062do
5063  IFS=$as_save_IFS
5064  test -z "$as_dir" && as_dir=.
5065    for ac_exec_ext in '' $ac_executable_extensions; do
5066  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5067    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5068    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5069    break 2
5070  fi
5071done
5072  done
5073IFS=$as_save_IFS
5074
5075  ;;
5076esac
5077fi
5078PYTHON=$ac_cv_path_PYTHON
5079if test -n "$PYTHON"; then
5080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5081$as_echo "$PYTHON" >&6; }
5082else
5083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5084$as_echo "no" >&6; }
5085fi
5086
5087
5088      fi
5089      am_display_PYTHON=$am_cv_pathless_PYTHON
5090    fi
5091
5092
5093  if test "$PYTHON" = :; then
5094      as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5095  else
5096
5097
5098  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5099$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5100if ${am_cv_python_version+:} false; then :
5101  $as_echo_n "(cached) " >&6
5102else
5103  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5104fi
5105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5106$as_echo "$am_cv_python_version" >&6; }
5107  PYTHON_VERSION=$am_cv_python_version
5108
5109
5110
5111  PYTHON_PREFIX='${prefix}'
5112
5113  PYTHON_EXEC_PREFIX='${exec_prefix}'
5114
5115
5116
5117  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5118$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5119if ${am_cv_python_platform+:} false; then :
5120  $as_echo_n "(cached) " >&6
5121else
5122  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5123fi
5124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5125$as_echo "$am_cv_python_platform" >&6; }
5126  PYTHON_PLATFORM=$am_cv_python_platform
5127
5128
5129  # Just factor out some code duplication.
5130  am_python_setup_sysconfig="\
5131import sys
5132# Prefer sysconfig over distutils.sysconfig, for better compatibility
5133# with python 3.x.  See automake bug#10227.
5134try:
5135    import sysconfig
5136except ImportError:
5137    can_use_sysconfig = 0
5138else:
5139    can_use_sysconfig = 1
5140# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5141# <https://github.com/pypa/virtualenv/issues/118>
5142try:
5143    from platform import python_implementation
5144    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5145        can_use_sysconfig = 0
5146except ImportError:
5147    pass"
5148
5149
5150            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5151$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5152if ${am_cv_python_pythondir+:} false; then :
5153  $as_echo_n "(cached) " >&6
5154else
5155  if test "x$prefix" = xNONE
5156     then
5157       am_py_prefix=$ac_default_prefix
5158     else
5159       am_py_prefix=$prefix
5160     fi
5161     am_cv_python_pythondir=`$PYTHON -c "
5162$am_python_setup_sysconfig
5163if can_use_sysconfig:
5164    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
5165else:
5166    from distutils import sysconfig
5167    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
5168sys.stdout.write(sitedir)"`
5169     case $am_cv_python_pythondir in
5170     $am_py_prefix*)
5171       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5172       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5173       ;;
5174     *)
5175       case $am_py_prefix in
5176         /usr|/System*) ;;
5177         *)
5178	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
5179	  ;;
5180       esac
5181       ;;
5182     esac
5183
5184fi
5185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5186$as_echo "$am_cv_python_pythondir" >&6; }
5187  pythondir=$am_cv_python_pythondir
5188
5189
5190
5191  pkgpythondir=\${pythondir}/$PACKAGE
5192
5193
5194        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5195$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5196if ${am_cv_python_pyexecdir+:} false; then :
5197  $as_echo_n "(cached) " >&6
5198else
5199  if test "x$exec_prefix" = xNONE
5200     then
5201       am_py_exec_prefix=$am_py_prefix
5202     else
5203       am_py_exec_prefix=$exec_prefix
5204     fi
5205     am_cv_python_pyexecdir=`$PYTHON -c "
5206$am_python_setup_sysconfig
5207if can_use_sysconfig:
5208    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
5209else:
5210    from distutils import sysconfig
5211    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
5212sys.stdout.write(sitedir)"`
5213     case $am_cv_python_pyexecdir in
5214     $am_py_exec_prefix*)
5215       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
5216       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
5217       ;;
5218     *)
5219       case $am_py_exec_prefix in
5220         /usr|/System*) ;;
5221         *)
5222	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
5223	   ;;
5224       esac
5225       ;;
5226     esac
5227
5228fi
5229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5230$as_echo "$am_cv_python_pyexecdir" >&6; }
5231  pyexecdir=$am_cv_python_pyexecdir
5232
5233
5234
5235  pkgpyexecdir=\${pyexecdir}/$PACKAGE
5236
5237
5238
5239  fi
5240
5241
5242sane_save_CC=$CC
5243   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5244$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5245if ${ac_cv_prog_cc_c99+:} false; then :
5246  $as_echo_n "(cached) " >&6
5247else
5248  ac_cv_prog_cc_c99=no
5249ac_save_CC=$CC
5250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5251/* end confdefs.h.  */
5252#include <stdarg.h>
5253#include <stdbool.h>
5254#include <stdlib.h>
5255#include <wchar.h>
5256#include <stdio.h>
5257
5258// Check varargs macros.  These examples are taken from C99 6.10.3.5.
5259#define debug(...) fprintf (stderr, __VA_ARGS__)
5260#define showlist(...) puts (#__VA_ARGS__)
5261#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5262static void
5263test_varargs_macros (void)
5264{
5265  int x = 1234;
5266  int y = 5678;
5267  debug ("Flag");
5268  debug ("X = %d\n", x);
5269  showlist (The first, second, and third items.);
5270  report (x>y, "x is %d but y is %d", x, y);
5271}
5272
5273// Check long long types.
5274#define BIG64 18446744073709551615ull
5275#define BIG32 4294967295ul
5276#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5277#if !BIG_OK
5278  your preprocessor is broken;
5279#endif
5280#if BIG_OK
5281#else
5282  your preprocessor is broken;
5283#endif
5284static long long int bignum = -9223372036854775807LL;
5285static unsigned long long int ubignum = BIG64;
5286
5287struct incomplete_array
5288{
5289  int datasize;
5290  double data[];
5291};
5292
5293struct named_init {
5294  int number;
5295  const wchar_t *name;
5296  double average;
5297};
5298
5299typedef const char *ccp;
5300
5301static inline int
5302test_restrict (ccp restrict text)
5303{
5304  // See if C++-style comments work.
5305  // Iterate through items via the restricted pointer.
5306  // Also check for declarations in for loops.
5307  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5308    continue;
5309  return 0;
5310}
5311
5312// Check varargs and va_copy.
5313static void
5314test_varargs (const char *format, ...)
5315{
5316  va_list args;
5317  va_start (args, format);
5318  va_list args_copy;
5319  va_copy (args_copy, args);
5320
5321  const char *str;
5322  int number;
5323  float fnumber;
5324
5325  while (*format)
5326    {
5327      switch (*format++)
5328	{
5329	case 's': // string
5330	  str = va_arg (args_copy, const char *);
5331	  break;
5332	case 'd': // int
5333	  number = va_arg (args_copy, int);
5334	  break;
5335	case 'f': // float
5336	  fnumber = va_arg (args_copy, double);
5337	  break;
5338	default:
5339	  break;
5340	}
5341    }
5342  va_end (args_copy);
5343  va_end (args);
5344}
5345
5346int
5347main ()
5348{
5349
5350  // Check bool.
5351  _Bool success = false;
5352
5353  // Check restrict.
5354  if (test_restrict ("String literal") == 0)
5355    success = true;
5356  char *restrict newvar = "Another string";
5357
5358  // Check varargs.
5359  test_varargs ("s, d' f .", "string", 65, 34.234);
5360  test_varargs_macros ();
5361
5362  // Check flexible array members.
5363  struct incomplete_array *ia =
5364    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5365  ia->datasize = 10;
5366  for (int i = 0; i < ia->datasize; ++i)
5367    ia->data[i] = i * 1.234;
5368
5369  // Check named initializers.
5370  struct named_init ni = {
5371    .number = 34,
5372    .name = L"Test wide string",
5373    .average = 543.34343,
5374  };
5375
5376  ni.number = 58;
5377
5378  int dynamic_array[ni.number];
5379  dynamic_array[ni.number - 1] = 543;
5380
5381  // work around unused variable warnings
5382  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5383	  || dynamic_array[ni.number - 1] != 543);
5384
5385  ;
5386  return 0;
5387}
5388_ACEOF
5389for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5390do
5391  CC="$ac_save_CC $ac_arg"
5392  if ac_fn_c_try_compile "$LINENO"; then :
5393  ac_cv_prog_cc_c99=$ac_arg
5394fi
5395rm -f core conftest.err conftest.$ac_objext
5396  test "x$ac_cv_prog_cc_c99" != "xno" && break
5397done
5398rm -f conftest.$ac_ext
5399CC=$ac_save_CC
5400
5401fi
5402# AC_CACHE_VAL
5403case "x$ac_cv_prog_cc_c99" in
5404  x)
5405    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5406$as_echo "none needed" >&6; } ;;
5407  xno)
5408    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5409$as_echo "unsupported" >&6; } ;;
5410  *)
5411    CC="$CC $ac_cv_prog_cc_c99"
5412    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5413$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5414esac
5415if test "x$ac_cv_prog_cc_c99" != xno; then :
5416
5417fi
5418
5419                  if test xno != "x$ac_cv_prog_cc_c99"; then :
5420  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sane_save_CC option for ISO C99 w/o extensions" >&5
5421$as_echo_n "checking for $sane_save_CC option for ISO C99 w/o extensions... " >&6; }
5422       case $ac_cv_prog_cc_c99 in #(
5423  -std=gnu99) :
5424    sane_prog_cc_c99="-std=c99" ;; #(
5425  -qlanglvl=extc99) :
5426    sane_prog_cc_c99="-qlanglvl=stdc99" ;; #(
5427  *) :
5428     ;;
5429esac
5430       if test "x$ac_cv_prog_cc_c99" = "x$sane_prog_cc_c99"; then :
5431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_99" >&5
5432$as_echo "$ac_cv_prog_cc_99" >&6; }
5433else
5434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_prog_cc_c99" >&5
5435$as_echo "$sane_prog_cc_c99" >&6; }
5436              CC="$sane_save_CC $sane_prog_cc_c99"
5437fi
5438
5439fi
5440
5441ac_ext=c
5442ac_cpp='$CPP $CPPFLAGS'
5443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5445ac_compiler_gnu=$ac_cv_c_compiler_gnu
5446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5447$as_echo_n "checking how to run the C preprocessor... " >&6; }
5448# On Suns, sometimes $CPP names a directory.
5449if test -n "$CPP" && test -d "$CPP"; then
5450  CPP=
5451fi
5452if test -z "$CPP"; then
5453  if ${ac_cv_prog_CPP+:} false; then :
5454  $as_echo_n "(cached) " >&6
5455else
5456      # Double quotes because CPP needs to be expanded
5457    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5458    do
5459      ac_preproc_ok=false
5460for ac_c_preproc_warn_flag in '' yes
5461do
5462  # Use a header file that comes with gcc, so configuring glibc
5463  # with a fresh cross-compiler works.
5464  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5465  # <limits.h> exists even on freestanding compilers.
5466  # On the NeXT, cc -E runs the code through the compiler's parser,
5467  # not just through cpp. "Syntax error" is here to catch this case.
5468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469/* end confdefs.h.  */
5470#ifdef __STDC__
5471# include <limits.h>
5472#else
5473# include <assert.h>
5474#endif
5475		     Syntax error
5476_ACEOF
5477if ac_fn_c_try_cpp "$LINENO"; then :
5478
5479else
5480  # Broken: fails on valid input.
5481continue
5482fi
5483rm -f conftest.err conftest.i conftest.$ac_ext
5484
5485  # OK, works on sane cases.  Now check whether nonexistent headers
5486  # can be detected and how.
5487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5488/* end confdefs.h.  */
5489#include <ac_nonexistent.h>
5490_ACEOF
5491if ac_fn_c_try_cpp "$LINENO"; then :
5492  # Broken: success on invalid input.
5493continue
5494else
5495  # Passes both tests.
5496ac_preproc_ok=:
5497break
5498fi
5499rm -f conftest.err conftest.i conftest.$ac_ext
5500
5501done
5502# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5503rm -f conftest.i conftest.err conftest.$ac_ext
5504if $ac_preproc_ok; then :
5505  break
5506fi
5507
5508    done
5509    ac_cv_prog_CPP=$CPP
5510
5511fi
5512  CPP=$ac_cv_prog_CPP
5513else
5514  ac_cv_prog_CPP=$CPP
5515fi
5516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5517$as_echo "$CPP" >&6; }
5518ac_preproc_ok=false
5519for ac_c_preproc_warn_flag in '' yes
5520do
5521  # Use a header file that comes with gcc, so configuring glibc
5522  # with a fresh cross-compiler works.
5523  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5524  # <limits.h> exists even on freestanding compilers.
5525  # On the NeXT, cc -E runs the code through the compiler's parser,
5526  # not just through cpp. "Syntax error" is here to catch this case.
5527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5528/* end confdefs.h.  */
5529#ifdef __STDC__
5530# include <limits.h>
5531#else
5532# include <assert.h>
5533#endif
5534		     Syntax error
5535_ACEOF
5536if ac_fn_c_try_cpp "$LINENO"; then :
5537
5538else
5539  # Broken: fails on valid input.
5540continue
5541fi
5542rm -f conftest.err conftest.i conftest.$ac_ext
5543
5544  # OK, works on sane cases.  Now check whether nonexistent headers
5545  # can be detected and how.
5546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5547/* end confdefs.h.  */
5548#include <ac_nonexistent.h>
5549_ACEOF
5550if ac_fn_c_try_cpp "$LINENO"; then :
5551  # Broken: success on invalid input.
5552continue
5553else
5554  # Passes both tests.
5555ac_preproc_ok=:
5556break
5557fi
5558rm -f conftest.err conftest.i conftest.$ac_ext
5559
5560done
5561# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5562rm -f conftest.i conftest.err conftest.$ac_ext
5563if $ac_preproc_ok; then :
5564
5565else
5566  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5567$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5568as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5569See \`config.log' for more details" "$LINENO" 5; }
5570fi
5571
5572ac_ext=c
5573ac_cpp='$CPP $CPPFLAGS'
5574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5576ac_compiler_gnu=$ac_cv_c_compiler_gnu
5577
5578
5579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5580$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5581if ${ac_cv_path_GREP+:} false; then :
5582  $as_echo_n "(cached) " >&6
5583else
5584  if test -z "$GREP"; then
5585  ac_path_GREP_found=false
5586  # Loop through the user's path and test for each of PROGNAME-LIST
5587  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5588for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5589do
5590  IFS=$as_save_IFS
5591  test -z "$as_dir" && as_dir=.
5592    for ac_prog in grep ggrep; do
5593    for ac_exec_ext in '' $ac_executable_extensions; do
5594      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5595      as_fn_executable_p "$ac_path_GREP" || continue
5596# Check for GNU ac_path_GREP and select it if it is found.
5597  # Check for GNU $ac_path_GREP
5598case `"$ac_path_GREP" --version 2>&1` in
5599*GNU*)
5600  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5601*)
5602  ac_count=0
5603  $as_echo_n 0123456789 >"conftest.in"
5604  while :
5605  do
5606    cat "conftest.in" "conftest.in" >"conftest.tmp"
5607    mv "conftest.tmp" "conftest.in"
5608    cp "conftest.in" "conftest.nl"
5609    $as_echo 'GREP' >> "conftest.nl"
5610    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5611    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5612    as_fn_arith $ac_count + 1 && ac_count=$as_val
5613    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5614      # Best one so far, save it but keep looking for a better one
5615      ac_cv_path_GREP="$ac_path_GREP"
5616      ac_path_GREP_max=$ac_count
5617    fi
5618    # 10*(2^10) chars as input seems more than enough
5619    test $ac_count -gt 10 && break
5620  done
5621  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5622esac
5623
5624      $ac_path_GREP_found && break 3
5625    done
5626  done
5627  done
5628IFS=$as_save_IFS
5629  if test -z "$ac_cv_path_GREP"; then
5630    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5631  fi
5632else
5633  ac_cv_path_GREP=$GREP
5634fi
5635
5636fi
5637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5638$as_echo "$ac_cv_path_GREP" >&6; }
5639 GREP="$ac_cv_path_GREP"
5640
5641
5642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5643$as_echo_n "checking for egrep... " >&6; }
5644if ${ac_cv_path_EGREP+:} false; then :
5645  $as_echo_n "(cached) " >&6
5646else
5647  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5648   then ac_cv_path_EGREP="$GREP -E"
5649   else
5650     if test -z "$EGREP"; then
5651  ac_path_EGREP_found=false
5652  # Loop through the user's path and test for each of PROGNAME-LIST
5653  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5655do
5656  IFS=$as_save_IFS
5657  test -z "$as_dir" && as_dir=.
5658    for ac_prog in egrep; do
5659    for ac_exec_ext in '' $ac_executable_extensions; do
5660      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5661      as_fn_executable_p "$ac_path_EGREP" || continue
5662# Check for GNU ac_path_EGREP and select it if it is found.
5663  # Check for GNU $ac_path_EGREP
5664case `"$ac_path_EGREP" --version 2>&1` in
5665*GNU*)
5666  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5667*)
5668  ac_count=0
5669  $as_echo_n 0123456789 >"conftest.in"
5670  while :
5671  do
5672    cat "conftest.in" "conftest.in" >"conftest.tmp"
5673    mv "conftest.tmp" "conftest.in"
5674    cp "conftest.in" "conftest.nl"
5675    $as_echo 'EGREP' >> "conftest.nl"
5676    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5677    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5678    as_fn_arith $ac_count + 1 && ac_count=$as_val
5679    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5680      # Best one so far, save it but keep looking for a better one
5681      ac_cv_path_EGREP="$ac_path_EGREP"
5682      ac_path_EGREP_max=$ac_count
5683    fi
5684    # 10*(2^10) chars as input seems more than enough
5685    test $ac_count -gt 10 && break
5686  done
5687  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5688esac
5689
5690      $ac_path_EGREP_found && break 3
5691    done
5692  done
5693  done
5694IFS=$as_save_IFS
5695  if test -z "$ac_cv_path_EGREP"; then
5696    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5697  fi
5698else
5699  ac_cv_path_EGREP=$EGREP
5700fi
5701
5702   fi
5703fi
5704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5705$as_echo "$ac_cv_path_EGREP" >&6; }
5706 EGREP="$ac_cv_path_EGREP"
5707
5708
5709if test $ac_cv_c_compiler_gnu = yes; then
5710    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
5711$as_echo_n "checking whether $CC needs -traditional... " >&6; }
5712if ${ac_cv_prog_gcc_traditional+:} false; then :
5713  $as_echo_n "(cached) " >&6
5714else
5715    ac_pattern="Autoconf.*'x'"
5716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5717/* end confdefs.h.  */
5718#include <sgtty.h>
5719Autoconf TIOCGETP
5720_ACEOF
5721if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5722  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5723  ac_cv_prog_gcc_traditional=yes
5724else
5725  ac_cv_prog_gcc_traditional=no
5726fi
5727rm -f conftest*
5728
5729
5730  if test $ac_cv_prog_gcc_traditional = no; then
5731    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5732/* end confdefs.h.  */
5733#include <termio.h>
5734Autoconf TCGETA
5735_ACEOF
5736if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5737  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5738  ac_cv_prog_gcc_traditional=yes
5739fi
5740rm -f conftest*
5741
5742  fi
5743fi
5744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
5745$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
5746  if test $ac_cv_prog_gcc_traditional = yes; then
5747    CC="$CC -traditional"
5748  fi
5749fi
5750
5751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5752$as_echo_n "checking for ANSI C header files... " >&6; }
5753if ${ac_cv_header_stdc+:} false; then :
5754  $as_echo_n "(cached) " >&6
5755else
5756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5757/* end confdefs.h.  */
5758#include <stdlib.h>
5759#include <stdarg.h>
5760#include <string.h>
5761#include <float.h>
5762
5763int
5764main ()
5765{
5766
5767  ;
5768  return 0;
5769}
5770_ACEOF
5771if ac_fn_c_try_compile "$LINENO"; then :
5772  ac_cv_header_stdc=yes
5773else
5774  ac_cv_header_stdc=no
5775fi
5776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5777
5778if test $ac_cv_header_stdc = yes; then
5779  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5781/* end confdefs.h.  */
5782#include <string.h>
5783
5784_ACEOF
5785if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5786  $EGREP "memchr" >/dev/null 2>&1; then :
5787
5788else
5789  ac_cv_header_stdc=no
5790fi
5791rm -f conftest*
5792
5793fi
5794
5795if test $ac_cv_header_stdc = yes; then
5796  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5798/* end confdefs.h.  */
5799#include <stdlib.h>
5800
5801_ACEOF
5802if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5803  $EGREP "free" >/dev/null 2>&1; then :
5804
5805else
5806  ac_cv_header_stdc=no
5807fi
5808rm -f conftest*
5809
5810fi
5811
5812if test $ac_cv_header_stdc = yes; then
5813  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5814  if test "$cross_compiling" = yes; then :
5815  :
5816else
5817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5818/* end confdefs.h.  */
5819#include <ctype.h>
5820#include <stdlib.h>
5821#if ((' ' & 0x0FF) == 0x020)
5822# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5823# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5824#else
5825# define ISLOWER(c) \
5826		   (('a' <= (c) && (c) <= 'i') \
5827		     || ('j' <= (c) && (c) <= 'r') \
5828		     || ('s' <= (c) && (c) <= 'z'))
5829# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5830#endif
5831
5832#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5833int
5834main ()
5835{
5836  int i;
5837  for (i = 0; i < 256; i++)
5838    if (XOR (islower (i), ISLOWER (i))
5839	|| toupper (i) != TOUPPER (i))
5840      return 2;
5841  return 0;
5842}
5843_ACEOF
5844if ac_fn_c_try_run "$LINENO"; then :
5845
5846else
5847  ac_cv_header_stdc=no
5848fi
5849rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5850  conftest.$ac_objext conftest.beam conftest.$ac_ext
5851fi
5852
5853fi
5854fi
5855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5856$as_echo "$ac_cv_header_stdc" >&6; }
5857if test $ac_cv_header_stdc = yes; then
5858
5859$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5860
5861fi
5862
5863# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5864for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5865		  inttypes.h stdint.h unistd.h
5866do :
5867  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5868ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5869"
5870if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5871  cat >>confdefs.h <<_ACEOF
5872#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5873_ACEOF
5874
5875fi
5876
5877done
5878
5879
5880
5881  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5882if test "x$ac_cv_header_minix_config_h" = xyes; then :
5883  MINIX=yes
5884else
5885  MINIX=
5886fi
5887
5888
5889  if test "$MINIX" = yes; then
5890
5891$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5892
5893
5894$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5895
5896
5897$as_echo "#define _MINIX 1" >>confdefs.h
5898
5899  fi
5900
5901
5902  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5903$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5904if ${ac_cv_safe_to_define___extensions__+:} false; then :
5905  $as_echo_n "(cached) " >&6
5906else
5907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5908/* end confdefs.h.  */
5909
5910#         define __EXTENSIONS__ 1
5911          $ac_includes_default
5912int
5913main ()
5914{
5915
5916  ;
5917  return 0;
5918}
5919_ACEOF
5920if ac_fn_c_try_compile "$LINENO"; then :
5921  ac_cv_safe_to_define___extensions__=yes
5922else
5923  ac_cv_safe_to_define___extensions__=no
5924fi
5925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5926fi
5927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5928$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5929  test $ac_cv_safe_to_define___extensions__ = yes &&
5930    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5931
5932  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5933
5934  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5935
5936  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5937
5938  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5939
5940
5941if test -n "$ac_tool_prefix"; then
5942  for ac_prog in ar lib "link -lib"
5943  do
5944    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5945set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5947$as_echo_n "checking for $ac_word... " >&6; }
5948if ${ac_cv_prog_AR+:} false; then :
5949  $as_echo_n "(cached) " >&6
5950else
5951  if test -n "$AR"; then
5952  ac_cv_prog_AR="$AR" # Let the user override the test.
5953else
5954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955for as_dir in $PATH
5956do
5957  IFS=$as_save_IFS
5958  test -z "$as_dir" && as_dir=.
5959    for ac_exec_ext in '' $ac_executable_extensions; do
5960  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5961    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5962    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5963    break 2
5964  fi
5965done
5966  done
5967IFS=$as_save_IFS
5968
5969fi
5970fi
5971AR=$ac_cv_prog_AR
5972if test -n "$AR"; then
5973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5974$as_echo "$AR" >&6; }
5975else
5976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5977$as_echo "no" >&6; }
5978fi
5979
5980
5981    test -n "$AR" && break
5982  done
5983fi
5984if test -z "$AR"; then
5985  ac_ct_AR=$AR
5986  for ac_prog in ar lib "link -lib"
5987do
5988  # Extract the first word of "$ac_prog", so it can be a program name with args.
5989set dummy $ac_prog; ac_word=$2
5990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5991$as_echo_n "checking for $ac_word... " >&6; }
5992if ${ac_cv_prog_ac_ct_AR+:} false; then :
5993  $as_echo_n "(cached) " >&6
5994else
5995  if test -n "$ac_ct_AR"; then
5996  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5997else
5998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999for as_dir in $PATH
6000do
6001  IFS=$as_save_IFS
6002  test -z "$as_dir" && as_dir=.
6003    for ac_exec_ext in '' $ac_executable_extensions; do
6004  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6005    ac_cv_prog_ac_ct_AR="$ac_prog"
6006    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6007    break 2
6008  fi
6009done
6010  done
6011IFS=$as_save_IFS
6012
6013fi
6014fi
6015ac_ct_AR=$ac_cv_prog_ac_ct_AR
6016if test -n "$ac_ct_AR"; then
6017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6018$as_echo "$ac_ct_AR" >&6; }
6019else
6020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6021$as_echo "no" >&6; }
6022fi
6023
6024
6025  test -n "$ac_ct_AR" && break
6026done
6027
6028  if test "x$ac_ct_AR" = x; then
6029    AR="false"
6030  else
6031    case $cross_compiling:$ac_tool_warned in
6032yes:)
6033{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6034$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6035ac_tool_warned=yes ;;
6036esac
6037    AR=$ac_ct_AR
6038  fi
6039fi
6040
6041: ${AR=ar}
6042
6043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6044$as_echo_n "checking the archiver ($AR) interface... " >&6; }
6045if ${am_cv_ar_interface+:} false; then :
6046  $as_echo_n "(cached) " >&6
6047else
6048  ac_ext=c
6049ac_cpp='$CPP $CPPFLAGS'
6050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6052ac_compiler_gnu=$ac_cv_c_compiler_gnu
6053
6054   am_cv_ar_interface=ar
6055   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6056/* end confdefs.h.  */
6057int some_variable = 0;
6058_ACEOF
6059if ac_fn_c_try_compile "$LINENO"; then :
6060  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6061      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6062  (eval $am_ar_try) 2>&5
6063  ac_status=$?
6064  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6065  test $ac_status = 0; }
6066      if test "$ac_status" -eq 0; then
6067        am_cv_ar_interface=ar
6068      else
6069        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6070        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6071  (eval $am_ar_try) 2>&5
6072  ac_status=$?
6073  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6074  test $ac_status = 0; }
6075        if test "$ac_status" -eq 0; then
6076          am_cv_ar_interface=lib
6077        else
6078          am_cv_ar_interface=unknown
6079        fi
6080      fi
6081      rm -f conftest.lib libconftest.a
6082
6083fi
6084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6085   ac_ext=c
6086ac_cpp='$CPP $CPPFLAGS'
6087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6089ac_compiler_gnu=$ac_cv_c_compiler_gnu
6090
6091fi
6092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6093$as_echo "$am_cv_ar_interface" >&6; }
6094
6095case $am_cv_ar_interface in
6096ar)
6097  ;;
6098lib)
6099  # Microsoft lib, so override with the ar-lib wrapper script.
6100  # FIXME: It is wrong to rewrite AR.
6101  # But if we don't then we get into trouble of one sort or another.
6102  # A longer-term fix would be to have automake use am__AR in this case,
6103  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6104  # similar.
6105  AR="$am_aux_dir/ar-lib $AR"
6106  ;;
6107unknown)
6108  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6109  ;;
6110esac
6111
6112case `pwd` in
6113  *\ * | *\	*)
6114    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6115$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6116esac
6117
6118
6119
6120macro_version='2.4.6'
6121macro_revision='2.4.6'
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135ltmain=$ac_aux_dir/ltmain.sh
6136
6137# Make sure we can run config.sub.
6138$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6139  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6140
6141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6142$as_echo_n "checking build system type... " >&6; }
6143if ${ac_cv_build+:} false; then :
6144  $as_echo_n "(cached) " >&6
6145else
6146  ac_build_alias=$build_alias
6147test "x$ac_build_alias" = x &&
6148  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6149test "x$ac_build_alias" = x &&
6150  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6151ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6152  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6153
6154fi
6155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6156$as_echo "$ac_cv_build" >&6; }
6157case $ac_cv_build in
6158*-*-*) ;;
6159*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6160esac
6161build=$ac_cv_build
6162ac_save_IFS=$IFS; IFS='-'
6163set x $ac_cv_build
6164shift
6165build_cpu=$1
6166build_vendor=$2
6167shift; shift
6168# Remember, the first character of IFS is used to create $*,
6169# except with old shells:
6170build_os=$*
6171IFS=$ac_save_IFS
6172case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6173
6174
6175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6176$as_echo_n "checking host system type... " >&6; }
6177if ${ac_cv_host+:} false; then :
6178  $as_echo_n "(cached) " >&6
6179else
6180  if test "x$host_alias" = x; then
6181  ac_cv_host=$ac_cv_build
6182else
6183  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6184    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6185fi
6186
6187fi
6188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6189$as_echo "$ac_cv_host" >&6; }
6190case $ac_cv_host in
6191*-*-*) ;;
6192*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6193esac
6194host=$ac_cv_host
6195ac_save_IFS=$IFS; IFS='-'
6196set x $ac_cv_host
6197shift
6198host_cpu=$1
6199host_vendor=$2
6200shift; shift
6201# Remember, the first character of IFS is used to create $*,
6202# except with old shells:
6203host_os=$*
6204IFS=$ac_save_IFS
6205case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6206
6207
6208# Backslashify metacharacters that are still active within
6209# double-quoted strings.
6210sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6211
6212# Same as above, but do not quote variable references.
6213double_quote_subst='s/\(["`\\]\)/\\\1/g'
6214
6215# Sed substitution to delay expansion of an escaped shell variable in a
6216# double_quote_subst'ed string.
6217delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6218
6219# Sed substitution to delay expansion of an escaped single quote.
6220delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6221
6222# Sed substitution to avoid accidental globbing in evaled expressions
6223no_glob_subst='s/\*/\\\*/g'
6224
6225ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6226ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6227ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6228
6229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6230$as_echo_n "checking how to print strings... " >&6; }
6231# Test print first, because it will be a builtin if present.
6232if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6233   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6234  ECHO='print -r --'
6235elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6236  ECHO='printf %s\n'
6237else
6238  # Use this function as a fallback that always works.
6239  func_fallback_echo ()
6240  {
6241    eval 'cat <<_LTECHO_EOF
6242$1
6243_LTECHO_EOF'
6244  }
6245  ECHO='func_fallback_echo'
6246fi
6247
6248# func_echo_all arg...
6249# Invoke $ECHO with all args, space-separated.
6250func_echo_all ()
6251{
6252    $ECHO ""
6253}
6254
6255case $ECHO in
6256  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6257$as_echo "printf" >&6; } ;;
6258  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6259$as_echo "print -r" >&6; } ;;
6260  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6261$as_echo "cat" >&6; } ;;
6262esac
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6278$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6279if ${ac_cv_path_SED+:} false; then :
6280  $as_echo_n "(cached) " >&6
6281else
6282            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6283     for ac_i in 1 2 3 4 5 6 7; do
6284       ac_script="$ac_script$as_nl$ac_script"
6285     done
6286     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6287     { ac_script=; unset ac_script;}
6288     if test -z "$SED"; then
6289  ac_path_SED_found=false
6290  # Loop through the user's path and test for each of PROGNAME-LIST
6291  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292for as_dir in $PATH
6293do
6294  IFS=$as_save_IFS
6295  test -z "$as_dir" && as_dir=.
6296    for ac_prog in sed gsed; do
6297    for ac_exec_ext in '' $ac_executable_extensions; do
6298      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6299      as_fn_executable_p "$ac_path_SED" || continue
6300# Check for GNU ac_path_SED and select it if it is found.
6301  # Check for GNU $ac_path_SED
6302case `"$ac_path_SED" --version 2>&1` in
6303*GNU*)
6304  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6305*)
6306  ac_count=0
6307  $as_echo_n 0123456789 >"conftest.in"
6308  while :
6309  do
6310    cat "conftest.in" "conftest.in" >"conftest.tmp"
6311    mv "conftest.tmp" "conftest.in"
6312    cp "conftest.in" "conftest.nl"
6313    $as_echo '' >> "conftest.nl"
6314    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6315    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6316    as_fn_arith $ac_count + 1 && ac_count=$as_val
6317    if test $ac_count -gt ${ac_path_SED_max-0}; then
6318      # Best one so far, save it but keep looking for a better one
6319      ac_cv_path_SED="$ac_path_SED"
6320      ac_path_SED_max=$ac_count
6321    fi
6322    # 10*(2^10) chars as input seems more than enough
6323    test $ac_count -gt 10 && break
6324  done
6325  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6326esac
6327
6328      $ac_path_SED_found && break 3
6329    done
6330  done
6331  done
6332IFS=$as_save_IFS
6333  if test -z "$ac_cv_path_SED"; then
6334    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6335  fi
6336else
6337  ac_cv_path_SED=$SED
6338fi
6339
6340fi
6341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6342$as_echo "$ac_cv_path_SED" >&6; }
6343 SED="$ac_cv_path_SED"
6344  rm -f conftest.sed
6345
6346test -z "$SED" && SED=sed
6347Xsed="$SED -e 1s/^X//"
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6360$as_echo_n "checking for fgrep... " >&6; }
6361if ${ac_cv_path_FGREP+:} false; then :
6362  $as_echo_n "(cached) " >&6
6363else
6364  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6365   then ac_cv_path_FGREP="$GREP -F"
6366   else
6367     if test -z "$FGREP"; then
6368  ac_path_FGREP_found=false
6369  # Loop through the user's path and test for each of PROGNAME-LIST
6370  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6372do
6373  IFS=$as_save_IFS
6374  test -z "$as_dir" && as_dir=.
6375    for ac_prog in fgrep; do
6376    for ac_exec_ext in '' $ac_executable_extensions; do
6377      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6378      as_fn_executable_p "$ac_path_FGREP" || continue
6379# Check for GNU ac_path_FGREP and select it if it is found.
6380  # Check for GNU $ac_path_FGREP
6381case `"$ac_path_FGREP" --version 2>&1` in
6382*GNU*)
6383  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6384*)
6385  ac_count=0
6386  $as_echo_n 0123456789 >"conftest.in"
6387  while :
6388  do
6389    cat "conftest.in" "conftest.in" >"conftest.tmp"
6390    mv "conftest.tmp" "conftest.in"
6391    cp "conftest.in" "conftest.nl"
6392    $as_echo 'FGREP' >> "conftest.nl"
6393    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6394    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6395    as_fn_arith $ac_count + 1 && ac_count=$as_val
6396    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6397      # Best one so far, save it but keep looking for a better one
6398      ac_cv_path_FGREP="$ac_path_FGREP"
6399      ac_path_FGREP_max=$ac_count
6400    fi
6401    # 10*(2^10) chars as input seems more than enough
6402    test $ac_count -gt 10 && break
6403  done
6404  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6405esac
6406
6407      $ac_path_FGREP_found && break 3
6408    done
6409  done
6410  done
6411IFS=$as_save_IFS
6412  if test -z "$ac_cv_path_FGREP"; then
6413    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6414  fi
6415else
6416  ac_cv_path_FGREP=$FGREP
6417fi
6418
6419   fi
6420fi
6421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6422$as_echo "$ac_cv_path_FGREP" >&6; }
6423 FGREP="$ac_cv_path_FGREP"
6424
6425
6426test -z "$GREP" && GREP=grep
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446# Check whether --with-gnu-ld was given.
6447if test "${with_gnu_ld+set}" = set; then :
6448  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6449else
6450  with_gnu_ld=no
6451fi
6452
6453ac_prog=ld
6454if test yes = "$GCC"; then
6455  # Check if gcc -print-prog-name=ld gives a path.
6456  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6457$as_echo_n "checking for ld used by $CC... " >&6; }
6458  case $host in
6459  *-*-mingw*)
6460    # gcc leaves a trailing carriage return, which upsets mingw
6461    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6462  *)
6463    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6464  esac
6465  case $ac_prog in
6466    # Accept absolute paths.
6467    [\\/]* | ?:[\\/]*)
6468      re_direlt='/[^/][^/]*/\.\./'
6469      # Canonicalize the pathname of ld
6470      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6471      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6472	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6473      done
6474      test -z "$LD" && LD=$ac_prog
6475      ;;
6476  "")
6477    # If it fails, then pretend we aren't using GCC.
6478    ac_prog=ld
6479    ;;
6480  *)
6481    # If it is relative, then search for the first ld in PATH.
6482    with_gnu_ld=unknown
6483    ;;
6484  esac
6485elif test yes = "$with_gnu_ld"; then
6486  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6487$as_echo_n "checking for GNU ld... " >&6; }
6488else
6489  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6490$as_echo_n "checking for non-GNU ld... " >&6; }
6491fi
6492if ${lt_cv_path_LD+:} false; then :
6493  $as_echo_n "(cached) " >&6
6494else
6495  if test -z "$LD"; then
6496  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6497  for ac_dir in $PATH; do
6498    IFS=$lt_save_ifs
6499    test -z "$ac_dir" && ac_dir=.
6500    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6501      lt_cv_path_LD=$ac_dir/$ac_prog
6502      # Check to see if the program is GNU ld.  I'd rather use --version,
6503      # but apparently some variants of GNU ld only accept -v.
6504      # Break only if it was the GNU/non-GNU ld that we prefer.
6505      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6506      *GNU* | *'with BFD'*)
6507	test no != "$with_gnu_ld" && break
6508	;;
6509      *)
6510	test yes != "$with_gnu_ld" && break
6511	;;
6512      esac
6513    fi
6514  done
6515  IFS=$lt_save_ifs
6516else
6517  lt_cv_path_LD=$LD # Let the user override the test with a path.
6518fi
6519fi
6520
6521LD=$lt_cv_path_LD
6522if test -n "$LD"; then
6523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6524$as_echo "$LD" >&6; }
6525else
6526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6527$as_echo "no" >&6; }
6528fi
6529test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6531$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6532if ${lt_cv_prog_gnu_ld+:} false; then :
6533  $as_echo_n "(cached) " >&6
6534else
6535  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6536case `$LD -v 2>&1 </dev/null` in
6537*GNU* | *'with BFD'*)
6538  lt_cv_prog_gnu_ld=yes
6539  ;;
6540*)
6541  lt_cv_prog_gnu_ld=no
6542  ;;
6543esac
6544fi
6545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6546$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6547with_gnu_ld=$lt_cv_prog_gnu_ld
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6558$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6559if ${lt_cv_path_NM+:} false; then :
6560  $as_echo_n "(cached) " >&6
6561else
6562  if test -n "$NM"; then
6563  # Let the user override the test.
6564  lt_cv_path_NM=$NM
6565else
6566  lt_nm_to_check=${ac_tool_prefix}nm
6567  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6568    lt_nm_to_check="$lt_nm_to_check nm"
6569  fi
6570  for lt_tmp_nm in $lt_nm_to_check; do
6571    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6572    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6573      IFS=$lt_save_ifs
6574      test -z "$ac_dir" && ac_dir=.
6575      tmp_nm=$ac_dir/$lt_tmp_nm
6576      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6577	# Check to see if the nm accepts a BSD-compat flag.
6578	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6579	#   nm: unknown option "B" ignored
6580	# Tru64's nm complains that /dev/null is an invalid object file
6581	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6582	case $build_os in
6583	mingw*) lt_bad_file=conftest.nm/nofile ;;
6584	*) lt_bad_file=/dev/null ;;
6585	esac
6586	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6587	*$lt_bad_file* | *'Invalid file or object type'*)
6588	  lt_cv_path_NM="$tmp_nm -B"
6589	  break 2
6590	  ;;
6591	*)
6592	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6593	  */dev/null*)
6594	    lt_cv_path_NM="$tmp_nm -p"
6595	    break 2
6596	    ;;
6597	  *)
6598	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6599	    continue # so that we can try to find one that supports BSD flags
6600	    ;;
6601	  esac
6602	  ;;
6603	esac
6604      fi
6605    done
6606    IFS=$lt_save_ifs
6607  done
6608  : ${lt_cv_path_NM=no}
6609fi
6610fi
6611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6612$as_echo "$lt_cv_path_NM" >&6; }
6613if test no != "$lt_cv_path_NM"; then
6614  NM=$lt_cv_path_NM
6615else
6616  # Didn't find any BSD compatible name lister, look for dumpbin.
6617  if test -n "$DUMPBIN"; then :
6618    # Let the user override the test.
6619  else
6620    if test -n "$ac_tool_prefix"; then
6621  for ac_prog in dumpbin "link -dump"
6622  do
6623    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6624set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6626$as_echo_n "checking for $ac_word... " >&6; }
6627if ${ac_cv_prog_DUMPBIN+:} false; then :
6628  $as_echo_n "(cached) " >&6
6629else
6630  if test -n "$DUMPBIN"; then
6631  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6632else
6633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634for as_dir in $PATH
6635do
6636  IFS=$as_save_IFS
6637  test -z "$as_dir" && as_dir=.
6638    for ac_exec_ext in '' $ac_executable_extensions; do
6639  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6640    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6641    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6642    break 2
6643  fi
6644done
6645  done
6646IFS=$as_save_IFS
6647
6648fi
6649fi
6650DUMPBIN=$ac_cv_prog_DUMPBIN
6651if test -n "$DUMPBIN"; then
6652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6653$as_echo "$DUMPBIN" >&6; }
6654else
6655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6656$as_echo "no" >&6; }
6657fi
6658
6659
6660    test -n "$DUMPBIN" && break
6661  done
6662fi
6663if test -z "$DUMPBIN"; then
6664  ac_ct_DUMPBIN=$DUMPBIN
6665  for ac_prog in dumpbin "link -dump"
6666do
6667  # Extract the first word of "$ac_prog", so it can be a program name with args.
6668set dummy $ac_prog; ac_word=$2
6669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6670$as_echo_n "checking for $ac_word... " >&6; }
6671if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6672  $as_echo_n "(cached) " >&6
6673else
6674  if test -n "$ac_ct_DUMPBIN"; then
6675  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6676else
6677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678for as_dir in $PATH
6679do
6680  IFS=$as_save_IFS
6681  test -z "$as_dir" && as_dir=.
6682    for ac_exec_ext in '' $ac_executable_extensions; do
6683  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6684    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6685    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6686    break 2
6687  fi
6688done
6689  done
6690IFS=$as_save_IFS
6691
6692fi
6693fi
6694ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6695if test -n "$ac_ct_DUMPBIN"; then
6696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6697$as_echo "$ac_ct_DUMPBIN" >&6; }
6698else
6699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6700$as_echo "no" >&6; }
6701fi
6702
6703
6704  test -n "$ac_ct_DUMPBIN" && break
6705done
6706
6707  if test "x$ac_ct_DUMPBIN" = x; then
6708    DUMPBIN=":"
6709  else
6710    case $cross_compiling:$ac_tool_warned in
6711yes:)
6712{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6713$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6714ac_tool_warned=yes ;;
6715esac
6716    DUMPBIN=$ac_ct_DUMPBIN
6717  fi
6718fi
6719
6720    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6721    *COFF*)
6722      DUMPBIN="$DUMPBIN -symbols -headers"
6723      ;;
6724    *)
6725      DUMPBIN=:
6726      ;;
6727    esac
6728  fi
6729
6730  if test : != "$DUMPBIN"; then
6731    NM=$DUMPBIN
6732  fi
6733fi
6734test -z "$NM" && NM=nm
6735
6736
6737
6738
6739
6740
6741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6742$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6743if ${lt_cv_nm_interface+:} false; then :
6744  $as_echo_n "(cached) " >&6
6745else
6746  lt_cv_nm_interface="BSD nm"
6747  echo "int some_variable = 0;" > conftest.$ac_ext
6748  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6749  (eval "$ac_compile" 2>conftest.err)
6750  cat conftest.err >&5
6751  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6752  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6753  cat conftest.err >&5
6754  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6755  cat conftest.out >&5
6756  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6757    lt_cv_nm_interface="MS dumpbin"
6758  fi
6759  rm -f conftest*
6760fi
6761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6762$as_echo "$lt_cv_nm_interface" >&6; }
6763
6764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6765$as_echo_n "checking whether ln -s works... " >&6; }
6766LN_S=$as_ln_s
6767if test "$LN_S" = "ln -s"; then
6768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6769$as_echo "yes" >&6; }
6770else
6771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6772$as_echo "no, using $LN_S" >&6; }
6773fi
6774
6775# find the maximum length of command line arguments
6776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6777$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6778if ${lt_cv_sys_max_cmd_len+:} false; then :
6779  $as_echo_n "(cached) " >&6
6780else
6781    i=0
6782  teststring=ABCD
6783
6784  case $build_os in
6785  msdosdjgpp*)
6786    # On DJGPP, this test can blow up pretty badly due to problems in libc
6787    # (any single argument exceeding 2000 bytes causes a buffer overrun
6788    # during glob expansion).  Even if it were fixed, the result of this
6789    # check would be larger than it should be.
6790    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6791    ;;
6792
6793  gnu*)
6794    # Under GNU Hurd, this test is not required because there is
6795    # no limit to the length of command line arguments.
6796    # Libtool will interpret -1 as no limit whatsoever
6797    lt_cv_sys_max_cmd_len=-1;
6798    ;;
6799
6800  cygwin* | mingw* | cegcc*)
6801    # On Win9x/ME, this test blows up -- it succeeds, but takes
6802    # about 5 minutes as the teststring grows exponentially.
6803    # Worse, since 9x/ME are not pre-emptively multitasking,
6804    # you end up with a "frozen" computer, even though with patience
6805    # the test eventually succeeds (with a max line length of 256k).
6806    # Instead, let's just punt: use the minimum linelength reported by
6807    # all of the supported platforms: 8192 (on NT/2K/XP).
6808    lt_cv_sys_max_cmd_len=8192;
6809    ;;
6810
6811  mint*)
6812    # On MiNT this can take a long time and run out of memory.
6813    lt_cv_sys_max_cmd_len=8192;
6814    ;;
6815
6816  amigaos*)
6817    # On AmigaOS with pdksh, this test takes hours, literally.
6818    # So we just punt and use a minimum line length of 8192.
6819    lt_cv_sys_max_cmd_len=8192;
6820    ;;
6821
6822  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6823    # This has been around since 386BSD, at least.  Likely further.
6824    if test -x /sbin/sysctl; then
6825      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6826    elif test -x /usr/sbin/sysctl; then
6827      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6828    else
6829      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6830    fi
6831    # And add a safety zone
6832    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6833    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6834    ;;
6835
6836  interix*)
6837    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6838    lt_cv_sys_max_cmd_len=196608
6839    ;;
6840
6841  os2*)
6842    # The test takes a long time on OS/2.
6843    lt_cv_sys_max_cmd_len=8192
6844    ;;
6845
6846  osf*)
6847    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6848    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6849    # nice to cause kernel panics so lets avoid the loop below.
6850    # First set a reasonable default.
6851    lt_cv_sys_max_cmd_len=16384
6852    #
6853    if test -x /sbin/sysconfig; then
6854      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6855        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6856      esac
6857    fi
6858    ;;
6859  sco3.2v5*)
6860    lt_cv_sys_max_cmd_len=102400
6861    ;;
6862  sysv5* | sco5v6* | sysv4.2uw2*)
6863    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6864    if test -n "$kargmax"; then
6865      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6866    else
6867      lt_cv_sys_max_cmd_len=32768
6868    fi
6869    ;;
6870  *)
6871    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6872    if test -n "$lt_cv_sys_max_cmd_len" && \
6873       test undefined != "$lt_cv_sys_max_cmd_len"; then
6874      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6875      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6876    else
6877      # Make teststring a little bigger before we do anything with it.
6878      # a 1K string should be a reasonable start.
6879      for i in 1 2 3 4 5 6 7 8; do
6880        teststring=$teststring$teststring
6881      done
6882      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6883      # If test is not a shell built-in, we'll probably end up computing a
6884      # maximum length that is only half of the actual maximum length, but
6885      # we can't tell.
6886      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6887	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6888	      test 17 != "$i" # 1/2 MB should be enough
6889      do
6890        i=`expr $i + 1`
6891        teststring=$teststring$teststring
6892      done
6893      # Only check the string length outside the loop.
6894      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6895      teststring=
6896      # Add a significant safety factor because C++ compilers can tack on
6897      # massive amounts of additional arguments before passing them to the
6898      # linker.  It appears as though 1/2 is a usable value.
6899      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6900    fi
6901    ;;
6902  esac
6903
6904fi
6905
6906if test -n "$lt_cv_sys_max_cmd_len"; then
6907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6908$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6909else
6910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6911$as_echo "none" >&6; }
6912fi
6913max_cmd_len=$lt_cv_sys_max_cmd_len
6914
6915
6916
6917
6918
6919
6920: ${CP="cp -f"}
6921: ${MV="mv -f"}
6922: ${RM="rm -f"}
6923
6924if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6925  lt_unset=unset
6926else
6927  lt_unset=false
6928fi
6929
6930
6931
6932
6933
6934# test EBCDIC or ASCII
6935case `echo X|tr X '\101'` in
6936 A) # ASCII based system
6937    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6938  lt_SP2NL='tr \040 \012'
6939  lt_NL2SP='tr \015\012 \040\040'
6940  ;;
6941 *) # EBCDIC based system
6942  lt_SP2NL='tr \100 \n'
6943  lt_NL2SP='tr \r\n \100\100'
6944  ;;
6945esac
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6956$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6957if ${lt_cv_to_host_file_cmd+:} false; then :
6958  $as_echo_n "(cached) " >&6
6959else
6960  case $host in
6961  *-*-mingw* )
6962    case $build in
6963      *-*-mingw* ) # actually msys
6964        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6965        ;;
6966      *-*-cygwin* )
6967        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6968        ;;
6969      * ) # otherwise, assume *nix
6970        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6971        ;;
6972    esac
6973    ;;
6974  *-*-cygwin* )
6975    case $build in
6976      *-*-mingw* ) # actually msys
6977        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6978        ;;
6979      *-*-cygwin* )
6980        lt_cv_to_host_file_cmd=func_convert_file_noop
6981        ;;
6982      * ) # otherwise, assume *nix
6983        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6984        ;;
6985    esac
6986    ;;
6987  * ) # unhandled hosts (and "normal" native builds)
6988    lt_cv_to_host_file_cmd=func_convert_file_noop
6989    ;;
6990esac
6991
6992fi
6993
6994to_host_file_cmd=$lt_cv_to_host_file_cmd
6995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6996$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6997
6998
6999
7000
7001
7002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7003$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7004if ${lt_cv_to_tool_file_cmd+:} false; then :
7005  $as_echo_n "(cached) " >&6
7006else
7007  #assume ordinary cross tools, or native build.
7008lt_cv_to_tool_file_cmd=func_convert_file_noop
7009case $host in
7010  *-*-mingw* )
7011    case $build in
7012      *-*-mingw* ) # actually msys
7013        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7014        ;;
7015    esac
7016    ;;
7017esac
7018
7019fi
7020
7021to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7023$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7024
7025
7026
7027
7028
7029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7030$as_echo_n "checking for $LD option to reload object files... " >&6; }
7031if ${lt_cv_ld_reload_flag+:} false; then :
7032  $as_echo_n "(cached) " >&6
7033else
7034  lt_cv_ld_reload_flag='-r'
7035fi
7036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7037$as_echo "$lt_cv_ld_reload_flag" >&6; }
7038reload_flag=$lt_cv_ld_reload_flag
7039case $reload_flag in
7040"" | " "*) ;;
7041*) reload_flag=" $reload_flag" ;;
7042esac
7043reload_cmds='$LD$reload_flag -o $output$reload_objs'
7044case $host_os in
7045  cygwin* | mingw* | pw32* | cegcc*)
7046    if test yes != "$GCC"; then
7047      reload_cmds=false
7048    fi
7049    ;;
7050  darwin*)
7051    if test yes = "$GCC"; then
7052      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7053    else
7054      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7055    fi
7056    ;;
7057esac
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067if test -n "$ac_tool_prefix"; then
7068  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7069set dummy ${ac_tool_prefix}objdump; ac_word=$2
7070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7071$as_echo_n "checking for $ac_word... " >&6; }
7072if ${ac_cv_prog_OBJDUMP+:} false; then :
7073  $as_echo_n "(cached) " >&6
7074else
7075  if test -n "$OBJDUMP"; then
7076  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7077else
7078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079for as_dir in $PATH
7080do
7081  IFS=$as_save_IFS
7082  test -z "$as_dir" && as_dir=.
7083    for ac_exec_ext in '' $ac_executable_extensions; do
7084  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7085    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7086    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7087    break 2
7088  fi
7089done
7090  done
7091IFS=$as_save_IFS
7092
7093fi
7094fi
7095OBJDUMP=$ac_cv_prog_OBJDUMP
7096if test -n "$OBJDUMP"; then
7097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7098$as_echo "$OBJDUMP" >&6; }
7099else
7100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7101$as_echo "no" >&6; }
7102fi
7103
7104
7105fi
7106if test -z "$ac_cv_prog_OBJDUMP"; then
7107  ac_ct_OBJDUMP=$OBJDUMP
7108  # Extract the first word of "objdump", so it can be a program name with args.
7109set dummy objdump; ac_word=$2
7110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7111$as_echo_n "checking for $ac_word... " >&6; }
7112if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7113  $as_echo_n "(cached) " >&6
7114else
7115  if test -n "$ac_ct_OBJDUMP"; then
7116  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7117else
7118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119for as_dir in $PATH
7120do
7121  IFS=$as_save_IFS
7122  test -z "$as_dir" && as_dir=.
7123    for ac_exec_ext in '' $ac_executable_extensions; do
7124  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7125    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7126    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7127    break 2
7128  fi
7129done
7130  done
7131IFS=$as_save_IFS
7132
7133fi
7134fi
7135ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7136if test -n "$ac_ct_OBJDUMP"; then
7137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7138$as_echo "$ac_ct_OBJDUMP" >&6; }
7139else
7140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7141$as_echo "no" >&6; }
7142fi
7143
7144  if test "x$ac_ct_OBJDUMP" = x; then
7145    OBJDUMP="false"
7146  else
7147    case $cross_compiling:$ac_tool_warned in
7148yes:)
7149{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7150$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7151ac_tool_warned=yes ;;
7152esac
7153    OBJDUMP=$ac_ct_OBJDUMP
7154  fi
7155else
7156  OBJDUMP="$ac_cv_prog_OBJDUMP"
7157fi
7158
7159test -z "$OBJDUMP" && OBJDUMP=objdump
7160
7161
7162
7163
7164
7165
7166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7167$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7168if ${lt_cv_deplibs_check_method+:} false; then :
7169  $as_echo_n "(cached) " >&6
7170else
7171  lt_cv_file_magic_cmd='$MAGIC_CMD'
7172lt_cv_file_magic_test_file=
7173lt_cv_deplibs_check_method='unknown'
7174# Need to set the preceding variable on all platforms that support
7175# interlibrary dependencies.
7176# 'none' -- dependencies not supported.
7177# 'unknown' -- same as none, but documents that we really don't know.
7178# 'pass_all' -- all dependencies passed with no checks.
7179# 'test_compile' -- check by making test program.
7180# 'file_magic [[regex]]' -- check by looking for files in library path
7181# that responds to the $file_magic_cmd with a given extended regex.
7182# If you have 'file' or equivalent on your system and you're not sure
7183# whether 'pass_all' will *always* work, you probably want this one.
7184
7185case $host_os in
7186aix[4-9]*)
7187  lt_cv_deplibs_check_method=pass_all
7188  ;;
7189
7190beos*)
7191  lt_cv_deplibs_check_method=pass_all
7192  ;;
7193
7194bsdi[45]*)
7195  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7196  lt_cv_file_magic_cmd='/usr/bin/file -L'
7197  lt_cv_file_magic_test_file=/shlib/libc.so
7198  ;;
7199
7200cygwin*)
7201  # func_win32_libid is a shell function defined in ltmain.sh
7202  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7203  lt_cv_file_magic_cmd='func_win32_libid'
7204  ;;
7205
7206mingw* | pw32*)
7207  # Base MSYS/MinGW do not provide the 'file' command needed by
7208  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7209  # unless we find 'file', for example because we are cross-compiling.
7210  if ( file / ) >/dev/null 2>&1; then
7211    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7212    lt_cv_file_magic_cmd='func_win32_libid'
7213  else
7214    # Keep this pattern in sync with the one in func_win32_libid.
7215    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7216    lt_cv_file_magic_cmd='$OBJDUMP -f'
7217  fi
7218  ;;
7219
7220cegcc*)
7221  # use the weaker test based on 'objdump'. See mingw*.
7222  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7223  lt_cv_file_magic_cmd='$OBJDUMP -f'
7224  ;;
7225
7226darwin* | rhapsody*)
7227  lt_cv_deplibs_check_method=pass_all
7228  ;;
7229
7230freebsd* | dragonfly*)
7231  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7232    case $host_cpu in
7233    i*86 )
7234      # Not sure whether the presence of OpenBSD here was a mistake.
7235      # Let's accept both of them until this is cleared up.
7236      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7237      lt_cv_file_magic_cmd=/usr/bin/file
7238      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7239      ;;
7240    esac
7241  else
7242    lt_cv_deplibs_check_method=pass_all
7243  fi
7244  ;;
7245
7246haiku*)
7247  lt_cv_deplibs_check_method=pass_all
7248  ;;
7249
7250hpux10.20* | hpux11*)
7251  lt_cv_file_magic_cmd=/usr/bin/file
7252  case $host_cpu in
7253  ia64*)
7254    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7255    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7256    ;;
7257  hppa*64*)
7258    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7259    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7260    ;;
7261  *)
7262    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7263    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7264    ;;
7265  esac
7266  ;;
7267
7268interix[3-9]*)
7269  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7270  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7271  ;;
7272
7273irix5* | irix6* | nonstopux*)
7274  case $LD in
7275  *-32|*"-32 ") libmagic=32-bit;;
7276  *-n32|*"-n32 ") libmagic=N32;;
7277  *-64|*"-64 ") libmagic=64-bit;;
7278  *) libmagic=never-match;;
7279  esac
7280  lt_cv_deplibs_check_method=pass_all
7281  ;;
7282
7283# This must be glibc/ELF.
7284linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7285  lt_cv_deplibs_check_method=pass_all
7286  ;;
7287
7288netbsd* | netbsdelf*-gnu)
7289  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7290    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7291  else
7292    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7293  fi
7294  ;;
7295
7296newos6*)
7297  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7298  lt_cv_file_magic_cmd=/usr/bin/file
7299  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7300  ;;
7301
7302*nto* | *qnx*)
7303  lt_cv_deplibs_check_method=pass_all
7304  ;;
7305
7306openbsd* | bitrig*)
7307  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7308    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7309  else
7310    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7311  fi
7312  ;;
7313
7314osf3* | osf4* | osf5*)
7315  lt_cv_deplibs_check_method=pass_all
7316  ;;
7317
7318rdos*)
7319  lt_cv_deplibs_check_method=pass_all
7320  ;;
7321
7322solaris*)
7323  lt_cv_deplibs_check_method=pass_all
7324  ;;
7325
7326sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7327  lt_cv_deplibs_check_method=pass_all
7328  ;;
7329
7330sysv4 | sysv4.3*)
7331  case $host_vendor in
7332  motorola)
7333    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]'
7334    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7335    ;;
7336  ncr)
7337    lt_cv_deplibs_check_method=pass_all
7338    ;;
7339  sequent)
7340    lt_cv_file_magic_cmd='/bin/file'
7341    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7342    ;;
7343  sni)
7344    lt_cv_file_magic_cmd='/bin/file'
7345    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7346    lt_cv_file_magic_test_file=/lib/libc.so
7347    ;;
7348  siemens)
7349    lt_cv_deplibs_check_method=pass_all
7350    ;;
7351  pc)
7352    lt_cv_deplibs_check_method=pass_all
7353    ;;
7354  esac
7355  ;;
7356
7357tpf*)
7358  lt_cv_deplibs_check_method=pass_all
7359  ;;
7360os2*)
7361  lt_cv_deplibs_check_method=pass_all
7362  ;;
7363esac
7364
7365fi
7366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7367$as_echo "$lt_cv_deplibs_check_method" >&6; }
7368
7369file_magic_glob=
7370want_nocaseglob=no
7371if test "$build" = "$host"; then
7372  case $host_os in
7373  mingw* | pw32*)
7374    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7375      want_nocaseglob=yes
7376    else
7377      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7378    fi
7379    ;;
7380  esac
7381fi
7382
7383file_magic_cmd=$lt_cv_file_magic_cmd
7384deplibs_check_method=$lt_cv_deplibs_check_method
7385test -z "$deplibs_check_method" && deplibs_check_method=unknown
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408if test -n "$ac_tool_prefix"; then
7409  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7410set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7412$as_echo_n "checking for $ac_word... " >&6; }
7413if ${ac_cv_prog_DLLTOOL+:} false; then :
7414  $as_echo_n "(cached) " >&6
7415else
7416  if test -n "$DLLTOOL"; then
7417  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7418else
7419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420for as_dir in $PATH
7421do
7422  IFS=$as_save_IFS
7423  test -z "$as_dir" && as_dir=.
7424    for ac_exec_ext in '' $ac_executable_extensions; do
7425  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7426    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7427    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7428    break 2
7429  fi
7430done
7431  done
7432IFS=$as_save_IFS
7433
7434fi
7435fi
7436DLLTOOL=$ac_cv_prog_DLLTOOL
7437if test -n "$DLLTOOL"; then
7438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7439$as_echo "$DLLTOOL" >&6; }
7440else
7441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7442$as_echo "no" >&6; }
7443fi
7444
7445
7446fi
7447if test -z "$ac_cv_prog_DLLTOOL"; then
7448  ac_ct_DLLTOOL=$DLLTOOL
7449  # Extract the first word of "dlltool", so it can be a program name with args.
7450set dummy dlltool; ac_word=$2
7451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7452$as_echo_n "checking for $ac_word... " >&6; }
7453if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7454  $as_echo_n "(cached) " >&6
7455else
7456  if test -n "$ac_ct_DLLTOOL"; then
7457  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7458else
7459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460for as_dir in $PATH
7461do
7462  IFS=$as_save_IFS
7463  test -z "$as_dir" && as_dir=.
7464    for ac_exec_ext in '' $ac_executable_extensions; do
7465  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7466    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7467    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7468    break 2
7469  fi
7470done
7471  done
7472IFS=$as_save_IFS
7473
7474fi
7475fi
7476ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7477if test -n "$ac_ct_DLLTOOL"; then
7478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7479$as_echo "$ac_ct_DLLTOOL" >&6; }
7480else
7481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7482$as_echo "no" >&6; }
7483fi
7484
7485  if test "x$ac_ct_DLLTOOL" = x; then
7486    DLLTOOL="false"
7487  else
7488    case $cross_compiling:$ac_tool_warned in
7489yes:)
7490{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7491$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7492ac_tool_warned=yes ;;
7493esac
7494    DLLTOOL=$ac_ct_DLLTOOL
7495  fi
7496else
7497  DLLTOOL="$ac_cv_prog_DLLTOOL"
7498fi
7499
7500test -z "$DLLTOOL" && DLLTOOL=dlltool
7501
7502
7503
7504
7505
7506
7507
7508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7509$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7510if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7511  $as_echo_n "(cached) " >&6
7512else
7513  lt_cv_sharedlib_from_linklib_cmd='unknown'
7514
7515case $host_os in
7516cygwin* | mingw* | pw32* | cegcc*)
7517  # two different shell functions defined in ltmain.sh;
7518  # decide which one to use based on capabilities of $DLLTOOL
7519  case `$DLLTOOL --help 2>&1` in
7520  *--identify-strict*)
7521    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7522    ;;
7523  *)
7524    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7525    ;;
7526  esac
7527  ;;
7528*)
7529  # fallback: assume linklib IS sharedlib
7530  lt_cv_sharedlib_from_linklib_cmd=$ECHO
7531  ;;
7532esac
7533
7534fi
7535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7536$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7537sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7538test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7539
7540
7541
7542
7543
7544
7545
7546if test -n "$ac_tool_prefix"; then
7547  for ac_prog in ar
7548  do
7549    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7550set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7552$as_echo_n "checking for $ac_word... " >&6; }
7553if ${ac_cv_prog_AR+:} false; then :
7554  $as_echo_n "(cached) " >&6
7555else
7556  if test -n "$AR"; then
7557  ac_cv_prog_AR="$AR" # Let the user override the test.
7558else
7559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560for as_dir in $PATH
7561do
7562  IFS=$as_save_IFS
7563  test -z "$as_dir" && as_dir=.
7564    for ac_exec_ext in '' $ac_executable_extensions; do
7565  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7566    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7567    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7568    break 2
7569  fi
7570done
7571  done
7572IFS=$as_save_IFS
7573
7574fi
7575fi
7576AR=$ac_cv_prog_AR
7577if test -n "$AR"; then
7578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7579$as_echo "$AR" >&6; }
7580else
7581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7582$as_echo "no" >&6; }
7583fi
7584
7585
7586    test -n "$AR" && break
7587  done
7588fi
7589if test -z "$AR"; then
7590  ac_ct_AR=$AR
7591  for ac_prog in ar
7592do
7593  # Extract the first word of "$ac_prog", so it can be a program name with args.
7594set dummy $ac_prog; ac_word=$2
7595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7596$as_echo_n "checking for $ac_word... " >&6; }
7597if ${ac_cv_prog_ac_ct_AR+:} false; then :
7598  $as_echo_n "(cached) " >&6
7599else
7600  if test -n "$ac_ct_AR"; then
7601  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7602else
7603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604for as_dir in $PATH
7605do
7606  IFS=$as_save_IFS
7607  test -z "$as_dir" && as_dir=.
7608    for ac_exec_ext in '' $ac_executable_extensions; do
7609  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7610    ac_cv_prog_ac_ct_AR="$ac_prog"
7611    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7612    break 2
7613  fi
7614done
7615  done
7616IFS=$as_save_IFS
7617
7618fi
7619fi
7620ac_ct_AR=$ac_cv_prog_ac_ct_AR
7621if test -n "$ac_ct_AR"; then
7622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7623$as_echo "$ac_ct_AR" >&6; }
7624else
7625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7626$as_echo "no" >&6; }
7627fi
7628
7629
7630  test -n "$ac_ct_AR" && break
7631done
7632
7633  if test "x$ac_ct_AR" = x; then
7634    AR="false"
7635  else
7636    case $cross_compiling:$ac_tool_warned in
7637yes:)
7638{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7639$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7640ac_tool_warned=yes ;;
7641esac
7642    AR=$ac_ct_AR
7643  fi
7644fi
7645
7646: ${AR=ar}
7647: ${AR_FLAGS=cru}
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7660$as_echo_n "checking for archiver @FILE support... " >&6; }
7661if ${lt_cv_ar_at_file+:} false; then :
7662  $as_echo_n "(cached) " >&6
7663else
7664  lt_cv_ar_at_file=no
7665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7666/* end confdefs.h.  */
7667
7668int
7669main ()
7670{
7671
7672  ;
7673  return 0;
7674}
7675_ACEOF
7676if ac_fn_c_try_compile "$LINENO"; then :
7677  echo conftest.$ac_objext > conftest.lst
7678      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7679      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7680  (eval $lt_ar_try) 2>&5
7681  ac_status=$?
7682  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7683  test $ac_status = 0; }
7684      if test 0 -eq "$ac_status"; then
7685	# Ensure the archiver fails upon bogus file names.
7686	rm -f conftest.$ac_objext libconftest.a
7687	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7688  (eval $lt_ar_try) 2>&5
7689  ac_status=$?
7690  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7691  test $ac_status = 0; }
7692	if test 0 -ne "$ac_status"; then
7693          lt_cv_ar_at_file=@
7694        fi
7695      fi
7696      rm -f conftest.* libconftest.a
7697
7698fi
7699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7700
7701fi
7702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7703$as_echo "$lt_cv_ar_at_file" >&6; }
7704
7705if test no = "$lt_cv_ar_at_file"; then
7706  archiver_list_spec=
7707else
7708  archiver_list_spec=$lt_cv_ar_at_file
7709fi
7710
7711
7712
7713
7714
7715
7716
7717if test -n "$ac_tool_prefix"; then
7718  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7719set dummy ${ac_tool_prefix}strip; ac_word=$2
7720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7721$as_echo_n "checking for $ac_word... " >&6; }
7722if ${ac_cv_prog_STRIP+:} false; then :
7723  $as_echo_n "(cached) " >&6
7724else
7725  if test -n "$STRIP"; then
7726  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7727else
7728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7729for as_dir in $PATH
7730do
7731  IFS=$as_save_IFS
7732  test -z "$as_dir" && as_dir=.
7733    for ac_exec_ext in '' $ac_executable_extensions; do
7734  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7735    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7736    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7737    break 2
7738  fi
7739done
7740  done
7741IFS=$as_save_IFS
7742
7743fi
7744fi
7745STRIP=$ac_cv_prog_STRIP
7746if test -n "$STRIP"; then
7747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7748$as_echo "$STRIP" >&6; }
7749else
7750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7751$as_echo "no" >&6; }
7752fi
7753
7754
7755fi
7756if test -z "$ac_cv_prog_STRIP"; then
7757  ac_ct_STRIP=$STRIP
7758  # Extract the first word of "strip", so it can be a program name with args.
7759set dummy strip; ac_word=$2
7760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7761$as_echo_n "checking for $ac_word... " >&6; }
7762if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7763  $as_echo_n "(cached) " >&6
7764else
7765  if test -n "$ac_ct_STRIP"; then
7766  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7767else
7768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7769for as_dir in $PATH
7770do
7771  IFS=$as_save_IFS
7772  test -z "$as_dir" && as_dir=.
7773    for ac_exec_ext in '' $ac_executable_extensions; do
7774  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7775    ac_cv_prog_ac_ct_STRIP="strip"
7776    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7777    break 2
7778  fi
7779done
7780  done
7781IFS=$as_save_IFS
7782
7783fi
7784fi
7785ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7786if test -n "$ac_ct_STRIP"; then
7787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7788$as_echo "$ac_ct_STRIP" >&6; }
7789else
7790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7791$as_echo "no" >&6; }
7792fi
7793
7794  if test "x$ac_ct_STRIP" = x; then
7795    STRIP=":"
7796  else
7797    case $cross_compiling:$ac_tool_warned in
7798yes:)
7799{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7800$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7801ac_tool_warned=yes ;;
7802esac
7803    STRIP=$ac_ct_STRIP
7804  fi
7805else
7806  STRIP="$ac_cv_prog_STRIP"
7807fi
7808
7809test -z "$STRIP" && STRIP=:
7810
7811
7812
7813
7814
7815
7816if test -n "$ac_tool_prefix"; then
7817  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7818set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7820$as_echo_n "checking for $ac_word... " >&6; }
7821if ${ac_cv_prog_RANLIB+:} false; then :
7822  $as_echo_n "(cached) " >&6
7823else
7824  if test -n "$RANLIB"; then
7825  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7826else
7827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828for as_dir in $PATH
7829do
7830  IFS=$as_save_IFS
7831  test -z "$as_dir" && as_dir=.
7832    for ac_exec_ext in '' $ac_executable_extensions; do
7833  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7834    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7835    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7836    break 2
7837  fi
7838done
7839  done
7840IFS=$as_save_IFS
7841
7842fi
7843fi
7844RANLIB=$ac_cv_prog_RANLIB
7845if test -n "$RANLIB"; then
7846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7847$as_echo "$RANLIB" >&6; }
7848else
7849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7850$as_echo "no" >&6; }
7851fi
7852
7853
7854fi
7855if test -z "$ac_cv_prog_RANLIB"; then
7856  ac_ct_RANLIB=$RANLIB
7857  # Extract the first word of "ranlib", so it can be a program name with args.
7858set dummy ranlib; ac_word=$2
7859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7860$as_echo_n "checking for $ac_word... " >&6; }
7861if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7862  $as_echo_n "(cached) " >&6
7863else
7864  if test -n "$ac_ct_RANLIB"; then
7865  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7866else
7867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868for as_dir in $PATH
7869do
7870  IFS=$as_save_IFS
7871  test -z "$as_dir" && as_dir=.
7872    for ac_exec_ext in '' $ac_executable_extensions; do
7873  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7874    ac_cv_prog_ac_ct_RANLIB="ranlib"
7875    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7876    break 2
7877  fi
7878done
7879  done
7880IFS=$as_save_IFS
7881
7882fi
7883fi
7884ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7885if test -n "$ac_ct_RANLIB"; then
7886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7887$as_echo "$ac_ct_RANLIB" >&6; }
7888else
7889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7890$as_echo "no" >&6; }
7891fi
7892
7893  if test "x$ac_ct_RANLIB" = x; then
7894    RANLIB=":"
7895  else
7896    case $cross_compiling:$ac_tool_warned in
7897yes:)
7898{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7899$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7900ac_tool_warned=yes ;;
7901esac
7902    RANLIB=$ac_ct_RANLIB
7903  fi
7904else
7905  RANLIB="$ac_cv_prog_RANLIB"
7906fi
7907
7908test -z "$RANLIB" && RANLIB=:
7909
7910
7911
7912
7913
7914
7915# Determine commands to create old-style static archives.
7916old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7917old_postinstall_cmds='chmod 644 $oldlib'
7918old_postuninstall_cmds=
7919
7920if test -n "$RANLIB"; then
7921  case $host_os in
7922  bitrig* | openbsd*)
7923    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7924    ;;
7925  *)
7926    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7927    ;;
7928  esac
7929  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7930fi
7931
7932case $host_os in
7933  darwin*)
7934    lock_old_archive_extraction=yes ;;
7935  *)
7936    lock_old_archive_extraction=no ;;
7937esac
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977# If no C compiler was specified, use CC.
7978LTCC=${LTCC-"$CC"}
7979
7980# If no C compiler flags were specified, use CFLAGS.
7981LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7982
7983# Allow CC to be a program name with arguments.
7984compiler=$CC
7985
7986
7987# Check for command to grab the raw symbol name followed by C symbol from nm.
7988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7989$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7990if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7991  $as_echo_n "(cached) " >&6
7992else
7993
7994# These are sane defaults that work on at least a few old systems.
7995# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7996
7997# Character class describing NM global symbol codes.
7998symcode='[BCDEGRST]'
7999
8000# Regexp to match symbols that can be accessed directly from C.
8001sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8002
8003# Define system-specific variables.
8004case $host_os in
8005aix*)
8006  symcode='[BCDT]'
8007  ;;
8008cygwin* | mingw* | pw32* | cegcc*)
8009  symcode='[ABCDGISTW]'
8010  ;;
8011hpux*)
8012  if test ia64 = "$host_cpu"; then
8013    symcode='[ABCDEGRST]'
8014  fi
8015  ;;
8016irix* | nonstopux*)
8017  symcode='[BCDEGRST]'
8018  ;;
8019osf*)
8020  symcode='[BCDEGQRST]'
8021  ;;
8022solaris*)
8023  symcode='[BDRT]'
8024  ;;
8025sco3.2v5*)
8026  symcode='[DT]'
8027  ;;
8028sysv4.2uw2*)
8029  symcode='[DT]'
8030  ;;
8031sysv5* | sco5v6* | unixware* | OpenUNIX*)
8032  symcode='[ABDT]'
8033  ;;
8034sysv4)
8035  symcode='[DFNSTU]'
8036  ;;
8037esac
8038
8039# If we're using GNU nm, then use its standard symbol codes.
8040case `$NM -V 2>&1` in
8041*GNU* | *'with BFD'*)
8042  symcode='[ABCDGIRSTW]' ;;
8043esac
8044
8045if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8046  # Gets list of data symbols to import.
8047  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8048  # Adjust the below global symbol transforms to fixup imported variables.
8049  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8050  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
8051  lt_c_name_lib_hook="\
8052  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
8053  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
8054else
8055  # Disable hooks by default.
8056  lt_cv_sys_global_symbol_to_import=
8057  lt_cdecl_hook=
8058  lt_c_name_hook=
8059  lt_c_name_lib_hook=
8060fi
8061
8062# Transform an extracted symbol line into a proper C declaration.
8063# Some systems (esp. on ia64) link data and code symbols differently,
8064# so use this general approach.
8065lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8066$lt_cdecl_hook\
8067" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8068" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8069
8070# Transform an extracted symbol line into symbol name and symbol address
8071lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8072$lt_c_name_hook\
8073" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8074" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
8075
8076# Transform an extracted symbol line into symbol name with lib prefix and
8077# symbol address.
8078lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8079$lt_c_name_lib_hook\
8080" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8081" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
8082" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
8083
8084# Handle CRLF in mingw tool chain
8085opt_cr=
8086case $build_os in
8087mingw*)
8088  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8089  ;;
8090esac
8091
8092# Try without a prefix underscore, then with it.
8093for ac_symprfx in "" "_"; do
8094
8095  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8096  symxfrm="\\1 $ac_symprfx\\2 \\2"
8097
8098  # Write the raw and C identifiers.
8099  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8100    # Fake it for dumpbin and say T for any non-static function,
8101    # D for any global variable and I for any imported variable.
8102    # Also find C++ and __fastcall symbols from MSVC++,
8103    # which start with @ or ?.
8104    lt_cv_sys_global_symbol_pipe="$AWK '"\
8105"     {last_section=section; section=\$ 3};"\
8106"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8107"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8108"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8109"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8110"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8111"     \$ 0!~/External *\|/{next};"\
8112"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8113"     {if(hide[section]) next};"\
8114"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8115"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8116"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8117"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8118"     ' prfx=^$ac_symprfx"
8119  else
8120    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8121  fi
8122  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8123
8124  # Check to see that the pipe works correctly.
8125  pipe_works=no
8126
8127  rm -f conftest*
8128  cat > conftest.$ac_ext <<_LT_EOF
8129#ifdef __cplusplus
8130extern "C" {
8131#endif
8132char nm_test_var;
8133void nm_test_func(void);
8134void nm_test_func(void){}
8135#ifdef __cplusplus
8136}
8137#endif
8138int main(){nm_test_var='a';nm_test_func();return(0);}
8139_LT_EOF
8140
8141  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8142  (eval $ac_compile) 2>&5
8143  ac_status=$?
8144  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8145  test $ac_status = 0; }; then
8146    # Now try to grab the symbols.
8147    nlist=conftest.nm
8148    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
8149    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
8150      # Try sorting and uniquifying the output.
8151      if sort "$nlist" | uniq > "$nlist"T; then
8152	mv -f "$nlist"T "$nlist"
8153      else
8154	rm -f "$nlist"T
8155      fi
8156
8157      # Make sure that we snagged all the symbols we need.
8158      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8159	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8160	  cat <<_LT_EOF > conftest.$ac_ext
8161/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8162#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8163/* DATA imports from DLLs on WIN32 can't be const, because runtime
8164   relocations are performed -- see ld's documentation on pseudo-relocs.  */
8165# define LT_DLSYM_CONST
8166#elif defined __osf__
8167/* This system does not cope well with relocations in const data.  */
8168# define LT_DLSYM_CONST
8169#else
8170# define LT_DLSYM_CONST const
8171#endif
8172
8173#ifdef __cplusplus
8174extern "C" {
8175#endif
8176
8177_LT_EOF
8178	  # Now generate the symbol file.
8179	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8180
8181	  cat <<_LT_EOF >> conftest.$ac_ext
8182
8183/* The mapping between symbol names and symbols.  */
8184LT_DLSYM_CONST struct {
8185  const char *name;
8186  void       *address;
8187}
8188lt__PROGRAM__LTX_preloaded_symbols[] =
8189{
8190  { "@PROGRAM@", (void *) 0 },
8191_LT_EOF
8192	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8193	  cat <<\_LT_EOF >> conftest.$ac_ext
8194  {0, (void *) 0}
8195};
8196
8197/* This works around a problem in FreeBSD linker */
8198#ifdef FREEBSD_WORKAROUND
8199static const void *lt_preloaded_setup() {
8200  return lt__PROGRAM__LTX_preloaded_symbols;
8201}
8202#endif
8203
8204#ifdef __cplusplus
8205}
8206#endif
8207_LT_EOF
8208	  # Now try linking the two files.
8209	  mv conftest.$ac_objext conftstm.$ac_objext
8210	  lt_globsym_save_LIBS=$LIBS
8211	  lt_globsym_save_CFLAGS=$CFLAGS
8212	  LIBS=conftstm.$ac_objext
8213	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8214	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8215  (eval $ac_link) 2>&5
8216  ac_status=$?
8217  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8218  test $ac_status = 0; } && test -s conftest$ac_exeext; then
8219	    pipe_works=yes
8220	  fi
8221	  LIBS=$lt_globsym_save_LIBS
8222	  CFLAGS=$lt_globsym_save_CFLAGS
8223	else
8224	  echo "cannot find nm_test_func in $nlist" >&5
8225	fi
8226      else
8227	echo "cannot find nm_test_var in $nlist" >&5
8228      fi
8229    else
8230      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8231    fi
8232  else
8233    echo "$progname: failed program was:" >&5
8234    cat conftest.$ac_ext >&5
8235  fi
8236  rm -rf conftest* conftst*
8237
8238  # Do not use the global_symbol_pipe unless it works.
8239  if test yes = "$pipe_works"; then
8240    break
8241  else
8242    lt_cv_sys_global_symbol_pipe=
8243  fi
8244done
8245
8246fi
8247
8248if test -z "$lt_cv_sys_global_symbol_pipe"; then
8249  lt_cv_sys_global_symbol_to_cdecl=
8250fi
8251if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8253$as_echo "failed" >&6; }
8254else
8255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8256$as_echo "ok" >&6; }
8257fi
8258
8259# Response file support.
8260if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8261  nm_file_list_spec='@'
8262elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8263  nm_file_list_spec='@'
8264fi
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8303$as_echo_n "checking for sysroot... " >&6; }
8304
8305# Check whether --with-sysroot was given.
8306if test "${with_sysroot+set}" = set; then :
8307  withval=$with_sysroot;
8308else
8309  with_sysroot=no
8310fi
8311
8312
8313lt_sysroot=
8314case $with_sysroot in #(
8315 yes)
8316   if test yes = "$GCC"; then
8317     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8318   fi
8319   ;; #(
8320 /*)
8321   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8322   ;; #(
8323 no|'')
8324   ;; #(
8325 *)
8326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8327$as_echo "$with_sysroot" >&6; }
8328   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8329   ;;
8330esac
8331
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8333$as_echo "${lt_sysroot:-no}" >&6; }
8334
8335
8336
8337
8338
8339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8340$as_echo_n "checking for a working dd... " >&6; }
8341if ${ac_cv_path_lt_DD+:} false; then :
8342  $as_echo_n "(cached) " >&6
8343else
8344  printf 0123456789abcdef0123456789abcdef >conftest.i
8345cat conftest.i conftest.i >conftest2.i
8346: ${lt_DD:=$DD}
8347if test -z "$lt_DD"; then
8348  ac_path_lt_DD_found=false
8349  # Loop through the user's path and test for each of PROGNAME-LIST
8350  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8351for as_dir in $PATH
8352do
8353  IFS=$as_save_IFS
8354  test -z "$as_dir" && as_dir=.
8355    for ac_prog in dd; do
8356    for ac_exec_ext in '' $ac_executable_extensions; do
8357      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8358      as_fn_executable_p "$ac_path_lt_DD" || continue
8359if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8360  cmp -s conftest.i conftest.out \
8361  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8362fi
8363      $ac_path_lt_DD_found && break 3
8364    done
8365  done
8366  done
8367IFS=$as_save_IFS
8368  if test -z "$ac_cv_path_lt_DD"; then
8369    :
8370  fi
8371else
8372  ac_cv_path_lt_DD=$lt_DD
8373fi
8374
8375rm -f conftest.i conftest2.i conftest.out
8376fi
8377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8378$as_echo "$ac_cv_path_lt_DD" >&6; }
8379
8380
8381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8382$as_echo_n "checking how to truncate binary pipes... " >&6; }
8383if ${lt_cv_truncate_bin+:} false; then :
8384  $as_echo_n "(cached) " >&6
8385else
8386  printf 0123456789abcdef0123456789abcdef >conftest.i
8387cat conftest.i conftest.i >conftest2.i
8388lt_cv_truncate_bin=
8389if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8390  cmp -s conftest.i conftest.out \
8391  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8392fi
8393rm -f conftest.i conftest2.i conftest.out
8394test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8395fi
8396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8397$as_echo "$lt_cv_truncate_bin" >&6; }
8398
8399
8400
8401
8402
8403
8404
8405# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
8406func_cc_basename ()
8407{
8408    for cc_temp in $*""; do
8409      case $cc_temp in
8410        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8411        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8412        \-*) ;;
8413        *) break;;
8414      esac
8415    done
8416    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8417}
8418
8419# Check whether --enable-libtool-lock was given.
8420if test "${enable_libtool_lock+set}" = set; then :
8421  enableval=$enable_libtool_lock;
8422fi
8423
8424test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8425
8426# Some flags need to be propagated to the compiler or linker for good
8427# libtool support.
8428case $host in
8429ia64-*-hpux*)
8430  # Find out what ABI is being produced by ac_compile, and set mode
8431  # options accordingly.
8432  echo 'int i;' > conftest.$ac_ext
8433  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8434  (eval $ac_compile) 2>&5
8435  ac_status=$?
8436  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8437  test $ac_status = 0; }; then
8438    case `/usr/bin/file conftest.$ac_objext` in
8439      *ELF-32*)
8440	HPUX_IA64_MODE=32
8441	;;
8442      *ELF-64*)
8443	HPUX_IA64_MODE=64
8444	;;
8445    esac
8446  fi
8447  rm -rf conftest*
8448  ;;
8449*-*-irix6*)
8450  # Find out what ABI is being produced by ac_compile, and set linker
8451  # options accordingly.
8452  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8453  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8454  (eval $ac_compile) 2>&5
8455  ac_status=$?
8456  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8457  test $ac_status = 0; }; then
8458    if test yes = "$lt_cv_prog_gnu_ld"; then
8459      case `/usr/bin/file conftest.$ac_objext` in
8460	*32-bit*)
8461	  LD="${LD-ld} -melf32bsmip"
8462	  ;;
8463	*N32*)
8464	  LD="${LD-ld} -melf32bmipn32"
8465	  ;;
8466	*64-bit*)
8467	  LD="${LD-ld} -melf64bmip"
8468	;;
8469      esac
8470    else
8471      case `/usr/bin/file conftest.$ac_objext` in
8472	*32-bit*)
8473	  LD="${LD-ld} -32"
8474	  ;;
8475	*N32*)
8476	  LD="${LD-ld} -n32"
8477	  ;;
8478	*64-bit*)
8479	  LD="${LD-ld} -64"
8480	  ;;
8481      esac
8482    fi
8483  fi
8484  rm -rf conftest*
8485  ;;
8486
8487mips64*-*linux*)
8488  # Find out what ABI is being produced by ac_compile, and set linker
8489  # options accordingly.
8490  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8491  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8492  (eval $ac_compile) 2>&5
8493  ac_status=$?
8494  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8495  test $ac_status = 0; }; then
8496    emul=elf
8497    case `/usr/bin/file conftest.$ac_objext` in
8498      *32-bit*)
8499	emul="${emul}32"
8500	;;
8501      *64-bit*)
8502	emul="${emul}64"
8503	;;
8504    esac
8505    case `/usr/bin/file conftest.$ac_objext` in
8506      *MSB*)
8507	emul="${emul}btsmip"
8508	;;
8509      *LSB*)
8510	emul="${emul}ltsmip"
8511	;;
8512    esac
8513    case `/usr/bin/file conftest.$ac_objext` in
8514      *N32*)
8515	emul="${emul}n32"
8516	;;
8517    esac
8518    LD="${LD-ld} -m $emul"
8519  fi
8520  rm -rf conftest*
8521  ;;
8522
8523x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8524s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8525  # Find out what ABI is being produced by ac_compile, and set linker
8526  # options accordingly.  Note that the listed cases only cover the
8527  # situations where additional linker options are needed (such as when
8528  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8529  # vice versa); the common cases where no linker options are needed do
8530  # not appear in the list.
8531  echo 'int i;' > conftest.$ac_ext
8532  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8533  (eval $ac_compile) 2>&5
8534  ac_status=$?
8535  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8536  test $ac_status = 0; }; then
8537    case `/usr/bin/file conftest.o` in
8538      *32-bit*)
8539	case $host in
8540	  x86_64-*kfreebsd*-gnu)
8541	    LD="${LD-ld} -m elf_i386_fbsd"
8542	    ;;
8543	  x86_64-*linux*)
8544	    case `/usr/bin/file conftest.o` in
8545	      *x86-64*)
8546		LD="${LD-ld} -m elf32_x86_64"
8547		;;
8548	      *)
8549		LD="${LD-ld} -m elf_i386"
8550		;;
8551	    esac
8552	    ;;
8553	  powerpc64le-*linux*)
8554	    LD="${LD-ld} -m elf32lppclinux"
8555	    ;;
8556	  powerpc64-*linux*)
8557	    LD="${LD-ld} -m elf32ppclinux"
8558	    ;;
8559	  s390x-*linux*)
8560	    LD="${LD-ld} -m elf_s390"
8561	    ;;
8562	  sparc64-*linux*)
8563	    LD="${LD-ld} -m elf32_sparc"
8564	    ;;
8565	esac
8566	;;
8567      *64-bit*)
8568	case $host in
8569	  x86_64-*kfreebsd*-gnu)
8570	    LD="${LD-ld} -m elf_x86_64_fbsd"
8571	    ;;
8572	  x86_64-*linux*)
8573	    LD="${LD-ld} -m elf_x86_64"
8574	    ;;
8575	  powerpcle-*linux*)
8576	    LD="${LD-ld} -m elf64lppc"
8577	    ;;
8578	  powerpc-*linux*)
8579	    LD="${LD-ld} -m elf64ppc"
8580	    ;;
8581	  s390*-*linux*|s390*-*tpf*)
8582	    LD="${LD-ld} -m elf64_s390"
8583	    ;;
8584	  sparc*-*linux*)
8585	    LD="${LD-ld} -m elf64_sparc"
8586	    ;;
8587	esac
8588	;;
8589    esac
8590  fi
8591  rm -rf conftest*
8592  ;;
8593
8594*-*-sco3.2v5*)
8595  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8596  SAVE_CFLAGS=$CFLAGS
8597  CFLAGS="$CFLAGS -belf"
8598  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8599$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8600if ${lt_cv_cc_needs_belf+:} false; then :
8601  $as_echo_n "(cached) " >&6
8602else
8603  ac_ext=c
8604ac_cpp='$CPP $CPPFLAGS'
8605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8607ac_compiler_gnu=$ac_cv_c_compiler_gnu
8608
8609     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8610/* end confdefs.h.  */
8611
8612int
8613main ()
8614{
8615
8616  ;
8617  return 0;
8618}
8619_ACEOF
8620if ac_fn_c_try_link "$LINENO"; then :
8621  lt_cv_cc_needs_belf=yes
8622else
8623  lt_cv_cc_needs_belf=no
8624fi
8625rm -f core conftest.err conftest.$ac_objext \
8626    conftest$ac_exeext conftest.$ac_ext
8627     ac_ext=c
8628ac_cpp='$CPP $CPPFLAGS'
8629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8631ac_compiler_gnu=$ac_cv_c_compiler_gnu
8632
8633fi
8634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8635$as_echo "$lt_cv_cc_needs_belf" >&6; }
8636  if test yes != "$lt_cv_cc_needs_belf"; then
8637    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8638    CFLAGS=$SAVE_CFLAGS
8639  fi
8640  ;;
8641*-*solaris*)
8642  # Find out what ABI is being produced by ac_compile, and set linker
8643  # options accordingly.
8644  echo 'int i;' > conftest.$ac_ext
8645  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8646  (eval $ac_compile) 2>&5
8647  ac_status=$?
8648  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8649  test $ac_status = 0; }; then
8650    case `/usr/bin/file conftest.o` in
8651    *64-bit*)
8652      case $lt_cv_prog_gnu_ld in
8653      yes*)
8654        case $host in
8655        i?86-*-solaris*|x86_64-*-solaris*)
8656          LD="${LD-ld} -m elf_x86_64"
8657          ;;
8658        sparc*-*-solaris*)
8659          LD="${LD-ld} -m elf64_sparc"
8660          ;;
8661        esac
8662        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8663        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8664          LD=${LD-ld}_sol2
8665        fi
8666        ;;
8667      *)
8668	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8669	  LD="${LD-ld} -64"
8670	fi
8671	;;
8672      esac
8673      ;;
8674    esac
8675  fi
8676  rm -rf conftest*
8677  ;;
8678esac
8679
8680need_locks=$enable_libtool_lock
8681
8682if test -n "$ac_tool_prefix"; then
8683  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8684set dummy ${ac_tool_prefix}mt; ac_word=$2
8685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8686$as_echo_n "checking for $ac_word... " >&6; }
8687if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8688  $as_echo_n "(cached) " >&6
8689else
8690  if test -n "$MANIFEST_TOOL"; then
8691  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8692else
8693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8694for as_dir in $PATH
8695do
8696  IFS=$as_save_IFS
8697  test -z "$as_dir" && as_dir=.
8698    for ac_exec_ext in '' $ac_executable_extensions; do
8699  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8700    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8701    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8702    break 2
8703  fi
8704done
8705  done
8706IFS=$as_save_IFS
8707
8708fi
8709fi
8710MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8711if test -n "$MANIFEST_TOOL"; then
8712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8713$as_echo "$MANIFEST_TOOL" >&6; }
8714else
8715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8716$as_echo "no" >&6; }
8717fi
8718
8719
8720fi
8721if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8722  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8723  # Extract the first word of "mt", so it can be a program name with args.
8724set dummy mt; ac_word=$2
8725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8726$as_echo_n "checking for $ac_word... " >&6; }
8727if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8728  $as_echo_n "(cached) " >&6
8729else
8730  if test -n "$ac_ct_MANIFEST_TOOL"; then
8731  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8732else
8733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8734for as_dir in $PATH
8735do
8736  IFS=$as_save_IFS
8737  test -z "$as_dir" && as_dir=.
8738    for ac_exec_ext in '' $ac_executable_extensions; do
8739  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8740    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8741    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8742    break 2
8743  fi
8744done
8745  done
8746IFS=$as_save_IFS
8747
8748fi
8749fi
8750ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8751if test -n "$ac_ct_MANIFEST_TOOL"; then
8752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8753$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8754else
8755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8756$as_echo "no" >&6; }
8757fi
8758
8759  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8760    MANIFEST_TOOL=":"
8761  else
8762    case $cross_compiling:$ac_tool_warned in
8763yes:)
8764{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8765$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8766ac_tool_warned=yes ;;
8767esac
8768    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8769  fi
8770else
8771  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8772fi
8773
8774test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8776$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8777if ${lt_cv_path_mainfest_tool+:} false; then :
8778  $as_echo_n "(cached) " >&6
8779else
8780  lt_cv_path_mainfest_tool=no
8781  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8782  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8783  cat conftest.err >&5
8784  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8785    lt_cv_path_mainfest_tool=yes
8786  fi
8787  rm -f conftest*
8788fi
8789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8790$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8791if test yes != "$lt_cv_path_mainfest_tool"; then
8792  MANIFEST_TOOL=:
8793fi
8794
8795
8796
8797
8798
8799
8800  case $host_os in
8801    rhapsody* | darwin*)
8802    if test -n "$ac_tool_prefix"; then
8803  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8804set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8806$as_echo_n "checking for $ac_word... " >&6; }
8807if ${ac_cv_prog_DSYMUTIL+:} false; then :
8808  $as_echo_n "(cached) " >&6
8809else
8810  if test -n "$DSYMUTIL"; then
8811  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8812else
8813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8814for as_dir in $PATH
8815do
8816  IFS=$as_save_IFS
8817  test -z "$as_dir" && as_dir=.
8818    for ac_exec_ext in '' $ac_executable_extensions; do
8819  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8820    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8821    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8822    break 2
8823  fi
8824done
8825  done
8826IFS=$as_save_IFS
8827
8828fi
8829fi
8830DSYMUTIL=$ac_cv_prog_DSYMUTIL
8831if test -n "$DSYMUTIL"; then
8832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8833$as_echo "$DSYMUTIL" >&6; }
8834else
8835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8836$as_echo "no" >&6; }
8837fi
8838
8839
8840fi
8841if test -z "$ac_cv_prog_DSYMUTIL"; then
8842  ac_ct_DSYMUTIL=$DSYMUTIL
8843  # Extract the first word of "dsymutil", so it can be a program name with args.
8844set dummy dsymutil; ac_word=$2
8845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8846$as_echo_n "checking for $ac_word... " >&6; }
8847if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8848  $as_echo_n "(cached) " >&6
8849else
8850  if test -n "$ac_ct_DSYMUTIL"; then
8851  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8852else
8853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8854for as_dir in $PATH
8855do
8856  IFS=$as_save_IFS
8857  test -z "$as_dir" && as_dir=.
8858    for ac_exec_ext in '' $ac_executable_extensions; do
8859  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8860    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8861    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8862    break 2
8863  fi
8864done
8865  done
8866IFS=$as_save_IFS
8867
8868fi
8869fi
8870ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8871if test -n "$ac_ct_DSYMUTIL"; then
8872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8873$as_echo "$ac_ct_DSYMUTIL" >&6; }
8874else
8875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8876$as_echo "no" >&6; }
8877fi
8878
8879  if test "x$ac_ct_DSYMUTIL" = x; then
8880    DSYMUTIL=":"
8881  else
8882    case $cross_compiling:$ac_tool_warned in
8883yes:)
8884{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8885$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8886ac_tool_warned=yes ;;
8887esac
8888    DSYMUTIL=$ac_ct_DSYMUTIL
8889  fi
8890else
8891  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8892fi
8893
8894    if test -n "$ac_tool_prefix"; then
8895  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8896set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8898$as_echo_n "checking for $ac_word... " >&6; }
8899if ${ac_cv_prog_NMEDIT+:} false; then :
8900  $as_echo_n "(cached) " >&6
8901else
8902  if test -n "$NMEDIT"; then
8903  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8904else
8905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8906for as_dir in $PATH
8907do
8908  IFS=$as_save_IFS
8909  test -z "$as_dir" && as_dir=.
8910    for ac_exec_ext in '' $ac_executable_extensions; do
8911  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8912    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8913    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8914    break 2
8915  fi
8916done
8917  done
8918IFS=$as_save_IFS
8919
8920fi
8921fi
8922NMEDIT=$ac_cv_prog_NMEDIT
8923if test -n "$NMEDIT"; then
8924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8925$as_echo "$NMEDIT" >&6; }
8926else
8927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8928$as_echo "no" >&6; }
8929fi
8930
8931
8932fi
8933if test -z "$ac_cv_prog_NMEDIT"; then
8934  ac_ct_NMEDIT=$NMEDIT
8935  # Extract the first word of "nmedit", so it can be a program name with args.
8936set dummy nmedit; ac_word=$2
8937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8938$as_echo_n "checking for $ac_word... " >&6; }
8939if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8940  $as_echo_n "(cached) " >&6
8941else
8942  if test -n "$ac_ct_NMEDIT"; then
8943  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8944else
8945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8946for as_dir in $PATH
8947do
8948  IFS=$as_save_IFS
8949  test -z "$as_dir" && as_dir=.
8950    for ac_exec_ext in '' $ac_executable_extensions; do
8951  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8952    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8953    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8954    break 2
8955  fi
8956done
8957  done
8958IFS=$as_save_IFS
8959
8960fi
8961fi
8962ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8963if test -n "$ac_ct_NMEDIT"; then
8964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8965$as_echo "$ac_ct_NMEDIT" >&6; }
8966else
8967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8968$as_echo "no" >&6; }
8969fi
8970
8971  if test "x$ac_ct_NMEDIT" = x; then
8972    NMEDIT=":"
8973  else
8974    case $cross_compiling:$ac_tool_warned in
8975yes:)
8976{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8977$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8978ac_tool_warned=yes ;;
8979esac
8980    NMEDIT=$ac_ct_NMEDIT
8981  fi
8982else
8983  NMEDIT="$ac_cv_prog_NMEDIT"
8984fi
8985
8986    if test -n "$ac_tool_prefix"; then
8987  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8988set dummy ${ac_tool_prefix}lipo; ac_word=$2
8989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8990$as_echo_n "checking for $ac_word... " >&6; }
8991if ${ac_cv_prog_LIPO+:} false; then :
8992  $as_echo_n "(cached) " >&6
8993else
8994  if test -n "$LIPO"; then
8995  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8996else
8997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8998for as_dir in $PATH
8999do
9000  IFS=$as_save_IFS
9001  test -z "$as_dir" && as_dir=.
9002    for ac_exec_ext in '' $ac_executable_extensions; do
9003  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9004    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9005    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9006    break 2
9007  fi
9008done
9009  done
9010IFS=$as_save_IFS
9011
9012fi
9013fi
9014LIPO=$ac_cv_prog_LIPO
9015if test -n "$LIPO"; then
9016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9017$as_echo "$LIPO" >&6; }
9018else
9019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9020$as_echo "no" >&6; }
9021fi
9022
9023
9024fi
9025if test -z "$ac_cv_prog_LIPO"; then
9026  ac_ct_LIPO=$LIPO
9027  # Extract the first word of "lipo", so it can be a program name with args.
9028set dummy lipo; ac_word=$2
9029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9030$as_echo_n "checking for $ac_word... " >&6; }
9031if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9032  $as_echo_n "(cached) " >&6
9033else
9034  if test -n "$ac_ct_LIPO"; then
9035  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9036else
9037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9038for as_dir in $PATH
9039do
9040  IFS=$as_save_IFS
9041  test -z "$as_dir" && as_dir=.
9042    for ac_exec_ext in '' $ac_executable_extensions; do
9043  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9044    ac_cv_prog_ac_ct_LIPO="lipo"
9045    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9046    break 2
9047  fi
9048done
9049  done
9050IFS=$as_save_IFS
9051
9052fi
9053fi
9054ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9055if test -n "$ac_ct_LIPO"; then
9056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9057$as_echo "$ac_ct_LIPO" >&6; }
9058else
9059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9060$as_echo "no" >&6; }
9061fi
9062
9063  if test "x$ac_ct_LIPO" = x; then
9064    LIPO=":"
9065  else
9066    case $cross_compiling:$ac_tool_warned in
9067yes:)
9068{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9069$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9070ac_tool_warned=yes ;;
9071esac
9072    LIPO=$ac_ct_LIPO
9073  fi
9074else
9075  LIPO="$ac_cv_prog_LIPO"
9076fi
9077
9078    if test -n "$ac_tool_prefix"; then
9079  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9080set dummy ${ac_tool_prefix}otool; ac_word=$2
9081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9082$as_echo_n "checking for $ac_word... " >&6; }
9083if ${ac_cv_prog_OTOOL+:} false; then :
9084  $as_echo_n "(cached) " >&6
9085else
9086  if test -n "$OTOOL"; then
9087  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9088else
9089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9090for as_dir in $PATH
9091do
9092  IFS=$as_save_IFS
9093  test -z "$as_dir" && as_dir=.
9094    for ac_exec_ext in '' $ac_executable_extensions; do
9095  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9096    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9097    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9098    break 2
9099  fi
9100done
9101  done
9102IFS=$as_save_IFS
9103
9104fi
9105fi
9106OTOOL=$ac_cv_prog_OTOOL
9107if test -n "$OTOOL"; then
9108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9109$as_echo "$OTOOL" >&6; }
9110else
9111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9112$as_echo "no" >&6; }
9113fi
9114
9115
9116fi
9117if test -z "$ac_cv_prog_OTOOL"; then
9118  ac_ct_OTOOL=$OTOOL
9119  # Extract the first word of "otool", so it can be a program name with args.
9120set dummy otool; ac_word=$2
9121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9122$as_echo_n "checking for $ac_word... " >&6; }
9123if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9124  $as_echo_n "(cached) " >&6
9125else
9126  if test -n "$ac_ct_OTOOL"; then
9127  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9128else
9129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9130for as_dir in $PATH
9131do
9132  IFS=$as_save_IFS
9133  test -z "$as_dir" && as_dir=.
9134    for ac_exec_ext in '' $ac_executable_extensions; do
9135  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9136    ac_cv_prog_ac_ct_OTOOL="otool"
9137    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9138    break 2
9139  fi
9140done
9141  done
9142IFS=$as_save_IFS
9143
9144fi
9145fi
9146ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9147if test -n "$ac_ct_OTOOL"; then
9148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9149$as_echo "$ac_ct_OTOOL" >&6; }
9150else
9151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9152$as_echo "no" >&6; }
9153fi
9154
9155  if test "x$ac_ct_OTOOL" = x; then
9156    OTOOL=":"
9157  else
9158    case $cross_compiling:$ac_tool_warned in
9159yes:)
9160{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9161$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9162ac_tool_warned=yes ;;
9163esac
9164    OTOOL=$ac_ct_OTOOL
9165  fi
9166else
9167  OTOOL="$ac_cv_prog_OTOOL"
9168fi
9169
9170    if test -n "$ac_tool_prefix"; then
9171  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9172set dummy ${ac_tool_prefix}otool64; ac_word=$2
9173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9174$as_echo_n "checking for $ac_word... " >&6; }
9175if ${ac_cv_prog_OTOOL64+:} false; then :
9176  $as_echo_n "(cached) " >&6
9177else
9178  if test -n "$OTOOL64"; then
9179  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9180else
9181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9182for as_dir in $PATH
9183do
9184  IFS=$as_save_IFS
9185  test -z "$as_dir" && as_dir=.
9186    for ac_exec_ext in '' $ac_executable_extensions; do
9187  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9188    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9189    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9190    break 2
9191  fi
9192done
9193  done
9194IFS=$as_save_IFS
9195
9196fi
9197fi
9198OTOOL64=$ac_cv_prog_OTOOL64
9199if test -n "$OTOOL64"; then
9200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9201$as_echo "$OTOOL64" >&6; }
9202else
9203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9204$as_echo "no" >&6; }
9205fi
9206
9207
9208fi
9209if test -z "$ac_cv_prog_OTOOL64"; then
9210  ac_ct_OTOOL64=$OTOOL64
9211  # Extract the first word of "otool64", so it can be a program name with args.
9212set dummy otool64; ac_word=$2
9213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9214$as_echo_n "checking for $ac_word... " >&6; }
9215if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9216  $as_echo_n "(cached) " >&6
9217else
9218  if test -n "$ac_ct_OTOOL64"; then
9219  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9220else
9221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9222for as_dir in $PATH
9223do
9224  IFS=$as_save_IFS
9225  test -z "$as_dir" && as_dir=.
9226    for ac_exec_ext in '' $ac_executable_extensions; do
9227  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9228    ac_cv_prog_ac_ct_OTOOL64="otool64"
9229    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9230    break 2
9231  fi
9232done
9233  done
9234IFS=$as_save_IFS
9235
9236fi
9237fi
9238ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9239if test -n "$ac_ct_OTOOL64"; then
9240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9241$as_echo "$ac_ct_OTOOL64" >&6; }
9242else
9243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9244$as_echo "no" >&6; }
9245fi
9246
9247  if test "x$ac_ct_OTOOL64" = x; then
9248    OTOOL64=":"
9249  else
9250    case $cross_compiling:$ac_tool_warned in
9251yes:)
9252{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9253$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9254ac_tool_warned=yes ;;
9255esac
9256    OTOOL64=$ac_ct_OTOOL64
9257  fi
9258else
9259  OTOOL64="$ac_cv_prog_OTOOL64"
9260fi
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9289$as_echo_n "checking for -single_module linker flag... " >&6; }
9290if ${lt_cv_apple_cc_single_mod+:} false; then :
9291  $as_echo_n "(cached) " >&6
9292else
9293  lt_cv_apple_cc_single_mod=no
9294      if test -z "$LT_MULTI_MODULE"; then
9295	# By default we will add the -single_module flag. You can override
9296	# by either setting the environment variable LT_MULTI_MODULE
9297	# non-empty at configure time, or by adding -multi_module to the
9298	# link flags.
9299	rm -rf libconftest.dylib*
9300	echo "int foo(void){return 1;}" > conftest.c
9301	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9302-dynamiclib -Wl,-single_module conftest.c" >&5
9303	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9304	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9305        _lt_result=$?
9306	# If there is a non-empty error log, and "single_module"
9307	# appears in it, assume the flag caused a linker warning
9308        if test -s conftest.err && $GREP single_module conftest.err; then
9309	  cat conftest.err >&5
9310	# Otherwise, if the output was created with a 0 exit code from
9311	# the compiler, it worked.
9312	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9313	  lt_cv_apple_cc_single_mod=yes
9314	else
9315	  cat conftest.err >&5
9316	fi
9317	rm -rf libconftest.dylib*
9318	rm -f conftest.*
9319      fi
9320fi
9321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9322$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9323
9324    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9325$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9326if ${lt_cv_ld_exported_symbols_list+:} false; then :
9327  $as_echo_n "(cached) " >&6
9328else
9329  lt_cv_ld_exported_symbols_list=no
9330      save_LDFLAGS=$LDFLAGS
9331      echo "_main" > conftest.sym
9332      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9333      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9334/* end confdefs.h.  */
9335
9336int
9337main ()
9338{
9339
9340  ;
9341  return 0;
9342}
9343_ACEOF
9344if ac_fn_c_try_link "$LINENO"; then :
9345  lt_cv_ld_exported_symbols_list=yes
9346else
9347  lt_cv_ld_exported_symbols_list=no
9348fi
9349rm -f core conftest.err conftest.$ac_objext \
9350    conftest$ac_exeext conftest.$ac_ext
9351	LDFLAGS=$save_LDFLAGS
9352
9353fi
9354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9355$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9356
9357    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9358$as_echo_n "checking for -force_load linker flag... " >&6; }
9359if ${lt_cv_ld_force_load+:} false; then :
9360  $as_echo_n "(cached) " >&6
9361else
9362  lt_cv_ld_force_load=no
9363      cat > conftest.c << _LT_EOF
9364int forced_loaded() { return 2;}
9365_LT_EOF
9366      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9367      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9368      echo "$AR cru libconftest.a conftest.o" >&5
9369      $AR cru libconftest.a conftest.o 2>&5
9370      echo "$RANLIB libconftest.a" >&5
9371      $RANLIB libconftest.a 2>&5
9372      cat > conftest.c << _LT_EOF
9373int main() { return 0;}
9374_LT_EOF
9375      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9376      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9377      _lt_result=$?
9378      if test -s conftest.err && $GREP force_load conftest.err; then
9379	cat conftest.err >&5
9380      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9381	lt_cv_ld_force_load=yes
9382      else
9383	cat conftest.err >&5
9384      fi
9385        rm -f conftest.err libconftest.a conftest conftest.c
9386        rm -rf conftest.dSYM
9387
9388fi
9389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9390$as_echo "$lt_cv_ld_force_load" >&6; }
9391    case $host_os in
9392    rhapsody* | darwin1.[012])
9393      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9394    darwin1.*)
9395      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9396    darwin*) # darwin 5.x on
9397      # if running on 10.5 or later, the deployment target defaults
9398      # to the OS version, if on x86, and 10.4, the deployment
9399      # target defaults to 10.4. Don't you love it?
9400      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9401	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9402	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9403	10.[012][,.]*)
9404	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9405	10.*)
9406	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9407      esac
9408    ;;
9409  esac
9410    if test yes = "$lt_cv_apple_cc_single_mod"; then
9411      _lt_dar_single_mod='$single_module'
9412    fi
9413    if test yes = "$lt_cv_ld_exported_symbols_list"; then
9414      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9415    else
9416      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9417    fi
9418    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9419      _lt_dsymutil='~$DSYMUTIL $lib || :'
9420    else
9421      _lt_dsymutil=
9422    fi
9423    ;;
9424  esac
9425
9426# func_munge_path_list VARIABLE PATH
9427# -----------------------------------
9428# VARIABLE is name of variable containing _space_ separated list of
9429# directories to be munged by the contents of PATH, which is string
9430# having a format:
9431# "DIR[:DIR]:"
9432#       string "DIR[ DIR]" will be prepended to VARIABLE
9433# ":DIR[:DIR]"
9434#       string "DIR[ DIR]" will be appended to VARIABLE
9435# "DIRP[:DIRP]::[DIRA:]DIRA"
9436#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9437#       "DIRA[ DIRA]" will be appended to VARIABLE
9438# "DIR[:DIR]"
9439#       VARIABLE will be replaced by "DIR[ DIR]"
9440func_munge_path_list ()
9441{
9442    case x$2 in
9443    x)
9444        ;;
9445    *:)
9446        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9447        ;;
9448    x:*)
9449        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9450        ;;
9451    *::*)
9452        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9453        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9454        ;;
9455    *)
9456        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9457        ;;
9458    esac
9459}
9460
9461for ac_header in dlfcn.h
9462do :
9463  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9464"
9465if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9466  cat >>confdefs.h <<_ACEOF
9467#define HAVE_DLFCN_H 1
9468_ACEOF
9469
9470fi
9471
9472done
9473
9474
9475
9476
9477func_stripname_cnf ()
9478{
9479  case $2 in
9480  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9481  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
9482  esac
9483} # func_stripname_cnf
9484
9485
9486
9487
9488
9489# Set options
9490# Check whether --enable-static was given.
9491if test "${enable_static+set}" = set; then :
9492  enableval=$enable_static; p=${PACKAGE-default}
9493    case $enableval in
9494    yes) enable_static=yes ;;
9495    no) enable_static=no ;;
9496    *)
9497     enable_static=no
9498      # Look at the argument we got.  We use all the common list separators.
9499      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9500      for pkg in $enableval; do
9501	IFS=$lt_save_ifs
9502	if test "X$pkg" = "X$p"; then
9503	  enable_static=yes
9504	fi
9505      done
9506      IFS=$lt_save_ifs
9507      ;;
9508    esac
9509else
9510  enable_static=no
9511fi
9512
9513
9514
9515
9516
9517
9518
9519enable_win32_dll=yes
9520
9521case $host in
9522*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9523  if test -n "$ac_tool_prefix"; then
9524  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9525set dummy ${ac_tool_prefix}as; ac_word=$2
9526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9527$as_echo_n "checking for $ac_word... " >&6; }
9528if ${ac_cv_prog_AS+:} false; then :
9529  $as_echo_n "(cached) " >&6
9530else
9531  if test -n "$AS"; then
9532  ac_cv_prog_AS="$AS" # Let the user override the test.
9533else
9534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9535for as_dir in $PATH
9536do
9537  IFS=$as_save_IFS
9538  test -z "$as_dir" && as_dir=.
9539    for ac_exec_ext in '' $ac_executable_extensions; do
9540  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9541    ac_cv_prog_AS="${ac_tool_prefix}as"
9542    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9543    break 2
9544  fi
9545done
9546  done
9547IFS=$as_save_IFS
9548
9549fi
9550fi
9551AS=$ac_cv_prog_AS
9552if test -n "$AS"; then
9553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9554$as_echo "$AS" >&6; }
9555else
9556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9557$as_echo "no" >&6; }
9558fi
9559
9560
9561fi
9562if test -z "$ac_cv_prog_AS"; then
9563  ac_ct_AS=$AS
9564  # Extract the first word of "as", so it can be a program name with args.
9565set dummy as; ac_word=$2
9566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9567$as_echo_n "checking for $ac_word... " >&6; }
9568if ${ac_cv_prog_ac_ct_AS+:} false; then :
9569  $as_echo_n "(cached) " >&6
9570else
9571  if test -n "$ac_ct_AS"; then
9572  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9573else
9574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9575for as_dir in $PATH
9576do
9577  IFS=$as_save_IFS
9578  test -z "$as_dir" && as_dir=.
9579    for ac_exec_ext in '' $ac_executable_extensions; do
9580  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9581    ac_cv_prog_ac_ct_AS="as"
9582    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9583    break 2
9584  fi
9585done
9586  done
9587IFS=$as_save_IFS
9588
9589fi
9590fi
9591ac_ct_AS=$ac_cv_prog_ac_ct_AS
9592if test -n "$ac_ct_AS"; then
9593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9594$as_echo "$ac_ct_AS" >&6; }
9595else
9596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9597$as_echo "no" >&6; }
9598fi
9599
9600  if test "x$ac_ct_AS" = x; then
9601    AS="false"
9602  else
9603    case $cross_compiling:$ac_tool_warned in
9604yes:)
9605{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9606$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9607ac_tool_warned=yes ;;
9608esac
9609    AS=$ac_ct_AS
9610  fi
9611else
9612  AS="$ac_cv_prog_AS"
9613fi
9614
9615  if test -n "$ac_tool_prefix"; then
9616  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9617set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9619$as_echo_n "checking for $ac_word... " >&6; }
9620if ${ac_cv_prog_DLLTOOL+:} false; then :
9621  $as_echo_n "(cached) " >&6
9622else
9623  if test -n "$DLLTOOL"; then
9624  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9625else
9626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9627for as_dir in $PATH
9628do
9629  IFS=$as_save_IFS
9630  test -z "$as_dir" && as_dir=.
9631    for ac_exec_ext in '' $ac_executable_extensions; do
9632  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9633    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9634    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9635    break 2
9636  fi
9637done
9638  done
9639IFS=$as_save_IFS
9640
9641fi
9642fi
9643DLLTOOL=$ac_cv_prog_DLLTOOL
9644if test -n "$DLLTOOL"; then
9645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9646$as_echo "$DLLTOOL" >&6; }
9647else
9648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9649$as_echo "no" >&6; }
9650fi
9651
9652
9653fi
9654if test -z "$ac_cv_prog_DLLTOOL"; then
9655  ac_ct_DLLTOOL=$DLLTOOL
9656  # Extract the first word of "dlltool", so it can be a program name with args.
9657set dummy dlltool; ac_word=$2
9658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9659$as_echo_n "checking for $ac_word... " >&6; }
9660if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9661  $as_echo_n "(cached) " >&6
9662else
9663  if test -n "$ac_ct_DLLTOOL"; then
9664  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9665else
9666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9667for as_dir in $PATH
9668do
9669  IFS=$as_save_IFS
9670  test -z "$as_dir" && as_dir=.
9671    for ac_exec_ext in '' $ac_executable_extensions; do
9672  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9673    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9674    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9675    break 2
9676  fi
9677done
9678  done
9679IFS=$as_save_IFS
9680
9681fi
9682fi
9683ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9684if test -n "$ac_ct_DLLTOOL"; then
9685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9686$as_echo "$ac_ct_DLLTOOL" >&6; }
9687else
9688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9689$as_echo "no" >&6; }
9690fi
9691
9692  if test "x$ac_ct_DLLTOOL" = x; then
9693    DLLTOOL="false"
9694  else
9695    case $cross_compiling:$ac_tool_warned in
9696yes:)
9697{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9698$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9699ac_tool_warned=yes ;;
9700esac
9701    DLLTOOL=$ac_ct_DLLTOOL
9702  fi
9703else
9704  DLLTOOL="$ac_cv_prog_DLLTOOL"
9705fi
9706
9707  if test -n "$ac_tool_prefix"; then
9708  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9709set dummy ${ac_tool_prefix}objdump; ac_word=$2
9710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9711$as_echo_n "checking for $ac_word... " >&6; }
9712if ${ac_cv_prog_OBJDUMP+:} false; then :
9713  $as_echo_n "(cached) " >&6
9714else
9715  if test -n "$OBJDUMP"; then
9716  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9717else
9718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9719for as_dir in $PATH
9720do
9721  IFS=$as_save_IFS
9722  test -z "$as_dir" && as_dir=.
9723    for ac_exec_ext in '' $ac_executable_extensions; do
9724  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9725    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9726    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9727    break 2
9728  fi
9729done
9730  done
9731IFS=$as_save_IFS
9732
9733fi
9734fi
9735OBJDUMP=$ac_cv_prog_OBJDUMP
9736if test -n "$OBJDUMP"; then
9737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9738$as_echo "$OBJDUMP" >&6; }
9739else
9740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9741$as_echo "no" >&6; }
9742fi
9743
9744
9745fi
9746if test -z "$ac_cv_prog_OBJDUMP"; then
9747  ac_ct_OBJDUMP=$OBJDUMP
9748  # Extract the first word of "objdump", so it can be a program name with args.
9749set dummy objdump; ac_word=$2
9750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9751$as_echo_n "checking for $ac_word... " >&6; }
9752if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9753  $as_echo_n "(cached) " >&6
9754else
9755  if test -n "$ac_ct_OBJDUMP"; then
9756  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9757else
9758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9759for as_dir in $PATH
9760do
9761  IFS=$as_save_IFS
9762  test -z "$as_dir" && as_dir=.
9763    for ac_exec_ext in '' $ac_executable_extensions; do
9764  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9765    ac_cv_prog_ac_ct_OBJDUMP="objdump"
9766    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9767    break 2
9768  fi
9769done
9770  done
9771IFS=$as_save_IFS
9772
9773fi
9774fi
9775ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9776if test -n "$ac_ct_OBJDUMP"; then
9777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9778$as_echo "$ac_ct_OBJDUMP" >&6; }
9779else
9780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9781$as_echo "no" >&6; }
9782fi
9783
9784  if test "x$ac_ct_OBJDUMP" = x; then
9785    OBJDUMP="false"
9786  else
9787    case $cross_compiling:$ac_tool_warned in
9788yes:)
9789{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9790$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9791ac_tool_warned=yes ;;
9792esac
9793    OBJDUMP=$ac_ct_OBJDUMP
9794  fi
9795else
9796  OBJDUMP="$ac_cv_prog_OBJDUMP"
9797fi
9798
9799  ;;
9800esac
9801
9802test -z "$AS" && AS=as
9803
9804
9805
9806
9807
9808test -z "$DLLTOOL" && DLLTOOL=dlltool
9809
9810
9811
9812
9813
9814test -z "$OBJDUMP" && OBJDUMP=objdump
9815
9816
9817
9818
9819
9820
9821
9822        enable_dlopen=no
9823
9824
9825
9826            # Check whether --enable-shared was given.
9827if test "${enable_shared+set}" = set; then :
9828  enableval=$enable_shared; p=${PACKAGE-default}
9829    case $enableval in
9830    yes) enable_shared=yes ;;
9831    no) enable_shared=no ;;
9832    *)
9833      enable_shared=no
9834      # Look at the argument we got.  We use all the common list separators.
9835      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9836      for pkg in $enableval; do
9837	IFS=$lt_save_ifs
9838	if test "X$pkg" = "X$p"; then
9839	  enable_shared=yes
9840	fi
9841      done
9842      IFS=$lt_save_ifs
9843      ;;
9844    esac
9845else
9846  enable_shared=yes
9847fi
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859# Check whether --with-pic was given.
9860if test "${with_pic+set}" = set; then :
9861  withval=$with_pic; lt_p=${PACKAGE-default}
9862    case $withval in
9863    yes|no) pic_mode=$withval ;;
9864    *)
9865      pic_mode=default
9866      # Look at the argument we got.  We use all the common list separators.
9867      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9868      for lt_pkg in $withval; do
9869	IFS=$lt_save_ifs
9870	if test "X$lt_pkg" = "X$lt_p"; then
9871	  pic_mode=yes
9872	fi
9873      done
9874      IFS=$lt_save_ifs
9875      ;;
9876    esac
9877else
9878  pic_mode=default
9879fi
9880
9881
9882
9883
9884
9885
9886
9887
9888  # Check whether --enable-fast-install was given.
9889if test "${enable_fast_install+set}" = set; then :
9890  enableval=$enable_fast_install; p=${PACKAGE-default}
9891    case $enableval in
9892    yes) enable_fast_install=yes ;;
9893    no) enable_fast_install=no ;;
9894    *)
9895      enable_fast_install=no
9896      # Look at the argument we got.  We use all the common list separators.
9897      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9898      for pkg in $enableval; do
9899	IFS=$lt_save_ifs
9900	if test "X$pkg" = "X$p"; then
9901	  enable_fast_install=yes
9902	fi
9903      done
9904      IFS=$lt_save_ifs
9905      ;;
9906    esac
9907else
9908  enable_fast_install=yes
9909fi
9910
9911
9912
9913
9914
9915
9916
9917
9918  shared_archive_member_spec=
9919case $host,$enable_shared in
9920power*-*-aix[5-9]*,yes)
9921  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9922$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9923
9924# Check whether --with-aix-soname was given.
9925if test "${with_aix_soname+set}" = set; then :
9926  withval=$with_aix_soname; case $withval in
9927    aix|svr4|both)
9928      ;;
9929    *)
9930      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9931      ;;
9932    esac
9933    lt_cv_with_aix_soname=$with_aix_soname
9934else
9935  if ${lt_cv_with_aix_soname+:} false; then :
9936  $as_echo_n "(cached) " >&6
9937else
9938  lt_cv_with_aix_soname=aix
9939fi
9940
9941    with_aix_soname=$lt_cv_with_aix_soname
9942fi
9943
9944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9945$as_echo "$with_aix_soname" >&6; }
9946  if test aix != "$with_aix_soname"; then
9947    # For the AIX way of multilib, we name the shared archive member
9948    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9949    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9950    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9951    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9952    if test 64 = "${OBJECT_MODE-32}"; then
9953      shared_archive_member_spec=shr_64
9954    else
9955      shared_archive_member_spec=shr
9956    fi
9957  fi
9958  ;;
9959*)
9960  with_aix_soname=aix
9961  ;;
9962esac
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973# This can be used to rebuild libtool when needed
9974LIBTOOL_DEPS=$ltmain
9975
9976# Always use our own libtool.
9977LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008test -z "$LN_S" && LN_S="ln -s"
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023if test -n "${ZSH_VERSION+set}"; then
10024   setopt NO_GLOB_SUBST
10025fi
10026
10027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10028$as_echo_n "checking for objdir... " >&6; }
10029if ${lt_cv_objdir+:} false; then :
10030  $as_echo_n "(cached) " >&6
10031else
10032  rm -f .libs 2>/dev/null
10033mkdir .libs 2>/dev/null
10034if test -d .libs; then
10035  lt_cv_objdir=.libs
10036else
10037  # MS-DOS does not allow filenames that begin with a dot.
10038  lt_cv_objdir=_libs
10039fi
10040rmdir .libs 2>/dev/null
10041fi
10042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10043$as_echo "$lt_cv_objdir" >&6; }
10044objdir=$lt_cv_objdir
10045
10046
10047
10048
10049
10050cat >>confdefs.h <<_ACEOF
10051#define LT_OBJDIR "$lt_cv_objdir/"
10052_ACEOF
10053
10054
10055
10056
10057case $host_os in
10058aix3*)
10059  # AIX sometimes has problems with the GCC collect2 program.  For some
10060  # reason, if we set the COLLECT_NAMES environment variable, the problems
10061  # vanish in a puff of smoke.
10062  if test set != "${COLLECT_NAMES+set}"; then
10063    COLLECT_NAMES=
10064    export COLLECT_NAMES
10065  fi
10066  ;;
10067esac
10068
10069# Global variables:
10070ofile=libtool
10071can_build_shared=yes
10072
10073# All known linkers require a '.a' archive for static linking (except MSVC,
10074# which needs '.lib').
10075libext=a
10076
10077with_gnu_ld=$lt_cv_prog_gnu_ld
10078
10079old_CC=$CC
10080old_CFLAGS=$CFLAGS
10081
10082# Set sane defaults for various variables
10083test -z "$CC" && CC=cc
10084test -z "$LTCC" && LTCC=$CC
10085test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10086test -z "$LD" && LD=ld
10087test -z "$ac_objext" && ac_objext=o
10088
10089func_cc_basename $compiler
10090cc_basename=$func_cc_basename_result
10091
10092
10093# Only perform the check for file, if the check method requires it
10094test -z "$MAGIC_CMD" && MAGIC_CMD=file
10095case $deplibs_check_method in
10096file_magic*)
10097  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10098    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10099$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10100if ${lt_cv_path_MAGIC_CMD+:} false; then :
10101  $as_echo_n "(cached) " >&6
10102else
10103  case $MAGIC_CMD in
10104[\\/*] |  ?:[\\/]*)
10105  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10106  ;;
10107*)
10108  lt_save_MAGIC_CMD=$MAGIC_CMD
10109  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10110  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10111  for ac_dir in $ac_dummy; do
10112    IFS=$lt_save_ifs
10113    test -z "$ac_dir" && ac_dir=.
10114    if test -f "$ac_dir/${ac_tool_prefix}file"; then
10115      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10116      if test -n "$file_magic_test_file"; then
10117	case $deplibs_check_method in
10118	"file_magic "*)
10119	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10120	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10121	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10122	    $EGREP "$file_magic_regex" > /dev/null; then
10123	    :
10124	  else
10125	    cat <<_LT_EOF 1>&2
10126
10127*** Warning: the command libtool uses to detect shared libraries,
10128*** $file_magic_cmd, produces output that libtool cannot recognize.
10129*** The result is that libtool may fail to recognize shared libraries
10130*** as such.  This will affect the creation of libtool libraries that
10131*** depend on shared libraries, but programs linked with such libtool
10132*** libraries will work regardless of this problem.  Nevertheless, you
10133*** may want to report the problem to your system manager and/or to
10134*** bug-libtool@gnu.org
10135
10136_LT_EOF
10137	  fi ;;
10138	esac
10139      fi
10140      break
10141    fi
10142  done
10143  IFS=$lt_save_ifs
10144  MAGIC_CMD=$lt_save_MAGIC_CMD
10145  ;;
10146esac
10147fi
10148
10149MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10150if test -n "$MAGIC_CMD"; then
10151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10152$as_echo "$MAGIC_CMD" >&6; }
10153else
10154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10155$as_echo "no" >&6; }
10156fi
10157
10158
10159
10160
10161
10162if test -z "$lt_cv_path_MAGIC_CMD"; then
10163  if test -n "$ac_tool_prefix"; then
10164    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10165$as_echo_n "checking for file... " >&6; }
10166if ${lt_cv_path_MAGIC_CMD+:} false; then :
10167  $as_echo_n "(cached) " >&6
10168else
10169  case $MAGIC_CMD in
10170[\\/*] |  ?:[\\/]*)
10171  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10172  ;;
10173*)
10174  lt_save_MAGIC_CMD=$MAGIC_CMD
10175  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10176  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10177  for ac_dir in $ac_dummy; do
10178    IFS=$lt_save_ifs
10179    test -z "$ac_dir" && ac_dir=.
10180    if test -f "$ac_dir/file"; then
10181      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10182      if test -n "$file_magic_test_file"; then
10183	case $deplibs_check_method in
10184	"file_magic "*)
10185	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10186	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10187	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10188	    $EGREP "$file_magic_regex" > /dev/null; then
10189	    :
10190	  else
10191	    cat <<_LT_EOF 1>&2
10192
10193*** Warning: the command libtool uses to detect shared libraries,
10194*** $file_magic_cmd, produces output that libtool cannot recognize.
10195*** The result is that libtool may fail to recognize shared libraries
10196*** as such.  This will affect the creation of libtool libraries that
10197*** depend on shared libraries, but programs linked with such libtool
10198*** libraries will work regardless of this problem.  Nevertheless, you
10199*** may want to report the problem to your system manager and/or to
10200*** bug-libtool@gnu.org
10201
10202_LT_EOF
10203	  fi ;;
10204	esac
10205      fi
10206      break
10207    fi
10208  done
10209  IFS=$lt_save_ifs
10210  MAGIC_CMD=$lt_save_MAGIC_CMD
10211  ;;
10212esac
10213fi
10214
10215MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10216if test -n "$MAGIC_CMD"; then
10217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10218$as_echo "$MAGIC_CMD" >&6; }
10219else
10220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10221$as_echo "no" >&6; }
10222fi
10223
10224
10225  else
10226    MAGIC_CMD=:
10227  fi
10228fi
10229
10230  fi
10231  ;;
10232esac
10233
10234# Use C for the default configuration in the libtool script
10235
10236lt_save_CC=$CC
10237ac_ext=c
10238ac_cpp='$CPP $CPPFLAGS'
10239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10241ac_compiler_gnu=$ac_cv_c_compiler_gnu
10242
10243
10244# Source file extension for C test sources.
10245ac_ext=c
10246
10247# Object file extension for compiled C test sources.
10248objext=o
10249objext=$objext
10250
10251# Code to be used in simple compile tests
10252lt_simple_compile_test_code="int some_variable = 0;"
10253
10254# Code to be used in simple link tests
10255lt_simple_link_test_code='int main(){return(0);}'
10256
10257
10258
10259
10260
10261
10262
10263# If no C compiler was specified, use CC.
10264LTCC=${LTCC-"$CC"}
10265
10266# If no C compiler flags were specified, use CFLAGS.
10267LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10268
10269# Allow CC to be a program name with arguments.
10270compiler=$CC
10271
10272# Save the default compiler, since it gets overwritten when the other
10273# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10274compiler_DEFAULT=$CC
10275
10276# save warnings/boilerplate of simple test code
10277ac_outfile=conftest.$ac_objext
10278echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10279eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10280_lt_compiler_boilerplate=`cat conftest.err`
10281$RM conftest*
10282
10283ac_outfile=conftest.$ac_objext
10284echo "$lt_simple_link_test_code" >conftest.$ac_ext
10285eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10286_lt_linker_boilerplate=`cat conftest.err`
10287$RM -r conftest*
10288
10289
10290## CAVEAT EMPTOR:
10291## There is no encapsulation within the following macros, do not change
10292## the running order or otherwise move them around unless you know exactly
10293## what you are doing...
10294if test -n "$compiler"; then
10295
10296lt_prog_compiler_no_builtin_flag=
10297
10298if test yes = "$GCC"; then
10299  case $cc_basename in
10300  nvcc*)
10301    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10302  *)
10303    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10304  esac
10305
10306  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10307$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10308if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10309  $as_echo_n "(cached) " >&6
10310else
10311  lt_cv_prog_compiler_rtti_exceptions=no
10312   ac_outfile=conftest.$ac_objext
10313   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10314   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
10315   # Insert the option either (1) after the last *FLAGS variable, or
10316   # (2) before a word containing "conftest.", or (3) at the end.
10317   # Note that $ac_compile itself does not contain backslashes and begins
10318   # with a dollar sign (not a hyphen), so the echo should work correctly.
10319   # The option is referenced via a variable to avoid confusing sed.
10320   lt_compile=`echo "$ac_compile" | $SED \
10321   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10322   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10323   -e 's:$: $lt_compiler_flag:'`
10324   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10325   (eval "$lt_compile" 2>conftest.err)
10326   ac_status=$?
10327   cat conftest.err >&5
10328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329   if (exit $ac_status) && test -s "$ac_outfile"; then
10330     # The compiler can only warn and ignore the option if not recognized
10331     # So say no if there are warnings other than the usual output.
10332     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10333     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10334     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10335       lt_cv_prog_compiler_rtti_exceptions=yes
10336     fi
10337   fi
10338   $RM conftest*
10339
10340fi
10341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10342$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10343
10344if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10345    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10346else
10347    :
10348fi
10349
10350fi
10351
10352
10353
10354
10355
10356
10357  lt_prog_compiler_wl=
10358lt_prog_compiler_pic=
10359lt_prog_compiler_static=
10360
10361
10362  if test yes = "$GCC"; then
10363    lt_prog_compiler_wl='-Wl,'
10364    lt_prog_compiler_static='-static'
10365
10366    case $host_os in
10367      aix*)
10368      # All AIX code is PIC.
10369      if test ia64 = "$host_cpu"; then
10370	# AIX 5 now supports IA64 processor
10371	lt_prog_compiler_static='-Bstatic'
10372      fi
10373      lt_prog_compiler_pic='-fPIC'
10374      ;;
10375
10376    amigaos*)
10377      case $host_cpu in
10378      powerpc)
10379            # see comment about AmigaOS4 .so support
10380            lt_prog_compiler_pic='-fPIC'
10381        ;;
10382      m68k)
10383            # FIXME: we need at least 68020 code to build shared libraries, but
10384            # adding the '-m68020' flag to GCC prevents building anything better,
10385            # like '-m68040'.
10386            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10387        ;;
10388      esac
10389      ;;
10390
10391    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10392      # PIC is the default for these OSes.
10393      ;;
10394
10395    mingw* | cygwin* | pw32* | os2* | cegcc*)
10396      # This hack is so that the source file can tell whether it is being
10397      # built for inclusion in a dll (and should export symbols for example).
10398      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10399      # (--disable-auto-import) libraries
10400      lt_prog_compiler_pic='-DDLL_EXPORT'
10401      case $host_os in
10402      os2*)
10403	lt_prog_compiler_static='$wl-static'
10404	;;
10405      esac
10406      ;;
10407
10408    darwin* | rhapsody*)
10409      # PIC is the default on this platform
10410      # Common symbols not allowed in MH_DYLIB files
10411      lt_prog_compiler_pic='-fno-common'
10412      ;;
10413
10414    haiku*)
10415      # PIC is the default for Haiku.
10416      # The "-static" flag exists, but is broken.
10417      lt_prog_compiler_static=
10418      ;;
10419
10420    hpux*)
10421      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10422      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10423      # sets the default TLS model and affects inlining.
10424      case $host_cpu in
10425      hppa*64*)
10426	# +Z the default
10427	;;
10428      *)
10429	lt_prog_compiler_pic='-fPIC'
10430	;;
10431      esac
10432      ;;
10433
10434    interix[3-9]*)
10435      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10436      # Instead, we relocate shared libraries at runtime.
10437      ;;
10438
10439    msdosdjgpp*)
10440      # Just because we use GCC doesn't mean we suddenly get shared libraries
10441      # on systems that don't support them.
10442      lt_prog_compiler_can_build_shared=no
10443      enable_shared=no
10444      ;;
10445
10446    *nto* | *qnx*)
10447      # QNX uses GNU C++, but need to define -shared option too, otherwise
10448      # it will coredump.
10449      lt_prog_compiler_pic='-fPIC -shared'
10450      ;;
10451
10452    sysv4*MP*)
10453      if test -d /usr/nec; then
10454	lt_prog_compiler_pic=-Kconform_pic
10455      fi
10456      ;;
10457
10458    *)
10459      lt_prog_compiler_pic='-fPIC'
10460      ;;
10461    esac
10462
10463    case $cc_basename in
10464    nvcc*) # Cuda Compiler Driver 2.2
10465      lt_prog_compiler_wl='-Xlinker '
10466      if test -n "$lt_prog_compiler_pic"; then
10467        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10468      fi
10469      ;;
10470    esac
10471  else
10472    # PORTME Check for flag to pass linker flags through the system compiler.
10473    case $host_os in
10474    aix*)
10475      lt_prog_compiler_wl='-Wl,'
10476      if test ia64 = "$host_cpu"; then
10477	# AIX 5 now supports IA64 processor
10478	lt_prog_compiler_static='-Bstatic'
10479      else
10480	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10481      fi
10482      ;;
10483
10484    darwin* | rhapsody*)
10485      # PIC is the default on this platform
10486      # Common symbols not allowed in MH_DYLIB files
10487      lt_prog_compiler_pic='-fno-common'
10488      case $cc_basename in
10489      nagfor*)
10490        # NAG Fortran compiler
10491        lt_prog_compiler_wl='-Wl,-Wl,,'
10492        lt_prog_compiler_pic='-PIC'
10493        lt_prog_compiler_static='-Bstatic'
10494        ;;
10495      esac
10496      ;;
10497
10498    mingw* | cygwin* | pw32* | os2* | cegcc*)
10499      # This hack is so that the source file can tell whether it is being
10500      # built for inclusion in a dll (and should export symbols for example).
10501      lt_prog_compiler_pic='-DDLL_EXPORT'
10502      case $host_os in
10503      os2*)
10504	lt_prog_compiler_static='$wl-static'
10505	;;
10506      esac
10507      ;;
10508
10509    hpux9* | hpux10* | hpux11*)
10510      lt_prog_compiler_wl='-Wl,'
10511      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10512      # not for PA HP-UX.
10513      case $host_cpu in
10514      hppa*64*|ia64*)
10515	# +Z the default
10516	;;
10517      *)
10518	lt_prog_compiler_pic='+Z'
10519	;;
10520      esac
10521      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10522      lt_prog_compiler_static='$wl-a ${wl}archive'
10523      ;;
10524
10525    irix5* | irix6* | nonstopux*)
10526      lt_prog_compiler_wl='-Wl,'
10527      # PIC (with -KPIC) is the default.
10528      lt_prog_compiler_static='-non_shared'
10529      ;;
10530
10531    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10532      case $cc_basename in
10533      # old Intel for x86_64, which still supported -KPIC.
10534      ecc*)
10535	lt_prog_compiler_wl='-Wl,'
10536	lt_prog_compiler_pic='-KPIC'
10537	lt_prog_compiler_static='-static'
10538        ;;
10539      # icc used to be incompatible with GCC.
10540      # ICC 10 doesn't accept -KPIC any more.
10541      icc* | ifort*)
10542	lt_prog_compiler_wl='-Wl,'
10543	lt_prog_compiler_pic='-fPIC'
10544	lt_prog_compiler_static='-static'
10545        ;;
10546      # Lahey Fortran 8.1.
10547      lf95*)
10548	lt_prog_compiler_wl='-Wl,'
10549	lt_prog_compiler_pic='--shared'
10550	lt_prog_compiler_static='--static'
10551	;;
10552      nagfor*)
10553	# NAG Fortran compiler
10554	lt_prog_compiler_wl='-Wl,-Wl,,'
10555	lt_prog_compiler_pic='-PIC'
10556	lt_prog_compiler_static='-Bstatic'
10557	;;
10558      tcc*)
10559	# Fabrice Bellard et al's Tiny C Compiler
10560	lt_prog_compiler_wl='-Wl,'
10561	lt_prog_compiler_pic='-fPIC'
10562	lt_prog_compiler_static='-static'
10563	;;
10564      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10565        # Portland Group compilers (*not* the Pentium gcc compiler,
10566	# which looks to be a dead project)
10567	lt_prog_compiler_wl='-Wl,'
10568	lt_prog_compiler_pic='-fpic'
10569	lt_prog_compiler_static='-Bstatic'
10570        ;;
10571      ccc*)
10572        lt_prog_compiler_wl='-Wl,'
10573        # All Alpha code is PIC.
10574        lt_prog_compiler_static='-non_shared'
10575        ;;
10576      xl* | bgxl* | bgf* | mpixl*)
10577	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10578	lt_prog_compiler_wl='-Wl,'
10579	lt_prog_compiler_pic='-qpic'
10580	lt_prog_compiler_static='-qstaticlink'
10581	;;
10582      *)
10583	case `$CC -V 2>&1 | sed 5q` in
10584	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10585	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10586	  lt_prog_compiler_pic='-KPIC'
10587	  lt_prog_compiler_static='-Bstatic'
10588	  lt_prog_compiler_wl=''
10589	  ;;
10590	*Sun\ F* | *Sun*Fortran*)
10591	  lt_prog_compiler_pic='-KPIC'
10592	  lt_prog_compiler_static='-Bstatic'
10593	  lt_prog_compiler_wl='-Qoption ld '
10594	  ;;
10595	*Sun\ C*)
10596	  # Sun C 5.9
10597	  lt_prog_compiler_pic='-KPIC'
10598	  lt_prog_compiler_static='-Bstatic'
10599	  lt_prog_compiler_wl='-Wl,'
10600	  ;;
10601        *Intel*\ [CF]*Compiler*)
10602	  lt_prog_compiler_wl='-Wl,'
10603	  lt_prog_compiler_pic='-fPIC'
10604	  lt_prog_compiler_static='-static'
10605	  ;;
10606	*Portland\ Group*)
10607	  lt_prog_compiler_wl='-Wl,'
10608	  lt_prog_compiler_pic='-fpic'
10609	  lt_prog_compiler_static='-Bstatic'
10610	  ;;
10611	esac
10612	;;
10613      esac
10614      ;;
10615
10616    newsos6)
10617      lt_prog_compiler_pic='-KPIC'
10618      lt_prog_compiler_static='-Bstatic'
10619      ;;
10620
10621    *nto* | *qnx*)
10622      # QNX uses GNU C++, but need to define -shared option too, otherwise
10623      # it will coredump.
10624      lt_prog_compiler_pic='-fPIC -shared'
10625      ;;
10626
10627    osf3* | osf4* | osf5*)
10628      lt_prog_compiler_wl='-Wl,'
10629      # All OSF/1 code is PIC.
10630      lt_prog_compiler_static='-non_shared'
10631      ;;
10632
10633    rdos*)
10634      lt_prog_compiler_static='-non_shared'
10635      ;;
10636
10637    solaris*)
10638      lt_prog_compiler_pic='-KPIC'
10639      lt_prog_compiler_static='-Bstatic'
10640      case $cc_basename in
10641      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10642	lt_prog_compiler_wl='-Qoption ld ';;
10643      *)
10644	lt_prog_compiler_wl='-Wl,';;
10645      esac
10646      ;;
10647
10648    sunos4*)
10649      lt_prog_compiler_wl='-Qoption ld '
10650      lt_prog_compiler_pic='-PIC'
10651      lt_prog_compiler_static='-Bstatic'
10652      ;;
10653
10654    sysv4 | sysv4.2uw2* | sysv4.3*)
10655      lt_prog_compiler_wl='-Wl,'
10656      lt_prog_compiler_pic='-KPIC'
10657      lt_prog_compiler_static='-Bstatic'
10658      ;;
10659
10660    sysv4*MP*)
10661      if test -d /usr/nec; then
10662	lt_prog_compiler_pic='-Kconform_pic'
10663	lt_prog_compiler_static='-Bstatic'
10664      fi
10665      ;;
10666
10667    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10668      lt_prog_compiler_wl='-Wl,'
10669      lt_prog_compiler_pic='-KPIC'
10670      lt_prog_compiler_static='-Bstatic'
10671      ;;
10672
10673    unicos*)
10674      lt_prog_compiler_wl='-Wl,'
10675      lt_prog_compiler_can_build_shared=no
10676      ;;
10677
10678    uts4*)
10679      lt_prog_compiler_pic='-pic'
10680      lt_prog_compiler_static='-Bstatic'
10681      ;;
10682
10683    *)
10684      lt_prog_compiler_can_build_shared=no
10685      ;;
10686    esac
10687  fi
10688
10689case $host_os in
10690  # For platforms that do not support PIC, -DPIC is meaningless:
10691  *djgpp*)
10692    lt_prog_compiler_pic=
10693    ;;
10694  *)
10695    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10696    ;;
10697esac
10698
10699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10700$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10701if ${lt_cv_prog_compiler_pic+:} false; then :
10702  $as_echo_n "(cached) " >&6
10703else
10704  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10705fi
10706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10707$as_echo "$lt_cv_prog_compiler_pic" >&6; }
10708lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10709
10710#
10711# Check to make sure the PIC flag actually works.
10712#
10713if test -n "$lt_prog_compiler_pic"; then
10714  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10715$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10716if ${lt_cv_prog_compiler_pic_works+:} false; then :
10717  $as_echo_n "(cached) " >&6
10718else
10719  lt_cv_prog_compiler_pic_works=no
10720   ac_outfile=conftest.$ac_objext
10721   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10722   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10723   # Insert the option either (1) after the last *FLAGS variable, or
10724   # (2) before a word containing "conftest.", or (3) at the end.
10725   # Note that $ac_compile itself does not contain backslashes and begins
10726   # with a dollar sign (not a hyphen), so the echo should work correctly.
10727   # The option is referenced via a variable to avoid confusing sed.
10728   lt_compile=`echo "$ac_compile" | $SED \
10729   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10730   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10731   -e 's:$: $lt_compiler_flag:'`
10732   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10733   (eval "$lt_compile" 2>conftest.err)
10734   ac_status=$?
10735   cat conftest.err >&5
10736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737   if (exit $ac_status) && test -s "$ac_outfile"; then
10738     # The compiler can only warn and ignore the option if not recognized
10739     # So say no if there are warnings other than the usual output.
10740     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10741     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10742     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10743       lt_cv_prog_compiler_pic_works=yes
10744     fi
10745   fi
10746   $RM conftest*
10747
10748fi
10749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10750$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10751
10752if test yes = "$lt_cv_prog_compiler_pic_works"; then
10753    case $lt_prog_compiler_pic in
10754     "" | " "*) ;;
10755     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10756     esac
10757else
10758    lt_prog_compiler_pic=
10759     lt_prog_compiler_can_build_shared=no
10760fi
10761
10762fi
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774#
10775# Check to make sure the static flag actually works.
10776#
10777wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10779$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10780if ${lt_cv_prog_compiler_static_works+:} false; then :
10781  $as_echo_n "(cached) " >&6
10782else
10783  lt_cv_prog_compiler_static_works=no
10784   save_LDFLAGS=$LDFLAGS
10785   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10786   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10787   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10788     # The linker can only warn and ignore the option if not recognized
10789     # So say no if there are warnings
10790     if test -s conftest.err; then
10791       # Append any errors to the config.log.
10792       cat conftest.err 1>&5
10793       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10794       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10795       if diff conftest.exp conftest.er2 >/dev/null; then
10796         lt_cv_prog_compiler_static_works=yes
10797       fi
10798     else
10799       lt_cv_prog_compiler_static_works=yes
10800     fi
10801   fi
10802   $RM -r conftest*
10803   LDFLAGS=$save_LDFLAGS
10804
10805fi
10806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10807$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10808
10809if test yes = "$lt_cv_prog_compiler_static_works"; then
10810    :
10811else
10812    lt_prog_compiler_static=
10813fi
10814
10815
10816
10817
10818
10819
10820
10821  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10822$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10823if ${lt_cv_prog_compiler_c_o+:} false; then :
10824  $as_echo_n "(cached) " >&6
10825else
10826  lt_cv_prog_compiler_c_o=no
10827   $RM -r conftest 2>/dev/null
10828   mkdir conftest
10829   cd conftest
10830   mkdir out
10831   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10832
10833   lt_compiler_flag="-o out/conftest2.$ac_objext"
10834   # Insert the option either (1) after the last *FLAGS variable, or
10835   # (2) before a word containing "conftest.", or (3) at the end.
10836   # Note that $ac_compile itself does not contain backslashes and begins
10837   # with a dollar sign (not a hyphen), so the echo should work correctly.
10838   lt_compile=`echo "$ac_compile" | $SED \
10839   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10840   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10841   -e 's:$: $lt_compiler_flag:'`
10842   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10843   (eval "$lt_compile" 2>out/conftest.err)
10844   ac_status=$?
10845   cat out/conftest.err >&5
10846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10848   then
10849     # The compiler can only warn and ignore the option if not recognized
10850     # So say no if there are warnings
10851     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10852     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10853     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10854       lt_cv_prog_compiler_c_o=yes
10855     fi
10856   fi
10857   chmod u+w . 2>&5
10858   $RM conftest*
10859   # SGI C++ compiler will create directory out/ii_files/ for
10860   # template instantiation
10861   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10862   $RM out/* && rmdir out
10863   cd ..
10864   $RM -r conftest
10865   $RM conftest*
10866
10867fi
10868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10869$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10870
10871
10872
10873
10874
10875
10876  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10877$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10878if ${lt_cv_prog_compiler_c_o+:} false; then :
10879  $as_echo_n "(cached) " >&6
10880else
10881  lt_cv_prog_compiler_c_o=no
10882   $RM -r conftest 2>/dev/null
10883   mkdir conftest
10884   cd conftest
10885   mkdir out
10886   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10887
10888   lt_compiler_flag="-o out/conftest2.$ac_objext"
10889   # Insert the option either (1) after the last *FLAGS variable, or
10890   # (2) before a word containing "conftest.", or (3) at the end.
10891   # Note that $ac_compile itself does not contain backslashes and begins
10892   # with a dollar sign (not a hyphen), so the echo should work correctly.
10893   lt_compile=`echo "$ac_compile" | $SED \
10894   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10895   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10896   -e 's:$: $lt_compiler_flag:'`
10897   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10898   (eval "$lt_compile" 2>out/conftest.err)
10899   ac_status=$?
10900   cat out/conftest.err >&5
10901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10903   then
10904     # The compiler can only warn and ignore the option if not recognized
10905     # So say no if there are warnings
10906     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10907     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10908     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10909       lt_cv_prog_compiler_c_o=yes
10910     fi
10911   fi
10912   chmod u+w . 2>&5
10913   $RM conftest*
10914   # SGI C++ compiler will create directory out/ii_files/ for
10915   # template instantiation
10916   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10917   $RM out/* && rmdir out
10918   cd ..
10919   $RM -r conftest
10920   $RM conftest*
10921
10922fi
10923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10924$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10925
10926
10927
10928
10929hard_links=nottested
10930if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10931  # do not overwrite the value of need_locks provided by the user
10932  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10933$as_echo_n "checking if we can lock with hard links... " >&6; }
10934  hard_links=yes
10935  $RM conftest*
10936  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10937  touch conftest.a
10938  ln conftest.a conftest.b 2>&5 || hard_links=no
10939  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10941$as_echo "$hard_links" >&6; }
10942  if test no = "$hard_links"; then
10943    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10944$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10945    need_locks=warn
10946  fi
10947else
10948  need_locks=no
10949fi
10950
10951
10952
10953
10954
10955
10956  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10957$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10958
10959  runpath_var=
10960  allow_undefined_flag=
10961  always_export_symbols=no
10962  archive_cmds=
10963  archive_expsym_cmds=
10964  compiler_needs_object=no
10965  enable_shared_with_static_runtimes=no
10966  export_dynamic_flag_spec=
10967  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10968  hardcode_automatic=no
10969  hardcode_direct=no
10970  hardcode_direct_absolute=no
10971  hardcode_libdir_flag_spec=
10972  hardcode_libdir_separator=
10973  hardcode_minus_L=no
10974  hardcode_shlibpath_var=unsupported
10975  inherit_rpath=no
10976  link_all_deplibs=unknown
10977  module_cmds=
10978  module_expsym_cmds=
10979  old_archive_from_new_cmds=
10980  old_archive_from_expsyms_cmds=
10981  thread_safe_flag_spec=
10982  whole_archive_flag_spec=
10983  # include_expsyms should be a list of space-separated symbols to be *always*
10984  # included in the symbol list
10985  include_expsyms=
10986  # exclude_expsyms can be an extended regexp of symbols to exclude
10987  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10988  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10989  # as well as any symbol that contains 'd'.
10990  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10991  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10992  # platforms (ab)use it in PIC code, but their linkers get confused if
10993  # the symbol is explicitly referenced.  Since portable code cannot
10994  # rely on this symbol name, it's probably fine to never include it in
10995  # preloaded symbol tables.
10996  # Exclude shared library initialization/finalization symbols.
10997  extract_expsyms_cmds=
10998
10999  case $host_os in
11000  cygwin* | mingw* | pw32* | cegcc*)
11001    # FIXME: the MSVC++ port hasn't been tested in a loooong time
11002    # When not using gcc, we currently assume that we are using
11003    # Microsoft Visual C++.
11004    if test yes != "$GCC"; then
11005      with_gnu_ld=no
11006    fi
11007    ;;
11008  interix*)
11009    # we just hope/assume this is gcc and not c89 (= MSVC++)
11010    with_gnu_ld=yes
11011    ;;
11012  openbsd* | bitrig*)
11013    with_gnu_ld=no
11014    ;;
11015  linux* | k*bsd*-gnu | gnu*)
11016    link_all_deplibs=no
11017    ;;
11018  esac
11019
11020  ld_shlibs=yes
11021
11022  # On some targets, GNU ld is compatible enough with the native linker
11023  # that we're better off using the native interface for both.
11024  lt_use_gnu_ld_interface=no
11025  if test yes = "$with_gnu_ld"; then
11026    case $host_os in
11027      aix*)
11028	# The AIX port of GNU ld has always aspired to compatibility
11029	# with the native linker.  However, as the warning in the GNU ld
11030	# block says, versions before 2.19.5* couldn't really create working
11031	# shared libraries, regardless of the interface used.
11032	case `$LD -v 2>&1` in
11033	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11034	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11035	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11036	  *)
11037	    lt_use_gnu_ld_interface=yes
11038	    ;;
11039	esac
11040	;;
11041      *)
11042	lt_use_gnu_ld_interface=yes
11043	;;
11044    esac
11045  fi
11046
11047  if test yes = "$lt_use_gnu_ld_interface"; then
11048    # If archive_cmds runs LD, not CC, wlarc should be empty
11049    wlarc='$wl'
11050
11051    # Set some defaults for GNU ld with shared library support. These
11052    # are reset later if shared libraries are not supported. Putting them
11053    # here allows them to be overridden if necessary.
11054    runpath_var=LD_RUN_PATH
11055    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11056    export_dynamic_flag_spec='$wl--export-dynamic'
11057    # ancient GNU ld didn't support --whole-archive et. al.
11058    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11059      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11060    else
11061      whole_archive_flag_spec=
11062    fi
11063    supports_anon_versioning=no
11064    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11065      *GNU\ gold*) supports_anon_versioning=yes ;;
11066      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11067      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11068      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11069      *\ 2.11.*) ;; # other 2.11 versions
11070      *) supports_anon_versioning=yes ;;
11071    esac
11072
11073    # See if GNU ld supports shared libraries.
11074    case $host_os in
11075    aix[3-9]*)
11076      # On AIX/PPC, the GNU linker is very broken
11077      if test ia64 != "$host_cpu"; then
11078	ld_shlibs=no
11079	cat <<_LT_EOF 1>&2
11080
11081*** Warning: the GNU linker, at least up to release 2.19, is reported
11082*** to be unable to reliably create shared libraries on AIX.
11083*** Therefore, libtool is disabling shared libraries support.  If you
11084*** really care for shared libraries, you may want to install binutils
11085*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11086*** You will then need to restart the configuration process.
11087
11088_LT_EOF
11089      fi
11090      ;;
11091
11092    amigaos*)
11093      case $host_cpu in
11094      powerpc)
11095            # see comment about AmigaOS4 .so support
11096            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11097            archive_expsym_cmds=''
11098        ;;
11099      m68k)
11100            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)'
11101            hardcode_libdir_flag_spec='-L$libdir'
11102            hardcode_minus_L=yes
11103        ;;
11104      esac
11105      ;;
11106
11107    beos*)
11108      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11109	allow_undefined_flag=unsupported
11110	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11111	# support --undefined.  This deserves some investigation.  FIXME
11112	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11113      else
11114	ld_shlibs=no
11115      fi
11116      ;;
11117
11118    cygwin* | mingw* | pw32* | cegcc*)
11119      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11120      # as there is no search path for DLLs.
11121      hardcode_libdir_flag_spec='-L$libdir'
11122      export_dynamic_flag_spec='$wl--export-all-symbols'
11123      allow_undefined_flag=unsupported
11124      always_export_symbols=no
11125      enable_shared_with_static_runtimes=yes
11126      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
11127      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11128
11129      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11130        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11131	# If the export-symbols file already is a .def file, use it as
11132	# is; otherwise, prepend EXPORTS...
11133	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11134          cp $export_symbols $output_objdir/$soname.def;
11135        else
11136          echo EXPORTS > $output_objdir/$soname.def;
11137          cat $export_symbols >> $output_objdir/$soname.def;
11138        fi~
11139        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11140      else
11141	ld_shlibs=no
11142      fi
11143      ;;
11144
11145    haiku*)
11146      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11147      link_all_deplibs=yes
11148      ;;
11149
11150    os2*)
11151      hardcode_libdir_flag_spec='-L$libdir'
11152      hardcode_minus_L=yes
11153      allow_undefined_flag=unsupported
11154      shrext_cmds=.dll
11155      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11156	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11157	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11158	$ECHO EXPORTS >> $output_objdir/$libname.def~
11159	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11160	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11161	emximp -o $lib $output_objdir/$libname.def'
11162      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11163	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11164	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11165	$ECHO EXPORTS >> $output_objdir/$libname.def~
11166	prefix_cmds="$SED"~
11167	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11168	  prefix_cmds="$prefix_cmds -e 1d";
11169	fi~
11170	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11171	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11172	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11173	emximp -o $lib $output_objdir/$libname.def'
11174      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11175      enable_shared_with_static_runtimes=yes
11176      ;;
11177
11178    interix[3-9]*)
11179      hardcode_direct=no
11180      hardcode_shlibpath_var=no
11181      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11182      export_dynamic_flag_spec='$wl-E'
11183      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11184      # Instead, shared libraries are loaded at an image base (0x10000000 by
11185      # default) and relocated if they conflict, which is a slow very memory
11186      # consuming and fragmenting process.  To avoid this, we pick a random,
11187      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11188      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11189      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11190      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'
11191      ;;
11192
11193    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11194      tmp_diet=no
11195      if test linux-dietlibc = "$host_os"; then
11196	case $cc_basename in
11197	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
11198	esac
11199      fi
11200      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11201	 && test no = "$tmp_diet"
11202      then
11203	tmp_addflag=' $pic_flag'
11204	tmp_sharedflag='-shared'
11205	case $cc_basename,$host_cpu in
11206        pgcc*)				# Portland Group C compiler
11207	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11208	  tmp_addflag=' $pic_flag'
11209	  ;;
11210	pgf77* | pgf90* | pgf95* | pgfortran*)
11211					# Portland Group f77 and f90 compilers
11212	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11213	  tmp_addflag=' $pic_flag -Mnomain' ;;
11214	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11215	  tmp_addflag=' -i_dynamic' ;;
11216	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11217	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11218	ifc* | ifort*)			# Intel Fortran compiler
11219	  tmp_addflag=' -nofor_main' ;;
11220	lf95*)				# Lahey Fortran 8.1
11221	  whole_archive_flag_spec=
11222	  tmp_sharedflag='--shared' ;;
11223        nagfor*)                        # NAGFOR 5.3
11224          tmp_sharedflag='-Wl,-shared' ;;
11225	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11226	  tmp_sharedflag='-qmkshrobj'
11227	  tmp_addflag= ;;
11228	nvcc*)	# Cuda Compiler Driver 2.2
11229	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11230	  compiler_needs_object=yes
11231	  ;;
11232	esac
11233	case `$CC -V 2>&1 | sed 5q` in
11234	*Sun\ C*)			# Sun C 5.9
11235	  whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11236	  compiler_needs_object=yes
11237	  tmp_sharedflag='-G' ;;
11238	*Sun\ F*)			# Sun Fortran 8.3
11239	  tmp_sharedflag='-G' ;;
11240	esac
11241	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11242
11243        if test yes = "$supports_anon_versioning"; then
11244          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11245            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11246            echo "local: *; };" >> $output_objdir/$libname.ver~
11247            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11248        fi
11249
11250	case $cc_basename in
11251	tcc*)
11252	  export_dynamic_flag_spec='-rdynamic'
11253	  ;;
11254	xlf* | bgf* | bgxlf* | mpixlf*)
11255	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11256	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11257	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11258	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11259	  if test yes = "$supports_anon_versioning"; then
11260	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11261              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11262              echo "local: *; };" >> $output_objdir/$libname.ver~
11263              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11264	  fi
11265	  ;;
11266	esac
11267      else
11268        ld_shlibs=no
11269      fi
11270      ;;
11271
11272    netbsd* | netbsdelf*-gnu)
11273      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11274	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11275	wlarc=
11276      else
11277	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11278	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11279      fi
11280      ;;
11281
11282    solaris*)
11283      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11284	ld_shlibs=no
11285	cat <<_LT_EOF 1>&2
11286
11287*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11288*** create shared libraries on Solaris systems.  Therefore, libtool
11289*** is disabling shared libraries support.  We urge you to upgrade GNU
11290*** binutils to release 2.9.1 or newer.  Another option is to modify
11291*** your PATH or compiler configuration so that the native linker is
11292*** used, and then restart.
11293
11294_LT_EOF
11295      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11296	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11297	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11298      else
11299	ld_shlibs=no
11300      fi
11301      ;;
11302
11303    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11304      case `$LD -v 2>&1` in
11305        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11306	ld_shlibs=no
11307	cat <<_LT_EOF 1>&2
11308
11309*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11310*** reliably create shared libraries on SCO systems.  Therefore, libtool
11311*** is disabling shared libraries support.  We urge you to upgrade GNU
11312*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11313*** your PATH or compiler configuration so that the native linker is
11314*** used, and then restart.
11315
11316_LT_EOF
11317	;;
11318	*)
11319	  # For security reasons, it is highly recommended that you always
11320	  # use absolute paths for naming shared libraries, and exclude the
11321	  # DT_RUNPATH tag from executables and libraries.  But doing so
11322	  # requires that you compile everything twice, which is a pain.
11323	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11324	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11325	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11326	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11327	  else
11328	    ld_shlibs=no
11329	  fi
11330	;;
11331      esac
11332      ;;
11333
11334    sunos4*)
11335      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11336      wlarc=
11337      hardcode_direct=yes
11338      hardcode_shlibpath_var=no
11339      ;;
11340
11341    *)
11342      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11343	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11344	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11345      else
11346	ld_shlibs=no
11347      fi
11348      ;;
11349    esac
11350
11351    if test no = "$ld_shlibs"; then
11352      runpath_var=
11353      hardcode_libdir_flag_spec=
11354      export_dynamic_flag_spec=
11355      whole_archive_flag_spec=
11356    fi
11357  else
11358    # PORTME fill in a description of your system's linker (not GNU ld)
11359    case $host_os in
11360    aix3*)
11361      allow_undefined_flag=unsupported
11362      always_export_symbols=yes
11363      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'
11364      # Note: this linker hardcodes the directories in LIBPATH if there
11365      # are no directories specified by -L.
11366      hardcode_minus_L=yes
11367      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11368	# Neither direct hardcoding nor static linking is supported with a
11369	# broken collect2.
11370	hardcode_direct=unsupported
11371      fi
11372      ;;
11373
11374    aix[4-9]*)
11375      if test ia64 = "$host_cpu"; then
11376	# On IA64, the linker does run time linking by default, so we don't
11377	# have to do anything special.
11378	aix_use_runtimelinking=no
11379	exp_sym_flag='-Bexport'
11380	no_entry_flag=
11381      else
11382	# If we're using GNU nm, then we don't want the "-C" option.
11383	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
11384	# Without the "-l" option, or with the "-B" option, AIX nm treats
11385	# weak defined symbols like other global defined symbols, whereas
11386	# GNU nm marks them as "W".
11387	# While the 'weak' keyword is ignored in the Export File, we need
11388	# it in the Import File for the 'aix-soname' feature, so we have
11389	# to replace the "-B" option with "-P" for AIX nm.
11390	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11391	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
11392	else
11393	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11394	fi
11395	aix_use_runtimelinking=no
11396
11397	# Test if we are trying to use run time linking or normal
11398	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11399	# have runtime linking enabled, and use it for executables.
11400	# For shared libraries, we enable/disable runtime linking
11401	# depending on the kind of the shared library created -
11402	# when "with_aix_soname,aix_use_runtimelinking" is:
11403	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
11404	# "aix,yes"  lib.so          shared, rtl:yes, for executables
11405	#            lib.a           static archive
11406	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
11407	#            lib.a(lib.so.V) shared, rtl:no,  for executables
11408	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11409	#            lib.a(lib.so.V) shared, rtl:no
11410	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
11411	#            lib.a           static archive
11412	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11413	  for ld_flag in $LDFLAGS; do
11414	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11415	    aix_use_runtimelinking=yes
11416	    break
11417	  fi
11418	  done
11419	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11420	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
11421	    # so we don't have lib.a shared libs to link our executables.
11422	    # We have to force runtime linking in this case.
11423	    aix_use_runtimelinking=yes
11424	    LDFLAGS="$LDFLAGS -Wl,-brtl"
11425	  fi
11426	  ;;
11427	esac
11428
11429	exp_sym_flag='-bexport'
11430	no_entry_flag='-bnoentry'
11431      fi
11432
11433      # When large executables or shared objects are built, AIX ld can
11434      # have problems creating the table of contents.  If linking a library
11435      # or program results in "error TOC overflow" add -mminimal-toc to
11436      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11437      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11438
11439      archive_cmds=''
11440      hardcode_direct=yes
11441      hardcode_direct_absolute=yes
11442      hardcode_libdir_separator=':'
11443      link_all_deplibs=yes
11444      file_list_spec='$wl-f,'
11445      case $with_aix_soname,$aix_use_runtimelinking in
11446      aix,*) ;; # traditional, no import file
11447      svr4,* | *,yes) # use import file
11448	# The Import File defines what to hardcode.
11449	hardcode_direct=no
11450	hardcode_direct_absolute=no
11451	;;
11452      esac
11453
11454      if test yes = "$GCC"; then
11455	case $host_os in aix4.[012]|aix4.[012].*)
11456	# We only want to do this on AIX 4.2 and lower, the check
11457	# below for broken collect2 doesn't work under 4.3+
11458	  collect2name=`$CC -print-prog-name=collect2`
11459	  if test -f "$collect2name" &&
11460	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11461	  then
11462	  # We have reworked collect2
11463	  :
11464	  else
11465	  # We have old collect2
11466	  hardcode_direct=unsupported
11467	  # It fails to find uninstalled libraries when the uninstalled
11468	  # path is not listed in the libpath.  Setting hardcode_minus_L
11469	  # to unsupported forces relinking
11470	  hardcode_minus_L=yes
11471	  hardcode_libdir_flag_spec='-L$libdir'
11472	  hardcode_libdir_separator=
11473	  fi
11474	  ;;
11475	esac
11476	shared_flag='-shared'
11477	if test yes = "$aix_use_runtimelinking"; then
11478	  shared_flag="$shared_flag "'$wl-G'
11479	fi
11480	# Need to ensure runtime linking is disabled for the traditional
11481	# shared library, or the linker may eventually find shared libraries
11482	# /with/ Import File - we do not want to mix them.
11483	shared_flag_aix='-shared'
11484	shared_flag_svr4='-shared $wl-G'
11485      else
11486	# not using gcc
11487	if test ia64 = "$host_cpu"; then
11488	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11489	# chokes on -Wl,-G. The following line is correct:
11490	  shared_flag='-G'
11491	else
11492	  if test yes = "$aix_use_runtimelinking"; then
11493	    shared_flag='$wl-G'
11494	  else
11495	    shared_flag='$wl-bM:SRE'
11496	  fi
11497	  shared_flag_aix='$wl-bM:SRE'
11498	  shared_flag_svr4='$wl-G'
11499	fi
11500      fi
11501
11502      export_dynamic_flag_spec='$wl-bexpall'
11503      # It seems that -bexpall does not export symbols beginning with
11504      # underscore (_), so it is better to generate a list of symbols to export.
11505      always_export_symbols=yes
11506      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11507	# Warning - without using the other runtime loading flags (-brtl),
11508	# -berok will link without error, but may produce a broken library.
11509	allow_undefined_flag='-berok'
11510        # Determine the default libpath from the value encoded in an
11511        # empty executable.
11512        if test set = "${lt_cv_aix_libpath+set}"; then
11513  aix_libpath=$lt_cv_aix_libpath
11514else
11515  if ${lt_cv_aix_libpath_+:} false; then :
11516  $as_echo_n "(cached) " >&6
11517else
11518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11519/* end confdefs.h.  */
11520
11521int
11522main ()
11523{
11524
11525  ;
11526  return 0;
11527}
11528_ACEOF
11529if ac_fn_c_try_link "$LINENO"; then :
11530
11531  lt_aix_libpath_sed='
11532      /Import File Strings/,/^$/ {
11533	  /^0/ {
11534	      s/^0  *\([^ ]*\) *$/\1/
11535	      p
11536	  }
11537      }'
11538  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11539  # Check for a 64-bit object if we didn't find anything.
11540  if test -z "$lt_cv_aix_libpath_"; then
11541    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11542  fi
11543fi
11544rm -f core conftest.err conftest.$ac_objext \
11545    conftest$ac_exeext conftest.$ac_ext
11546  if test -z "$lt_cv_aix_libpath_"; then
11547    lt_cv_aix_libpath_=/usr/lib:/lib
11548  fi
11549
11550fi
11551
11552  aix_libpath=$lt_cv_aix_libpath_
11553fi
11554
11555        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11556        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
11557      else
11558	if test ia64 = "$host_cpu"; then
11559	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11560	  allow_undefined_flag="-z nodefs"
11561	  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"
11562	else
11563	 # Determine the default libpath from the value encoded in an
11564	 # empty executable.
11565	 if test set = "${lt_cv_aix_libpath+set}"; then
11566  aix_libpath=$lt_cv_aix_libpath
11567else
11568  if ${lt_cv_aix_libpath_+:} false; then :
11569  $as_echo_n "(cached) " >&6
11570else
11571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11572/* end confdefs.h.  */
11573
11574int
11575main ()
11576{
11577
11578  ;
11579  return 0;
11580}
11581_ACEOF
11582if ac_fn_c_try_link "$LINENO"; then :
11583
11584  lt_aix_libpath_sed='
11585      /Import File Strings/,/^$/ {
11586	  /^0/ {
11587	      s/^0  *\([^ ]*\) *$/\1/
11588	      p
11589	  }
11590      }'
11591  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11592  # Check for a 64-bit object if we didn't find anything.
11593  if test -z "$lt_cv_aix_libpath_"; then
11594    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11595  fi
11596fi
11597rm -f core conftest.err conftest.$ac_objext \
11598    conftest$ac_exeext conftest.$ac_ext
11599  if test -z "$lt_cv_aix_libpath_"; then
11600    lt_cv_aix_libpath_=/usr/lib:/lib
11601  fi
11602
11603fi
11604
11605  aix_libpath=$lt_cv_aix_libpath_
11606fi
11607
11608	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11609	  # Warning - without using the other run time loading flags,
11610	  # -berok will link without error, but may produce a broken library.
11611	  no_undefined_flag=' $wl-bernotok'
11612	  allow_undefined_flag=' $wl-berok'
11613	  if test yes = "$with_gnu_ld"; then
11614	    # We only use this code for GNU lds that support --whole-archive.
11615	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11616	  else
11617	    # Exported symbols can be pulled into shared objects from archives
11618	    whole_archive_flag_spec='$convenience'
11619	  fi
11620	  archive_cmds_need_lc=yes
11621	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11622	  # -brtl affects multiple linker settings, -berok does not and is overridden later
11623	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11624	  if test svr4 != "$with_aix_soname"; then
11625	    # This is similar to how AIX traditionally builds its shared libraries.
11626	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11627	  fi
11628	  if test aix != "$with_aix_soname"; then
11629	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11630	  else
11631	    # used by -dlpreopen to get the symbols
11632	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11633	  fi
11634	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11635	fi
11636      fi
11637      ;;
11638
11639    amigaos*)
11640      case $host_cpu in
11641      powerpc)
11642            # see comment about AmigaOS4 .so support
11643            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11644            archive_expsym_cmds=''
11645        ;;
11646      m68k)
11647            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)'
11648            hardcode_libdir_flag_spec='-L$libdir'
11649            hardcode_minus_L=yes
11650        ;;
11651      esac
11652      ;;
11653
11654    bsdi[45]*)
11655      export_dynamic_flag_spec=-rdynamic
11656      ;;
11657
11658    cygwin* | mingw* | pw32* | cegcc*)
11659      # When not using gcc, we currently assume that we are using
11660      # Microsoft Visual C++.
11661      # hardcode_libdir_flag_spec is actually meaningless, as there is
11662      # no search path for DLLs.
11663      case $cc_basename in
11664      cl*)
11665	# Native MSVC
11666	hardcode_libdir_flag_spec=' '
11667	allow_undefined_flag=unsupported
11668	always_export_symbols=yes
11669	file_list_spec='@'
11670	# Tell ltmain to make .lib files, not .a files.
11671	libext=lib
11672	# Tell ltmain to make .dll files, not .so files.
11673	shrext_cmds=.dll
11674	# FIXME: Setting linknames here is a bad hack.
11675	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11676	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11677            cp "$export_symbols" "$output_objdir/$soname.def";
11678            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11679          else
11680            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11681          fi~
11682          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11683          linknames='
11684	# The linker will not automatically build a static lib if we build a DLL.
11685	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11686	enable_shared_with_static_runtimes=yes
11687	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11688	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11689	# Don't use ranlib
11690	old_postinstall_cmds='chmod 644 $oldlib'
11691	postlink_cmds='lt_outputfile="@OUTPUT@"~
11692          lt_tool_outputfile="@TOOL_OUTPUT@"~
11693          case $lt_outputfile in
11694            *.exe|*.EXE) ;;
11695            *)
11696              lt_outputfile=$lt_outputfile.exe
11697              lt_tool_outputfile=$lt_tool_outputfile.exe
11698              ;;
11699          esac~
11700          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11701            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11702            $RM "$lt_outputfile.manifest";
11703          fi'
11704	;;
11705      *)
11706	# Assume MSVC wrapper
11707	hardcode_libdir_flag_spec=' '
11708	allow_undefined_flag=unsupported
11709	# Tell ltmain to make .lib files, not .a files.
11710	libext=lib
11711	# Tell ltmain to make .dll files, not .so files.
11712	shrext_cmds=.dll
11713	# FIXME: Setting linknames here is a bad hack.
11714	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11715	# The linker will automatically build a .lib file if we build a DLL.
11716	old_archive_from_new_cmds='true'
11717	# FIXME: Should let the user specify the lib program.
11718	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11719	enable_shared_with_static_runtimes=yes
11720	;;
11721      esac
11722      ;;
11723
11724    darwin* | rhapsody*)
11725
11726
11727  archive_cmds_need_lc=no
11728  hardcode_direct=no
11729  hardcode_automatic=yes
11730  hardcode_shlibpath_var=unsupported
11731  if test yes = "$lt_cv_ld_force_load"; then
11732    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11733
11734  else
11735    whole_archive_flag_spec=''
11736  fi
11737  link_all_deplibs=yes
11738  allow_undefined_flag=$_lt_dar_allow_undefined
11739  case $cc_basename in
11740     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11741     *) _lt_dar_can_shared=$GCC ;;
11742  esac
11743  if test yes = "$_lt_dar_can_shared"; then
11744    output_verbose_link_cmd=func_echo_all
11745    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11746    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11747    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"
11748    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"
11749
11750  else
11751  ld_shlibs=no
11752  fi
11753
11754      ;;
11755
11756    dgux*)
11757      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11758      hardcode_libdir_flag_spec='-L$libdir'
11759      hardcode_shlibpath_var=no
11760      ;;
11761
11762    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11763    # support.  Future versions do this automatically, but an explicit c++rt0.o
11764    # does not break anything, and helps significantly (at the cost of a little
11765    # extra space).
11766    freebsd2.2*)
11767      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11768      hardcode_libdir_flag_spec='-R$libdir'
11769      hardcode_direct=yes
11770      hardcode_shlibpath_var=no
11771      ;;
11772
11773    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11774    freebsd2.*)
11775      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11776      hardcode_direct=yes
11777      hardcode_minus_L=yes
11778      hardcode_shlibpath_var=no
11779      ;;
11780
11781    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11782    freebsd* | dragonfly*)
11783      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11784      hardcode_libdir_flag_spec='-R$libdir'
11785      hardcode_direct=yes
11786      hardcode_shlibpath_var=no
11787      ;;
11788
11789    hpux9*)
11790      if test yes = "$GCC"; then
11791	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11792      else
11793	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11794      fi
11795      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11796      hardcode_libdir_separator=:
11797      hardcode_direct=yes
11798
11799      # hardcode_minus_L: Not really in the search PATH,
11800      # but as the default location of the library.
11801      hardcode_minus_L=yes
11802      export_dynamic_flag_spec='$wl-E'
11803      ;;
11804
11805    hpux10*)
11806      if test yes,no = "$GCC,$with_gnu_ld"; then
11807	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11808      else
11809	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11810      fi
11811      if test no = "$with_gnu_ld"; then
11812	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11813	hardcode_libdir_separator=:
11814	hardcode_direct=yes
11815	hardcode_direct_absolute=yes
11816	export_dynamic_flag_spec='$wl-E'
11817	# hardcode_minus_L: Not really in the search PATH,
11818	# but as the default location of the library.
11819	hardcode_minus_L=yes
11820      fi
11821      ;;
11822
11823    hpux11*)
11824      if test yes,no = "$GCC,$with_gnu_ld"; then
11825	case $host_cpu in
11826	hppa*64*)
11827	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11828	  ;;
11829	ia64*)
11830	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11831	  ;;
11832	*)
11833	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11834	  ;;
11835	esac
11836      else
11837	case $host_cpu in
11838	hppa*64*)
11839	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11840	  ;;
11841	ia64*)
11842	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11843	  ;;
11844	*)
11845
11846	  # Older versions of the 11.00 compiler do not understand -b yet
11847	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11848	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11849$as_echo_n "checking if $CC understands -b... " >&6; }
11850if ${lt_cv_prog_compiler__b+:} false; then :
11851  $as_echo_n "(cached) " >&6
11852else
11853  lt_cv_prog_compiler__b=no
11854   save_LDFLAGS=$LDFLAGS
11855   LDFLAGS="$LDFLAGS -b"
11856   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11857   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11858     # The linker can only warn and ignore the option if not recognized
11859     # So say no if there are warnings
11860     if test -s conftest.err; then
11861       # Append any errors to the config.log.
11862       cat conftest.err 1>&5
11863       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11864       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11865       if diff conftest.exp conftest.er2 >/dev/null; then
11866         lt_cv_prog_compiler__b=yes
11867       fi
11868     else
11869       lt_cv_prog_compiler__b=yes
11870     fi
11871   fi
11872   $RM -r conftest*
11873   LDFLAGS=$save_LDFLAGS
11874
11875fi
11876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11877$as_echo "$lt_cv_prog_compiler__b" >&6; }
11878
11879if test yes = "$lt_cv_prog_compiler__b"; then
11880    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11881else
11882    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11883fi
11884
11885	  ;;
11886	esac
11887      fi
11888      if test no = "$with_gnu_ld"; then
11889	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11890	hardcode_libdir_separator=:
11891
11892	case $host_cpu in
11893	hppa*64*|ia64*)
11894	  hardcode_direct=no
11895	  hardcode_shlibpath_var=no
11896	  ;;
11897	*)
11898	  hardcode_direct=yes
11899	  hardcode_direct_absolute=yes
11900	  export_dynamic_flag_spec='$wl-E'
11901
11902	  # hardcode_minus_L: Not really in the search PATH,
11903	  # but as the default location of the library.
11904	  hardcode_minus_L=yes
11905	  ;;
11906	esac
11907      fi
11908      ;;
11909
11910    irix5* | irix6* | nonstopux*)
11911      if test yes = "$GCC"; then
11912	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11913	# Try to use the -exported_symbol ld option, if it does not
11914	# work, assume that -exports_file does not work either and
11915	# implicitly export all symbols.
11916	# This should be the same for all languages, so no per-tag cache variable.
11917	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11918$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11919if ${lt_cv_irix_exported_symbol+:} false; then :
11920  $as_echo_n "(cached) " >&6
11921else
11922  save_LDFLAGS=$LDFLAGS
11923	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11924	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11925/* end confdefs.h.  */
11926int foo (void) { return 0; }
11927_ACEOF
11928if ac_fn_c_try_link "$LINENO"; then :
11929  lt_cv_irix_exported_symbol=yes
11930else
11931  lt_cv_irix_exported_symbol=no
11932fi
11933rm -f core conftest.err conftest.$ac_objext \
11934    conftest$ac_exeext conftest.$ac_ext
11935           LDFLAGS=$save_LDFLAGS
11936fi
11937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11938$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11939	if test yes = "$lt_cv_irix_exported_symbol"; then
11940          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
11941	fi
11942	link_all_deplibs=no
11943      else
11944	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11945	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
11946      fi
11947      archive_cmds_need_lc='no'
11948      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11949      hardcode_libdir_separator=:
11950      inherit_rpath=yes
11951      link_all_deplibs=yes
11952      ;;
11953
11954    linux*)
11955      case $cc_basename in
11956      tcc*)
11957	# Fabrice Bellard et al's Tiny C Compiler
11958	ld_shlibs=yes
11959	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11960	;;
11961      esac
11962      ;;
11963
11964    netbsd* | netbsdelf*-gnu)
11965      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11966	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11967      else
11968	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11969      fi
11970      hardcode_libdir_flag_spec='-R$libdir'
11971      hardcode_direct=yes
11972      hardcode_shlibpath_var=no
11973      ;;
11974
11975    newsos6)
11976      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11977      hardcode_direct=yes
11978      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11979      hardcode_libdir_separator=:
11980      hardcode_shlibpath_var=no
11981      ;;
11982
11983    *nto* | *qnx*)
11984      ;;
11985
11986    openbsd* | bitrig*)
11987      if test -f /usr/libexec/ld.so; then
11988	hardcode_direct=yes
11989	hardcode_shlibpath_var=no
11990	hardcode_direct_absolute=yes
11991	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11992	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11993	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11994	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11995	  export_dynamic_flag_spec='$wl-E'
11996	else
11997	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11998	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11999	fi
12000      else
12001	ld_shlibs=no
12002      fi
12003      ;;
12004
12005    os2*)
12006      hardcode_libdir_flag_spec='-L$libdir'
12007      hardcode_minus_L=yes
12008      allow_undefined_flag=unsupported
12009      shrext_cmds=.dll
12010      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12011	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12012	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12013	$ECHO EXPORTS >> $output_objdir/$libname.def~
12014	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12015	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12016	emximp -o $lib $output_objdir/$libname.def'
12017      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12018	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12019	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12020	$ECHO EXPORTS >> $output_objdir/$libname.def~
12021	prefix_cmds="$SED"~
12022	if test EXPORTS = "`$SED 1q $export_symbols`"; then
12023	  prefix_cmds="$prefix_cmds -e 1d";
12024	fi~
12025	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12026	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12027	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12028	emximp -o $lib $output_objdir/$libname.def'
12029      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12030      enable_shared_with_static_runtimes=yes
12031      ;;
12032
12033    osf3*)
12034      if test yes = "$GCC"; then
12035	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12036	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
12037      else
12038	allow_undefined_flag=' -expect_unresolved \*'
12039	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
12040      fi
12041      archive_cmds_need_lc='no'
12042      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12043      hardcode_libdir_separator=:
12044      ;;
12045
12046    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12047      if test yes = "$GCC"; then
12048	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12049	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
12050	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12051      else
12052	allow_undefined_flag=' -expect_unresolved \*'
12053	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
12054	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~
12055          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
12056
12057	# Both c and cxx compiler support -rpath directly
12058	hardcode_libdir_flag_spec='-rpath $libdir'
12059      fi
12060      archive_cmds_need_lc='no'
12061      hardcode_libdir_separator=:
12062      ;;
12063
12064    solaris*)
12065      no_undefined_flag=' -z defs'
12066      if test yes = "$GCC"; then
12067	wlarc='$wl'
12068	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12069	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12070          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12071      else
12072	case `$CC -V 2>&1` in
12073	*"Compilers 5.0"*)
12074	  wlarc=''
12075	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12076	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12077            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12078	  ;;
12079	*)
12080	  wlarc='$wl'
12081	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12082	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12083            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12084	  ;;
12085	esac
12086      fi
12087      hardcode_libdir_flag_spec='-R$libdir'
12088      hardcode_shlibpath_var=no
12089      case $host_os in
12090      solaris2.[0-5] | solaris2.[0-5].*) ;;
12091      *)
12092	# The compiler driver will combine and reorder linker options,
12093	# but understands '-z linker_flag'.  GCC discards it without '$wl',
12094	# but is careful enough not to reorder.
12095	# Supported since Solaris 2.6 (maybe 2.5.1?)
12096	if test yes = "$GCC"; then
12097	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12098	else
12099	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12100	fi
12101	;;
12102      esac
12103      link_all_deplibs=yes
12104      ;;
12105
12106    sunos4*)
12107      if test sequent = "$host_vendor"; then
12108	# Use $CC to link under sequent, because it throws in some extra .o
12109	# files that make .init and .fini sections work.
12110	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12111      else
12112	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12113      fi
12114      hardcode_libdir_flag_spec='-L$libdir'
12115      hardcode_direct=yes
12116      hardcode_minus_L=yes
12117      hardcode_shlibpath_var=no
12118      ;;
12119
12120    sysv4)
12121      case $host_vendor in
12122	sni)
12123	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12124	  hardcode_direct=yes # is this really true???
12125	;;
12126	siemens)
12127	  ## LD is ld it makes a PLAMLIB
12128	  ## CC just makes a GrossModule.
12129	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12130	  reload_cmds='$CC -r -o $output$reload_objs'
12131	  hardcode_direct=no
12132        ;;
12133	motorola)
12134	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12135	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12136	;;
12137      esac
12138      runpath_var='LD_RUN_PATH'
12139      hardcode_shlibpath_var=no
12140      ;;
12141
12142    sysv4.3*)
12143      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12144      hardcode_shlibpath_var=no
12145      export_dynamic_flag_spec='-Bexport'
12146      ;;
12147
12148    sysv4*MP*)
12149      if test -d /usr/nec; then
12150	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12151	hardcode_shlibpath_var=no
12152	runpath_var=LD_RUN_PATH
12153	hardcode_runpath_var=yes
12154	ld_shlibs=yes
12155      fi
12156      ;;
12157
12158    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12159      no_undefined_flag='$wl-z,text'
12160      archive_cmds_need_lc=no
12161      hardcode_shlibpath_var=no
12162      runpath_var='LD_RUN_PATH'
12163
12164      if test yes = "$GCC"; then
12165	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12166	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12167      else
12168	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12169	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12170      fi
12171      ;;
12172
12173    sysv5* | sco3.2v5* | sco5v6*)
12174      # Note: We CANNOT use -z defs as we might desire, because we do not
12175      # link with -lc, and that would cause any symbols used from libc to
12176      # always be unresolved, which means just about no library would
12177      # ever link correctly.  If we're not using GNU ld we use -z text
12178      # though, which does catch some bad symbols but isn't as heavy-handed
12179      # as -z defs.
12180      no_undefined_flag='$wl-z,text'
12181      allow_undefined_flag='$wl-z,nodefs'
12182      archive_cmds_need_lc=no
12183      hardcode_shlibpath_var=no
12184      hardcode_libdir_flag_spec='$wl-R,$libdir'
12185      hardcode_libdir_separator=':'
12186      link_all_deplibs=yes
12187      export_dynamic_flag_spec='$wl-Bexport'
12188      runpath_var='LD_RUN_PATH'
12189
12190      if test yes = "$GCC"; then
12191	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12192	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12193      else
12194	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12195	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12196      fi
12197      ;;
12198
12199    uts4*)
12200      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12201      hardcode_libdir_flag_spec='-L$libdir'
12202      hardcode_shlibpath_var=no
12203      ;;
12204
12205    *)
12206      ld_shlibs=no
12207      ;;
12208    esac
12209
12210    if test sni = "$host_vendor"; then
12211      case $host in
12212      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12213	export_dynamic_flag_spec='$wl-Blargedynsym'
12214	;;
12215      esac
12216    fi
12217  fi
12218
12219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12220$as_echo "$ld_shlibs" >&6; }
12221test no = "$ld_shlibs" && can_build_shared=no
12222
12223with_gnu_ld=$with_gnu_ld
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239#
12240# Do we need to explicitly link libc?
12241#
12242case "x$archive_cmds_need_lc" in
12243x|xyes)
12244  # Assume -lc should be added
12245  archive_cmds_need_lc=yes
12246
12247  if test yes,yes = "$GCC,$enable_shared"; then
12248    case $archive_cmds in
12249    *'~'*)
12250      # FIXME: we may have to deal with multi-command sequences.
12251      ;;
12252    '$CC '*)
12253      # Test whether the compiler implicitly links with -lc since on some
12254      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12255      # to ld, don't add -lc before -lgcc.
12256      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12257$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12258if ${lt_cv_archive_cmds_need_lc+:} false; then :
12259  $as_echo_n "(cached) " >&6
12260else
12261  $RM conftest*
12262	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12263
12264	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12265  (eval $ac_compile) 2>&5
12266  ac_status=$?
12267  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12268  test $ac_status = 0; } 2>conftest.err; then
12269	  soname=conftest
12270	  lib=conftest
12271	  libobjs=conftest.$ac_objext
12272	  deplibs=
12273	  wl=$lt_prog_compiler_wl
12274	  pic_flag=$lt_prog_compiler_pic
12275	  compiler_flags=-v
12276	  linker_flags=-v
12277	  verstring=
12278	  output_objdir=.
12279	  libname=conftest
12280	  lt_save_allow_undefined_flag=$allow_undefined_flag
12281	  allow_undefined_flag=
12282	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12283  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12284  ac_status=$?
12285  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12286  test $ac_status = 0; }
12287	  then
12288	    lt_cv_archive_cmds_need_lc=no
12289	  else
12290	    lt_cv_archive_cmds_need_lc=yes
12291	  fi
12292	  allow_undefined_flag=$lt_save_allow_undefined_flag
12293	else
12294	  cat conftest.err 1>&5
12295	fi
12296	$RM conftest*
12297
12298fi
12299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12300$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12301      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12302      ;;
12303    esac
12304  fi
12305  ;;
12306esac
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12460$as_echo_n "checking dynamic linker characteristics... " >&6; }
12461
12462if test yes = "$GCC"; then
12463  case $host_os in
12464    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12465    *) lt_awk_arg='/^libraries:/' ;;
12466  esac
12467  case $host_os in
12468    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12469    *) lt_sed_strip_eq='s|=/|/|g' ;;
12470  esac
12471  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12472  case $lt_search_path_spec in
12473  *\;*)
12474    # if the path contains ";" then we assume it to be the separator
12475    # otherwise default to the standard path separator (i.e. ":") - it is
12476    # assumed that no part of a normal pathname contains ";" but that should
12477    # okay in the real world where ";" in dirpaths is itself problematic.
12478    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12479    ;;
12480  *)
12481    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12482    ;;
12483  esac
12484  # Ok, now we have the path, separated by spaces, we can step through it
12485  # and add multilib dir if necessary...
12486  lt_tmp_lt_search_path_spec=
12487  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12488  # ...but if some path component already ends with the multilib dir we assume
12489  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12490  case "$lt_multi_os_dir; $lt_search_path_spec " in
12491  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12492    lt_multi_os_dir=
12493    ;;
12494  esac
12495  for lt_sys_path in $lt_search_path_spec; do
12496    if test -d "$lt_sys_path$lt_multi_os_dir"; then
12497      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12498    elif test -n "$lt_multi_os_dir"; then
12499      test -d "$lt_sys_path" && \
12500	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12501    fi
12502  done
12503  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12504BEGIN {RS = " "; FS = "/|\n";} {
12505  lt_foo = "";
12506  lt_count = 0;
12507  for (lt_i = NF; lt_i > 0; lt_i--) {
12508    if ($lt_i != "" && $lt_i != ".") {
12509      if ($lt_i == "..") {
12510        lt_count++;
12511      } else {
12512        if (lt_count == 0) {
12513          lt_foo = "/" $lt_i lt_foo;
12514        } else {
12515          lt_count--;
12516        }
12517      }
12518    }
12519  }
12520  if (lt_foo != "") { lt_freq[lt_foo]++; }
12521  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12522}'`
12523  # AWK program above erroneously prepends '/' to C:/dos/paths
12524  # for these hosts.
12525  case $host_os in
12526    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12527      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12528  esac
12529  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12530else
12531  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12532fi
12533library_names_spec=
12534libname_spec='lib$name'
12535soname_spec=
12536shrext_cmds=.so
12537postinstall_cmds=
12538postuninstall_cmds=
12539finish_cmds=
12540finish_eval=
12541shlibpath_var=
12542shlibpath_overrides_runpath=unknown
12543version_type=none
12544dynamic_linker="$host_os ld.so"
12545sys_lib_dlsearch_path_spec="/lib /usr/lib"
12546need_lib_prefix=unknown
12547hardcode_into_libs=no
12548
12549# when you set need_version to no, make sure it does not cause -set_version
12550# flags to be left without arguments
12551need_version=unknown
12552
12553
12554
12555case $host_os in
12556aix3*)
12557  version_type=linux # correct to gnu/linux during the next big refactor
12558  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12559  shlibpath_var=LIBPATH
12560
12561  # AIX 3 has no versioning support, so we append a major version to the name.
12562  soname_spec='$libname$release$shared_ext$major'
12563  ;;
12564
12565aix[4-9]*)
12566  version_type=linux # correct to gnu/linux during the next big refactor
12567  need_lib_prefix=no
12568  need_version=no
12569  hardcode_into_libs=yes
12570  if test ia64 = "$host_cpu"; then
12571    # AIX 5 supports IA64
12572    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12573    shlibpath_var=LD_LIBRARY_PATH
12574  else
12575    # With GCC up to 2.95.x, collect2 would create an import file
12576    # for dependence libraries.  The import file would start with
12577    # the line '#! .'.  This would cause the generated library to
12578    # depend on '.', always an invalid library.  This was fixed in
12579    # development snapshots of GCC prior to 3.0.
12580    case $host_os in
12581      aix4 | aix4.[01] | aix4.[01].*)
12582      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12583	   echo ' yes '
12584	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12585	:
12586      else
12587	can_build_shared=no
12588      fi
12589      ;;
12590    esac
12591    # Using Import Files as archive members, it is possible to support
12592    # filename-based versioning of shared library archives on AIX. While
12593    # this would work for both with and without runtime linking, it will
12594    # prevent static linking of such archives. So we do filename-based
12595    # shared library versioning with .so extension only, which is used
12596    # when both runtime linking and shared linking is enabled.
12597    # Unfortunately, runtime linking may impact performance, so we do
12598    # not want this to be the default eventually. Also, we use the
12599    # versioned .so libs for executables only if there is the -brtl
12600    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12601    # To allow for filename-based versioning support, we need to create
12602    # libNAME.so.V as an archive file, containing:
12603    # *) an Import File, referring to the versioned filename of the
12604    #    archive as well as the shared archive member, telling the
12605    #    bitwidth (32 or 64) of that shared object, and providing the
12606    #    list of exported symbols of that shared object, eventually
12607    #    decorated with the 'weak' keyword
12608    # *) the shared object with the F_LOADONLY flag set, to really avoid
12609    #    it being seen by the linker.
12610    # At run time we better use the real file rather than another symlink,
12611    # but for link time we create the symlink libNAME.so -> libNAME.so.V
12612
12613    case $with_aix_soname,$aix_use_runtimelinking in
12614    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12615    # soname into executable. Probably we can add versioning support to
12616    # collect2, so additional links can be useful in future.
12617    aix,yes) # traditional libtool
12618      dynamic_linker='AIX unversionable lib.so'
12619      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12620      # instead of lib<name>.a to let people know that these are not
12621      # typical AIX shared libraries.
12622      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12623      ;;
12624    aix,no) # traditional AIX only
12625      dynamic_linker='AIX lib.a(lib.so.V)'
12626      # We preserve .a as extension for shared libraries through AIX4.2
12627      # and later when we are not doing run time linking.
12628      library_names_spec='$libname$release.a $libname.a'
12629      soname_spec='$libname$release$shared_ext$major'
12630      ;;
12631    svr4,*) # full svr4 only
12632      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12633      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12634      # We do not specify a path in Import Files, so LIBPATH fires.
12635      shlibpath_overrides_runpath=yes
12636      ;;
12637    *,yes) # both, prefer svr4
12638      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12639      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12640      # unpreferred sharedlib libNAME.a needs extra handling
12641      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12642      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12643      # We do not specify a path in Import Files, so LIBPATH fires.
12644      shlibpath_overrides_runpath=yes
12645      ;;
12646    *,no) # both, prefer aix
12647      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12648      library_names_spec='$libname$release.a $libname.a'
12649      soname_spec='$libname$release$shared_ext$major'
12650      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12651      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12652      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12653      ;;
12654    esac
12655    shlibpath_var=LIBPATH
12656  fi
12657  ;;
12658
12659amigaos*)
12660  case $host_cpu in
12661  powerpc)
12662    # Since July 2007 AmigaOS4 officially supports .so libraries.
12663    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12664    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12665    ;;
12666  m68k)
12667    library_names_spec='$libname.ixlibrary $libname.a'
12668    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12669    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12670    ;;
12671  esac
12672  ;;
12673
12674beos*)
12675  library_names_spec='$libname$shared_ext'
12676  dynamic_linker="$host_os ld.so"
12677  shlibpath_var=LIBRARY_PATH
12678  ;;
12679
12680bsdi[45]*)
12681  version_type=linux # correct to gnu/linux during the next big refactor
12682  need_version=no
12683  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12684  soname_spec='$libname$release$shared_ext$major'
12685  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12686  shlibpath_var=LD_LIBRARY_PATH
12687  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12688  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12689  # the default ld.so.conf also contains /usr/contrib/lib and
12690  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12691  # libtool to hard-code these into programs
12692  ;;
12693
12694cygwin* | mingw* | pw32* | cegcc*)
12695  version_type=windows
12696  shrext_cmds=.dll
12697  need_version=no
12698  need_lib_prefix=no
12699
12700  case $GCC,$cc_basename in
12701  yes,*)
12702    # gcc
12703    library_names_spec='$libname.dll.a'
12704    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12705    postinstall_cmds='base_file=`basename \$file`~
12706      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12707      dldir=$destdir/`dirname \$dlpath`~
12708      test -d \$dldir || mkdir -p \$dldir~
12709      $install_prog $dir/$dlname \$dldir/$dlname~
12710      chmod a+x \$dldir/$dlname~
12711      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12712        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12713      fi'
12714    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12715      dlpath=$dir/\$dldll~
12716       $RM \$dlpath'
12717    shlibpath_overrides_runpath=yes
12718
12719    case $host_os in
12720    cygwin*)
12721      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12722      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12723
12724      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12725      ;;
12726    mingw* | cegcc*)
12727      # MinGW DLLs use traditional 'lib' prefix
12728      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12729      ;;
12730    pw32*)
12731      # pw32 DLLs use 'pw' prefix rather than 'lib'
12732      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12733      ;;
12734    esac
12735    dynamic_linker='Win32 ld.exe'
12736    ;;
12737
12738  *,cl*)
12739    # Native MSVC
12740    libname_spec='$name'
12741    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12742    library_names_spec='$libname.dll.lib'
12743
12744    case $build_os in
12745    mingw*)
12746      sys_lib_search_path_spec=
12747      lt_save_ifs=$IFS
12748      IFS=';'
12749      for lt_path in $LIB
12750      do
12751        IFS=$lt_save_ifs
12752        # Let DOS variable expansion print the short 8.3 style file name.
12753        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12754        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12755      done
12756      IFS=$lt_save_ifs
12757      # Convert to MSYS style.
12758      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12759      ;;
12760    cygwin*)
12761      # Convert to unix form, then to dos form, then back to unix form
12762      # but this time dos style (no spaces!) so that the unix form looks
12763      # like /cygdrive/c/PROGRA~1:/cygdr...
12764      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12765      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12766      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12767      ;;
12768    *)
12769      sys_lib_search_path_spec=$LIB
12770      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12771        # It is most probably a Windows format PATH.
12772        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12773      else
12774        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12775      fi
12776      # FIXME: find the short name or the path components, as spaces are
12777      # common. (e.g. "Program Files" -> "PROGRA~1")
12778      ;;
12779    esac
12780
12781    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12782    postinstall_cmds='base_file=`basename \$file`~
12783      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12784      dldir=$destdir/`dirname \$dlpath`~
12785      test -d \$dldir || mkdir -p \$dldir~
12786      $install_prog $dir/$dlname \$dldir/$dlname'
12787    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12788      dlpath=$dir/\$dldll~
12789       $RM \$dlpath'
12790    shlibpath_overrides_runpath=yes
12791    dynamic_linker='Win32 link.exe'
12792    ;;
12793
12794  *)
12795    # Assume MSVC wrapper
12796    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12797    dynamic_linker='Win32 ld.exe'
12798    ;;
12799  esac
12800  # FIXME: first we should search . and the directory the executable is in
12801  shlibpath_var=PATH
12802  ;;
12803
12804darwin* | rhapsody*)
12805  dynamic_linker="$host_os dyld"
12806  version_type=darwin
12807  need_lib_prefix=no
12808  need_version=no
12809  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12810  soname_spec='$libname$release$major$shared_ext'
12811  shlibpath_overrides_runpath=yes
12812  shlibpath_var=DYLD_LIBRARY_PATH
12813  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12814
12815  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12816  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12817  ;;
12818
12819dgux*)
12820  version_type=linux # correct to gnu/linux during the next big refactor
12821  need_lib_prefix=no
12822  need_version=no
12823  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12824  soname_spec='$libname$release$shared_ext$major'
12825  shlibpath_var=LD_LIBRARY_PATH
12826  ;;
12827
12828freebsd* | dragonfly*)
12829  # DragonFly does not have aout.  When/if they implement a new
12830  # versioning mechanism, adjust this.
12831  if test -x /usr/bin/objformat; then
12832    objformat=`/usr/bin/objformat`
12833  else
12834    case $host_os in
12835    freebsd[23].*) objformat=aout ;;
12836    *) objformat=elf ;;
12837    esac
12838  fi
12839  version_type=freebsd-$objformat
12840  case $version_type in
12841    freebsd-elf*)
12842      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12843      soname_spec='$libname$release$shared_ext$major'
12844      need_version=no
12845      need_lib_prefix=no
12846      ;;
12847    freebsd-*)
12848      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12849      need_version=yes
12850      ;;
12851  esac
12852  shlibpath_var=LD_LIBRARY_PATH
12853  case $host_os in
12854  freebsd2.*)
12855    shlibpath_overrides_runpath=yes
12856    ;;
12857  freebsd3.[01]* | freebsdelf3.[01]*)
12858    shlibpath_overrides_runpath=yes
12859    hardcode_into_libs=yes
12860    ;;
12861  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12862  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12863    shlibpath_overrides_runpath=no
12864    hardcode_into_libs=yes
12865    ;;
12866  *) # from 4.6 on, and DragonFly
12867    shlibpath_overrides_runpath=yes
12868    hardcode_into_libs=yes
12869    ;;
12870  esac
12871  ;;
12872
12873haiku*)
12874  version_type=linux # correct to gnu/linux during the next big refactor
12875  need_lib_prefix=no
12876  need_version=no
12877  dynamic_linker="$host_os runtime_loader"
12878  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12879  soname_spec='$libname$release$shared_ext$major'
12880  shlibpath_var=LIBRARY_PATH
12881  shlibpath_overrides_runpath=no
12882  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12883  hardcode_into_libs=yes
12884  ;;
12885
12886hpux9* | hpux10* | hpux11*)
12887  # Give a soname corresponding to the major version so that dld.sl refuses to
12888  # link against other versions.
12889  version_type=sunos
12890  need_lib_prefix=no
12891  need_version=no
12892  case $host_cpu in
12893  ia64*)
12894    shrext_cmds='.so'
12895    hardcode_into_libs=yes
12896    dynamic_linker="$host_os dld.so"
12897    shlibpath_var=LD_LIBRARY_PATH
12898    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12899    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12900    soname_spec='$libname$release$shared_ext$major'
12901    if test 32 = "$HPUX_IA64_MODE"; then
12902      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12903      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12904    else
12905      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12906      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12907    fi
12908    ;;
12909  hppa*64*)
12910    shrext_cmds='.sl'
12911    hardcode_into_libs=yes
12912    dynamic_linker="$host_os dld.sl"
12913    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12914    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12915    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12916    soname_spec='$libname$release$shared_ext$major'
12917    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12918    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12919    ;;
12920  *)
12921    shrext_cmds='.sl'
12922    dynamic_linker="$host_os dld.sl"
12923    shlibpath_var=SHLIB_PATH
12924    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12925    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12926    soname_spec='$libname$release$shared_ext$major'
12927    ;;
12928  esac
12929  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12930  postinstall_cmds='chmod 555 $lib'
12931  # or fails outright, so override atomically:
12932  install_override_mode=555
12933  ;;
12934
12935interix[3-9]*)
12936  version_type=linux # correct to gnu/linux during the next big refactor
12937  need_lib_prefix=no
12938  need_version=no
12939  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12940  soname_spec='$libname$release$shared_ext$major'
12941  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12942  shlibpath_var=LD_LIBRARY_PATH
12943  shlibpath_overrides_runpath=no
12944  hardcode_into_libs=yes
12945  ;;
12946
12947irix5* | irix6* | nonstopux*)
12948  case $host_os in
12949    nonstopux*) version_type=nonstopux ;;
12950    *)
12951	if test yes = "$lt_cv_prog_gnu_ld"; then
12952		version_type=linux # correct to gnu/linux during the next big refactor
12953	else
12954		version_type=irix
12955	fi ;;
12956  esac
12957  need_lib_prefix=no
12958  need_version=no
12959  soname_spec='$libname$release$shared_ext$major'
12960  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12961  case $host_os in
12962  irix5* | nonstopux*)
12963    libsuff= shlibsuff=
12964    ;;
12965  *)
12966    case $LD in # libtool.m4 will add one of these switches to LD
12967    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12968      libsuff= shlibsuff= libmagic=32-bit;;
12969    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12970      libsuff=32 shlibsuff=N32 libmagic=N32;;
12971    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12972      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12973    *) libsuff= shlibsuff= libmagic=never-match;;
12974    esac
12975    ;;
12976  esac
12977  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12978  shlibpath_overrides_runpath=no
12979  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12980  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12981  hardcode_into_libs=yes
12982  ;;
12983
12984# No shared lib support for Linux oldld, aout, or coff.
12985linux*oldld* | linux*aout* | linux*coff*)
12986  dynamic_linker=no
12987  ;;
12988
12989linux*android*)
12990  version_type=none # Android doesn't support versioned libraries.
12991  need_lib_prefix=no
12992  need_version=no
12993  library_names_spec='$libname$release$shared_ext'
12994  soname_spec='$libname$release$shared_ext'
12995  finish_cmds=
12996  shlibpath_var=LD_LIBRARY_PATH
12997  shlibpath_overrides_runpath=yes
12998
12999  # This implies no fast_install, which is unacceptable.
13000  # Some rework will be needed to allow for fast_install
13001  # before this can be enabled.
13002  hardcode_into_libs=yes
13003
13004  dynamic_linker='Android linker'
13005  # Don't embed -rpath directories since the linker doesn't support them.
13006  hardcode_libdir_flag_spec='-L$libdir'
13007  ;;
13008
13009# This must be glibc/ELF.
13010linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13011  version_type=linux # correct to gnu/linux during the next big refactor
13012  need_lib_prefix=no
13013  need_version=no
13014  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13015  soname_spec='$libname$release$shared_ext$major'
13016  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13017  shlibpath_var=LD_LIBRARY_PATH
13018  shlibpath_overrides_runpath=no
13019
13020  # Some binutils ld are patched to set DT_RUNPATH
13021  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13022  $as_echo_n "(cached) " >&6
13023else
13024  lt_cv_shlibpath_overrides_runpath=no
13025    save_LDFLAGS=$LDFLAGS
13026    save_libdir=$libdir
13027    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13028	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13029    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13030/* end confdefs.h.  */
13031
13032int
13033main ()
13034{
13035
13036  ;
13037  return 0;
13038}
13039_ACEOF
13040if ac_fn_c_try_link "$LINENO"; then :
13041  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13042  lt_cv_shlibpath_overrides_runpath=yes
13043fi
13044fi
13045rm -f core conftest.err conftest.$ac_objext \
13046    conftest$ac_exeext conftest.$ac_ext
13047    LDFLAGS=$save_LDFLAGS
13048    libdir=$save_libdir
13049
13050fi
13051
13052  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13053
13054  # This implies no fast_install, which is unacceptable.
13055  # Some rework will be needed to allow for fast_install
13056  # before this can be enabled.
13057  hardcode_into_libs=yes
13058
13059  # Ideally, we could use ldconfig to report *all* directores which are
13060  # searched for libraries, however this is still not possible.  Aside from not
13061  # being certain /sbin/ldconfig is available, command
13062  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13063  # even though it is searched at run-time.  Try to do the best guess by
13064  # appending ld.so.conf contents (and includes) to the search path.
13065  if test -f /etc/ld.so.conf; then
13066    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
13067    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13068  fi
13069
13070  # We used to test for /lib/ld.so.1 and disable shared libraries on
13071  # powerpc, because MkLinux only supported shared libraries with the
13072  # GNU dynamic linker.  Since this was broken with cross compilers,
13073  # most powerpc-linux boxes support dynamic linking these days and
13074  # people can always --disable-shared, the test was removed, and we
13075  # assume the GNU/Linux dynamic linker is in use.
13076  dynamic_linker='GNU/Linux ld.so'
13077  ;;
13078
13079netbsdelf*-gnu)
13080  version_type=linux
13081  need_lib_prefix=no
13082  need_version=no
13083  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13084  soname_spec='${libname}${release}${shared_ext}$major'
13085  shlibpath_var=LD_LIBRARY_PATH
13086  shlibpath_overrides_runpath=no
13087  hardcode_into_libs=yes
13088  dynamic_linker='NetBSD ld.elf_so'
13089  ;;
13090
13091netbsd*)
13092  version_type=sunos
13093  need_lib_prefix=no
13094  need_version=no
13095  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13096    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13097    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13098    dynamic_linker='NetBSD (a.out) ld.so'
13099  else
13100    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13101    soname_spec='$libname$release$shared_ext$major'
13102    dynamic_linker='NetBSD ld.elf_so'
13103  fi
13104  shlibpath_var=LD_LIBRARY_PATH
13105  shlibpath_overrides_runpath=yes
13106  hardcode_into_libs=yes
13107  ;;
13108
13109newsos6)
13110  version_type=linux # correct to gnu/linux during the next big refactor
13111  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13112  shlibpath_var=LD_LIBRARY_PATH
13113  shlibpath_overrides_runpath=yes
13114  ;;
13115
13116*nto* | *qnx*)
13117  version_type=qnx
13118  need_lib_prefix=no
13119  need_version=no
13120  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13121  soname_spec='$libname$release$shared_ext$major'
13122  shlibpath_var=LD_LIBRARY_PATH
13123  shlibpath_overrides_runpath=no
13124  hardcode_into_libs=yes
13125  dynamic_linker='ldqnx.so'
13126  ;;
13127
13128openbsd* | bitrig*)
13129  version_type=sunos
13130  sys_lib_dlsearch_path_spec=/usr/lib
13131  need_lib_prefix=no
13132  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13133    need_version=no
13134  else
13135    need_version=yes
13136  fi
13137  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13138  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13139  shlibpath_var=LD_LIBRARY_PATH
13140  shlibpath_overrides_runpath=yes
13141  ;;
13142
13143os2*)
13144  libname_spec='$name'
13145  version_type=windows
13146  shrext_cmds=.dll
13147  need_version=no
13148  need_lib_prefix=no
13149  # OS/2 can only load a DLL with a base name of 8 characters or less.
13150  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13151    v=$($ECHO $release$versuffix | tr -d .-);
13152    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13153    $ECHO $n$v`$shared_ext'
13154  library_names_spec='${libname}_dll.$libext'
13155  dynamic_linker='OS/2 ld.exe'
13156  shlibpath_var=BEGINLIBPATH
13157  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13158  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13159  postinstall_cmds='base_file=`basename \$file`~
13160    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13161    dldir=$destdir/`dirname \$dlpath`~
13162    test -d \$dldir || mkdir -p \$dldir~
13163    $install_prog $dir/$dlname \$dldir/$dlname~
13164    chmod a+x \$dldir/$dlname~
13165    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13166      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13167    fi'
13168  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13169    dlpath=$dir/\$dldll~
13170    $RM \$dlpath'
13171  ;;
13172
13173osf3* | osf4* | osf5*)
13174  version_type=osf
13175  need_lib_prefix=no
13176  need_version=no
13177  soname_spec='$libname$release$shared_ext$major'
13178  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13179  shlibpath_var=LD_LIBRARY_PATH
13180  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13181  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13182  ;;
13183
13184rdos*)
13185  dynamic_linker=no
13186  ;;
13187
13188solaris*)
13189  version_type=linux # correct to gnu/linux during the next big refactor
13190  need_lib_prefix=no
13191  need_version=no
13192  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13193  soname_spec='$libname$release$shared_ext$major'
13194  shlibpath_var=LD_LIBRARY_PATH
13195  shlibpath_overrides_runpath=yes
13196  hardcode_into_libs=yes
13197  # ldd complains unless libraries are executable
13198  postinstall_cmds='chmod +x $lib'
13199  ;;
13200
13201sunos4*)
13202  version_type=sunos
13203  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13204  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13205  shlibpath_var=LD_LIBRARY_PATH
13206  shlibpath_overrides_runpath=yes
13207  if test yes = "$with_gnu_ld"; then
13208    need_lib_prefix=no
13209  fi
13210  need_version=yes
13211  ;;
13212
13213sysv4 | sysv4.3*)
13214  version_type=linux # correct to gnu/linux during the next big refactor
13215  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13216  soname_spec='$libname$release$shared_ext$major'
13217  shlibpath_var=LD_LIBRARY_PATH
13218  case $host_vendor in
13219    sni)
13220      shlibpath_overrides_runpath=no
13221      need_lib_prefix=no
13222      runpath_var=LD_RUN_PATH
13223      ;;
13224    siemens)
13225      need_lib_prefix=no
13226      ;;
13227    motorola)
13228      need_lib_prefix=no
13229      need_version=no
13230      shlibpath_overrides_runpath=no
13231      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13232      ;;
13233  esac
13234  ;;
13235
13236sysv4*MP*)
13237  if test -d /usr/nec; then
13238    version_type=linux # correct to gnu/linux during the next big refactor
13239    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13240    soname_spec='$libname$shared_ext.$major'
13241    shlibpath_var=LD_LIBRARY_PATH
13242  fi
13243  ;;
13244
13245sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13246  version_type=sco
13247  need_lib_prefix=no
13248  need_version=no
13249  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13250  soname_spec='$libname$release$shared_ext$major'
13251  shlibpath_var=LD_LIBRARY_PATH
13252  shlibpath_overrides_runpath=yes
13253  hardcode_into_libs=yes
13254  if test yes = "$with_gnu_ld"; then
13255    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13256  else
13257    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13258    case $host_os in
13259      sco3.2v5*)
13260        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13261	;;
13262    esac
13263  fi
13264  sys_lib_dlsearch_path_spec='/usr/lib'
13265  ;;
13266
13267tpf*)
13268  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13269  version_type=linux # correct to gnu/linux during the next big refactor
13270  need_lib_prefix=no
13271  need_version=no
13272  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13273  shlibpath_var=LD_LIBRARY_PATH
13274  shlibpath_overrides_runpath=no
13275  hardcode_into_libs=yes
13276  ;;
13277
13278uts4*)
13279  version_type=linux # correct to gnu/linux during the next big refactor
13280  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13281  soname_spec='$libname$release$shared_ext$major'
13282  shlibpath_var=LD_LIBRARY_PATH
13283  ;;
13284
13285*)
13286  dynamic_linker=no
13287  ;;
13288esac
13289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13290$as_echo "$dynamic_linker" >&6; }
13291test no = "$dynamic_linker" && can_build_shared=no
13292
13293variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13294if test yes = "$GCC"; then
13295  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13296fi
13297
13298if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13299  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13300fi
13301
13302if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13303  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13304fi
13305
13306# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13307configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13308
13309# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13310func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13311
13312# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13313configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13412$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13413hardcode_action=
13414if test -n "$hardcode_libdir_flag_spec" ||
13415   test -n "$runpath_var" ||
13416   test yes = "$hardcode_automatic"; then
13417
13418  # We can hardcode non-existent directories.
13419  if test no != "$hardcode_direct" &&
13420     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13421     # have to relink, otherwise we might link with an installed library
13422     # when we should be linking with a yet-to-be-installed one
13423     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13424     test no != "$hardcode_minus_L"; then
13425    # Linking always hardcodes the temporary library directory.
13426    hardcode_action=relink
13427  else
13428    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13429    hardcode_action=immediate
13430  fi
13431else
13432  # We cannot hardcode anything, or else we can only hardcode existing
13433  # directories.
13434  hardcode_action=unsupported
13435fi
13436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13437$as_echo "$hardcode_action" >&6; }
13438
13439if test relink = "$hardcode_action" ||
13440   test yes = "$inherit_rpath"; then
13441  # Fast installation is not supported
13442  enable_fast_install=no
13443elif test yes = "$shlibpath_overrides_runpath" ||
13444     test no = "$enable_shared"; then
13445  # Fast installation is not necessary
13446  enable_fast_install=needless
13447fi
13448
13449
13450
13451
13452
13453
13454  if test yes != "$enable_dlopen"; then
13455  enable_dlopen=unknown
13456  enable_dlopen_self=unknown
13457  enable_dlopen_self_static=unknown
13458else
13459  lt_cv_dlopen=no
13460  lt_cv_dlopen_libs=
13461
13462  case $host_os in
13463  beos*)
13464    lt_cv_dlopen=load_add_on
13465    lt_cv_dlopen_libs=
13466    lt_cv_dlopen_self=yes
13467    ;;
13468
13469  mingw* | pw32* | cegcc*)
13470    lt_cv_dlopen=LoadLibrary
13471    lt_cv_dlopen_libs=
13472    ;;
13473
13474  cygwin*)
13475    lt_cv_dlopen=dlopen
13476    lt_cv_dlopen_libs=
13477    ;;
13478
13479  darwin*)
13480    # if libdl is installed we need to link against it
13481    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13482$as_echo_n "checking for dlopen in -ldl... " >&6; }
13483if ${ac_cv_lib_dl_dlopen+:} false; then :
13484  $as_echo_n "(cached) " >&6
13485else
13486  ac_check_lib_save_LIBS=$LIBS
13487LIBS="-ldl  $LIBS"
13488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13489/* end confdefs.h.  */
13490
13491/* Override any GCC internal prototype to avoid an error.
13492   Use char because int might match the return type of a GCC
13493   builtin and then its argument prototype would still apply.  */
13494#ifdef __cplusplus
13495extern "C"
13496#endif
13497char dlopen ();
13498int
13499main ()
13500{
13501return dlopen ();
13502  ;
13503  return 0;
13504}
13505_ACEOF
13506if ac_fn_c_try_link "$LINENO"; then :
13507  ac_cv_lib_dl_dlopen=yes
13508else
13509  ac_cv_lib_dl_dlopen=no
13510fi
13511rm -f core conftest.err conftest.$ac_objext \
13512    conftest$ac_exeext conftest.$ac_ext
13513LIBS=$ac_check_lib_save_LIBS
13514fi
13515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13516$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13517if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13518  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13519else
13520
13521    lt_cv_dlopen=dyld
13522    lt_cv_dlopen_libs=
13523    lt_cv_dlopen_self=yes
13524
13525fi
13526
13527    ;;
13528
13529  tpf*)
13530    # Don't try to run any link tests for TPF.  We know it's impossible
13531    # because TPF is a cross-compiler, and we know how we open DSOs.
13532    lt_cv_dlopen=dlopen
13533    lt_cv_dlopen_libs=
13534    lt_cv_dlopen_self=no
13535    ;;
13536
13537  *)
13538    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13539if test "x$ac_cv_func_shl_load" = xyes; then :
13540  lt_cv_dlopen=shl_load
13541else
13542  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13543$as_echo_n "checking for shl_load in -ldld... " >&6; }
13544if ${ac_cv_lib_dld_shl_load+:} false; then :
13545  $as_echo_n "(cached) " >&6
13546else
13547  ac_check_lib_save_LIBS=$LIBS
13548LIBS="-ldld  $LIBS"
13549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13550/* end confdefs.h.  */
13551
13552/* Override any GCC internal prototype to avoid an error.
13553   Use char because int might match the return type of a GCC
13554   builtin and then its argument prototype would still apply.  */
13555#ifdef __cplusplus
13556extern "C"
13557#endif
13558char shl_load ();
13559int
13560main ()
13561{
13562return shl_load ();
13563  ;
13564  return 0;
13565}
13566_ACEOF
13567if ac_fn_c_try_link "$LINENO"; then :
13568  ac_cv_lib_dld_shl_load=yes
13569else
13570  ac_cv_lib_dld_shl_load=no
13571fi
13572rm -f core conftest.err conftest.$ac_objext \
13573    conftest$ac_exeext conftest.$ac_ext
13574LIBS=$ac_check_lib_save_LIBS
13575fi
13576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13577$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13578if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13579  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13580else
13581  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13582if test "x$ac_cv_func_dlopen" = xyes; then :
13583  lt_cv_dlopen=dlopen
13584else
13585  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13586$as_echo_n "checking for dlopen in -ldl... " >&6; }
13587if ${ac_cv_lib_dl_dlopen+:} false; then :
13588  $as_echo_n "(cached) " >&6
13589else
13590  ac_check_lib_save_LIBS=$LIBS
13591LIBS="-ldl  $LIBS"
13592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13593/* end confdefs.h.  */
13594
13595/* Override any GCC internal prototype to avoid an error.
13596   Use char because int might match the return type of a GCC
13597   builtin and then its argument prototype would still apply.  */
13598#ifdef __cplusplus
13599extern "C"
13600#endif
13601char dlopen ();
13602int
13603main ()
13604{
13605return dlopen ();
13606  ;
13607  return 0;
13608}
13609_ACEOF
13610if ac_fn_c_try_link "$LINENO"; then :
13611  ac_cv_lib_dl_dlopen=yes
13612else
13613  ac_cv_lib_dl_dlopen=no
13614fi
13615rm -f core conftest.err conftest.$ac_objext \
13616    conftest$ac_exeext conftest.$ac_ext
13617LIBS=$ac_check_lib_save_LIBS
13618fi
13619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13620$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13621if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13622  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13623else
13624  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13625$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13626if ${ac_cv_lib_svld_dlopen+:} false; then :
13627  $as_echo_n "(cached) " >&6
13628else
13629  ac_check_lib_save_LIBS=$LIBS
13630LIBS="-lsvld  $LIBS"
13631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13632/* end confdefs.h.  */
13633
13634/* Override any GCC internal prototype to avoid an error.
13635   Use char because int might match the return type of a GCC
13636   builtin and then its argument prototype would still apply.  */
13637#ifdef __cplusplus
13638extern "C"
13639#endif
13640char dlopen ();
13641int
13642main ()
13643{
13644return dlopen ();
13645  ;
13646  return 0;
13647}
13648_ACEOF
13649if ac_fn_c_try_link "$LINENO"; then :
13650  ac_cv_lib_svld_dlopen=yes
13651else
13652  ac_cv_lib_svld_dlopen=no
13653fi
13654rm -f core conftest.err conftest.$ac_objext \
13655    conftest$ac_exeext conftest.$ac_ext
13656LIBS=$ac_check_lib_save_LIBS
13657fi
13658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13659$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13660if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13661  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13662else
13663  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13664$as_echo_n "checking for dld_link in -ldld... " >&6; }
13665if ${ac_cv_lib_dld_dld_link+:} false; then :
13666  $as_echo_n "(cached) " >&6
13667else
13668  ac_check_lib_save_LIBS=$LIBS
13669LIBS="-ldld  $LIBS"
13670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13671/* end confdefs.h.  */
13672
13673/* Override any GCC internal prototype to avoid an error.
13674   Use char because int might match the return type of a GCC
13675   builtin and then its argument prototype would still apply.  */
13676#ifdef __cplusplus
13677extern "C"
13678#endif
13679char dld_link ();
13680int
13681main ()
13682{
13683return dld_link ();
13684  ;
13685  return 0;
13686}
13687_ACEOF
13688if ac_fn_c_try_link "$LINENO"; then :
13689  ac_cv_lib_dld_dld_link=yes
13690else
13691  ac_cv_lib_dld_dld_link=no
13692fi
13693rm -f core conftest.err conftest.$ac_objext \
13694    conftest$ac_exeext conftest.$ac_ext
13695LIBS=$ac_check_lib_save_LIBS
13696fi
13697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13698$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13699if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13700  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13701fi
13702
13703
13704fi
13705
13706
13707fi
13708
13709
13710fi
13711
13712
13713fi
13714
13715
13716fi
13717
13718    ;;
13719  esac
13720
13721  if test no = "$lt_cv_dlopen"; then
13722    enable_dlopen=no
13723  else
13724    enable_dlopen=yes
13725  fi
13726
13727  case $lt_cv_dlopen in
13728  dlopen)
13729    save_CPPFLAGS=$CPPFLAGS
13730    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13731
13732    save_LDFLAGS=$LDFLAGS
13733    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13734
13735    save_LIBS=$LIBS
13736    LIBS="$lt_cv_dlopen_libs $LIBS"
13737
13738    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13739$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13740if ${lt_cv_dlopen_self+:} false; then :
13741  $as_echo_n "(cached) " >&6
13742else
13743  	  if test yes = "$cross_compiling"; then :
13744  lt_cv_dlopen_self=cross
13745else
13746  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13747  lt_status=$lt_dlunknown
13748  cat > conftest.$ac_ext <<_LT_EOF
13749#line $LINENO "configure"
13750#include "confdefs.h"
13751
13752#if HAVE_DLFCN_H
13753#include <dlfcn.h>
13754#endif
13755
13756#include <stdio.h>
13757
13758#ifdef RTLD_GLOBAL
13759#  define LT_DLGLOBAL		RTLD_GLOBAL
13760#else
13761#  ifdef DL_GLOBAL
13762#    define LT_DLGLOBAL		DL_GLOBAL
13763#  else
13764#    define LT_DLGLOBAL		0
13765#  endif
13766#endif
13767
13768/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13769   find out it does not work in some platform. */
13770#ifndef LT_DLLAZY_OR_NOW
13771#  ifdef RTLD_LAZY
13772#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13773#  else
13774#    ifdef DL_LAZY
13775#      define LT_DLLAZY_OR_NOW		DL_LAZY
13776#    else
13777#      ifdef RTLD_NOW
13778#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13779#      else
13780#        ifdef DL_NOW
13781#          define LT_DLLAZY_OR_NOW	DL_NOW
13782#        else
13783#          define LT_DLLAZY_OR_NOW	0
13784#        endif
13785#      endif
13786#    endif
13787#  endif
13788#endif
13789
13790/* When -fvisibility=hidden is used, assume the code has been annotated
13791   correspondingly for the symbols needed.  */
13792#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13793int fnord () __attribute__((visibility("default")));
13794#endif
13795
13796int fnord () { return 42; }
13797int main ()
13798{
13799  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13800  int status = $lt_dlunknown;
13801
13802  if (self)
13803    {
13804      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13805      else
13806        {
13807	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13808          else puts (dlerror ());
13809	}
13810      /* dlclose (self); */
13811    }
13812  else
13813    puts (dlerror ());
13814
13815  return status;
13816}
13817_LT_EOF
13818  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13819  (eval $ac_link) 2>&5
13820  ac_status=$?
13821  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13822  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13823    (./conftest; exit; ) >&5 2>/dev/null
13824    lt_status=$?
13825    case x$lt_status in
13826      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13827      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13828      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13829    esac
13830  else :
13831    # compilation failed
13832    lt_cv_dlopen_self=no
13833  fi
13834fi
13835rm -fr conftest*
13836
13837
13838fi
13839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13840$as_echo "$lt_cv_dlopen_self" >&6; }
13841
13842    if test yes = "$lt_cv_dlopen_self"; then
13843      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13844      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13845$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13846if ${lt_cv_dlopen_self_static+:} false; then :
13847  $as_echo_n "(cached) " >&6
13848else
13849  	  if test yes = "$cross_compiling"; then :
13850  lt_cv_dlopen_self_static=cross
13851else
13852  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13853  lt_status=$lt_dlunknown
13854  cat > conftest.$ac_ext <<_LT_EOF
13855#line $LINENO "configure"
13856#include "confdefs.h"
13857
13858#if HAVE_DLFCN_H
13859#include <dlfcn.h>
13860#endif
13861
13862#include <stdio.h>
13863
13864#ifdef RTLD_GLOBAL
13865#  define LT_DLGLOBAL		RTLD_GLOBAL
13866#else
13867#  ifdef DL_GLOBAL
13868#    define LT_DLGLOBAL		DL_GLOBAL
13869#  else
13870#    define LT_DLGLOBAL		0
13871#  endif
13872#endif
13873
13874/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13875   find out it does not work in some platform. */
13876#ifndef LT_DLLAZY_OR_NOW
13877#  ifdef RTLD_LAZY
13878#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13879#  else
13880#    ifdef DL_LAZY
13881#      define LT_DLLAZY_OR_NOW		DL_LAZY
13882#    else
13883#      ifdef RTLD_NOW
13884#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13885#      else
13886#        ifdef DL_NOW
13887#          define LT_DLLAZY_OR_NOW	DL_NOW
13888#        else
13889#          define LT_DLLAZY_OR_NOW	0
13890#        endif
13891#      endif
13892#    endif
13893#  endif
13894#endif
13895
13896/* When -fvisibility=hidden is used, assume the code has been annotated
13897   correspondingly for the symbols needed.  */
13898#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13899int fnord () __attribute__((visibility("default")));
13900#endif
13901
13902int fnord () { return 42; }
13903int main ()
13904{
13905  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13906  int status = $lt_dlunknown;
13907
13908  if (self)
13909    {
13910      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13911      else
13912        {
13913	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13914          else puts (dlerror ());
13915	}
13916      /* dlclose (self); */
13917    }
13918  else
13919    puts (dlerror ());
13920
13921  return status;
13922}
13923_LT_EOF
13924  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13925  (eval $ac_link) 2>&5
13926  ac_status=$?
13927  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13928  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13929    (./conftest; exit; ) >&5 2>/dev/null
13930    lt_status=$?
13931    case x$lt_status in
13932      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13933      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13934      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13935    esac
13936  else :
13937    # compilation failed
13938    lt_cv_dlopen_self_static=no
13939  fi
13940fi
13941rm -fr conftest*
13942
13943
13944fi
13945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13946$as_echo "$lt_cv_dlopen_self_static" >&6; }
13947    fi
13948
13949    CPPFLAGS=$save_CPPFLAGS
13950    LDFLAGS=$save_LDFLAGS
13951    LIBS=$save_LIBS
13952    ;;
13953  esac
13954
13955  case $lt_cv_dlopen_self in
13956  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13957  *) enable_dlopen_self=unknown ;;
13958  esac
13959
13960  case $lt_cv_dlopen_self_static in
13961  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13962  *) enable_dlopen_self_static=unknown ;;
13963  esac
13964fi
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982striplib=
13983old_striplib=
13984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13985$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13986if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13987  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13988  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13990$as_echo "yes" >&6; }
13991else
13992# FIXME - insert some real tests, host_os isn't really good enough
13993  case $host_os in
13994  darwin*)
13995    if test -n "$STRIP"; then
13996      striplib="$STRIP -x"
13997      old_striplib="$STRIP -S"
13998      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13999$as_echo "yes" >&6; }
14000    else
14001      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14002$as_echo "no" >&6; }
14003    fi
14004    ;;
14005  *)
14006    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14007$as_echo "no" >&6; }
14008    ;;
14009  esac
14010fi
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023  # Report what library types will actually be built
14024  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14025$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14027$as_echo "$can_build_shared" >&6; }
14028
14029  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14030$as_echo_n "checking whether to build shared libraries... " >&6; }
14031  test no = "$can_build_shared" && enable_shared=no
14032
14033  # On AIX, shared libraries and static libraries use the same namespace, and
14034  # are all built from PIC.
14035  case $host_os in
14036  aix3*)
14037    test yes = "$enable_shared" && enable_static=no
14038    if test -n "$RANLIB"; then
14039      archive_cmds="$archive_cmds~\$RANLIB \$lib"
14040      postinstall_cmds='$RANLIB $lib'
14041    fi
14042    ;;
14043
14044  aix[4-9]*)
14045    if test ia64 != "$host_cpu"; then
14046      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14047      yes,aix,yes) ;;			# shared object as lib.so file only
14048      yes,svr4,*) ;;			# shared object as lib.so archive member only
14049      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
14050      esac
14051    fi
14052    ;;
14053  esac
14054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14055$as_echo "$enable_shared" >&6; }
14056
14057  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14058$as_echo_n "checking whether to build static libraries... " >&6; }
14059  # Make sure either enable_shared or enable_static is yes.
14060  test yes = "$enable_shared" || enable_static=yes
14061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14062$as_echo "$enable_static" >&6; }
14063
14064
14065
14066
14067fi
14068ac_ext=c
14069ac_cpp='$CPP $CPPFLAGS'
14070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14072ac_compiler_gnu=$ac_cv_c_compiler_gnu
14073
14074CC=$lt_save_CC
14075
14076      if test -n "$CXX" && ( test no != "$CXX" &&
14077    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14078    (test g++ != "$CXX"))); then
14079  ac_ext=cpp
14080ac_cpp='$CXXCPP $CPPFLAGS'
14081ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14082ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14083ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14085$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14086if test -z "$CXXCPP"; then
14087  if ${ac_cv_prog_CXXCPP+:} false; then :
14088  $as_echo_n "(cached) " >&6
14089else
14090      # Double quotes because CXXCPP needs to be expanded
14091    for CXXCPP in "$CXX -E" "/lib/cpp"
14092    do
14093      ac_preproc_ok=false
14094for ac_cxx_preproc_warn_flag in '' yes
14095do
14096  # Use a header file that comes with gcc, so configuring glibc
14097  # with a fresh cross-compiler works.
14098  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14099  # <limits.h> exists even on freestanding compilers.
14100  # On the NeXT, cc -E runs the code through the compiler's parser,
14101  # not just through cpp. "Syntax error" is here to catch this case.
14102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14103/* end confdefs.h.  */
14104#ifdef __STDC__
14105# include <limits.h>
14106#else
14107# include <assert.h>
14108#endif
14109		     Syntax error
14110_ACEOF
14111if ac_fn_cxx_try_cpp "$LINENO"; then :
14112
14113else
14114  # Broken: fails on valid input.
14115continue
14116fi
14117rm -f conftest.err conftest.i conftest.$ac_ext
14118
14119  # OK, works on sane cases.  Now check whether nonexistent headers
14120  # can be detected and how.
14121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14122/* end confdefs.h.  */
14123#include <ac_nonexistent.h>
14124_ACEOF
14125if ac_fn_cxx_try_cpp "$LINENO"; then :
14126  # Broken: success on invalid input.
14127continue
14128else
14129  # Passes both tests.
14130ac_preproc_ok=:
14131break
14132fi
14133rm -f conftest.err conftest.i conftest.$ac_ext
14134
14135done
14136# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14137rm -f conftest.i conftest.err conftest.$ac_ext
14138if $ac_preproc_ok; then :
14139  break
14140fi
14141
14142    done
14143    ac_cv_prog_CXXCPP=$CXXCPP
14144
14145fi
14146  CXXCPP=$ac_cv_prog_CXXCPP
14147else
14148  ac_cv_prog_CXXCPP=$CXXCPP
14149fi
14150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14151$as_echo "$CXXCPP" >&6; }
14152ac_preproc_ok=false
14153for ac_cxx_preproc_warn_flag in '' yes
14154do
14155  # Use a header file that comes with gcc, so configuring glibc
14156  # with a fresh cross-compiler works.
14157  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14158  # <limits.h> exists even on freestanding compilers.
14159  # On the NeXT, cc -E runs the code through the compiler's parser,
14160  # not just through cpp. "Syntax error" is here to catch this case.
14161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14162/* end confdefs.h.  */
14163#ifdef __STDC__
14164# include <limits.h>
14165#else
14166# include <assert.h>
14167#endif
14168		     Syntax error
14169_ACEOF
14170if ac_fn_cxx_try_cpp "$LINENO"; then :
14171
14172else
14173  # Broken: fails on valid input.
14174continue
14175fi
14176rm -f conftest.err conftest.i conftest.$ac_ext
14177
14178  # OK, works on sane cases.  Now check whether nonexistent headers
14179  # can be detected and how.
14180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14181/* end confdefs.h.  */
14182#include <ac_nonexistent.h>
14183_ACEOF
14184if ac_fn_cxx_try_cpp "$LINENO"; then :
14185  # Broken: success on invalid input.
14186continue
14187else
14188  # Passes both tests.
14189ac_preproc_ok=:
14190break
14191fi
14192rm -f conftest.err conftest.i conftest.$ac_ext
14193
14194done
14195# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14196rm -f conftest.i conftest.err conftest.$ac_ext
14197if $ac_preproc_ok; then :
14198
14199else
14200  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14201$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14202as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14203See \`config.log' for more details" "$LINENO" 5; }
14204fi
14205
14206ac_ext=c
14207ac_cpp='$CPP $CPPFLAGS'
14208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14210ac_compiler_gnu=$ac_cv_c_compiler_gnu
14211
14212else
14213  _lt_caught_CXX_error=yes
14214fi
14215
14216ac_ext=cpp
14217ac_cpp='$CXXCPP $CPPFLAGS'
14218ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14219ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14220ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14221
14222archive_cmds_need_lc_CXX=no
14223allow_undefined_flag_CXX=
14224always_export_symbols_CXX=no
14225archive_expsym_cmds_CXX=
14226compiler_needs_object_CXX=no
14227export_dynamic_flag_spec_CXX=
14228hardcode_direct_CXX=no
14229hardcode_direct_absolute_CXX=no
14230hardcode_libdir_flag_spec_CXX=
14231hardcode_libdir_separator_CXX=
14232hardcode_minus_L_CXX=no
14233hardcode_shlibpath_var_CXX=unsupported
14234hardcode_automatic_CXX=no
14235inherit_rpath_CXX=no
14236module_cmds_CXX=
14237module_expsym_cmds_CXX=
14238link_all_deplibs_CXX=unknown
14239old_archive_cmds_CXX=$old_archive_cmds
14240reload_flag_CXX=$reload_flag
14241reload_cmds_CXX=$reload_cmds
14242no_undefined_flag_CXX=
14243whole_archive_flag_spec_CXX=
14244enable_shared_with_static_runtimes_CXX=no
14245
14246# Source file extension for C++ test sources.
14247ac_ext=cpp
14248
14249# Object file extension for compiled C++ test sources.
14250objext=o
14251objext_CXX=$objext
14252
14253# No sense in running all these tests if we already determined that
14254# the CXX compiler isn't working.  Some variables (like enable_shared)
14255# are currently assumed to apply to all compilers on this platform,
14256# and will be corrupted by setting them based on a non-working compiler.
14257if test yes != "$_lt_caught_CXX_error"; then
14258  # Code to be used in simple compile tests
14259  lt_simple_compile_test_code="int some_variable = 0;"
14260
14261  # Code to be used in simple link tests
14262  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14263
14264  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14265
14266
14267
14268
14269
14270
14271# If no C compiler was specified, use CC.
14272LTCC=${LTCC-"$CC"}
14273
14274# If no C compiler flags were specified, use CFLAGS.
14275LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14276
14277# Allow CC to be a program name with arguments.
14278compiler=$CC
14279
14280
14281  # save warnings/boilerplate of simple test code
14282  ac_outfile=conftest.$ac_objext
14283echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14284eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14285_lt_compiler_boilerplate=`cat conftest.err`
14286$RM conftest*
14287
14288  ac_outfile=conftest.$ac_objext
14289echo "$lt_simple_link_test_code" >conftest.$ac_ext
14290eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14291_lt_linker_boilerplate=`cat conftest.err`
14292$RM -r conftest*
14293
14294
14295  # Allow CC to be a program name with arguments.
14296  lt_save_CC=$CC
14297  lt_save_CFLAGS=$CFLAGS
14298  lt_save_LD=$LD
14299  lt_save_GCC=$GCC
14300  GCC=$GXX
14301  lt_save_with_gnu_ld=$with_gnu_ld
14302  lt_save_path_LD=$lt_cv_path_LD
14303  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14304    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14305  else
14306    $as_unset lt_cv_prog_gnu_ld
14307  fi
14308  if test -n "${lt_cv_path_LDCXX+set}"; then
14309    lt_cv_path_LD=$lt_cv_path_LDCXX
14310  else
14311    $as_unset lt_cv_path_LD
14312  fi
14313  test -z "${LDCXX+set}" || LD=$LDCXX
14314  CC=${CXX-"c++"}
14315  CFLAGS=$CXXFLAGS
14316  compiler=$CC
14317  compiler_CXX=$CC
14318  func_cc_basename $compiler
14319cc_basename=$func_cc_basename_result
14320
14321
14322  if test -n "$compiler"; then
14323    # We don't want -fno-exception when compiling C++ code, so set the
14324    # no_builtin_flag separately
14325    if test yes = "$GXX"; then
14326      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14327    else
14328      lt_prog_compiler_no_builtin_flag_CXX=
14329    fi
14330
14331    if test yes = "$GXX"; then
14332      # Set up default GNU C++ configuration
14333
14334
14335
14336# Check whether --with-gnu-ld was given.
14337if test "${with_gnu_ld+set}" = set; then :
14338  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14339else
14340  with_gnu_ld=no
14341fi
14342
14343ac_prog=ld
14344if test yes = "$GCC"; then
14345  # Check if gcc -print-prog-name=ld gives a path.
14346  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14347$as_echo_n "checking for ld used by $CC... " >&6; }
14348  case $host in
14349  *-*-mingw*)
14350    # gcc leaves a trailing carriage return, which upsets mingw
14351    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14352  *)
14353    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14354  esac
14355  case $ac_prog in
14356    # Accept absolute paths.
14357    [\\/]* | ?:[\\/]*)
14358      re_direlt='/[^/][^/]*/\.\./'
14359      # Canonicalize the pathname of ld
14360      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14361      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14362	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14363      done
14364      test -z "$LD" && LD=$ac_prog
14365      ;;
14366  "")
14367    # If it fails, then pretend we aren't using GCC.
14368    ac_prog=ld
14369    ;;
14370  *)
14371    # If it is relative, then search for the first ld in PATH.
14372    with_gnu_ld=unknown
14373    ;;
14374  esac
14375elif test yes = "$with_gnu_ld"; then
14376  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14377$as_echo_n "checking for GNU ld... " >&6; }
14378else
14379  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14380$as_echo_n "checking for non-GNU ld... " >&6; }
14381fi
14382if ${lt_cv_path_LD+:} false; then :
14383  $as_echo_n "(cached) " >&6
14384else
14385  if test -z "$LD"; then
14386  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14387  for ac_dir in $PATH; do
14388    IFS=$lt_save_ifs
14389    test -z "$ac_dir" && ac_dir=.
14390    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14391      lt_cv_path_LD=$ac_dir/$ac_prog
14392      # Check to see if the program is GNU ld.  I'd rather use --version,
14393      # but apparently some variants of GNU ld only accept -v.
14394      # Break only if it was the GNU/non-GNU ld that we prefer.
14395      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14396      *GNU* | *'with BFD'*)
14397	test no != "$with_gnu_ld" && break
14398	;;
14399      *)
14400	test yes != "$with_gnu_ld" && break
14401	;;
14402      esac
14403    fi
14404  done
14405  IFS=$lt_save_ifs
14406else
14407  lt_cv_path_LD=$LD # Let the user override the test with a path.
14408fi
14409fi
14410
14411LD=$lt_cv_path_LD
14412if test -n "$LD"; then
14413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14414$as_echo "$LD" >&6; }
14415else
14416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14417$as_echo "no" >&6; }
14418fi
14419test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14421$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14422if ${lt_cv_prog_gnu_ld+:} false; then :
14423  $as_echo_n "(cached) " >&6
14424else
14425  # I'd rather use --version here, but apparently some GNU lds only accept -v.
14426case `$LD -v 2>&1 </dev/null` in
14427*GNU* | *'with BFD'*)
14428  lt_cv_prog_gnu_ld=yes
14429  ;;
14430*)
14431  lt_cv_prog_gnu_ld=no
14432  ;;
14433esac
14434fi
14435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14436$as_echo "$lt_cv_prog_gnu_ld" >&6; }
14437with_gnu_ld=$lt_cv_prog_gnu_ld
14438
14439
14440
14441
14442
14443
14444
14445      # Check if GNU C++ uses GNU ld as the underlying linker, since the
14446      # archiving commands below assume that GNU ld is being used.
14447      if test yes = "$with_gnu_ld"; then
14448        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14449        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14450
14451        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14452        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14453
14454        # If archive_cmds runs LD, not CC, wlarc should be empty
14455        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14456        #     investigate it a little bit more. (MM)
14457        wlarc='$wl'
14458
14459        # ancient GNU ld didn't support --whole-archive et. al.
14460        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14461	  $GREP 'no-whole-archive' > /dev/null; then
14462          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14463        else
14464          whole_archive_flag_spec_CXX=
14465        fi
14466      else
14467        with_gnu_ld=no
14468        wlarc=
14469
14470        # A generic and very simple default shared library creation
14471        # command for GNU C++ for the case where it uses the native
14472        # linker, instead of GNU ld.  If possible, this setting should
14473        # overridden to take advantage of the native linker features on
14474        # the platform it is being used on.
14475        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14476      fi
14477
14478      # Commands to make compiler produce verbose output that lists
14479      # what "hidden" libraries, object files and flags are used when
14480      # linking a shared library.
14481      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
14482
14483    else
14484      GXX=no
14485      with_gnu_ld=no
14486      wlarc=
14487    fi
14488
14489    # PORTME: fill in a description of your system's C++ link characteristics
14490    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14491$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14492    ld_shlibs_CXX=yes
14493    case $host_os in
14494      aix3*)
14495        # FIXME: insert proper C++ library support
14496        ld_shlibs_CXX=no
14497        ;;
14498      aix[4-9]*)
14499        if test ia64 = "$host_cpu"; then
14500          # On IA64, the linker does run time linking by default, so we don't
14501          # have to do anything special.
14502          aix_use_runtimelinking=no
14503          exp_sym_flag='-Bexport'
14504          no_entry_flag=
14505        else
14506          aix_use_runtimelinking=no
14507
14508          # Test if we are trying to use run time linking or normal
14509          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14510          # have runtime linking enabled, and use it for executables.
14511          # For shared libraries, we enable/disable runtime linking
14512          # depending on the kind of the shared library created -
14513          # when "with_aix_soname,aix_use_runtimelinking" is:
14514          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
14515          # "aix,yes"  lib.so          shared, rtl:yes, for executables
14516          #            lib.a           static archive
14517          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
14518          #            lib.a(lib.so.V) shared, rtl:no,  for executables
14519          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14520          #            lib.a(lib.so.V) shared, rtl:no
14521          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
14522          #            lib.a           static archive
14523          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14524	    for ld_flag in $LDFLAGS; do
14525	      case $ld_flag in
14526	      *-brtl*)
14527	        aix_use_runtimelinking=yes
14528	        break
14529	        ;;
14530	      esac
14531	    done
14532	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14533	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
14534	      # so we don't have lib.a shared libs to link our executables.
14535	      # We have to force runtime linking in this case.
14536	      aix_use_runtimelinking=yes
14537	      LDFLAGS="$LDFLAGS -Wl,-brtl"
14538	    fi
14539	    ;;
14540          esac
14541
14542          exp_sym_flag='-bexport'
14543          no_entry_flag='-bnoentry'
14544        fi
14545
14546        # When large executables or shared objects are built, AIX ld can
14547        # have problems creating the table of contents.  If linking a library
14548        # or program results in "error TOC overflow" add -mminimal-toc to
14549        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14550        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14551
14552        archive_cmds_CXX=''
14553        hardcode_direct_CXX=yes
14554        hardcode_direct_absolute_CXX=yes
14555        hardcode_libdir_separator_CXX=':'
14556        link_all_deplibs_CXX=yes
14557        file_list_spec_CXX='$wl-f,'
14558        case $with_aix_soname,$aix_use_runtimelinking in
14559        aix,*) ;;	# no import file
14560        svr4,* | *,yes) # use import file
14561          # The Import File defines what to hardcode.
14562          hardcode_direct_CXX=no
14563          hardcode_direct_absolute_CXX=no
14564          ;;
14565        esac
14566
14567        if test yes = "$GXX"; then
14568          case $host_os in aix4.[012]|aix4.[012].*)
14569          # We only want to do this on AIX 4.2 and lower, the check
14570          # below for broken collect2 doesn't work under 4.3+
14571	  collect2name=`$CC -print-prog-name=collect2`
14572	  if test -f "$collect2name" &&
14573	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14574	  then
14575	    # We have reworked collect2
14576	    :
14577	  else
14578	    # We have old collect2
14579	    hardcode_direct_CXX=unsupported
14580	    # It fails to find uninstalled libraries when the uninstalled
14581	    # path is not listed in the libpath.  Setting hardcode_minus_L
14582	    # to unsupported forces relinking
14583	    hardcode_minus_L_CXX=yes
14584	    hardcode_libdir_flag_spec_CXX='-L$libdir'
14585	    hardcode_libdir_separator_CXX=
14586	  fi
14587          esac
14588          shared_flag='-shared'
14589	  if test yes = "$aix_use_runtimelinking"; then
14590	    shared_flag=$shared_flag' $wl-G'
14591	  fi
14592	  # Need to ensure runtime linking is disabled for the traditional
14593	  # shared library, or the linker may eventually find shared libraries
14594	  # /with/ Import File - we do not want to mix them.
14595	  shared_flag_aix='-shared'
14596	  shared_flag_svr4='-shared $wl-G'
14597        else
14598          # not using gcc
14599          if test ia64 = "$host_cpu"; then
14600	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14601	  # chokes on -Wl,-G. The following line is correct:
14602	  shared_flag='-G'
14603          else
14604	    if test yes = "$aix_use_runtimelinking"; then
14605	      shared_flag='$wl-G'
14606	    else
14607	      shared_flag='$wl-bM:SRE'
14608	    fi
14609	    shared_flag_aix='$wl-bM:SRE'
14610	    shared_flag_svr4='$wl-G'
14611          fi
14612        fi
14613
14614        export_dynamic_flag_spec_CXX='$wl-bexpall'
14615        # It seems that -bexpall does not export symbols beginning with
14616        # underscore (_), so it is better to generate a list of symbols to
14617	# export.
14618        always_export_symbols_CXX=yes
14619	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14620          # Warning - without using the other runtime loading flags (-brtl),
14621          # -berok will link without error, but may produce a broken library.
14622          # The "-G" linker flag allows undefined symbols.
14623          no_undefined_flag_CXX='-bernotok'
14624          # Determine the default libpath from the value encoded in an empty
14625          # executable.
14626          if test set = "${lt_cv_aix_libpath+set}"; then
14627  aix_libpath=$lt_cv_aix_libpath
14628else
14629  if ${lt_cv_aix_libpath__CXX+:} false; then :
14630  $as_echo_n "(cached) " >&6
14631else
14632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14633/* end confdefs.h.  */
14634
14635int
14636main ()
14637{
14638
14639  ;
14640  return 0;
14641}
14642_ACEOF
14643if ac_fn_cxx_try_link "$LINENO"; then :
14644
14645  lt_aix_libpath_sed='
14646      /Import File Strings/,/^$/ {
14647	  /^0/ {
14648	      s/^0  *\([^ ]*\) *$/\1/
14649	      p
14650	  }
14651      }'
14652  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14653  # Check for a 64-bit object if we didn't find anything.
14654  if test -z "$lt_cv_aix_libpath__CXX"; then
14655    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14656  fi
14657fi
14658rm -f core conftest.err conftest.$ac_objext \
14659    conftest$ac_exeext conftest.$ac_ext
14660  if test -z "$lt_cv_aix_libpath__CXX"; then
14661    lt_cv_aix_libpath__CXX=/usr/lib:/lib
14662  fi
14663
14664fi
14665
14666  aix_libpath=$lt_cv_aix_libpath__CXX
14667fi
14668
14669          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14670
14671          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
14672        else
14673          if test ia64 = "$host_cpu"; then
14674	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14675	    allow_undefined_flag_CXX="-z nodefs"
14676	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
14677          else
14678	    # Determine the default libpath from the value encoded in an
14679	    # empty executable.
14680	    if test set = "${lt_cv_aix_libpath+set}"; then
14681  aix_libpath=$lt_cv_aix_libpath
14682else
14683  if ${lt_cv_aix_libpath__CXX+:} false; then :
14684  $as_echo_n "(cached) " >&6
14685else
14686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14687/* end confdefs.h.  */
14688
14689int
14690main ()
14691{
14692
14693  ;
14694  return 0;
14695}
14696_ACEOF
14697if ac_fn_cxx_try_link "$LINENO"; then :
14698
14699  lt_aix_libpath_sed='
14700      /Import File Strings/,/^$/ {
14701	  /^0/ {
14702	      s/^0  *\([^ ]*\) *$/\1/
14703	      p
14704	  }
14705      }'
14706  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14707  # Check for a 64-bit object if we didn't find anything.
14708  if test -z "$lt_cv_aix_libpath__CXX"; then
14709    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14710  fi
14711fi
14712rm -f core conftest.err conftest.$ac_objext \
14713    conftest$ac_exeext conftest.$ac_ext
14714  if test -z "$lt_cv_aix_libpath__CXX"; then
14715    lt_cv_aix_libpath__CXX=/usr/lib:/lib
14716  fi
14717
14718fi
14719
14720  aix_libpath=$lt_cv_aix_libpath__CXX
14721fi
14722
14723	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14724	    # Warning - without using the other run time loading flags,
14725	    # -berok will link without error, but may produce a broken library.
14726	    no_undefined_flag_CXX=' $wl-bernotok'
14727	    allow_undefined_flag_CXX=' $wl-berok'
14728	    if test yes = "$with_gnu_ld"; then
14729	      # We only use this code for GNU lds that support --whole-archive.
14730	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14731	    else
14732	      # Exported symbols can be pulled into shared objects from archives
14733	      whole_archive_flag_spec_CXX='$convenience'
14734	    fi
14735	    archive_cmds_need_lc_CXX=yes
14736	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14737	    # -brtl affects multiple linker settings, -berok does not and is overridden later
14738	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14739	    if test svr4 != "$with_aix_soname"; then
14740	      # This is similar to how AIX traditionally builds its shared
14741	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14742	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
14743	    fi
14744	    if test aix != "$with_aix_soname"; then
14745	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
14746	    else
14747	      # used by -dlpreopen to get the symbols
14748	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
14749	    fi
14750	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14751          fi
14752        fi
14753        ;;
14754
14755      beos*)
14756	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14757	  allow_undefined_flag_CXX=unsupported
14758	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14759	  # support --undefined.  This deserves some investigation.  FIXME
14760	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14761	else
14762	  ld_shlibs_CXX=no
14763	fi
14764	;;
14765
14766      chorus*)
14767        case $cc_basename in
14768          *)
14769	  # FIXME: insert proper C++ library support
14770	  ld_shlibs_CXX=no
14771	  ;;
14772        esac
14773        ;;
14774
14775      cygwin* | mingw* | pw32* | cegcc*)
14776	case $GXX,$cc_basename in
14777	,cl* | no,cl*)
14778	  # Native MSVC
14779	  # hardcode_libdir_flag_spec is actually meaningless, as there is
14780	  # no search path for DLLs.
14781	  hardcode_libdir_flag_spec_CXX=' '
14782	  allow_undefined_flag_CXX=unsupported
14783	  always_export_symbols_CXX=yes
14784	  file_list_spec_CXX='@'
14785	  # Tell ltmain to make .lib files, not .a files.
14786	  libext=lib
14787	  # Tell ltmain to make .dll files, not .so files.
14788	  shrext_cmds=.dll
14789	  # FIXME: Setting linknames here is a bad hack.
14790	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14791	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14792              cp "$export_symbols" "$output_objdir/$soname.def";
14793              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14794            else
14795              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14796            fi~
14797            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14798            linknames='
14799	  # The linker will not automatically build a static lib if we build a DLL.
14800	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14801	  enable_shared_with_static_runtimes_CXX=yes
14802	  # Don't use ranlib
14803	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
14804	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14805            lt_tool_outputfile="@TOOL_OUTPUT@"~
14806            case $lt_outputfile in
14807              *.exe|*.EXE) ;;
14808              *)
14809                lt_outputfile=$lt_outputfile.exe
14810                lt_tool_outputfile=$lt_tool_outputfile.exe
14811                ;;
14812            esac~
14813            func_to_tool_file "$lt_outputfile"~
14814            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14815              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14816              $RM "$lt_outputfile.manifest";
14817            fi'
14818	  ;;
14819	*)
14820	  # g++
14821	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14822	  # as there is no search path for DLLs.
14823	  hardcode_libdir_flag_spec_CXX='-L$libdir'
14824	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14825	  allow_undefined_flag_CXX=unsupported
14826	  always_export_symbols_CXX=no
14827	  enable_shared_with_static_runtimes_CXX=yes
14828
14829	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14830	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14831	    # If the export-symbols file already is a .def file, use it as
14832	    # is; otherwise, prepend EXPORTS...
14833	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14834              cp $export_symbols $output_objdir/$soname.def;
14835            else
14836              echo EXPORTS > $output_objdir/$soname.def;
14837              cat $export_symbols >> $output_objdir/$soname.def;
14838            fi~
14839            $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14840	  else
14841	    ld_shlibs_CXX=no
14842	  fi
14843	  ;;
14844	esac
14845	;;
14846      darwin* | rhapsody*)
14847
14848
14849  archive_cmds_need_lc_CXX=no
14850  hardcode_direct_CXX=no
14851  hardcode_automatic_CXX=yes
14852  hardcode_shlibpath_var_CXX=unsupported
14853  if test yes = "$lt_cv_ld_force_load"; then
14854    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14855
14856  else
14857    whole_archive_flag_spec_CXX=''
14858  fi
14859  link_all_deplibs_CXX=yes
14860  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14861  case $cc_basename in
14862     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14863     *) _lt_dar_can_shared=$GCC ;;
14864  esac
14865  if test yes = "$_lt_dar_can_shared"; then
14866    output_verbose_link_cmd=func_echo_all
14867    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
14868    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14869    archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
14870    module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
14871       if test yes != "$lt_cv_apple_cc_single_mod"; then
14872      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
14873      archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
14874    fi
14875
14876  else
14877  ld_shlibs_CXX=no
14878  fi
14879
14880	;;
14881
14882      os2*)
14883	hardcode_libdir_flag_spec_CXX='-L$libdir'
14884	hardcode_minus_L_CXX=yes
14885	allow_undefined_flag_CXX=unsupported
14886	shrext_cmds=.dll
14887	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14888	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14889	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14890	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14891	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14892	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14893	  emximp -o $lib $output_objdir/$libname.def'
14894	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14895	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14896	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14897	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14898	  prefix_cmds="$SED"~
14899	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
14900	    prefix_cmds="$prefix_cmds -e 1d";
14901	  fi~
14902	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14903	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14904	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14905	  emximp -o $lib $output_objdir/$libname.def'
14906	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14907	enable_shared_with_static_runtimes_CXX=yes
14908	;;
14909
14910      dgux*)
14911        case $cc_basename in
14912          ec++*)
14913	    # FIXME: insert proper C++ library support
14914	    ld_shlibs_CXX=no
14915	    ;;
14916          ghcx*)
14917	    # Green Hills C++ Compiler
14918	    # FIXME: insert proper C++ library support
14919	    ld_shlibs_CXX=no
14920	    ;;
14921          *)
14922	    # FIXME: insert proper C++ library support
14923	    ld_shlibs_CXX=no
14924	    ;;
14925        esac
14926        ;;
14927
14928      freebsd2.*)
14929        # C++ shared libraries reported to be fairly broken before
14930	# switch to ELF
14931        ld_shlibs_CXX=no
14932        ;;
14933
14934      freebsd-elf*)
14935        archive_cmds_need_lc_CXX=no
14936        ;;
14937
14938      freebsd* | dragonfly*)
14939        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14940        # conventions
14941        ld_shlibs_CXX=yes
14942        ;;
14943
14944      haiku*)
14945        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14946        link_all_deplibs_CXX=yes
14947        ;;
14948
14949      hpux9*)
14950        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14951        hardcode_libdir_separator_CXX=:
14952        export_dynamic_flag_spec_CXX='$wl-E'
14953        hardcode_direct_CXX=yes
14954        hardcode_minus_L_CXX=yes # Not in the search PATH,
14955				             # but as the default
14956				             # location of the library.
14957
14958        case $cc_basename in
14959          CC*)
14960            # FIXME: insert proper C++ library support
14961            ld_shlibs_CXX=no
14962            ;;
14963          aCC*)
14964            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14965            # Commands to make compiler produce verbose output that lists
14966            # what "hidden" libraries, object files and flags are used when
14967            # linking a shared library.
14968            #
14969            # There doesn't appear to be a way to prevent this compiler from
14970            # explicitly linking system object files so we need to strip them
14971            # from the output so that they don't get included in the library
14972            # dependencies.
14973            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14974            ;;
14975          *)
14976            if test yes = "$GXX"; then
14977              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14978            else
14979              # FIXME: insert proper C++ library support
14980              ld_shlibs_CXX=no
14981            fi
14982            ;;
14983        esac
14984        ;;
14985
14986      hpux10*|hpux11*)
14987        if test no = "$with_gnu_ld"; then
14988	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14989	  hardcode_libdir_separator_CXX=:
14990
14991          case $host_cpu in
14992            hppa*64*|ia64*)
14993              ;;
14994            *)
14995	      export_dynamic_flag_spec_CXX='$wl-E'
14996              ;;
14997          esac
14998        fi
14999        case $host_cpu in
15000          hppa*64*|ia64*)
15001            hardcode_direct_CXX=no
15002            hardcode_shlibpath_var_CXX=no
15003            ;;
15004          *)
15005            hardcode_direct_CXX=yes
15006            hardcode_direct_absolute_CXX=yes
15007            hardcode_minus_L_CXX=yes # Not in the search PATH,
15008					         # but as the default
15009					         # location of the library.
15010            ;;
15011        esac
15012
15013        case $cc_basename in
15014          CC*)
15015	    # FIXME: insert proper C++ library support
15016	    ld_shlibs_CXX=no
15017	    ;;
15018          aCC*)
15019	    case $host_cpu in
15020	      hppa*64*)
15021	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15022	        ;;
15023	      ia64*)
15024	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15025	        ;;
15026	      *)
15027	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15028	        ;;
15029	    esac
15030	    # Commands to make compiler produce verbose output that lists
15031	    # what "hidden" libraries, object files and flags are used when
15032	    # linking a shared library.
15033	    #
15034	    # There doesn't appear to be a way to prevent this compiler from
15035	    # explicitly linking system object files so we need to strip them
15036	    # from the output so that they don't get included in the library
15037	    # dependencies.
15038	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15039	    ;;
15040          *)
15041	    if test yes = "$GXX"; then
15042	      if test no = "$with_gnu_ld"; then
15043	        case $host_cpu in
15044	          hppa*64*)
15045	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15046	            ;;
15047	          ia64*)
15048	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15049	            ;;
15050	          *)
15051	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15052	            ;;
15053	        esac
15054	      fi
15055	    else
15056	      # FIXME: insert proper C++ library support
15057	      ld_shlibs_CXX=no
15058	    fi
15059	    ;;
15060        esac
15061        ;;
15062
15063      interix[3-9]*)
15064	hardcode_direct_CXX=no
15065	hardcode_shlibpath_var_CXX=no
15066	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15067	export_dynamic_flag_spec_CXX='$wl-E'
15068	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15069	# Instead, shared libraries are loaded at an image base (0x10000000 by
15070	# default) and relocated if they conflict, which is a slow very memory
15071	# consuming and fragmenting process.  To avoid this, we pick a random,
15072	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15073	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15074	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15075	archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15076	;;
15077      irix5* | irix6*)
15078        case $cc_basename in
15079          CC*)
15080	    # SGI C++
15081	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15082
15083	    # Archives containing C++ object files must be created using
15084	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15085	    # necessary to make sure instantiated templates are included
15086	    # in the archive.
15087	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15088	    ;;
15089          *)
15090	    if test yes = "$GXX"; then
15091	      if test no = "$with_gnu_ld"; then
15092	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
15093	      else
15094	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
15095	      fi
15096	    fi
15097	    link_all_deplibs_CXX=yes
15098	    ;;
15099        esac
15100        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15101        hardcode_libdir_separator_CXX=:
15102        inherit_rpath_CXX=yes
15103        ;;
15104
15105      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15106        case $cc_basename in
15107          KCC*)
15108	    # Kuck and Associates, Inc. (KAI) C++ Compiler
15109
15110	    # KCC will only create a shared library if the output file
15111	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
15112	    # to its proper name (with version) after linking.
15113	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15114	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
15115	    # Commands to make compiler produce verbose output that lists
15116	    # what "hidden" libraries, object files and flags are used when
15117	    # linking a shared library.
15118	    #
15119	    # There doesn't appear to be a way to prevent this compiler from
15120	    # explicitly linking system object files so we need to strip them
15121	    # from the output so that they don't get included in the library
15122	    # dependencies.
15123	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15124
15125	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15126	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15127
15128	    # Archives containing C++ object files must be created using
15129	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15130	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15131	    ;;
15132	  icpc* | ecpc* )
15133	    # Intel C++
15134	    with_gnu_ld=yes
15135	    # version 8.0 and above of icpc choke on multiply defined symbols
15136	    # if we add $predep_objects and $postdep_objects, however 7.1 and
15137	    # earlier do not add the objects themselves.
15138	    case `$CC -V 2>&1` in
15139	      *"Version 7."*)
15140	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15141		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15142		;;
15143	      *)  # Version 8.0 or newer
15144	        tmp_idyn=
15145	        case $host_cpu in
15146		  ia64*) tmp_idyn=' -i_dynamic';;
15147		esac
15148	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15149		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15150		;;
15151	    esac
15152	    archive_cmds_need_lc_CXX=no
15153	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15154	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15155	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15156	    ;;
15157          pgCC* | pgcpp*)
15158            # Portland Group C++ compiler
15159	    case `$CC -V` in
15160	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15161	      prelink_cmds_CXX='tpldir=Template.dir~
15162               rm -rf $tpldir~
15163               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15164               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15165	      old_archive_cmds_CXX='tpldir=Template.dir~
15166                rm -rf $tpldir~
15167                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15168                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15169                $RANLIB $oldlib'
15170	      archive_cmds_CXX='tpldir=Template.dir~
15171                rm -rf $tpldir~
15172                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15173                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15174	      archive_expsym_cmds_CXX='tpldir=Template.dir~
15175                rm -rf $tpldir~
15176                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15177                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15178	      ;;
15179	    *) # Version 6 and above use weak symbols
15180	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15181	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15182	      ;;
15183	    esac
15184
15185	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15186	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15187	    whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
15188            ;;
15189	  cxx*)
15190	    # Compaq C++
15191	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15192	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname  -o $lib $wl-retain-symbols-file $wl$export_symbols'
15193
15194	    runpath_var=LD_RUN_PATH
15195	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15196	    hardcode_libdir_separator_CXX=:
15197
15198	    # Commands to make compiler produce verbose output that lists
15199	    # what "hidden" libraries, object files and flags are used when
15200	    # linking a shared library.
15201	    #
15202	    # There doesn't appear to be a way to prevent this compiler from
15203	    # explicitly linking system object files so we need to strip them
15204	    # from the output so that they don't get included in the library
15205	    # dependencies.
15206	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
15207	    ;;
15208	  xl* | mpixl* | bgxl*)
15209	    # IBM XL 8.0 on PPC, with GNU ld
15210	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15211	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15212	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15213	    if test yes = "$supports_anon_versioning"; then
15214	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15215                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15216                echo "local: *; };" >> $output_objdir/$libname.ver~
15217                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15218	    fi
15219	    ;;
15220	  *)
15221	    case `$CC -V 2>&1 | sed 5q` in
15222	    *Sun\ C*)
15223	      # Sun C++ 5.9
15224	      no_undefined_flag_CXX=' -zdefs'
15225	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15226	      archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
15227	      hardcode_libdir_flag_spec_CXX='-R$libdir'
15228	      whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
15229	      compiler_needs_object_CXX=yes
15230
15231	      # Not sure whether something based on
15232	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15233	      # would be better.
15234	      output_verbose_link_cmd='func_echo_all'
15235
15236	      # Archives containing C++ object files must be created using
15237	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15238	      # necessary to make sure instantiated templates are included
15239	      # in the archive.
15240	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15241	      ;;
15242	    esac
15243	    ;;
15244	esac
15245	;;
15246
15247      lynxos*)
15248        # FIXME: insert proper C++ library support
15249	ld_shlibs_CXX=no
15250	;;
15251
15252      m88k*)
15253        # FIXME: insert proper C++ library support
15254        ld_shlibs_CXX=no
15255	;;
15256
15257      mvs*)
15258        case $cc_basename in
15259          cxx*)
15260	    # FIXME: insert proper C++ library support
15261	    ld_shlibs_CXX=no
15262	    ;;
15263	  *)
15264	    # FIXME: insert proper C++ library support
15265	    ld_shlibs_CXX=no
15266	    ;;
15267	esac
15268	;;
15269
15270      netbsd*)
15271        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15272	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15273	  wlarc=
15274	  hardcode_libdir_flag_spec_CXX='-R$libdir'
15275	  hardcode_direct_CXX=yes
15276	  hardcode_shlibpath_var_CXX=no
15277	fi
15278	# Workaround some broken pre-1.5 toolchains
15279	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15280	;;
15281
15282      *nto* | *qnx*)
15283        ld_shlibs_CXX=yes
15284	;;
15285
15286      openbsd* | bitrig*)
15287	if test -f /usr/libexec/ld.so; then
15288	  hardcode_direct_CXX=yes
15289	  hardcode_shlibpath_var_CXX=no
15290	  hardcode_direct_absolute_CXX=yes
15291	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15292	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15293	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15294	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15295	    export_dynamic_flag_spec_CXX='$wl-E'
15296	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15297	  fi
15298	  output_verbose_link_cmd=func_echo_all
15299	else
15300	  ld_shlibs_CXX=no
15301	fi
15302	;;
15303
15304      osf3* | osf4* | osf5*)
15305        case $cc_basename in
15306          KCC*)
15307	    # Kuck and Associates, Inc. (KAI) C++ Compiler
15308
15309	    # KCC will only create a shared library if the output file
15310	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
15311	    # to its proper name (with version) after linking.
15312	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15313
15314	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15315	    hardcode_libdir_separator_CXX=:
15316
15317	    # Archives containing C++ object files must be created using
15318	    # the KAI C++ compiler.
15319	    case $host in
15320	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15321	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15322	    esac
15323	    ;;
15324          RCC*)
15325	    # Rational C++ 2.4.1
15326	    # FIXME: insert proper C++ library support
15327	    ld_shlibs_CXX=no
15328	    ;;
15329          cxx*)
15330	    case $host in
15331	      osf3*)
15332	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15333	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15334	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15335		;;
15336	      *)
15337	        allow_undefined_flag_CXX=' -expect_unresolved \*'
15338	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15339	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15340                  echo "-hidden">> $lib.exp~
15341                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
15342                  $RM $lib.exp'
15343	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15344		;;
15345	    esac
15346
15347	    hardcode_libdir_separator_CXX=:
15348
15349	    # Commands to make compiler produce verbose output that lists
15350	    # what "hidden" libraries, object files and flags are used when
15351	    # linking a shared library.
15352	    #
15353	    # There doesn't appear to be a way to prevent this compiler from
15354	    # explicitly linking system object files so we need to strip them
15355	    # from the output so that they don't get included in the library
15356	    # dependencies.
15357	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15358	    ;;
15359	  *)
15360	    if test yes,no = "$GXX,$with_gnu_ld"; then
15361	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15362	      case $host in
15363	        osf3*)
15364	          archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
15365		  ;;
15366	        *)
15367	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
15368		  ;;
15369	      esac
15370
15371	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15372	      hardcode_libdir_separator_CXX=:
15373
15374	      # Commands to make compiler produce verbose output that lists
15375	      # what "hidden" libraries, object files and flags are used when
15376	      # linking a shared library.
15377	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15378
15379	    else
15380	      # FIXME: insert proper C++ library support
15381	      ld_shlibs_CXX=no
15382	    fi
15383	    ;;
15384        esac
15385        ;;
15386
15387      psos*)
15388        # FIXME: insert proper C++ library support
15389        ld_shlibs_CXX=no
15390        ;;
15391
15392      sunos4*)
15393        case $cc_basename in
15394          CC*)
15395	    # Sun C++ 4.x
15396	    # FIXME: insert proper C++ library support
15397	    ld_shlibs_CXX=no
15398	    ;;
15399          lcc*)
15400	    # Lucid
15401	    # FIXME: insert proper C++ library support
15402	    ld_shlibs_CXX=no
15403	    ;;
15404          *)
15405	    # FIXME: insert proper C++ library support
15406	    ld_shlibs_CXX=no
15407	    ;;
15408        esac
15409        ;;
15410
15411      solaris*)
15412        case $cc_basename in
15413          CC* | sunCC*)
15414	    # Sun C++ 4.2, 5.x and Centerline C++
15415            archive_cmds_need_lc_CXX=yes
15416	    no_undefined_flag_CXX=' -zdefs'
15417	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15418	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15419              $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15420
15421	    hardcode_libdir_flag_spec_CXX='-R$libdir'
15422	    hardcode_shlibpath_var_CXX=no
15423	    case $host_os in
15424	      solaris2.[0-5] | solaris2.[0-5].*) ;;
15425	      *)
15426		# The compiler driver will combine and reorder linker options,
15427		# but understands '-z linker_flag'.
15428	        # Supported since Solaris 2.6 (maybe 2.5.1?)
15429		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15430	        ;;
15431	    esac
15432	    link_all_deplibs_CXX=yes
15433
15434	    output_verbose_link_cmd='func_echo_all'
15435
15436	    # Archives containing C++ object files must be created using
15437	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15438	    # necessary to make sure instantiated templates are included
15439	    # in the archive.
15440	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15441	    ;;
15442          gcx*)
15443	    # Green Hills C++ Compiler
15444	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15445
15446	    # The C++ compiler must be used to create the archive.
15447	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15448	    ;;
15449          *)
15450	    # GNU C++ compiler with Solaris linker
15451	    if test yes,no = "$GXX,$with_gnu_ld"; then
15452	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
15453	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15454	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15455	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15456                  $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15457
15458	        # Commands to make compiler produce verbose output that lists
15459	        # what "hidden" libraries, object files and flags are used when
15460	        # linking a shared library.
15461	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15462	      else
15463	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
15464	        # platform.
15465	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15466	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15467                  $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15468
15469	        # Commands to make compiler produce verbose output that lists
15470	        # what "hidden" libraries, object files and flags are used when
15471	        # linking a shared library.
15472	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15473	      fi
15474
15475	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
15476	      case $host_os in
15477		solaris2.[0-5] | solaris2.[0-5].*) ;;
15478		*)
15479		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15480		  ;;
15481	      esac
15482	    fi
15483	    ;;
15484        esac
15485        ;;
15486
15487    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15488      no_undefined_flag_CXX='$wl-z,text'
15489      archive_cmds_need_lc_CXX=no
15490      hardcode_shlibpath_var_CXX=no
15491      runpath_var='LD_RUN_PATH'
15492
15493      case $cc_basename in
15494        CC*)
15495	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15496	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15497	  ;;
15498	*)
15499	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15500	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15501	  ;;
15502      esac
15503      ;;
15504
15505      sysv5* | sco3.2v5* | sco5v6*)
15506	# Note: We CANNOT use -z defs as we might desire, because we do not
15507	# link with -lc, and that would cause any symbols used from libc to
15508	# always be unresolved, which means just about no library would
15509	# ever link correctly.  If we're not using GNU ld we use -z text
15510	# though, which does catch some bad symbols but isn't as heavy-handed
15511	# as -z defs.
15512	no_undefined_flag_CXX='$wl-z,text'
15513	allow_undefined_flag_CXX='$wl-z,nodefs'
15514	archive_cmds_need_lc_CXX=no
15515	hardcode_shlibpath_var_CXX=no
15516	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
15517	hardcode_libdir_separator_CXX=':'
15518	link_all_deplibs_CXX=yes
15519	export_dynamic_flag_spec_CXX='$wl-Bexport'
15520	runpath_var='LD_RUN_PATH'
15521
15522	case $cc_basename in
15523          CC*)
15524	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15525	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15526	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15527              '"$old_archive_cmds_CXX"
15528	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15529              '"$reload_cmds_CXX"
15530	    ;;
15531	  *)
15532	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15533	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15534	    ;;
15535	esac
15536      ;;
15537
15538      tandem*)
15539        case $cc_basename in
15540          NCC*)
15541	    # NonStop-UX NCC 3.20
15542	    # FIXME: insert proper C++ library support
15543	    ld_shlibs_CXX=no
15544	    ;;
15545          *)
15546	    # FIXME: insert proper C++ library support
15547	    ld_shlibs_CXX=no
15548	    ;;
15549        esac
15550        ;;
15551
15552      vxworks*)
15553        # FIXME: insert proper C++ library support
15554        ld_shlibs_CXX=no
15555        ;;
15556
15557      *)
15558        # FIXME: insert proper C++ library support
15559        ld_shlibs_CXX=no
15560        ;;
15561    esac
15562
15563    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15564$as_echo "$ld_shlibs_CXX" >&6; }
15565    test no = "$ld_shlibs_CXX" && can_build_shared=no
15566
15567    GCC_CXX=$GXX
15568    LD_CXX=$LD
15569
15570    ## CAVEAT EMPTOR:
15571    ## There is no encapsulation within the following macros, do not change
15572    ## the running order or otherwise move them around unless you know exactly
15573    ## what you are doing...
15574    # Dependencies to place before and after the object being linked:
15575predep_objects_CXX=
15576postdep_objects_CXX=
15577predeps_CXX=
15578postdeps_CXX=
15579compiler_lib_search_path_CXX=
15580
15581cat > conftest.$ac_ext <<_LT_EOF
15582class Foo
15583{
15584public:
15585  Foo (void) { a = 0; }
15586private:
15587  int a;
15588};
15589_LT_EOF
15590
15591
15592_lt_libdeps_save_CFLAGS=$CFLAGS
15593case "$CC $CFLAGS " in #(
15594*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15595*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15596*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15597esac
15598
15599if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15600  (eval $ac_compile) 2>&5
15601  ac_status=$?
15602  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15603  test $ac_status = 0; }; then
15604  # Parse the compiler output and extract the necessary
15605  # objects, libraries and library flags.
15606
15607  # Sentinel used to keep track of whether or not we are before
15608  # the conftest object file.
15609  pre_test_object_deps_done=no
15610
15611  for p in `eval "$output_verbose_link_cmd"`; do
15612    case $prev$p in
15613
15614    -L* | -R* | -l*)
15615       # Some compilers place space between "-{L,R}" and the path.
15616       # Remove the space.
15617       if test x-L = "$p" ||
15618          test x-R = "$p"; then
15619	 prev=$p
15620	 continue
15621       fi
15622
15623       # Expand the sysroot to ease extracting the directories later.
15624       if test -z "$prev"; then
15625         case $p in
15626         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15627         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15628         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15629         esac
15630       fi
15631       case $p in
15632       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15633       esac
15634       if test no = "$pre_test_object_deps_done"; then
15635	 case $prev in
15636	 -L | -R)
15637	   # Internal compiler library paths should come after those
15638	   # provided the user.  The postdeps already come after the
15639	   # user supplied libs so there is no need to process them.
15640	   if test -z "$compiler_lib_search_path_CXX"; then
15641	     compiler_lib_search_path_CXX=$prev$p
15642	   else
15643	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15644	   fi
15645	   ;;
15646	 # The "-l" case would never come before the object being
15647	 # linked, so don't bother handling this case.
15648	 esac
15649       else
15650	 if test -z "$postdeps_CXX"; then
15651	   postdeps_CXX=$prev$p
15652	 else
15653	   postdeps_CXX="${postdeps_CXX} $prev$p"
15654	 fi
15655       fi
15656       prev=
15657       ;;
15658
15659    *.lto.$objext) ;; # Ignore GCC LTO objects
15660    *.$objext)
15661       # This assumes that the test object file only shows up
15662       # once in the compiler output.
15663       if test "$p" = "conftest.$objext"; then
15664	 pre_test_object_deps_done=yes
15665	 continue
15666       fi
15667
15668       if test no = "$pre_test_object_deps_done"; then
15669	 if test -z "$predep_objects_CXX"; then
15670	   predep_objects_CXX=$p
15671	 else
15672	   predep_objects_CXX="$predep_objects_CXX $p"
15673	 fi
15674       else
15675	 if test -z "$postdep_objects_CXX"; then
15676	   postdep_objects_CXX=$p
15677	 else
15678	   postdep_objects_CXX="$postdep_objects_CXX $p"
15679	 fi
15680       fi
15681       ;;
15682
15683    *) ;; # Ignore the rest.
15684
15685    esac
15686  done
15687
15688  # Clean up.
15689  rm -f a.out a.exe
15690else
15691  echo "libtool.m4: error: problem compiling CXX test program"
15692fi
15693
15694$RM -f confest.$objext
15695CFLAGS=$_lt_libdeps_save_CFLAGS
15696
15697# PORTME: override above test on systems where it is broken
15698case $host_os in
15699interix[3-9]*)
15700  # Interix 3.5 installs completely hosed .la files for C++, so rather than
15701  # hack all around it, let's just trust "g++" to DTRT.
15702  predep_objects_CXX=
15703  postdep_objects_CXX=
15704  postdeps_CXX=
15705  ;;
15706esac
15707
15708
15709case " $postdeps_CXX " in
15710*" -lc "*) archive_cmds_need_lc_CXX=no ;;
15711esac
15712 compiler_lib_search_dirs_CXX=
15713if test -n "${compiler_lib_search_path_CXX}"; then
15714 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15715fi
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747    lt_prog_compiler_wl_CXX=
15748lt_prog_compiler_pic_CXX=
15749lt_prog_compiler_static_CXX=
15750
15751
15752  # C++ specific cases for pic, static, wl, etc.
15753  if test yes = "$GXX"; then
15754    lt_prog_compiler_wl_CXX='-Wl,'
15755    lt_prog_compiler_static_CXX='-static'
15756
15757    case $host_os in
15758    aix*)
15759      # All AIX code is PIC.
15760      if test ia64 = "$host_cpu"; then
15761	# AIX 5 now supports IA64 processor
15762	lt_prog_compiler_static_CXX='-Bstatic'
15763      fi
15764      lt_prog_compiler_pic_CXX='-fPIC'
15765      ;;
15766
15767    amigaos*)
15768      case $host_cpu in
15769      powerpc)
15770            # see comment about AmigaOS4 .so support
15771            lt_prog_compiler_pic_CXX='-fPIC'
15772        ;;
15773      m68k)
15774            # FIXME: we need at least 68020 code to build shared libraries, but
15775            # adding the '-m68020' flag to GCC prevents building anything better,
15776            # like '-m68040'.
15777            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15778        ;;
15779      esac
15780      ;;
15781
15782    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15783      # PIC is the default for these OSes.
15784      ;;
15785    mingw* | cygwin* | os2* | pw32* | cegcc*)
15786      # This hack is so that the source file can tell whether it is being
15787      # built for inclusion in a dll (and should export symbols for example).
15788      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15789      # (--disable-auto-import) libraries
15790      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15791      case $host_os in
15792      os2*)
15793	lt_prog_compiler_static_CXX='$wl-static'
15794	;;
15795      esac
15796      ;;
15797    darwin* | rhapsody*)
15798      # PIC is the default on this platform
15799      # Common symbols not allowed in MH_DYLIB files
15800      lt_prog_compiler_pic_CXX='-fno-common'
15801      ;;
15802    *djgpp*)
15803      # DJGPP does not support shared libraries at all
15804      lt_prog_compiler_pic_CXX=
15805      ;;
15806    haiku*)
15807      # PIC is the default for Haiku.
15808      # The "-static" flag exists, but is broken.
15809      lt_prog_compiler_static_CXX=
15810      ;;
15811    interix[3-9]*)
15812      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15813      # Instead, we relocate shared libraries at runtime.
15814      ;;
15815    sysv4*MP*)
15816      if test -d /usr/nec; then
15817	lt_prog_compiler_pic_CXX=-Kconform_pic
15818      fi
15819      ;;
15820    hpux*)
15821      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15822      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15823      # sets the default TLS model and affects inlining.
15824      case $host_cpu in
15825      hppa*64*)
15826	;;
15827      *)
15828	lt_prog_compiler_pic_CXX='-fPIC'
15829	;;
15830      esac
15831      ;;
15832    *qnx* | *nto*)
15833      # QNX uses GNU C++, but need to define -shared option too, otherwise
15834      # it will coredump.
15835      lt_prog_compiler_pic_CXX='-fPIC -shared'
15836      ;;
15837    *)
15838      lt_prog_compiler_pic_CXX='-fPIC'
15839      ;;
15840    esac
15841  else
15842    case $host_os in
15843      aix[4-9]*)
15844	# All AIX code is PIC.
15845	if test ia64 = "$host_cpu"; then
15846	  # AIX 5 now supports IA64 processor
15847	  lt_prog_compiler_static_CXX='-Bstatic'
15848	else
15849	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15850	fi
15851	;;
15852      chorus*)
15853	case $cc_basename in
15854	cxch68*)
15855	  # Green Hills C++ Compiler
15856	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
15857	  ;;
15858	esac
15859	;;
15860      mingw* | cygwin* | os2* | pw32* | cegcc*)
15861	# This hack is so that the source file can tell whether it is being
15862	# built for inclusion in a dll (and should export symbols for example).
15863	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15864	;;
15865      dgux*)
15866	case $cc_basename in
15867	  ec++*)
15868	    lt_prog_compiler_pic_CXX='-KPIC'
15869	    ;;
15870	  ghcx*)
15871	    # Green Hills C++ Compiler
15872	    lt_prog_compiler_pic_CXX='-pic'
15873	    ;;
15874	  *)
15875	    ;;
15876	esac
15877	;;
15878      freebsd* | dragonfly*)
15879	# FreeBSD uses GNU C++
15880	;;
15881      hpux9* | hpux10* | hpux11*)
15882	case $cc_basename in
15883	  CC*)
15884	    lt_prog_compiler_wl_CXX='-Wl,'
15885	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15886	    if test ia64 != "$host_cpu"; then
15887	      lt_prog_compiler_pic_CXX='+Z'
15888	    fi
15889	    ;;
15890	  aCC*)
15891	    lt_prog_compiler_wl_CXX='-Wl,'
15892	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15893	    case $host_cpu in
15894	    hppa*64*|ia64*)
15895	      # +Z the default
15896	      ;;
15897	    *)
15898	      lt_prog_compiler_pic_CXX='+Z'
15899	      ;;
15900	    esac
15901	    ;;
15902	  *)
15903	    ;;
15904	esac
15905	;;
15906      interix*)
15907	# This is c89, which is MS Visual C++ (no shared libs)
15908	# Anyone wants to do a port?
15909	;;
15910      irix5* | irix6* | nonstopux*)
15911	case $cc_basename in
15912	  CC*)
15913	    lt_prog_compiler_wl_CXX='-Wl,'
15914	    lt_prog_compiler_static_CXX='-non_shared'
15915	    # CC pic flag -KPIC is the default.
15916	    ;;
15917	  *)
15918	    ;;
15919	esac
15920	;;
15921      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15922	case $cc_basename in
15923	  KCC*)
15924	    # KAI C++ Compiler
15925	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15926	    lt_prog_compiler_pic_CXX='-fPIC'
15927	    ;;
15928	  ecpc* )
15929	    # old Intel C++ for x86_64, which still supported -KPIC.
15930	    lt_prog_compiler_wl_CXX='-Wl,'
15931	    lt_prog_compiler_pic_CXX='-KPIC'
15932	    lt_prog_compiler_static_CXX='-static'
15933	    ;;
15934	  icpc* )
15935	    # Intel C++, used to be incompatible with GCC.
15936	    # ICC 10 doesn't accept -KPIC any more.
15937	    lt_prog_compiler_wl_CXX='-Wl,'
15938	    lt_prog_compiler_pic_CXX='-fPIC'
15939	    lt_prog_compiler_static_CXX='-static'
15940	    ;;
15941	  pgCC* | pgcpp*)
15942	    # Portland Group C++ compiler
15943	    lt_prog_compiler_wl_CXX='-Wl,'
15944	    lt_prog_compiler_pic_CXX='-fpic'
15945	    lt_prog_compiler_static_CXX='-Bstatic'
15946	    ;;
15947	  cxx*)
15948	    # Compaq C++
15949	    # Make sure the PIC flag is empty.  It appears that all Alpha
15950	    # Linux and Compaq Tru64 Unix objects are PIC.
15951	    lt_prog_compiler_pic_CXX=
15952	    lt_prog_compiler_static_CXX='-non_shared'
15953	    ;;
15954	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15955	    # IBM XL 8.0, 9.0 on PPC and BlueGene
15956	    lt_prog_compiler_wl_CXX='-Wl,'
15957	    lt_prog_compiler_pic_CXX='-qpic'
15958	    lt_prog_compiler_static_CXX='-qstaticlink'
15959	    ;;
15960	  *)
15961	    case `$CC -V 2>&1 | sed 5q` in
15962	    *Sun\ C*)
15963	      # Sun C++ 5.9
15964	      lt_prog_compiler_pic_CXX='-KPIC'
15965	      lt_prog_compiler_static_CXX='-Bstatic'
15966	      lt_prog_compiler_wl_CXX='-Qoption ld '
15967	      ;;
15968	    esac
15969	    ;;
15970	esac
15971	;;
15972      lynxos*)
15973	;;
15974      m88k*)
15975	;;
15976      mvs*)
15977	case $cc_basename in
15978	  cxx*)
15979	    lt_prog_compiler_pic_CXX='-W c,exportall'
15980	    ;;
15981	  *)
15982	    ;;
15983	esac
15984	;;
15985      netbsd* | netbsdelf*-gnu)
15986	;;
15987      *qnx* | *nto*)
15988        # QNX uses GNU C++, but need to define -shared option too, otherwise
15989        # it will coredump.
15990        lt_prog_compiler_pic_CXX='-fPIC -shared'
15991        ;;
15992      osf3* | osf4* | osf5*)
15993	case $cc_basename in
15994	  KCC*)
15995	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15996	    ;;
15997	  RCC*)
15998	    # Rational C++ 2.4.1
15999	    lt_prog_compiler_pic_CXX='-pic'
16000	    ;;
16001	  cxx*)
16002	    # Digital/Compaq C++
16003	    lt_prog_compiler_wl_CXX='-Wl,'
16004	    # Make sure the PIC flag is empty.  It appears that all Alpha
16005	    # Linux and Compaq Tru64 Unix objects are PIC.
16006	    lt_prog_compiler_pic_CXX=
16007	    lt_prog_compiler_static_CXX='-non_shared'
16008	    ;;
16009	  *)
16010	    ;;
16011	esac
16012	;;
16013      psos*)
16014	;;
16015      solaris*)
16016	case $cc_basename in
16017	  CC* | sunCC*)
16018	    # Sun C++ 4.2, 5.x and Centerline C++
16019	    lt_prog_compiler_pic_CXX='-KPIC'
16020	    lt_prog_compiler_static_CXX='-Bstatic'
16021	    lt_prog_compiler_wl_CXX='-Qoption ld '
16022	    ;;
16023	  gcx*)
16024	    # Green Hills C++ Compiler
16025	    lt_prog_compiler_pic_CXX='-PIC'
16026	    ;;
16027	  *)
16028	    ;;
16029	esac
16030	;;
16031      sunos4*)
16032	case $cc_basename in
16033	  CC*)
16034	    # Sun C++ 4.x
16035	    lt_prog_compiler_pic_CXX='-pic'
16036	    lt_prog_compiler_static_CXX='-Bstatic'
16037	    ;;
16038	  lcc*)
16039	    # Lucid
16040	    lt_prog_compiler_pic_CXX='-pic'
16041	    ;;
16042	  *)
16043	    ;;
16044	esac
16045	;;
16046      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16047	case $cc_basename in
16048	  CC*)
16049	    lt_prog_compiler_wl_CXX='-Wl,'
16050	    lt_prog_compiler_pic_CXX='-KPIC'
16051	    lt_prog_compiler_static_CXX='-Bstatic'
16052	    ;;
16053	esac
16054	;;
16055      tandem*)
16056	case $cc_basename in
16057	  NCC*)
16058	    # NonStop-UX NCC 3.20
16059	    lt_prog_compiler_pic_CXX='-KPIC'
16060	    ;;
16061	  *)
16062	    ;;
16063	esac
16064	;;
16065      vxworks*)
16066	;;
16067      *)
16068	lt_prog_compiler_can_build_shared_CXX=no
16069	;;
16070    esac
16071  fi
16072
16073case $host_os in
16074  # For platforms that do not support PIC, -DPIC is meaningless:
16075  *djgpp*)
16076    lt_prog_compiler_pic_CXX=
16077    ;;
16078  *)
16079    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16080    ;;
16081esac
16082
16083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16084$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16085if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16086  $as_echo_n "(cached) " >&6
16087else
16088  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16089fi
16090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16091$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16092lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16093
16094#
16095# Check to make sure the PIC flag actually works.
16096#
16097if test -n "$lt_prog_compiler_pic_CXX"; then
16098  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16099$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16100if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16101  $as_echo_n "(cached) " >&6
16102else
16103  lt_cv_prog_compiler_pic_works_CXX=no
16104   ac_outfile=conftest.$ac_objext
16105   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16106   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
16107   # Insert the option either (1) after the last *FLAGS variable, or
16108   # (2) before a word containing "conftest.", or (3) at the end.
16109   # Note that $ac_compile itself does not contain backslashes and begins
16110   # with a dollar sign (not a hyphen), so the echo should work correctly.
16111   # The option is referenced via a variable to avoid confusing sed.
16112   lt_compile=`echo "$ac_compile" | $SED \
16113   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16114   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16115   -e 's:$: $lt_compiler_flag:'`
16116   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16117   (eval "$lt_compile" 2>conftest.err)
16118   ac_status=$?
16119   cat conftest.err >&5
16120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121   if (exit $ac_status) && test -s "$ac_outfile"; then
16122     # The compiler can only warn and ignore the option if not recognized
16123     # So say no if there are warnings other than the usual output.
16124     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16125     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16126     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16127       lt_cv_prog_compiler_pic_works_CXX=yes
16128     fi
16129   fi
16130   $RM conftest*
16131
16132fi
16133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16134$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16135
16136if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16137    case $lt_prog_compiler_pic_CXX in
16138     "" | " "*) ;;
16139     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16140     esac
16141else
16142    lt_prog_compiler_pic_CXX=
16143     lt_prog_compiler_can_build_shared_CXX=no
16144fi
16145
16146fi
16147
16148
16149
16150
16151
16152#
16153# Check to make sure the static flag actually works.
16154#
16155wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16157$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16158if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16159  $as_echo_n "(cached) " >&6
16160else
16161  lt_cv_prog_compiler_static_works_CXX=no
16162   save_LDFLAGS=$LDFLAGS
16163   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16164   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16165   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16166     # The linker can only warn and ignore the option if not recognized
16167     # So say no if there are warnings
16168     if test -s conftest.err; then
16169       # Append any errors to the config.log.
16170       cat conftest.err 1>&5
16171       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16172       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16173       if diff conftest.exp conftest.er2 >/dev/null; then
16174         lt_cv_prog_compiler_static_works_CXX=yes
16175       fi
16176     else
16177       lt_cv_prog_compiler_static_works_CXX=yes
16178     fi
16179   fi
16180   $RM -r conftest*
16181   LDFLAGS=$save_LDFLAGS
16182
16183fi
16184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16185$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16186
16187if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16188    :
16189else
16190    lt_prog_compiler_static_CXX=
16191fi
16192
16193
16194
16195
16196    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16197$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16198if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16199  $as_echo_n "(cached) " >&6
16200else
16201  lt_cv_prog_compiler_c_o_CXX=no
16202   $RM -r conftest 2>/dev/null
16203   mkdir conftest
16204   cd conftest
16205   mkdir out
16206   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16207
16208   lt_compiler_flag="-o out/conftest2.$ac_objext"
16209   # Insert the option either (1) after the last *FLAGS variable, or
16210   # (2) before a word containing "conftest.", or (3) at the end.
16211   # Note that $ac_compile itself does not contain backslashes and begins
16212   # with a dollar sign (not a hyphen), so the echo should work correctly.
16213   lt_compile=`echo "$ac_compile" | $SED \
16214   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16215   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16216   -e 's:$: $lt_compiler_flag:'`
16217   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16218   (eval "$lt_compile" 2>out/conftest.err)
16219   ac_status=$?
16220   cat out/conftest.err >&5
16221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16223   then
16224     # The compiler can only warn and ignore the option if not recognized
16225     # So say no if there are warnings
16226     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16227     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16228     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16229       lt_cv_prog_compiler_c_o_CXX=yes
16230     fi
16231   fi
16232   chmod u+w . 2>&5
16233   $RM conftest*
16234   # SGI C++ compiler will create directory out/ii_files/ for
16235   # template instantiation
16236   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16237   $RM out/* && rmdir out
16238   cd ..
16239   $RM -r conftest
16240   $RM conftest*
16241
16242fi
16243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16244$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16245
16246
16247
16248    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16249$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16250if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16251  $as_echo_n "(cached) " >&6
16252else
16253  lt_cv_prog_compiler_c_o_CXX=no
16254   $RM -r conftest 2>/dev/null
16255   mkdir conftest
16256   cd conftest
16257   mkdir out
16258   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16259
16260   lt_compiler_flag="-o out/conftest2.$ac_objext"
16261   # Insert the option either (1) after the last *FLAGS variable, or
16262   # (2) before a word containing "conftest.", or (3) at the end.
16263   # Note that $ac_compile itself does not contain backslashes and begins
16264   # with a dollar sign (not a hyphen), so the echo should work correctly.
16265   lt_compile=`echo "$ac_compile" | $SED \
16266   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16267   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16268   -e 's:$: $lt_compiler_flag:'`
16269   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16270   (eval "$lt_compile" 2>out/conftest.err)
16271   ac_status=$?
16272   cat out/conftest.err >&5
16273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16275   then
16276     # The compiler can only warn and ignore the option if not recognized
16277     # So say no if there are warnings
16278     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16279     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16280     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16281       lt_cv_prog_compiler_c_o_CXX=yes
16282     fi
16283   fi
16284   chmod u+w . 2>&5
16285   $RM conftest*
16286   # SGI C++ compiler will create directory out/ii_files/ for
16287   # template instantiation
16288   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16289   $RM out/* && rmdir out
16290   cd ..
16291   $RM -r conftest
16292   $RM conftest*
16293
16294fi
16295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16296$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16297
16298
16299
16300
16301hard_links=nottested
16302if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16303  # do not overwrite the value of need_locks provided by the user
16304  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16305$as_echo_n "checking if we can lock with hard links... " >&6; }
16306  hard_links=yes
16307  $RM conftest*
16308  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16309  touch conftest.a
16310  ln conftest.a conftest.b 2>&5 || hard_links=no
16311  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16313$as_echo "$hard_links" >&6; }
16314  if test no = "$hard_links"; then
16315    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16316$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16317    need_locks=warn
16318  fi
16319else
16320  need_locks=no
16321fi
16322
16323
16324
16325    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16326$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16327
16328  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16329  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16330  case $host_os in
16331  aix[4-9]*)
16332    # If we're using GNU nm, then we don't want the "-C" option.
16333    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16334    # Without the "-l" option, or with the "-B" option, AIX nm treats
16335    # weak defined symbols like other global defined symbols, whereas
16336    # GNU nm marks them as "W".
16337    # While the 'weak' keyword is ignored in the Export File, we need
16338    # it in the Import File for the 'aix-soname' feature, so we have
16339    # to replace the "-B" option with "-P" for AIX nm.
16340    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16341      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
16342    else
16343      export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
16344    fi
16345    ;;
16346  pw32*)
16347    export_symbols_cmds_CXX=$ltdll_cmds
16348    ;;
16349  cygwin* | mingw* | cegcc*)
16350    case $cc_basename in
16351    cl*)
16352      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16353      ;;
16354    *)
16355      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
16356      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16357      ;;
16358    esac
16359    ;;
16360  linux* | k*bsd*-gnu | gnu*)
16361    link_all_deplibs_CXX=no
16362    ;;
16363  *)
16364    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16365    ;;
16366  esac
16367
16368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16369$as_echo "$ld_shlibs_CXX" >&6; }
16370test no = "$ld_shlibs_CXX" && can_build_shared=no
16371
16372with_gnu_ld_CXX=$with_gnu_ld
16373
16374
16375
16376
16377
16378
16379#
16380# Do we need to explicitly link libc?
16381#
16382case "x$archive_cmds_need_lc_CXX" in
16383x|xyes)
16384  # Assume -lc should be added
16385  archive_cmds_need_lc_CXX=yes
16386
16387  if test yes,yes = "$GCC,$enable_shared"; then
16388    case $archive_cmds_CXX in
16389    *'~'*)
16390      # FIXME: we may have to deal with multi-command sequences.
16391      ;;
16392    '$CC '*)
16393      # Test whether the compiler implicitly links with -lc since on some
16394      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16395      # to ld, don't add -lc before -lgcc.
16396      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16397$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16398if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16399  $as_echo_n "(cached) " >&6
16400else
16401  $RM conftest*
16402	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16403
16404	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16405  (eval $ac_compile) 2>&5
16406  ac_status=$?
16407  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16408  test $ac_status = 0; } 2>conftest.err; then
16409	  soname=conftest
16410	  lib=conftest
16411	  libobjs=conftest.$ac_objext
16412	  deplibs=
16413	  wl=$lt_prog_compiler_wl_CXX
16414	  pic_flag=$lt_prog_compiler_pic_CXX
16415	  compiler_flags=-v
16416	  linker_flags=-v
16417	  verstring=
16418	  output_objdir=.
16419	  libname=conftest
16420	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16421	  allow_undefined_flag_CXX=
16422	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16423  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16424  ac_status=$?
16425  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16426  test $ac_status = 0; }
16427	  then
16428	    lt_cv_archive_cmds_need_lc_CXX=no
16429	  else
16430	    lt_cv_archive_cmds_need_lc_CXX=yes
16431	  fi
16432	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16433	else
16434	  cat conftest.err 1>&5
16435	fi
16436	$RM conftest*
16437
16438fi
16439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16440$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16441      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16442      ;;
16443    esac
16444  fi
16445  ;;
16446esac
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16510$as_echo_n "checking dynamic linker characteristics... " >&6; }
16511
16512library_names_spec=
16513libname_spec='lib$name'
16514soname_spec=
16515shrext_cmds=.so
16516postinstall_cmds=
16517postuninstall_cmds=
16518finish_cmds=
16519finish_eval=
16520shlibpath_var=
16521shlibpath_overrides_runpath=unknown
16522version_type=none
16523dynamic_linker="$host_os ld.so"
16524sys_lib_dlsearch_path_spec="/lib /usr/lib"
16525need_lib_prefix=unknown
16526hardcode_into_libs=no
16527
16528# when you set need_version to no, make sure it does not cause -set_version
16529# flags to be left without arguments
16530need_version=unknown
16531
16532
16533
16534case $host_os in
16535aix3*)
16536  version_type=linux # correct to gnu/linux during the next big refactor
16537  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16538  shlibpath_var=LIBPATH
16539
16540  # AIX 3 has no versioning support, so we append a major version to the name.
16541  soname_spec='$libname$release$shared_ext$major'
16542  ;;
16543
16544aix[4-9]*)
16545  version_type=linux # correct to gnu/linux during the next big refactor
16546  need_lib_prefix=no
16547  need_version=no
16548  hardcode_into_libs=yes
16549  if test ia64 = "$host_cpu"; then
16550    # AIX 5 supports IA64
16551    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16552    shlibpath_var=LD_LIBRARY_PATH
16553  else
16554    # With GCC up to 2.95.x, collect2 would create an import file
16555    # for dependence libraries.  The import file would start with
16556    # the line '#! .'.  This would cause the generated library to
16557    # depend on '.', always an invalid library.  This was fixed in
16558    # development snapshots of GCC prior to 3.0.
16559    case $host_os in
16560      aix4 | aix4.[01] | aix4.[01].*)
16561      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16562	   echo ' yes '
16563	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16564	:
16565      else
16566	can_build_shared=no
16567      fi
16568      ;;
16569    esac
16570    # Using Import Files as archive members, it is possible to support
16571    # filename-based versioning of shared library archives on AIX. While
16572    # this would work for both with and without runtime linking, it will
16573    # prevent static linking of such archives. So we do filename-based
16574    # shared library versioning with .so extension only, which is used
16575    # when both runtime linking and shared linking is enabled.
16576    # Unfortunately, runtime linking may impact performance, so we do
16577    # not want this to be the default eventually. Also, we use the
16578    # versioned .so libs for executables only if there is the -brtl
16579    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16580    # To allow for filename-based versioning support, we need to create
16581    # libNAME.so.V as an archive file, containing:
16582    # *) an Import File, referring to the versioned filename of the
16583    #    archive as well as the shared archive member, telling the
16584    #    bitwidth (32 or 64) of that shared object, and providing the
16585    #    list of exported symbols of that shared object, eventually
16586    #    decorated with the 'weak' keyword
16587    # *) the shared object with the F_LOADONLY flag set, to really avoid
16588    #    it being seen by the linker.
16589    # At run time we better use the real file rather than another symlink,
16590    # but for link time we create the symlink libNAME.so -> libNAME.so.V
16591
16592    case $with_aix_soname,$aix_use_runtimelinking in
16593    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16594    # soname into executable. Probably we can add versioning support to
16595    # collect2, so additional links can be useful in future.
16596    aix,yes) # traditional libtool
16597      dynamic_linker='AIX unversionable lib.so'
16598      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16599      # instead of lib<name>.a to let people know that these are not
16600      # typical AIX shared libraries.
16601      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16602      ;;
16603    aix,no) # traditional AIX only
16604      dynamic_linker='AIX lib.a(lib.so.V)'
16605      # We preserve .a as extension for shared libraries through AIX4.2
16606      # and later when we are not doing run time linking.
16607      library_names_spec='$libname$release.a $libname.a'
16608      soname_spec='$libname$release$shared_ext$major'
16609      ;;
16610    svr4,*) # full svr4 only
16611      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16612      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16613      # We do not specify a path in Import Files, so LIBPATH fires.
16614      shlibpath_overrides_runpath=yes
16615      ;;
16616    *,yes) # both, prefer svr4
16617      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16618      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16619      # unpreferred sharedlib libNAME.a needs extra handling
16620      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
16621      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
16622      # We do not specify a path in Import Files, so LIBPATH fires.
16623      shlibpath_overrides_runpath=yes
16624      ;;
16625    *,no) # both, prefer aix
16626      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16627      library_names_spec='$libname$release.a $libname.a'
16628      soname_spec='$libname$release$shared_ext$major'
16629      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16630      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
16631      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
16632      ;;
16633    esac
16634    shlibpath_var=LIBPATH
16635  fi
16636  ;;
16637
16638amigaos*)
16639  case $host_cpu in
16640  powerpc)
16641    # Since July 2007 AmigaOS4 officially supports .so libraries.
16642    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16643    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16644    ;;
16645  m68k)
16646    library_names_spec='$libname.ixlibrary $libname.a'
16647    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16648    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16649    ;;
16650  esac
16651  ;;
16652
16653beos*)
16654  library_names_spec='$libname$shared_ext'
16655  dynamic_linker="$host_os ld.so"
16656  shlibpath_var=LIBRARY_PATH
16657  ;;
16658
16659bsdi[45]*)
16660  version_type=linux # correct to gnu/linux during the next big refactor
16661  need_version=no
16662  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16663  soname_spec='$libname$release$shared_ext$major'
16664  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16665  shlibpath_var=LD_LIBRARY_PATH
16666  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16667  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16668  # the default ld.so.conf also contains /usr/contrib/lib and
16669  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16670  # libtool to hard-code these into programs
16671  ;;
16672
16673cygwin* | mingw* | pw32* | cegcc*)
16674  version_type=windows
16675  shrext_cmds=.dll
16676  need_version=no
16677  need_lib_prefix=no
16678
16679  case $GCC,$cc_basename in
16680  yes,*)
16681    # gcc
16682    library_names_spec='$libname.dll.a'
16683    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16684    postinstall_cmds='base_file=`basename \$file`~
16685      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16686      dldir=$destdir/`dirname \$dlpath`~
16687      test -d \$dldir || mkdir -p \$dldir~
16688      $install_prog $dir/$dlname \$dldir/$dlname~
16689      chmod a+x \$dldir/$dlname~
16690      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16691        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16692      fi'
16693    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16694      dlpath=$dir/\$dldll~
16695       $RM \$dlpath'
16696    shlibpath_overrides_runpath=yes
16697
16698    case $host_os in
16699    cygwin*)
16700      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16701      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16702
16703      ;;
16704    mingw* | cegcc*)
16705      # MinGW DLLs use traditional 'lib' prefix
16706      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16707      ;;
16708    pw32*)
16709      # pw32 DLLs use 'pw' prefix rather than 'lib'
16710      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16711      ;;
16712    esac
16713    dynamic_linker='Win32 ld.exe'
16714    ;;
16715
16716  *,cl*)
16717    # Native MSVC
16718    libname_spec='$name'
16719    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16720    library_names_spec='$libname.dll.lib'
16721
16722    case $build_os in
16723    mingw*)
16724      sys_lib_search_path_spec=
16725      lt_save_ifs=$IFS
16726      IFS=';'
16727      for lt_path in $LIB
16728      do
16729        IFS=$lt_save_ifs
16730        # Let DOS variable expansion print the short 8.3 style file name.
16731        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16732        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16733      done
16734      IFS=$lt_save_ifs
16735      # Convert to MSYS style.
16736      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16737      ;;
16738    cygwin*)
16739      # Convert to unix form, then to dos form, then back to unix form
16740      # but this time dos style (no spaces!) so that the unix form looks
16741      # like /cygdrive/c/PROGRA~1:/cygdr...
16742      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16743      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16744      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16745      ;;
16746    *)
16747      sys_lib_search_path_spec=$LIB
16748      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16749        # It is most probably a Windows format PATH.
16750        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16751      else
16752        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16753      fi
16754      # FIXME: find the short name or the path components, as spaces are
16755      # common. (e.g. "Program Files" -> "PROGRA~1")
16756      ;;
16757    esac
16758
16759    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16760    postinstall_cmds='base_file=`basename \$file`~
16761      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16762      dldir=$destdir/`dirname \$dlpath`~
16763      test -d \$dldir || mkdir -p \$dldir~
16764      $install_prog $dir/$dlname \$dldir/$dlname'
16765    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16766      dlpath=$dir/\$dldll~
16767       $RM \$dlpath'
16768    shlibpath_overrides_runpath=yes
16769    dynamic_linker='Win32 link.exe'
16770    ;;
16771
16772  *)
16773    # Assume MSVC wrapper
16774    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16775    dynamic_linker='Win32 ld.exe'
16776    ;;
16777  esac
16778  # FIXME: first we should search . and the directory the executable is in
16779  shlibpath_var=PATH
16780  ;;
16781
16782darwin* | rhapsody*)
16783  dynamic_linker="$host_os dyld"
16784  version_type=darwin
16785  need_lib_prefix=no
16786  need_version=no
16787  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16788  soname_spec='$libname$release$major$shared_ext'
16789  shlibpath_overrides_runpath=yes
16790  shlibpath_var=DYLD_LIBRARY_PATH
16791  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16792
16793  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16794  ;;
16795
16796dgux*)
16797  version_type=linux # correct to gnu/linux during the next big refactor
16798  need_lib_prefix=no
16799  need_version=no
16800  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16801  soname_spec='$libname$release$shared_ext$major'
16802  shlibpath_var=LD_LIBRARY_PATH
16803  ;;
16804
16805freebsd* | dragonfly*)
16806  # DragonFly does not have aout.  When/if they implement a new
16807  # versioning mechanism, adjust this.
16808  if test -x /usr/bin/objformat; then
16809    objformat=`/usr/bin/objformat`
16810  else
16811    case $host_os in
16812    freebsd[23].*) objformat=aout ;;
16813    *) objformat=elf ;;
16814    esac
16815  fi
16816  version_type=freebsd-$objformat
16817  case $version_type in
16818    freebsd-elf*)
16819      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16820      soname_spec='$libname$release$shared_ext$major'
16821      need_version=no
16822      need_lib_prefix=no
16823      ;;
16824    freebsd-*)
16825      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16826      need_version=yes
16827      ;;
16828  esac
16829  shlibpath_var=LD_LIBRARY_PATH
16830  case $host_os in
16831  freebsd2.*)
16832    shlibpath_overrides_runpath=yes
16833    ;;
16834  freebsd3.[01]* | freebsdelf3.[01]*)
16835    shlibpath_overrides_runpath=yes
16836    hardcode_into_libs=yes
16837    ;;
16838  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16839  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16840    shlibpath_overrides_runpath=no
16841    hardcode_into_libs=yes
16842    ;;
16843  *) # from 4.6 on, and DragonFly
16844    shlibpath_overrides_runpath=yes
16845    hardcode_into_libs=yes
16846    ;;
16847  esac
16848  ;;
16849
16850haiku*)
16851  version_type=linux # correct to gnu/linux during the next big refactor
16852  need_lib_prefix=no
16853  need_version=no
16854  dynamic_linker="$host_os runtime_loader"
16855  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16856  soname_spec='$libname$release$shared_ext$major'
16857  shlibpath_var=LIBRARY_PATH
16858  shlibpath_overrides_runpath=no
16859  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16860  hardcode_into_libs=yes
16861  ;;
16862
16863hpux9* | hpux10* | hpux11*)
16864  # Give a soname corresponding to the major version so that dld.sl refuses to
16865  # link against other versions.
16866  version_type=sunos
16867  need_lib_prefix=no
16868  need_version=no
16869  case $host_cpu in
16870  ia64*)
16871    shrext_cmds='.so'
16872    hardcode_into_libs=yes
16873    dynamic_linker="$host_os dld.so"
16874    shlibpath_var=LD_LIBRARY_PATH
16875    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16876    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16877    soname_spec='$libname$release$shared_ext$major'
16878    if test 32 = "$HPUX_IA64_MODE"; then
16879      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16880      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16881    else
16882      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16883      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16884    fi
16885    ;;
16886  hppa*64*)
16887    shrext_cmds='.sl'
16888    hardcode_into_libs=yes
16889    dynamic_linker="$host_os dld.sl"
16890    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16891    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16892    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16893    soname_spec='$libname$release$shared_ext$major'
16894    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16895    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16896    ;;
16897  *)
16898    shrext_cmds='.sl'
16899    dynamic_linker="$host_os dld.sl"
16900    shlibpath_var=SHLIB_PATH
16901    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16902    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16903    soname_spec='$libname$release$shared_ext$major'
16904    ;;
16905  esac
16906  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16907  postinstall_cmds='chmod 555 $lib'
16908  # or fails outright, so override atomically:
16909  install_override_mode=555
16910  ;;
16911
16912interix[3-9]*)
16913  version_type=linux # correct to gnu/linux during the next big refactor
16914  need_lib_prefix=no
16915  need_version=no
16916  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16917  soname_spec='$libname$release$shared_ext$major'
16918  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16919  shlibpath_var=LD_LIBRARY_PATH
16920  shlibpath_overrides_runpath=no
16921  hardcode_into_libs=yes
16922  ;;
16923
16924irix5* | irix6* | nonstopux*)
16925  case $host_os in
16926    nonstopux*) version_type=nonstopux ;;
16927    *)
16928	if test yes = "$lt_cv_prog_gnu_ld"; then
16929		version_type=linux # correct to gnu/linux during the next big refactor
16930	else
16931		version_type=irix
16932	fi ;;
16933  esac
16934  need_lib_prefix=no
16935  need_version=no
16936  soname_spec='$libname$release$shared_ext$major'
16937  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16938  case $host_os in
16939  irix5* | nonstopux*)
16940    libsuff= shlibsuff=
16941    ;;
16942  *)
16943    case $LD in # libtool.m4 will add one of these switches to LD
16944    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16945      libsuff= shlibsuff= libmagic=32-bit;;
16946    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16947      libsuff=32 shlibsuff=N32 libmagic=N32;;
16948    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16949      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16950    *) libsuff= shlibsuff= libmagic=never-match;;
16951    esac
16952    ;;
16953  esac
16954  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16955  shlibpath_overrides_runpath=no
16956  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16957  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16958  hardcode_into_libs=yes
16959  ;;
16960
16961# No shared lib support for Linux oldld, aout, or coff.
16962linux*oldld* | linux*aout* | linux*coff*)
16963  dynamic_linker=no
16964  ;;
16965
16966linux*android*)
16967  version_type=none # Android doesn't support versioned libraries.
16968  need_lib_prefix=no
16969  need_version=no
16970  library_names_spec='$libname$release$shared_ext'
16971  soname_spec='$libname$release$shared_ext'
16972  finish_cmds=
16973  shlibpath_var=LD_LIBRARY_PATH
16974  shlibpath_overrides_runpath=yes
16975
16976  # This implies no fast_install, which is unacceptable.
16977  # Some rework will be needed to allow for fast_install
16978  # before this can be enabled.
16979  hardcode_into_libs=yes
16980
16981  dynamic_linker='Android linker'
16982  # Don't embed -rpath directories since the linker doesn't support them.
16983  hardcode_libdir_flag_spec_CXX='-L$libdir'
16984  ;;
16985
16986# This must be glibc/ELF.
16987linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16988  version_type=linux # correct to gnu/linux during the next big refactor
16989  need_lib_prefix=no
16990  need_version=no
16991  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16992  soname_spec='$libname$release$shared_ext$major'
16993  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16994  shlibpath_var=LD_LIBRARY_PATH
16995  shlibpath_overrides_runpath=no
16996
16997  # Some binutils ld are patched to set DT_RUNPATH
16998  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16999  $as_echo_n "(cached) " >&6
17000else
17001  lt_cv_shlibpath_overrides_runpath=no
17002    save_LDFLAGS=$LDFLAGS
17003    save_libdir=$libdir
17004    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17005	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17006    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17007/* end confdefs.h.  */
17008
17009int
17010main ()
17011{
17012
17013  ;
17014  return 0;
17015}
17016_ACEOF
17017if ac_fn_cxx_try_link "$LINENO"; then :
17018  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17019  lt_cv_shlibpath_overrides_runpath=yes
17020fi
17021fi
17022rm -f core conftest.err conftest.$ac_objext \
17023    conftest$ac_exeext conftest.$ac_ext
17024    LDFLAGS=$save_LDFLAGS
17025    libdir=$save_libdir
17026
17027fi
17028
17029  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17030
17031  # This implies no fast_install, which is unacceptable.
17032  # Some rework will be needed to allow for fast_install
17033  # before this can be enabled.
17034  hardcode_into_libs=yes
17035
17036  # Ideally, we could use ldconfig to report *all* directores which are
17037  # searched for libraries, however this is still not possible.  Aside from not
17038  # being certain /sbin/ldconfig is available, command
17039  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17040  # even though it is searched at run-time.  Try to do the best guess by
17041  # appending ld.so.conf contents (and includes) to the search path.
17042  if test -f /etc/ld.so.conf; then
17043    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
17044    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17045  fi
17046
17047  # We used to test for /lib/ld.so.1 and disable shared libraries on
17048  # powerpc, because MkLinux only supported shared libraries with the
17049  # GNU dynamic linker.  Since this was broken with cross compilers,
17050  # most powerpc-linux boxes support dynamic linking these days and
17051  # people can always --disable-shared, the test was removed, and we
17052  # assume the GNU/Linux dynamic linker is in use.
17053  dynamic_linker='GNU/Linux ld.so'
17054  ;;
17055
17056netbsdelf*-gnu)
17057  version_type=linux
17058  need_lib_prefix=no
17059  need_version=no
17060  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17061  soname_spec='${libname}${release}${shared_ext}$major'
17062  shlibpath_var=LD_LIBRARY_PATH
17063  shlibpath_overrides_runpath=no
17064  hardcode_into_libs=yes
17065  dynamic_linker='NetBSD ld.elf_so'
17066  ;;
17067
17068netbsd*)
17069  version_type=sunos
17070  need_lib_prefix=no
17071  need_version=no
17072  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17073    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17074    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17075    dynamic_linker='NetBSD (a.out) ld.so'
17076  else
17077    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17078    soname_spec='$libname$release$shared_ext$major'
17079    dynamic_linker='NetBSD ld.elf_so'
17080  fi
17081  shlibpath_var=LD_LIBRARY_PATH
17082  shlibpath_overrides_runpath=yes
17083  hardcode_into_libs=yes
17084  ;;
17085
17086newsos6)
17087  version_type=linux # correct to gnu/linux during the next big refactor
17088  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17089  shlibpath_var=LD_LIBRARY_PATH
17090  shlibpath_overrides_runpath=yes
17091  ;;
17092
17093*nto* | *qnx*)
17094  version_type=qnx
17095  need_lib_prefix=no
17096  need_version=no
17097  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17098  soname_spec='$libname$release$shared_ext$major'
17099  shlibpath_var=LD_LIBRARY_PATH
17100  shlibpath_overrides_runpath=no
17101  hardcode_into_libs=yes
17102  dynamic_linker='ldqnx.so'
17103  ;;
17104
17105openbsd* | bitrig*)
17106  version_type=sunos
17107  sys_lib_dlsearch_path_spec=/usr/lib
17108  need_lib_prefix=no
17109  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17110    need_version=no
17111  else
17112    need_version=yes
17113  fi
17114  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17115  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17116  shlibpath_var=LD_LIBRARY_PATH
17117  shlibpath_overrides_runpath=yes
17118  ;;
17119
17120os2*)
17121  libname_spec='$name'
17122  version_type=windows
17123  shrext_cmds=.dll
17124  need_version=no
17125  need_lib_prefix=no
17126  # OS/2 can only load a DLL with a base name of 8 characters or less.
17127  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17128    v=$($ECHO $release$versuffix | tr -d .-);
17129    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17130    $ECHO $n$v`$shared_ext'
17131  library_names_spec='${libname}_dll.$libext'
17132  dynamic_linker='OS/2 ld.exe'
17133  shlibpath_var=BEGINLIBPATH
17134  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17135  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17136  postinstall_cmds='base_file=`basename \$file`~
17137    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17138    dldir=$destdir/`dirname \$dlpath`~
17139    test -d \$dldir || mkdir -p \$dldir~
17140    $install_prog $dir/$dlname \$dldir/$dlname~
17141    chmod a+x \$dldir/$dlname~
17142    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17143      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17144    fi'
17145  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17146    dlpath=$dir/\$dldll~
17147    $RM \$dlpath'
17148  ;;
17149
17150osf3* | osf4* | osf5*)
17151  version_type=osf
17152  need_lib_prefix=no
17153  need_version=no
17154  soname_spec='$libname$release$shared_ext$major'
17155  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17156  shlibpath_var=LD_LIBRARY_PATH
17157  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17158  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17159  ;;
17160
17161rdos*)
17162  dynamic_linker=no
17163  ;;
17164
17165solaris*)
17166  version_type=linux # correct to gnu/linux during the next big refactor
17167  need_lib_prefix=no
17168  need_version=no
17169  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17170  soname_spec='$libname$release$shared_ext$major'
17171  shlibpath_var=LD_LIBRARY_PATH
17172  shlibpath_overrides_runpath=yes
17173  hardcode_into_libs=yes
17174  # ldd complains unless libraries are executable
17175  postinstall_cmds='chmod +x $lib'
17176  ;;
17177
17178sunos4*)
17179  version_type=sunos
17180  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17181  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17182  shlibpath_var=LD_LIBRARY_PATH
17183  shlibpath_overrides_runpath=yes
17184  if test yes = "$with_gnu_ld"; then
17185    need_lib_prefix=no
17186  fi
17187  need_version=yes
17188  ;;
17189
17190sysv4 | sysv4.3*)
17191  version_type=linux # correct to gnu/linux during the next big refactor
17192  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17193  soname_spec='$libname$release$shared_ext$major'
17194  shlibpath_var=LD_LIBRARY_PATH
17195  case $host_vendor in
17196    sni)
17197      shlibpath_overrides_runpath=no
17198      need_lib_prefix=no
17199      runpath_var=LD_RUN_PATH
17200      ;;
17201    siemens)
17202      need_lib_prefix=no
17203      ;;
17204    motorola)
17205      need_lib_prefix=no
17206      need_version=no
17207      shlibpath_overrides_runpath=no
17208      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17209      ;;
17210  esac
17211  ;;
17212
17213sysv4*MP*)
17214  if test -d /usr/nec; then
17215    version_type=linux # correct to gnu/linux during the next big refactor
17216    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17217    soname_spec='$libname$shared_ext.$major'
17218    shlibpath_var=LD_LIBRARY_PATH
17219  fi
17220  ;;
17221
17222sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17223  version_type=sco
17224  need_lib_prefix=no
17225  need_version=no
17226  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17227  soname_spec='$libname$release$shared_ext$major'
17228  shlibpath_var=LD_LIBRARY_PATH
17229  shlibpath_overrides_runpath=yes
17230  hardcode_into_libs=yes
17231  if test yes = "$with_gnu_ld"; then
17232    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17233  else
17234    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17235    case $host_os in
17236      sco3.2v5*)
17237        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17238	;;
17239    esac
17240  fi
17241  sys_lib_dlsearch_path_spec='/usr/lib'
17242  ;;
17243
17244tpf*)
17245  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17246  version_type=linux # correct to gnu/linux during the next big refactor
17247  need_lib_prefix=no
17248  need_version=no
17249  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17250  shlibpath_var=LD_LIBRARY_PATH
17251  shlibpath_overrides_runpath=no
17252  hardcode_into_libs=yes
17253  ;;
17254
17255uts4*)
17256  version_type=linux # correct to gnu/linux during the next big refactor
17257  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17258  soname_spec='$libname$release$shared_ext$major'
17259  shlibpath_var=LD_LIBRARY_PATH
17260  ;;
17261
17262*)
17263  dynamic_linker=no
17264  ;;
17265esac
17266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17267$as_echo "$dynamic_linker" >&6; }
17268test no = "$dynamic_linker" && can_build_shared=no
17269
17270variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17271if test yes = "$GCC"; then
17272  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17273fi
17274
17275if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17276  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17277fi
17278
17279if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17280  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17281fi
17282
17283# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17284configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17285
17286# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17287func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17288
17289# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17290configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17332$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17333hardcode_action_CXX=
17334if test -n "$hardcode_libdir_flag_spec_CXX" ||
17335   test -n "$runpath_var_CXX" ||
17336   test yes = "$hardcode_automatic_CXX"; then
17337
17338  # We can hardcode non-existent directories.
17339  if test no != "$hardcode_direct_CXX" &&
17340     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17341     # have to relink, otherwise we might link with an installed library
17342     # when we should be linking with a yet-to-be-installed one
17343     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
17344     test no != "$hardcode_minus_L_CXX"; then
17345    # Linking always hardcodes the temporary library directory.
17346    hardcode_action_CXX=relink
17347  else
17348    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17349    hardcode_action_CXX=immediate
17350  fi
17351else
17352  # We cannot hardcode anything, or else we can only hardcode existing
17353  # directories.
17354  hardcode_action_CXX=unsupported
17355fi
17356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17357$as_echo "$hardcode_action_CXX" >&6; }
17358
17359if test relink = "$hardcode_action_CXX" ||
17360   test yes = "$inherit_rpath_CXX"; then
17361  # Fast installation is not supported
17362  enable_fast_install=no
17363elif test yes = "$shlibpath_overrides_runpath" ||
17364     test no = "$enable_shared"; then
17365  # Fast installation is not necessary
17366  enable_fast_install=needless
17367fi
17368
17369
17370
17371
17372
17373
17374
17375  fi # test -n "$compiler"
17376
17377  CC=$lt_save_CC
17378  CFLAGS=$lt_save_CFLAGS
17379  LDCXX=$LD
17380  LD=$lt_save_LD
17381  GCC=$lt_save_GCC
17382  with_gnu_ld=$lt_save_with_gnu_ld
17383  lt_cv_path_LDCXX=$lt_cv_path_LD
17384  lt_cv_path_LD=$lt_save_path_LD
17385  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17386  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17387fi # test yes != "$_lt_caught_CXX_error"
17388
17389ac_ext=c
17390ac_cpp='$CPP $CPPFLAGS'
17391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17393ac_compiler_gnu=$ac_cv_c_compiler_gnu
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409        ac_config_commands="$ac_config_commands libtool"
17410
17411
17412
17413
17414# Only expand once:
17415
17416
17417
17418
17419
17420  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17421$as_echo_n "checking whether NLS is requested... " >&6; }
17422    # Check whether --enable-nls was given.
17423if test "${enable_nls+set}" = set; then :
17424  enableval=$enable_nls; USE_NLS=$enableval
17425else
17426  USE_NLS=yes
17427fi
17428
17429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17430$as_echo "$USE_NLS" >&6; }
17431
17432
17433
17434
17435      GETTEXT_MACRO_VERSION=0.19
17436
17437
17438
17439
17440# Prepare PATH_SEPARATOR.
17441# The user is always right.
17442if test "${PATH_SEPARATOR+set}" != set; then
17443  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
17444  # contains only /bin. Note that ksh looks also at the FPATH variable,
17445  # so we have to set that as well for the test.
17446  PATH_SEPARATOR=:
17447  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17448    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17449           || PATH_SEPARATOR=';'
17450       }
17451fi
17452
17453# Find out how to test for executable files. Don't use a zero-byte file,
17454# as systems may use methods other than mode bits to determine executability.
17455cat >conf$$.file <<_ASEOF
17456#! /bin/sh
17457exit 0
17458_ASEOF
17459chmod +x conf$$.file
17460if test -x conf$$.file >/dev/null 2>&1; then
17461  ac_executable_p="test -x"
17462else
17463  ac_executable_p="test -f"
17464fi
17465rm -f conf$$.file
17466
17467# Extract the first word of "msgfmt", so it can be a program name with args.
17468set dummy msgfmt; ac_word=$2
17469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17470$as_echo_n "checking for $ac_word... " >&6; }
17471if ${ac_cv_path_MSGFMT+:} false; then :
17472  $as_echo_n "(cached) " >&6
17473else
17474  case "$MSGFMT" in
17475  [\\/]* | ?:[\\/]*)
17476    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17477    ;;
17478  *)
17479    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17480    for ac_dir in $PATH; do
17481      IFS="$ac_save_IFS"
17482      test -z "$ac_dir" && ac_dir=.
17483      for ac_exec_ext in '' $ac_executable_extensions; do
17484        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17485          echo "$as_me: trying $ac_dir/$ac_word..." >&5
17486          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
17487     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17488            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17489            break 2
17490          fi
17491        fi
17492      done
17493    done
17494    IFS="$ac_save_IFS"
17495  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17496    ;;
17497esac
17498fi
17499MSGFMT="$ac_cv_path_MSGFMT"
17500if test "$MSGFMT" != ":"; then
17501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17502$as_echo "$MSGFMT" >&6; }
17503else
17504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17505$as_echo "no" >&6; }
17506fi
17507
17508  # Extract the first word of "gmsgfmt", so it can be a program name with args.
17509set dummy gmsgfmt; ac_word=$2
17510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17511$as_echo_n "checking for $ac_word... " >&6; }
17512if ${ac_cv_path_GMSGFMT+:} false; then :
17513  $as_echo_n "(cached) " >&6
17514else
17515  case $GMSGFMT in
17516  [\\/]* | ?:[\\/]*)
17517  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17518  ;;
17519  *)
17520  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17521for as_dir in $PATH
17522do
17523  IFS=$as_save_IFS
17524  test -z "$as_dir" && as_dir=.
17525    for ac_exec_ext in '' $ac_executable_extensions; do
17526  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17527    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17528    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17529    break 2
17530  fi
17531done
17532  done
17533IFS=$as_save_IFS
17534
17535  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17536  ;;
17537esac
17538fi
17539GMSGFMT=$ac_cv_path_GMSGFMT
17540if test -n "$GMSGFMT"; then
17541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17542$as_echo "$GMSGFMT" >&6; }
17543else
17544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17545$as_echo "no" >&6; }
17546fi
17547
17548
17549
17550    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
17551    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
17552    *) MSGFMT_015=$MSGFMT ;;
17553  esac
17554
17555  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
17556    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
17557    *) GMSGFMT_015=$GMSGFMT ;;
17558  esac
17559
17560
17561
17562# Prepare PATH_SEPARATOR.
17563# The user is always right.
17564if test "${PATH_SEPARATOR+set}" != set; then
17565  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
17566  # contains only /bin. Note that ksh looks also at the FPATH variable,
17567  # so we have to set that as well for the test.
17568  PATH_SEPARATOR=:
17569  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17570    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17571           || PATH_SEPARATOR=';'
17572       }
17573fi
17574
17575# Find out how to test for executable files. Don't use a zero-byte file,
17576# as systems may use methods other than mode bits to determine executability.
17577cat >conf$$.file <<_ASEOF
17578#! /bin/sh
17579exit 0
17580_ASEOF
17581chmod +x conf$$.file
17582if test -x conf$$.file >/dev/null 2>&1; then
17583  ac_executable_p="test -x"
17584else
17585  ac_executable_p="test -f"
17586fi
17587rm -f conf$$.file
17588
17589# Extract the first word of "xgettext", so it can be a program name with args.
17590set dummy xgettext; ac_word=$2
17591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17592$as_echo_n "checking for $ac_word... " >&6; }
17593if ${ac_cv_path_XGETTEXT+:} false; then :
17594  $as_echo_n "(cached) " >&6
17595else
17596  case "$XGETTEXT" in
17597  [\\/]* | ?:[\\/]*)
17598    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17599    ;;
17600  *)
17601    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17602    for ac_dir in $PATH; do
17603      IFS="$ac_save_IFS"
17604      test -z "$ac_dir" && ac_dir=.
17605      for ac_exec_ext in '' $ac_executable_extensions; do
17606        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17607          echo "$as_me: trying $ac_dir/$ac_word..." >&5
17608          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17609     (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
17610            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17611            break 2
17612          fi
17613        fi
17614      done
17615    done
17616    IFS="$ac_save_IFS"
17617  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17618    ;;
17619esac
17620fi
17621XGETTEXT="$ac_cv_path_XGETTEXT"
17622if test "$XGETTEXT" != ":"; then
17623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17624$as_echo "$XGETTEXT" >&6; }
17625else
17626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17627$as_echo "no" >&6; }
17628fi
17629
17630    rm -f messages.po
17631
17632    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
17633    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
17634    *) XGETTEXT_015=$XGETTEXT ;;
17635  esac
17636
17637
17638
17639# Prepare PATH_SEPARATOR.
17640# The user is always right.
17641if test "${PATH_SEPARATOR+set}" != set; then
17642  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
17643  # contains only /bin. Note that ksh looks also at the FPATH variable,
17644  # so we have to set that as well for the test.
17645  PATH_SEPARATOR=:
17646  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17647    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17648           || PATH_SEPARATOR=';'
17649       }
17650fi
17651
17652# Find out how to test for executable files. Don't use a zero-byte file,
17653# as systems may use methods other than mode bits to determine executability.
17654cat >conf$$.file <<_ASEOF
17655#! /bin/sh
17656exit 0
17657_ASEOF
17658chmod +x conf$$.file
17659if test -x conf$$.file >/dev/null 2>&1; then
17660  ac_executable_p="test -x"
17661else
17662  ac_executable_p="test -f"
17663fi
17664rm -f conf$$.file
17665
17666# Extract the first word of "msgmerge", so it can be a program name with args.
17667set dummy msgmerge; ac_word=$2
17668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17669$as_echo_n "checking for $ac_word... " >&6; }
17670if ${ac_cv_path_MSGMERGE+:} false; then :
17671  $as_echo_n "(cached) " >&6
17672else
17673  case "$MSGMERGE" in
17674  [\\/]* | ?:[\\/]*)
17675    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17676    ;;
17677  *)
17678    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17679    for ac_dir in $PATH; do
17680      IFS="$ac_save_IFS"
17681      test -z "$ac_dir" && ac_dir=.
17682      for ac_exec_ext in '' $ac_executable_extensions; do
17683        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17684          echo "$as_me: trying $ac_dir/$ac_word..." >&5
17685          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17686            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17687            break 2
17688          fi
17689        fi
17690      done
17691    done
17692    IFS="$ac_save_IFS"
17693  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17694    ;;
17695esac
17696fi
17697MSGMERGE="$ac_cv_path_MSGMERGE"
17698if test "$MSGMERGE" != ":"; then
17699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17700$as_echo "$MSGMERGE" >&6; }
17701else
17702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17703$as_echo "no" >&6; }
17704fi
17705
17706
17707        test -n "$localedir" || localedir='${datadir}/locale'
17708
17709
17710    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
17711
17712
17713  ac_config_commands="$ac_config_commands po-directories"
17714
17715
17716
17717      if test "X$prefix" = "XNONE"; then
17718    acl_final_prefix="$ac_default_prefix"
17719  else
17720    acl_final_prefix="$prefix"
17721  fi
17722  if test "X$exec_prefix" = "XNONE"; then
17723    acl_final_exec_prefix='${prefix}'
17724  else
17725    acl_final_exec_prefix="$exec_prefix"
17726  fi
17727  acl_save_prefix="$prefix"
17728  prefix="$acl_final_prefix"
17729  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17730  prefix="$acl_save_prefix"
17731
17732
17733
17734# Check whether --with-gnu-ld was given.
17735if test "${with_gnu_ld+set}" = set; then :
17736  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17737else
17738  with_gnu_ld=no
17739fi
17740
17741# Prepare PATH_SEPARATOR.
17742# The user is always right.
17743if test "${PATH_SEPARATOR+set}" != set; then
17744  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
17745  # contains only /bin. Note that ksh looks also at the FPATH variable,
17746  # so we have to set that as well for the test.
17747  PATH_SEPARATOR=:
17748  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17749    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17750           || PATH_SEPARATOR=';'
17751       }
17752fi
17753
17754ac_prog=ld
17755if test "$GCC" = yes; then
17756  # Check if gcc -print-prog-name=ld gives a path.
17757  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17758$as_echo_n "checking for ld used by $CC... " >&6; }
17759  case $host in
17760  *-*-mingw*)
17761    # gcc leaves a trailing carriage return which upsets mingw
17762    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17763  *)
17764    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17765  esac
17766  case $ac_prog in
17767    # Accept absolute paths.
17768    [\\/]* | ?:[\\/]*)
17769      re_direlt='/[^/][^/]*/\.\./'
17770      # Canonicalize the pathname of ld
17771      ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
17772      while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
17773        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17774      done
17775      test -z "$LD" && LD="$ac_prog"
17776      ;;
17777  "")
17778    # If it fails, then pretend we aren't using GCC.
17779    ac_prog=ld
17780    ;;
17781  *)
17782    # If it is relative, then search for the first ld in PATH.
17783    with_gnu_ld=unknown
17784    ;;
17785  esac
17786elif test "$with_gnu_ld" = yes; then
17787  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17788$as_echo_n "checking for GNU ld... " >&6; }
17789else
17790  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17791$as_echo_n "checking for non-GNU ld... " >&6; }
17792fi
17793if ${acl_cv_path_LD+:} false; then :
17794  $as_echo_n "(cached) " >&6
17795else
17796  if test -z "$LD"; then
17797  acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17798  for ac_dir in $PATH; do
17799    IFS="$acl_save_ifs"
17800    test -z "$ac_dir" && ac_dir=.
17801    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17802      acl_cv_path_LD="$ac_dir/$ac_prog"
17803      # Check to see if the program is GNU ld.  I'd rather use --version,
17804      # but apparently some variants of GNU ld only accept -v.
17805      # Break only if it was the GNU/non-GNU ld that we prefer.
17806      case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
17807      *GNU* | *'with BFD'*)
17808        test "$with_gnu_ld" != no && break
17809        ;;
17810      *)
17811        test "$with_gnu_ld" != yes && break
17812        ;;
17813      esac
17814    fi
17815  done
17816  IFS="$acl_save_ifs"
17817else
17818  acl_cv_path_LD="$LD" # Let the user override the test with a path.
17819fi
17820fi
17821
17822LD="$acl_cv_path_LD"
17823if test -n "$LD"; then
17824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17825$as_echo "$LD" >&6; }
17826else
17827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17828$as_echo "no" >&6; }
17829fi
17830test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17832$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17833if ${acl_cv_prog_gnu_ld+:} false; then :
17834  $as_echo_n "(cached) " >&6
17835else
17836  # I'd rather use --version here, but apparently some GNU lds only accept -v.
17837case `$LD -v 2>&1 </dev/null` in
17838*GNU* | *'with BFD'*)
17839  acl_cv_prog_gnu_ld=yes
17840  ;;
17841*)
17842  acl_cv_prog_gnu_ld=no
17843  ;;
17844esac
17845fi
17846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17847$as_echo "$acl_cv_prog_gnu_ld" >&6; }
17848with_gnu_ld=$acl_cv_prog_gnu_ld
17849
17850
17851
17852
17853                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17854$as_echo_n "checking for shared library run path origin... " >&6; }
17855if ${acl_cv_rpath+:} false; then :
17856  $as_echo_n "(cached) " >&6
17857else
17858
17859    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17860    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17861    . ./conftest.sh
17862    rm -f ./conftest.sh
17863    acl_cv_rpath=done
17864
17865fi
17866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17867$as_echo "$acl_cv_rpath" >&6; }
17868  wl="$acl_cv_wl"
17869  acl_libext="$acl_cv_libext"
17870  acl_shlibext="$acl_cv_shlibext"
17871  acl_libname_spec="$acl_cv_libname_spec"
17872  acl_library_names_spec="$acl_cv_library_names_spec"
17873  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17874  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17875  acl_hardcode_direct="$acl_cv_hardcode_direct"
17876  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
17877    # Check whether --enable-rpath was given.
17878if test "${enable_rpath+set}" = set; then :
17879  enableval=$enable_rpath; :
17880else
17881  enable_rpath=yes
17882fi
17883
17884
17885
17886
17887  acl_libdirstem=lib
17888  acl_libdirstem2=
17889  case "$host_os" in
17890    solaris*)
17891                                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
17892$as_echo_n "checking for 64-bit host... " >&6; }
17893if ${gl_cv_solaris_64bit+:} false; then :
17894  $as_echo_n "(cached) " >&6
17895else
17896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17897/* end confdefs.h.  */
17898
17899#ifdef _LP64
17900sixtyfour bits
17901#endif
17902
17903_ACEOF
17904if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17905  $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
17906  gl_cv_solaris_64bit=yes
17907else
17908  gl_cv_solaris_64bit=no
17909fi
17910rm -f conftest*
17911
17912
17913fi
17914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
17915$as_echo "$gl_cv_solaris_64bit" >&6; }
17916      if test $gl_cv_solaris_64bit = yes; then
17917        acl_libdirstem=lib/64
17918        case "$host_cpu" in
17919          sparc*)        acl_libdirstem2=lib/sparcv9 ;;
17920          i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
17921        esac
17922      fi
17923      ;;
17924    *)
17925      searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
17926      if test -n "$searchpath"; then
17927        acl_save_IFS="${IFS= 	}"; IFS=":"
17928        for searchdir in $searchpath; do
17929          if test -d "$searchdir"; then
17930            case "$searchdir" in
17931              */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
17932              */../ | */.. )
17933                # Better ignore directories of this form. They are misleading.
17934                ;;
17935              *) searchdir=`cd "$searchdir" && pwd`
17936                 case "$searchdir" in
17937                   */lib64 ) acl_libdirstem=lib64 ;;
17938                 esac ;;
17939            esac
17940          fi
17941        done
17942        IFS="$acl_save_IFS"
17943      fi
17944      ;;
17945  esac
17946  test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959    use_additional=yes
17960
17961  acl_save_prefix="$prefix"
17962  prefix="$acl_final_prefix"
17963  acl_save_exec_prefix="$exec_prefix"
17964  exec_prefix="$acl_final_exec_prefix"
17965
17966    eval additional_includedir=\"$includedir\"
17967    eval additional_libdir=\"$libdir\"
17968
17969  exec_prefix="$acl_save_exec_prefix"
17970  prefix="$acl_save_prefix"
17971
17972
17973# Check whether --with-libiconv-prefix was given.
17974if test "${with_libiconv_prefix+set}" = set; then :
17975  withval=$with_libiconv_prefix;
17976    if test "X$withval" = "Xno"; then
17977      use_additional=no
17978    else
17979      if test "X$withval" = "X"; then
17980
17981  acl_save_prefix="$prefix"
17982  prefix="$acl_final_prefix"
17983  acl_save_exec_prefix="$exec_prefix"
17984  exec_prefix="$acl_final_exec_prefix"
17985
17986          eval additional_includedir=\"$includedir\"
17987          eval additional_libdir=\"$libdir\"
17988
17989  exec_prefix="$acl_save_exec_prefix"
17990  prefix="$acl_save_prefix"
17991
17992      else
17993        additional_includedir="$withval/include"
17994        additional_libdir="$withval/$acl_libdirstem"
17995        if test "$acl_libdirstem2" != "$acl_libdirstem" \
17996           && ! test -d "$withval/$acl_libdirstem"; then
17997          additional_libdir="$withval/$acl_libdirstem2"
17998        fi
17999      fi
18000    fi
18001
18002fi
18003
18004      LIBICONV=
18005  LTLIBICONV=
18006  INCICONV=
18007  LIBICONV_PREFIX=
18008      HAVE_LIBICONV=
18009  rpathdirs=
18010  ltrpathdirs=
18011  names_already_handled=
18012  names_next_round='iconv '
18013  while test -n "$names_next_round"; do
18014    names_this_round="$names_next_round"
18015    names_next_round=
18016    for name in $names_this_round; do
18017      already_handled=
18018      for n in $names_already_handled; do
18019        if test "$n" = "$name"; then
18020          already_handled=yes
18021          break
18022        fi
18023      done
18024      if test -z "$already_handled"; then
18025        names_already_handled="$names_already_handled $name"
18026                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
18027        eval value=\"\$HAVE_LIB$uppername\"
18028        if test -n "$value"; then
18029          if test "$value" = yes; then
18030            eval value=\"\$LIB$uppername\"
18031            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
18032            eval value=\"\$LTLIB$uppername\"
18033            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
18034          else
18035                                    :
18036          fi
18037        else
18038                              found_dir=
18039          found_la=
18040          found_so=
18041          found_a=
18042          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
18043          if test -n "$acl_shlibext"; then
18044            shrext=".$acl_shlibext"             # typically: shrext=.so
18045          else
18046            shrext=
18047          fi
18048          if test $use_additional = yes; then
18049            dir="$additional_libdir"
18050                                    if test -n "$acl_shlibext"; then
18051              if test -f "$dir/$libname$shrext"; then
18052                found_dir="$dir"
18053                found_so="$dir/$libname$shrext"
18054              else
18055                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18056                  ver=`(cd "$dir" && \
18057                        for f in "$libname$shrext".*; do echo "$f"; done \
18058                        | sed -e "s,^$libname$shrext\\\\.,," \
18059                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18060                        | sed 1q ) 2>/dev/null`
18061                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18062                    found_dir="$dir"
18063                    found_so="$dir/$libname$shrext.$ver"
18064                  fi
18065                else
18066                  eval library_names=\"$acl_library_names_spec\"
18067                  for f in $library_names; do
18068                    if test -f "$dir/$f"; then
18069                      found_dir="$dir"
18070                      found_so="$dir/$f"
18071                      break
18072                    fi
18073                  done
18074                fi
18075              fi
18076            fi
18077                        if test "X$found_dir" = "X"; then
18078              if test -f "$dir/$libname.$acl_libext"; then
18079                found_dir="$dir"
18080                found_a="$dir/$libname.$acl_libext"
18081              fi
18082            fi
18083            if test "X$found_dir" != "X"; then
18084              if test -f "$dir/$libname.la"; then
18085                found_la="$dir/$libname.la"
18086              fi
18087            fi
18088          fi
18089          if test "X$found_dir" = "X"; then
18090            for x in $LDFLAGS $LTLIBICONV; do
18091
18092  acl_save_prefix="$prefix"
18093  prefix="$acl_final_prefix"
18094  acl_save_exec_prefix="$exec_prefix"
18095  exec_prefix="$acl_final_exec_prefix"
18096  eval x=\"$x\"
18097  exec_prefix="$acl_save_exec_prefix"
18098  prefix="$acl_save_prefix"
18099
18100              case "$x" in
18101                -L*)
18102                  dir=`echo "X$x" | sed -e 's/^X-L//'`
18103                                    if test -n "$acl_shlibext"; then
18104                    if test -f "$dir/$libname$shrext"; then
18105                      found_dir="$dir"
18106                      found_so="$dir/$libname$shrext"
18107                    else
18108                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18109                        ver=`(cd "$dir" && \
18110                              for f in "$libname$shrext".*; do echo "$f"; done \
18111                              | sed -e "s,^$libname$shrext\\\\.,," \
18112                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18113                              | sed 1q ) 2>/dev/null`
18114                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18115                          found_dir="$dir"
18116                          found_so="$dir/$libname$shrext.$ver"
18117                        fi
18118                      else
18119                        eval library_names=\"$acl_library_names_spec\"
18120                        for f in $library_names; do
18121                          if test -f "$dir/$f"; then
18122                            found_dir="$dir"
18123                            found_so="$dir/$f"
18124                            break
18125                          fi
18126                        done
18127                      fi
18128                    fi
18129                  fi
18130                                    if test "X$found_dir" = "X"; then
18131                    if test -f "$dir/$libname.$acl_libext"; then
18132                      found_dir="$dir"
18133                      found_a="$dir/$libname.$acl_libext"
18134                    fi
18135                  fi
18136                  if test "X$found_dir" != "X"; then
18137                    if test -f "$dir/$libname.la"; then
18138                      found_la="$dir/$libname.la"
18139                    fi
18140                  fi
18141                  ;;
18142              esac
18143              if test "X$found_dir" != "X"; then
18144                break
18145              fi
18146            done
18147          fi
18148          if test "X$found_dir" != "X"; then
18149                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
18150            if test "X$found_so" != "X"; then
18151                                                        if test "$enable_rpath" = no \
18152                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
18153                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
18154                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18155              else
18156                                                                                haveit=
18157                for x in $ltrpathdirs; do
18158                  if test "X$x" = "X$found_dir"; then
18159                    haveit=yes
18160                    break
18161                  fi
18162                done
18163                if test -z "$haveit"; then
18164                  ltrpathdirs="$ltrpathdirs $found_dir"
18165                fi
18166                                if test "$acl_hardcode_direct" = yes; then
18167                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18168                else
18169                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
18170                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18171                                                            haveit=
18172                    for x in $rpathdirs; do
18173                      if test "X$x" = "X$found_dir"; then
18174                        haveit=yes
18175                        break
18176                      fi
18177                    done
18178                    if test -z "$haveit"; then
18179                      rpathdirs="$rpathdirs $found_dir"
18180                    fi
18181                  else
18182                                                                                haveit=
18183                    for x in $LDFLAGS $LIBICONV; do
18184
18185  acl_save_prefix="$prefix"
18186  prefix="$acl_final_prefix"
18187  acl_save_exec_prefix="$exec_prefix"
18188  exec_prefix="$acl_final_exec_prefix"
18189  eval x=\"$x\"
18190  exec_prefix="$acl_save_exec_prefix"
18191  prefix="$acl_save_prefix"
18192
18193                      if test "X$x" = "X-L$found_dir"; then
18194                        haveit=yes
18195                        break
18196                      fi
18197                    done
18198                    if test -z "$haveit"; then
18199                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
18200                    fi
18201                    if test "$acl_hardcode_minus_L" != no; then
18202                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18203                    else
18204                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18205                    fi
18206                  fi
18207                fi
18208              fi
18209            else
18210              if test "X$found_a" != "X"; then
18211                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
18212              else
18213                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
18214              fi
18215            fi
18216                        additional_includedir=
18217            case "$found_dir" in
18218              */$acl_libdirstem | */$acl_libdirstem/)
18219                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
18220                if test "$name" = 'iconv'; then
18221                  LIBICONV_PREFIX="$basedir"
18222                fi
18223                additional_includedir="$basedir/include"
18224                ;;
18225              */$acl_libdirstem2 | */$acl_libdirstem2/)
18226                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
18227                if test "$name" = 'iconv'; then
18228                  LIBICONV_PREFIX="$basedir"
18229                fi
18230                additional_includedir="$basedir/include"
18231                ;;
18232            esac
18233            if test "X$additional_includedir" != "X"; then
18234                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
18235                haveit=
18236                if test "X$additional_includedir" = "X/usr/local/include"; then
18237                  if test -n "$GCC"; then
18238                    case $host_os in
18239                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18240                    esac
18241                  fi
18242                fi
18243                if test -z "$haveit"; then
18244                  for x in $CPPFLAGS $INCICONV; do
18245
18246  acl_save_prefix="$prefix"
18247  prefix="$acl_final_prefix"
18248  acl_save_exec_prefix="$exec_prefix"
18249  exec_prefix="$acl_final_exec_prefix"
18250  eval x=\"$x\"
18251  exec_prefix="$acl_save_exec_prefix"
18252  prefix="$acl_save_prefix"
18253
18254                    if test "X$x" = "X-I$additional_includedir"; then
18255                      haveit=yes
18256                      break
18257                    fi
18258                  done
18259                  if test -z "$haveit"; then
18260                    if test -d "$additional_includedir"; then
18261                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
18262                    fi
18263                  fi
18264                fi
18265              fi
18266            fi
18267                        if test -n "$found_la"; then
18268                                                        save_libdir="$libdir"
18269              case "$found_la" in
18270                */* | *\\*) . "$found_la" ;;
18271                *) . "./$found_la" ;;
18272              esac
18273              libdir="$save_libdir"
18274                            for dep in $dependency_libs; do
18275                case "$dep" in
18276                  -L*)
18277                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18278                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
18279                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
18280                      haveit=
18281                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
18282                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
18283                        if test -n "$GCC"; then
18284                          case $host_os in
18285                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18286                          esac
18287                        fi
18288                      fi
18289                      if test -z "$haveit"; then
18290                        haveit=
18291                        for x in $LDFLAGS $LIBICONV; do
18292
18293  acl_save_prefix="$prefix"
18294  prefix="$acl_final_prefix"
18295  acl_save_exec_prefix="$exec_prefix"
18296  exec_prefix="$acl_final_exec_prefix"
18297  eval x=\"$x\"
18298  exec_prefix="$acl_save_exec_prefix"
18299  prefix="$acl_save_prefix"
18300
18301                          if test "X$x" = "X-L$additional_libdir"; then
18302                            haveit=yes
18303                            break
18304                          fi
18305                        done
18306                        if test -z "$haveit"; then
18307                          if test -d "$additional_libdir"; then
18308                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
18309                          fi
18310                        fi
18311                        haveit=
18312                        for x in $LDFLAGS $LTLIBICONV; do
18313
18314  acl_save_prefix="$prefix"
18315  prefix="$acl_final_prefix"
18316  acl_save_exec_prefix="$exec_prefix"
18317  exec_prefix="$acl_final_exec_prefix"
18318  eval x=\"$x\"
18319  exec_prefix="$acl_save_exec_prefix"
18320  prefix="$acl_save_prefix"
18321
18322                          if test "X$x" = "X-L$additional_libdir"; then
18323                            haveit=yes
18324                            break
18325                          fi
18326                        done
18327                        if test -z "$haveit"; then
18328                          if test -d "$additional_libdir"; then
18329                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
18330                          fi
18331                        fi
18332                      fi
18333                    fi
18334                    ;;
18335                  -R*)
18336                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
18337                    if test "$enable_rpath" != no; then
18338                                                                  haveit=
18339                      for x in $rpathdirs; do
18340                        if test "X$x" = "X$dir"; then
18341                          haveit=yes
18342                          break
18343                        fi
18344                      done
18345                      if test -z "$haveit"; then
18346                        rpathdirs="$rpathdirs $dir"
18347                      fi
18348                                                                  haveit=
18349                      for x in $ltrpathdirs; do
18350                        if test "X$x" = "X$dir"; then
18351                          haveit=yes
18352                          break
18353                        fi
18354                      done
18355                      if test -z "$haveit"; then
18356                        ltrpathdirs="$ltrpathdirs $dir"
18357                      fi
18358                    fi
18359                    ;;
18360                  -l*)
18361                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18362                    ;;
18363                  *.la)
18364                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18365                    ;;
18366                  *)
18367                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18368                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18369                    ;;
18370                esac
18371              done
18372            fi
18373          else
18374                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18375            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18376          fi
18377        fi
18378      fi
18379    done
18380  done
18381  if test "X$rpathdirs" != "X"; then
18382    if test -n "$acl_hardcode_libdir_separator"; then
18383                        alldirs=
18384      for found_dir in $rpathdirs; do
18385        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
18386      done
18387            acl_save_libdir="$libdir"
18388      libdir="$alldirs"
18389      eval flag=\"$acl_hardcode_libdir_flag_spec\"
18390      libdir="$acl_save_libdir"
18391      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18392    else
18393            for found_dir in $rpathdirs; do
18394        acl_save_libdir="$libdir"
18395        libdir="$found_dir"
18396        eval flag=\"$acl_hardcode_libdir_flag_spec\"
18397        libdir="$acl_save_libdir"
18398        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18399      done
18400    fi
18401  fi
18402  if test "X$ltrpathdirs" != "X"; then
18403            for found_dir in $ltrpathdirs; do
18404      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18405    done
18406  fi
18407
18408
18409
18410
18411
18412
18413
18414
18415
18416
18417
18418
18419
18420
18421
18422
18423
18424
18425
18426
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18439$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18440if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
18441  $as_echo_n "(cached) " >&6
18442else
18443  gt_save_LIBS="$LIBS"
18444     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
18445     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18446/* end confdefs.h.  */
18447#include <CoreFoundation/CFPreferences.h>
18448int
18449main ()
18450{
18451CFPreferencesCopyAppValue(NULL, NULL)
18452  ;
18453  return 0;
18454}
18455_ACEOF
18456if ac_fn_c_try_link "$LINENO"; then :
18457  gt_cv_func_CFPreferencesCopyAppValue=yes
18458else
18459  gt_cv_func_CFPreferencesCopyAppValue=no
18460fi
18461rm -f core conftest.err conftest.$ac_objext \
18462    conftest$ac_exeext conftest.$ac_ext
18463     LIBS="$gt_save_LIBS"
18464fi
18465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18466$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18467  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18468
18469$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18470
18471  fi
18472    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
18473$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18474if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
18475  $as_echo_n "(cached) " >&6
18476else
18477  gt_save_LIBS="$LIBS"
18478     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
18479     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18480/* end confdefs.h.  */
18481#include <CoreFoundation/CFLocale.h>
18482int
18483main ()
18484{
18485CFLocaleCopyCurrent();
18486  ;
18487  return 0;
18488}
18489_ACEOF
18490if ac_fn_c_try_link "$LINENO"; then :
18491  gt_cv_func_CFLocaleCopyCurrent=yes
18492else
18493  gt_cv_func_CFLocaleCopyCurrent=no
18494fi
18495rm -f core conftest.err conftest.$ac_objext \
18496    conftest$ac_exeext conftest.$ac_ext
18497     LIBS="$gt_save_LIBS"
18498fi
18499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18500$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18501  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18502
18503$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
18504
18505  fi
18506  INTL_MACOSX_LIBS=
18507  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18508    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18509  fi
18510
18511
18512
18513
18514
18515
18516  LIBINTL=
18517  LTLIBINTL=
18518  POSUB=
18519
18520    case " $gt_needs " in
18521    *" need-formatstring-macros "*) gt_api_version=3 ;;
18522    *" need-ngettext "*) gt_api_version=2 ;;
18523    *) gt_api_version=1 ;;
18524  esac
18525  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
18526  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
18527
18528    if test "$USE_NLS" = "yes"; then
18529    gt_use_preinstalled_gnugettext=no
18530
18531
18532        if test $gt_api_version -ge 3; then
18533          gt_revision_test_code='
18534#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
18535#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
18536#endif
18537typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
18538'
18539        else
18540          gt_revision_test_code=
18541        fi
18542        if test $gt_api_version -ge 2; then
18543          gt_expression_test_code=' + * ngettext ("", "", 0)'
18544        else
18545          gt_expression_test_code=
18546        fi
18547
18548        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
18549$as_echo_n "checking for GNU gettext in libc... " >&6; }
18550if eval \${$gt_func_gnugettext_libc+:} false; then :
18551  $as_echo_n "(cached) " >&6
18552else
18553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18554/* end confdefs.h.  */
18555
18556#include <libintl.h>
18557#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
18558extern int _nl_msg_cat_cntr;
18559extern int *_nl_domain_bindings;
18560#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
18561#else
18562#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
18563#endif
18564$gt_revision_test_code
18565
18566int
18567main ()
18568{
18569
18570bindtextdomain ("", "");
18571return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
18572
18573  ;
18574  return 0;
18575}
18576_ACEOF
18577if ac_fn_c_try_link "$LINENO"; then :
18578  eval "$gt_func_gnugettext_libc=yes"
18579else
18580  eval "$gt_func_gnugettext_libc=no"
18581fi
18582rm -f core conftest.err conftest.$ac_objext \
18583    conftest$ac_exeext conftest.$ac_ext
18584fi
18585eval ac_res=\$$gt_func_gnugettext_libc
18586	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18587$as_echo "$ac_res" >&6; }
18588
18589        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
18590
18591
18592
18593
18594
18595          am_save_CPPFLAGS="$CPPFLAGS"
18596
18597  for element in $INCICONV; do
18598    haveit=
18599    for x in $CPPFLAGS; do
18600
18601  acl_save_prefix="$prefix"
18602  prefix="$acl_final_prefix"
18603  acl_save_exec_prefix="$exec_prefix"
18604  exec_prefix="$acl_final_exec_prefix"
18605  eval x=\"$x\"
18606  exec_prefix="$acl_save_exec_prefix"
18607  prefix="$acl_save_prefix"
18608
18609      if test "X$x" = "X$element"; then
18610        haveit=yes
18611        break
18612      fi
18613    done
18614    if test -z "$haveit"; then
18615      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18616    fi
18617  done
18618
18619
18620  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18621$as_echo_n "checking for iconv... " >&6; }
18622if ${am_cv_func_iconv+:} false; then :
18623  $as_echo_n "(cached) " >&6
18624else
18625
18626    am_cv_func_iconv="no, consider installing GNU libiconv"
18627    am_cv_lib_iconv=no
18628    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18629/* end confdefs.h.  */
18630
18631#include <stdlib.h>
18632#include <iconv.h>
18633
18634int
18635main ()
18636{
18637iconv_t cd = iconv_open("","");
18638           iconv(cd,NULL,NULL,NULL,NULL);
18639           iconv_close(cd);
18640  ;
18641  return 0;
18642}
18643_ACEOF
18644if ac_fn_c_try_link "$LINENO"; then :
18645  am_cv_func_iconv=yes
18646fi
18647rm -f core conftest.err conftest.$ac_objext \
18648    conftest$ac_exeext conftest.$ac_ext
18649    if test "$am_cv_func_iconv" != yes; then
18650      am_save_LIBS="$LIBS"
18651      LIBS="$LIBS $LIBICONV"
18652      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18653/* end confdefs.h.  */
18654
18655#include <stdlib.h>
18656#include <iconv.h>
18657
18658int
18659main ()
18660{
18661iconv_t cd = iconv_open("","");
18662             iconv(cd,NULL,NULL,NULL,NULL);
18663             iconv_close(cd);
18664  ;
18665  return 0;
18666}
18667_ACEOF
18668if ac_fn_c_try_link "$LINENO"; then :
18669  am_cv_lib_iconv=yes
18670        am_cv_func_iconv=yes
18671fi
18672rm -f core conftest.err conftest.$ac_objext \
18673    conftest$ac_exeext conftest.$ac_ext
18674      LIBS="$am_save_LIBS"
18675    fi
18676
18677fi
18678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18679$as_echo "$am_cv_func_iconv" >&6; }
18680  if test "$am_cv_func_iconv" = yes; then
18681    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
18682$as_echo_n "checking for working iconv... " >&6; }
18683if ${am_cv_func_iconv_works+:} false; then :
18684  $as_echo_n "(cached) " >&6
18685else
18686
18687                  am_save_LIBS="$LIBS"
18688      if test $am_cv_lib_iconv = yes; then
18689        LIBS="$LIBS $LIBICONV"
18690      fi
18691      am_cv_func_iconv_works=no
18692      for ac_iconv_const in '' 'const'; do
18693        if test "$cross_compiling" = yes; then :
18694  case "$host_os" in
18695             aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
18696             *)            am_cv_func_iconv_works="guessing yes" ;;
18697           esac
18698else
18699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18700/* end confdefs.h.  */
18701
18702#include <iconv.h>
18703#include <string.h>
18704
18705#ifndef ICONV_CONST
18706# define ICONV_CONST $ac_iconv_const
18707#endif
18708
18709int
18710main ()
18711{
18712int result = 0;
18713  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
18714     returns.  */
18715  {
18716    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
18717    if (cd_utf8_to_88591 != (iconv_t)(-1))
18718      {
18719        static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
18720        char buf[10];
18721        ICONV_CONST char *inptr = input;
18722        size_t inbytesleft = strlen (input);
18723        char *outptr = buf;
18724        size_t outbytesleft = sizeof (buf);
18725        size_t res = iconv (cd_utf8_to_88591,
18726                            &inptr, &inbytesleft,
18727                            &outptr, &outbytesleft);
18728        if (res == 0)
18729          result |= 1;
18730        iconv_close (cd_utf8_to_88591);
18731      }
18732  }
18733  /* Test against Solaris 10 bug: Failures are not distinguishable from
18734     successful returns.  */
18735  {
18736    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
18737    if (cd_ascii_to_88591 != (iconv_t)(-1))
18738      {
18739        static ICONV_CONST char input[] = "\263";
18740        char buf[10];
18741        ICONV_CONST char *inptr = input;
18742        size_t inbytesleft = strlen (input);
18743        char *outptr = buf;
18744        size_t outbytesleft = sizeof (buf);
18745        size_t res = iconv (cd_ascii_to_88591,
18746                            &inptr, &inbytesleft,
18747                            &outptr, &outbytesleft);
18748        if (res == 0)
18749          result |= 2;
18750        iconv_close (cd_ascii_to_88591);
18751      }
18752  }
18753  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
18754  {
18755    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
18756    if (cd_88591_to_utf8 != (iconv_t)(-1))
18757      {
18758        static ICONV_CONST char input[] = "\304";
18759        static char buf[2] = { (char)0xDE, (char)0xAD };
18760        ICONV_CONST char *inptr = input;
18761        size_t inbytesleft = 1;
18762        char *outptr = buf;
18763        size_t outbytesleft = 1;
18764        size_t res = iconv (cd_88591_to_utf8,
18765                            &inptr, &inbytesleft,
18766                            &outptr, &outbytesleft);
18767        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
18768          result |= 4;
18769        iconv_close (cd_88591_to_utf8);
18770      }
18771  }
18772#if 0 /* This bug could be worked around by the caller.  */
18773  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
18774  {
18775    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
18776    if (cd_88591_to_utf8 != (iconv_t)(-1))
18777      {
18778        static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
18779        char buf[50];
18780        ICONV_CONST char *inptr = input;
18781        size_t inbytesleft = strlen (input);
18782        char *outptr = buf;
18783        size_t outbytesleft = sizeof (buf);
18784        size_t res = iconv (cd_88591_to_utf8,
18785                            &inptr, &inbytesleft,
18786                            &outptr, &outbytesleft);
18787        if ((int)res > 0)
18788          result |= 8;
18789        iconv_close (cd_88591_to_utf8);
18790      }
18791  }
18792#endif
18793  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
18794     provided.  */
18795  if (/* Try standardized names.  */
18796      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
18797      /* Try IRIX, OSF/1 names.  */
18798      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
18799      /* Try AIX names.  */
18800      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
18801      /* Try HP-UX names.  */
18802      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
18803    result |= 16;
18804  return result;
18805
18806  ;
18807  return 0;
18808}
18809_ACEOF
18810if ac_fn_c_try_run "$LINENO"; then :
18811  am_cv_func_iconv_works=yes
18812fi
18813rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18814  conftest.$ac_objext conftest.beam conftest.$ac_ext
18815fi
18816
18817        test "$am_cv_func_iconv_works" = no || break
18818      done
18819      LIBS="$am_save_LIBS"
18820
18821fi
18822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
18823$as_echo "$am_cv_func_iconv_works" >&6; }
18824    case "$am_cv_func_iconv_works" in
18825      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
18826      *)   am_func_iconv=yes ;;
18827    esac
18828  else
18829    am_func_iconv=no am_cv_lib_iconv=no
18830  fi
18831  if test "$am_func_iconv" = yes; then
18832
18833$as_echo "#define HAVE_ICONV 1" >>confdefs.h
18834
18835  fi
18836  if test "$am_cv_lib_iconv" = yes; then
18837    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18838$as_echo_n "checking how to link with libiconv... " >&6; }
18839    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18840$as_echo "$LIBICONV" >&6; }
18841  else
18842            CPPFLAGS="$am_save_CPPFLAGS"
18843    LIBICONV=
18844    LTLIBICONV=
18845  fi
18846
18847
18848
18849
18850
18851
18852
18853
18854
18855
18856
18857    use_additional=yes
18858
18859  acl_save_prefix="$prefix"
18860  prefix="$acl_final_prefix"
18861  acl_save_exec_prefix="$exec_prefix"
18862  exec_prefix="$acl_final_exec_prefix"
18863
18864    eval additional_includedir=\"$includedir\"
18865    eval additional_libdir=\"$libdir\"
18866
18867  exec_prefix="$acl_save_exec_prefix"
18868  prefix="$acl_save_prefix"
18869
18870
18871# Check whether --with-libintl-prefix was given.
18872if test "${with_libintl_prefix+set}" = set; then :
18873  withval=$with_libintl_prefix;
18874    if test "X$withval" = "Xno"; then
18875      use_additional=no
18876    else
18877      if test "X$withval" = "X"; then
18878
18879  acl_save_prefix="$prefix"
18880  prefix="$acl_final_prefix"
18881  acl_save_exec_prefix="$exec_prefix"
18882  exec_prefix="$acl_final_exec_prefix"
18883
18884          eval additional_includedir=\"$includedir\"
18885          eval additional_libdir=\"$libdir\"
18886
18887  exec_prefix="$acl_save_exec_prefix"
18888  prefix="$acl_save_prefix"
18889
18890      else
18891        additional_includedir="$withval/include"
18892        additional_libdir="$withval/$acl_libdirstem"
18893        if test "$acl_libdirstem2" != "$acl_libdirstem" \
18894           && ! test -d "$withval/$acl_libdirstem"; then
18895          additional_libdir="$withval/$acl_libdirstem2"
18896        fi
18897      fi
18898    fi
18899
18900fi
18901
18902      LIBINTL=
18903  LTLIBINTL=
18904  INCINTL=
18905  LIBINTL_PREFIX=
18906      HAVE_LIBINTL=
18907  rpathdirs=
18908  ltrpathdirs=
18909  names_already_handled=
18910  names_next_round='intl '
18911  while test -n "$names_next_round"; do
18912    names_this_round="$names_next_round"
18913    names_next_round=
18914    for name in $names_this_round; do
18915      already_handled=
18916      for n in $names_already_handled; do
18917        if test "$n" = "$name"; then
18918          already_handled=yes
18919          break
18920        fi
18921      done
18922      if test -z "$already_handled"; then
18923        names_already_handled="$names_already_handled $name"
18924                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
18925        eval value=\"\$HAVE_LIB$uppername\"
18926        if test -n "$value"; then
18927          if test "$value" = yes; then
18928            eval value=\"\$LIB$uppername\"
18929            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18930            eval value=\"\$LTLIB$uppername\"
18931            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18932          else
18933                                    :
18934          fi
18935        else
18936                              found_dir=
18937          found_la=
18938          found_so=
18939          found_a=
18940          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
18941          if test -n "$acl_shlibext"; then
18942            shrext=".$acl_shlibext"             # typically: shrext=.so
18943          else
18944            shrext=
18945          fi
18946          if test $use_additional = yes; then
18947            dir="$additional_libdir"
18948                                    if test -n "$acl_shlibext"; then
18949              if test -f "$dir/$libname$shrext"; then
18950                found_dir="$dir"
18951                found_so="$dir/$libname$shrext"
18952              else
18953                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18954                  ver=`(cd "$dir" && \
18955                        for f in "$libname$shrext".*; do echo "$f"; done \
18956                        | sed -e "s,^$libname$shrext\\\\.,," \
18957                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18958                        | sed 1q ) 2>/dev/null`
18959                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18960                    found_dir="$dir"
18961                    found_so="$dir/$libname$shrext.$ver"
18962                  fi
18963                else
18964                  eval library_names=\"$acl_library_names_spec\"
18965                  for f in $library_names; do
18966                    if test -f "$dir/$f"; then
18967                      found_dir="$dir"
18968                      found_so="$dir/$f"
18969                      break
18970                    fi
18971                  done
18972                fi
18973              fi
18974            fi
18975                        if test "X$found_dir" = "X"; then
18976              if test -f "$dir/$libname.$acl_libext"; then
18977                found_dir="$dir"
18978                found_a="$dir/$libname.$acl_libext"
18979              fi
18980            fi
18981            if test "X$found_dir" != "X"; then
18982              if test -f "$dir/$libname.la"; then
18983                found_la="$dir/$libname.la"
18984              fi
18985            fi
18986          fi
18987          if test "X$found_dir" = "X"; then
18988            for x in $LDFLAGS $LTLIBINTL; do
18989
18990  acl_save_prefix="$prefix"
18991  prefix="$acl_final_prefix"
18992  acl_save_exec_prefix="$exec_prefix"
18993  exec_prefix="$acl_final_exec_prefix"
18994  eval x=\"$x\"
18995  exec_prefix="$acl_save_exec_prefix"
18996  prefix="$acl_save_prefix"
18997
18998              case "$x" in
18999                -L*)
19000                  dir=`echo "X$x" | sed -e 's/^X-L//'`
19001                                    if test -n "$acl_shlibext"; then
19002                    if test -f "$dir/$libname$shrext"; then
19003                      found_dir="$dir"
19004                      found_so="$dir/$libname$shrext"
19005                    else
19006                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19007                        ver=`(cd "$dir" && \
19008                              for f in "$libname$shrext".*; do echo "$f"; done \
19009                              | sed -e "s,^$libname$shrext\\\\.,," \
19010                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19011                              | sed 1q ) 2>/dev/null`
19012                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19013                          found_dir="$dir"
19014                          found_so="$dir/$libname$shrext.$ver"
19015                        fi
19016                      else
19017                        eval library_names=\"$acl_library_names_spec\"
19018                        for f in $library_names; do
19019                          if test -f "$dir/$f"; then
19020                            found_dir="$dir"
19021                            found_so="$dir/$f"
19022                            break
19023                          fi
19024                        done
19025                      fi
19026                    fi
19027                  fi
19028                                    if test "X$found_dir" = "X"; then
19029                    if test -f "$dir/$libname.$acl_libext"; then
19030                      found_dir="$dir"
19031                      found_a="$dir/$libname.$acl_libext"
19032                    fi
19033                  fi
19034                  if test "X$found_dir" != "X"; then
19035                    if test -f "$dir/$libname.la"; then
19036                      found_la="$dir/$libname.la"
19037                    fi
19038                  fi
19039                  ;;
19040              esac
19041              if test "X$found_dir" != "X"; then
19042                break
19043              fi
19044            done
19045          fi
19046          if test "X$found_dir" != "X"; then
19047                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
19048            if test "X$found_so" != "X"; then
19049                                                        if test "$enable_rpath" = no \
19050                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
19051                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
19052                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19053              else
19054                                                                                haveit=
19055                for x in $ltrpathdirs; do
19056                  if test "X$x" = "X$found_dir"; then
19057                    haveit=yes
19058                    break
19059                  fi
19060                done
19061                if test -z "$haveit"; then
19062                  ltrpathdirs="$ltrpathdirs $found_dir"
19063                fi
19064                                if test "$acl_hardcode_direct" = yes; then
19065                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19066                else
19067                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
19068                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19069                                                            haveit=
19070                    for x in $rpathdirs; do
19071                      if test "X$x" = "X$found_dir"; then
19072                        haveit=yes
19073                        break
19074                      fi
19075                    done
19076                    if test -z "$haveit"; then
19077                      rpathdirs="$rpathdirs $found_dir"
19078                    fi
19079                  else
19080                                                                                haveit=
19081                    for x in $LDFLAGS $LIBINTL; do
19082
19083  acl_save_prefix="$prefix"
19084  prefix="$acl_final_prefix"
19085  acl_save_exec_prefix="$exec_prefix"
19086  exec_prefix="$acl_final_exec_prefix"
19087  eval x=\"$x\"
19088  exec_prefix="$acl_save_exec_prefix"
19089  prefix="$acl_save_prefix"
19090
19091                      if test "X$x" = "X-L$found_dir"; then
19092                        haveit=yes
19093                        break
19094                      fi
19095                    done
19096                    if test -z "$haveit"; then
19097                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
19098                    fi
19099                    if test "$acl_hardcode_minus_L" != no; then
19100                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19101                    else
19102                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
19103                    fi
19104                  fi
19105                fi
19106              fi
19107            else
19108              if test "X$found_a" != "X"; then
19109                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
19110              else
19111                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
19112              fi
19113            fi
19114                        additional_includedir=
19115            case "$found_dir" in
19116              */$acl_libdirstem | */$acl_libdirstem/)
19117                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
19118                if test "$name" = 'intl'; then
19119                  LIBINTL_PREFIX="$basedir"
19120                fi
19121                additional_includedir="$basedir/include"
19122                ;;
19123              */$acl_libdirstem2 | */$acl_libdirstem2/)
19124                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
19125                if test "$name" = 'intl'; then
19126                  LIBINTL_PREFIX="$basedir"
19127                fi
19128                additional_includedir="$basedir/include"
19129                ;;
19130            esac
19131            if test "X$additional_includedir" != "X"; then
19132                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
19133                haveit=
19134                if test "X$additional_includedir" = "X/usr/local/include"; then
19135                  if test -n "$GCC"; then
19136                    case $host_os in
19137                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19138                    esac
19139                  fi
19140                fi
19141                if test -z "$haveit"; then
19142                  for x in $CPPFLAGS $INCINTL; do
19143
19144  acl_save_prefix="$prefix"
19145  prefix="$acl_final_prefix"
19146  acl_save_exec_prefix="$exec_prefix"
19147  exec_prefix="$acl_final_exec_prefix"
19148  eval x=\"$x\"
19149  exec_prefix="$acl_save_exec_prefix"
19150  prefix="$acl_save_prefix"
19151
19152                    if test "X$x" = "X-I$additional_includedir"; then
19153                      haveit=yes
19154                      break
19155                    fi
19156                  done
19157                  if test -z "$haveit"; then
19158                    if test -d "$additional_includedir"; then
19159                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
19160                    fi
19161                  fi
19162                fi
19163              fi
19164            fi
19165                        if test -n "$found_la"; then
19166                                                        save_libdir="$libdir"
19167              case "$found_la" in
19168                */* | *\\*) . "$found_la" ;;
19169                *) . "./$found_la" ;;
19170              esac
19171              libdir="$save_libdir"
19172                            for dep in $dependency_libs; do
19173                case "$dep" in
19174                  -L*)
19175                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
19176                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
19177                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
19178                      haveit=
19179                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
19180                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
19181                        if test -n "$GCC"; then
19182                          case $host_os in
19183                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19184                          esac
19185                        fi
19186                      fi
19187                      if test -z "$haveit"; then
19188                        haveit=
19189                        for x in $LDFLAGS $LIBINTL; do
19190
19191  acl_save_prefix="$prefix"
19192  prefix="$acl_final_prefix"
19193  acl_save_exec_prefix="$exec_prefix"
19194  exec_prefix="$acl_final_exec_prefix"
19195  eval x=\"$x\"
19196  exec_prefix="$acl_save_exec_prefix"
19197  prefix="$acl_save_prefix"
19198
19199                          if test "X$x" = "X-L$additional_libdir"; then
19200                            haveit=yes
19201                            break
19202                          fi
19203                        done
19204                        if test -z "$haveit"; then
19205                          if test -d "$additional_libdir"; then
19206                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
19207                          fi
19208                        fi
19209                        haveit=
19210                        for x in $LDFLAGS $LTLIBINTL; do
19211
19212  acl_save_prefix="$prefix"
19213  prefix="$acl_final_prefix"
19214  acl_save_exec_prefix="$exec_prefix"
19215  exec_prefix="$acl_final_exec_prefix"
19216  eval x=\"$x\"
19217  exec_prefix="$acl_save_exec_prefix"
19218  prefix="$acl_save_prefix"
19219
19220                          if test "X$x" = "X-L$additional_libdir"; then
19221                            haveit=yes
19222                            break
19223                          fi
19224                        done
19225                        if test -z "$haveit"; then
19226                          if test -d "$additional_libdir"; then
19227                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
19228                          fi
19229                        fi
19230                      fi
19231                    fi
19232                    ;;
19233                  -R*)
19234                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
19235                    if test "$enable_rpath" != no; then
19236                                                                  haveit=
19237                      for x in $rpathdirs; do
19238                        if test "X$x" = "X$dir"; then
19239                          haveit=yes
19240                          break
19241                        fi
19242                      done
19243                      if test -z "$haveit"; then
19244                        rpathdirs="$rpathdirs $dir"
19245                      fi
19246                                                                  haveit=
19247                      for x in $ltrpathdirs; do
19248                        if test "X$x" = "X$dir"; then
19249                          haveit=yes
19250                          break
19251                        fi
19252                      done
19253                      if test -z "$haveit"; then
19254                        ltrpathdirs="$ltrpathdirs $dir"
19255                      fi
19256                    fi
19257                    ;;
19258                  -l*)
19259                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19260                    ;;
19261                  *.la)
19262                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19263                    ;;
19264                  *)
19265                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
19266                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
19267                    ;;
19268                esac
19269              done
19270            fi
19271          else
19272                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
19273            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
19274          fi
19275        fi
19276      fi
19277    done
19278  done
19279  if test "X$rpathdirs" != "X"; then
19280    if test -n "$acl_hardcode_libdir_separator"; then
19281                        alldirs=
19282      for found_dir in $rpathdirs; do
19283        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
19284      done
19285            acl_save_libdir="$libdir"
19286      libdir="$alldirs"
19287      eval flag=\"$acl_hardcode_libdir_flag_spec\"
19288      libdir="$acl_save_libdir"
19289      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
19290    else
19291            for found_dir in $rpathdirs; do
19292        acl_save_libdir="$libdir"
19293        libdir="$found_dir"
19294        eval flag=\"$acl_hardcode_libdir_flag_spec\"
19295        libdir="$acl_save_libdir"
19296        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
19297      done
19298    fi
19299  fi
19300  if test "X$ltrpathdirs" != "X"; then
19301            for found_dir in $ltrpathdirs; do
19302      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
19303    done
19304  fi
19305
19306
19307
19308
19309
19310
19311          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
19312$as_echo_n "checking for GNU gettext in libintl... " >&6; }
19313if eval \${$gt_func_gnugettext_libintl+:} false; then :
19314  $as_echo_n "(cached) " >&6
19315else
19316  gt_save_CPPFLAGS="$CPPFLAGS"
19317            CPPFLAGS="$CPPFLAGS $INCINTL"
19318            gt_save_LIBS="$LIBS"
19319            LIBS="$LIBS $LIBINTL"
19320                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19321/* end confdefs.h.  */
19322
19323#include <libintl.h>
19324#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
19325extern int _nl_msg_cat_cntr;
19326extern
19327#ifdef __cplusplus
19328"C"
19329#endif
19330const char *_nl_expand_alias (const char *);
19331#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
19332#else
19333#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
19334#endif
19335$gt_revision_test_code
19336
19337int
19338main ()
19339{
19340
19341bindtextdomain ("", "");
19342return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
19343
19344  ;
19345  return 0;
19346}
19347_ACEOF
19348if ac_fn_c_try_link "$LINENO"; then :
19349  eval "$gt_func_gnugettext_libintl=yes"
19350else
19351  eval "$gt_func_gnugettext_libintl=no"
19352fi
19353rm -f core conftest.err conftest.$ac_objext \
19354    conftest$ac_exeext conftest.$ac_ext
19355                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
19356              LIBS="$LIBS $LIBICONV"
19357              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19358/* end confdefs.h.  */
19359
19360#include <libintl.h>
19361#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
19362extern int _nl_msg_cat_cntr;
19363extern
19364#ifdef __cplusplus
19365"C"
19366#endif
19367const char *_nl_expand_alias (const char *);
19368#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
19369#else
19370#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
19371#endif
19372$gt_revision_test_code
19373
19374int
19375main ()
19376{
19377
19378bindtextdomain ("", "");
19379return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
19380
19381  ;
19382  return 0;
19383}
19384_ACEOF
19385if ac_fn_c_try_link "$LINENO"; then :
19386  LIBINTL="$LIBINTL $LIBICONV"
19387                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
19388                 eval "$gt_func_gnugettext_libintl=yes"
19389
19390fi
19391rm -f core conftest.err conftest.$ac_objext \
19392    conftest$ac_exeext conftest.$ac_ext
19393            fi
19394            CPPFLAGS="$gt_save_CPPFLAGS"
19395            LIBS="$gt_save_LIBS"
19396fi
19397eval ac_res=\$$gt_func_gnugettext_libintl
19398	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19399$as_echo "$ac_res" >&6; }
19400        fi
19401
19402                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
19403           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
19404                && test "$PACKAGE" != gettext-runtime \
19405                && test "$PACKAGE" != gettext-tools; }; then
19406          gt_use_preinstalled_gnugettext=yes
19407        else
19408                    LIBINTL=
19409          LTLIBINTL=
19410          INCINTL=
19411        fi
19412
19413
19414
19415    if test -n "$INTL_MACOSX_LIBS"; then
19416      if test "$gt_use_preinstalled_gnugettext" = "yes" \
19417         || test "$nls_cv_use_gnu_gettext" = "yes"; then
19418                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
19419        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
19420      fi
19421    fi
19422
19423    if test "$gt_use_preinstalled_gnugettext" = "yes" \
19424       || test "$nls_cv_use_gnu_gettext" = "yes"; then
19425
19426$as_echo "#define ENABLE_NLS 1" >>confdefs.h
19427
19428    else
19429      USE_NLS=no
19430    fi
19431  fi
19432
19433  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
19434$as_echo_n "checking whether to use NLS... " >&6; }
19435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
19436$as_echo "$USE_NLS" >&6; }
19437  if test "$USE_NLS" = "yes"; then
19438    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
19439$as_echo_n "checking where the gettext function comes from... " >&6; }
19440    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
19441      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
19442        gt_source="external libintl"
19443      else
19444        gt_source="libc"
19445      fi
19446    else
19447      gt_source="included intl directory"
19448    fi
19449    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
19450$as_echo "$gt_source" >&6; }
19451  fi
19452
19453  if test "$USE_NLS" = "yes"; then
19454
19455    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
19456      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
19457        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
19458$as_echo_n "checking how to link with libintl... " >&6; }
19459        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
19460$as_echo "$LIBINTL" >&6; }
19461
19462  for element in $INCINTL; do
19463    haveit=
19464    for x in $CPPFLAGS; do
19465
19466  acl_save_prefix="$prefix"
19467  prefix="$acl_final_prefix"
19468  acl_save_exec_prefix="$exec_prefix"
19469  exec_prefix="$acl_final_exec_prefix"
19470  eval x=\"$x\"
19471  exec_prefix="$acl_save_exec_prefix"
19472  prefix="$acl_save_prefix"
19473
19474      if test "X$x" = "X$element"; then
19475        haveit=yes
19476        break
19477      fi
19478    done
19479    if test -z "$haveit"; then
19480      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19481    fi
19482  done
19483
19484      fi
19485
19486
19487$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
19488
19489
19490$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
19491
19492    fi
19493
19494        POSUB=po
19495  fi
19496
19497
19498
19499    INTLLIBS="$LIBINTL"
19500
19501
19502
19503
19504
19505
19506
19507
19508# Extract the first word of "sane-config", so it can be a program name with args.
19509set dummy sane-config; ac_word=$2
19510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19511$as_echo_n "checking for $ac_word... " >&6; }
19512if ${ac_cv_path_SANE_CONFIG_PATH+:} false; then :
19513  $as_echo_n "(cached) " >&6
19514else
19515  case $SANE_CONFIG_PATH in
19516  [\\/]* | ?:[\\/]*)
19517  ac_cv_path_SANE_CONFIG_PATH="$SANE_CONFIG_PATH" # Let the user override the test with a path.
19518  ;;
19519  *)
19520  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19521for as_dir in $PATH
19522do
19523  IFS=$as_save_IFS
19524  test -z "$as_dir" && as_dir=.
19525    for ac_exec_ext in '' $ac_executable_extensions; do
19526  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19527    ac_cv_path_SANE_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
19528    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19529    break 2
19530  fi
19531done
19532  done
19533IFS=$as_save_IFS
19534
19535  test -z "$ac_cv_path_SANE_CONFIG_PATH" && ac_cv_path_SANE_CONFIG_PATH="no"
19536  ;;
19537esac
19538fi
19539SANE_CONFIG_PATH=$ac_cv_path_SANE_CONFIG_PATH
19540if test -n "$SANE_CONFIG_PATH"; then
19541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SANE_CONFIG_PATH" >&5
19542$as_echo "$SANE_CONFIG_PATH" >&6; }
19543else
19544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19545$as_echo "no" >&6; }
19546fi
19547
19548
19549
19550
19551
19552
19553
19554
19555
19556
19557if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19558	if test -n "$ac_tool_prefix"; then
19559  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19560set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19562$as_echo_n "checking for $ac_word... " >&6; }
19563if ${ac_cv_path_PKG_CONFIG+:} false; then :
19564  $as_echo_n "(cached) " >&6
19565else
19566  case $PKG_CONFIG in
19567  [\\/]* | ?:[\\/]*)
19568  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19569  ;;
19570  *)
19571  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19572for as_dir in $PATH
19573do
19574  IFS=$as_save_IFS
19575  test -z "$as_dir" && as_dir=.
19576    for ac_exec_ext in '' $ac_executable_extensions; do
19577  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19578    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19579    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19580    break 2
19581  fi
19582done
19583  done
19584IFS=$as_save_IFS
19585
19586  ;;
19587esac
19588fi
19589PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19590if test -n "$PKG_CONFIG"; then
19591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19592$as_echo "$PKG_CONFIG" >&6; }
19593else
19594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19595$as_echo "no" >&6; }
19596fi
19597
19598
19599fi
19600if test -z "$ac_cv_path_PKG_CONFIG"; then
19601  ac_pt_PKG_CONFIG=$PKG_CONFIG
19602  # Extract the first word of "pkg-config", so it can be a program name with args.
19603set dummy pkg-config; ac_word=$2
19604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19605$as_echo_n "checking for $ac_word... " >&6; }
19606if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19607  $as_echo_n "(cached) " >&6
19608else
19609  case $ac_pt_PKG_CONFIG in
19610  [\\/]* | ?:[\\/]*)
19611  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19612  ;;
19613  *)
19614  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19615for as_dir in $PATH
19616do
19617  IFS=$as_save_IFS
19618  test -z "$as_dir" && as_dir=.
19619    for ac_exec_ext in '' $ac_executable_extensions; do
19620  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19621    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19622    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19623    break 2
19624  fi
19625done
19626  done
19627IFS=$as_save_IFS
19628
19629  ;;
19630esac
19631fi
19632ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19633if test -n "$ac_pt_PKG_CONFIG"; then
19634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19635$as_echo "$ac_pt_PKG_CONFIG" >&6; }
19636else
19637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19638$as_echo "no" >&6; }
19639fi
19640
19641  if test "x$ac_pt_PKG_CONFIG" = x; then
19642    PKG_CONFIG=""
19643  else
19644    case $cross_compiling:$ac_tool_warned in
19645yes:)
19646{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19647$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19648ac_tool_warned=yes ;;
19649esac
19650    PKG_CONFIG=$ac_pt_PKG_CONFIG
19651  fi
19652else
19653  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19654fi
19655
19656fi
19657if test -n "$PKG_CONFIG"; then
19658	_pkg_min_version=0.9.0
19659	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19660$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19661	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19662		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19663$as_echo "yes" >&6; }
19664	else
19665		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19666$as_echo "no" >&6; }
19667		PKG_CONFIG=""
19668	fi
19669fi
19670
19671 if test x$cross_compiling = xyes; then
19672  CROSS_COMPILING_TRUE=
19673  CROSS_COMPILING_FALSE='#'
19674else
19675  CROSS_COMPILING_TRUE='#'
19676  CROSS_COMPILING_FALSE=
19677fi
19678
19679
19680
19681if test "${ac_cv_c_compiler_gnu}" = "yes"; then
19682  DEFAULT_WARNINGS="\
19683      -Wall"
19684  EXTRA_WARNINGS="\
19685      -Wextra \
19686      -pedantic"
19687
19688  for flag in $DEFAULT_WARNINGS; do
19689    case "$AM_CFLAGS" in
19690"$flag" | "$flag "* | *" $flag" | *" $flag "* )
19691  :
19692  ;;
19693*)
19694   AM_CFLAGS="$AM_CFLAGS $flag"
19695  ;;
19696esac
19697
19698    case "$AM_CXXFLAGS" in
19699"$flag" | "$flag "* | *" $flag" | *" $flag "* )
19700  :
19701  ;;
19702*)
19703   AM_CXXFLAGS="$AM_CXXFLAGS $flag"
19704  ;;
19705esac
19706
19707  done
19708
19709  # Check whether --enable-warnings was given.
19710if test "${enable_warnings+set}" = set; then :
19711  enableval=$enable_warnings;
19712      if eval "test x$enable_warnings = xyes"; then
19713        for flag in $EXTRA_WARNINGS; do
19714          case "$AM_CFLAGS" in
19715"$flag" | "$flag "* | *" $flag" | *" $flag "* )
19716  :
19717  ;;
19718*)
19719   AM_CFLAGS="$AM_CFLAGS $flag"
19720  ;;
19721esac
19722
19723          case "$AM_CXXFLAGS" in
19724"$flag" | "$flag "* | *" $flag" | *" $flag "* )
19725  :
19726  ;;
19727*)
19728   AM_CXXFLAGS="$AM_CXXFLAGS $flag"
19729  ;;
19730esac
19731
19732        done
19733      fi
19734
19735else
19736  if test x$is_release = xno; then
19737       # Warnings enabled by default (development)
19738       for flag in $EXTRA_WARNINGS; do
19739         case "$AM_CFLAGS" in
19740"$flag" | "$flag "* | *" $flag" | *" $flag "* )
19741  :
19742  ;;
19743*)
19744   AM_CFLAGS="$AM_CFLAGS $flag"
19745  ;;
19746esac
19747
19748         case "$AM_CXXFLAGS" in
19749"$flag" | "$flag "* | *" $flag" | *" $flag "* )
19750  :
19751  ;;
19752*)
19753   AM_CXXFLAGS="$AM_CXXFLAGS $flag"
19754  ;;
19755esac
19756
19757       done
19758    fi
19759fi
19760
19761fi # ac_cv_c_compiler_gnu
19762
19763  ax_cxx_compile_alternatives="11 0x"    ax_cxx_compile_cxx11_required=false
19764  ac_ext=cpp
19765ac_cpp='$CXXCPP $CPPFLAGS'
19766ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19767ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19768ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19769  ac_success=no
19770  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
19771$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
19772if ${ax_cv_cxx_compile_cxx11+:} false; then :
19773  $as_echo_n "(cached) " >&6
19774else
19775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19776/* end confdefs.h.  */
19777
19778
19779// If the compiler admits that it is not ready for C++11, why torture it?
19780// Hopefully, this will speed up the test.
19781
19782#ifndef __cplusplus
19783
19784#error "This is not a C++ compiler"
19785
19786#elif __cplusplus < 201103L
19787
19788#error "This is not a C++11 compiler"
19789
19790#else
19791
19792namespace cxx11
19793{
19794
19795  namespace test_static_assert
19796  {
19797
19798    template <typename T>
19799    struct check
19800    {
19801      static_assert(sizeof(int) <= sizeof(T), "not big enough");
19802    };
19803
19804  }
19805
19806  namespace test_final_override
19807  {
19808
19809    struct Base
19810    {
19811      virtual void f() {}
19812    };
19813
19814    struct Derived : public Base
19815    {
19816      virtual void f() override {}
19817    };
19818
19819  }
19820
19821  namespace test_double_right_angle_brackets
19822  {
19823
19824    template < typename T >
19825    struct check {};
19826
19827    typedef check<void> single_type;
19828    typedef check<check<void>> double_type;
19829    typedef check<check<check<void>>> triple_type;
19830    typedef check<check<check<check<void>>>> quadruple_type;
19831
19832  }
19833
19834  namespace test_decltype
19835  {
19836
19837    int
19838    f()
19839    {
19840      int a = 1;
19841      decltype(a) b = 2;
19842      return a + b;
19843    }
19844
19845  }
19846
19847  namespace test_type_deduction
19848  {
19849
19850    template < typename T1, typename T2 >
19851    struct is_same
19852    {
19853      static const bool value = false;
19854    };
19855
19856    template < typename T >
19857    struct is_same<T, T>
19858    {
19859      static const bool value = true;
19860    };
19861
19862    template < typename T1, typename T2 >
19863    auto
19864    add(T1 a1, T2 a2) -> decltype(a1 + a2)
19865    {
19866      return a1 + a2;
19867    }
19868
19869    int
19870    test(const int c, volatile int v)
19871    {
19872      static_assert(is_same<int, decltype(0)>::value == true, "");
19873      static_assert(is_same<int, decltype(c)>::value == false, "");
19874      static_assert(is_same<int, decltype(v)>::value == false, "");
19875      auto ac = c;
19876      auto av = v;
19877      auto sumi = ac + av + 'x';
19878      auto sumf = ac + av + 1.0;
19879      static_assert(is_same<int, decltype(ac)>::value == true, "");
19880      static_assert(is_same<int, decltype(av)>::value == true, "");
19881      static_assert(is_same<int, decltype(sumi)>::value == true, "");
19882      static_assert(is_same<int, decltype(sumf)>::value == false, "");
19883      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
19884      return (sumf > 0.0) ? sumi : add(c, v);
19885    }
19886
19887  }
19888
19889  namespace test_noexcept
19890  {
19891
19892    int f() { return 0; }
19893    int g() noexcept { return 0; }
19894
19895    static_assert(noexcept(f()) == false, "");
19896    static_assert(noexcept(g()) == true, "");
19897
19898  }
19899
19900  namespace test_constexpr
19901  {
19902
19903    template < typename CharT >
19904    unsigned long constexpr
19905    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
19906    {
19907      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
19908    }
19909
19910    template < typename CharT >
19911    unsigned long constexpr
19912    strlen_c(const CharT *const s) noexcept
19913    {
19914      return strlen_c_r(s, 0UL);
19915    }
19916
19917    static_assert(strlen_c("") == 0UL, "");
19918    static_assert(strlen_c("1") == 1UL, "");
19919    static_assert(strlen_c("example") == 7UL, "");
19920    static_assert(strlen_c("another\0example") == 7UL, "");
19921
19922  }
19923
19924  namespace test_rvalue_references
19925  {
19926
19927    template < int N >
19928    struct answer
19929    {
19930      static constexpr int value = N;
19931    };
19932
19933    answer<1> f(int&)       { return answer<1>(); }
19934    answer<2> f(const int&) { return answer<2>(); }
19935    answer<3> f(int&&)      { return answer<3>(); }
19936
19937    void
19938    test()
19939    {
19940      int i = 0;
19941      const int c = 0;
19942      static_assert(decltype(f(i))::value == 1, "");
19943      static_assert(decltype(f(c))::value == 2, "");
19944      static_assert(decltype(f(0))::value == 3, "");
19945    }
19946
19947  }
19948
19949  namespace test_uniform_initialization
19950  {
19951
19952    struct test
19953    {
19954      static const int zero {};
19955      static const int one {1};
19956    };
19957
19958    static_assert(test::zero == 0, "");
19959    static_assert(test::one == 1, "");
19960
19961  }
19962
19963  namespace test_lambdas
19964  {
19965
19966    void
19967    test1()
19968    {
19969      auto lambda1 = [](){};
19970      auto lambda2 = lambda1;
19971      lambda1();
19972      lambda2();
19973    }
19974
19975    int
19976    test2()
19977    {
19978      auto a = [](int i, int j){ return i + j; }(1, 2);
19979      auto b = []() -> int { return '0'; }();
19980      auto c = [=](){ return a + b; }();
19981      auto d = [&](){ return c; }();
19982      auto e = [a, &b](int x) mutable {
19983        const auto identity = [](int y){ return y; };
19984        for (auto i = 0; i < a; ++i)
19985          a += b--;
19986        return x + identity(a + b);
19987      }(0);
19988      return a + b + c + d + e;
19989    }
19990
19991    int
19992    test3()
19993    {
19994      const auto nullary = [](){ return 0; };
19995      const auto unary = [](int x){ return x; };
19996      using nullary_t = decltype(nullary);
19997      using unary_t = decltype(unary);
19998      const auto higher1st = [](nullary_t f){ return f(); };
19999      const auto higher2nd = [unary](nullary_t f1){
20000        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
20001      };
20002      return higher1st(nullary) + higher2nd(nullary)(unary);
20003    }
20004
20005  }
20006
20007  namespace test_variadic_templates
20008  {
20009
20010    template <int...>
20011    struct sum;
20012
20013    template <int N0, int... N1toN>
20014    struct sum<N0, N1toN...>
20015    {
20016      static constexpr auto value = N0 + sum<N1toN...>::value;
20017    };
20018
20019    template <>
20020    struct sum<>
20021    {
20022      static constexpr auto value = 0;
20023    };
20024
20025    static_assert(sum<>::value == 0, "");
20026    static_assert(sum<1>::value == 1, "");
20027    static_assert(sum<23>::value == 23, "");
20028    static_assert(sum<1, 2>::value == 3, "");
20029    static_assert(sum<5, 5, 11>::value == 21, "");
20030    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
20031
20032  }
20033
20034  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
20035  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
20036  // because of this.
20037  namespace test_template_alias_sfinae
20038  {
20039
20040    struct foo {};
20041
20042    template<typename T>
20043    using member = typename T::member_type;
20044
20045    template<typename T>
20046    void func(...) {}
20047
20048    template<typename T>
20049    void func(member<T>*) {}
20050
20051    void test();
20052
20053    void test() { func<foo>(0); }
20054
20055  }
20056
20057}  // namespace cxx11
20058
20059#endif  // __cplusplus >= 201103L
20060
20061
20062
20063_ACEOF
20064if ac_fn_cxx_try_compile "$LINENO"; then :
20065  ax_cv_cxx_compile_cxx11=yes
20066else
20067  ax_cv_cxx_compile_cxx11=no
20068fi
20069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20070fi
20071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
20072$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
20073  if test x$ax_cv_cxx_compile_cxx11 = xyes; then
20074    ac_success=yes
20075  fi
20076
20077
20078
20079    if test x$ac_success = xno; then
20080                for alternative in ${ax_cxx_compile_alternatives}; do
20081      for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
20082        cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
20083        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
20084$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
20085if eval \${$cachevar+:} false; then :
20086  $as_echo_n "(cached) " >&6
20087else
20088  ac_save_CXX="$CXX"
20089           CXX="$CXX $switch"
20090           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20091/* end confdefs.h.  */
20092
20093
20094// If the compiler admits that it is not ready for C++11, why torture it?
20095// Hopefully, this will speed up the test.
20096
20097#ifndef __cplusplus
20098
20099#error "This is not a C++ compiler"
20100
20101#elif __cplusplus < 201103L
20102
20103#error "This is not a C++11 compiler"
20104
20105#else
20106
20107namespace cxx11
20108{
20109
20110  namespace test_static_assert
20111  {
20112
20113    template <typename T>
20114    struct check
20115    {
20116      static_assert(sizeof(int) <= sizeof(T), "not big enough");
20117    };
20118
20119  }
20120
20121  namespace test_final_override
20122  {
20123
20124    struct Base
20125    {
20126      virtual void f() {}
20127    };
20128
20129    struct Derived : public Base
20130    {
20131      virtual void f() override {}
20132    };
20133
20134  }
20135
20136  namespace test_double_right_angle_brackets
20137  {
20138
20139    template < typename T >
20140    struct check {};
20141
20142    typedef check<void> single_type;
20143    typedef check<check<void>> double_type;
20144    typedef check<check<check<void>>> triple_type;
20145    typedef check<check<check<check<void>>>> quadruple_type;
20146
20147  }
20148
20149  namespace test_decltype
20150  {
20151
20152    int
20153    f()
20154    {
20155      int a = 1;
20156      decltype(a) b = 2;
20157      return a + b;
20158    }
20159
20160  }
20161
20162  namespace test_type_deduction
20163  {
20164
20165    template < typename T1, typename T2 >
20166    struct is_same
20167    {
20168      static const bool value = false;
20169    };
20170
20171    template < typename T >
20172    struct is_same<T, T>
20173    {
20174      static const bool value = true;
20175    };
20176
20177    template < typename T1, typename T2 >
20178    auto
20179    add(T1 a1, T2 a2) -> decltype(a1 + a2)
20180    {
20181      return a1 + a2;
20182    }
20183
20184    int
20185    test(const int c, volatile int v)
20186    {
20187      static_assert(is_same<int, decltype(0)>::value == true, "");
20188      static_assert(is_same<int, decltype(c)>::value == false, "");
20189      static_assert(is_same<int, decltype(v)>::value == false, "");
20190      auto ac = c;
20191      auto av = v;
20192      auto sumi = ac + av + 'x';
20193      auto sumf = ac + av + 1.0;
20194      static_assert(is_same<int, decltype(ac)>::value == true, "");
20195      static_assert(is_same<int, decltype(av)>::value == true, "");
20196      static_assert(is_same<int, decltype(sumi)>::value == true, "");
20197      static_assert(is_same<int, decltype(sumf)>::value == false, "");
20198      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
20199      return (sumf > 0.0) ? sumi : add(c, v);
20200    }
20201
20202  }
20203
20204  namespace test_noexcept
20205  {
20206
20207    int f() { return 0; }
20208    int g() noexcept { return 0; }
20209
20210    static_assert(noexcept(f()) == false, "");
20211    static_assert(noexcept(g()) == true, "");
20212
20213  }
20214
20215  namespace test_constexpr
20216  {
20217
20218    template < typename CharT >
20219    unsigned long constexpr
20220    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
20221    {
20222      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
20223    }
20224
20225    template < typename CharT >
20226    unsigned long constexpr
20227    strlen_c(const CharT *const s) noexcept
20228    {
20229      return strlen_c_r(s, 0UL);
20230    }
20231
20232    static_assert(strlen_c("") == 0UL, "");
20233    static_assert(strlen_c("1") == 1UL, "");
20234    static_assert(strlen_c("example") == 7UL, "");
20235    static_assert(strlen_c("another\0example") == 7UL, "");
20236
20237  }
20238
20239  namespace test_rvalue_references
20240  {
20241
20242    template < int N >
20243    struct answer
20244    {
20245      static constexpr int value = N;
20246    };
20247
20248    answer<1> f(int&)       { return answer<1>(); }
20249    answer<2> f(const int&) { return answer<2>(); }
20250    answer<3> f(int&&)      { return answer<3>(); }
20251
20252    void
20253    test()
20254    {
20255      int i = 0;
20256      const int c = 0;
20257      static_assert(decltype(f(i))::value == 1, "");
20258      static_assert(decltype(f(c))::value == 2, "");
20259      static_assert(decltype(f(0))::value == 3, "");
20260    }
20261
20262  }
20263
20264  namespace test_uniform_initialization
20265  {
20266
20267    struct test
20268    {
20269      static const int zero {};
20270      static const int one {1};
20271    };
20272
20273    static_assert(test::zero == 0, "");
20274    static_assert(test::one == 1, "");
20275
20276  }
20277
20278  namespace test_lambdas
20279  {
20280
20281    void
20282    test1()
20283    {
20284      auto lambda1 = [](){};
20285      auto lambda2 = lambda1;
20286      lambda1();
20287      lambda2();
20288    }
20289
20290    int
20291    test2()
20292    {
20293      auto a = [](int i, int j){ return i + j; }(1, 2);
20294      auto b = []() -> int { return '0'; }();
20295      auto c = [=](){ return a + b; }();
20296      auto d = [&](){ return c; }();
20297      auto e = [a, &b](int x) mutable {
20298        const auto identity = [](int y){ return y; };
20299        for (auto i = 0; i < a; ++i)
20300          a += b--;
20301        return x + identity(a + b);
20302      }(0);
20303      return a + b + c + d + e;
20304    }
20305
20306    int
20307    test3()
20308    {
20309      const auto nullary = [](){ return 0; };
20310      const auto unary = [](int x){ return x; };
20311      using nullary_t = decltype(nullary);
20312      using unary_t = decltype(unary);
20313      const auto higher1st = [](nullary_t f){ return f(); };
20314      const auto higher2nd = [unary](nullary_t f1){
20315        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
20316      };
20317      return higher1st(nullary) + higher2nd(nullary)(unary);
20318    }
20319
20320  }
20321
20322  namespace test_variadic_templates
20323  {
20324
20325    template <int...>
20326    struct sum;
20327
20328    template <int N0, int... N1toN>
20329    struct sum<N0, N1toN...>
20330    {
20331      static constexpr auto value = N0 + sum<N1toN...>::value;
20332    };
20333
20334    template <>
20335    struct sum<>
20336    {
20337      static constexpr auto value = 0;
20338    };
20339
20340    static_assert(sum<>::value == 0, "");
20341    static_assert(sum<1>::value == 1, "");
20342    static_assert(sum<23>::value == 23, "");
20343    static_assert(sum<1, 2>::value == 3, "");
20344    static_assert(sum<5, 5, 11>::value == 21, "");
20345    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
20346
20347  }
20348
20349  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
20350  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
20351  // because of this.
20352  namespace test_template_alias_sfinae
20353  {
20354
20355    struct foo {};
20356
20357    template<typename T>
20358    using member = typename T::member_type;
20359
20360    template<typename T>
20361    void func(...) {}
20362
20363    template<typename T>
20364    void func(member<T>*) {}
20365
20366    void test();
20367
20368    void test() { func<foo>(0); }
20369
20370  }
20371
20372}  // namespace cxx11
20373
20374#endif  // __cplusplus >= 201103L
20375
20376
20377
20378_ACEOF
20379if ac_fn_cxx_try_compile "$LINENO"; then :
20380  eval $cachevar=yes
20381else
20382  eval $cachevar=no
20383fi
20384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20385           CXX="$ac_save_CXX"
20386fi
20387eval ac_res=\$$cachevar
20388	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20389$as_echo "$ac_res" >&6; }
20390        if eval test x\$$cachevar = xyes; then
20391          CXX="$CXX $switch"
20392          if test -n "$CXXCPP" ; then
20393            CXXCPP="$CXXCPP $switch"
20394          fi
20395          ac_success=yes
20396          break
20397        fi
20398      done
20399      if test x$ac_success = xyes; then
20400        break
20401      fi
20402    done
20403  fi
20404  ac_ext=c
20405ac_cpp='$CPP $CPPFLAGS'
20406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20408ac_compiler_gnu=$ac_cv_c_compiler_gnu
20409
20410  if test x$ax_cxx_compile_cxx11_required = xtrue; then
20411    if test x$ac_success = xno; then
20412      as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
20413    fi
20414  fi
20415  if test x$ac_success = xno; then
20416    HAVE_CXX11=0
20417    { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
20418$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
20419  else
20420    HAVE_CXX11=1
20421
20422$as_echo "#define HAVE_CXX11 1" >>confdefs.h
20423
20424  fi
20425
20426
20427
20428
20429  # Define stricter linking policy on GNU systems.  This is not
20430  # added to global LDFLAGS because we may want to create convenience
20431  # libraries that don't require such strick linking.
20432  if test "$GCC" = yes; then
20433    case ${host_os} in
20434    linux* | solaris*)
20435      STRICT_LDFLAGS="-Wl,-z,defs"
20436      ;;
20437    esac
20438  fi
20439
20440  case "${host_os}" in
20441    aix*) #enable .so libraries, disable archives
20442      AM_LDFLAGS="$AM_LDFLAGS -Wl,-brtl"
20443      ;;
20444    darwin*) #include frameworks
20445      LIBS="$LIBS -framework CoreFoundation -framework IOKit"
20446      ;;
20447  esac
20448
20449
20450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
20451$as_echo_n "checking for library containing strerror... " >&6; }
20452if ${ac_cv_search_strerror+:} false; then :
20453  $as_echo_n "(cached) " >&6
20454else
20455  ac_func_search_save_LIBS=$LIBS
20456cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20457/* end confdefs.h.  */
20458
20459/* Override any GCC internal prototype to avoid an error.
20460   Use char because int might match the return type of a GCC
20461   builtin and then its argument prototype would still apply.  */
20462#ifdef __cplusplus
20463extern "C"
20464#endif
20465char strerror ();
20466int
20467main ()
20468{
20469return strerror ();
20470  ;
20471  return 0;
20472}
20473_ACEOF
20474for ac_lib in '' cposix; do
20475  if test -z "$ac_lib"; then
20476    ac_res="none required"
20477  else
20478    ac_res=-l$ac_lib
20479    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20480  fi
20481  if ac_fn_c_try_link "$LINENO"; then :
20482  ac_cv_search_strerror=$ac_res
20483fi
20484rm -f core conftest.err conftest.$ac_objext \
20485    conftest$ac_exeext
20486  if ${ac_cv_search_strerror+:} false; then :
20487  break
20488fi
20489done
20490if ${ac_cv_search_strerror+:} false; then :
20491
20492else
20493  ac_cv_search_strerror=no
20494fi
20495rm conftest.$ac_ext
20496LIBS=$ac_func_search_save_LIBS
20497fi
20498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
20499$as_echo "$ac_cv_search_strerror" >&6; }
20500ac_res=$ac_cv_search_strerror
20501if test "$ac_res" != no; then :
20502  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20503
20504fi
20505
20506
20507
20508ac_byteorder_h=`echo include/byteorder.h`
20509ac_dir=`echo $ac_byteorder_h|sed 's%/[^/][^/]*$%%'`
20510if test "$ac_dir" != "$ac_byteorder" && test "$ac_dir" != .; then
20511  # The file is in a subdirectory.
20512  test ! -d "$ac_dir" && mkdir "$ac_dir"
20513fi
20514
20515# We're only interested in the target CPU, but it's not always set
20516effective_target="$target"
20517if test "x$effective_target" = xNONE -o "x$effective_target" = x ; then
20518	effective_target="$host"
20519fi
20520
20521
20522ac_byteorder=_byteorder.tmp
20523cat > "$ac_byteorder" << EOF
20524/* This file is generated automatically by configure */
20525/* It is valid only for the system type ${effective_target} */
20526
20527#ifndef __BYTEORDER_H
20528#define __BYTEORDER_H
20529
20530EOF
20531
20532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
20533$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
20534if ${ac_cv_c_bigendian+:} false; then :
20535  $as_echo_n "(cached) " >&6
20536else
20537  ac_cv_c_bigendian=unknown
20538    # See if we're dealing with a universal compiler.
20539    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20540/* end confdefs.h.  */
20541#ifndef __APPLE_CC__
20542	       not a universal capable compiler
20543	     #endif
20544	     typedef int dummy;
20545
20546_ACEOF
20547if ac_fn_c_try_compile "$LINENO"; then :
20548
20549	# Check for potential -arch flags.  It is not universal unless
20550	# there are at least two -arch flags with different values.
20551	ac_arch=
20552	ac_prev=
20553	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
20554	 if test -n "$ac_prev"; then
20555	   case $ac_word in
20556	     i?86 | x86_64 | ppc | ppc64)
20557	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
20558		 ac_arch=$ac_word
20559	       else
20560		 ac_cv_c_bigendian=universal
20561		 break
20562	       fi
20563	       ;;
20564	   esac
20565	   ac_prev=
20566	 elif test "x$ac_word" = "x-arch"; then
20567	   ac_prev=arch
20568	 fi
20569       done
20570fi
20571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20572    if test $ac_cv_c_bigendian = unknown; then
20573      # See if sys/param.h defines the BYTE_ORDER macro.
20574      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20575/* end confdefs.h.  */
20576#include <sys/types.h>
20577	     #include <sys/param.h>
20578
20579int
20580main ()
20581{
20582#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
20583		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
20584		     && LITTLE_ENDIAN)
20585	      bogus endian macros
20586	     #endif
20587
20588  ;
20589  return 0;
20590}
20591_ACEOF
20592if ac_fn_c_try_compile "$LINENO"; then :
20593  # It does; now see whether it defined to BIG_ENDIAN or not.
20594	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20595/* end confdefs.h.  */
20596#include <sys/types.h>
20597		#include <sys/param.h>
20598
20599int
20600main ()
20601{
20602#if BYTE_ORDER != BIG_ENDIAN
20603		 not big endian
20604		#endif
20605
20606  ;
20607  return 0;
20608}
20609_ACEOF
20610if ac_fn_c_try_compile "$LINENO"; then :
20611  ac_cv_c_bigendian=yes
20612else
20613  ac_cv_c_bigendian=no
20614fi
20615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20616fi
20617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20618    fi
20619    if test $ac_cv_c_bigendian = unknown; then
20620      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
20621      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20622/* end confdefs.h.  */
20623#include <limits.h>
20624
20625int
20626main ()
20627{
20628#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20629	      bogus endian macros
20630	     #endif
20631
20632  ;
20633  return 0;
20634}
20635_ACEOF
20636if ac_fn_c_try_compile "$LINENO"; then :
20637  # It does; now see whether it defined to _BIG_ENDIAN or not.
20638	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20639/* end confdefs.h.  */
20640#include <limits.h>
20641
20642int
20643main ()
20644{
20645#ifndef _BIG_ENDIAN
20646		 not big endian
20647		#endif
20648
20649  ;
20650  return 0;
20651}
20652_ACEOF
20653if ac_fn_c_try_compile "$LINENO"; then :
20654  ac_cv_c_bigendian=yes
20655else
20656  ac_cv_c_bigendian=no
20657fi
20658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20659fi
20660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20661    fi
20662    if test $ac_cv_c_bigendian = unknown; then
20663      # Compile a test program.
20664      if test "$cross_compiling" = yes; then :
20665  # Try to guess by grepping values from an object file.
20666	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20667/* end confdefs.h.  */
20668short int ascii_mm[] =
20669		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20670		short int ascii_ii[] =
20671		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20672		int use_ascii (int i) {
20673		  return ascii_mm[i] + ascii_ii[i];
20674		}
20675		short int ebcdic_ii[] =
20676		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20677		short int ebcdic_mm[] =
20678		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20679		int use_ebcdic (int i) {
20680		  return ebcdic_mm[i] + ebcdic_ii[i];
20681		}
20682		extern int foo;
20683
20684int
20685main ()
20686{
20687return use_ascii (foo) == use_ebcdic (foo);
20688  ;
20689  return 0;
20690}
20691_ACEOF
20692if ac_fn_c_try_compile "$LINENO"; then :
20693  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20694	      ac_cv_c_bigendian=yes
20695	    fi
20696	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20697	      if test "$ac_cv_c_bigendian" = unknown; then
20698		ac_cv_c_bigendian=no
20699	      else
20700		# finding both strings is unlikely to happen, but who knows?
20701		ac_cv_c_bigendian=unknown
20702	      fi
20703	    fi
20704fi
20705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20706else
20707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20708/* end confdefs.h.  */
20709$ac_includes_default
20710int
20711main ()
20712{
20713
20714	     /* Are we little or big endian?  From Harbison&Steele.  */
20715	     union
20716	     {
20717	       long int l;
20718	       char c[sizeof (long int)];
20719	     } u;
20720	     u.l = 1;
20721	     return u.c[sizeof (long int) - 1] == 1;
20722
20723  ;
20724  return 0;
20725}
20726_ACEOF
20727if ac_fn_c_try_run "$LINENO"; then :
20728  ac_cv_c_bigendian=no
20729else
20730  ac_cv_c_bigendian=yes
20731fi
20732rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20733  conftest.$ac_objext conftest.beam conftest.$ac_ext
20734fi
20735
20736    fi
20737fi
20738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
20739$as_echo "$ac_cv_c_bigendian" >&6; }
20740 case $ac_cv_c_bigendian in #(
20741   yes)
20742     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
20743;; #(
20744   no)
20745      ;; #(
20746   universal)
20747
20748$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
20749
20750     ;; #(
20751   *)
20752     as_fn_error $? "unknown endianness
20753 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
20754 esac
20755
20756
20757
20758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for le32toh in machine/endian.h" >&5
20759$as_echo_n "checking for le32toh in machine/endian.h... " >&6; }
20760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20761/* end confdefs.h.  */
20762
20763#include <machine/endian.h>
20764#ifdef le32toh
20765 	symbol is present
20766#endif
20767
20768_ACEOF
20769if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20770  $EGREP "symbol is present|\<le32toh\>" >/dev/null 2>&1; then :
20771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20772$as_echo "yes" >&6; }
20773HAVE_LE32TOH=1
20774 cat >> "$ac_byteorder" << EOF
20775/* extended byte swapping macros are already available */
20776#include <machine/endian.h>
20777
20778EOF
20779
20780else
20781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20782$as_echo "no" >&6; }
20783
20784
20785
20786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ntohl in arpa/inet.h" >&5
20787$as_echo_n "checking for ntohl in arpa/inet.h... " >&6; }
20788cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20789/* end confdefs.h.  */
20790
20791#include <arpa/inet.h>
20792#ifdef ntohl
20793 	symbol is present
20794#endif
20795
20796_ACEOF
20797if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20798  $EGREP "symbol is present|\<ntohl\>" >/dev/null 2>&1; then :
20799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20800$as_echo "yes" >&6; }
20801cat >> "$ac_byteorder" << EOF
20802/* ntohl and relatives live here */
20803#include <arpa/inet.h>
20804
20805EOF
20806
20807else
20808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20809$as_echo "no" >&6; }
20810
20811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ntohl in netinet/in.h" >&5
20812$as_echo_n "checking for ntohl in netinet/in.h... " >&6; }
20813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20814/* end confdefs.h.  */
20815
20816#include <netinet/in.h>
20817#ifdef ntohl
20818 	symbol is present
20819#endif
20820
20821_ACEOF
20822if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20823  $EGREP "symbol is present|\<ntohl\>" >/dev/null 2>&1; then :
20824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20825$as_echo "yes" >&6; }
20826cat >> "$ac_byteorder" << EOF
20827/* ntohl and relatives live here */
20828#include <netinet/in.h>
20829
20830EOF
20831
20832else
20833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20834$as_echo "no" >&6; }
20835true
20836
20837fi
20838rm -f conftest*
20839
20840
20841fi
20842rm -f conftest*
20843
20844
20845
20846fi
20847rm -f conftest*
20848
20849
20850
20851
20852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for swap32 in machine/endian.h" >&5
20853$as_echo_n "checking for swap32 in machine/endian.h... " >&6; }
20854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20855/* end confdefs.h.  */
20856
20857#include <machine/endian.h>
20858#ifdef swap32
20859 	symbol is present
20860#endif
20861
20862_ACEOF
20863if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20864  $EGREP "symbol is present|\<swap32\>" >/dev/null 2>&1; then :
20865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20866$as_echo "yes" >&6; }
20867cat >> "$ac_byteorder" << EOF
20868/* swap32 and swap16 are defined in machine/endian.h */
20869
20870EOF
20871
20872else
20873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20874$as_echo "no" >&6; }
20875
20876
20877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap_32 in byteswap.h" >&5
20878$as_echo_n "checking for bswap_32 in byteswap.h... " >&6; }
20879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20880/* end confdefs.h.  */
20881
20882#include <byteswap.h>
20883#ifdef bswap_32
20884 	symbol is present
20885#endif
20886
20887_ACEOF
20888if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20889  $EGREP "symbol is present|\<bswap_32\>" >/dev/null 2>&1; then :
20890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20891$as_echo "yes" >&6; }
20892cat >> "$ac_byteorder" << EOF
20893/* Define generic byte swapping functions */
20894#include <byteswap.h>
20895#define swap16(x) bswap_16(x)
20896#define swap32(x) bswap_32(x)
20897#define swap64(x) bswap_64(x)
20898
20899EOF
20900
20901else
20902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20903$as_echo "no" >&6; }
20904
20905
20906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap32 in machine/endian.h" >&5
20907$as_echo_n "checking for bswap32 in machine/endian.h... " >&6; }
20908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20909/* end confdefs.h.  */
20910
20911#include <machine/endian.h>
20912#ifdef bswap32
20913 	symbol is present
20914#endif
20915
20916_ACEOF
20917if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20918  $EGREP "symbol is present|\<bswap32\>" >/dev/null 2>&1; then :
20919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20920$as_echo "yes" >&6; }
20921  	 cat >> "$ac_byteorder" << EOF
20922/* Define generic byte swapping functions */
20923EOF
20924	if test "$HAVE_LE32TOH" != "1"; then
20925		echo '#include <machine/endian.h>'>> "$ac_byteorder"
20926	fi
20927cat >> "$ac_byteorder" << EOF
20928#define swap16(x) bswap16(x)
20929#define swap32(x) bswap32(x)
20930#define swap64(x) bswap64(x)
20931
20932EOF
20933
20934else
20935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20936$as_echo "no" >&6; }
20937
20938
20939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __byte_swap_long in sys/types.h" >&5
20940$as_echo_n "checking for __byte_swap_long in sys/types.h... " >&6; }
20941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20942/* end confdefs.h.  */
20943
20944#include <sys/types.h>
20945#ifdef __byte_swap_long
20946 	symbol is present
20947#endif
20948
20949_ACEOF
20950if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20951  $EGREP "symbol is present|\<__byte_swap_long\>" >/dev/null 2>&1; then :
20952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20953$as_echo "yes" >&6; }
20954cat >> "$ac_byteorder" << EOF
20955/* Define generic byte swapping functions */
20956#include <sys/types.h>
20957#define swap16(x) __byte_swap_word(x)
20958#define swap32(x) __byte_swap_long(x)
20959/* No optimized 64 bit byte swapping macro is available */
20960#define swap64(x) ((uint64_t)(((uint64_t)(x) << 56) & 0xff00000000000000ULL | \\
20961			      ((uint64_t)(x) << 40) & 0x00ff000000000000ULL | \\
20962			      ((uint64_t)(x) << 24) & 0x0000ff0000000000ULL | \\
20963			      ((uint64_t)(x) << 8)  & 0x000000ff00000000ULL | \\
20964			      ((x) >> 8)  & 0x00000000ff000000ULL | \\
20965			      ((x) >> 24) & 0x0000000000ff0000ULL | \\
20966			      ((x) >> 40) & 0x000000000000ff00ULL | \\
20967			      ((x) >> 56) & 0x00000000000000ffULL))
20968
20969EOF
20970
20971else
20972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20973$as_echo "no" >&6; }
20974
20975
20976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NXSwapLong in machine/byte_order.h" >&5
20977$as_echo_n "checking for NXSwapLong in machine/byte_order.h... " >&6; }
20978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20979/* end confdefs.h.  */
20980
20981#include <machine/byte_order.h>
20982#ifdef NXSwapLong
20983 	symbol is present
20984#endif
20985
20986_ACEOF
20987if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20988  $EGREP "symbol is present|\<NXSwapLong\>" >/dev/null 2>&1; then :
20989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20990$as_echo "yes" >&6; }
20991cat >> "$ac_byteorder" << EOF
20992/* Define generic byte swapping functions */
20993#include <machine/byte_order.h>
20994#define swap16(x) NXSwapShort(x)
20995#define swap32(x) NXSwapLong(x)
20996#define swap64(x) NXSwapLongLong(x)
20997
20998EOF
20999
21000else
21001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21002$as_echo "no" >&6; }
21003
21004	if test $ac_cv_c_bigendian = yes; then
21005		cat >> "$ac_byteorder" << EOF
21006/* No other byte swapping functions are available on this big-endian system */
21007#define swap16(x)	((uint16_t)(((x) << 8) | ((uint16_t)(x) >> 8)))
21008#define swap32(x)	((uint32_t)(((uint32_t)(x) << 24) & 0xff000000UL | \\
21009				    ((uint32_t)(x) << 8)  & 0x00ff0000UL | \\
21010				    ((x) >> 8)  & 0x0000ff00UL | \\
21011				    ((x) >> 24) & 0x000000ffUL))
21012#define swap64(x) ((uint64_t)(((uint64_t)(x) << 56) & 0xff00000000000000ULL | \\
21013			      ((uint64_t)(x) << 40) & 0x00ff000000000000ULL | \\
21014			      ((uint64_t)(x) << 24) & 0x0000ff0000000000ULL | \\
21015			      ((uint64_t)(x) << 8)  & 0x000000ff00000000ULL | \\
21016			      ((x) >> 8)  & 0x00000000ff000000ULL | \\
21017			      ((x) >> 24) & 0x0000000000ff0000ULL | \\
21018			      ((x) >> 40) & 0x000000000000ff00ULL | \\
21019			      ((x) >> 56) & 0x00000000000000ffULL))
21020
21021EOF
21022	else
21023 cat >> "$ac_byteorder" << EOF
21024/* Use these as generic byteswapping macros on this little endian system */
21025#define swap16(x)		ntohs(x)
21026#define swap32(x)		ntohl(x)
21027/* No optimized 64 bit byte swapping macro is available */
21028#define swap64(x) ((uint64_t)(((uint64_t)(x) << 56) & 0xff00000000000000ULL | \\
21029			      ((uint64_t)(x) << 40) & 0x00ff000000000000ULL | \\
21030			      ((uint64_t)(x) << 24) & 0x0000ff0000000000ULL | \\
21031			      ((uint64_t)(x) << 8)  & 0x000000ff00000000ULL | \\
21032			      ((x) >> 8)  & 0x00000000ff000000ULL | \\
21033			      ((x) >> 24) & 0x0000000000ff0000ULL | \\
21034			      ((x) >> 40) & 0x000000000000ff00ULL | \\
21035			      ((x) >> 56) & 0x00000000000000ffULL))
21036
21037EOF
21038	fi
21039
21040
21041fi
21042rm -f conftest*
21043
21044
21045
21046fi
21047rm -f conftest*
21048
21049
21050
21051fi
21052rm -f conftest*
21053
21054
21055
21056fi
21057rm -f conftest*
21058
21059
21060
21061fi
21062rm -f conftest*
21063
21064
21065
21066
21067if test "$HAVE_LE32TOH" != "1"; then
21068 cat >> "$ac_byteorder" << EOF
21069/* The byte swapping macros have the form: */
21070/*   EENN[a]toh or htoEENN[a] where EE is be (big endian) or */
21071/* le (little-endian), NN is 16 or 32 (number of bits) and a, */
21072/* if present, indicates that the endian side is a pointer to an */
21073/* array of uint8_t bytes instead of an integer of the specified length. */
21074/* h refers to the host's ordering method. */
21075
21076/* So, to convert a 32-bit integer stored in a buffer in little-endian */
21077/* format into a uint32_t usable on this machine, you could use: */
21078/*   uint32_t value = le32atoh(&buf[3]); */
21079/* To put that value back into the buffer, you could use: */
21080/*   htole32a(&buf[3], value); */
21081
21082/* Define aliases for the standard byte swapping macros */
21083/* Arguments to these macros must be properly aligned on natural word */
21084/* boundaries in order to work properly on all architectures */
21085#ifndef htobe16
21086#define htobe16(x) htons(x)
21087#endif
21088#ifndef htobe32
21089#define htobe32(x) htonl(x)
21090#endif
21091#ifndef be16toh
21092#define be16toh(x) ntohs(x)
21093#endif
21094#ifndef be32toh
21095#define be32toh(x) ntohl(x)
21096#endif
21097
21098#define HTOBE16(x) (x) = htobe16(x)
21099#define HTOBE32(x) (x) = htobe32(x)
21100#define BE32TOH(x) (x) = be32toh(x)
21101#define BE16TOH(x) (x) = be16toh(x)
21102
21103EOF
21104
21105 if test $ac_cv_c_bigendian = yes; then
21106  cat >> "$ac_byteorder" << EOF
21107/* Define our own extended byte swapping macros for big-endian machines */
21108#ifndef htole16
21109#define htole16(x)      swap16(x)
21110#endif
21111#ifndef htole32
21112#define htole32(x)      swap32(x)
21113#endif
21114#ifndef le16toh
21115#define le16toh(x)      swap16(x)
21116#endif
21117#ifndef le32toh
21118#define le32toh(x)      swap32(x)
21119#endif
21120
21121#ifndef htobe64
21122#define htobe64(x)      (x)
21123#endif
21124#ifndef be64toh
21125#define be64toh(x)      (x)
21126#endif
21127
21128#define HTOLE16(x)      (x) = htole16(x)
21129#define HTOLE32(x)      (x) = htole32(x)
21130#define LE16TOH(x)      (x) = le16toh(x)
21131#define LE32TOH(x)      (x) = le32toh(x)
21132
21133#define HTOBE64(x)      (void) (x)
21134#define BE64TOH(x)      (void) (x)
21135
21136EOF
21137 else
21138  cat >> "$ac_byteorder" << EOF
21139/* On little endian machines, these macros are null */
21140#ifndef htole16
21141#define htole16(x)      (x)
21142#endif
21143#ifndef htole32
21144#define htole32(x)      (x)
21145#endif
21146#ifndef htole64
21147#define htole64(x)      (x)
21148#endif
21149#ifndef le16toh
21150#define le16toh(x)      (x)
21151#endif
21152#ifndef le32toh
21153#define le32toh(x)      (x)
21154#endif
21155#ifndef le64toh
21156#define le64toh(x)      (x)
21157#endif
21158
21159#define HTOLE16(x)      (void) (x)
21160#define HTOLE32(x)      (void) (x)
21161#define HTOLE64(x)      (void) (x)
21162#define LE16TOH(x)      (void) (x)
21163#define LE32TOH(x)      (void) (x)
21164#define LE64TOH(x)      (void) (x)
21165
21166/* These don't have standard aliases */
21167#ifndef htobe64
21168#define htobe64(x)      swap64(x)
21169#endif
21170#ifndef be64toh
21171#define be64toh(x)      swap64(x)
21172#endif
21173
21174#define HTOBE64(x)      (x) = htobe64(x)
21175#define BE64TOH(x)      (x) = be64toh(x)
21176
21177EOF
21178 fi
21179fi
21180
21181cat >> "$ac_byteorder" << EOF
21182/* Define the C99 standard length-specific integer types */
21183#include <_stdint.h>
21184
21185EOF
21186
21187case "${effective_target}" in
21188 i[3456]86-*)
21189  cat >> "$ac_byteorder" << EOF
21190/* Here are some macros to create integers from a byte array */
21191/* These are used to get and put integers from/into a uint8_t array */
21192/* with a specific endianness.  This is the most portable way to generate */
21193/* and read messages to a network or serial device.  Each member of a */
21194/* packet structure must be handled separately. */
21195
21196/* The i386 and compatibles can handle unaligned memory access, */
21197/* so use the optimized macros above to do this job */
21198#define be16atoh(x)     be16toh(*(uint16_t*)(x))
21199#define be32atoh(x)     be32toh(*(uint32_t*)(x))
21200#define be64atoh(x)     be64toh(*(uint64_t*)(x))
21201#define le16atoh(x)     le16toh(*(uint16_t*)(x))
21202#define le32atoh(x)     le32toh(*(uint32_t*)(x))
21203#define le64atoh(x)     le64toh(*(uint64_t*)(x))
21204
21205#define htobe16a(a,x)   *(uint16_t*)(a) = htobe16(x)
21206#define htobe32a(a,x)   *(uint32_t*)(a) = htobe32(x)
21207#define htobe64a(a,x)   *(uint64_t*)(a) = htobe64(x)
21208#define htole16a(a,x)   *(uint16_t*)(a) = htole16(x)
21209#define htole32a(a,x)   *(uint32_t*)(a) = htole32(x)
21210#define htole64a(a,x)   *(uint64_t*)(a) = htole64(x)
21211
21212EOF
21213  ;;
21214
21215 *)
21216  cat >> "$ac_byteorder" << EOF
21217/* Here are some macros to create integers from a byte array */
21218/* These are used to get and put integers from/into a uint8_t array */
21219/* with a specific endianness.  This is the most portable way to generate */
21220/* and read messages to a network or serial device.  Each member of a */
21221/* packet structure must be handled separately. */
21222
21223/* Non-optimized but portable macros */
21224#define be16atoh(x)     ((uint16_t)(((x)[0]<<8)|(x)[1]))
21225#define be32atoh(x)     ((uint32_t)(((x)[0]<<24)|((x)[1]<<16)|((x)[2]<<8)|(x)[3]))
21226#define be64atoh(x)     ((uint64_t)(((x)[0]<<56)|((x)[1]<<48)|((x)[2]<<40)| \\
21227        ((x)[3]<<32)|((x)[4]<<24)|((x)[5]<<16)|((x)[6]<<8)|(x)[7]))
21228#define le16atoh(x)     ((uint16_t)(((x)[1]<<8)|(x)[0]))
21229#define le32atoh(x)     ((uint32_t)(((x)[3]<<24)|((x)[2]<<16)|((x)[1]<<8)|(x)[0]))
21230#define le64atoh(x)     ((uint64_t)(((x)[7]<<56)|((x)[6]<<48)|((x)[5]<<40)| \\
21231        ((x)[4]<<32)|((x)[3]<<24)|((x)[2]<<16)|((x)[1]<<8)|(x)[0]))
21232
21233#define htobe16a(a,x)   (a)[0]=(uint8_t)((x)>>8), (a)[1]=(uint8_t)(x)
21234#define htobe32a(a,x)   (a)[0]=(uint8_t)((x)>>24), (a)[1]=(uint8_t)((x)>>16), \\
21235        (a)[2]=(uint8_t)((x)>>8), (a)[3]=(uint8_t)(x)
21236#define htobe64a(a,x)   (a)[0]=(uint8_t)((x)>>56), (a)[1]=(uint8_t)((x)>>48), \\
21237        (a)[2]=(uint8_t)((x)>>40), (a)[3]=(uint8_t)((x)>>32), \\
21238        (a)[4]=(uint8_t)((x)>>24), (a)[5]=(uint8_t)((x)>>16), \\
21239        (a)[6]=(uint8_t)((x)>>8), (a)[7]=(uint8_t)(x)
21240#define htole16a(a,x)   (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x)
21241#define htole32a(a,x)   (a)[3]=(uint8_t)((x)>>24), (a)[2]=(uint8_t)((x)>>16), \\
21242        (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x)
21243#define htole64a(a,x)   (a)[7]=(uint8_t)((x)>>56), (a)[6]=(uint8_t)((x)>>48), \\
21244        (a)[5]=(uint8_t)((x)>>40), (a)[4]=(uint8_t)((x)>>32), \\
21245        (a)[3]=(uint8_t)((x)>>24), (a)[2]=(uint8_t)((x)>>16), \\
21246        (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x)
21247
21248EOF
21249  ;;
21250esac
21251
21252
21253cat >> "$ac_byteorder" << EOF
21254#endif /*__BYTEORDER_H*/
21255EOF
21256
21257if cmp -s $ac_byteorder_h $ac_byteorder 2>/dev/null; then
21258  { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_byteorder_h is unchanged" >&5
21259$as_echo "$as_me: $ac_byteorder_h is unchanged" >&6;}
21260  rm $ac_byteorder
21261else
21262  rm -f $ac_byteorder_h
21263  mv $ac_byteorder $ac_byteorder_h
21264fi
21265
21266# ------ AX CREATE STDINT H -------------------------------------
21267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
21268$as_echo_n "checking for stdint types... " >&6; }
21269ac_stdint_h=`echo include/_stdint.h`
21270# try to shortcircuit - if the default include path of the compiler
21271# can find a "stdint.h" header then we assume that all compilers can.
21272if ${ac_cv_header_stdint_t+:} false; then :
21273  $as_echo_n "(cached) " >&6
21274else
21275
21276old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
21277old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
21278old_CFLAGS="$CFLAGS"     ; CFLAGS=""
21279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21280/* end confdefs.h.  */
21281#include <stdint.h>
21282int
21283main ()
21284{
21285int_least32_t v = 0;
21286  ;
21287  return 0;
21288}
21289_ACEOF
21290if ac_fn_c_try_compile "$LINENO"; then :
21291  ac_cv_stdint_result="(assuming C99 compatible system)"
21292 ac_cv_header_stdint_t="stdint.h";
21293else
21294  ac_cv_header_stdint_t=""
21295fi
21296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21297if test "$GCC" = "yes" && test ".$ac_cv_header_stdint_t" = "."; then
21298CFLAGS="-std=c99"
21299cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21300/* end confdefs.h.  */
21301#include <stdint.h>
21302int
21303main ()
21304{
21305int_least32_t v = 0;
21306  ;
21307  return 0;
21308}
21309_ACEOF
21310if ac_fn_c_try_compile "$LINENO"; then :
21311  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&5
21312$as_echo "$as_me: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&2;}
21313fi
21314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21315fi
21316CXXFLAGS="$old_CXXFLAGS"
21317CPPFLAGS="$old_CPPFLAGS"
21318CFLAGS="$old_CFLAGS"
21319fi
21320
21321
21322v="... $ac_cv_header_stdint_h"
21323if test "$ac_stdint_h" = "stdint.h" ; then
21324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
21325$as_echo "(are you sure you want them in ./stdint.h?)" >&6; }
21326elif test "$ac_stdint_h" = "inttypes.h" ; then
21327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
21328$as_echo "(are you sure you want them in ./inttypes.h?)" >&6; }
21329elif test "_$ac_cv_header_stdint_t" = "_" ; then
21330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
21331$as_echo "(putting them into $ac_stdint_h)$v" >&6; }
21332else
21333 ac_cv_header_stdint="$ac_cv_header_stdint_t"
21334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
21335$as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; }
21336fi
21337
21338if test "_$ac_cv_header_stdint_t" = "_" ; then # cannot shortcircuit..
21339
21340
21341inttype_headers=`echo  | sed -e 's/,/ /g'`
21342
21343ac_cv_stdint_result="(no helpful system typedefs seen)"
21344
21345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
21346$as_echo_n "checking for stdint uintptr_t... " >&6; }
21347if ${ac_cv_header_stdint_x+:} false; then :
21348  $as_echo_n "(cached) " >&6
21349else
21350
21351 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
21352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
21353$as_echo "(..)" >&6; }
21354  for i in    stdint.h inttypes.h sys/inttypes.h $inttype_headers
21355  do
21356   unset ac_cv_type_uintptr_t
21357   unset ac_cv_type_uint64_t
21358   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
21359"
21360if test "x$ac_cv_type_uintptr_t" = xyes; then :
21361  ac_cv_header_stdint_x=$i
21362else
21363  continue
21364fi
21365
21366   ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
21367"
21368if test "x$ac_cv_type_uint64_t" = xyes; then :
21369  and64="/uint64_t"
21370else
21371  and64=""
21372fi
21373
21374   ac_cv_stdint_result="(seen uintptr_t$and64 in $i)"
21375 break
21376  done
21377  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
21378$as_echo_n "checking for stdint uintptr_t... " >&6; }
21379
21380fi
21381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
21382$as_echo "$ac_cv_header_stdint_x" >&6; }
21383
21384
21385if test "_$ac_cv_header_stdint_x" = "_" ; then
21386
21387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
21388$as_echo_n "checking for stdint uint32_t... " >&6; }
21389if ${ac_cv_header_stdint_o+:} false; then :
21390  $as_echo_n "(cached) " >&6
21391else
21392
21393 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
21394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
21395$as_echo "(..)" >&6; }
21396  for i in    inttypes.h sys/inttypes.h stdint.h $inttype_headers
21397  do
21398   unset ac_cv_type_uint32_t
21399   unset ac_cv_type_uint64_t
21400   ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
21401"
21402if test "x$ac_cv_type_uint32_t" = xyes; then :
21403  ac_cv_header_stdint_o=$i
21404else
21405  continue
21406fi
21407
21408   ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
21409"
21410if test "x$ac_cv_type_uint64_t" = xyes; then :
21411  and64="/uint64_t"
21412else
21413  and64=""
21414fi
21415
21416   ac_cv_stdint_result="(seen uint32_t$and64 in $i)"
21417 break
21418   break;
21419  done
21420  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
21421$as_echo_n "checking for stdint uint32_t... " >&6; }
21422
21423fi
21424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
21425$as_echo "$ac_cv_header_stdint_o" >&6; }
21426
21427fi
21428
21429if test "_$ac_cv_header_stdint_x" = "_" ; then
21430if test "_$ac_cv_header_stdint_o" = "_" ; then
21431
21432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
21433$as_echo_n "checking for stdint u_int32_t... " >&6; }
21434if ${ac_cv_header_stdint_u+:} false; then :
21435  $as_echo_n "(cached) " >&6
21436else
21437
21438 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
21439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
21440$as_echo "(..)" >&6; }
21441  for i in    sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
21442   unset ac_cv_type_u_int32_t
21443   unset ac_cv_type_u_int64_t
21444   ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
21445"
21446if test "x$ac_cv_type_u_int32_t" = xyes; then :
21447  ac_cv_header_stdint_u=$i
21448else
21449  continue
21450fi
21451
21452   ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
21453"
21454if test "x$ac_cv_type_u_int64_t" = xyes; then :
21455  and64="/u_int64_t"
21456else
21457  and64=""
21458fi
21459
21460   ac_cv_stdint_result="(seen u_int32_t$and64 in $i)"
21461 break
21462   break;
21463  done
21464  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
21465$as_echo_n "checking for stdint u_int32_t... " >&6; }
21466
21467fi
21468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
21469$as_echo "$ac_cv_header_stdint_u" >&6; }
21470
21471fi fi
21472
21473if test "_$ac_cv_header_stdint_x" = "_" ; then
21474   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
21475$as_echo_n "checking for stdint datatype model... " >&6; }
21476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
21477$as_echo "(..)" >&6; }
21478
21479   # The cast to long int works around a bug in the HP C Compiler
21480# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21481# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21482# This bug is HP SR number 8606223364.
21483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
21484$as_echo_n "checking size of char... " >&6; }
21485if ${ac_cv_sizeof_char+:} false; then :
21486  $as_echo_n "(cached) " >&6
21487else
21488  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
21489
21490else
21491  if test "$ac_cv_type_char" = yes; then
21492     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21493$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21494as_fn_error 77 "cannot compute sizeof (char)
21495See \`config.log' for more details" "$LINENO" 5; }
21496   else
21497     ac_cv_sizeof_char=0
21498   fi
21499fi
21500
21501fi
21502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
21503$as_echo "$ac_cv_sizeof_char" >&6; }
21504
21505
21506
21507cat >>confdefs.h <<_ACEOF
21508#define SIZEOF_CHAR $ac_cv_sizeof_char
21509_ACEOF
21510
21511
21512   # The cast to long int works around a bug in the HP C Compiler
21513# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21514# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21515# This bug is HP SR number 8606223364.
21516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
21517$as_echo_n "checking size of short... " >&6; }
21518if ${ac_cv_sizeof_short+:} false; then :
21519  $as_echo_n "(cached) " >&6
21520else
21521  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
21522
21523else
21524  if test "$ac_cv_type_short" = yes; then
21525     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21526$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21527as_fn_error 77 "cannot compute sizeof (short)
21528See \`config.log' for more details" "$LINENO" 5; }
21529   else
21530     ac_cv_sizeof_short=0
21531   fi
21532fi
21533
21534fi
21535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
21536$as_echo "$ac_cv_sizeof_short" >&6; }
21537
21538
21539
21540cat >>confdefs.h <<_ACEOF
21541#define SIZEOF_SHORT $ac_cv_sizeof_short
21542_ACEOF
21543
21544
21545   # The cast to long int works around a bug in the HP C Compiler
21546# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21547# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21548# This bug is HP SR number 8606223364.
21549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
21550$as_echo_n "checking size of int... " >&6; }
21551if ${ac_cv_sizeof_int+:} false; then :
21552  $as_echo_n "(cached) " >&6
21553else
21554  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
21555
21556else
21557  if test "$ac_cv_type_int" = yes; then
21558     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21559$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21560as_fn_error 77 "cannot compute sizeof (int)
21561See \`config.log' for more details" "$LINENO" 5; }
21562   else
21563     ac_cv_sizeof_int=0
21564   fi
21565fi
21566
21567fi
21568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
21569$as_echo "$ac_cv_sizeof_int" >&6; }
21570
21571
21572
21573cat >>confdefs.h <<_ACEOF
21574#define SIZEOF_INT $ac_cv_sizeof_int
21575_ACEOF
21576
21577
21578   # The cast to long int works around a bug in the HP C Compiler
21579# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21580# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21581# This bug is HP SR number 8606223364.
21582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
21583$as_echo_n "checking size of long... " >&6; }
21584if ${ac_cv_sizeof_long+:} false; then :
21585  $as_echo_n "(cached) " >&6
21586else
21587  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
21588
21589else
21590  if test "$ac_cv_type_long" = yes; then
21591     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21592$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21593as_fn_error 77 "cannot compute sizeof (long)
21594See \`config.log' for more details" "$LINENO" 5; }
21595   else
21596     ac_cv_sizeof_long=0
21597   fi
21598fi
21599
21600fi
21601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
21602$as_echo "$ac_cv_sizeof_long" >&6; }
21603
21604
21605
21606cat >>confdefs.h <<_ACEOF
21607#define SIZEOF_LONG $ac_cv_sizeof_long
21608_ACEOF
21609
21610
21611   # The cast to long int works around a bug in the HP C Compiler
21612# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21613# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21614# This bug is HP SR number 8606223364.
21615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
21616$as_echo_n "checking size of void*... " >&6; }
21617if ${ac_cv_sizeof_voidp+:} false; then :
21618  $as_echo_n "(cached) " >&6
21619else
21620  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
21621
21622else
21623  if test "$ac_cv_type_voidp" = yes; then
21624     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21625$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21626as_fn_error 77 "cannot compute sizeof (void*)
21627See \`config.log' for more details" "$LINENO" 5; }
21628   else
21629     ac_cv_sizeof_voidp=0
21630   fi
21631fi
21632
21633fi
21634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
21635$as_echo "$ac_cv_sizeof_voidp" >&6; }
21636
21637
21638
21639cat >>confdefs.h <<_ACEOF
21640#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
21641_ACEOF
21642
21643
21644   ac_cv_char_data_model=""
21645   ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
21646   ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
21647   ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
21648   ac_cv_long_data_model=""
21649   ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
21650   ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
21651   ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
21652   { $as_echo "$as_me:${as_lineno-$LINENO}: checking data model" >&5
21653$as_echo_n "checking data model... " >&6; }
21654   case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
21655    122/242)     ac_cv_data_model="IP16"  ; n="standard 16bit machine" ;;
21656    122/244)     ac_cv_data_model="LP32"  ; n="standard 32bit machine" ;;
21657    122/*)       ac_cv_data_model="i16"   ; n="unusual int16 model" ;;
21658    124/444)     ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
21659    124/488)     ac_cv_data_model="LP64"  ; n="standard 64bit unixish" ;;
21660    124/448)     ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
21661    124/*)       ac_cv_data_model="i32"   ; n="unusual int32 model" ;;
21662    128/888)     ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
21663    128/*)       ac_cv_data_model="i64"   ; n="unusual int64 model" ;;
21664    222/*2)      ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
21665    333/*3)      ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
21666    444/*4)      ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
21667    666/*6)      ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
21668    888/*8)      ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
21669    222/*|333/*|444/*|666/*|888/*) :
21670                 ac_cv_data_model="iDSP"  ; n="unusual dsptype" ;;
21671     *)          ac_cv_data_model="none"  ; n="very unusual model" ;;
21672   esac
21673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
21674$as_echo "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; }
21675
21676fi
21677
21678if test "_$ac_cv_header_stdint_x" != "_" ; then
21679   ac_cv_header_stdint="$ac_cv_header_stdint_x"
21680elif  test "_$ac_cv_header_stdint_o" != "_" ; then
21681   ac_cv_header_stdint="$ac_cv_header_stdint_o"
21682elif  test "_$ac_cv_header_stdint_u" != "_" ; then
21683   ac_cv_header_stdint="$ac_cv_header_stdint_u"
21684else
21685   ac_cv_header_stdint="stddef.h"
21686fi
21687
21688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
21689$as_echo_n "checking for extra inttypes in chosen header... " >&6; }
21690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
21691$as_echo "($ac_cv_header_stdint)" >&6; }
21692unset ac_cv_type_int_least32_t
21693unset ac_cv_type_int_fast32_t
21694ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
21695"
21696if test "x$ac_cv_type_int_least32_t" = xyes; then :
21697
21698fi
21699
21700ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
21701"
21702if test "x$ac_cv_type_int_fast32_t" = xyes; then :
21703
21704fi
21705
21706ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
21707"
21708if test "x$ac_cv_type_intmax_t" = xyes; then :
21709
21710fi
21711
21712
21713fi # shortcircuit to system "stdint.h"
21714# ------------------ PREPARE VARIABLES ------------------------------
21715if test "$GCC" = "yes" ; then
21716ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
21717else
21718ac_cv_stdint_message="using $CC"
21719fi
21720
21721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
21722$as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
21723
21724# ----------------- DONE inttypes.h checks START header -------------
21725ac_config_commands="$ac_config_commands $ac_stdint_h"
21726
21727
21728
21729# Check whether --enable-dynamic was given.
21730if test "${enable_dynamic+set}" = set; then :
21731  enableval=$enable_dynamic; enable_dynamic=$enableval
21732else
21733  enable_dynamic=auto
21734fi
21735
21736
21737    DL_LIBS=""
21738  if test "${enable_dynamic}" = "auto"; then
21739      # default to disabled unless library found.
21740      enable_dynamic=no
21741      # dlopen
21742      for ac_header in dlfcn.h
21743do :
21744  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
21745if test "x$ac_cv_header_dlfcn_h" = xyes; then :
21746  cat >>confdefs.h <<_ACEOF
21747#define HAVE_DLFCN_H 1
21748_ACEOF
21749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
21750$as_echo_n "checking for dlopen in -ldl... " >&6; }
21751if ${ac_cv_lib_dl_dlopen+:} false; then :
21752  $as_echo_n "(cached) " >&6
21753else
21754  ac_check_lib_save_LIBS=$LIBS
21755LIBS="-ldl  $LIBS"
21756cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21757/* end confdefs.h.  */
21758
21759/* Override any GCC internal prototype to avoid an error.
21760   Use char because int might match the return type of a GCC
21761   builtin and then its argument prototype would still apply.  */
21762#ifdef __cplusplus
21763extern "C"
21764#endif
21765char dlopen ();
21766int
21767main ()
21768{
21769return dlopen ();
21770  ;
21771  return 0;
21772}
21773_ACEOF
21774if ac_fn_c_try_link "$LINENO"; then :
21775  ac_cv_lib_dl_dlopen=yes
21776else
21777  ac_cv_lib_dl_dlopen=no
21778fi
21779rm -f core conftest.err conftest.$ac_objext \
21780    conftest$ac_exeext conftest.$ac_ext
21781LIBS=$ac_check_lib_save_LIBS
21782fi
21783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
21784$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
21785if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
21786  DL_LIBS=-ldl
21787fi
21788
21789       saved_LIBS="${LIBS}"
21790       LIBS="${LIBS} ${DL_LIBS}"
21791       for ac_func in dlopen
21792do :
21793  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
21794if test "x$ac_cv_func_dlopen" = xyes; then :
21795  cat >>confdefs.h <<_ACEOF
21796#define HAVE_DLOPEN 1
21797_ACEOF
21798 enable_dynamic=yes
21799fi
21800done
21801
21802       LIBS="${saved_LIBS}"
21803
21804fi
21805
21806done
21807
21808      # HP/UX DLL handling
21809      for ac_header in dl.h
21810do :
21811  ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
21812if test "x$ac_cv_header_dl_h" = xyes; then :
21813  cat >>confdefs.h <<_ACEOF
21814#define HAVE_DL_H 1
21815_ACEOF
21816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
21817$as_echo_n "checking for shl_load in -ldld... " >&6; }
21818if ${ac_cv_lib_dld_shl_load+:} false; then :
21819  $as_echo_n "(cached) " >&6
21820else
21821  ac_check_lib_save_LIBS=$LIBS
21822LIBS="-ldld  $LIBS"
21823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21824/* end confdefs.h.  */
21825
21826/* Override any GCC internal prototype to avoid an error.
21827   Use char because int might match the return type of a GCC
21828   builtin and then its argument prototype would still apply.  */
21829#ifdef __cplusplus
21830extern "C"
21831#endif
21832char shl_load ();
21833int
21834main ()
21835{
21836return shl_load ();
21837  ;
21838  return 0;
21839}
21840_ACEOF
21841if ac_fn_c_try_link "$LINENO"; then :
21842  ac_cv_lib_dld_shl_load=yes
21843else
21844  ac_cv_lib_dld_shl_load=no
21845fi
21846rm -f core conftest.err conftest.$ac_objext \
21847    conftest$ac_exeext conftest.$ac_ext
21848LIBS=$ac_check_lib_save_LIBS
21849fi
21850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
21851$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
21852if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
21853  DL_LIBS=-ldld
21854fi
21855
21856       saved_LIBS="${LIBS}"
21857       LIBS="${LIBS} ${DL_LIBS}"
21858       for ac_func in shl_load
21859do :
21860  ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
21861if test "x$ac_cv_func_shl_load" = xyes; then :
21862  cat >>confdefs.h <<_ACEOF
21863#define HAVE_SHL_LOAD 1
21864_ACEOF
21865 enable_dynamic=yes
21866fi
21867done
21868
21869       LIBS="${saved_LIBS}"
21870
21871fi
21872
21873done
21874
21875      if test -z "$DL_LIBS" ; then
21876      # old Mac OS X/Darwin (without dlopen)
21877      for ac_header in mach-o/dyld.h
21878do :
21879  ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
21880if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then :
21881  cat >>confdefs.h <<_ACEOF
21882#define HAVE_MACH_O_DYLD_H 1
21883_ACEOF
21884 for ac_func in NSLinkModule
21885do :
21886  ac_fn_c_check_func "$LINENO" "NSLinkModule" "ac_cv_func_NSLinkModule"
21887if test "x$ac_cv_func_NSLinkModule" = xyes; then :
21888  cat >>confdefs.h <<_ACEOF
21889#define HAVE_NSLINKMODULE 1
21890_ACEOF
21891 enable_dynamic=yes
21892fi
21893done
21894
21895
21896fi
21897
21898done
21899
21900      fi
21901  fi
21902
21903
21904  DYNAMIC_FLAG=
21905  if test "${enable_dynamic}" = yes ; then
21906    DYNAMIC_FLAG=-module
21907  fi
21908
21909
21910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
21911$as_echo_n "checking for sqrt in -lm... " >&6; }
21912if ${ac_cv_lib_m_sqrt+:} false; then :
21913  $as_echo_n "(cached) " >&6
21914else
21915  ac_check_lib_save_LIBS=$LIBS
21916LIBS="-lm  $LIBS"
21917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21918/* end confdefs.h.  */
21919
21920/* Override any GCC internal prototype to avoid an error.
21921   Use char because int might match the return type of a GCC
21922   builtin and then its argument prototype would still apply.  */
21923#ifdef __cplusplus
21924extern "C"
21925#endif
21926char sqrt ();
21927int
21928main ()
21929{
21930return sqrt ();
21931  ;
21932  return 0;
21933}
21934_ACEOF
21935if ac_fn_c_try_link "$LINENO"; then :
21936  ac_cv_lib_m_sqrt=yes
21937else
21938  ac_cv_lib_m_sqrt=no
21939fi
21940rm -f core conftest.err conftest.$ac_objext \
21941    conftest$ac_exeext conftest.$ac_ext
21942LIBS=$ac_check_lib_save_LIBS
21943fi
21944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
21945$as_echo "$ac_cv_lib_m_sqrt" >&6; }
21946if test "x$ac_cv_lib_m_sqrt" = xyes; then :
21947  MATH_LIB="-lm"
21948fi
21949
21950
21951case ${host_os} in
21952  os2*)
21953  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -lsyslog" >&5
21954$as_echo_n "checking for syslog in -lsyslog... " >&6; }
21955if ${ac_cv_lib_syslog_syslog+:} false; then :
21956  $as_echo_n "(cached) " >&6
21957else
21958  ac_check_lib_save_LIBS=$LIBS
21959LIBS="-lsyslog  $LIBS"
21960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21961/* end confdefs.h.  */
21962
21963/* Override any GCC internal prototype to avoid an error.
21964   Use char because int might match the return type of a GCC
21965   builtin and then its argument prototype would still apply.  */
21966#ifdef __cplusplus
21967extern "C"
21968#endif
21969char syslog ();
21970int
21971main ()
21972{
21973return syslog ();
21974  ;
21975  return 0;
21976}
21977_ACEOF
21978if ac_fn_c_try_link "$LINENO"; then :
21979  ac_cv_lib_syslog_syslog=yes
21980else
21981  ac_cv_lib_syslog_syslog=no
21982fi
21983rm -f core conftest.err conftest.$ac_objext \
21984    conftest$ac_exeext conftest.$ac_ext
21985LIBS=$ac_check_lib_save_LIBS
21986fi
21987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_syslog_syslog" >&5
21988$as_echo "$ac_cv_lib_syslog_syslog" >&6; }
21989if test "x$ac_cv_lib_syslog_syslog" = xyes; then :
21990  SYSLOG_LIBS="-lsyslog"
21991fi
21992
21993  ;;
21994  beos*)
21995  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -lbe" >&5
21996$as_echo_n "checking for syslog in -lbe... " >&6; }
21997if ${ac_cv_lib_be_syslog+:} false; then :
21998  $as_echo_n "(cached) " >&6
21999else
22000  ac_check_lib_save_LIBS=$LIBS
22001LIBS="-lbe  $LIBS"
22002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22003/* end confdefs.h.  */
22004
22005/* Override any GCC internal prototype to avoid an error.
22006   Use char because int might match the return type of a GCC
22007   builtin and then its argument prototype would still apply.  */
22008#ifdef __cplusplus
22009extern "C"
22010#endif
22011char syslog ();
22012int
22013main ()
22014{
22015return syslog ();
22016  ;
22017  return 0;
22018}
22019_ACEOF
22020if ac_fn_c_try_link "$LINENO"; then :
22021  ac_cv_lib_be_syslog=yes
22022else
22023  ac_cv_lib_be_syslog=no
22024fi
22025rm -f core conftest.err conftest.$ac_objext \
22026    conftest$ac_exeext conftest.$ac_ext
22027LIBS=$ac_check_lib_save_LIBS
22028fi
22029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_be_syslog" >&5
22030$as_echo "$ac_cv_lib_be_syslog" >&6; }
22031if test "x$ac_cv_lib_be_syslog" = xyes; then :
22032  SYSLOG_LIBS="-lbe"
22033fi
22034
22035  ;;
22036esac
22037
22038
22039
22040  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_start_decompress in -ljpeg" >&5
22041$as_echo_n "checking for jpeg_start_decompress in -ljpeg... " >&6; }
22042if ${ac_cv_lib_jpeg_jpeg_start_decompress+:} false; then :
22043  $as_echo_n "(cached) " >&6
22044else
22045  ac_check_lib_save_LIBS=$LIBS
22046LIBS="-ljpeg  $LIBS"
22047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22048/* end confdefs.h.  */
22049
22050/* Override any GCC internal prototype to avoid an error.
22051   Use char because int might match the return type of a GCC
22052   builtin and then its argument prototype would still apply.  */
22053#ifdef __cplusplus
22054extern "C"
22055#endif
22056char jpeg_start_decompress ();
22057int
22058main ()
22059{
22060return jpeg_start_decompress ();
22061  ;
22062  return 0;
22063}
22064_ACEOF
22065if ac_fn_c_try_link "$LINENO"; then :
22066  ac_cv_lib_jpeg_jpeg_start_decompress=yes
22067else
22068  ac_cv_lib_jpeg_jpeg_start_decompress=no
22069fi
22070rm -f core conftest.err conftest.$ac_objext \
22071    conftest$ac_exeext conftest.$ac_ext
22072LIBS=$ac_check_lib_save_LIBS
22073fi
22074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
22075$as_echo "$ac_cv_lib_jpeg_jpeg_start_decompress" >&6; }
22076if test "x$ac_cv_lib_jpeg_jpeg_start_decompress" = xyes; then :
22077
22078    ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
22079if test "x$ac_cv_header_jconfig_h" = xyes; then :
22080
22081      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeglib - version >= 61 (6a)" >&5
22082$as_echo_n "checking for jpeglib - version >= 61 (6a)... " >&6; }
22083      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22084/* end confdefs.h.  */
22085
22086        #include <jpeglib.h>
22087        #if JPEG_LIB_VERSION >= 61
22088          sane_correct_jpeg_lib_version_found
22089        #endif
22090
22091_ACEOF
22092if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22093  $EGREP "sane_correct_jpeg_lib_version_found" >/dev/null 2>&1; then :
22094  sane_cv_use_libjpeg="yes"; JPEG_LIBS="-ljpeg";
22095      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22096$as_echo "yes" >&6; }
22097else
22098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22099$as_echo "no" >&6; }
22100fi
22101rm -f conftest*
22102
22103
22104fi
22105
22106
22107
22108fi
22109
22110  if test "$sane_cv_use_libjpeg" = "yes" ; then
22111
22112$as_echo "#define HAVE_LIBJPEG 1" >>confdefs.h
22113
22114  fi
22115
22116
22117
22118  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFFdOpen in -ltiff" >&5
22119$as_echo_n "checking for TIFFFdOpen in -ltiff... " >&6; }
22120if ${ac_cv_lib_tiff_TIFFFdOpen+:} false; then :
22121  $as_echo_n "(cached) " >&6
22122else
22123  ac_check_lib_save_LIBS=$LIBS
22124LIBS="-ltiff  $LIBS"
22125cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22126/* end confdefs.h.  */
22127
22128/* Override any GCC internal prototype to avoid an error.
22129   Use char because int might match the return type of a GCC
22130   builtin and then its argument prototype would still apply.  */
22131#ifdef __cplusplus
22132extern "C"
22133#endif
22134char TIFFFdOpen ();
22135int
22136main ()
22137{
22138return TIFFFdOpen ();
22139  ;
22140  return 0;
22141}
22142_ACEOF
22143if ac_fn_c_try_link "$LINENO"; then :
22144  ac_cv_lib_tiff_TIFFFdOpen=yes
22145else
22146  ac_cv_lib_tiff_TIFFFdOpen=no
22147fi
22148rm -f core conftest.err conftest.$ac_objext \
22149    conftest$ac_exeext conftest.$ac_ext
22150LIBS=$ac_check_lib_save_LIBS
22151fi
22152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFFdOpen" >&5
22153$as_echo "$ac_cv_lib_tiff_TIFFFdOpen" >&6; }
22154if test "x$ac_cv_lib_tiff_TIFFFdOpen" = xyes; then :
22155
22156    ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
22157if test "x$ac_cv_header_tiffio_h" = xyes; then :
22158  sane_cv_use_libtiff="yes"; TIFF_LIBS="-ltiff"
22159fi
22160
22161
22162
22163fi
22164
22165
22166
22167
22168  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_init_io in -lpng" >&5
22169$as_echo_n "checking for png_init_io in -lpng... " >&6; }
22170if ${ac_cv_lib_png_png_init_io+:} false; then :
22171  $as_echo_n "(cached) " >&6
22172else
22173  ac_check_lib_save_LIBS=$LIBS
22174LIBS="-lpng  $LIBS"
22175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22176/* end confdefs.h.  */
22177
22178/* Override any GCC internal prototype to avoid an error.
22179   Use char because int might match the return type of a GCC
22180   builtin and then its argument prototype would still apply.  */
22181#ifdef __cplusplus
22182extern "C"
22183#endif
22184char png_init_io ();
22185int
22186main ()
22187{
22188return png_init_io ();
22189  ;
22190  return 0;
22191}
22192_ACEOF
22193if ac_fn_c_try_link "$LINENO"; then :
22194  ac_cv_lib_png_png_init_io=yes
22195else
22196  ac_cv_lib_png_png_init_io=no
22197fi
22198rm -f core conftest.err conftest.$ac_objext \
22199    conftest$ac_exeext conftest.$ac_ext
22200LIBS=$ac_check_lib_save_LIBS
22201fi
22202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_init_io" >&5
22203$as_echo "$ac_cv_lib_png_png_init_io" >&6; }
22204if test "x$ac_cv_lib_png_png_init_io" = xyes; then :
22205
22206    ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
22207if test "x$ac_cv_header_png_h" = xyes; then :
22208  sane_cv_use_libpng="yes"; PNG_LIBS="-lpng"
22209fi
22210
22211
22212
22213fi
22214
22215  if test "$sane_cv_use_libpng" = "yes" ; then
22216
22217$as_echo "#define HAVE_LIBPNG 1" >>confdefs.h
22218
22219  fi
22220
22221
22222
22223  ac_fn_c_check_header_mongrel "$LINENO" "ieee1284.h" "ac_cv_header_ieee1284_h" "$ac_includes_default"
22224if test "x$ac_cv_header_ieee1284_h" = xyes; then :
22225
22226    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libieee1284 >= 0.1.5" >&5
22227$as_echo_n "checking for libieee1284 >= 0.1.5... " >&6; }
22228if ${sane_cv_use_libieee1284+:} false; then :
22229  $as_echo_n "(cached) " >&6
22230else
22231
22232      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22233/* end confdefs.h.  */
22234#include <ieee1284.h>
22235int
22236main ()
22237{
22238
22239	struct parport p; char *buf;
22240	ieee1284_nibble_read(&p, 0, buf, 1);
22241
22242  ;
22243  return 0;
22244}
22245_ACEOF
22246if ac_fn_c_try_compile "$LINENO"; then :
22247  sane_cv_use_libieee1284="yes"; IEEE1284_LIBS="-lieee1284"
22248
22249else
22250  sane_cv_use_libieee1284="no"
22251fi
22252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22253
22254fi
22255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_cv_use_libieee1284" >&5
22256$as_echo "$sane_cv_use_libieee1284" >&6; }
22257
22258fi
22259
22260
22261  if test "$sane_cv_use_libieee1284" = "yes" ; then
22262
22263$as_echo "#define HAVE_LIBIEEE1284 1" >>confdefs.h
22264
22265  fi
22266
22267
22268
22269
22270  case "${host_os}" in
22271  linux* | darwin* | mingw*) # enabled by default on Linux, MacOS X and MINGW
22272    use_pthread=yes
22273    ;;
22274  *)
22275    use_pthread=no
22276  esac
22277  have_pthread=no
22278
22279  #
22280  # now that we have the systems preferences, we check
22281  # the user
22282
22283  # Check whether --enable-pthread was given.
22284if test "${enable_pthread+set}" = set; then :
22285  enableval=$enable_pthread;
22286      if test $enableval = yes ; then
22287        use_pthread=yes
22288      else
22289        use_pthread=no
22290      fi
22291
22292fi
22293
22294
22295  if test $use_pthread = yes ; then
22296  for ac_header in pthread.h
22297do :
22298  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
22299if test "x$ac_cv_header_pthread_h" = xyes; then :
22300  cat >>confdefs.h <<_ACEOF
22301#define HAVE_PTHREAD_H 1
22302_ACEOF
22303
22304       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
22305$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
22306if ${ac_cv_lib_pthread_pthread_create+:} false; then :
22307  $as_echo_n "(cached) " >&6
22308else
22309  ac_check_lib_save_LIBS=$LIBS
22310LIBS="-lpthread  $LIBS"
22311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22312/* end confdefs.h.  */
22313
22314/* Override any GCC internal prototype to avoid an error.
22315   Use char because int might match the return type of a GCC
22316   builtin and then its argument prototype would still apply.  */
22317#ifdef __cplusplus
22318extern "C"
22319#endif
22320char pthread_create ();
22321int
22322main ()
22323{
22324return pthread_create ();
22325  ;
22326  return 0;
22327}
22328_ACEOF
22329if ac_fn_c_try_link "$LINENO"; then :
22330  ac_cv_lib_pthread_pthread_create=yes
22331else
22332  ac_cv_lib_pthread_pthread_create=no
22333fi
22334rm -f core conftest.err conftest.$ac_objext \
22335    conftest$ac_exeext conftest.$ac_ext
22336LIBS=$ac_check_lib_save_LIBS
22337fi
22338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
22339$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
22340if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
22341  PTHREAD_LIBS="-lpthread"
22342fi
22343
22344       have_pthread=yes
22345       save_LIBS="$LIBS"
22346       LIBS="$LIBS $PTHREAD_LIBS"
22347       for ac_func in pthread_create pthread_kill pthread_join pthread_detach pthread_cancel pthread_testcancel
22348do :
22349  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22350ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22351if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22352  cat >>confdefs.h <<_ACEOF
22353#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22354_ACEOF
22355
22356else
22357   have_pthread=no; use_pthread=no
22358fi
22359done
22360
22361       LIBS="$save_LIBS"
22362
22363else
22364   have_pthread=no; use_pthread=no
22365fi
22366
22367done
22368
22369  fi
22370
22371  # Based on a similar test for pthread_key_t from the Python project.
22372  # See https://bugs.python.org/review/25658/patch/19209/75870
22373  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_t is integer" >&5
22374$as_echo_n "checking whether pthread_t is integer... " >&6; }
22375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22376/* end confdefs.h.  */
22377#include <pthread.h>
22378int
22379main ()
22380{
22381pthread_t k; k = (pthread_t) -1;
22382  ;
22383  return 0;
22384}
22385_ACEOF
22386if ac_fn_c_try_compile "$LINENO"; then :
22387  ac_pthread_t_is_integer=yes
22388else
22389  ac_pthread_t_is_integer=no
22390
22391fi
22392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pthread_t_is_integer" >&5
22394$as_echo "$ac_pthread_t_is_integer" >&6; }
22395  if test "$ac_pthread_t_is_integer" = yes ; then
22396
22397$as_echo "#define PTHREAD_T_IS_INTEGER 1" >>confdefs.h
22398
22399  else
22400    # Until the sanei_thread implementation is fixed.
22401    use_pthread=no
22402  fi
22403
22404  if test "$have_pthread" = "yes" ; then
22405    AM_CPPFLAGS="${AM_CPPFLAGS} -D_REENTRANT"
22406  fi
22407
22408
22409  if test $use_pthread = yes ; then
22410
22411cat >>confdefs.h <<_ACEOF
22412#define USE_PTHREAD "$use_pthread"
22413_ACEOF
22414
22415    SANEI_THREAD_LIBS=$PTHREAD_LIBS
22416  else
22417    SANEI_THREAD_LIBS=""
22418  fi
22419
22420  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable pthread support" >&5
22421$as_echo_n "checking whether to enable pthread support... " >&6; }
22422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5
22423$as_echo "$have_pthread" >&6; }
22424  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use pthread instead of fork" >&5
22425$as_echo_n "checking whether to use pthread instead of fork... " >&6; }
22426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthread" >&5
22427$as_echo "$use_pthread" >&6; }
22428
22429
22430  LOCKPATH_GROUP=uucp
22431  use_locking=yes
22432  case "${host_os}" in
22433    os2* )
22434      use_locking=no
22435      ;;
22436  esac
22437
22438  #
22439  # we check the user
22440  # Check whether --enable-locking was given.
22441if test "${enable_locking+set}" = set; then :
22442  enableval=$enable_locking;
22443      if test $enableval = yes ; then
22444        use_locking=yes
22445      else
22446        use_locking=no
22447      fi
22448
22449fi
22450
22451  if test $use_locking = yes ; then
22452
22453# Check whether --with-group was given.
22454if test "${with_group+set}" = set; then :
22455  withval=$with_group; LOCKPATH_GROUP="$withval"
22456
22457fi
22458
22459    # check if the group does exist
22460    lasterror=""
22461    touch sanetest.file
22462    chgrp $LOCKPATH_GROUP sanetest.file 2>/dev/null || lasterror=$?
22463    rm -f sanetest.file
22464    if test ! -z "$lasterror"; then
22465      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Group $LOCKPATH_GROUP does not exist on this system." >&5
22466$as_echo "$as_me: WARNING: Group $LOCKPATH_GROUP does not exist on this system." >&2;}
22467      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Locking feature will be disabled." >&5
22468$as_echo "$as_me: WARNING: Locking feature will be disabled." >&2;}
22469      use_locking=no
22470    fi
22471  fi
22472  if test $use_locking = yes ; then
22473    INSTALL_LOCKPATH=install-lockpath
22474
22475$as_echo "#define ENABLE_LOCKING 1" >>confdefs.h
22476
22477  else
22478    INSTALL_LOCKPATH=
22479  fi
22480  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable device locking" >&5
22481$as_echo_n "checking whether to enable device locking... " >&6; }
22482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_locking" >&5
22483$as_echo "$use_locking" >&6; }
22484  if test $use_locking = yes ; then
22485    { $as_echo "$as_me:${as_lineno-$LINENO}: Setting lockdir group to $LOCKPATH_GROUP" >&5
22486$as_echo "$as_me: Setting lockdir group to $LOCKPATH_GROUP" >&6;}
22487  fi
22488
22489
22490
22491
22492
22493# Check whether --with-gphoto2 was given.
22494if test "${with_gphoto2+set}" = set; then :
22495  withval=$with_gphoto2; # If --with-gphoto2=no or --without-gphoto2, disable backend
22496               # as "$with_gphoto2" will be set to "no"
22497fi
22498
22499
22500  # If --with-gphoto2=yes (or not supplied), first check if
22501  # pkg-config exists, then use it to check if libgphoto2 is
22502  # present.  If all that works, then see if we can actually link
22503  # a program.   And, if that works, then add the -l flags to
22504  # GPHOTO2_LIBS and any other flags to GPHOTO2_LDFLAGS to pass to
22505  # sane-config.
22506  if test "$with_gphoto2" != "no" ; then
22507    if test -n "$ac_tool_prefix"; then
22508  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22509set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22511$as_echo_n "checking for $ac_word... " >&6; }
22512if ${ac_cv_prog_HAVE_GPHOTO2+:} false; then :
22513  $as_echo_n "(cached) " >&6
22514else
22515  if test -n "$HAVE_GPHOTO2"; then
22516  ac_cv_prog_HAVE_GPHOTO2="$HAVE_GPHOTO2" # Let the user override the test.
22517else
22518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22519for as_dir in $PATH
22520do
22521  IFS=$as_save_IFS
22522  test -z "$as_dir" && as_dir=.
22523    for ac_exec_ext in '' $ac_executable_extensions; do
22524  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22525    ac_cv_prog_HAVE_GPHOTO2="${ac_tool_prefix}pkg-config"
22526    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22527    break 2
22528  fi
22529done
22530  done
22531IFS=$as_save_IFS
22532
22533fi
22534fi
22535HAVE_GPHOTO2=$ac_cv_prog_HAVE_GPHOTO2
22536if test -n "$HAVE_GPHOTO2"; then
22537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GPHOTO2" >&5
22538$as_echo "$HAVE_GPHOTO2" >&6; }
22539else
22540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22541$as_echo "no" >&6; }
22542fi
22543
22544
22545fi
22546if test -z "$ac_cv_prog_HAVE_GPHOTO2"; then
22547  ac_ct_HAVE_GPHOTO2=$HAVE_GPHOTO2
22548  # Extract the first word of "pkg-config", so it can be a program name with args.
22549set dummy pkg-config; ac_word=$2
22550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22551$as_echo_n "checking for $ac_word... " >&6; }
22552if ${ac_cv_prog_ac_ct_HAVE_GPHOTO2+:} false; then :
22553  $as_echo_n "(cached) " >&6
22554else
22555  if test -n "$ac_ct_HAVE_GPHOTO2"; then
22556  ac_cv_prog_ac_ct_HAVE_GPHOTO2="$ac_ct_HAVE_GPHOTO2" # Let the user override the test.
22557else
22558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22559for as_dir in $PATH
22560do
22561  IFS=$as_save_IFS
22562  test -z "$as_dir" && as_dir=.
22563    for ac_exec_ext in '' $ac_executable_extensions; do
22564  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22565    ac_cv_prog_ac_ct_HAVE_GPHOTO2="pkg-config"
22566    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22567    break 2
22568  fi
22569done
22570  done
22571IFS=$as_save_IFS
22572
22573fi
22574fi
22575ac_ct_HAVE_GPHOTO2=$ac_cv_prog_ac_ct_HAVE_GPHOTO2
22576if test -n "$ac_ct_HAVE_GPHOTO2"; then
22577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_HAVE_GPHOTO2" >&5
22578$as_echo "$ac_ct_HAVE_GPHOTO2" >&6; }
22579else
22580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22581$as_echo "no" >&6; }
22582fi
22583
22584  if test "x$ac_ct_HAVE_GPHOTO2" = x; then
22585    HAVE_GPHOTO2="false"
22586  else
22587    case $cross_compiling:$ac_tool_warned in
22588yes:)
22589{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22590$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22591ac_tool_warned=yes ;;
22592esac
22593    HAVE_GPHOTO2=$ac_ct_HAVE_GPHOTO2
22594  fi
22595else
22596  HAVE_GPHOTO2="$ac_cv_prog_HAVE_GPHOTO2"
22597fi
22598
22599
22600    if test ${HAVE_GPHOTO2} != "false" ; then
22601      if pkg-config --exists libgphoto2 ; then
22602        with_gphoto2="`pkg-config --modversion libgphoto2`"
22603	GPHOTO2_CPPFLAGS="`pkg-config --cflags libgphoto2`"
22604        GPHOTO2_LIBS="`pkg-config --libs libgphoto2`"
22605
22606        saved_CPPFLAGS="${CPPFLAGS}"
22607        CPPFLAGS="${GPHOTO2_CPPFLAGS}"
22608	saved_LIBS="${LIBS}"
22609	LIBS="${LIBS} ${GPHOTO2_LIBS}"
22610 	# Make sure we an really use the library
22611        for ac_func in gp_camera_init
22612do :
22613  ac_fn_c_check_func "$LINENO" "gp_camera_init" "ac_cv_func_gp_camera_init"
22614if test "x$ac_cv_func_gp_camera_init" = xyes; then :
22615  cat >>confdefs.h <<_ACEOF
22616#define HAVE_GP_CAMERA_INIT 1
22617_ACEOF
22618 HAVE_GPHOTO2=true
22619else
22620  HAVE_GPHOTO2=false
22621fi
22622done
22623
22624	if test "${HAVE_GPHOTO2}" = "true"; then
22625	  for ac_func in gp_port_info_get_path
22626do :
22627  ac_fn_c_check_func "$LINENO" "gp_port_info_get_path" "ac_cv_func_gp_port_info_get_path"
22628if test "x$ac_cv_func_gp_port_info_get_path" = xyes; then :
22629  cat >>confdefs.h <<_ACEOF
22630#define HAVE_GP_PORT_INFO_GET_PATH 1
22631_ACEOF
22632
22633fi
22634done
22635
22636	fi
22637	CPPFLAGS="${saved_CPPFLAGS}"
22638        LIBS="${saved_LIBS}"
22639      else
22640        HAVE_GPHOTO2=false
22641      fi
22642      if test "${HAVE_GPHOTO2}" = "false"; then
22643        GPHOTO2_CPPFLAGS=""
22644        GPHOTO2_LIBS=""
22645      else
22646
22647    tmp_LIBS=""
22648    for param in ${GPHOTO2_LIBS}; do
22649        case "${param}" in
22650	-l*)
22651         tmp_LIBS="${tmp_LIBS} ${param}"
22652	 ;;
22653	 *)
22654         GPHOTO2_LDFLAGS="${GPHOTO2_LDFLAGS} ${param}"
22655	 ;;
22656	 esac
22657     done
22658     GPHOTO2_LIBS="${tmp_LIBS}"
22659     unset tmp_LIBS
22660     unset param
22661
22662        if pkg-config --atleast-version=2.5.0 libgphoto2; then
22663
22664$as_echo "#define GPLOGFUNC_NO_VARGS 1" >>confdefs.h
22665
22666        fi
22667      fi
22668    fi
22669  fi
22670
22671
22672
22673
22674
22675
22676
22677# Check whether --with-v4l was given.
22678if test "${with_v4l+set}" = set; then :
22679  withval=$with_v4l; # If --with-v4l=no or --without-v4l, disable backend
22680             # as "$with_v4l" will be set to "no"
22681fi
22682
22683
22684if test "$with_v4l" != "no" ; then
22685
22686pkg_failed=no
22687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBV4L" >&5
22688$as_echo_n "checking for LIBV4L... " >&6; }
22689
22690if test -n "$LIBV4L_CFLAGS"; then
22691    pkg_cv_LIBV4L_CFLAGS="$LIBV4L_CFLAGS"
22692 elif test -n "$PKG_CONFIG"; then
22693    if test -n "$PKG_CONFIG" && \
22694    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libv4l1 >= 0.8.3\""; } >&5
22695  ($PKG_CONFIG --exists --print-errors "libv4l1 >= 0.8.3") 2>&5
22696  ac_status=$?
22697  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22698  test $ac_status = 0; }; then
22699  pkg_cv_LIBV4L_CFLAGS=`$PKG_CONFIG --cflags "libv4l1 >= 0.8.3" 2>/dev/null`
22700		      test "x$?" != "x0" && pkg_failed=yes
22701else
22702  pkg_failed=yes
22703fi
22704 else
22705    pkg_failed=untried
22706fi
22707if test -n "$LIBV4L_LIBS"; then
22708    pkg_cv_LIBV4L_LIBS="$LIBV4L_LIBS"
22709 elif test -n "$PKG_CONFIG"; then
22710    if test -n "$PKG_CONFIG" && \
22711    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libv4l1 >= 0.8.3\""; } >&5
22712  ($PKG_CONFIG --exists --print-errors "libv4l1 >= 0.8.3") 2>&5
22713  ac_status=$?
22714  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22715  test $ac_status = 0; }; then
22716  pkg_cv_LIBV4L_LIBS=`$PKG_CONFIG --libs "libv4l1 >= 0.8.3" 2>/dev/null`
22717		      test "x$?" != "x0" && pkg_failed=yes
22718else
22719  pkg_failed=yes
22720fi
22721 else
22722    pkg_failed=untried
22723fi
22724
22725
22726
22727if test $pkg_failed = yes; then
22728   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22729$as_echo "no" >&6; }
22730
22731if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22732        _pkg_short_errors_supported=yes
22733else
22734        _pkg_short_errors_supported=no
22735fi
22736        if test $_pkg_short_errors_supported = yes; then
22737	        LIBV4L_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libv4l1 >= 0.8.3" 2>&1`
22738        else
22739	        LIBV4L_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libv4l1 >= 0.8.3" 2>&1`
22740        fi
22741	# Put the nasty error message in config.log where it belongs
22742	echo "$LIBV4L_PKG_ERRORS" >&5
22743
22744	have_libv4l1=no
22745elif test $pkg_failed = untried; then
22746     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22747$as_echo "no" >&6; }
22748	have_libv4l1=no
22749else
22750	LIBV4L_CFLAGS=$pkg_cv_LIBV4L_CFLAGS
22751	LIBV4L_LIBS=$pkg_cv_LIBV4L_LIBS
22752        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22753$as_echo "yes" >&6; }
22754	have_libv4l1=yes
22755fi
22756fi
22757
22758
22759# Check whether --with-avahi was given.
22760if test "${with_avahi+set}" = set; then :
22761  withval=$with_avahi;
22762else
22763  with_avahi=check
22764fi
22765
22766
22767$as_echo "#define WITH_AVAHI 0" >>confdefs.h
22768
22769if test xno != "x$with_avahi"; then :
22770
22771pkg_failed=no
22772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVAHI" >&5
22773$as_echo_n "checking for AVAHI... " >&6; }
22774
22775if test -n "$AVAHI_CFLAGS"; then
22776    pkg_cv_AVAHI_CFLAGS="$AVAHI_CFLAGS"
22777 elif test -n "$PKG_CONFIG"; then
22778    if test -n "$PKG_CONFIG" && \
22779    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client >= 0.6.24\""; } >&5
22780  ($PKG_CONFIG --exists --print-errors "avahi-client >= 0.6.24") 2>&5
22781  ac_status=$?
22782  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22783  test $ac_status = 0; }; then
22784  pkg_cv_AVAHI_CFLAGS=`$PKG_CONFIG --cflags "avahi-client >= 0.6.24" 2>/dev/null`
22785		      test "x$?" != "x0" && pkg_failed=yes
22786else
22787  pkg_failed=yes
22788fi
22789 else
22790    pkg_failed=untried
22791fi
22792if test -n "$AVAHI_LIBS"; then
22793    pkg_cv_AVAHI_LIBS="$AVAHI_LIBS"
22794 elif test -n "$PKG_CONFIG"; then
22795    if test -n "$PKG_CONFIG" && \
22796    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client >= 0.6.24\""; } >&5
22797  ($PKG_CONFIG --exists --print-errors "avahi-client >= 0.6.24") 2>&5
22798  ac_status=$?
22799  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22800  test $ac_status = 0; }; then
22801  pkg_cv_AVAHI_LIBS=`$PKG_CONFIG --libs "avahi-client >= 0.6.24" 2>/dev/null`
22802		      test "x$?" != "x0" && pkg_failed=yes
22803else
22804  pkg_failed=yes
22805fi
22806 else
22807    pkg_failed=untried
22808fi
22809
22810
22811
22812if test $pkg_failed = yes; then
22813   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22814$as_echo "no" >&6; }
22815
22816if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22817        _pkg_short_errors_supported=yes
22818else
22819        _pkg_short_errors_supported=no
22820fi
22821        if test $_pkg_short_errors_supported = yes; then
22822	        AVAHI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "avahi-client >= 0.6.24" 2>&1`
22823        else
22824	        AVAHI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "avahi-client >= 0.6.24" 2>&1`
22825        fi
22826	# Put the nasty error message in config.log where it belongs
22827	echo "$AVAHI_PKG_ERRORS" >&5
22828
22829	if test xcheck != "x$with_avahi"; then :
22830  as_fn_error $? "Avahi support requested but not found" "$LINENO" 5
22831fi
22832     with_avahi=no
22833
22834elif test $pkg_failed = untried; then
22835     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22836$as_echo "no" >&6; }
22837	if test xcheck != "x$with_avahi"; then :
22838  as_fn_error $? "Avahi support requested but not found" "$LINENO" 5
22839fi
22840     with_avahi=no
22841
22842else
22843	AVAHI_CFLAGS=$pkg_cv_AVAHI_CFLAGS
22844	AVAHI_LIBS=$pkg_cv_AVAHI_LIBS
22845        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22846$as_echo "yes" >&6; }
22847	$as_echo "#define WITH_AVAHI 1" >>confdefs.h
22848
22849     with_avahi=yes
22850
22851fi
22852
22853fi
22854 if test x != "x$AVAHI_LIBS"; then
22855  have_libavahi_TRUE=
22856  have_libavahi_FALSE='#'
22857else
22858  have_libavahi_TRUE='#'
22859  have_libavahi_FALSE=
22860fi
22861
22862
22863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sane_init in -lsane" >&5
22864$as_echo_n "checking for sane_init in -lsane... " >&6; }
22865if ${ac_cv_lib_sane_sane_init+:} false; then :
22866  $as_echo_n "(cached) " >&6
22867else
22868  ac_check_lib_save_LIBS=$LIBS
22869LIBS="-lsane  $LIBS"
22870cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22871/* end confdefs.h.  */
22872
22873/* Override any GCC internal prototype to avoid an error.
22874   Use char because int might match the return type of a GCC
22875   builtin and then its argument prototype would still apply.  */
22876#ifdef __cplusplus
22877extern "C"
22878#endif
22879char sane_init ();
22880int
22881main ()
22882{
22883return sane_init ();
22884  ;
22885  return 0;
22886}
22887_ACEOF
22888if ac_fn_c_try_link "$LINENO"; then :
22889  ac_cv_lib_sane_sane_init=yes
22890else
22891  ac_cv_lib_sane_sane_init=no
22892fi
22893rm -f core conftest.err conftest.$ac_objext \
22894    conftest$ac_exeext conftest.$ac_ext
22895LIBS=$ac_check_lib_save_LIBS
22896fi
22897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sane_sane_init" >&5
22898$as_echo "$ac_cv_lib_sane_sane_init" >&6; }
22899if test "x$ac_cv_lib_sane_sane_init" = xyes; then :
22900  LIBSANE_EXISTS="yes"
22901fi
22902
22903
22904
22905
22906
22907# Check whether --with-snmp was given.
22908if test "${with_snmp+set}" = set; then :
22909  withval=$with_snmp;
22910fi
22911
22912
22913if test "$with_snmp" = "no"; then
22914	echo "Not including SNMP support"
22915else
22916	# Extract the first word of "net-snmp-config", so it can be a program name with args.
22917set dummy net-snmp-config; ac_word=$2
22918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22919$as_echo_n "checking for $ac_word... " >&6; }
22920if ${ac_cv_path_SNMP_CONFIG_PATH+:} false; then :
22921  $as_echo_n "(cached) " >&6
22922else
22923  case $SNMP_CONFIG_PATH in
22924  [\\/]* | ?:[\\/]*)
22925  ac_cv_path_SNMP_CONFIG_PATH="$SNMP_CONFIG_PATH" # Let the user override the test with a path.
22926  ;;
22927  *)
22928  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22929for as_dir in $PATH
22930do
22931  IFS=$as_save_IFS
22932  test -z "$as_dir" && as_dir=.
22933    for ac_exec_ext in '' $ac_executable_extensions; do
22934  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22935    ac_cv_path_SNMP_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
22936    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22937    break 2
22938  fi
22939done
22940  done
22941IFS=$as_save_IFS
22942
22943  test -z "$ac_cv_path_SNMP_CONFIG_PATH" && ac_cv_path_SNMP_CONFIG_PATH=""no""
22944  ;;
22945esac
22946fi
22947SNMP_CONFIG_PATH=$ac_cv_path_SNMP_CONFIG_PATH
22948if test -n "$SNMP_CONFIG_PATH"; then
22949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMP_CONFIG_PATH" >&5
22950$as_echo "$SNMP_CONFIG_PATH" >&6; }
22951else
22952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22953$as_echo "no" >&6; }
22954fi
22955
22956
22957	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for snmp_timeout in -lnetsnmp" >&5
22958$as_echo_n "checking for snmp_timeout in -lnetsnmp... " >&6; }
22959if ${ac_cv_lib_netsnmp_snmp_timeout+:} false; then :
22960  $as_echo_n "(cached) " >&6
22961else
22962  ac_check_lib_save_LIBS=$LIBS
22963LIBS="-lnetsnmp  $LIBS"
22964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22965/* end confdefs.h.  */
22966
22967/* Override any GCC internal prototype to avoid an error.
22968   Use char because int might match the return type of a GCC
22969   builtin and then its argument prototype would still apply.  */
22970#ifdef __cplusplus
22971extern "C"
22972#endif
22973char snmp_timeout ();
22974int
22975main ()
22976{
22977return snmp_timeout ();
22978  ;
22979  return 0;
22980}
22981_ACEOF
22982if ac_fn_c_try_link "$LINENO"; then :
22983  ac_cv_lib_netsnmp_snmp_timeout=yes
22984else
22985  ac_cv_lib_netsnmp_snmp_timeout=no
22986fi
22987rm -f core conftest.err conftest.$ac_objext \
22988    conftest$ac_exeext conftest.$ac_ext
22989LIBS=$ac_check_lib_save_LIBS
22990fi
22991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_snmp_timeout" >&5
22992$as_echo "$ac_cv_lib_netsnmp_snmp_timeout" >&6; }
22993if test "x$ac_cv_lib_netsnmp_snmp_timeout" = xyes; then :
22994  LIBSNMP_EXISTS="yes"
22995fi
22996
22997	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for proper SNMP version" >&5
22998$as_echo_n "checking for proper SNMP version... " >&6; }
22999	if test "$SNMP_CONFIG_PATH" != "no" ; then
23000		snmp_version=`$SNMP_CONFIG_PATH --version 2>/dev/null`
23001		vers=`echo $snmp_version | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2);}'`
23002		if test -n "$vers" && test "$vers" -ge 5006; then
23003			SNMP_LIBS=`$SNMP_CONFIG_PATH --libs`
23004			SNMP_CFLAGS=`$SNMP_CONFIG_PATH --cflags`
23005			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23006$as_echo "yes" >&6; }
23007			with_snmp="yes"
23008		else
23009			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23010$as_echo "no" >&6; }
23011			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need at least net-snmp 5.6, your version is $snmp_version" >&5
23012$as_echo "$as_me: WARNING: You need at least net-snmp 5.6, your version is $snmp_version" >&2;}
23013			with_snmp="no"
23014		fi
23015	else
23016		with_snmp="no"
23017		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23018$as_echo "no" >&6; }
23019	fi
23020fi
23021
23022if test "$with_snmp" = "yes" && test "${LIBSNMP_EXISTS}x" = "yesx"; then
23023
23024
23025
23026$as_echo "#define HAVE_LIBSNMP 1" >>confdefs.h
23027
23028else
23029	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: net-snmp library disabled, autodetecting network scanners will not be supported." >&5
23030$as_echo "$as_me: WARNING: net-snmp library disabled, autodetecting network scanners will not be supported." >&2;}
23031fi
23032
23033
23034
23035
23036
23037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
23038$as_echo_n "checking for ANSI C header files... " >&6; }
23039if ${ac_cv_header_stdc+:} false; then :
23040  $as_echo_n "(cached) " >&6
23041else
23042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23043/* end confdefs.h.  */
23044#include <stdlib.h>
23045#include <stdarg.h>
23046#include <string.h>
23047#include <float.h>
23048
23049int
23050main ()
23051{
23052
23053  ;
23054  return 0;
23055}
23056_ACEOF
23057if ac_fn_c_try_compile "$LINENO"; then :
23058  ac_cv_header_stdc=yes
23059else
23060  ac_cv_header_stdc=no
23061fi
23062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23063
23064if test $ac_cv_header_stdc = yes; then
23065  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23067/* end confdefs.h.  */
23068#include <string.h>
23069
23070_ACEOF
23071if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23072  $EGREP "memchr" >/dev/null 2>&1; then :
23073
23074else
23075  ac_cv_header_stdc=no
23076fi
23077rm -f conftest*
23078
23079fi
23080
23081if test $ac_cv_header_stdc = yes; then
23082  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23084/* end confdefs.h.  */
23085#include <stdlib.h>
23086
23087_ACEOF
23088if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23089  $EGREP "free" >/dev/null 2>&1; then :
23090
23091else
23092  ac_cv_header_stdc=no
23093fi
23094rm -f conftest*
23095
23096fi
23097
23098if test $ac_cv_header_stdc = yes; then
23099  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23100  if test "$cross_compiling" = yes; then :
23101  :
23102else
23103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23104/* end confdefs.h.  */
23105#include <ctype.h>
23106#include <stdlib.h>
23107#if ((' ' & 0x0FF) == 0x020)
23108# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23109# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23110#else
23111# define ISLOWER(c) \
23112		   (('a' <= (c) && (c) <= 'i') \
23113		     || ('j' <= (c) && (c) <= 'r') \
23114		     || ('s' <= (c) && (c) <= 'z'))
23115# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23116#endif
23117
23118#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23119int
23120main ()
23121{
23122  int i;
23123  for (i = 0; i < 256; i++)
23124    if (XOR (islower (i), ISLOWER (i))
23125	|| toupper (i) != TOUPPER (i))
23126      return 2;
23127  return 0;
23128}
23129_ACEOF
23130if ac_fn_c_try_run "$LINENO"; then :
23131
23132else
23133  ac_cv_header_stdc=no
23134fi
23135rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23136  conftest.$ac_objext conftest.beam conftest.$ac_ext
23137fi
23138
23139fi
23140fi
23141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
23142$as_echo "$ac_cv_header_stdc" >&6; }
23143if test $ac_cv_header_stdc = yes; then
23144
23145$as_echo "#define STDC_HEADERS 1" >>confdefs.h
23146
23147fi
23148
23149for ac_header in fcntl.h unistd.h libc.h sys/dsreq.h sys/select.h \
23150    sys/time.h sys/shm.h sys/ipc.h sys/scanio.h os2.h \
23151    sys/socket.h sys/io.h sys/hw.h sys/types.h linux/ppdev.h \
23152    dev/ppbus/ppi.h machine/cpufunc.h sys/sem.h sys/poll.h \
23153    windows.h be/kernel/OS.h limits.h sys/ioctl.h asm/types.h\
23154    netinet/in.h tiffio.h ifaddrs.h pwd.h getopt.h
23155do :
23156  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23157ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23158if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23159  cat >>confdefs.h <<_ACEOF
23160#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23161_ACEOF
23162
23163fi
23164
23165done
23166
23167for ac_header in asm/io.h
23168do :
23169  ac_fn_c_check_header_compile "$LINENO" "asm/io.h" "ac_cv_header_asm_io_h" "#include <sys/types.h>
23170"
23171if test "x$ac_cv_header_asm_io_h" = xyes; then :
23172  cat >>confdefs.h <<_ACEOF
23173#define HAVE_ASM_IO_H 1
23174_ACEOF
23175
23176fi
23177
23178done
23179
23180
23181
23182  MISSING_HEADERS=
23183  if test "${ac_cv_header_fcntl_h}" != "yes" ; then
23184    MISSING_HEADERS="${MISSING_HEADERS}\"fcntl.h\" "
23185  fi
23186  if test "${ac_cv_header_sys_time_h}" != "yes" ; then
23187    MISSING_HEADERS="${MISSING_HEADERS}\"sys/time.h\" "
23188  fi
23189  if test "${ac_cv_header_unistd_h}" != "yes" ; then
23190    MISSING_HEADERS="${MISSING_HEADERS}\"unistd.h\" "
23191  fi
23192  if test "${MISSING_HEADERS}" != "" ; then
23193    echo "*** The following essential header files couldn't be found:"
23194    echo "*** ${MISSING_HEADERS}"
23195    echo "*** Maybe the compiler isn't ANSI C compliant or not properly installed?"
23196    echo "*** For details on what went wrong see config.log."
23197    as_fn_error $? "Exiting now." "$LINENO" 5
23198  fi
23199
23200
23201for ac_header in winsock2.h
23202do :
23203  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
23204if test "x$ac_cv_header_winsock2_h" = xyes; then :
23205  cat >>confdefs.h <<_ACEOF
23206#define HAVE_WINSOCK2_H 1
23207_ACEOF
23208 SOCKET_LIB="-lws2_32"
23209fi
23210
23211done
23212
23213
23214ac_fn_c_check_header_mongrel "$LINENO" "resmgr.h" "ac_cv_header_resmgr_h" "$ac_includes_default"
23215if test "x$ac_cv_header_resmgr_h" = xyes; then :
23216
23217	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rsm_open_device in -lresmgr" >&5
23218$as_echo_n "checking for rsm_open_device in -lresmgr... " >&6; }
23219if ${ac_cv_lib_resmgr_rsm_open_device+:} false; then :
23220  $as_echo_n "(cached) " >&6
23221else
23222  ac_check_lib_save_LIBS=$LIBS
23223LIBS="-lresmgr  $LIBS"
23224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23225/* end confdefs.h.  */
23226
23227/* Override any GCC internal prototype to avoid an error.
23228   Use char because int might match the return type of a GCC
23229   builtin and then its argument prototype would still apply.  */
23230#ifdef __cplusplus
23231extern "C"
23232#endif
23233char rsm_open_device ();
23234int
23235main ()
23236{
23237return rsm_open_device ();
23238  ;
23239  return 0;
23240}
23241_ACEOF
23242if ac_fn_c_try_link "$LINENO"; then :
23243  ac_cv_lib_resmgr_rsm_open_device=yes
23244else
23245  ac_cv_lib_resmgr_rsm_open_device=no
23246fi
23247rm -f core conftest.err conftest.$ac_objext \
23248    conftest$ac_exeext conftest.$ac_ext
23249LIBS=$ac_check_lib_save_LIBS
23250fi
23251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resmgr_rsm_open_device" >&5
23252$as_echo "$ac_cv_lib_resmgr_rsm_open_device" >&6; }
23253if test "x$ac_cv_lib_resmgr_rsm_open_device" = xyes; then :
23254
23255
23256$as_echo "#define HAVE_RESMGR 1" >>confdefs.h
23257
23258			RESMGR_LIBS="-lresmgr"
23259
23260
23261fi
23262
23263
23264fi
23265
23266
23267
23268
23269
23270ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23271if test "x$ac_cv_type_size_t" = xyes; then :
23272
23273else
23274
23275cat >>confdefs.h <<_ACEOF
23276#define size_t unsigned int
23277_ACEOF
23278
23279fi
23280
23281ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23282if test "x$ac_cv_type_pid_t" = xyes; then :
23283
23284else
23285
23286cat >>confdefs.h <<_ACEOF
23287#define pid_t int
23288_ACEOF
23289
23290fi
23291
23292ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23293if test "x$ac_cv_type_ssize_t" = xyes; then :
23294
23295else
23296
23297cat >>confdefs.h <<_ACEOF
23298#define ssize_t int
23299_ACEOF
23300
23301fi
23302
23303
23304ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "$ac_includes_default"
23305if test "x$ac_cv_type_u_char" = xyes; then :
23306
23307cat >>confdefs.h <<_ACEOF
23308#define HAVE_U_CHAR 1
23309_ACEOF
23310
23311
23312fi
23313ac_fn_c_check_type "$LINENO" "u_short" "ac_cv_type_u_short" "$ac_includes_default"
23314if test "x$ac_cv_type_u_short" = xyes; then :
23315
23316cat >>confdefs.h <<_ACEOF
23317#define HAVE_U_SHORT 1
23318_ACEOF
23319
23320
23321fi
23322ac_fn_c_check_type "$LINENO" "u_int" "ac_cv_type_u_int" "$ac_includes_default"
23323if test "x$ac_cv_type_u_int" = xyes; then :
23324
23325cat >>confdefs.h <<_ACEOF
23326#define HAVE_U_INT 1
23327_ACEOF
23328
23329
23330fi
23331ac_fn_c_check_type "$LINENO" "u_long" "ac_cv_type_u_long" "$ac_includes_default"
23332if test "x$ac_cv_type_u_long" = xyes; then :
23333
23334cat >>confdefs.h <<_ACEOF
23335#define HAVE_U_LONG 1
23336_ACEOF
23337
23338
23339fi
23340
23341
23342
23343# from Python, check for "long long" type
23344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support" >&5
23345$as_echo_n "checking for long long support... " >&6; }
23346have_long_long=no
23347cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23348/* end confdefs.h.  */
23349
23350int
23351main ()
23352{
23353long long x; x = (long long)0;
23354  ;
23355  return 0;
23356}
23357_ACEOF
23358if ac_fn_c_try_compile "$LINENO"; then :
23359
23360$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
23361 have_long_long=yes
23362fi
23363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_long" >&5
23365$as_echo "$have_long_long" >&6; }
23366
23367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in <sys/socket.h>" >&5
23368$as_echo_n "checking for socklen_t in <sys/socket.h>... " >&6; }
23369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23370/* end confdefs.h.  */
23371
23372#include <sys/socket.h>
23373
23374int
23375main ()
23376{
23377socklen_t len
23378  ;
23379  return 0;
23380}
23381_ACEOF
23382if ac_fn_c_try_compile "$LINENO"; then :
23383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23384$as_echo "yes" >&6; }
23385else
23386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23387$as_echo "no" >&6; };
23388$as_echo "#define socklen_t int" >>confdefs.h
23389
23390fi
23391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23392
23393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for union semun in <sys/sem.h>" >&5
23394$as_echo_n "checking for union semun in <sys/sem.h>... " >&6; }
23395cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23396/* end confdefs.h.  */
23397
23398#include <sys/types.h>
23399#include <sys/ipc.h>
23400#include <sys/sem.h>
23401
23402int
23403main ()
23404{
23405union semun test_semun
23406  ;
23407  return 0;
23408}
23409_ACEOF
23410if ac_fn_c_try_compile "$LINENO"; then :
23411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23412$as_echo "yes" >&6; };
23413
23414$as_echo "#define HAVE_UNION_SEMUN 1" >>confdefs.h
23415
23416else
23417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23418$as_echo "no" >&6; }
23419fi
23420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23421
23422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct flock in fcntl.h" >&5
23423$as_echo_n "checking for struct flock in fcntl.h... " >&6; }
23424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23425/* end confdefs.h.  */
23426#include <fcntl.h>
23427
23428_ACEOF
23429if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23430  $EGREP "struct flock" >/dev/null 2>&1; then :
23431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23432$as_echo "yes" >&6; } ;
23433
23434$as_echo "#define HAVE_STRUCT_FLOCK 1" >>confdefs.h
23435
23436else
23437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23438$as_echo "no" >&6; }
23439fi
23440rm -f conftest*
23441
23442
23443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux ioctl defines" >&5
23444$as_echo_n "checking for Linux ioctl defines... " >&6; }
23445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23446/* end confdefs.h.  */
23447
23448#include <sys/ioctl.h>
23449#include <asm/types.h>
23450
23451int
23452main ()
23453{
23454
23455__u32 houba = _IOR('v',14, unsigned long);
23456
23457  ;
23458  return 0;
23459}
23460_ACEOF
23461if ac_fn_c_try_compile "$LINENO"; then :
23462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23463$as_echo "yes" >&6; };
23464have_linux_ioctl_defines="yes";
23465else
23466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23467$as_echo "no" >&6; }
23468fi
23469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23470
23471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23472$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23473if ${ac_cv_c_bigendian+:} false; then :
23474  $as_echo_n "(cached) " >&6
23475else
23476  ac_cv_c_bigendian=unknown
23477    # See if we're dealing with a universal compiler.
23478    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23479/* end confdefs.h.  */
23480#ifndef __APPLE_CC__
23481	       not a universal capable compiler
23482	     #endif
23483	     typedef int dummy;
23484
23485_ACEOF
23486if ac_fn_c_try_compile "$LINENO"; then :
23487
23488	# Check for potential -arch flags.  It is not universal unless
23489	# there are at least two -arch flags with different values.
23490	ac_arch=
23491	ac_prev=
23492	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23493	 if test -n "$ac_prev"; then
23494	   case $ac_word in
23495	     i?86 | x86_64 | ppc | ppc64)
23496	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23497		 ac_arch=$ac_word
23498	       else
23499		 ac_cv_c_bigendian=universal
23500		 break
23501	       fi
23502	       ;;
23503	   esac
23504	   ac_prev=
23505	 elif test "x$ac_word" = "x-arch"; then
23506	   ac_prev=arch
23507	 fi
23508       done
23509fi
23510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23511    if test $ac_cv_c_bigendian = unknown; then
23512      # See if sys/param.h defines the BYTE_ORDER macro.
23513      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23514/* end confdefs.h.  */
23515#include <sys/types.h>
23516	     #include <sys/param.h>
23517
23518int
23519main ()
23520{
23521#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23522		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23523		     && LITTLE_ENDIAN)
23524	      bogus endian macros
23525	     #endif
23526
23527  ;
23528  return 0;
23529}
23530_ACEOF
23531if ac_fn_c_try_compile "$LINENO"; then :
23532  # It does; now see whether it defined to BIG_ENDIAN or not.
23533	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23534/* end confdefs.h.  */
23535#include <sys/types.h>
23536		#include <sys/param.h>
23537
23538int
23539main ()
23540{
23541#if BYTE_ORDER != BIG_ENDIAN
23542		 not big endian
23543		#endif
23544
23545  ;
23546  return 0;
23547}
23548_ACEOF
23549if ac_fn_c_try_compile "$LINENO"; then :
23550  ac_cv_c_bigendian=yes
23551else
23552  ac_cv_c_bigendian=no
23553fi
23554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23555fi
23556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23557    fi
23558    if test $ac_cv_c_bigendian = unknown; then
23559      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23560      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23561/* end confdefs.h.  */
23562#include <limits.h>
23563
23564int
23565main ()
23566{
23567#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23568	      bogus endian macros
23569	     #endif
23570
23571  ;
23572  return 0;
23573}
23574_ACEOF
23575if ac_fn_c_try_compile "$LINENO"; then :
23576  # It does; now see whether it defined to _BIG_ENDIAN or not.
23577	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23578/* end confdefs.h.  */
23579#include <limits.h>
23580
23581int
23582main ()
23583{
23584#ifndef _BIG_ENDIAN
23585		 not big endian
23586		#endif
23587
23588  ;
23589  return 0;
23590}
23591_ACEOF
23592if ac_fn_c_try_compile "$LINENO"; then :
23593  ac_cv_c_bigendian=yes
23594else
23595  ac_cv_c_bigendian=no
23596fi
23597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23598fi
23599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23600    fi
23601    if test $ac_cv_c_bigendian = unknown; then
23602      # Compile a test program.
23603      if test "$cross_compiling" = yes; then :
23604  # Try to guess by grepping values from an object file.
23605	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23606/* end confdefs.h.  */
23607short int ascii_mm[] =
23608		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23609		short int ascii_ii[] =
23610		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23611		int use_ascii (int i) {
23612		  return ascii_mm[i] + ascii_ii[i];
23613		}
23614		short int ebcdic_ii[] =
23615		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23616		short int ebcdic_mm[] =
23617		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23618		int use_ebcdic (int i) {
23619		  return ebcdic_mm[i] + ebcdic_ii[i];
23620		}
23621		extern int foo;
23622
23623int
23624main ()
23625{
23626return use_ascii (foo) == use_ebcdic (foo);
23627  ;
23628  return 0;
23629}
23630_ACEOF
23631if ac_fn_c_try_compile "$LINENO"; then :
23632  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23633	      ac_cv_c_bigendian=yes
23634	    fi
23635	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23636	      if test "$ac_cv_c_bigendian" = unknown; then
23637		ac_cv_c_bigendian=no
23638	      else
23639		# finding both strings is unlikely to happen, but who knows?
23640		ac_cv_c_bigendian=unknown
23641	      fi
23642	    fi
23643fi
23644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23645else
23646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23647/* end confdefs.h.  */
23648$ac_includes_default
23649int
23650main ()
23651{
23652
23653	     /* Are we little or big endian?  From Harbison&Steele.  */
23654	     union
23655	     {
23656	       long int l;
23657	       char c[sizeof (long int)];
23658	     } u;
23659	     u.l = 1;
23660	     return u.c[sizeof (long int) - 1] == 1;
23661
23662  ;
23663  return 0;
23664}
23665_ACEOF
23666if ac_fn_c_try_run "$LINENO"; then :
23667  ac_cv_c_bigendian=no
23668else
23669  ac_cv_c_bigendian=yes
23670fi
23671rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23672  conftest.$ac_objext conftest.beam conftest.$ac_ext
23673fi
23674
23675    fi
23676fi
23677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23678$as_echo "$ac_cv_c_bigendian" >&6; }
23679 case $ac_cv_c_bigendian in #(
23680   yes)
23681     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23682;; #(
23683   no)
23684      ;; #(
23685   universal)
23686
23687$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23688
23689     ;; #(
23690   *)
23691     as_fn_error $? "unknown endianness
23692 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23693 esac
23694
23695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
23696$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
23697if ${ac_cv_c_const+:} false; then :
23698  $as_echo_n "(cached) " >&6
23699else
23700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23701/* end confdefs.h.  */
23702
23703int
23704main ()
23705{
23706
23707#ifndef __cplusplus
23708  /* Ultrix mips cc rejects this sort of thing.  */
23709  typedef int charset[2];
23710  const charset cs = { 0, 0 };
23711  /* SunOS 4.1.1 cc rejects this.  */
23712  char const *const *pcpcc;
23713  char **ppc;
23714  /* NEC SVR4.0.2 mips cc rejects this.  */
23715  struct point {int x, y;};
23716  static struct point const zero = {0,0};
23717  /* AIX XL C 1.02.0.0 rejects this.
23718     It does not let you subtract one const X* pointer from another in
23719     an arm of an if-expression whose if-part is not a constant
23720     expression */
23721  const char *g = "string";
23722  pcpcc = &g + (g ? g-g : 0);
23723  /* HPUX 7.0 cc rejects these. */
23724  ++pcpcc;
23725  ppc = (char**) pcpcc;
23726  pcpcc = (char const *const *) ppc;
23727  { /* SCO 3.2v4 cc rejects this sort of thing.  */
23728    char tx;
23729    char *t = &tx;
23730    char const *s = 0 ? (char *) 0 : (char const *) 0;
23731
23732    *t++ = 0;
23733    if (s) return 0;
23734  }
23735  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23736    int x[] = {25, 17};
23737    const int *foo = &x[0];
23738    ++foo;
23739  }
23740  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23741    typedef const int *iptr;
23742    iptr p = 0;
23743    ++p;
23744  }
23745  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
23746       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23747    struct s { int j; const int *ap[3]; } bx;
23748    struct s *b = &bx; b->j = 5;
23749  }
23750  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23751    const int foo = 10;
23752    if (!foo) return 0;
23753  }
23754  return !cs[0] && !zero.x;
23755#endif
23756
23757  ;
23758  return 0;
23759}
23760_ACEOF
23761if ac_fn_c_try_compile "$LINENO"; then :
23762  ac_cv_c_const=yes
23763else
23764  ac_cv_c_const=no
23765fi
23766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23767fi
23768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
23769$as_echo "$ac_cv_c_const" >&6; }
23770if test $ac_cv_c_const = no; then
23771
23772$as_echo "#define const /**/" >>confdefs.h
23773
23774fi
23775
23776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
23777$as_echo_n "checking for inline... " >&6; }
23778if ${ac_cv_c_inline+:} false; then :
23779  $as_echo_n "(cached) " >&6
23780else
23781  ac_cv_c_inline=no
23782for ac_kw in inline __inline__ __inline; do
23783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23784/* end confdefs.h.  */
23785#ifndef __cplusplus
23786typedef int foo_t;
23787static $ac_kw foo_t static_foo () {return 0; }
23788$ac_kw foo_t foo () {return 0; }
23789#endif
23790
23791_ACEOF
23792if ac_fn_c_try_compile "$LINENO"; then :
23793  ac_cv_c_inline=$ac_kw
23794fi
23795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23796  test "$ac_cv_c_inline" != no && break
23797done
23798
23799fi
23800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
23801$as_echo "$ac_cv_c_inline" >&6; }
23802
23803case $ac_cv_c_inline in
23804  inline | yes) ;;
23805  *)
23806    case $ac_cv_c_inline in
23807      no) ac_val=;;
23808      *) ac_val=$ac_cv_c_inline;;
23809    esac
23810    cat >>confdefs.h <<_ACEOF
23811#ifndef __cplusplus
23812#define inline $ac_val
23813#endif
23814_ACEOF
23815    ;;
23816esac
23817
23818
23819
23820
23821# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
23822# for constant arguments.  Useless!
23823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
23824$as_echo_n "checking for working alloca.h... " >&6; }
23825if ${ac_cv_working_alloca_h+:} false; then :
23826  $as_echo_n "(cached) " >&6
23827else
23828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23829/* end confdefs.h.  */
23830#include <alloca.h>
23831int
23832main ()
23833{
23834char *p = (char *) alloca (2 * sizeof (int));
23835			  if (p) return 0;
23836  ;
23837  return 0;
23838}
23839_ACEOF
23840if ac_fn_c_try_link "$LINENO"; then :
23841  ac_cv_working_alloca_h=yes
23842else
23843  ac_cv_working_alloca_h=no
23844fi
23845rm -f core conftest.err conftest.$ac_objext \
23846    conftest$ac_exeext conftest.$ac_ext
23847fi
23848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
23849$as_echo "$ac_cv_working_alloca_h" >&6; }
23850if test $ac_cv_working_alloca_h = yes; then
23851
23852$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
23853
23854fi
23855
23856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
23857$as_echo_n "checking for alloca... " >&6; }
23858if ${ac_cv_func_alloca_works+:} false; then :
23859  $as_echo_n "(cached) " >&6
23860else
23861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23862/* end confdefs.h.  */
23863#ifdef __GNUC__
23864# define alloca __builtin_alloca
23865#else
23866# ifdef _MSC_VER
23867#  include <malloc.h>
23868#  define alloca _alloca
23869# else
23870#  ifdef HAVE_ALLOCA_H
23871#   include <alloca.h>
23872#  else
23873#   ifdef _AIX
23874 #pragma alloca
23875#   else
23876#    ifndef alloca /* predefined by HP cc +Olibcalls */
23877void *alloca (size_t);
23878#    endif
23879#   endif
23880#  endif
23881# endif
23882#endif
23883
23884int
23885main ()
23886{
23887char *p = (char *) alloca (1);
23888				    if (p) return 0;
23889  ;
23890  return 0;
23891}
23892_ACEOF
23893if ac_fn_c_try_link "$LINENO"; then :
23894  ac_cv_func_alloca_works=yes
23895else
23896  ac_cv_func_alloca_works=no
23897fi
23898rm -f core conftest.err conftest.$ac_objext \
23899    conftest$ac_exeext conftest.$ac_ext
23900fi
23901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
23902$as_echo "$ac_cv_func_alloca_works" >&6; }
23903
23904if test $ac_cv_func_alloca_works = yes; then
23905
23906$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
23907
23908else
23909  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
23910# that cause trouble.  Some versions do not even contain alloca or
23911# contain a buggy version.  If you still want to use their alloca,
23912# use ar to extract alloca.o from them instead of compiling alloca.c.
23913
23914ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
23915
23916$as_echo "#define C_ALLOCA 1" >>confdefs.h
23917
23918
23919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
23920$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
23921if ${ac_cv_os_cray+:} false; then :
23922  $as_echo_n "(cached) " >&6
23923else
23924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23925/* end confdefs.h.  */
23926#if defined CRAY && ! defined CRAY2
23927webecray
23928#else
23929wenotbecray
23930#endif
23931
23932_ACEOF
23933if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23934  $EGREP "webecray" >/dev/null 2>&1; then :
23935  ac_cv_os_cray=yes
23936else
23937  ac_cv_os_cray=no
23938fi
23939rm -f conftest*
23940
23941fi
23942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
23943$as_echo "$ac_cv_os_cray" >&6; }
23944if test $ac_cv_os_cray = yes; then
23945  for ac_func in _getb67 GETB67 getb67; do
23946    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23947ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23948if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23949
23950cat >>confdefs.h <<_ACEOF
23951#define CRAY_STACKSEG_END $ac_func
23952_ACEOF
23953
23954    break
23955fi
23956
23957  done
23958fi
23959
23960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
23961$as_echo_n "checking stack direction for C alloca... " >&6; }
23962if ${ac_cv_c_stack_direction+:} false; then :
23963  $as_echo_n "(cached) " >&6
23964else
23965  if test "$cross_compiling" = yes; then :
23966  ac_cv_c_stack_direction=0
23967else
23968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23969/* end confdefs.h.  */
23970$ac_includes_default
23971int
23972find_stack_direction (int *addr, int depth)
23973{
23974  int dir, dummy = 0;
23975  if (! addr)
23976    addr = &dummy;
23977  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
23978  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
23979  return dir + dummy;
23980}
23981
23982int
23983main (int argc, char **argv)
23984{
23985  return find_stack_direction (0, argc + !argv + 20) < 0;
23986}
23987_ACEOF
23988if ac_fn_c_try_run "$LINENO"; then :
23989  ac_cv_c_stack_direction=1
23990else
23991  ac_cv_c_stack_direction=-1
23992fi
23993rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23994  conftest.$ac_objext conftest.beam conftest.$ac_ext
23995fi
23996
23997fi
23998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
23999$as_echo "$ac_cv_c_stack_direction" >&6; }
24000cat >>confdefs.h <<_ACEOF
24001#define STACK_DIRECTION $ac_cv_c_stack_direction
24002_ACEOF
24003
24004
24005fi
24006
24007ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
24008if test "x$ac_cv_func_getenv" = xyes; then :
24009  $as_echo "#define HAVE_GETENV 1" >>confdefs.h
24010
24011else
24012  case " $LIBOBJS " in
24013  *" getenv.$ac_objext "* ) ;;
24014  *) LIBOBJS="$LIBOBJS getenv.$ac_objext"
24015 ;;
24016esac
24017
24018fi
24019
24020ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
24021if test "x$ac_cv_func_inet_ntop" = xyes; then :
24022  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
24023
24024else
24025  case " $LIBOBJS " in
24026  *" inet_ntop.$ac_objext "* ) ;;
24027  *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
24028 ;;
24029esac
24030
24031fi
24032
24033ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
24034if test "x$ac_cv_func_inet_pton" = xyes; then :
24035  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
24036
24037else
24038  case " $LIBOBJS " in
24039  *" inet_pton.$ac_objext "* ) ;;
24040  *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
24041 ;;
24042esac
24043
24044fi
24045
24046ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
24047if test "x$ac_cv_func_sigprocmask" = xyes; then :
24048  $as_echo "#define HAVE_SIGPROCMASK 1" >>confdefs.h
24049
24050else
24051  case " $LIBOBJS " in
24052  *" sigprocmask.$ac_objext "* ) ;;
24053  *) LIBOBJS="$LIBOBJS sigprocmask.$ac_objext"
24054 ;;
24055esac
24056
24057fi
24058
24059ac_fn_c_check_func "$LINENO" "sleep" "ac_cv_func_sleep"
24060if test "x$ac_cv_func_sleep" = xyes; then :
24061  $as_echo "#define HAVE_SLEEP 1" >>confdefs.h
24062
24063else
24064  case " $LIBOBJS " in
24065  *" sleep.$ac_objext "* ) ;;
24066  *) LIBOBJS="$LIBOBJS sleep.$ac_objext"
24067 ;;
24068esac
24069
24070fi
24071
24072ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
24073if test "x$ac_cv_func_snprintf" = xyes; then :
24074  $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
24075
24076else
24077  case " $LIBOBJS " in
24078  *" snprintf.$ac_objext "* ) ;;
24079  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
24080 ;;
24081esac
24082
24083fi
24084
24085ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
24086if test "x$ac_cv_func_strcasestr" = xyes; then :
24087  $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
24088
24089else
24090  case " $LIBOBJS " in
24091  *" strcasestr.$ac_objext "* ) ;;
24092  *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext"
24093 ;;
24094esac
24095
24096fi
24097
24098ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
24099if test "x$ac_cv_func_strdup" = xyes; then :
24100  $as_echo "#define HAVE_STRDUP 1" >>confdefs.h
24101
24102else
24103  case " $LIBOBJS " in
24104  *" strdup.$ac_objext "* ) ;;
24105  *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
24106 ;;
24107esac
24108
24109fi
24110
24111ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
24112if test "x$ac_cv_func_strndup" = xyes; then :
24113  $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
24114
24115else
24116  case " $LIBOBJS " in
24117  *" strndup.$ac_objext "* ) ;;
24118  *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
24119 ;;
24120esac
24121
24122fi
24123
24124ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
24125if test "x$ac_cv_func_strsep" = xyes; then :
24126  $as_echo "#define HAVE_STRSEP 1" >>confdefs.h
24127
24128else
24129  case " $LIBOBJS " in
24130  *" strsep.$ac_objext "* ) ;;
24131  *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
24132 ;;
24133esac
24134
24135fi
24136
24137ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
24138if test "x$ac_cv_func_syslog" = xyes; then :
24139  $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
24140
24141else
24142  case " $LIBOBJS " in
24143  *" syslog.$ac_objext "* ) ;;
24144  *) LIBOBJS="$LIBOBJS syslog.$ac_objext"
24145 ;;
24146esac
24147
24148fi
24149
24150ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
24151if test "x$ac_cv_func_usleep" = xyes; then :
24152  $as_echo "#define HAVE_USLEEP 1" >>confdefs.h
24153
24154else
24155  case " $LIBOBJS " in
24156  *" usleep.$ac_objext "* ) ;;
24157  *) LIBOBJS="$LIBOBJS usleep.$ac_objext"
24158 ;;
24159esac
24160
24161fi
24162
24163ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog"
24164if test "x$ac_cv_func_vsyslog" = xyes; then :
24165  $as_echo "#define HAVE_VSYSLOG 1" >>confdefs.h
24166
24167else
24168  case " $LIBOBJS " in
24169  *" vsyslog.$ac_objext "* ) ;;
24170  *) LIBOBJS="$LIBOBJS vsyslog.$ac_objext"
24171 ;;
24172esac
24173
24174fi
24175
24176
24177if test x != x$ALLOCA; then :
24178  LTALLOCA=`echo "$ALLOCA" | sed 's/\.o$//; s/\.obj$//'`.lo
24179fi
24180
24181
24182ac_fn_c_check_func "$LINENO" "gethostbyaddr" "ac_cv_func_gethostbyaddr"
24183if test "x$ac_cv_func_gethostbyaddr" = xyes; then :
24184
24185else
24186  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lbind" >&5
24187$as_echo_n "checking for gethostbyaddr in -lbind... " >&6; }
24188if ${ac_cv_lib_bind_gethostbyaddr+:} false; then :
24189  $as_echo_n "(cached) " >&6
24190else
24191  ac_check_lib_save_LIBS=$LIBS
24192LIBS="-lbind  $LIBS"
24193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24194/* end confdefs.h.  */
24195
24196/* Override any GCC internal prototype to avoid an error.
24197   Use char because int might match the return type of a GCC
24198   builtin and then its argument prototype would still apply.  */
24199#ifdef __cplusplus
24200extern "C"
24201#endif
24202char gethostbyaddr ();
24203int
24204main ()
24205{
24206return gethostbyaddr ();
24207  ;
24208  return 0;
24209}
24210_ACEOF
24211if ac_fn_c_try_link "$LINENO"; then :
24212  ac_cv_lib_bind_gethostbyaddr=yes
24213else
24214  ac_cv_lib_bind_gethostbyaddr=no
24215fi
24216rm -f core conftest.err conftest.$ac_objext \
24217    conftest$ac_exeext conftest.$ac_ext
24218LIBS=$ac_check_lib_save_LIBS
24219fi
24220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_gethostbyaddr" >&5
24221$as_echo "$ac_cv_lib_bind_gethostbyaddr" >&6; }
24222if test "x$ac_cv_lib_bind_gethostbyaddr" = xyes; then :
24223  BIND_LIB="-lbind"
24224fi
24225
24226fi
24227
24228ac_fn_c_check_func "$LINENO" "gethostbyaddr" "ac_cv_func_gethostbyaddr"
24229if test "x$ac_cv_func_gethostbyaddr" = xyes; then :
24230
24231else
24232  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lnsl" >&5
24233$as_echo_n "checking for gethostbyaddr in -lnsl... " >&6; }
24234if ${ac_cv_lib_nsl_gethostbyaddr+:} false; then :
24235  $as_echo_n "(cached) " >&6
24236else
24237  ac_check_lib_save_LIBS=$LIBS
24238LIBS="-lnsl  $LIBS"
24239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24240/* end confdefs.h.  */
24241
24242/* Override any GCC internal prototype to avoid an error.
24243   Use char because int might match the return type of a GCC
24244   builtin and then its argument prototype would still apply.  */
24245#ifdef __cplusplus
24246extern "C"
24247#endif
24248char gethostbyaddr ();
24249int
24250main ()
24251{
24252return gethostbyaddr ();
24253  ;
24254  return 0;
24255}
24256_ACEOF
24257if ac_fn_c_try_link "$LINENO"; then :
24258  ac_cv_lib_nsl_gethostbyaddr=yes
24259else
24260  ac_cv_lib_nsl_gethostbyaddr=no
24261fi
24262rm -f core conftest.err conftest.$ac_objext \
24263    conftest$ac_exeext conftest.$ac_ext
24264LIBS=$ac_check_lib_save_LIBS
24265fi
24266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyaddr" >&5
24267$as_echo "$ac_cv_lib_nsl_gethostbyaddr" >&6; }
24268if test "x$ac_cv_lib_nsl_gethostbyaddr" = xyes; then :
24269  NSL_LIB="-lnsl"
24270fi
24271
24272fi
24273
24274ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
24275if test "x$ac_cv_func_socket" = xyes; then :
24276
24277else
24278  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
24279$as_echo_n "checking for socket in -lsocket... " >&6; }
24280if ${ac_cv_lib_socket_socket+:} false; then :
24281  $as_echo_n "(cached) " >&6
24282else
24283  ac_check_lib_save_LIBS=$LIBS
24284LIBS="-lsocket  $LIBS"
24285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24286/* end confdefs.h.  */
24287
24288/* Override any GCC internal prototype to avoid an error.
24289   Use char because int might match the return type of a GCC
24290   builtin and then its argument prototype would still apply.  */
24291#ifdef __cplusplus
24292extern "C"
24293#endif
24294char socket ();
24295int
24296main ()
24297{
24298return socket ();
24299  ;
24300  return 0;
24301}
24302_ACEOF
24303if ac_fn_c_try_link "$LINENO"; then :
24304  ac_cv_lib_socket_socket=yes
24305else
24306  ac_cv_lib_socket_socket=no
24307fi
24308rm -f core conftest.err conftest.$ac_objext \
24309    conftest$ac_exeext conftest.$ac_ext
24310LIBS=$ac_check_lib_save_LIBS
24311fi
24312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
24313$as_echo "$ac_cv_lib_socket_socket" >&6; }
24314if test "x$ac_cv_lib_socket_socket" = xyes; then :
24315  SOCKET_LIB="-lsocket"
24316fi
24317
24318fi
24319
24320ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
24321if test "x$ac_cv_func_inet_aton" = xyes; then :
24322
24323else
24324  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
24325$as_echo_n "checking for inet_aton in -lresolv... " >&6; }
24326if ${ac_cv_lib_resolv_inet_aton+:} false; then :
24327  $as_echo_n "(cached) " >&6
24328else
24329  ac_check_lib_save_LIBS=$LIBS
24330LIBS="-lresolv  $LIBS"
24331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24332/* end confdefs.h.  */
24333
24334/* Override any GCC internal prototype to avoid an error.
24335   Use char because int might match the return type of a GCC
24336   builtin and then its argument prototype would still apply.  */
24337#ifdef __cplusplus
24338extern "C"
24339#endif
24340char inet_aton ();
24341int
24342main ()
24343{
24344return inet_aton ();
24345  ;
24346  return 0;
24347}
24348_ACEOF
24349if ac_fn_c_try_link "$LINENO"; then :
24350  ac_cv_lib_resolv_inet_aton=yes
24351else
24352  ac_cv_lib_resolv_inet_aton=no
24353fi
24354rm -f core conftest.err conftest.$ac_objext \
24355    conftest$ac_exeext conftest.$ac_ext
24356LIBS=$ac_check_lib_save_LIBS
24357fi
24358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
24359$as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
24360if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
24361  RESOLV_LIB="-lresolv"
24362fi
24363
24364fi
24365
24366
24367SOCKET_LIBS="$SOCKET_LIB $NSL_LIB $BIND_LIB $RESOLV_LIB"
24368
24369
24370save_LIBS="$LIBS"
24371LIBS="$LIBS $SOCKET_LIBS"
24372for ac_func in inet_addr inet_aton inet_ntoa
24373do :
24374  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24375ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24376if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24377  cat >>confdefs.h <<_ACEOF
24378#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24379_ACEOF
24380
24381fi
24382done
24383
24384LIBS="$save_LIBS"
24385
24386if test "$ac_cv_header_be_kernel_OS_h" = "yes" ; then
24387        ac_cv_func_getaddrinfo=no
24388    ac_cv_func_getnameinfo=no
24389fi
24390
24391
24392
24393
24394  for ac_header in $ac_header_list
24395do :
24396  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24397ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24398"
24399if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24400  cat >>confdefs.h <<_ACEOF
24401#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24402_ACEOF
24403
24404fi
24405
24406done
24407
24408
24409
24410
24411
24412
24413
24414
24415for ac_func in getpagesize
24416do :
24417  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
24418if test "x$ac_cv_func_getpagesize" = xyes; then :
24419  cat >>confdefs.h <<_ACEOF
24420#define HAVE_GETPAGESIZE 1
24421_ACEOF
24422
24423fi
24424done
24425
24426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
24427$as_echo_n "checking for working mmap... " >&6; }
24428if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
24429  $as_echo_n "(cached) " >&6
24430else
24431  if test "$cross_compiling" = yes; then :
24432  ac_cv_func_mmap_fixed_mapped=no
24433else
24434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24435/* end confdefs.h.  */
24436$ac_includes_default
24437/* malloc might have been renamed as rpl_malloc. */
24438#undef malloc
24439
24440/* Thanks to Mike Haertel and Jim Avera for this test.
24441   Here is a matrix of mmap possibilities:
24442	mmap private not fixed
24443	mmap private fixed at somewhere currently unmapped
24444	mmap private fixed at somewhere already mapped
24445	mmap shared not fixed
24446	mmap shared fixed at somewhere currently unmapped
24447	mmap shared fixed at somewhere already mapped
24448   For private mappings, we should verify that changes cannot be read()
24449   back from the file, nor mmap's back from the file at a different
24450   address.  (There have been systems where private was not correctly
24451   implemented like the infamous i386 svr4.0, and systems where the
24452   VM page cache was not coherent with the file system buffer cache
24453   like early versions of FreeBSD and possibly contemporary NetBSD.)
24454   For shared mappings, we should conversely verify that changes get
24455   propagated back to all the places they're supposed to be.
24456
24457   Grep wants private fixed already mapped.
24458   The main things grep needs to know about mmap are:
24459   * does it exist and is it safe to write into the mmap'd area
24460   * how to use it (BSD variants)  */
24461
24462#include <fcntl.h>
24463#include <sys/mman.h>
24464
24465#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24466char *malloc ();
24467#endif
24468
24469/* This mess was copied from the GNU getpagesize.h.  */
24470#ifndef HAVE_GETPAGESIZE
24471# ifdef _SC_PAGESIZE
24472#  define getpagesize() sysconf(_SC_PAGESIZE)
24473# else /* no _SC_PAGESIZE */
24474#  ifdef HAVE_SYS_PARAM_H
24475#   include <sys/param.h>
24476#   ifdef EXEC_PAGESIZE
24477#    define getpagesize() EXEC_PAGESIZE
24478#   else /* no EXEC_PAGESIZE */
24479#    ifdef NBPG
24480#     define getpagesize() NBPG * CLSIZE
24481#     ifndef CLSIZE
24482#      define CLSIZE 1
24483#     endif /* no CLSIZE */
24484#    else /* no NBPG */
24485#     ifdef NBPC
24486#      define getpagesize() NBPC
24487#     else /* no NBPC */
24488#      ifdef PAGESIZE
24489#       define getpagesize() PAGESIZE
24490#      endif /* PAGESIZE */
24491#     endif /* no NBPC */
24492#    endif /* no NBPG */
24493#   endif /* no EXEC_PAGESIZE */
24494#  else /* no HAVE_SYS_PARAM_H */
24495#   define getpagesize() 8192	/* punt totally */
24496#  endif /* no HAVE_SYS_PARAM_H */
24497# endif /* no _SC_PAGESIZE */
24498
24499#endif /* no HAVE_GETPAGESIZE */
24500
24501int
24502main ()
24503{
24504  char *data, *data2, *data3;
24505  const char *cdata2;
24506  int i, pagesize;
24507  int fd, fd2;
24508
24509  pagesize = getpagesize ();
24510
24511  /* First, make a file with some known garbage in it. */
24512  data = (char *) malloc (pagesize);
24513  if (!data)
24514    return 1;
24515  for (i = 0; i < pagesize; ++i)
24516    *(data + i) = rand ();
24517  umask (0);
24518  fd = creat ("conftest.mmap", 0600);
24519  if (fd < 0)
24520    return 2;
24521  if (write (fd, data, pagesize) != pagesize)
24522    return 3;
24523  close (fd);
24524
24525  /* Next, check that the tail of a page is zero-filled.  File must have
24526     non-zero length, otherwise we risk SIGBUS for entire page.  */
24527  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24528  if (fd2 < 0)
24529    return 4;
24530  cdata2 = "";
24531  if (write (fd2, cdata2, 1) != 1)
24532    return 5;
24533  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
24534  if (data2 == MAP_FAILED)
24535    return 6;
24536  for (i = 0; i < pagesize; ++i)
24537    if (*(data2 + i))
24538      return 7;
24539  close (fd2);
24540  if (munmap (data2, pagesize))
24541    return 8;
24542
24543  /* Next, try to mmap the file at a fixed address which already has
24544     something else allocated at it.  If we can, also make sure that
24545     we see the same garbage.  */
24546  fd = open ("conftest.mmap", O_RDWR);
24547  if (fd < 0)
24548    return 9;
24549  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24550		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
24551    return 10;
24552  for (i = 0; i < pagesize; ++i)
24553    if (*(data + i) != *(data2 + i))
24554      return 11;
24555
24556  /* Finally, make sure that changes to the mapped area do not
24557     percolate back to the file as seen by read().  (This is a bug on
24558     some variants of i386 svr4.0.)  */
24559  for (i = 0; i < pagesize; ++i)
24560    *(data2 + i) = *(data2 + i) + 1;
24561  data3 = (char *) malloc (pagesize);
24562  if (!data3)
24563    return 12;
24564  if (read (fd, data3, pagesize) != pagesize)
24565    return 13;
24566  for (i = 0; i < pagesize; ++i)
24567    if (*(data + i) != *(data3 + i))
24568      return 14;
24569  close (fd);
24570  free (data);
24571  free (data3);
24572  return 0;
24573}
24574_ACEOF
24575if ac_fn_c_try_run "$LINENO"; then :
24576  ac_cv_func_mmap_fixed_mapped=yes
24577else
24578  ac_cv_func_mmap_fixed_mapped=no
24579fi
24580rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24581  conftest.$ac_objext conftest.beam conftest.$ac_ext
24582fi
24583
24584fi
24585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
24586$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24587if test $ac_cv_func_mmap_fixed_mapped = yes; then
24588
24589$as_echo "#define HAVE_MMAP 1" >>confdefs.h
24590
24591fi
24592rm -f conftest.mmap conftest.txt
24593
24594for ac_func in atexit ioperm i386_set_ioperm \
24595    mkdir strftime strstr strtod  \
24596    cfmakeraw tcsendbreak strcasecmp strncasecmp _portaccess \
24597    getaddrinfo getnameinfo poll setitimer iopl getuid getpass
24598do :
24599  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24600ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24601if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24602  cat >>confdefs.h <<_ACEOF
24603#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24604_ACEOF
24605
24606fi
24607done
24608
24609
24610if test "${ac_cv_header_sys_io_h}" = "yes"; then
24611  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inb,outb (provided by sys/io.h)" >&5
24612$as_echo_n "checking for inb,outb (provided by sys/io.h)... " >&6; }
24613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24614/* end confdefs.h.  */
24615#include <sys/io.h>
24616int
24617main ()
24618{
24619inb(0);outb(0,0);
24620  ;
24621  return 0;
24622}
24623_ACEOF
24624if ac_fn_c_try_link "$LINENO"; then :
24625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24626$as_echo "yes" >&6; }
24627      sane_cv_have_sys_io_h_with_inb_outb="yes"
24628else
24629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24630$as_echo "no" >&6; }
24631      sane_cv_have_sys_io_h_with_inb_outb="no"
24632      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sys/io.h does not provide inb,outb (non i386/x32/x86_64 arch?)" >&5
24633$as_echo "$as_me: WARNING: sys/io.h does not provide inb,outb (non i386/x32/x86_64 arch?)" >&2;}
24634fi
24635rm -f core conftest.err conftest.$ac_objext \
24636    conftest$ac_exeext conftest.$ac_ext
24637  if test "$sane_cv_have_sys_io_h_with_inb_outb" = "yes"; then
24638
24639$as_echo "#define SANE_HAVE_SYS_IO_H_WITH_INB_OUTB 1" >>confdefs.h
24640
24641  fi
24642else
24643  sane_cv_have_sys_io_h_with_inb_outb="no"
24644fi
24645
24646
24647
24648
24649
24650if test "$ac_cv_header_os2_h" = "yes" ; then
24651
24652$as_echo "#define strncasecmp strnicmp" >>confdefs.h
24653
24654
24655$as_echo "#define strcasecmp stricmp" >>confdefs.h
24656
24657fi
24658
24659if test "$ac_cv_header_getopt_h" = "yes" ; then
24660  for ac_func in getopt_long
24661do :
24662  ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
24663if test "x$ac_cv_func_getopt_long" = xyes; then :
24664  cat >>confdefs.h <<_ACEOF
24665#define HAVE_GETOPT_LONG 1
24666_ACEOF
24667
24668fi
24669done
24670
24671fi
24672
24673# Slightly abuse the AC_LIBOBJ macro to mark files as replacement code
24674if test x$ac_cv_header_getopt_h != xyes \
24675       && test x$ac_cv_func_getopt_long != xyes; then :
24676  case " $LIBOBJS " in
24677  *" getopt.$ac_objext "* ) ;;
24678  *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
24679 ;;
24680esac
24681
24682       case " $LIBOBJS " in
24683  *" getopt1.$ac_objext "* ) ;;
24684  *) LIBOBJS="$LIBOBJS getopt1.$ac_objext"
24685 ;;
24686esac
24687
24688fi
24689
24690if test -c /dev/urandom ; then
24691
24692$as_echo "#define HAVE_DEV_URANDOM 1" >>confdefs.h
24693
24694fi
24695
24696
24697# Check whether --with-systemd was given.
24698if test "${with_systemd+set}" = set; then :
24699  withval=$with_systemd;
24700fi
24701
24702if test "x$with_systemd" != xno ; then
24703
24704pkg_failed=no
24705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
24706$as_echo_n "checking for SYSTEMD... " >&6; }
24707
24708if test -n "$SYSTEMD_CFLAGS"; then
24709    pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
24710 elif test -n "$PKG_CONFIG"; then
24711    if test -n "$PKG_CONFIG" && \
24712    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
24713  ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
24714  ac_status=$?
24715  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24716  test $ac_status = 0; }; then
24717  pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
24718		      test "x$?" != "x0" && pkg_failed=yes
24719else
24720  pkg_failed=yes
24721fi
24722 else
24723    pkg_failed=untried
24724fi
24725if test -n "$SYSTEMD_LIBS"; then
24726    pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
24727 elif test -n "$PKG_CONFIG"; then
24728    if test -n "$PKG_CONFIG" && \
24729    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
24730  ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
24731  ac_status=$?
24732  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24733  test $ac_status = 0; }; then
24734  pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
24735		      test "x$?" != "x0" && pkg_failed=yes
24736else
24737  pkg_failed=yes
24738fi
24739 else
24740    pkg_failed=untried
24741fi
24742
24743
24744
24745if test $pkg_failed = yes; then
24746   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24747$as_echo "no" >&6; }
24748
24749if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24750        _pkg_short_errors_supported=yes
24751else
24752        _pkg_short_errors_supported=no
24753fi
24754        if test $_pkg_short_errors_supported = yes; then
24755	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
24756        else
24757	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
24758        fi
24759	# Put the nasty error message in config.log where it belongs
24760	echo "$SYSTEMD_PKG_ERRORS" >&5
24761
24762	have_systemd=no
24763elif test $pkg_failed = untried; then
24764     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24765$as_echo "no" >&6; }
24766	have_systemd=no
24767else
24768	SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
24769	SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
24770        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24771$as_echo "yes" >&6; }
24772	have_systemd=yes
24773fi
24774  if test "x$have_systemd" = xno; then
24775
24776pkg_failed=no
24777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
24778$as_echo_n "checking for SYSTEMD... " >&6; }
24779
24780if test -n "$SYSTEMD_CFLAGS"; then
24781    pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
24782 elif test -n "$PKG_CONFIG"; then
24783    if test -n "$PKG_CONFIG" && \
24784    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
24785  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
24786  ac_status=$?
24787  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24788  test $ac_status = 0; }; then
24789  pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
24790		      test "x$?" != "x0" && pkg_failed=yes
24791else
24792  pkg_failed=yes
24793fi
24794 else
24795    pkg_failed=untried
24796fi
24797if test -n "$SYSTEMD_LIBS"; then
24798    pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
24799 elif test -n "$PKG_CONFIG"; then
24800    if test -n "$PKG_CONFIG" && \
24801    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
24802  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
24803  ac_status=$?
24804  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24805  test $ac_status = 0; }; then
24806  pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
24807		      test "x$?" != "x0" && pkg_failed=yes
24808else
24809  pkg_failed=yes
24810fi
24811 else
24812    pkg_failed=untried
24813fi
24814
24815
24816
24817if test $pkg_failed = yes; then
24818   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24819$as_echo "no" >&6; }
24820
24821if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24822        _pkg_short_errors_supported=yes
24823else
24824        _pkg_short_errors_supported=no
24825fi
24826        if test $_pkg_short_errors_supported = yes; then
24827	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
24828        else
24829	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
24830        fi
24831	# Put the nasty error message in config.log where it belongs
24832	echo "$SYSTEMD_PKG_ERRORS" >&5
24833
24834	have_systemd=no
24835elif test $pkg_failed = untried; then
24836     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24837$as_echo "no" >&6; }
24838	have_systemd=no
24839else
24840	SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
24841	SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
24842        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24843$as_echo "yes" >&6; }
24844	have_systemd=yes
24845fi
24846  fi
24847  if test "x$have_systemd" = xyes; then
24848
24849$as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
24850
24851  else
24852    if test "x$with_systemd" = xyes; then
24853      as_fn_error $? "Systemd support was requested but systemd was not found" "$LINENO" 5
24854    fi
24855  fi
24856fi
24857
24858
24859
24860# Check whether --with-usb was given.
24861if test "${with_usb+set}" = set; then :
24862  withval=$with_usb;
24863else
24864  with_usb=check
24865fi
24866
24867if test xno != "x$with_usb"; then :
24868  have_usb=no
24869   case x$host_os in #(
24870      xbeos*) :
24871    ac_fn_c_check_header_mongrel "$LINENO" "be/drivers/USB_scanner.h" "ac_cv_header_be_drivers_USB_scanner_h" "$ac_includes_default"
24872if test "x$ac_cv_header_be_drivers_USB_scanner_h" = xyes; then :
24873  have_usb=yes
24874fi
24875
24876 ;; #(
24877  xos2*) :
24878    ac_fn_c_check_header_compile "$LINENO" "usbcalls.h" "ac_cv_header_usbcalls_h" "#include <usb.h>
24879         #include <os2.h>
24880
24881"
24882if test "x$ac_cv_header_usbcalls_h" = xyes; then :
24883  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UsbQueryNumberDevices in -lusbcall" >&5
24884$as_echo_n "checking for UsbQueryNumberDevices in -lusbcall... " >&6; }
24885if ${ac_cv_lib_usbcall_UsbQueryNumberDevices+:} false; then :
24886  $as_echo_n "(cached) " >&6
24887else
24888  ac_check_lib_save_LIBS=$LIBS
24889LIBS="-lusbcall  $LIBS"
24890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24891/* end confdefs.h.  */
24892
24893/* Override any GCC internal prototype to avoid an error.
24894   Use char because int might match the return type of a GCC
24895   builtin and then its argument prototype would still apply.  */
24896#ifdef __cplusplus
24897extern "C"
24898#endif
24899char UsbQueryNumberDevices ();
24900int
24901main ()
24902{
24903return UsbQueryNumberDevices ();
24904  ;
24905  return 0;
24906}
24907_ACEOF
24908if ac_fn_c_try_link "$LINENO"; then :
24909  ac_cv_lib_usbcall_UsbQueryNumberDevices=yes
24910else
24911  ac_cv_lib_usbcall_UsbQueryNumberDevices=no
24912fi
24913rm -f core conftest.err conftest.$ac_objext \
24914    conftest$ac_exeext conftest.$ac_ext
24915LIBS=$ac_check_lib_save_LIBS
24916fi
24917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbcall_UsbQueryNumberDevices" >&5
24918$as_echo "$ac_cv_lib_usbcall_UsbQueryNumberDevices" >&6; }
24919if test "x$ac_cv_lib_usbcall_UsbQueryNumberDevices" = xyes; then :
24920  USB_LIBS="-lusbcall"
24921           have_usb=yes
24922
24923$as_echo "#define HAVE_USBCALLS 1" >>confdefs.h
24924
24925
24926fi
24927
24928
24929fi
24930
24931
24932       ;; #(
24933  *) :
24934
24935pkg_failed=no
24936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for USB" >&5
24937$as_echo_n "checking for USB... " >&6; }
24938
24939if test -n "$USB_CFLAGS"; then
24940    pkg_cv_USB_CFLAGS="$USB_CFLAGS"
24941 elif test -n "$PKG_CONFIG"; then
24942    if test -n "$PKG_CONFIG" && \
24943    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
24944  ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
24945  ac_status=$?
24946  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24947  test $ac_status = 0; }; then
24948  pkg_cv_USB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
24949		      test "x$?" != "x0" && pkg_failed=yes
24950else
24951  pkg_failed=yes
24952fi
24953 else
24954    pkg_failed=untried
24955fi
24956if test -n "$USB_LIBS"; then
24957    pkg_cv_USB_LIBS="$USB_LIBS"
24958 elif test -n "$PKG_CONFIG"; then
24959    if test -n "$PKG_CONFIG" && \
24960    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
24961  ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
24962  ac_status=$?
24963  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24964  test $ac_status = 0; }; then
24965  pkg_cv_USB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
24966		      test "x$?" != "x0" && pkg_failed=yes
24967else
24968  pkg_failed=yes
24969fi
24970 else
24971    pkg_failed=untried
24972fi
24973
24974
24975
24976if test $pkg_failed = yes; then
24977   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24978$as_echo "no" >&6; }
24979
24980if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24981        _pkg_short_errors_supported=yes
24982else
24983        _pkg_short_errors_supported=no
24984fi
24985        if test $_pkg_short_errors_supported = yes; then
24986	        USB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
24987        else
24988	        USB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
24989        fi
24990	# Put the nasty error message in config.log where it belongs
24991	echo "$USB_PKG_ERRORS" >&5
24992
24993
24994pkg_failed=no
24995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for USB" >&5
24996$as_echo_n "checking for USB... " >&6; }
24997
24998if test -n "$USB_CFLAGS"; then
24999    pkg_cv_USB_CFLAGS="$USB_CFLAGS"
25000 elif test -n "$PKG_CONFIG"; then
25001    if test -n "$PKG_CONFIG" && \
25002    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb >= 0.1.8\""; } >&5
25003  ($PKG_CONFIG --exists --print-errors "libusb >= 0.1.8") 2>&5
25004  ac_status=$?
25005  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25006  test $ac_status = 0; }; then
25007  pkg_cv_USB_CFLAGS=`$PKG_CONFIG --cflags "libusb >= 0.1.8" 2>/dev/null`
25008		      test "x$?" != "x0" && pkg_failed=yes
25009else
25010  pkg_failed=yes
25011fi
25012 else
25013    pkg_failed=untried
25014fi
25015if test -n "$USB_LIBS"; then
25016    pkg_cv_USB_LIBS="$USB_LIBS"
25017 elif test -n "$PKG_CONFIG"; then
25018    if test -n "$PKG_CONFIG" && \
25019    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb >= 0.1.8\""; } >&5
25020  ($PKG_CONFIG --exists --print-errors "libusb >= 0.1.8") 2>&5
25021  ac_status=$?
25022  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25023  test $ac_status = 0; }; then
25024  pkg_cv_USB_LIBS=`$PKG_CONFIG --libs "libusb >= 0.1.8" 2>/dev/null`
25025		      test "x$?" != "x0" && pkg_failed=yes
25026else
25027  pkg_failed=yes
25028fi
25029 else
25030    pkg_failed=untried
25031fi
25032
25033
25034
25035if test $pkg_failed = yes; then
25036   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25037$as_echo "no" >&6; }
25038
25039if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25040        _pkg_short_errors_supported=yes
25041else
25042        _pkg_short_errors_supported=no
25043fi
25044        if test $_pkg_short_errors_supported = yes; then
25045	        USB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb >= 0.1.8" 2>&1`
25046        else
25047	        USB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb >= 0.1.8" 2>&1`
25048        fi
25049	# Put the nasty error message in config.log where it belongs
25050	echo "$USB_PKG_ERRORS" >&5
25051
25052	         ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
25053if test "x$ac_cv_header_usb_h" = xyes; then :
25054  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_interrupt_read in -lusb" >&5
25055$as_echo_n "checking for usb_interrupt_read in -lusb... " >&6; }
25056if ${ac_cv_lib_usb_usb_interrupt_read+:} false; then :
25057  $as_echo_n "(cached) " >&6
25058else
25059  ac_check_lib_save_LIBS=$LIBS
25060LIBS="-lusb  $LIBS"
25061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25062/* end confdefs.h.  */
25063
25064/* Override any GCC internal prototype to avoid an error.
25065   Use char because int might match the return type of a GCC
25066   builtin and then its argument prototype would still apply.  */
25067#ifdef __cplusplus
25068extern "C"
25069#endif
25070char usb_interrupt_read ();
25071int
25072main ()
25073{
25074return usb_interrupt_read ();
25075  ;
25076  return 0;
25077}
25078_ACEOF
25079if ac_fn_c_try_link "$LINENO"; then :
25080  ac_cv_lib_usb_usb_interrupt_read=yes
25081else
25082  ac_cv_lib_usb_usb_interrupt_read=no
25083fi
25084rm -f core conftest.err conftest.$ac_objext \
25085    conftest$ac_exeext conftest.$ac_ext
25086LIBS=$ac_check_lib_save_LIBS
25087fi
25088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_interrupt_read" >&5
25089$as_echo "$ac_cv_lib_usb_usb_interrupt_read" >&6; }
25090if test "x$ac_cv_lib_usb_usb_interrupt_read" = xyes; then :
25091  USB_LIBS="-lusb"
25092             have_usb=yes
25093
25094fi
25095
25096fi
25097
25098
25099         for ac_header in lusb0_usb.h
25100do :
25101  ac_fn_c_check_header_mongrel "$LINENO" "lusb0_usb.h" "ac_cv_header_lusb0_usb_h" "$ac_includes_default"
25102if test "x$ac_cv_header_lusb0_usb_h" = xyes; then :
25103  cat >>confdefs.h <<_ACEOF
25104#define HAVE_LUSB0_USB_H 1
25105_ACEOF
25106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_interrupt_read in -lusb" >&5
25107$as_echo_n "checking for usb_interrupt_read in -lusb... " >&6; }
25108if ${ac_cv_lib_usb_usb_interrupt_read+:} false; then :
25109  $as_echo_n "(cached) " >&6
25110else
25111  ac_check_lib_save_LIBS=$LIBS
25112LIBS="-lusb  $LIBS"
25113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25114/* end confdefs.h.  */
25115
25116/* Override any GCC internal prototype to avoid an error.
25117   Use char because int might match the return type of a GCC
25118   builtin and then its argument prototype would still apply.  */
25119#ifdef __cplusplus
25120extern "C"
25121#endif
25122char usb_interrupt_read ();
25123int
25124main ()
25125{
25126return usb_interrupt_read ();
25127  ;
25128  return 0;
25129}
25130_ACEOF
25131if ac_fn_c_try_link "$LINENO"; then :
25132  ac_cv_lib_usb_usb_interrupt_read=yes
25133else
25134  ac_cv_lib_usb_usb_interrupt_read=no
25135fi
25136rm -f core conftest.err conftest.$ac_objext \
25137    conftest$ac_exeext conftest.$ac_ext
25138LIBS=$ac_check_lib_save_LIBS
25139fi
25140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_interrupt_read" >&5
25141$as_echo "$ac_cv_lib_usb_usb_interrupt_read" >&6; }
25142if test "x$ac_cv_lib_usb_usb_interrupt_read" = xyes; then :
25143  USB_LIBS="-lusb"
25144              have_usb=yes
25145
25146fi
25147
25148fi
25149
25150done
25151
25152
25153elif test $pkg_failed = untried; then
25154     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25155$as_echo "no" >&6; }
25156	         ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
25157if test "x$ac_cv_header_usb_h" = xyes; then :
25158  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_interrupt_read in -lusb" >&5
25159$as_echo_n "checking for usb_interrupt_read in -lusb... " >&6; }
25160if ${ac_cv_lib_usb_usb_interrupt_read+:} false; then :
25161  $as_echo_n "(cached) " >&6
25162else
25163  ac_check_lib_save_LIBS=$LIBS
25164LIBS="-lusb  $LIBS"
25165cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25166/* end confdefs.h.  */
25167
25168/* Override any GCC internal prototype to avoid an error.
25169   Use char because int might match the return type of a GCC
25170   builtin and then its argument prototype would still apply.  */
25171#ifdef __cplusplus
25172extern "C"
25173#endif
25174char usb_interrupt_read ();
25175int
25176main ()
25177{
25178return usb_interrupt_read ();
25179  ;
25180  return 0;
25181}
25182_ACEOF
25183if ac_fn_c_try_link "$LINENO"; then :
25184  ac_cv_lib_usb_usb_interrupt_read=yes
25185else
25186  ac_cv_lib_usb_usb_interrupt_read=no
25187fi
25188rm -f core conftest.err conftest.$ac_objext \
25189    conftest$ac_exeext conftest.$ac_ext
25190LIBS=$ac_check_lib_save_LIBS
25191fi
25192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_interrupt_read" >&5
25193$as_echo "$ac_cv_lib_usb_usb_interrupt_read" >&6; }
25194if test "x$ac_cv_lib_usb_usb_interrupt_read" = xyes; then :
25195  USB_LIBS="-lusb"
25196             have_usb=yes
25197
25198fi
25199
25200fi
25201
25202
25203         for ac_header in lusb0_usb.h
25204do :
25205  ac_fn_c_check_header_mongrel "$LINENO" "lusb0_usb.h" "ac_cv_header_lusb0_usb_h" "$ac_includes_default"
25206if test "x$ac_cv_header_lusb0_usb_h" = xyes; then :
25207  cat >>confdefs.h <<_ACEOF
25208#define HAVE_LUSB0_USB_H 1
25209_ACEOF
25210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_interrupt_read in -lusb" >&5
25211$as_echo_n "checking for usb_interrupt_read in -lusb... " >&6; }
25212if ${ac_cv_lib_usb_usb_interrupt_read+:} false; then :
25213  $as_echo_n "(cached) " >&6
25214else
25215  ac_check_lib_save_LIBS=$LIBS
25216LIBS="-lusb  $LIBS"
25217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25218/* end confdefs.h.  */
25219
25220/* Override any GCC internal prototype to avoid an error.
25221   Use char because int might match the return type of a GCC
25222   builtin and then its argument prototype would still apply.  */
25223#ifdef __cplusplus
25224extern "C"
25225#endif
25226char usb_interrupt_read ();
25227int
25228main ()
25229{
25230return usb_interrupt_read ();
25231  ;
25232  return 0;
25233}
25234_ACEOF
25235if ac_fn_c_try_link "$LINENO"; then :
25236  ac_cv_lib_usb_usb_interrupt_read=yes
25237else
25238  ac_cv_lib_usb_usb_interrupt_read=no
25239fi
25240rm -f core conftest.err conftest.$ac_objext \
25241    conftest$ac_exeext conftest.$ac_ext
25242LIBS=$ac_check_lib_save_LIBS
25243fi
25244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_interrupt_read" >&5
25245$as_echo "$ac_cv_lib_usb_usb_interrupt_read" >&6; }
25246if test "x$ac_cv_lib_usb_usb_interrupt_read" = xyes; then :
25247  USB_LIBS="-lusb"
25248              have_usb=yes
25249
25250fi
25251
25252fi
25253
25254done
25255
25256
25257else
25258	USB_CFLAGS=$pkg_cv_USB_CFLAGS
25259	USB_LIBS=$pkg_cv_USB_LIBS
25260        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25261$as_echo "yes" >&6; }
25262
25263$as_echo "#define HAVE_LIBUSB_LEGACY 1" >>confdefs.h
25264
25265         have_usb=yes
25266
25267fi
25268
25269elif test $pkg_failed = untried; then
25270     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25271$as_echo "no" >&6; }
25272
25273pkg_failed=no
25274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for USB" >&5
25275$as_echo_n "checking for USB... " >&6; }
25276
25277if test -n "$USB_CFLAGS"; then
25278    pkg_cv_USB_CFLAGS="$USB_CFLAGS"
25279 elif test -n "$PKG_CONFIG"; then
25280    if test -n "$PKG_CONFIG" && \
25281    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb >= 0.1.8\""; } >&5
25282  ($PKG_CONFIG --exists --print-errors "libusb >= 0.1.8") 2>&5
25283  ac_status=$?
25284  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25285  test $ac_status = 0; }; then
25286  pkg_cv_USB_CFLAGS=`$PKG_CONFIG --cflags "libusb >= 0.1.8" 2>/dev/null`
25287		      test "x$?" != "x0" && pkg_failed=yes
25288else
25289  pkg_failed=yes
25290fi
25291 else
25292    pkg_failed=untried
25293fi
25294if test -n "$USB_LIBS"; then
25295    pkg_cv_USB_LIBS="$USB_LIBS"
25296 elif test -n "$PKG_CONFIG"; then
25297    if test -n "$PKG_CONFIG" && \
25298    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb >= 0.1.8\""; } >&5
25299  ($PKG_CONFIG --exists --print-errors "libusb >= 0.1.8") 2>&5
25300  ac_status=$?
25301  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25302  test $ac_status = 0; }; then
25303  pkg_cv_USB_LIBS=`$PKG_CONFIG --libs "libusb >= 0.1.8" 2>/dev/null`
25304		      test "x$?" != "x0" && pkg_failed=yes
25305else
25306  pkg_failed=yes
25307fi
25308 else
25309    pkg_failed=untried
25310fi
25311
25312
25313
25314if test $pkg_failed = yes; then
25315   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25316$as_echo "no" >&6; }
25317
25318if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25319        _pkg_short_errors_supported=yes
25320else
25321        _pkg_short_errors_supported=no
25322fi
25323        if test $_pkg_short_errors_supported = yes; then
25324	        USB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb >= 0.1.8" 2>&1`
25325        else
25326	        USB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb >= 0.1.8" 2>&1`
25327        fi
25328	# Put the nasty error message in config.log where it belongs
25329	echo "$USB_PKG_ERRORS" >&5
25330
25331	         ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
25332if test "x$ac_cv_header_usb_h" = xyes; then :
25333  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_interrupt_read in -lusb" >&5
25334$as_echo_n "checking for usb_interrupt_read in -lusb... " >&6; }
25335if ${ac_cv_lib_usb_usb_interrupt_read+:} false; then :
25336  $as_echo_n "(cached) " >&6
25337else
25338  ac_check_lib_save_LIBS=$LIBS
25339LIBS="-lusb  $LIBS"
25340cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25341/* end confdefs.h.  */
25342
25343/* Override any GCC internal prototype to avoid an error.
25344   Use char because int might match the return type of a GCC
25345   builtin and then its argument prototype would still apply.  */
25346#ifdef __cplusplus
25347extern "C"
25348#endif
25349char usb_interrupt_read ();
25350int
25351main ()
25352{
25353return usb_interrupt_read ();
25354  ;
25355  return 0;
25356}
25357_ACEOF
25358if ac_fn_c_try_link "$LINENO"; then :
25359  ac_cv_lib_usb_usb_interrupt_read=yes
25360else
25361  ac_cv_lib_usb_usb_interrupt_read=no
25362fi
25363rm -f core conftest.err conftest.$ac_objext \
25364    conftest$ac_exeext conftest.$ac_ext
25365LIBS=$ac_check_lib_save_LIBS
25366fi
25367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_interrupt_read" >&5
25368$as_echo "$ac_cv_lib_usb_usb_interrupt_read" >&6; }
25369if test "x$ac_cv_lib_usb_usb_interrupt_read" = xyes; then :
25370  USB_LIBS="-lusb"
25371             have_usb=yes
25372
25373fi
25374
25375fi
25376
25377
25378         for ac_header in lusb0_usb.h
25379do :
25380  ac_fn_c_check_header_mongrel "$LINENO" "lusb0_usb.h" "ac_cv_header_lusb0_usb_h" "$ac_includes_default"
25381if test "x$ac_cv_header_lusb0_usb_h" = xyes; then :
25382  cat >>confdefs.h <<_ACEOF
25383#define HAVE_LUSB0_USB_H 1
25384_ACEOF
25385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_interrupt_read in -lusb" >&5
25386$as_echo_n "checking for usb_interrupt_read in -lusb... " >&6; }
25387if ${ac_cv_lib_usb_usb_interrupt_read+:} false; then :
25388  $as_echo_n "(cached) " >&6
25389else
25390  ac_check_lib_save_LIBS=$LIBS
25391LIBS="-lusb  $LIBS"
25392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25393/* end confdefs.h.  */
25394
25395/* Override any GCC internal prototype to avoid an error.
25396   Use char because int might match the return type of a GCC
25397   builtin and then its argument prototype would still apply.  */
25398#ifdef __cplusplus
25399extern "C"
25400#endif
25401char usb_interrupt_read ();
25402int
25403main ()
25404{
25405return usb_interrupt_read ();
25406  ;
25407  return 0;
25408}
25409_ACEOF
25410if ac_fn_c_try_link "$LINENO"; then :
25411  ac_cv_lib_usb_usb_interrupt_read=yes
25412else
25413  ac_cv_lib_usb_usb_interrupt_read=no
25414fi
25415rm -f core conftest.err conftest.$ac_objext \
25416    conftest$ac_exeext conftest.$ac_ext
25417LIBS=$ac_check_lib_save_LIBS
25418fi
25419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_interrupt_read" >&5
25420$as_echo "$ac_cv_lib_usb_usb_interrupt_read" >&6; }
25421if test "x$ac_cv_lib_usb_usb_interrupt_read" = xyes; then :
25422  USB_LIBS="-lusb"
25423              have_usb=yes
25424
25425fi
25426
25427fi
25428
25429done
25430
25431
25432elif test $pkg_failed = untried; then
25433     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25434$as_echo "no" >&6; }
25435	         ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
25436if test "x$ac_cv_header_usb_h" = xyes; then :
25437  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_interrupt_read in -lusb" >&5
25438$as_echo_n "checking for usb_interrupt_read in -lusb... " >&6; }
25439if ${ac_cv_lib_usb_usb_interrupt_read+:} false; then :
25440  $as_echo_n "(cached) " >&6
25441else
25442  ac_check_lib_save_LIBS=$LIBS
25443LIBS="-lusb  $LIBS"
25444cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25445/* end confdefs.h.  */
25446
25447/* Override any GCC internal prototype to avoid an error.
25448   Use char because int might match the return type of a GCC
25449   builtin and then its argument prototype would still apply.  */
25450#ifdef __cplusplus
25451extern "C"
25452#endif
25453char usb_interrupt_read ();
25454int
25455main ()
25456{
25457return usb_interrupt_read ();
25458  ;
25459  return 0;
25460}
25461_ACEOF
25462if ac_fn_c_try_link "$LINENO"; then :
25463  ac_cv_lib_usb_usb_interrupt_read=yes
25464else
25465  ac_cv_lib_usb_usb_interrupt_read=no
25466fi
25467rm -f core conftest.err conftest.$ac_objext \
25468    conftest$ac_exeext conftest.$ac_ext
25469LIBS=$ac_check_lib_save_LIBS
25470fi
25471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_interrupt_read" >&5
25472$as_echo "$ac_cv_lib_usb_usb_interrupt_read" >&6; }
25473if test "x$ac_cv_lib_usb_usb_interrupt_read" = xyes; then :
25474  USB_LIBS="-lusb"
25475             have_usb=yes
25476
25477fi
25478
25479fi
25480
25481
25482         for ac_header in lusb0_usb.h
25483do :
25484  ac_fn_c_check_header_mongrel "$LINENO" "lusb0_usb.h" "ac_cv_header_lusb0_usb_h" "$ac_includes_default"
25485if test "x$ac_cv_header_lusb0_usb_h" = xyes; then :
25486  cat >>confdefs.h <<_ACEOF
25487#define HAVE_LUSB0_USB_H 1
25488_ACEOF
25489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_interrupt_read in -lusb" >&5
25490$as_echo_n "checking for usb_interrupt_read in -lusb... " >&6; }
25491if ${ac_cv_lib_usb_usb_interrupt_read+:} false; then :
25492  $as_echo_n "(cached) " >&6
25493else
25494  ac_check_lib_save_LIBS=$LIBS
25495LIBS="-lusb  $LIBS"
25496cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25497/* end confdefs.h.  */
25498
25499/* Override any GCC internal prototype to avoid an error.
25500   Use char because int might match the return type of a GCC
25501   builtin and then its argument prototype would still apply.  */
25502#ifdef __cplusplus
25503extern "C"
25504#endif
25505char usb_interrupt_read ();
25506int
25507main ()
25508{
25509return usb_interrupt_read ();
25510  ;
25511  return 0;
25512}
25513_ACEOF
25514if ac_fn_c_try_link "$LINENO"; then :
25515  ac_cv_lib_usb_usb_interrupt_read=yes
25516else
25517  ac_cv_lib_usb_usb_interrupt_read=no
25518fi
25519rm -f core conftest.err conftest.$ac_objext \
25520    conftest$ac_exeext conftest.$ac_ext
25521LIBS=$ac_check_lib_save_LIBS
25522fi
25523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_interrupt_read" >&5
25524$as_echo "$ac_cv_lib_usb_usb_interrupt_read" >&6; }
25525if test "x$ac_cv_lib_usb_usb_interrupt_read" = xyes; then :
25526  USB_LIBS="-lusb"
25527              have_usb=yes
25528
25529fi
25530
25531fi
25532
25533done
25534
25535
25536else
25537	USB_CFLAGS=$pkg_cv_USB_CFLAGS
25538	USB_LIBS=$pkg_cv_USB_LIBS
25539        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25540$as_echo "yes" >&6; }
25541
25542$as_echo "#define HAVE_LIBUSB_LEGACY 1" >>confdefs.h
25543
25544         have_usb=yes
25545
25546fi
25547
25548else
25549	USB_CFLAGS=$pkg_cv_USB_CFLAGS
25550	USB_LIBS=$pkg_cv_USB_LIBS
25551        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25552$as_echo "yes" >&6; }
25553
25554$as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
25555
25556       have_usb=yes
25557
25558fi
25559     ;;
25560esac
25561
25562fi
25563if test xyes = "x$with_usb" && test xyes != "x$have_usb"; then :
25564  as_fn_error $? "USB support requested but required libraries not found." "$LINENO" 5
25565
25566fi
25567 if test x != "x$USB_LIBS"; then
25568  have_usblib_TRUE=
25569  have_usblib_FALSE='#'
25570else
25571  have_usblib_TRUE='#'
25572  have_usblib_FALSE=
25573fi
25574
25575
25576
25577# Check whether --with-libcurl was given.
25578if test "${with_libcurl+set}" = set; then :
25579  withval=$with_libcurl;
25580else
25581  with_libcurl=check
25582fi
25583
25584
25585$as_echo "#define HAVE_LIBCURL 0" >>confdefs.h
25586
25587if test xno != "x$with_libcurl"; then :
25588
25589pkg_failed=no
25590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl" >&5
25591$as_echo_n "checking for libcurl... " >&6; }
25592
25593if test -n "$libcurl_CFLAGS"; then
25594    pkg_cv_libcurl_CFLAGS="$libcurl_CFLAGS"
25595 elif test -n "$PKG_CONFIG"; then
25596    if test -n "$PKG_CONFIG" && \
25597    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
25598  ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
25599  ac_status=$?
25600  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25601  test $ac_status = 0; }; then
25602  pkg_cv_libcurl_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
25603		      test "x$?" != "x0" && pkg_failed=yes
25604else
25605  pkg_failed=yes
25606fi
25607 else
25608    pkg_failed=untried
25609fi
25610if test -n "$libcurl_LIBS"; then
25611    pkg_cv_libcurl_LIBS="$libcurl_LIBS"
25612 elif test -n "$PKG_CONFIG"; then
25613    if test -n "$PKG_CONFIG" && \
25614    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
25615  ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
25616  ac_status=$?
25617  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25618  test $ac_status = 0; }; then
25619  pkg_cv_libcurl_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
25620		      test "x$?" != "x0" && pkg_failed=yes
25621else
25622  pkg_failed=yes
25623fi
25624 else
25625    pkg_failed=untried
25626fi
25627
25628
25629
25630if test $pkg_failed = yes; then
25631   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25632$as_echo "no" >&6; }
25633
25634if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25635        _pkg_short_errors_supported=yes
25636else
25637        _pkg_short_errors_supported=no
25638fi
25639        if test $_pkg_short_errors_supported = yes; then
25640	        libcurl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl" 2>&1`
25641        else
25642	        libcurl_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl" 2>&1`
25643        fi
25644	# Put the nasty error message in config.log where it belongs
25645	echo "$libcurl_PKG_ERRORS" >&5
25646
25647	if test xcheck != "x$with_libcurl"; then :
25648  as_fn_error $? "libcurl requested but not found" "$LINENO" 5
25649fi
25650      with_libcurl=no
25651
25652elif test $pkg_failed = untried; then
25653     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25654$as_echo "no" >&6; }
25655	if test xcheck != "x$with_libcurl"; then :
25656  as_fn_error $? "libcurl requested but not found" "$LINENO" 5
25657fi
25658      with_libcurl=no
25659
25660else
25661	libcurl_CFLAGS=$pkg_cv_libcurl_CFLAGS
25662	libcurl_LIBS=$pkg_cv_libcurl_LIBS
25663        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25664$as_echo "yes" >&6; }
25665	$as_echo "#define HAVE_LIBCURL 1" >>confdefs.h
25666
25667      with_libcurl=yes
25668
25669fi
25670
25671fi
25672 if test x != "x$libcurl_LIBS"; then
25673  have_libcurl_TRUE=
25674  have_libcurl_FALSE='#'
25675else
25676  have_libcurl_TRUE='#'
25677  have_libcurl_FALSE=
25678fi
25679
25680
25681
25682# Check whether --with-poppler-glib was given.
25683if test "${with_poppler_glib+set}" = set; then :
25684  withval=$with_poppler_glib;
25685else
25686  with_poppler_glib=check
25687fi
25688
25689
25690$as_echo "#define HAVE_POPPLER_GLIB 0" >>confdefs.h
25691
25692if test xno != "x$with_poppler_glib"; then :
25693
25694pkg_failed=no
25695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POPPLER_GLIB" >&5
25696$as_echo_n "checking for POPPLER_GLIB... " >&6; }
25697
25698if test -n "$POPPLER_GLIB_CFLAGS"; then
25699    pkg_cv_POPPLER_GLIB_CFLAGS="$POPPLER_GLIB_CFLAGS"
25700 elif test -n "$PKG_CONFIG"; then
25701    if test -n "$PKG_CONFIG" && \
25702    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"poppler-glib\""; } >&5
25703  ($PKG_CONFIG --exists --print-errors "poppler-glib") 2>&5
25704  ac_status=$?
25705  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25706  test $ac_status = 0; }; then
25707  pkg_cv_POPPLER_GLIB_CFLAGS=`$PKG_CONFIG --cflags "poppler-glib" 2>/dev/null`
25708		      test "x$?" != "x0" && pkg_failed=yes
25709else
25710  pkg_failed=yes
25711fi
25712 else
25713    pkg_failed=untried
25714fi
25715if test -n "$POPPLER_GLIB_LIBS"; then
25716    pkg_cv_POPPLER_GLIB_LIBS="$POPPLER_GLIB_LIBS"
25717 elif test -n "$PKG_CONFIG"; then
25718    if test -n "$PKG_CONFIG" && \
25719    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"poppler-glib\""; } >&5
25720  ($PKG_CONFIG --exists --print-errors "poppler-glib") 2>&5
25721  ac_status=$?
25722  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25723  test $ac_status = 0; }; then
25724  pkg_cv_POPPLER_GLIB_LIBS=`$PKG_CONFIG --libs "poppler-glib" 2>/dev/null`
25725		      test "x$?" != "x0" && pkg_failed=yes
25726else
25727  pkg_failed=yes
25728fi
25729 else
25730    pkg_failed=untried
25731fi
25732
25733
25734
25735if test $pkg_failed = yes; then
25736   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25737$as_echo "no" >&6; }
25738
25739if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25740        _pkg_short_errors_supported=yes
25741else
25742        _pkg_short_errors_supported=no
25743fi
25744        if test $_pkg_short_errors_supported = yes; then
25745	        POPPLER_GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "poppler-glib" 2>&1`
25746        else
25747	        POPPLER_GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "poppler-glib" 2>&1`
25748        fi
25749	# Put the nasty error message in config.log where it belongs
25750	echo "$POPPLER_GLIB_PKG_ERRORS" >&5
25751
25752	if test xcheck != "x$with_poppler_glib"; then :
25753  as_fn_error $? "poppler-glib requested but not found" "$LINENO" 5
25754fi
25755      with_poppler_glib=no
25756
25757elif test $pkg_failed = untried; then
25758     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25759$as_echo "no" >&6; }
25760	if test xcheck != "x$with_poppler_glib"; then :
25761  as_fn_error $? "poppler-glib requested but not found" "$LINENO" 5
25762fi
25763      with_poppler_glib=no
25764
25765else
25766	POPPLER_GLIB_CFLAGS=$pkg_cv_POPPLER_GLIB_CFLAGS
25767	POPPLER_GLIB_LIBS=$pkg_cv_POPPLER_GLIB_LIBS
25768        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25769$as_echo "yes" >&6; }
25770	$as_echo "#define HAVE_POPPLER_GLIB 1" >>confdefs.h
25771
25772      with_poppler_glib=yes
25773
25774fi
25775
25776fi
25777 if test x != "x$POPPLER_GLIB_LIBS"; then
25778  have_poppler_glib_TRUE=
25779  have_poppler_glib_FALSE='#'
25780else
25781  have_poppler_glib_TRUE='#'
25782  have_poppler_glib_FALSE=
25783fi
25784
25785
25786
25787# Check whether --with-usb_record_replay was given.
25788if test "${with_usb_record_replay+set}" = set; then :
25789  withval=$with_usb_record_replay;
25790fi
25791
25792
25793if test "x$with_usb_record_replay" != "xno"; then
25794
25795pkg_failed=no
25796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
25797$as_echo_n "checking for XML... " >&6; }
25798
25799if test -n "$XML_CFLAGS"; then
25800    pkg_cv_XML_CFLAGS="$XML_CFLAGS"
25801 elif test -n "$PKG_CONFIG"; then
25802    if test -n "$PKG_CONFIG" && \
25803    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
25804  ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
25805  ac_status=$?
25806  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25807  test $ac_status = 0; }; then
25808  pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
25809		      test "x$?" != "x0" && pkg_failed=yes
25810else
25811  pkg_failed=yes
25812fi
25813 else
25814    pkg_failed=untried
25815fi
25816if test -n "$XML_LIBS"; then
25817    pkg_cv_XML_LIBS="$XML_LIBS"
25818 elif test -n "$PKG_CONFIG"; then
25819    if test -n "$PKG_CONFIG" && \
25820    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
25821  ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
25822  ac_status=$?
25823  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25824  test $ac_status = 0; }; then
25825  pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
25826		      test "x$?" != "x0" && pkg_failed=yes
25827else
25828  pkg_failed=yes
25829fi
25830 else
25831    pkg_failed=untried
25832fi
25833
25834
25835
25836if test $pkg_failed = yes; then
25837   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25838$as_echo "no" >&6; }
25839
25840if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25841        _pkg_short_errors_supported=yes
25842else
25843        _pkg_short_errors_supported=no
25844fi
25845        if test $_pkg_short_errors_supported = yes; then
25846	        XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1`
25847        else
25848	        XML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1`
25849        fi
25850	# Put the nasty error message in config.log where it belongs
25851	echo "$XML_PKG_ERRORS" >&5
25852
25853	have_libxml=no
25854elif test $pkg_failed = untried; then
25855     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25856$as_echo "no" >&6; }
25857	have_libxml=no
25858else
25859	XML_CFLAGS=$pkg_cv_XML_CFLAGS
25860	XML_LIBS=$pkg_cv_XML_LIBS
25861        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25862$as_echo "yes" >&6; }
25863	have_libxml=yes
25864fi
25865  if test "x$have_libxml" = xyes; then
25866
25867$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
25868
25869
25870$as_echo "#define WITH_USB_RECORD_REPLAY 1" >>confdefs.h
25871
25872  else
25873    if test "x$with_usb_record_replay" = xyes; then
25874      as_fn_error $? "USB record and replay support was requested but libxml-2.0 was not found" "$LINENO" 5
25875    fi
25876  fi
25877fi
25878 if test x != "x$XML_LIBS"; then
25879  have_libxml2_TRUE=
25880  have_libxml2_FALSE='#'
25881else
25882  have_libxml2_TRUE='#'
25883  have_libxml2_FALSE=
25884fi
25885
25886
25887
25888
25889# Unset VERSION during the SCSI header check
25890sed "s!^#define VERSION .*!/* & */!" confdefs.h > confdefs.h.tmp
25891mv confdefs.h.tmp confdefs.h
25892
25893for ac_header in IOKit/scsi/SCSITaskLib.h IOKit/cdb/IOSCSILib.h \
25894  IOKit/scsi/SCSICommandOperationCodes.h \
25895  IOKit/scsi-commands/SCSICommandOperationCodes.h scsi.h sys/scsi.h \
25896  sys/scsicmd.h sys/scsiio.h bsd/dev/scsireg.h scsi/sg.h \
25897  camlib.h gscdds.h sys/scsi/scsi.h sys/scsi/sgdefs.h \
25898  sys/scsi/targets/scgio.h apollo/scsi.h sys/sdi_comm.h \
25899  sys/passthrudef.h
25900do :
25901  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25902ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25903if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25904  cat >>confdefs.h <<_ACEOF
25905#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25906_ACEOF
25907
25908fi
25909
25910done
25911
25912
25913# Restore VERSION
25914sed "s!/\* \(#define VERSION .*\) \*/!\1!" confdefs.h > confdefs.h.tmp
25915mv confdefs.h.tmp confdefs.h
25916
25917for ac_header in io/cam/cam.h
25918do :
25919  ac_fn_c_check_header_compile "$LINENO" "io/cam/cam.h" "ac_cv_header_io_cam_cam_h" "#include <io/common/iotypes.h>
25920"
25921if test "x$ac_cv_header_io_cam_cam_h" = xyes; then :
25922  cat >>confdefs.h <<_ACEOF
25923#define HAVE_IO_CAM_CAM_H 1
25924_ACEOF
25925
25926fi
25927
25928done
25929
25930for ac_header in ntddscsi.h ddk/ntddscsi.h
25931do :
25932  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25933ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <windows.h>
25934"
25935if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25936  cat >>confdefs.h <<_ACEOF
25937#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25938_ACEOF
25939
25940fi
25941
25942done
25943
25944
25945if test "$ac_cv_header_sys_scsiio_h" = "yes" \
25946  && test "$ac_cv_header_scsi_h" = "yes"; then
25947  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 'scsireq_t' needs to be defined as 'struct scsireq'" >&5
25948$as_echo_n "checking if 'scsireq_t' needs to be defined as 'struct scsireq'... " >&6; }
25949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25950/* end confdefs.h.  */
25951
25952#include <sys/scsiio.h>
25953#include <scsi.h>
25954
25955int
25956main ()
25957{
25958scsireq_t req
25959  ;
25960  return 0;
25961}
25962_ACEOF
25963if ac_fn_c_try_compile "$LINENO"; then :
25964
25965else
25966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25967$as_echo "yes" >&6; };
25968
25969$as_echo "#define scsireq_t struct scsireq_t" >>confdefs.h
25970
25971fi
25972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25973fi
25974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for scsireq_enter in -lscsi" >&5
25975$as_echo_n "checking for scsireq_enter in -lscsi... " >&6; }
25976if ${ac_cv_lib_scsi_scsireq_enter+:} false; then :
25977  $as_echo_n "(cached) " >&6
25978else
25979  ac_check_lib_save_LIBS=$LIBS
25980LIBS="-lscsi  $LIBS"
25981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25982/* end confdefs.h.  */
25983
25984/* Override any GCC internal prototype to avoid an error.
25985   Use char because int might match the return type of a GCC
25986   builtin and then its argument prototype would still apply.  */
25987#ifdef __cplusplus
25988extern "C"
25989#endif
25990char scsireq_enter ();
25991int
25992main ()
25993{
25994return scsireq_enter ();
25995  ;
25996  return 0;
25997}
25998_ACEOF
25999if ac_fn_c_try_link "$LINENO"; then :
26000  ac_cv_lib_scsi_scsireq_enter=yes
26001else
26002  ac_cv_lib_scsi_scsireq_enter=no
26003fi
26004rm -f core conftest.err conftest.$ac_objext \
26005    conftest$ac_exeext conftest.$ac_ext
26006LIBS=$ac_check_lib_save_LIBS
26007fi
26008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_scsi_scsireq_enter" >&5
26009$as_echo "$ac_cv_lib_scsi_scsireq_enter" >&6; }
26010if test "x$ac_cv_lib_scsi_scsireq_enter" = xyes; then :
26011  SCSI_LIBS="-lscsi"
26012fi
26013 # FreeBSD needs this
26014
26015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cam_open_device in -lcam" >&5
26016$as_echo_n "checking for cam_open_device in -lcam... " >&6; }
26017if ${ac_cv_lib_cam_cam_open_device+:} false; then :
26018  $as_echo_n "(cached) " >&6
26019else
26020  ac_check_lib_save_LIBS=$LIBS
26021LIBS="-lcam  $LIBS"
26022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26023/* end confdefs.h.  */
26024
26025/* Override any GCC internal prototype to avoid an error.
26026   Use char because int might match the return type of a GCC
26027   builtin and then its argument prototype would still apply.  */
26028#ifdef __cplusplus
26029extern "C"
26030#endif
26031char cam_open_device ();
26032int
26033main ()
26034{
26035return cam_open_device ();
26036  ;
26037  return 0;
26038}
26039_ACEOF
26040if ac_fn_c_try_link "$LINENO"; then :
26041  ac_cv_lib_cam_cam_open_device=yes
26042else
26043  ac_cv_lib_cam_cam_open_device=no
26044fi
26045rm -f core conftest.err conftest.$ac_objext \
26046    conftest$ac_exeext conftest.$ac_ext
26047LIBS=$ac_check_lib_save_LIBS
26048fi
26049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cam_cam_open_device" >&5
26050$as_echo "$ac_cv_lib_cam_cam_open_device" >&6; }
26051if test "x$ac_cv_lib_cam_cam_open_device" = xyes; then :
26052  SCSI_LIBS="-lcam"
26053fi
26054  # FreeBSD 3+ needs this
26055
26056for ac_func in scsireq_enter
26057do :
26058  ac_fn_c_check_func "$LINENO" "scsireq_enter" "ac_cv_func_scsireq_enter"
26059if test "x$ac_cv_func_scsireq_enter" = xyes; then :
26060  cat >>confdefs.h <<_ACEOF
26061#define HAVE_SCSIREQ_ENTER 1
26062_ACEOF
26063
26064fi
26065done
26066
26067
26068if test "$ac_cv_header_scsi_sg_h" = "yes"; then
26069  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sg_header.target_status in <scsi/sg.h>" >&5
26070$as_echo_n "checking for sg_header.target_status in <scsi/sg.h>... " >&6; }
26071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26072/* end confdefs.h.  */
26073
26074#include <sys/types.h>
26075#include <scsi/sg.h>
26076
26077int
26078main ()
26079{
26080
26081struct sg_header hdr;
26082hdr.target_status = 1;
26083return 0;
26084
26085  ;
26086  return 0;
26087}
26088_ACEOF
26089if ac_fn_c_try_compile "$LINENO"; then :
26090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26091$as_echo "yes" >&6; };
26092
26093$as_echo "#define HAVE_SG_TARGET_STATUS 1" >>confdefs.h
26094
26095else
26096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26097$as_echo "no" >&6; }
26098fi
26099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26100fi
26101
26102if test "$ac_cv_header_IOKit_scsi_SCSITaskLib_h" = "yes"; then
26103  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SCSITaskSGElement in IOKit/scsi/SCSITaskLib.h" >&5
26104$as_echo_n "checking for SCSITaskSGElement in IOKit/scsi/SCSITaskLib.h... " >&6; }
26105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26106/* end confdefs.h.  */
26107
26108#undef VERSION
26109#include <IOKit/scsi/SCSITaskLib.h>
26110
26111int
26112main ()
26113{
26114
26115SCSITaskSGElement range;
26116return 0;
26117
26118  ;
26119  return 0;
26120}
26121_ACEOF
26122if ac_fn_c_try_compile "$LINENO"; then :
26123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26124$as_echo "yes" >&6; };
26125
26126$as_echo "#define HAVE_SCSITASKSGELEMENT 1" >>confdefs.h
26127
26128else
26129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26130$as_echo "no" >&6; }
26131fi
26132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26133fi
26134
26135# Multiple platforms can set SCSI_LIBS so do substitution at end.
26136
26137
26138# Check whether --enable-scsibuffersize was given.
26139if test "${enable_scsibuffersize+set}" = set; then :
26140  enableval=$enable_scsibuffersize; set_scsibuffersize="$enableval"
26141else
26142  set_scsibuffersize=131072
26143fi
26144
26145
26146cat >>confdefs.h <<_ACEOF
26147#define SCSIBUFFERSIZE $set_scsibuffersize
26148_ACEOF
26149
26150echo "scsi buffersize: $set_scsibuffersize"
26151
26152# Check whether --enable-scsi-directio was given.
26153if test "${enable_scsi_directio+set}" = set; then :
26154  enableval=$enable_scsi_directio;
26155    if eval "test x$enable_scsi_directio = xyes"; then
26156      AM_CFLAGS="$AM_CFLAGS -DENABLE_SCSI_DIRECTIO"
26157    fi
26158
26159fi
26160
26161
26162
26163if test "$ac_cv_func_getnameinfo" = "yes" \
26164  && test "$ac_cv_func_getaddrinfo" = "yes" ; then
26165
26166  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
26167$as_echo_n "checking whether to enable IPv6... " >&6; }
26168  # Check whether --enable-ipv6 was given.
26169if test "${enable_ipv6+set}" = set; then :
26170  enableval=$enable_ipv6;   if test "$enableval" = "no" ; then
26171         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, manually disabled" >&5
26172$as_echo "no, manually disabled" >&6; }
26173         ipv6=no
26174         fi
26175
26176fi
26177
26178
26179  if test "$ipv6" != "no" ; then
26180    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26181/* end confdefs.h.  */
26182
26183	#define INET6
26184	#include <sys/types.h>
26185	#include <sys/socket.h>
26186int
26187main ()
26188{
26189
26190	 /* AF_INET6 available check */
26191 	if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
26192   	  exit(1);
26193 	else
26194   	  exit(0);
26195
26196  ;
26197  return 0;
26198}
26199_ACEOF
26200if ac_fn_c_try_compile "$LINENO"; then :
26201
26202        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26203$as_echo "yes" >&6; }
26204
26205$as_echo "#define ENABLE_IPV6 1" >>confdefs.h
26206
26207        ipv6=yes
26208
26209else
26210
26211        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (couldn't compile test program)" >&5
26212$as_echo "no (couldn't compile test program)" >&6; }
26213        ipv6=no
26214
26215fi
26216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26217  fi
26218
26219  if test "$ipv6" != "no" ; then
26220    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_storage has an ss_family member" >&5
26221$as_echo_n "checking whether struct sockaddr_storage has an ss_family member... " >&6; }
26222    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26223/* end confdefs.h.  */
26224
26225	#define INET6
26226	#include <sys/types.h>
26227	#include <sys/socket.h>
26228int
26229main ()
26230{
26231
26232	/* test if the ss_family member exists in struct sockaddr_storage */
26233	struct sockaddr_storage ss;
26234	ss.ss_family = AF_INET;
26235	exit (0);
26236
26237  ;
26238  return 0;
26239}
26240_ACEOF
26241if ac_fn_c_try_compile "$LINENO"; then :
26242
26243	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26244$as_echo "yes" >&6; }
26245
26246$as_echo "#define HAS_SS_FAMILY 1" >>confdefs.h
26247
26248
26249else
26250
26251		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26252/* end confdefs.h.  */
26253
26254		#define INET6
26255		#include <sys/types.h>
26256		#include <sys/socket.h>
26257int
26258main ()
26259{
26260
26261		/* test if the __ss_family member exists in struct sockaddr_storage */
26262		struct sockaddr_storage ss;
26263		ss.__ss_family = AF_INET;
26264		exit (0);
26265
26266  ;
26267  return 0;
26268}
26269_ACEOF
26270if ac_fn_c_try_compile "$LINENO"; then :
26271
26272		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, but __ss_family exists" >&5
26273$as_echo "no, but __ss_family exists" >&6; }
26274
26275$as_echo "#define HAS___SS_FAMILY 1" >>confdefs.h
26276
26277
26278else
26279
26280		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26281$as_echo "no" >&6; }
26282		ipv6=no
26283
26284fi
26285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26286
26287fi
26288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26289  fi
26290
26291else
26292  ipv6="no"
26293fi
26294
26295# Check whether --enable-preload was given.
26296if test "${enable_preload+set}" = set; then :
26297  enableval=$enable_preload; enable_preload=$enableval
26298else
26299  enable_preload=auto
26300fi
26301
26302
26303case $host_os in
26304  cygwin* | mingw* | beos* | os2*)
26305  AM_LDFLAGS="$AM_LDFLAGS -no-undefined"
26306esac
26307
26308
26309
26310# Check whether --with-lockdir was given.
26311if test "${with_lockdir+set}" = set; then :
26312  withval=$with_lockdir; locksanedir=$withval
26313else
26314  locksanedir=${localstatedir}/lock
26315fi
26316
26317
26318
26319configdir="${sysconfdir}/sane.d"
26320
26321
26322
26323AM_CPPFLAGS="${AM_CPPFLAGS} -DPATH_SANE_CONFIG_DIR=\$(configdir) \
26324	  -DPATH_SANE_DATA_DIR=\$(datadir) \
26325	  -DPATH_SANE_LOCK_DIR=\$(locksanedir) \
26326	  -DV_MAJOR=${V_MAJOR} -DV_MINOR=${V_MINOR}"
26327
26328if test "${ac_cv_header_sys_socket_h}" = "no"; then
26329  echo "*** disabling saned (sys/socket.h not found)"
26330  SANED=
26331else
26332  SANED=saned
26333fi
26334 if test x$SANED = xsaned; then
26335  COMPILE_SANED_TRUE=
26336  COMPILE_SANED_FALSE='#'
26337else
26338  COMPILE_SANED_TRUE='#'
26339  COMPILE_SANED_FALSE=
26340fi
26341
26342
26343
26344# Check whether --enable-local-backends was given.
26345if test "${enable_local_backends+set}" = set; then :
26346  enableval=$enable_local_backends;
26347fi
26348
26349
26350ALL_BACKENDS="abaton agfafocus apple artec artec_eplus48u as6e \
26351        avision bh canon canon630u canon_dr canon_lide70 canon_pp cardscan \
26352        coolscan coolscan2 coolscan3 dc25 dc210 dc240 \
26353        dell1600n_net dmc epjitsu epson epson2 epsonds escl fujitsu \
26354        genesys gphoto2 gt68xx hp hp3500 hp3900 hp4200 hp5400 \
26355        hp5590 hpsj5s hpljm1005 hs2p ibm kodak kodakaio kvs1025 kvs20xx \
26356        kvs40xx leo lexmark ma1509 magicolor \
26357        matsushita microtek microtek2 mustek mustek_pp \
26358        mustek_usb mustek_usb2 nec net niash pie pieusb pint \
26359        pixma plustek plustek_pp qcam ricoh ricoh2 rts8891 s9036 \
26360        sceptre sharp sm3600 sm3840 snapscan sp15c st400 \
26361        stv680 tamarack teco1 teco2 teco3 test u12 umax
26362        umax_pp umax1220u v4l xerox_mfp p5"
26363
26364# If user specifies backends manually then cause configure
26365# to fail if its detected it can't be compiled.  If we
26366# are in automatic mode then remove backend from list instead.
26367user_selected_backends="yes"
26368
26369
26370if eval "test x$enable_local_backends = xno"; then
26371   BACKENDS="net"
26372else
26373  if test "${BACKENDS}" != "" ; then
26374    { $as_echo "$as_me:${as_lineno-$LINENO}: Manually selected backends: ${BACKENDS}" >&5
26375$as_echo "$as_me: Manually selected backends: ${BACKENDS}" >&6;}
26376  else
26377    BACKENDS="$ALL_BACKENDS"
26378    user_selected_backends="no"
26379  fi
26380fi
26381
26382if test "${sane_cv_use_libjpeg}" = "yes"; then
26383  SANEI_SANEI_JPEG_LO="../sanei/sanei_jpeg.lo"
26384  saved_LIBS="${LIBS}"
26385  LIBS="${JPEG_LIBS}"
26386  for ac_func in jpeg_crop_scanline jpeg_skip_scanlines
26387do :
26388  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26389ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26390if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26391  cat >>confdefs.h <<_ACEOF
26392#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26393_ACEOF
26394
26395fi
26396done
26397
26398  LIBS="${saved_LIBS}"
26399fi
26400 if test x$sane_cv_use_libjpeg = xyes; then
26401  HAVE_JPEG_TRUE=
26402  HAVE_JPEG_FALSE='#'
26403else
26404  HAVE_JPEG_TRUE='#'
26405  HAVE_JPEG_FALSE=
26406fi
26407
26408
26409
26410
26411if test "${user_selected_backends}" = "yes"; then
26412  DISABLE_MSG="aborting"
26413else
26414  DISABLE_MSG="disabling"
26415fi
26416
26417FILTERED_BACKENDS=""
26418for be in ${BACKENDS}; do
26419  backend_supported="yes"
26420  case $be in
26421    plustek_pp)
26422    case "$host_os" in
26423      gnu*)
26424      echo "*** $be backend not supported on GNU/Hurd - $DISABLE_MSG"
26425      backend_supported="no"
26426      ;;
26427    esac
26428    ;;
26429
26430    dc210|dc240|pixma)
26431    if test "${sane_cv_use_libjpeg}" != "yes"; then
26432      echo "*** $be backend requires JPEG library - $DISABLE_MSG"
26433      backend_supported="no"
26434    fi
26435    ;;
26436
26437    canon_pp|hpsj5s)
26438    if test "${sane_cv_use_libieee1284}" != "yes"; then
26439      echo "*** $be backend requires libieee1284 library - $DISABLE_MSG"
26440      backend_supported="no"
26441    fi
26442    ;;
26443
26444    genesys)
26445    if test "${HAVE_CXX11}" != "1"; then
26446      echo "*** $be backend requires C++11 support - $DISABLE_MSG"
26447      backend_supported="no"
26448    fi
26449    ;;
26450
26451    mustek_pp)
26452    if test "${sane_cv_use_libieee1284}" != "yes" && test "${enable_parport_directio}" != "yes"; then
26453      echo "*** $be backend requires libieee1284 or parport-directio libraries - $DISABLE_MSG"
26454      backend_supported="no"
26455    fi
26456    ;;
26457
26458    dell1600n_net)
26459    if test "${sane_cv_use_libjpeg}" != "yes" || test "${sane_cv_use_libtiff}" != "yes"; then
26460      echo "*** $be backend requires JPEG and TIFF library - $DISABLE_MSG"
26461      backend_supported="no"
26462    fi
26463    ;;
26464
26465    epsonds)
26466    if test "${sane_cv_use_libjpeg}" != "yes"; then
26467      echo "*** $be backend requires JPEG library - $DISABLE_MSG"
26468      backend_supported="no"
26469    fi
26470    ;;
26471
26472    escl)
26473    if test "x${with_avahi}" != "xyes"; then
26474      echo "*** $be backend requires AVAHI library - $DISABLE_MSG"
26475      backend_supported="no"
26476    fi
26477    if test "x${with_libcurl}" != "xyes"; then
26478      echo "*** $be backend requires cURL library - $DISABLE_MSG"
26479      backend_supported="no"
26480    fi
26481    if test "x${have_libxml}" != "xyes"; then
26482      echo "*** $be backend requires XML library - $DISABLE_MSG"
26483      backend_supported="no"
26484    fi
26485    # FIXME: Remove when PNG and/or PDF support have been added.
26486    if test "x${sane_cv_use_libjpeg}" != "xyes"; then
26487      echo "*** $be backend currently requires JPEG library - $DISABLE_MSG"
26488      backend_supported="no"
26489    else
26490      if test "x${ac_cv_func_jpeg_crop_scanline}"  != "xyes" \
26491      || test "x${ac_cv_func_jpeg_skip_scanlines}" != "xyes"; then
26492        echo "*** $be backend requires a newer JPEG library - $DISABLE_MSG"
26493        backend_supported="no"
26494      fi
26495    fi
26496
26497    ;;
26498
26499    gphoto2)
26500    if test "${HAVE_GPHOTO2}" != "true" \
26501      || test "${sane_cv_use_libjpeg}" != "yes"; then
26502      echo "*** $be backend requires gphoto2 and JPEG libraries - $DISABLE_MSG"
26503      backend_supported="no"
26504    fi
26505    ;;
26506
26507    pint)
26508    if test "${ac_cv_header_sys_scanio_h}" = "no"; then
26509      echo "*** $be backend requires sys/scanio.h - $DISABLE_MSG"
26510      backend_supported="no"
26511    fi
26512    ;;
26513
26514    qcam)
26515    if ( test "${ac_cv_func_ioperm}" = "no" || test "${sane_cv_have_sys_io_h_with_inb_outb}" = "no" )\
26516      && test "${ac_cv_func__portaccess}" = "no"; then
26517      echo "*** $be backend requires (ioperm, inb and outb) or portaccess functions - $DISABLE_MSG"
26518      backend_supported="no"
26519    fi
26520    ;;
26521
26522    v4l)
26523    if test "${have_libv4l1}" != "yes" \
26524      || test "${have_libv4l1}" != "yes"; then
26525      echo "*** $be backend requires v4l libraries - $DISABLE_MSG"
26526      backend_supported="no"
26527    fi
26528    ;;
26529
26530    net)
26531    if test "${ac_cv_header_sys_socket_h}" = "no"; then
26532      echo "*** $be backend requires sys/socket.h - $DISABLE_MSG"
26533      backend_supported="no"
26534    fi
26535    ;;
26536
26537    mustek_usb2|kvs40xx)
26538    if test "${have_pthread}" != "yes"; then
26539      echo "*** $be backend requires pthread library - $DISABLE_MSG"
26540      backend_supported="no"
26541    fi
26542    ;;
26543  esac
26544  if test "${backend_supported}" = "no"; then
26545    if test "${user_selected_backends}" = "yes"; then
26546      exit 1
26547    fi
26548  else
26549    FILTERED_BACKENDS="${FILTERED_BACKENDS} $be"
26550  fi
26551done
26552
26553
26554# Check whether --enable-pnm-backend was given.
26555if test "${enable_pnm_backend+set}" = set; then :
26556  enableval=$enable_pnm_backend; FILTERED_BACKENDS="${FILTERED_BACKENDS} pnm"
26557else
26558  echo "*** pnm backend not manually selected - disabling"
26559fi
26560
26561
26562BACKENDS="$FILTERED_BACKENDS"
26563BACKEND_LIBS_ENABLED=""
26564BACKEND_CONFS_ENABLED=""
26565BACKEND_MANS_ENABLED=""
26566for backend in ${BACKENDS} ; do
26567  BACKEND_LIBS_ENABLED="${BACKEND_LIBS_ENABLED} libsane-${backend}.la"
26568  BACKEND_CONFS_ENABLED="${BACKEND_CONFS_ENABLED} ${backend}.conf"
26569  BACKEND_MANS_ENABLED="${BACKEND_MANS_ENABLED} sane-${backend}.5"
26570  if test x$backend = xgenesys; then
26571    with_genesys_tests=yes
26572  fi
26573  if test x$backend = xumax_pp; then
26574    install_umax_pp_tools=yes
26575  fi
26576done
26577
26578 if test xyes = x$with_genesys_tests; then
26579  WITH_GENESYS_TESTS_TRUE=
26580  WITH_GENESYS_TESTS_FALSE='#'
26581else
26582  WITH_GENESYS_TESTS_TRUE='#'
26583  WITH_GENESYS_TESTS_FALSE=
26584fi
26585
26586 if test xyes = x$install_umax_pp_tools; then
26587  INSTALL_UMAX_PP_TOOLS_TRUE=
26588  INSTALL_UMAX_PP_TOOLS_FALSE='#'
26589else
26590  INSTALL_UMAX_PP_TOOLS_TRUE='#'
26591  INSTALL_UMAX_PP_TOOLS_FALSE=
26592fi
26593
26594
26595
26596if test "${enable_preload}" = "auto"; then
26597  if test "${enable_shared}" = "no" || test "${enable_dynamic}" != "yes"; then
26598    enable_preload=yes
26599  fi
26600fi
26601if test "${enable_preload}" = "yes"; then
26602  echo "preloading backends into DLL"
26603
26604  # If user specifies backends manually then cause configure
26605  # to fail if its detected it can't be compiled.  If we
26606  # are in automatic mode then remove backend from list instead.
26607  user_selected_backends="yes"
26608
26609  if eval "test x$enable_local_backends = xno"; then
26610    PRELOADABLE_BACKENDS="net"
26611  else
26612    if test "${PRELOADABLE_BACKENDS}" != "" ; then
26613      { $as_echo "$as_me:${as_lineno-$LINENO}: Manually selected preloadable backends: ${PRELOADABLE_BACKENDS}" >&5
26614$as_echo "$as_me: Manually selected preloadable backends: ${PRELOADABLE_BACKENDS}" >&6;}
26615    else
26616      PRELOADABLE_BACKENDS="$BACKENDS"
26617      user_selected_backends="no"
26618    fi
26619  fi
26620
26621  saved_BACKENDS="$BACKENDS"
26622  BACKENDS="${PRELOADABLE_BACKENDS}"
26623
26624
26625if test "${user_selected_backends}" = "yes"; then
26626  DISABLE_MSG="aborting"
26627else
26628  DISABLE_MSG="disabling"
26629fi
26630
26631FILTERED_BACKENDS=""
26632for be in ${BACKENDS}; do
26633  backend_supported="yes"
26634  case $be in
26635    plustek_pp)
26636    case "$host_os" in
26637      gnu*)
26638      echo "*** $be backend not supported on GNU/Hurd - $DISABLE_MSG"
26639      backend_supported="no"
26640      ;;
26641    esac
26642    ;;
26643
26644    dc210|dc240|pixma)
26645    if test "${sane_cv_use_libjpeg}" != "yes"; then
26646      echo "*** $be backend requires JPEG library - $DISABLE_MSG"
26647      backend_supported="no"
26648    fi
26649    ;;
26650
26651    canon_pp|hpsj5s)
26652    if test "${sane_cv_use_libieee1284}" != "yes"; then
26653      echo "*** $be backend requires libieee1284 library - $DISABLE_MSG"
26654      backend_supported="no"
26655    fi
26656    ;;
26657
26658    genesys)
26659    if test "${HAVE_CXX11}" != "1"; then
26660      echo "*** $be backend requires C++11 support - $DISABLE_MSG"
26661      backend_supported="no"
26662    fi
26663    ;;
26664
26665    mustek_pp)
26666    if test "${sane_cv_use_libieee1284}" != "yes" && test "${enable_parport_directio}" != "yes"; then
26667      echo "*** $be backend requires libieee1284 or parport-directio libraries - $DISABLE_MSG"
26668      backend_supported="no"
26669    fi
26670    ;;
26671
26672    dell1600n_net)
26673    if test "${sane_cv_use_libjpeg}" != "yes" || test "${sane_cv_use_libtiff}" != "yes"; then
26674      echo "*** $be backend requires JPEG and TIFF library - $DISABLE_MSG"
26675      backend_supported="no"
26676    fi
26677    ;;
26678
26679    epsonds)
26680    if test "${sane_cv_use_libjpeg}" != "yes"; then
26681      echo "*** $be backend requires JPEG library - $DISABLE_MSG"
26682      backend_supported="no"
26683    fi
26684    ;;
26685
26686    escl)
26687    if test "x${with_avahi}" != "xyes"; then
26688      echo "*** $be backend requires AVAHI library - $DISABLE_MSG"
26689      backend_supported="no"
26690    fi
26691    if test "x${with_libcurl}" != "xyes"; then
26692      echo "*** $be backend requires cURL library - $DISABLE_MSG"
26693      backend_supported="no"
26694    fi
26695    if test "x${have_libxml}" != "xyes"; then
26696      echo "*** $be backend requires XML library - $DISABLE_MSG"
26697      backend_supported="no"
26698    fi
26699    # FIXME: Remove when PNG and/or PDF support have been added.
26700    if test "x${sane_cv_use_libjpeg}" != "xyes"; then
26701      echo "*** $be backend currently requires JPEG library - $DISABLE_MSG"
26702      backend_supported="no"
26703    else
26704      if test "x${ac_cv_func_jpeg_crop_scanline}"  != "xyes" \
26705      || test "x${ac_cv_func_jpeg_skip_scanlines}" != "xyes"; then
26706        echo "*** $be backend requires a newer JPEG library - $DISABLE_MSG"
26707        backend_supported="no"
26708      fi
26709    fi
26710
26711    ;;
26712
26713    gphoto2)
26714    if test "${HAVE_GPHOTO2}" != "true" \
26715      || test "${sane_cv_use_libjpeg}" != "yes"; then
26716      echo "*** $be backend requires gphoto2 and JPEG libraries - $DISABLE_MSG"
26717      backend_supported="no"
26718    fi
26719    ;;
26720
26721    pint)
26722    if test "${ac_cv_header_sys_scanio_h}" = "no"; then
26723      echo "*** $be backend requires sys/scanio.h - $DISABLE_MSG"
26724      backend_supported="no"
26725    fi
26726    ;;
26727
26728    qcam)
26729    if ( test "${ac_cv_func_ioperm}" = "no" || test "${sane_cv_have_sys_io_h_with_inb_outb}" = "no" )\
26730      && test "${ac_cv_func__portaccess}" = "no"; then
26731      echo "*** $be backend requires (ioperm, inb and outb) or portaccess functions - $DISABLE_MSG"
26732      backend_supported="no"
26733    fi
26734    ;;
26735
26736    v4l)
26737    if test "${have_libv4l1}" != "yes" \
26738      || test "${have_libv4l1}" != "yes"; then
26739      echo "*** $be backend requires v4l libraries - $DISABLE_MSG"
26740      backend_supported="no"
26741    fi
26742    ;;
26743
26744    net)
26745    if test "${ac_cv_header_sys_socket_h}" = "no"; then
26746      echo "*** $be backend requires sys/socket.h - $DISABLE_MSG"
26747      backend_supported="no"
26748    fi
26749    ;;
26750
26751    mustek_usb2|kvs40xx)
26752    if test "${have_pthread}" != "yes"; then
26753      echo "*** $be backend requires pthread library - $DISABLE_MSG"
26754      backend_supported="no"
26755    fi
26756    ;;
26757  esac
26758  if test "${backend_supported}" = "no"; then
26759    if test "${user_selected_backends}" = "yes"; then
26760      exit 1
26761    fi
26762  else
26763    FILTERED_BACKENDS="${FILTERED_BACKENDS} $be"
26764  fi
26765done
26766
26767
26768  PRELOADABLE_BACKENDS="$FILTERED_BACKENDS"
26769  BACKENDS="$saved_BACKENDS"
26770else
26771  PRELOADABLE_BACKENDS=""
26772fi
26773PRELOADABLE_BACKENDS_ENABLED=""
26774# Do not initialize BACKEND_CONFS_ENABLED so that its a combination
26775# of all backends.
26776for backend in ${PRELOADABLE_BACKENDS} ; do
26777  BACKEND_CONFS_ENABLED="${BACKEND_CONFS_ENABLED} ${backend}.conf"
26778  BACKEND_MANS_ENABLED="${BACKEND_MANS_ENABLED} sane-${backend}.5"
26779  # Special hacks.  Normally, we create a convenience library that
26780  # matches the backend's name but in some cases that will conflict
26781  # with an external library name that also matches backend name.
26782  # Work around that here by renaming internal library.
26783  if test "${backend}" = "gphoto2"; then
26784    backend=gphoto2_i
26785  fi
26786  PRELOADABLE_BACKENDS_ENABLED="${PRELOADABLE_BACKENDS_ENABLED} lib${backend}.la"
26787done
26788 if test x != "x$PRELOADABLE_BACKENDS_ENABLED"; then
26789  preloadable_backends_enabled_TRUE=
26790  preloadable_backends_enabled_FALSE='#'
26791else
26792  preloadable_backends_enabled_TRUE='#'
26793  preloadable_backends_enabled_FALSE=
26794fi
26795
26796
26797
26798
26799
26800
26801
26802case $host_os in
26803  beos*)
26804  libdir='${exec_prefix}/add-ons'
26805  ;;
26806esac
26807
26808# Check whether --enable-parport-directio was given.
26809if test "${enable_parport_directio+set}" = set; then :
26810  enableval=$enable_parport_directio;
26811    if eval "test x$enable_parport_directio = xyes"; then
26812      AM_CFLAGS="$AM_CFLAGS -DENABLE_PARPORT_DIRECTIO"
26813    fi
26814
26815fi
26816
26817
26818
26819
26820
26821
26822
26823
26824ac_config_files="$ac_config_files Makefile lib/Makefile sanei/Makefile frontend/Makefile japi/Makefile backend/Makefile include/Makefile doc/Makefile po/Makefile.in testsuite/Makefile testsuite/backend/Makefile testsuite/backend/genesys/Makefile testsuite/sanei/Makefile testsuite/tools/Makefile tools/Makefile doc/doxygen-sanei.conf doc/doxygen-genesys.conf"
26825
26826ac_config_files="$ac_config_files tools/sane-config"
26827
26828ac_config_files="$ac_config_files tools/sane-backends.pc"
26829
26830cat >confcache <<\_ACEOF
26831# This file is a shell script that caches the results of configure
26832# tests run on this system so they can be shared between configure
26833# scripts and configure runs, see configure's option --config-cache.
26834# It is not useful on other systems.  If it contains results you don't
26835# want to keep, you may remove or edit it.
26836#
26837# config.status only pays attention to the cache file if you give it
26838# the --recheck option to rerun configure.
26839#
26840# `ac_cv_env_foo' variables (set or unset) will be overridden when
26841# loading this file, other *unset* `ac_cv_foo' will be assigned the
26842# following values.
26843
26844_ACEOF
26845
26846# The following way of writing the cache mishandles newlines in values,
26847# but we know of no workaround that is simple, portable, and efficient.
26848# So, we kill variables containing newlines.
26849# Ultrix sh set writes to stderr and can't be redirected directly,
26850# and sets the high bit in the cache file unless we assign to the vars.
26851(
26852  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26853    eval ac_val=\$$ac_var
26854    case $ac_val in #(
26855    *${as_nl}*)
26856      case $ac_var in #(
26857      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26858$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26859      esac
26860      case $ac_var in #(
26861      _ | IFS | as_nl) ;; #(
26862      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26863      *) { eval $ac_var=; unset $ac_var;} ;;
26864      esac ;;
26865    esac
26866  done
26867
26868  (set) 2>&1 |
26869    case $as_nl`(ac_space=' '; set) 2>&1` in #(
26870    *${as_nl}ac_space=\ *)
26871      # `set' does not quote correctly, so add quotes: double-quote
26872      # substitution turns \\\\ into \\, and sed turns \\ into \.
26873      sed -n \
26874	"s/'/'\\\\''/g;
26875	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26876      ;; #(
26877    *)
26878      # `set' quotes correctly as required by POSIX, so do not add quotes.
26879      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26880      ;;
26881    esac |
26882    sort
26883) |
26884  sed '
26885     /^ac_cv_env_/b end
26886     t clear
26887     :clear
26888     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26889     t end
26890     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26891     :end' >>confcache
26892if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26893  if test -w "$cache_file"; then
26894    if test "x$cache_file" != "x/dev/null"; then
26895      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26896$as_echo "$as_me: updating cache $cache_file" >&6;}
26897      if test ! -f "$cache_file" || test -h "$cache_file"; then
26898	cat confcache >"$cache_file"
26899      else
26900        case $cache_file in #(
26901        */* | ?:*)
26902	  mv -f confcache "$cache_file"$$ &&
26903	  mv -f "$cache_file"$$ "$cache_file" ;; #(
26904        *)
26905	  mv -f confcache "$cache_file" ;;
26906	esac
26907      fi
26908    fi
26909  else
26910    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26911$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26912  fi
26913fi
26914rm -f confcache
26915
26916test "x$prefix" = xNONE && prefix=$ac_default_prefix
26917# Let make expand exec_prefix.
26918test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26919
26920DEFS=-DHAVE_CONFIG_H
26921
26922ac_libobjs=
26923ac_ltlibobjs=
26924U=
26925for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26926  # 1. Remove the extension, and $U if already installed.
26927  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26928  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26929  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26930  #    will be set to the directory where LIBOBJS objects are built.
26931  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26932  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26933done
26934LIBOBJS=$ac_libobjs
26935
26936LTLIBOBJS=$ac_ltlibobjs
26937
26938
26939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
26940$as_echo_n "checking that generated files are newer than configure... " >&6; }
26941   if test -n "$am_sleep_pid"; then
26942     # Hide warnings about reused PIDs.
26943     wait $am_sleep_pid 2>/dev/null
26944   fi
26945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
26946$as_echo "done" >&6; }
26947 if test -n "$EXEEXT"; then
26948  am__EXEEXT_TRUE=
26949  am__EXEEXT_FALSE='#'
26950else
26951  am__EXEEXT_TRUE='#'
26952  am__EXEEXT_FALSE=
26953fi
26954
26955if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26956  as_fn_error $? "conditional \"AMDEP\" was never defined.
26957Usually this means the macro was only invoked conditionally." "$LINENO" 5
26958fi
26959if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26960  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26961Usually this means the macro was only invoked conditionally." "$LINENO" 5
26962fi
26963if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26964  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
26965Usually this means the macro was only invoked conditionally." "$LINENO" 5
26966fi
26967if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
26968  as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
26969Usually this means the macro was only invoked conditionally." "$LINENO" 5
26970fi
26971
26972if test -z "${have_libavahi_TRUE}" && test -z "${have_libavahi_FALSE}"; then
26973  as_fn_error $? "conditional \"have_libavahi\" was never defined.
26974Usually this means the macro was only invoked conditionally." "$LINENO" 5
26975fi
26976
26977if test -z "${have_usblib_TRUE}" && test -z "${have_usblib_FALSE}"; then
26978  as_fn_error $? "conditional \"have_usblib\" was never defined.
26979Usually this means the macro was only invoked conditionally." "$LINENO" 5
26980fi
26981if test -z "${have_libcurl_TRUE}" && test -z "${have_libcurl_FALSE}"; then
26982  as_fn_error $? "conditional \"have_libcurl\" was never defined.
26983Usually this means the macro was only invoked conditionally." "$LINENO" 5
26984fi
26985if test -z "${have_poppler_glib_TRUE}" && test -z "${have_poppler_glib_FALSE}"; then
26986  as_fn_error $? "conditional \"have_poppler_glib\" was never defined.
26987Usually this means the macro was only invoked conditionally." "$LINENO" 5
26988fi
26989if test -z "${have_libxml2_TRUE}" && test -z "${have_libxml2_FALSE}"; then
26990  as_fn_error $? "conditional \"have_libxml2\" was never defined.
26991Usually this means the macro was only invoked conditionally." "$LINENO" 5
26992fi
26993if test -z "${COMPILE_SANED_TRUE}" && test -z "${COMPILE_SANED_FALSE}"; then
26994  as_fn_error $? "conditional \"COMPILE_SANED\" was never defined.
26995Usually this means the macro was only invoked conditionally." "$LINENO" 5
26996fi
26997if test -z "${HAVE_JPEG_TRUE}" && test -z "${HAVE_JPEG_FALSE}"; then
26998  as_fn_error $? "conditional \"HAVE_JPEG\" was never defined.
26999Usually this means the macro was only invoked conditionally." "$LINENO" 5
27000fi
27001if test -z "${WITH_GENESYS_TESTS_TRUE}" && test -z "${WITH_GENESYS_TESTS_FALSE}"; then
27002  as_fn_error $? "conditional \"WITH_GENESYS_TESTS\" was never defined.
27003Usually this means the macro was only invoked conditionally." "$LINENO" 5
27004fi
27005if test -z "${INSTALL_UMAX_PP_TOOLS_TRUE}" && test -z "${INSTALL_UMAX_PP_TOOLS_FALSE}"; then
27006  as_fn_error $? "conditional \"INSTALL_UMAX_PP_TOOLS\" was never defined.
27007Usually this means the macro was only invoked conditionally." "$LINENO" 5
27008fi
27009if test -z "${preloadable_backends_enabled_TRUE}" && test -z "${preloadable_backends_enabled_FALSE}"; then
27010  as_fn_error $? "conditional \"preloadable_backends_enabled\" was never defined.
27011Usually this means the macro was only invoked conditionally." "$LINENO" 5
27012fi
27013
27014: "${CONFIG_STATUS=./config.status}"
27015ac_write_fail=0
27016ac_clean_files_save=$ac_clean_files
27017ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27018{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27019$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27020as_write_fail=0
27021cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27022#! $SHELL
27023# Generated by $as_me.
27024# Run this file to recreate the current configuration.
27025# Compiler output produced by configure, useful for debugging
27026# configure, is in config.log if it exists.
27027
27028debug=false
27029ac_cs_recheck=false
27030ac_cs_silent=false
27031
27032SHELL=\${CONFIG_SHELL-$SHELL}
27033export SHELL
27034_ASEOF
27035cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27036## -------------------- ##
27037## M4sh Initialization. ##
27038## -------------------- ##
27039
27040# Be more Bourne compatible
27041DUALCASE=1; export DUALCASE # for MKS sh
27042if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27043  emulate sh
27044  NULLCMD=:
27045  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27046  # is contrary to our usage.  Disable this feature.
27047  alias -g '${1+"$@"}'='"$@"'
27048  setopt NO_GLOB_SUBST
27049else
27050  case `(set -o) 2>/dev/null` in #(
27051  *posix*) :
27052    set -o posix ;; #(
27053  *) :
27054     ;;
27055esac
27056fi
27057
27058
27059as_nl='
27060'
27061export as_nl
27062# Printing a long string crashes Solaris 7 /usr/bin/printf.
27063as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27064as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27065as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27066# Prefer a ksh shell builtin over an external printf program on Solaris,
27067# but without wasting forks for bash or zsh.
27068if test -z "$BASH_VERSION$ZSH_VERSION" \
27069    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27070  as_echo='print -r --'
27071  as_echo_n='print -rn --'
27072elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27073  as_echo='printf %s\n'
27074  as_echo_n='printf %s'
27075else
27076  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27077    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27078    as_echo_n='/usr/ucb/echo -n'
27079  else
27080    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27081    as_echo_n_body='eval
27082      arg=$1;
27083      case $arg in #(
27084      *"$as_nl"*)
27085	expr "X$arg" : "X\\(.*\\)$as_nl";
27086	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27087      esac;
27088      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27089    '
27090    export as_echo_n_body
27091    as_echo_n='sh -c $as_echo_n_body as_echo'
27092  fi
27093  export as_echo_body
27094  as_echo='sh -c $as_echo_body as_echo'
27095fi
27096
27097# The user is always right.
27098if test "${PATH_SEPARATOR+set}" != set; then
27099  PATH_SEPARATOR=:
27100  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27101    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27102      PATH_SEPARATOR=';'
27103  }
27104fi
27105
27106
27107# IFS
27108# We need space, tab and new line, in precisely that order.  Quoting is
27109# there to prevent editors from complaining about space-tab.
27110# (If _AS_PATH_WALK were called with IFS unset, it would disable word
27111# splitting by setting IFS to empty value.)
27112IFS=" ""	$as_nl"
27113
27114# Find who we are.  Look in the path if we contain no directory separator.
27115as_myself=
27116case $0 in #((
27117  *[\\/]* ) as_myself=$0 ;;
27118  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27119for as_dir in $PATH
27120do
27121  IFS=$as_save_IFS
27122  test -z "$as_dir" && as_dir=.
27123    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27124  done
27125IFS=$as_save_IFS
27126
27127     ;;
27128esac
27129# We did not find ourselves, most probably we were run as `sh COMMAND'
27130# in which case we are not to be found in the path.
27131if test "x$as_myself" = x; then
27132  as_myself=$0
27133fi
27134if test ! -f "$as_myself"; then
27135  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27136  exit 1
27137fi
27138
27139# Unset variables that we do not need and which cause bugs (e.g. in
27140# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
27141# suppresses any "Segmentation fault" message there.  '((' could
27142# trigger a bug in pdksh 5.2.14.
27143for as_var in BASH_ENV ENV MAIL MAILPATH
27144do eval test x\${$as_var+set} = xset \
27145  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27146done
27147PS1='$ '
27148PS2='> '
27149PS4='+ '
27150
27151# NLS nuisances.
27152LC_ALL=C
27153export LC_ALL
27154LANGUAGE=C
27155export LANGUAGE
27156
27157# CDPATH.
27158(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27159
27160
27161# as_fn_error STATUS ERROR [LINENO LOG_FD]
27162# ----------------------------------------
27163# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27164# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27165# script with STATUS, using 1 if that was 0.
27166as_fn_error ()
27167{
27168  as_status=$1; test $as_status -eq 0 && as_status=1
27169  if test "$4"; then
27170    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27171    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
27172  fi
27173  $as_echo "$as_me: error: $2" >&2
27174  as_fn_exit $as_status
27175} # as_fn_error
27176
27177
27178# as_fn_set_status STATUS
27179# -----------------------
27180# Set $? to STATUS, without forking.
27181as_fn_set_status ()
27182{
27183  return $1
27184} # as_fn_set_status
27185
27186# as_fn_exit STATUS
27187# -----------------
27188# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27189as_fn_exit ()
27190{
27191  set +e
27192  as_fn_set_status $1
27193  exit $1
27194} # as_fn_exit
27195
27196# as_fn_unset VAR
27197# ---------------
27198# Portably unset VAR.
27199as_fn_unset ()
27200{
27201  { eval $1=; unset $1;}
27202}
27203as_unset=as_fn_unset
27204# as_fn_append VAR VALUE
27205# ----------------------
27206# Append the text in VALUE to the end of the definition contained in VAR. Take
27207# advantage of any shell optimizations that allow amortized linear growth over
27208# repeated appends, instead of the typical quadratic growth present in naive
27209# implementations.
27210if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27211  eval 'as_fn_append ()
27212  {
27213    eval $1+=\$2
27214  }'
27215else
27216  as_fn_append ()
27217  {
27218    eval $1=\$$1\$2
27219  }
27220fi # as_fn_append
27221
27222# as_fn_arith ARG...
27223# ------------------
27224# Perform arithmetic evaluation on the ARGs, and store the result in the
27225# global $as_val. Take advantage of shells that can avoid forks. The arguments
27226# must be portable across $(()) and expr.
27227if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27228  eval 'as_fn_arith ()
27229  {
27230    as_val=$(( $* ))
27231  }'
27232else
27233  as_fn_arith ()
27234  {
27235    as_val=`expr "$@" || test $? -eq 1`
27236  }
27237fi # as_fn_arith
27238
27239
27240if expr a : '\(a\)' >/dev/null 2>&1 &&
27241   test "X`expr 00001 : '.*\(...\)'`" = X001; then
27242  as_expr=expr
27243else
27244  as_expr=false
27245fi
27246
27247if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27248  as_basename=basename
27249else
27250  as_basename=false
27251fi
27252
27253if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27254  as_dirname=dirname
27255else
27256  as_dirname=false
27257fi
27258
27259as_me=`$as_basename -- "$0" ||
27260$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27261	 X"$0" : 'X\(//\)$' \| \
27262	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27263$as_echo X/"$0" |
27264    sed '/^.*\/\([^/][^/]*\)\/*$/{
27265	    s//\1/
27266	    q
27267	  }
27268	  /^X\/\(\/\/\)$/{
27269	    s//\1/
27270	    q
27271	  }
27272	  /^X\/\(\/\).*/{
27273	    s//\1/
27274	    q
27275	  }
27276	  s/.*/./; q'`
27277
27278# Avoid depending upon Character Ranges.
27279as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27280as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27281as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27282as_cr_digits='0123456789'
27283as_cr_alnum=$as_cr_Letters$as_cr_digits
27284
27285ECHO_C= ECHO_N= ECHO_T=
27286case `echo -n x` in #(((((
27287-n*)
27288  case `echo 'xy\c'` in
27289  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
27290  xy)  ECHO_C='\c';;
27291  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
27292       ECHO_T='	';;
27293  esac;;
27294*)
27295  ECHO_N='-n';;
27296esac
27297
27298rm -f conf$$ conf$$.exe conf$$.file
27299if test -d conf$$.dir; then
27300  rm -f conf$$.dir/conf$$.file
27301else
27302  rm -f conf$$.dir
27303  mkdir conf$$.dir 2>/dev/null
27304fi
27305if (echo >conf$$.file) 2>/dev/null; then
27306  if ln -s conf$$.file conf$$ 2>/dev/null; then
27307    as_ln_s='ln -s'
27308    # ... but there are two gotchas:
27309    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27310    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27311    # In both cases, we have to default to `cp -pR'.
27312    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27313      as_ln_s='cp -pR'
27314  elif ln conf$$.file conf$$ 2>/dev/null; then
27315    as_ln_s=ln
27316  else
27317    as_ln_s='cp -pR'
27318  fi
27319else
27320  as_ln_s='cp -pR'
27321fi
27322rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27323rmdir conf$$.dir 2>/dev/null
27324
27325
27326# as_fn_mkdir_p
27327# -------------
27328# Create "$as_dir" as a directory, including parents if necessary.
27329as_fn_mkdir_p ()
27330{
27331
27332  case $as_dir in #(
27333  -*) as_dir=./$as_dir;;
27334  esac
27335  test -d "$as_dir" || eval $as_mkdir_p || {
27336    as_dirs=
27337    while :; do
27338      case $as_dir in #(
27339      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27340      *) as_qdir=$as_dir;;
27341      esac
27342      as_dirs="'$as_qdir' $as_dirs"
27343      as_dir=`$as_dirname -- "$as_dir" ||
27344$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27345	 X"$as_dir" : 'X\(//\)[^/]' \| \
27346	 X"$as_dir" : 'X\(//\)$' \| \
27347	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27348$as_echo X"$as_dir" |
27349    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27350	    s//\1/
27351	    q
27352	  }
27353	  /^X\(\/\/\)[^/].*/{
27354	    s//\1/
27355	    q
27356	  }
27357	  /^X\(\/\/\)$/{
27358	    s//\1/
27359	    q
27360	  }
27361	  /^X\(\/\).*/{
27362	    s//\1/
27363	    q
27364	  }
27365	  s/.*/./; q'`
27366      test -d "$as_dir" && break
27367    done
27368    test -z "$as_dirs" || eval "mkdir $as_dirs"
27369  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
27370
27371
27372} # as_fn_mkdir_p
27373if mkdir -p . 2>/dev/null; then
27374  as_mkdir_p='mkdir -p "$as_dir"'
27375else
27376  test -d ./-p && rmdir ./-p
27377  as_mkdir_p=false
27378fi
27379
27380
27381# as_fn_executable_p FILE
27382# -----------------------
27383# Test if FILE is an executable regular file.
27384as_fn_executable_p ()
27385{
27386  test -f "$1" && test -x "$1"
27387} # as_fn_executable_p
27388as_test_x='test -x'
27389as_executable_p=as_fn_executable_p
27390
27391# Sed expression to map a string onto a valid CPP name.
27392as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27393
27394# Sed expression to map a string onto a valid variable name.
27395as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27396
27397
27398exec 6>&1
27399## ----------------------------------- ##
27400## Main body of $CONFIG_STATUS script. ##
27401## ----------------------------------- ##
27402_ASEOF
27403test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27404
27405cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27406# Save the log message, to keep $0 and so on meaningful, and to
27407# report actual input values of CONFIG_FILES etc. instead of their
27408# values after options handling.
27409ac_log="
27410This file was extended by sane-backends $as_me 1.0.32, which was
27411generated by GNU Autoconf 2.69.  Invocation command line was
27412
27413  CONFIG_FILES    = $CONFIG_FILES
27414  CONFIG_HEADERS  = $CONFIG_HEADERS
27415  CONFIG_LINKS    = $CONFIG_LINKS
27416  CONFIG_COMMANDS = $CONFIG_COMMANDS
27417  $ $0 $@
27418
27419on `(hostname || uname -n) 2>/dev/null | sed 1q`
27420"
27421
27422_ACEOF
27423
27424case $ac_config_files in *"
27425"*) set x $ac_config_files; shift; ac_config_files=$*;;
27426esac
27427
27428case $ac_config_headers in *"
27429"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27430esac
27431
27432
27433cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27434# Files that config.status was made for.
27435config_files="$ac_config_files"
27436config_headers="$ac_config_headers"
27437config_commands="$ac_config_commands"
27438
27439_ACEOF
27440
27441cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27442ac_cs_usage="\
27443\`$as_me' instantiates files and other configuration actions
27444from templates according to the current configuration.  Unless the files
27445and actions are specified as TAGs, all are instantiated by default.
27446
27447Usage: $0 [OPTION]... [TAG]...
27448
27449  -h, --help       print this help, then exit
27450  -V, --version    print version number and configuration settings, then exit
27451      --config     print configuration, then exit
27452  -q, --quiet, --silent
27453                   do not print progress messages
27454  -d, --debug      don't remove temporary files
27455      --recheck    update $as_me by reconfiguring in the same conditions
27456      --file=FILE[:TEMPLATE]
27457                   instantiate the configuration file FILE
27458      --header=FILE[:TEMPLATE]
27459                   instantiate the configuration header FILE
27460
27461Configuration files:
27462$config_files
27463
27464Configuration headers:
27465$config_headers
27466
27467Configuration commands:
27468$config_commands
27469
27470Report bugs to <sane-devel@alioth-lists.debian.net>."
27471
27472_ACEOF
27473cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27474ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27475ac_cs_version="\\
27476sane-backends config.status 1.0.32
27477configured by $0, generated by GNU Autoconf 2.69,
27478  with options \\"\$ac_cs_config\\"
27479
27480Copyright (C) 2012 Free Software Foundation, Inc.
27481This config.status script is free software; the Free Software Foundation
27482gives unlimited permission to copy, distribute and modify it."
27483
27484ac_pwd='$ac_pwd'
27485srcdir='$srcdir'
27486INSTALL='$INSTALL'
27487MKDIR_P='$MKDIR_P'
27488AWK='$AWK'
27489test -n "\$AWK" || AWK=awk
27490_ACEOF
27491
27492cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27493# The default lists apply if the user does not specify any file.
27494ac_need_defaults=:
27495while test $# != 0
27496do
27497  case $1 in
27498  --*=?*)
27499    ac_option=`expr "X$1" : 'X\([^=]*\)='`
27500    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27501    ac_shift=:
27502    ;;
27503  --*=)
27504    ac_option=`expr "X$1" : 'X\([^=]*\)='`
27505    ac_optarg=
27506    ac_shift=:
27507    ;;
27508  *)
27509    ac_option=$1
27510    ac_optarg=$2
27511    ac_shift=shift
27512    ;;
27513  esac
27514
27515  case $ac_option in
27516  # Handling of the options.
27517  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27518    ac_cs_recheck=: ;;
27519  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27520    $as_echo "$ac_cs_version"; exit ;;
27521  --config | --confi | --conf | --con | --co | --c )
27522    $as_echo "$ac_cs_config"; exit ;;
27523  --debug | --debu | --deb | --de | --d | -d )
27524    debug=: ;;
27525  --file | --fil | --fi | --f )
27526    $ac_shift
27527    case $ac_optarg in
27528    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27529    '') as_fn_error $? "missing file argument" ;;
27530    esac
27531    as_fn_append CONFIG_FILES " '$ac_optarg'"
27532    ac_need_defaults=false;;
27533  --header | --heade | --head | --hea )
27534    $ac_shift
27535    case $ac_optarg in
27536    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27537    esac
27538    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27539    ac_need_defaults=false;;
27540  --he | --h)
27541    # Conflict between --help and --header
27542    as_fn_error $? "ambiguous option: \`$1'
27543Try \`$0 --help' for more information.";;
27544  --help | --hel | -h )
27545    $as_echo "$ac_cs_usage"; exit ;;
27546  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27547  | -silent | --silent | --silen | --sile | --sil | --si | --s)
27548    ac_cs_silent=: ;;
27549
27550  # This is an error.
27551  -*) as_fn_error $? "unrecognized option: \`$1'
27552Try \`$0 --help' for more information." ;;
27553
27554  *) as_fn_append ac_config_targets " $1"
27555     ac_need_defaults=false ;;
27556
27557  esac
27558  shift
27559done
27560
27561ac_configure_extra_args=
27562
27563if $ac_cs_silent; then
27564  exec 6>/dev/null
27565  ac_configure_extra_args="$ac_configure_extra_args --silent"
27566fi
27567
27568_ACEOF
27569cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27570if \$ac_cs_recheck; then
27571  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27572  shift
27573  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27574  CONFIG_SHELL='$SHELL'
27575  export CONFIG_SHELL
27576  exec "\$@"
27577fi
27578
27579_ACEOF
27580cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27581exec 5>>config.log
27582{
27583  echo
27584  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27585## Running $as_me. ##
27586_ASBOX
27587  $as_echo "$ac_log"
27588} >&5
27589
27590_ACEOF
27591cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27592#
27593# INIT-COMMANDS
27594#
27595AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
27596
27597
27598# The HP-UX ksh and POSIX shell print the target directory to stdout
27599# if CDPATH is set.
27600(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27601
27602sed_quote_subst='$sed_quote_subst'
27603double_quote_subst='$double_quote_subst'
27604delay_variable_subst='$delay_variable_subst'
27605macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27606macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27607enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27608AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
27609DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
27610OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27611enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27612pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27613enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27614shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
27615SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27616ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27617PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
27618host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27619host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27620host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27621build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27622build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27623build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27624SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27625Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27626GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27627EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27628FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27629LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27630NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27631LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27632max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27633ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27634exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27635lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27636lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27637lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27638lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
27639lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
27640reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27641reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27642deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27643file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27644file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
27645want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
27646sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
27647AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27648AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27649archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
27650STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27651RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27652old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27653old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27654old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27655lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27656CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27657CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27658compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27659GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27660lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27661lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27662lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
27663lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27664lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
27665lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
27666nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
27667lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
27668lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
27669objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27670MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27671lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27672lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27673lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27674lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27675lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27676need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27677MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
27678DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27679NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27680LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27681OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27682OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27683libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27684shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27685extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27686archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27687enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27688export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27689whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27690compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27691old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27692old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27693archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27694archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27695module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27696module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27697with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27698allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27699no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27700hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27701hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27702hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27703hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27704hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27705hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27706hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27707inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27708link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27709always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27710export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27711exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27712include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27713prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27714postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
27715file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27716variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27717need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27718need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27719version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27720runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27721shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27722shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27723libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27724library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27725soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27726install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27727postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27728postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27729finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27730finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27731hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27732sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27733configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
27734configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
27735hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27736enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27737enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27738enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27739old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27740striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27741compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27742predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27743postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27744predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27745postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27746compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27747LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
27748reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
27749reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27750old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27751compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
27752GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
27753lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
27754lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
27755lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
27756lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
27757lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
27758archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
27759enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
27760export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27761whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27762compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
27763old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27764old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27765archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27766archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27767module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27768module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27769with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
27770allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27771no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27772hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27773hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
27774hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
27775hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
27776hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
27777hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
27778hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
27779inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
27780link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
27781always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
27782export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27783exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27784include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27785prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27786postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27787file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
27788hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
27789compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
27790predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27791postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27792predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
27793postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
27794compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
27795
27796LTCC='$LTCC'
27797LTCFLAGS='$LTCFLAGS'
27798compiler='$compiler_DEFAULT'
27799
27800# A function that is used when there is no print builtin or printf.
27801func_fallback_echo ()
27802{
27803  eval 'cat <<_LTECHO_EOF
27804\$1
27805_LTECHO_EOF'
27806}
27807
27808# Quote evaled strings.
27809for var in AS \
27810DLLTOOL \
27811OBJDUMP \
27812SHELL \
27813ECHO \
27814PATH_SEPARATOR \
27815SED \
27816GREP \
27817EGREP \
27818FGREP \
27819LD \
27820NM \
27821LN_S \
27822lt_SP2NL \
27823lt_NL2SP \
27824reload_flag \
27825deplibs_check_method \
27826file_magic_cmd \
27827file_magic_glob \
27828want_nocaseglob \
27829sharedlib_from_linklib_cmd \
27830AR \
27831AR_FLAGS \
27832archiver_list_spec \
27833STRIP \
27834RANLIB \
27835CC \
27836CFLAGS \
27837compiler \
27838lt_cv_sys_global_symbol_pipe \
27839lt_cv_sys_global_symbol_to_cdecl \
27840lt_cv_sys_global_symbol_to_import \
27841lt_cv_sys_global_symbol_to_c_name_address \
27842lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27843lt_cv_nm_interface \
27844nm_file_list_spec \
27845lt_cv_truncate_bin \
27846lt_prog_compiler_no_builtin_flag \
27847lt_prog_compiler_pic \
27848lt_prog_compiler_wl \
27849lt_prog_compiler_static \
27850lt_cv_prog_compiler_c_o \
27851need_locks \
27852MANIFEST_TOOL \
27853DSYMUTIL \
27854NMEDIT \
27855LIPO \
27856OTOOL \
27857OTOOL64 \
27858shrext_cmds \
27859export_dynamic_flag_spec \
27860whole_archive_flag_spec \
27861compiler_needs_object \
27862with_gnu_ld \
27863allow_undefined_flag \
27864no_undefined_flag \
27865hardcode_libdir_flag_spec \
27866hardcode_libdir_separator \
27867exclude_expsyms \
27868include_expsyms \
27869file_list_spec \
27870variables_saved_for_relink \
27871libname_spec \
27872library_names_spec \
27873soname_spec \
27874install_override_mode \
27875finish_eval \
27876old_striplib \
27877striplib \
27878compiler_lib_search_dirs \
27879predep_objects \
27880postdep_objects \
27881predeps \
27882postdeps \
27883compiler_lib_search_path \
27884LD_CXX \
27885reload_flag_CXX \
27886compiler_CXX \
27887lt_prog_compiler_no_builtin_flag_CXX \
27888lt_prog_compiler_pic_CXX \
27889lt_prog_compiler_wl_CXX \
27890lt_prog_compiler_static_CXX \
27891lt_cv_prog_compiler_c_o_CXX \
27892export_dynamic_flag_spec_CXX \
27893whole_archive_flag_spec_CXX \
27894compiler_needs_object_CXX \
27895with_gnu_ld_CXX \
27896allow_undefined_flag_CXX \
27897no_undefined_flag_CXX \
27898hardcode_libdir_flag_spec_CXX \
27899hardcode_libdir_separator_CXX \
27900exclude_expsyms_CXX \
27901include_expsyms_CXX \
27902file_list_spec_CXX \
27903compiler_lib_search_dirs_CXX \
27904predep_objects_CXX \
27905postdep_objects_CXX \
27906predeps_CXX \
27907postdeps_CXX \
27908compiler_lib_search_path_CXX; do
27909    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27910    *[\\\\\\\`\\"\\\$]*)
27911      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27912      ;;
27913    *)
27914      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27915      ;;
27916    esac
27917done
27918
27919# Double-quote double-evaled strings.
27920for var in reload_cmds \
27921old_postinstall_cmds \
27922old_postuninstall_cmds \
27923old_archive_cmds \
27924extract_expsyms_cmds \
27925old_archive_from_new_cmds \
27926old_archive_from_expsyms_cmds \
27927archive_cmds \
27928archive_expsym_cmds \
27929module_cmds \
27930module_expsym_cmds \
27931export_symbols_cmds \
27932prelink_cmds \
27933postlink_cmds \
27934postinstall_cmds \
27935postuninstall_cmds \
27936finish_cmds \
27937sys_lib_search_path_spec \
27938configure_time_dlsearch_path \
27939configure_time_lt_sys_library_path \
27940reload_cmds_CXX \
27941old_archive_cmds_CXX \
27942old_archive_from_new_cmds_CXX \
27943old_archive_from_expsyms_cmds_CXX \
27944archive_cmds_CXX \
27945archive_expsym_cmds_CXX \
27946module_cmds_CXX \
27947module_expsym_cmds_CXX \
27948export_symbols_cmds_CXX \
27949prelink_cmds_CXX \
27950postlink_cmds_CXX; do
27951    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27952    *[\\\\\\\`\\"\\\$]*)
27953      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27954      ;;
27955    *)
27956      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27957      ;;
27958    esac
27959done
27960
27961ac_aux_dir='$ac_aux_dir'
27962
27963# See if we are running on zsh, and set the options that allow our
27964# commands through without removal of \ escapes INIT.
27965if test -n "\${ZSH_VERSION+set}"; then
27966   setopt NO_GLOB_SUBST
27967fi
27968
27969
27970    PACKAGE='$PACKAGE'
27971    VERSION='$VERSION'
27972    RM='$RM'
27973    ofile='$ofile'
27974
27975
27976
27977
27978
27979# Capture the value of obsolete ALL_LINGUAS because we need it to compute
27980    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
27981    # from automake < 1.5.
27982    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
27983    # Capture the value of LINGUAS because we need it to compute CATALOGS.
27984    LINGUAS="${LINGUAS-%UNSET%}"
27985
27986# variables for create stdint.h replacement
27987PACKAGE="$PACKAGE"
27988VERSION="$VERSION"
27989ac_stdint_h="$ac_stdint_h"
27990_ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
27991ac_cv_stdint_message="$ac_cv_stdint_message"
27992ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
27993ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
27994ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
27995ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
27996ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
27997ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
27998ac_cv_char_data_model="$ac_cv_char_data_model"
27999ac_cv_long_data_model="$ac_cv_long_data_model"
28000ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
28001ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
28002ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
28003
28004
28005_ACEOF
28006
28007cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28008
28009# Handling of arguments.
28010for ac_config_target in $ac_config_targets
28011do
28012  case $ac_config_target in
28013    "include/sane/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/sane/config.h" ;;
28014    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28015    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
28016    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
28017    "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
28018    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28019    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
28020    "sanei/Makefile") CONFIG_FILES="$CONFIG_FILES sanei/Makefile" ;;
28021    "frontend/Makefile") CONFIG_FILES="$CONFIG_FILES frontend/Makefile" ;;
28022    "japi/Makefile") CONFIG_FILES="$CONFIG_FILES japi/Makefile" ;;
28023    "backend/Makefile") CONFIG_FILES="$CONFIG_FILES backend/Makefile" ;;
28024    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
28025    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
28026    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
28027    "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
28028    "testsuite/backend/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/backend/Makefile" ;;
28029    "testsuite/backend/genesys/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/backend/genesys/Makefile" ;;
28030    "testsuite/sanei/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/sanei/Makefile" ;;
28031    "testsuite/tools/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/tools/Makefile" ;;
28032    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
28033    "doc/doxygen-sanei.conf") CONFIG_FILES="$CONFIG_FILES doc/doxygen-sanei.conf" ;;
28034    "doc/doxygen-genesys.conf") CONFIG_FILES="$CONFIG_FILES doc/doxygen-genesys.conf" ;;
28035    "tools/sane-config") CONFIG_FILES="$CONFIG_FILES tools/sane-config" ;;
28036    "tools/sane-backends.pc") CONFIG_FILES="$CONFIG_FILES tools/sane-backends.pc" ;;
28037
28038  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28039  esac
28040done
28041
28042
28043# If the user did not use the arguments to specify the items to instantiate,
28044# then the envvar interface is used.  Set only those that are not.
28045# We use the long form for the default assignment because of an extremely
28046# bizarre bug on SunOS 4.1.3.
28047if $ac_need_defaults; then
28048  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28049  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28050  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28051fi
28052
28053# Have a temporary directory for convenience.  Make it in the build tree
28054# simply because there is no reason against having it here, and in addition,
28055# creating and moving files from /tmp can sometimes cause problems.
28056# Hook for its removal unless debugging.
28057# Note that there is a small window in which the directory will not be cleaned:
28058# after its creation but before its name has been assigned to `$tmp'.
28059$debug ||
28060{
28061  tmp= ac_tmp=
28062  trap 'exit_status=$?
28063  : "${ac_tmp:=$tmp}"
28064  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
28065' 0
28066  trap 'as_fn_exit 1' 1 2 13 15
28067}
28068# Create a (secure) tmp directory for tmp files.
28069
28070{
28071  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28072  test -d "$tmp"
28073}  ||
28074{
28075  tmp=./conf$$-$RANDOM
28076  (umask 077 && mkdir "$tmp")
28077} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
28078ac_tmp=$tmp
28079
28080# Set up the scripts for CONFIG_FILES section.
28081# No need to generate them if there are no CONFIG_FILES.
28082# This happens for instance with `./config.status config.h'.
28083if test -n "$CONFIG_FILES"; then
28084
28085
28086ac_cr=`echo X | tr X '\015'`
28087# On cygwin, bash can eat \r inside `` if the user requested igncr.
28088# But we know of no other shell where ac_cr would be empty at this
28089# point, so we can use a bashism as a fallback.
28090if test "x$ac_cr" = x; then
28091  eval ac_cr=\$\'\\r\'
28092fi
28093ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28094if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28095  ac_cs_awk_cr='\\r'
28096else
28097  ac_cs_awk_cr=$ac_cr
28098fi
28099
28100echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
28101_ACEOF
28102
28103
28104{
28105  echo "cat >conf$$subs.awk <<_ACEOF" &&
28106  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28107  echo "_ACEOF"
28108} >conf$$subs.sh ||
28109  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28110ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
28111ac_delim='%!_!# '
28112for ac_last_try in false false false false false :; do
28113  . ./conf$$subs.sh ||
28114    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28115
28116  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28117  if test $ac_delim_n = $ac_delim_num; then
28118    break
28119  elif $ac_last_try; then
28120    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28121  else
28122    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28123  fi
28124done
28125rm -f conf$$subs.sh
28126
28127cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28128cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
28129_ACEOF
28130sed -n '
28131h
28132s/^/S["/; s/!.*/"]=/
28133p
28134g
28135s/^[^!]*!//
28136:repl
28137t repl
28138s/'"$ac_delim"'$//
28139t delim
28140:nl
28141h
28142s/\(.\{148\}\)..*/\1/
28143t more1
28144s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28145p
28146n
28147b repl
28148:more1
28149s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28150p
28151g
28152s/.\{148\}//
28153t nl
28154:delim
28155h
28156s/\(.\{148\}\)..*/\1/
28157t more2
28158s/["\\]/\\&/g; s/^/"/; s/$/"/
28159p
28160b
28161:more2
28162s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28163p
28164g
28165s/.\{148\}//
28166t delim
28167' <conf$$subs.awk | sed '
28168/^[^""]/{
28169  N
28170  s/\n//
28171}
28172' >>$CONFIG_STATUS || ac_write_fail=1
28173rm -f conf$$subs.awk
28174cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28175_ACAWK
28176cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
28177  for (key in S) S_is_set[key] = 1
28178  FS = ""
28179
28180}
28181{
28182  line = $ 0
28183  nfields = split(line, field, "@")
28184  substed = 0
28185  len = length(field[1])
28186  for (i = 2; i < nfields; i++) {
28187    key = field[i]
28188    keylen = length(key)
28189    if (S_is_set[key]) {
28190      value = S[key]
28191      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28192      len += length(value) + length(field[++i])
28193      substed = 1
28194    } else
28195      len += 1 + keylen
28196  }
28197
28198  print line
28199}
28200
28201_ACAWK
28202_ACEOF
28203cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28204if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28205  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28206else
28207  cat
28208fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
28209  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
28210_ACEOF
28211
28212# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
28213# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
28214# trailing colons and then remove the whole line if VPATH becomes empty
28215# (actually we leave an empty line to preserve line numbers).
28216if test "x$srcdir" = x.; then
28217  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
28218h
28219s///
28220s/^/:/
28221s/[	 ]*$/:/
28222s/:\$(srcdir):/:/g
28223s/:\${srcdir}:/:/g
28224s/:@srcdir@:/:/g
28225s/^:*//
28226s/:*$//
28227x
28228s/\(=[	 ]*\).*/\1/
28229G
28230s/\n//
28231s/^[^=]*=[	 ]*$//
28232}'
28233fi
28234
28235cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28236fi # test -n "$CONFIG_FILES"
28237
28238# Set up the scripts for CONFIG_HEADERS section.
28239# No need to generate them if there are no CONFIG_HEADERS.
28240# This happens for instance with `./config.status Makefile'.
28241if test -n "$CONFIG_HEADERS"; then
28242cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
28243BEGIN {
28244_ACEOF
28245
28246# Transform confdefs.h into an awk script `defines.awk', embedded as
28247# here-document in config.status, that substitutes the proper values into
28248# config.h.in to produce config.h.
28249
28250# Create a delimiter string that does not exist in confdefs.h, to ease
28251# handling of long lines.
28252ac_delim='%!_!# '
28253for ac_last_try in false false :; do
28254  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
28255  if test -z "$ac_tt"; then
28256    break
28257  elif $ac_last_try; then
28258    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
28259  else
28260    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28261  fi
28262done
28263
28264# For the awk script, D is an array of macro values keyed by name,
28265# likewise P contains macro parameters if any.  Preserve backslash
28266# newline sequences.
28267
28268ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28269sed -n '
28270s/.\{148\}/&'"$ac_delim"'/g
28271t rset
28272:rset
28273s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
28274t def
28275d
28276:def
28277s/\\$//
28278t bsnl
28279s/["\\]/\\&/g
28280s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
28281D["\1"]=" \3"/p
28282s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
28283d
28284:bsnl
28285s/["\\]/\\&/g
28286s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
28287D["\1"]=" \3\\\\\\n"\\/p
28288t cont
28289s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28290t cont
28291d
28292:cont
28293n
28294s/.\{148\}/&'"$ac_delim"'/g
28295t clear
28296:clear
28297s/\\$//
28298t bsnlc
28299s/["\\]/\\&/g; s/^/"/; s/$/"/p
28300d
28301:bsnlc
28302s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28303b cont
28304' <confdefs.h | sed '
28305s/'"$ac_delim"'/"\\\
28306"/g' >>$CONFIG_STATUS || ac_write_fail=1
28307
28308cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28309  for (key in D) D_is_set[key] = 1
28310  FS = ""
28311}
28312/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28313  line = \$ 0
28314  split(line, arg, " ")
28315  if (arg[1] == "#") {
28316    defundef = arg[2]
28317    mac1 = arg[3]
28318  } else {
28319    defundef = substr(arg[1], 2)
28320    mac1 = arg[2]
28321  }
28322  split(mac1, mac2, "(") #)
28323  macro = mac2[1]
28324  prefix = substr(line, 1, index(line, defundef) - 1)
28325  if (D_is_set[macro]) {
28326    # Preserve the white space surrounding the "#".
28327    print prefix "define", macro P[macro] D[macro]
28328    next
28329  } else {
28330    # Replace #undef with comments.  This is necessary, for example,
28331    # in the case of _POSIX_SOURCE, which is predefined and required
28332    # on some systems where configure will not decide to define it.
28333    if (defundef == "undef") {
28334      print "/*", prefix defundef, macro, "*/"
28335      next
28336    }
28337  }
28338}
28339{ print }
28340_ACAWK
28341_ACEOF
28342cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28343  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
28344fi # test -n "$CONFIG_HEADERS"
28345
28346
28347eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
28348shift
28349for ac_tag
28350do
28351  case $ac_tag in
28352  :[FHLC]) ac_mode=$ac_tag; continue;;
28353  esac
28354  case $ac_mode$ac_tag in
28355  :[FHL]*:*);;
28356  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
28357  :[FH]-) ac_tag=-:-;;
28358  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28359  esac
28360  ac_save_IFS=$IFS
28361  IFS=:
28362  set x $ac_tag
28363  IFS=$ac_save_IFS
28364  shift
28365  ac_file=$1
28366  shift
28367
28368  case $ac_mode in
28369  :L) ac_source=$1;;
28370  :[FH])
28371    ac_file_inputs=
28372    for ac_f
28373    do
28374      case $ac_f in
28375      -) ac_f="$ac_tmp/stdin";;
28376      *) # Look for the file first in the build tree, then in the source tree
28377	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
28378	 # because $ac_f cannot contain `:'.
28379	 test -f "$ac_f" ||
28380	   case $ac_f in
28381	   [\\/$]*) false;;
28382	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28383	   esac ||
28384	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28385      esac
28386      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28387      as_fn_append ac_file_inputs " '$ac_f'"
28388    done
28389
28390    # Let's still pretend it is `configure' which instantiates (i.e., don't
28391    # use $as_me), people would be surprised to read:
28392    #    /* config.h.  Generated by config.status.  */
28393    configure_input='Generated from '`
28394	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28395	`' by configure.'
28396    if test x"$ac_file" != x-; then
28397      configure_input="$ac_file.  $configure_input"
28398      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28399$as_echo "$as_me: creating $ac_file" >&6;}
28400    fi
28401    # Neutralize special characters interpreted by sed in replacement strings.
28402    case $configure_input in #(
28403    *\&* | *\|* | *\\* )
28404       ac_sed_conf_input=`$as_echo "$configure_input" |
28405       sed 's/[\\\\&|]/\\\\&/g'`;; #(
28406    *) ac_sed_conf_input=$configure_input;;
28407    esac
28408
28409    case $ac_tag in
28410    *:-:* | *:-) cat >"$ac_tmp/stdin" \
28411      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
28412    esac
28413    ;;
28414  esac
28415
28416  ac_dir=`$as_dirname -- "$ac_file" ||
28417$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28418	 X"$ac_file" : 'X\(//\)[^/]' \| \
28419	 X"$ac_file" : 'X\(//\)$' \| \
28420	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28421$as_echo X"$ac_file" |
28422    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28423	    s//\1/
28424	    q
28425	  }
28426	  /^X\(\/\/\)[^/].*/{
28427	    s//\1/
28428	    q
28429	  }
28430	  /^X\(\/\/\)$/{
28431	    s//\1/
28432	    q
28433	  }
28434	  /^X\(\/\).*/{
28435	    s//\1/
28436	    q
28437	  }
28438	  s/.*/./; q'`
28439  as_dir="$ac_dir"; as_fn_mkdir_p
28440  ac_builddir=.
28441
28442case "$ac_dir" in
28443.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28444*)
28445  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28446  # A ".." for each directory in $ac_dir_suffix.
28447  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28448  case $ac_top_builddir_sub in
28449  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28450  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28451  esac ;;
28452esac
28453ac_abs_top_builddir=$ac_pwd
28454ac_abs_builddir=$ac_pwd$ac_dir_suffix
28455# for backward compatibility:
28456ac_top_builddir=$ac_top_build_prefix
28457
28458case $srcdir in
28459  .)  # We are building in place.
28460    ac_srcdir=.
28461    ac_top_srcdir=$ac_top_builddir_sub
28462    ac_abs_top_srcdir=$ac_pwd ;;
28463  [\\/]* | ?:[\\/]* )  # Absolute name.
28464    ac_srcdir=$srcdir$ac_dir_suffix;
28465    ac_top_srcdir=$srcdir
28466    ac_abs_top_srcdir=$srcdir ;;
28467  *) # Relative name.
28468    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28469    ac_top_srcdir=$ac_top_build_prefix$srcdir
28470    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28471esac
28472ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28473
28474
28475  case $ac_mode in
28476  :F)
28477  #
28478  # CONFIG_FILE
28479  #
28480
28481  case $INSTALL in
28482  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28483  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28484  esac
28485  ac_MKDIR_P=$MKDIR_P
28486  case $MKDIR_P in
28487  [\\/$]* | ?:[\\/]* ) ;;
28488  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28489  esac
28490_ACEOF
28491
28492cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28493# If the template does not know about datarootdir, expand it.
28494# FIXME: This hack should be removed a few years after 2.60.
28495ac_datarootdir_hack=; ac_datarootdir_seen=
28496ac_sed_dataroot='
28497/datarootdir/ {
28498  p
28499  q
28500}
28501/@datadir@/p
28502/@docdir@/p
28503/@infodir@/p
28504/@localedir@/p
28505/@mandir@/p'
28506case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28507*datarootdir*) ac_datarootdir_seen=yes;;
28508*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28509  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28510$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28511_ACEOF
28512cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28513  ac_datarootdir_hack='
28514  s&@datadir@&$datadir&g
28515  s&@docdir@&$docdir&g
28516  s&@infodir@&$infodir&g
28517  s&@localedir@&$localedir&g
28518  s&@mandir@&$mandir&g
28519  s&\\\${datarootdir}&$datarootdir&g' ;;
28520esac
28521_ACEOF
28522
28523# Neutralize VPATH when `$srcdir' = `.'.
28524# Shell code in configure.ac might set extrasub.
28525# FIXME: do we really want to maintain this feature?
28526cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28527ac_sed_extra="$ac_vpsub
28528$extrasub
28529_ACEOF
28530cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28531:t
28532/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28533s|@configure_input@|$ac_sed_conf_input|;t t
28534s&@top_builddir@&$ac_top_builddir_sub&;t t
28535s&@top_build_prefix@&$ac_top_build_prefix&;t t
28536s&@srcdir@&$ac_srcdir&;t t
28537s&@abs_srcdir@&$ac_abs_srcdir&;t t
28538s&@top_srcdir@&$ac_top_srcdir&;t t
28539s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28540s&@builddir@&$ac_builddir&;t t
28541s&@abs_builddir@&$ac_abs_builddir&;t t
28542s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28543s&@INSTALL@&$ac_INSTALL&;t t
28544s&@MKDIR_P@&$ac_MKDIR_P&;t t
28545$ac_datarootdir_hack
28546"
28547eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
28548  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28549
28550test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28551  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
28552  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
28553      "$ac_tmp/out"`; test -z "$ac_out"; } &&
28554  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28555which seems to be undefined.  Please make sure it is defined" >&5
28556$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28557which seems to be undefined.  Please make sure it is defined" >&2;}
28558
28559  rm -f "$ac_tmp/stdin"
28560  case $ac_file in
28561  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28562  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28563  esac \
28564  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28565 ;;
28566  :H)
28567  #
28568  # CONFIG_HEADER
28569  #
28570  if test x"$ac_file" != x-; then
28571    {
28572      $as_echo "/* $configure_input  */" \
28573      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28574    } >"$ac_tmp/config.h" \
28575      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28576    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28577      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28578$as_echo "$as_me: $ac_file is unchanged" >&6;}
28579    else
28580      rm -f "$ac_file"
28581      mv "$ac_tmp/config.h" "$ac_file" \
28582	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
28583    fi
28584  else
28585    $as_echo "/* $configure_input  */" \
28586      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28587      || as_fn_error $? "could not create -" "$LINENO" 5
28588  fi
28589# Compute "$ac_file"'s index in $config_headers.
28590_am_arg="$ac_file"
28591_am_stamp_count=1
28592for _am_header in $config_headers :; do
28593  case $_am_header in
28594    $_am_arg | $_am_arg:* )
28595      break ;;
28596    * )
28597      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28598  esac
28599done
28600echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28601$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28602	 X"$_am_arg" : 'X\(//\)[^/]' \| \
28603	 X"$_am_arg" : 'X\(//\)$' \| \
28604	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28605$as_echo X"$_am_arg" |
28606    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28607	    s//\1/
28608	    q
28609	  }
28610	  /^X\(\/\/\)[^/].*/{
28611	    s//\1/
28612	    q
28613	  }
28614	  /^X\(\/\/\)$/{
28615	    s//\1/
28616	    q
28617	  }
28618	  /^X\(\/\).*/{
28619	    s//\1/
28620	    q
28621	  }
28622	  s/.*/./; q'`/stamp-h$_am_stamp_count
28623 ;;
28624
28625  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28626$as_echo "$as_me: executing $ac_file commands" >&6;}
28627 ;;
28628  esac
28629
28630
28631  case $ac_file$ac_mode in
28632    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28633  # Older Autoconf quotes --file arguments for eval, but not when files
28634  # are listed without --file.  Let's play safe and only enable the eval
28635  # if we detect the quoting.
28636  # TODO: see whether this extra hack can be removed once we start
28637  # requiring Autoconf 2.70 or later.
28638  case $CONFIG_FILES in #(
28639  *\'*) :
28640    eval set x "$CONFIG_FILES" ;; #(
28641  *) :
28642    set x $CONFIG_FILES ;; #(
28643  *) :
28644     ;;
28645esac
28646  shift
28647  # Used to flag and report bootstrapping failures.
28648  am_rc=0
28649  for am_mf
28650  do
28651    # Strip MF so we end up with the name of the file.
28652    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
28653    # Check whether this is an Automake generated Makefile which includes
28654    # dependency-tracking related rules and includes.
28655    # Grep'ing the whole file directly is not great: AIX grep has a line
28656    # limit of 2048, but all sed's we know have understand at least 4000.
28657    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
28658      || continue
28659    am_dirpart=`$as_dirname -- "$am_mf" ||
28660$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28661	 X"$am_mf" : 'X\(//\)[^/]' \| \
28662	 X"$am_mf" : 'X\(//\)$' \| \
28663	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
28664$as_echo X"$am_mf" |
28665    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28666	    s//\1/
28667	    q
28668	  }
28669	  /^X\(\/\/\)[^/].*/{
28670	    s//\1/
28671	    q
28672	  }
28673	  /^X\(\/\/\)$/{
28674	    s//\1/
28675	    q
28676	  }
28677	  /^X\(\/\).*/{
28678	    s//\1/
28679	    q
28680	  }
28681	  s/.*/./; q'`
28682    am_filepart=`$as_basename -- "$am_mf" ||
28683$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
28684	 X"$am_mf" : 'X\(//\)$' \| \
28685	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
28686$as_echo X/"$am_mf" |
28687    sed '/^.*\/\([^/][^/]*\)\/*$/{
28688	    s//\1/
28689	    q
28690	  }
28691	  /^X\/\(\/\/\)$/{
28692	    s//\1/
28693	    q
28694	  }
28695	  /^X\/\(\/\).*/{
28696	    s//\1/
28697	    q
28698	  }
28699	  s/.*/./; q'`
28700    { echo "$as_me:$LINENO: cd "$am_dirpart" \
28701      && sed -e '/# am--include-marker/d' "$am_filepart" \
28702        | $MAKE -f - am--depfiles" >&5
28703   (cd "$am_dirpart" \
28704      && sed -e '/# am--include-marker/d' "$am_filepart" \
28705        | $MAKE -f - am--depfiles) >&5 2>&5
28706   ac_status=$?
28707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28708   (exit $ac_status); } || am_rc=$?
28709  done
28710  if test $am_rc -ne 0; then
28711    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28712$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28713as_fn_error $? "Something went wrong bootstrapping makefile fragments
28714    for automatic dependency tracking.  Try re-running configure with the
28715    '--disable-dependency-tracking' option to at least be able to build
28716    the package (albeit without support for automatic dependency tracking).
28717See \`config.log' for more details" "$LINENO" 5; }
28718  fi
28719  { am_dirpart=; unset am_dirpart;}
28720  { am_filepart=; unset am_filepart;}
28721  { am_mf=; unset am_mf;}
28722  { am_rc=; unset am_rc;}
28723  rm -f conftest-deps.mk
28724}
28725 ;;
28726    "libtool":C)
28727
28728    # See if we are running on zsh, and set the options that allow our
28729    # commands through without removal of \ escapes.
28730    if test -n "${ZSH_VERSION+set}"; then
28731      setopt NO_GLOB_SUBST
28732    fi
28733
28734    cfgfile=${ofile}T
28735    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28736    $RM "$cfgfile"
28737
28738    cat <<_LT_EOF >> "$cfgfile"
28739#! $SHELL
28740# Generated automatically by $as_me ($PACKAGE) $VERSION
28741# NOTE: Changes made to this file will be lost: look at ltmain.sh.
28742
28743# Provide generalized library-building support services.
28744# Written by Gordon Matzigkeit, 1996
28745
28746# Copyright (C) 2014 Free Software Foundation, Inc.
28747# This is free software; see the source for copying conditions.  There is NO
28748# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
28749
28750# GNU Libtool is free software; you can redistribute it and/or modify
28751# it under the terms of the GNU General Public License as published by
28752# the Free Software Foundation; either version 2 of of the License, or
28753# (at your option) any later version.
28754#
28755# As a special exception to the GNU General Public License, if you
28756# distribute this file as part of a program or library that is built
28757# using GNU Libtool, you may include this file under the  same
28758# distribution terms that you use for the rest of that program.
28759#
28760# GNU Libtool is distributed in the hope that it will be useful, but
28761# WITHOUT ANY WARRANTY; without even the implied warranty of
28762# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
28763# GNU General Public License for more details.
28764#
28765# You should have received a copy of the GNU General Public License
28766# along with this program.  If not, see <http://www.gnu.org/licenses/>.
28767
28768
28769# The names of the tagged configurations supported by this script.
28770available_tags='CXX '
28771
28772# Configured defaults for sys_lib_dlsearch_path munging.
28773: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
28774
28775# ### BEGIN LIBTOOL CONFIG
28776
28777# Which release of libtool.m4 was used?
28778macro_version=$macro_version
28779macro_revision=$macro_revision
28780
28781# Whether or not to build static libraries.
28782build_old_libs=$enable_static
28783
28784# Assembler program.
28785AS=$lt_AS
28786
28787# DLL creation program.
28788DLLTOOL=$lt_DLLTOOL
28789
28790# Object dumper program.
28791OBJDUMP=$lt_OBJDUMP
28792
28793# Whether or not to build shared libraries.
28794build_libtool_libs=$enable_shared
28795
28796# What type of objects to build.
28797pic_mode=$pic_mode
28798
28799# Whether or not to optimize for fast installation.
28800fast_install=$enable_fast_install
28801
28802# Shared archive member basename,for filename based shared library versioning on AIX.
28803shared_archive_member_spec=$shared_archive_member_spec
28804
28805# Shell to use when invoking shell scripts.
28806SHELL=$lt_SHELL
28807
28808# An echo program that protects backslashes.
28809ECHO=$lt_ECHO
28810
28811# The PATH separator for the build system.
28812PATH_SEPARATOR=$lt_PATH_SEPARATOR
28813
28814# The host system.
28815host_alias=$host_alias
28816host=$host
28817host_os=$host_os
28818
28819# The build system.
28820build_alias=$build_alias
28821build=$build
28822build_os=$build_os
28823
28824# A sed program that does not truncate output.
28825SED=$lt_SED
28826
28827# Sed that helps us avoid accidentally triggering echo(1) options like -n.
28828Xsed="\$SED -e 1s/^X//"
28829
28830# A grep program that handles long lines.
28831GREP=$lt_GREP
28832
28833# An ERE matcher.
28834EGREP=$lt_EGREP
28835
28836# A literal string matcher.
28837FGREP=$lt_FGREP
28838
28839# A BSD- or MS-compatible name lister.
28840NM=$lt_NM
28841
28842# Whether we need soft or hard links.
28843LN_S=$lt_LN_S
28844
28845# What is the maximum length of a command?
28846max_cmd_len=$max_cmd_len
28847
28848# Object file suffix (normally "o").
28849objext=$ac_objext
28850
28851# Executable file suffix (normally "").
28852exeext=$exeext
28853
28854# whether the shell understands "unset".
28855lt_unset=$lt_unset
28856
28857# turn spaces into newlines.
28858SP2NL=$lt_lt_SP2NL
28859
28860# turn newlines into spaces.
28861NL2SP=$lt_lt_NL2SP
28862
28863# convert \$build file names to \$host format.
28864to_host_file_cmd=$lt_cv_to_host_file_cmd
28865
28866# convert \$build files to toolchain format.
28867to_tool_file_cmd=$lt_cv_to_tool_file_cmd
28868
28869# Method to check whether dependent libraries are shared objects.
28870deplibs_check_method=$lt_deplibs_check_method
28871
28872# Command to use when deplibs_check_method = "file_magic".
28873file_magic_cmd=$lt_file_magic_cmd
28874
28875# How to find potential files when deplibs_check_method = "file_magic".
28876file_magic_glob=$lt_file_magic_glob
28877
28878# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
28879want_nocaseglob=$lt_want_nocaseglob
28880
28881# Command to associate shared and link libraries.
28882sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
28883
28884# The archiver.
28885AR=$lt_AR
28886
28887# Flags to create an archive.
28888AR_FLAGS=$lt_AR_FLAGS
28889
28890# How to feed a file listing to the archiver.
28891archiver_list_spec=$lt_archiver_list_spec
28892
28893# A symbol stripping program.
28894STRIP=$lt_STRIP
28895
28896# Commands used to install an old-style archive.
28897RANLIB=$lt_RANLIB
28898old_postinstall_cmds=$lt_old_postinstall_cmds
28899old_postuninstall_cmds=$lt_old_postuninstall_cmds
28900
28901# Whether to use a lock for old archive extraction.
28902lock_old_archive_extraction=$lock_old_archive_extraction
28903
28904# A C compiler.
28905LTCC=$lt_CC
28906
28907# LTCC compiler flags.
28908LTCFLAGS=$lt_CFLAGS
28909
28910# Take the output of nm and produce a listing of raw symbols and C names.
28911global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28912
28913# Transform the output of nm in a proper C declaration.
28914global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28915
28916# Transform the output of nm into a list of symbols to manually relocate.
28917global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
28918
28919# Transform the output of nm in a C name address pair.
28920global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28921
28922# Transform the output of nm in a C name address pair when lib prefix is needed.
28923global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28924
28925# The name lister interface.
28926nm_interface=$lt_lt_cv_nm_interface
28927
28928# Specify filename containing input files for \$NM.
28929nm_file_list_spec=$lt_nm_file_list_spec
28930
28931# The root where to search for dependent libraries,and where our libraries should be installed.
28932lt_sysroot=$lt_sysroot
28933
28934# Command to truncate a binary pipe.
28935lt_truncate_bin=$lt_lt_cv_truncate_bin
28936
28937# The name of the directory that contains temporary libtool files.
28938objdir=$objdir
28939
28940# Used to examine libraries when file_magic_cmd begins with "file".
28941MAGIC_CMD=$MAGIC_CMD
28942
28943# Must we lock files when doing compilation?
28944need_locks=$lt_need_locks
28945
28946# Manifest tool.
28947MANIFEST_TOOL=$lt_MANIFEST_TOOL
28948
28949# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28950DSYMUTIL=$lt_DSYMUTIL
28951
28952# Tool to change global to local symbols on Mac OS X.
28953NMEDIT=$lt_NMEDIT
28954
28955# Tool to manipulate fat objects and archives on Mac OS X.
28956LIPO=$lt_LIPO
28957
28958# ldd/readelf like tool for Mach-O binaries on Mac OS X.
28959OTOOL=$lt_OTOOL
28960
28961# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28962OTOOL64=$lt_OTOOL64
28963
28964# Old archive suffix (normally "a").
28965libext=$libext
28966
28967# Shared library suffix (normally ".so").
28968shrext_cmds=$lt_shrext_cmds
28969
28970# The commands to extract the exported symbol list from a shared archive.
28971extract_expsyms_cmds=$lt_extract_expsyms_cmds
28972
28973# Variables whose values should be saved in libtool wrapper scripts and
28974# restored at link time.
28975variables_saved_for_relink=$lt_variables_saved_for_relink
28976
28977# Do we need the "lib" prefix for modules?
28978need_lib_prefix=$need_lib_prefix
28979
28980# Do we need a version for libraries?
28981need_version=$need_version
28982
28983# Library versioning type.
28984version_type=$version_type
28985
28986# Shared library runtime path variable.
28987runpath_var=$runpath_var
28988
28989# Shared library path variable.
28990shlibpath_var=$shlibpath_var
28991
28992# Is shlibpath searched before the hard-coded library search path?
28993shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28994
28995# Format of library name prefix.
28996libname_spec=$lt_libname_spec
28997
28998# List of archive names.  First name is the real one, the rest are links.
28999# The last name is the one that the linker finds with -lNAME
29000library_names_spec=$lt_library_names_spec
29001
29002# The coded name of the library, if different from the real name.
29003soname_spec=$lt_soname_spec
29004
29005# Permission mode override for installation of shared libraries.
29006install_override_mode=$lt_install_override_mode
29007
29008# Command to use after installation of a shared archive.
29009postinstall_cmds=$lt_postinstall_cmds
29010
29011# Command to use after uninstallation of a shared archive.
29012postuninstall_cmds=$lt_postuninstall_cmds
29013
29014# Commands used to finish a libtool library installation in a directory.
29015finish_cmds=$lt_finish_cmds
29016
29017# As "finish_cmds", except a single script fragment to be evaled but
29018# not shown.
29019finish_eval=$lt_finish_eval
29020
29021# Whether we should hardcode library paths into libraries.
29022hardcode_into_libs=$hardcode_into_libs
29023
29024# Compile-time system search path for libraries.
29025sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
29026
29027# Detected run-time system search path for libraries.
29028sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
29029
29030# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
29031configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
29032
29033# Whether dlopen is supported.
29034dlopen_support=$enable_dlopen
29035
29036# Whether dlopen of programs is supported.
29037dlopen_self=$enable_dlopen_self
29038
29039# Whether dlopen of statically linked programs is supported.
29040dlopen_self_static=$enable_dlopen_self_static
29041
29042# Commands to strip libraries.
29043old_striplib=$lt_old_striplib
29044striplib=$lt_striplib
29045
29046
29047# The linker used to build libraries.
29048LD=$lt_LD
29049
29050# How to create reloadable object files.
29051reload_flag=$lt_reload_flag
29052reload_cmds=$lt_reload_cmds
29053
29054# Commands used to build an old-style archive.
29055old_archive_cmds=$lt_old_archive_cmds
29056
29057# A language specific compiler.
29058CC=$lt_compiler
29059
29060# Is the compiler the GNU compiler?
29061with_gcc=$GCC
29062
29063# Compiler flag to turn off builtin functions.
29064no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
29065
29066# Additional compiler flags for building library objects.
29067pic_flag=$lt_lt_prog_compiler_pic
29068
29069# How to pass a linker flag through the compiler.
29070wl=$lt_lt_prog_compiler_wl
29071
29072# Compiler flag to prevent dynamic linking.
29073link_static_flag=$lt_lt_prog_compiler_static
29074
29075# Does compiler simultaneously support -c and -o options?
29076compiler_c_o=$lt_lt_cv_prog_compiler_c_o
29077
29078# Whether or not to add -lc for building shared libraries.
29079build_libtool_need_lc=$archive_cmds_need_lc
29080
29081# Whether or not to disallow shared libs when runtime libs are static.
29082allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
29083
29084# Compiler flag to allow reflexive dlopens.
29085export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
29086
29087# Compiler flag to generate shared objects directly from archives.
29088whole_archive_flag_spec=$lt_whole_archive_flag_spec
29089
29090# Whether the compiler copes with passing no objects directly.
29091compiler_needs_object=$lt_compiler_needs_object
29092
29093# Create an old-style archive from a shared archive.
29094old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
29095
29096# Create a temporary old-style archive to link instead of a shared archive.
29097old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
29098
29099# Commands used to build a shared archive.
29100archive_cmds=$lt_archive_cmds
29101archive_expsym_cmds=$lt_archive_expsym_cmds
29102
29103# Commands used to build a loadable module if different from building
29104# a shared archive.
29105module_cmds=$lt_module_cmds
29106module_expsym_cmds=$lt_module_expsym_cmds
29107
29108# Whether we are building with GNU ld or not.
29109with_gnu_ld=$lt_with_gnu_ld
29110
29111# Flag that allows shared libraries with undefined symbols to be built.
29112allow_undefined_flag=$lt_allow_undefined_flag
29113
29114# Flag that enforces no undefined symbols.
29115no_undefined_flag=$lt_no_undefined_flag
29116
29117# Flag to hardcode \$libdir into a binary during linking.
29118# This must work even if \$libdir does not exist
29119hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
29120
29121# Whether we need a single "-rpath" flag with a separated argument.
29122hardcode_libdir_separator=$lt_hardcode_libdir_separator
29123
29124# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29125# DIR into the resulting binary.
29126hardcode_direct=$hardcode_direct
29127
29128# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29129# DIR into the resulting binary and the resulting library dependency is
29130# "absolute",i.e impossible to change by setting \$shlibpath_var if the
29131# library is relocated.
29132hardcode_direct_absolute=$hardcode_direct_absolute
29133
29134# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29135# into the resulting binary.
29136hardcode_minus_L=$hardcode_minus_L
29137
29138# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29139# into the resulting binary.
29140hardcode_shlibpath_var=$hardcode_shlibpath_var
29141
29142# Set to "yes" if building a shared library automatically hardcodes DIR
29143# into the library and all subsequent libraries and executables linked
29144# against it.
29145hardcode_automatic=$hardcode_automatic
29146
29147# Set to yes if linker adds runtime paths of dependent libraries
29148# to runtime path list.
29149inherit_rpath=$inherit_rpath
29150
29151# Whether libtool must link a program against all its dependency libraries.
29152link_all_deplibs=$link_all_deplibs
29153
29154# Set to "yes" if exported symbols are required.
29155always_export_symbols=$always_export_symbols
29156
29157# The commands to list exported symbols.
29158export_symbols_cmds=$lt_export_symbols_cmds
29159
29160# Symbols that should not be listed in the preloaded symbols.
29161exclude_expsyms=$lt_exclude_expsyms
29162
29163# Symbols that must always be exported.
29164include_expsyms=$lt_include_expsyms
29165
29166# Commands necessary for linking programs (against libraries) with templates.
29167prelink_cmds=$lt_prelink_cmds
29168
29169# Commands necessary for finishing linking programs.
29170postlink_cmds=$lt_postlink_cmds
29171
29172# Specify filename containing input files.
29173file_list_spec=$lt_file_list_spec
29174
29175# How to hardcode a shared library path into an executable.
29176hardcode_action=$hardcode_action
29177
29178# The directories searched by this compiler when creating a shared library.
29179compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
29180
29181# Dependencies to place before and after the objects being linked to
29182# create a shared library.
29183predep_objects=$lt_predep_objects
29184postdep_objects=$lt_postdep_objects
29185predeps=$lt_predeps
29186postdeps=$lt_postdeps
29187
29188# The library search path used internally by the compiler when linking
29189# a shared library.
29190compiler_lib_search_path=$lt_compiler_lib_search_path
29191
29192# ### END LIBTOOL CONFIG
29193
29194_LT_EOF
29195
29196    cat <<'_LT_EOF' >> "$cfgfile"
29197
29198# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
29199
29200# func_munge_path_list VARIABLE PATH
29201# -----------------------------------
29202# VARIABLE is name of variable containing _space_ separated list of
29203# directories to be munged by the contents of PATH, which is string
29204# having a format:
29205# "DIR[:DIR]:"
29206#       string "DIR[ DIR]" will be prepended to VARIABLE
29207# ":DIR[:DIR]"
29208#       string "DIR[ DIR]" will be appended to VARIABLE
29209# "DIRP[:DIRP]::[DIRA:]DIRA"
29210#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
29211#       "DIRA[ DIRA]" will be appended to VARIABLE
29212# "DIR[:DIR]"
29213#       VARIABLE will be replaced by "DIR[ DIR]"
29214func_munge_path_list ()
29215{
29216    case x$2 in
29217    x)
29218        ;;
29219    *:)
29220        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
29221        ;;
29222    x:*)
29223        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
29224        ;;
29225    *::*)
29226        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
29227        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
29228        ;;
29229    *)
29230        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
29231        ;;
29232    esac
29233}
29234
29235
29236# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
29237func_cc_basename ()
29238{
29239    for cc_temp in $*""; do
29240      case $cc_temp in
29241        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
29242        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
29243        \-*) ;;
29244        *) break;;
29245      esac
29246    done
29247    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
29248}
29249
29250
29251# ### END FUNCTIONS SHARED WITH CONFIGURE
29252
29253_LT_EOF
29254
29255  case $host_os in
29256  aix3*)
29257    cat <<\_LT_EOF >> "$cfgfile"
29258# AIX sometimes has problems with the GCC collect2 program.  For some
29259# reason, if we set the COLLECT_NAMES environment variable, the problems
29260# vanish in a puff of smoke.
29261if test set != "${COLLECT_NAMES+set}"; then
29262  COLLECT_NAMES=
29263  export COLLECT_NAMES
29264fi
29265_LT_EOF
29266    ;;
29267  esac
29268
29269
29270ltmain=$ac_aux_dir/ltmain.sh
29271
29272
29273  # We use sed instead of cat because bash on DJGPP gets confused if
29274  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
29275  # text mode, it properly converts lines to CR/LF.  This bash problem
29276  # is reportedly fixed, but why not run on old versions too?
29277  sed '$q' "$ltmain" >> "$cfgfile" \
29278     || (rm -f "$cfgfile"; exit 1)
29279
29280   mv -f "$cfgfile" "$ofile" ||
29281    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29282  chmod +x "$ofile"
29283
29284
29285    cat <<_LT_EOF >> "$ofile"
29286
29287# ### BEGIN LIBTOOL TAG CONFIG: CXX
29288
29289# The linker used to build libraries.
29290LD=$lt_LD_CXX
29291
29292# How to create reloadable object files.
29293reload_flag=$lt_reload_flag_CXX
29294reload_cmds=$lt_reload_cmds_CXX
29295
29296# Commands used to build an old-style archive.
29297old_archive_cmds=$lt_old_archive_cmds_CXX
29298
29299# A language specific compiler.
29300CC=$lt_compiler_CXX
29301
29302# Is the compiler the GNU compiler?
29303with_gcc=$GCC_CXX
29304
29305# Compiler flag to turn off builtin functions.
29306no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
29307
29308# Additional compiler flags for building library objects.
29309pic_flag=$lt_lt_prog_compiler_pic_CXX
29310
29311# How to pass a linker flag through the compiler.
29312wl=$lt_lt_prog_compiler_wl_CXX
29313
29314# Compiler flag to prevent dynamic linking.
29315link_static_flag=$lt_lt_prog_compiler_static_CXX
29316
29317# Does compiler simultaneously support -c and -o options?
29318compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
29319
29320# Whether or not to add -lc for building shared libraries.
29321build_libtool_need_lc=$archive_cmds_need_lc_CXX
29322
29323# Whether or not to disallow shared libs when runtime libs are static.
29324allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
29325
29326# Compiler flag to allow reflexive dlopens.
29327export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
29328
29329# Compiler flag to generate shared objects directly from archives.
29330whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
29331
29332# Whether the compiler copes with passing no objects directly.
29333compiler_needs_object=$lt_compiler_needs_object_CXX
29334
29335# Create an old-style archive from a shared archive.
29336old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
29337
29338# Create a temporary old-style archive to link instead of a shared archive.
29339old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
29340
29341# Commands used to build a shared archive.
29342archive_cmds=$lt_archive_cmds_CXX
29343archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
29344
29345# Commands used to build a loadable module if different from building
29346# a shared archive.
29347module_cmds=$lt_module_cmds_CXX
29348module_expsym_cmds=$lt_module_expsym_cmds_CXX
29349
29350# Whether we are building with GNU ld or not.
29351with_gnu_ld=$lt_with_gnu_ld_CXX
29352
29353# Flag that allows shared libraries with undefined symbols to be built.
29354allow_undefined_flag=$lt_allow_undefined_flag_CXX
29355
29356# Flag that enforces no undefined symbols.
29357no_undefined_flag=$lt_no_undefined_flag_CXX
29358
29359# Flag to hardcode \$libdir into a binary during linking.
29360# This must work even if \$libdir does not exist
29361hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
29362
29363# Whether we need a single "-rpath" flag with a separated argument.
29364hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
29365
29366# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29367# DIR into the resulting binary.
29368hardcode_direct=$hardcode_direct_CXX
29369
29370# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29371# DIR into the resulting binary and the resulting library dependency is
29372# "absolute",i.e impossible to change by setting \$shlibpath_var if the
29373# library is relocated.
29374hardcode_direct_absolute=$hardcode_direct_absolute_CXX
29375
29376# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29377# into the resulting binary.
29378hardcode_minus_L=$hardcode_minus_L_CXX
29379
29380# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29381# into the resulting binary.
29382hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
29383
29384# Set to "yes" if building a shared library automatically hardcodes DIR
29385# into the library and all subsequent libraries and executables linked
29386# against it.
29387hardcode_automatic=$hardcode_automatic_CXX
29388
29389# Set to yes if linker adds runtime paths of dependent libraries
29390# to runtime path list.
29391inherit_rpath=$inherit_rpath_CXX
29392
29393# Whether libtool must link a program against all its dependency libraries.
29394link_all_deplibs=$link_all_deplibs_CXX
29395
29396# Set to "yes" if exported symbols are required.
29397always_export_symbols=$always_export_symbols_CXX
29398
29399# The commands to list exported symbols.
29400export_symbols_cmds=$lt_export_symbols_cmds_CXX
29401
29402# Symbols that should not be listed in the preloaded symbols.
29403exclude_expsyms=$lt_exclude_expsyms_CXX
29404
29405# Symbols that must always be exported.
29406include_expsyms=$lt_include_expsyms_CXX
29407
29408# Commands necessary for linking programs (against libraries) with templates.
29409prelink_cmds=$lt_prelink_cmds_CXX
29410
29411# Commands necessary for finishing linking programs.
29412postlink_cmds=$lt_postlink_cmds_CXX
29413
29414# Specify filename containing input files.
29415file_list_spec=$lt_file_list_spec_CXX
29416
29417# How to hardcode a shared library path into an executable.
29418hardcode_action=$hardcode_action_CXX
29419
29420# The directories searched by this compiler when creating a shared library.
29421compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
29422
29423# Dependencies to place before and after the objects being linked to
29424# create a shared library.
29425predep_objects=$lt_predep_objects_CXX
29426postdep_objects=$lt_postdep_objects_CXX
29427predeps=$lt_predeps_CXX
29428postdeps=$lt_postdeps_CXX
29429
29430# The library search path used internally by the compiler when linking
29431# a shared library.
29432compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
29433
29434# ### END LIBTOOL TAG CONFIG: CXX
29435_LT_EOF
29436
29437 ;;
29438    "po-directories":C)
29439    for ac_file in $CONFIG_FILES; do
29440      # Support "outfile[:infile[:infile...]]"
29441      case "$ac_file" in
29442        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
29443      esac
29444      # PO directories have a Makefile.in generated from Makefile.in.in.
29445      case "$ac_file" in */Makefile.in)
29446        # Adjust a relative srcdir.
29447        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
29448        ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
29449        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
29450        # In autoconf-2.13 it is called $ac_given_srcdir.
29451        # In autoconf-2.50 it is called $srcdir.
29452        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
29453        case "$ac_given_srcdir" in
29454          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
29455          /*) top_srcdir="$ac_given_srcdir" ;;
29456          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
29457        esac
29458        # Treat a directory as a PO directory if and only if it has a
29459        # POTFILES.in file. This allows packages to have multiple PO
29460        # directories under different names or in different locations.
29461        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
29462          rm -f "$ac_dir/POTFILES"
29463          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
29464          gt_tab=`printf '\t'`
29465          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
29466          POMAKEFILEDEPS="POTFILES.in"
29467          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
29468          # on $ac_dir but don't depend on user-specified configuration
29469          # parameters.
29470          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
29471            # The LINGUAS file contains the set of available languages.
29472            if test -n "$OBSOLETE_ALL_LINGUAS"; then
29473              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
29474            fi
29475            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
29476            # Hide the ALL_LINGUAS assignment from automake < 1.5.
29477            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
29478            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
29479          else
29480            # The set of available languages was given in configure.in.
29481            # Hide the ALL_LINGUAS assignment from automake < 1.5.
29482            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
29483          fi
29484          # Compute POFILES
29485          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
29486          # Compute UPDATEPOFILES
29487          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
29488          # Compute DUMMYPOFILES
29489          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
29490          # Compute GMOFILES
29491          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
29492          case "$ac_given_srcdir" in
29493            .) srcdirpre= ;;
29494            *) srcdirpre='$(srcdir)/' ;;
29495          esac
29496          POFILES=
29497          UPDATEPOFILES=
29498          DUMMYPOFILES=
29499          GMOFILES=
29500          for lang in $ALL_LINGUAS; do
29501            POFILES="$POFILES $srcdirpre$lang.po"
29502            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
29503            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
29504            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
29505          done
29506          # CATALOGS depends on both $ac_dir and the user's LINGUAS
29507          # environment variable.
29508          INST_LINGUAS=
29509          if test -n "$ALL_LINGUAS"; then
29510            for presentlang in $ALL_LINGUAS; do
29511              useit=no
29512              if test "%UNSET%" != "$LINGUAS"; then
29513                desiredlanguages="$LINGUAS"
29514              else
29515                desiredlanguages="$ALL_LINGUAS"
29516              fi
29517              for desiredlang in $desiredlanguages; do
29518                # Use the presentlang catalog if desiredlang is
29519                #   a. equal to presentlang, or
29520                #   b. a variant of presentlang (because in this case,
29521                #      presentlang can be used as a fallback for messages
29522                #      which are not translated in the desiredlang catalog).
29523                case "$desiredlang" in
29524                  "$presentlang"*) useit=yes;;
29525                esac
29526              done
29527              if test $useit = yes; then
29528                INST_LINGUAS="$INST_LINGUAS $presentlang"
29529              fi
29530            done
29531          fi
29532          CATALOGS=
29533          if test -n "$INST_LINGUAS"; then
29534            for lang in $INST_LINGUAS; do
29535              CATALOGS="$CATALOGS $lang.gmo"
29536            done
29537          fi
29538          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
29539          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"
29540          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
29541            if test -f "$f"; then
29542              case "$f" in
29543                *.orig | *.bak | *~) ;;
29544                *) cat "$f" >> "$ac_dir/Makefile" ;;
29545              esac
29546            fi
29547          done
29548        fi
29549        ;;
29550      esac
29551    done ;;
29552    "$ac_stdint_h":C)
29553{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
29554$as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
29555ac_stdint=$tmp/_stdint.h
29556
29557echo "#ifndef" $_ac_stdint_h >$ac_stdint
29558echo "#define" $_ac_stdint_h "1" >>$ac_stdint
29559echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
29560echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
29561echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
29562if test "_$ac_cv_header_stdint_t" != "_" ; then
29563echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
29564echo "#include <stdint.h>" >>$ac_stdint
29565echo "#endif" >>$ac_stdint
29566echo "#endif" >>$ac_stdint
29567else
29568
29569cat >>$ac_stdint <<STDINT_EOF
29570
29571/* ................... shortcircuit part ........................... */
29572
29573#if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
29574#include <stdint.h>
29575#else
29576#include <stddef.h>
29577
29578/* .................... configured part ............................ */
29579
29580STDINT_EOF
29581
29582echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
29583if test "_$ac_cv_header_stdint_x" != "_" ; then
29584  ac_header="$ac_cv_header_stdint_x"
29585  echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
29586else
29587  echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
29588fi
29589
29590echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
29591if  test "_$ac_cv_header_stdint_o" != "_" ; then
29592  ac_header="$ac_cv_header_stdint_o"
29593  echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
29594else
29595  echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
29596fi
29597
29598echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
29599if  test "_$ac_cv_header_stdint_u" != "_" ; then
29600  ac_header="$ac_cv_header_stdint_u"
29601  echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
29602else
29603  echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
29604fi
29605
29606echo "" >>$ac_stdint
29607
29608if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
29609  echo "#include <$ac_header>" >>$ac_stdint
29610  echo "" >>$ac_stdint
29611fi fi
29612
29613echo "/* which 64bit typedef has been found */" >>$ac_stdint
29614if test "$ac_cv_type_uint64_t" = "yes" ; then
29615echo "#define   _STDINT_HAVE_UINT64_T" "1"  >>$ac_stdint
29616else
29617echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
29618fi
29619if test "$ac_cv_type_u_int64_t" = "yes" ; then
29620echo "#define   _STDINT_HAVE_U_INT64_T" "1"  >>$ac_stdint
29621else
29622echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
29623fi
29624echo "" >>$ac_stdint
29625
29626echo "/* which type model has been detected */" >>$ac_stdint
29627if test "_$ac_cv_char_data_model" != "_" ; then
29628echo "#define   _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
29629echo "#define   _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
29630else
29631echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
29632echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
29633fi
29634echo "" >>$ac_stdint
29635
29636echo "/* whether int_least types were detected */" >>$ac_stdint
29637if test "$ac_cv_type_int_least32_t" = "yes"; then
29638echo "#define   _STDINT_HAVE_INT_LEAST32_T" "1"  >>$ac_stdint
29639else
29640echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
29641fi
29642echo "/* whether int_fast types were detected */" >>$ac_stdint
29643if test "$ac_cv_type_int_fast32_t" = "yes"; then
29644echo "#define   _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
29645else
29646echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
29647fi
29648echo "/* whether intmax_t type was detected */" >>$ac_stdint
29649if test "$ac_cv_type_intmax_t" = "yes"; then
29650echo "#define   _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
29651else
29652echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
29653fi
29654echo "" >>$ac_stdint
29655
29656  cat >>$ac_stdint <<STDINT_EOF
29657/* .................... detections part ............................ */
29658
29659/* whether we need to define bit specific types from compiler base types */
29660#ifndef _STDINT_HEADER_INTPTR
29661#ifndef _STDINT_HEADER_UINT32
29662#ifndef _STDINT_HEADER_U_INT32
29663#define _STDINT_NEED_INT_MODEL_T
29664#else
29665#define _STDINT_HAVE_U_INT_TYPES
29666#endif
29667#endif
29668#endif
29669
29670#ifdef _STDINT_HAVE_U_INT_TYPES
29671#undef _STDINT_NEED_INT_MODEL_T
29672#endif
29673
29674#ifdef  _STDINT_CHAR_MODEL
29675#if     _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
29676#ifndef _STDINT_BYTE_MODEL
29677#define _STDINT_BYTE_MODEL 12
29678#endif
29679#endif
29680#endif
29681
29682#ifndef _STDINT_HAVE_INT_LEAST32_T
29683#define _STDINT_NEED_INT_LEAST_T
29684#endif
29685
29686#ifndef _STDINT_HAVE_INT_FAST32_T
29687#define _STDINT_NEED_INT_FAST_T
29688#endif
29689
29690#ifndef _STDINT_HEADER_INTPTR
29691#define _STDINT_NEED_INTPTR_T
29692#ifndef _STDINT_HAVE_INTMAX_T
29693#define _STDINT_NEED_INTMAX_T
29694#endif
29695#endif
29696
29697
29698/* .................... definition part ............................ */
29699
29700/* some system headers have good uint64_t */
29701#ifndef _HAVE_UINT64_T
29702#if     defined _STDINT_HAVE_UINT64_T  || defined HAVE_UINT64_T
29703#define _HAVE_UINT64_T
29704#elif   defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
29705#define _HAVE_UINT64_T
29706typedef u_int64_t uint64_t;
29707#endif
29708#endif
29709
29710#ifndef _HAVE_UINT64_T
29711/* .. here are some common heuristics using compiler runtime specifics */
29712#if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
29713#define _HAVE_UINT64_T
29714#define _HAVE_LONGLONG_UINT64_T
29715typedef long long int64_t;
29716typedef unsigned long long uint64_t;
29717
29718#elif !defined __STRICT_ANSI__
29719#if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
29720#define _HAVE_UINT64_T
29721typedef __int64 int64_t;
29722typedef unsigned __int64 uint64_t;
29723
29724#elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
29725/* note: all ELF-systems seem to have loff-support which needs 64-bit */
29726#if !defined _NO_LONGLONG
29727#define _HAVE_UINT64_T
29728#define _HAVE_LONGLONG_UINT64_T
29729typedef long long int64_t;
29730typedef unsigned long long uint64_t;
29731#endif
29732
29733#elif defined __alpha || (defined __mips && defined _ABIN32)
29734#if !defined _NO_LONGLONG
29735typedef long int64_t;
29736typedef unsigned long uint64_t;
29737#endif
29738  /* compiler/cpu type to define int64_t */
29739#endif
29740#endif
29741#endif
29742
29743#if defined _STDINT_HAVE_U_INT_TYPES
29744/* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
29745typedef u_int8_t uint8_t;
29746typedef u_int16_t uint16_t;
29747typedef u_int32_t uint32_t;
29748
29749/* glibc compatibility */
29750#ifndef __int8_t_defined
29751#define __int8_t_defined
29752#endif
29753#endif
29754
29755#ifdef _STDINT_NEED_INT_MODEL_T
29756/* we must guess all the basic types. Apart from byte-addressable system, */
29757/* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
29758/* (btw, those nibble-addressable systems are way off, or so we assume) */
29759
29760
29761#if defined _STDINT_BYTE_MODEL
29762#if _STDINT_LONG_MODEL+0 == 242
29763/* 2:4:2 =  IP16 = a normal 16-bit system                */
29764typedef unsigned char   uint8_t;
29765typedef unsigned short  uint16_t;
29766typedef unsigned long   uint32_t;
29767#ifndef __int8_t_defined
29768#define __int8_t_defined
29769typedef          char    int8_t;
29770typedef          short   int16_t;
29771typedef          long    int32_t;
29772#endif
29773#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
29774/* 2:4:4 =  LP32 = a 32-bit system derived from a 16-bit */
29775/* 4:4:4 = ILP32 = a normal 32-bit system                */
29776typedef unsigned char   uint8_t;
29777typedef unsigned short  uint16_t;
29778typedef unsigned int    uint32_t;
29779#ifndef __int8_t_defined
29780#define __int8_t_defined
29781typedef          char    int8_t;
29782typedef          short   int16_t;
29783typedef          int     int32_t;
29784#endif
29785#elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
29786/* 4:8:4 =  IP32 = a 32-bit system prepared for 64-bit    */
29787/* 4:8:8 =  LP64 = a normal 64-bit system                 */
29788typedef unsigned char   uint8_t;
29789typedef unsigned short  uint16_t;
29790typedef unsigned int    uint32_t;
29791#ifndef __int8_t_defined
29792#define __int8_t_defined
29793typedef          char    int8_t;
29794typedef          short   int16_t;
29795typedef          int     int32_t;
29796#endif
29797/* this system has a "long" of 64bit */
29798#ifndef _HAVE_UINT64_T
29799#define _HAVE_UINT64_T
29800typedef unsigned long   uint64_t;
29801typedef          long    int64_t;
29802#endif
29803#elif _STDINT_LONG_MODEL+0 == 448
29804/*      LLP64   a 64-bit system derived from a 32-bit system */
29805typedef unsigned char   uint8_t;
29806typedef unsigned short  uint16_t;
29807typedef unsigned int    uint32_t;
29808#ifndef __int8_t_defined
29809#define __int8_t_defined
29810typedef          char    int8_t;
29811typedef          short   int16_t;
29812typedef          int     int32_t;
29813#endif
29814/* assuming the system has a "long long" */
29815#ifndef _HAVE_UINT64_T
29816#define _HAVE_UINT64_T
29817#define _HAVE_LONGLONG_UINT64_T
29818typedef unsigned long long uint64_t;
29819typedef          long long  int64_t;
29820#endif
29821#else
29822#define _STDINT_NO_INT32_T
29823#endif
29824#else
29825#define _STDINT_NO_INT8_T
29826#define _STDINT_NO_INT32_T
29827#endif
29828#endif
29829
29830/*
29831 * quote from SunOS-5.8 sys/inttypes.h:
29832 * Use at your own risk.  As of February 1996, the committee is squarely
29833 * behind the fixed sized types; the "least" and "fast" types are still being
29834 * discussed.  The probability that the "fast" types may be removed before
29835 * the standard is finalized is high enough that they are not currently
29836 * implemented.
29837 */
29838
29839#if defined _STDINT_NEED_INT_LEAST_T
29840typedef  int8_t    int_least8_t;
29841typedef  int16_t   int_least16_t;
29842typedef  int32_t   int_least32_t;
29843#ifdef _HAVE_UINT64_T
29844typedef  int64_t   int_least64_t;
29845#endif
29846
29847typedef uint8_t   uint_least8_t;
29848typedef uint16_t  uint_least16_t;
29849typedef uint32_t  uint_least32_t;
29850#ifdef _HAVE_UINT64_T
29851typedef uint64_t  uint_least64_t;
29852#endif
29853  /* least types */
29854#endif
29855
29856#if defined _STDINT_NEED_INT_FAST_T
29857typedef  int8_t    int_fast8_t;
29858typedef  int       int_fast16_t;
29859typedef  int32_t   int_fast32_t;
29860#ifdef _HAVE_UINT64_T
29861typedef  int64_t   int_fast64_t;
29862#endif
29863
29864typedef uint8_t   uint_fast8_t;
29865typedef unsigned  uint_fast16_t;
29866typedef uint32_t  uint_fast32_t;
29867#ifdef _HAVE_UINT64_T
29868typedef uint64_t  uint_fast64_t;
29869#endif
29870  /* fast types */
29871#endif
29872
29873#ifdef _STDINT_NEED_INTMAX_T
29874#ifdef _HAVE_UINT64_T
29875typedef  int64_t       intmax_t;
29876typedef uint64_t      uintmax_t;
29877#else
29878typedef          long  intmax_t;
29879typedef unsigned long uintmax_t;
29880#endif
29881#endif
29882
29883#ifdef _STDINT_NEED_INTPTR_T
29884#ifndef __intptr_t_defined
29885#define __intptr_t_defined
29886/* we encourage using "long" to store pointer values, never use "int" ! */
29887#if   _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
29888typedef  unsigned int   uintptr_t;
29889typedef           int    intptr_t;
29890#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
29891typedef  unsigned long  uintptr_t;
29892typedef           long   intptr_t;
29893#elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
29894typedef        uint64_t uintptr_t;
29895typedef         int64_t  intptr_t;
29896#else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
29897typedef  unsigned long  uintptr_t;
29898typedef           long   intptr_t;
29899#endif
29900#endif
29901#endif
29902
29903/* The ISO C99 standard specifies that in C++ implementations these
29904   should only be defined if explicitly requested.  */
29905#if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
29906#ifndef UINT32_C
29907
29908/* Signed.  */
29909# define INT8_C(c)      c
29910# define INT16_C(c)     c
29911# define INT32_C(c)     c
29912# ifdef _HAVE_LONGLONG_UINT64_T
29913#  define INT64_C(c)    c ## L
29914# else
29915#  define INT64_C(c)    c ## LL
29916# endif
29917
29918/* Unsigned.  */
29919# define UINT8_C(c)     c ## U
29920# define UINT16_C(c)    c ## U
29921# define UINT32_C(c)    c ## U
29922# ifdef _HAVE_LONGLONG_UINT64_T
29923#  define UINT64_C(c)   c ## UL
29924# else
29925#  define UINT64_C(c)   c ## ULL
29926# endif
29927
29928/* Maximal type.  */
29929# ifdef _HAVE_LONGLONG_UINT64_T
29930#  define INTMAX_C(c)   c ## L
29931#  define UINTMAX_C(c)  c ## UL
29932# else
29933#  define INTMAX_C(c)   c ## LL
29934#  define UINTMAX_C(c)  c ## ULL
29935# endif
29936
29937  /* literalnumbers */
29938#endif
29939#endif
29940
29941/* These limits are merrily those of a two complement byte-oriented system */
29942
29943/* Minimum of signed integral types.  */
29944# define INT8_MIN               (-128)
29945# define INT16_MIN              (-32767-1)
29946# define INT32_MIN              (-2147483647-1)
29947# define INT64_MIN              (-__INT64_C(9223372036854775807)-1)
29948/* Maximum of signed integral types.  */
29949# define INT8_MAX               (127)
29950# define INT16_MAX              (32767)
29951# define INT32_MAX              (2147483647)
29952# define INT64_MAX              (__INT64_C(9223372036854775807))
29953
29954/* Maximum of unsigned integral types.  */
29955# define UINT8_MAX              (255)
29956# define UINT16_MAX             (65535)
29957# define UINT32_MAX             (4294967295U)
29958# define UINT64_MAX             (__UINT64_C(18446744073709551615))
29959
29960/* Minimum of signed integral types having a minimum size.  */
29961# define INT_LEAST8_MIN         INT8_MIN
29962# define INT_LEAST16_MIN        INT16_MIN
29963# define INT_LEAST32_MIN        INT32_MIN
29964# define INT_LEAST64_MIN        INT64_MIN
29965/* Maximum of signed integral types having a minimum size.  */
29966# define INT_LEAST8_MAX         INT8_MAX
29967# define INT_LEAST16_MAX        INT16_MAX
29968# define INT_LEAST32_MAX        INT32_MAX
29969# define INT_LEAST64_MAX        INT64_MAX
29970
29971/* Maximum of unsigned integral types having a minimum size.  */
29972# define UINT_LEAST8_MAX        UINT8_MAX
29973# define UINT_LEAST16_MAX       UINT16_MAX
29974# define UINT_LEAST32_MAX       UINT32_MAX
29975# define UINT_LEAST64_MAX       UINT64_MAX
29976
29977  /* shortcircuit*/
29978#endif
29979  /* once */
29980#endif
29981#endif
29982STDINT_EOF
29983fi
29984    if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
29985      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
29986$as_echo "$as_me: $ac_stdint_h is unchanged" >&6;}
29987    else
29988      ac_dir=`$as_dirname -- "$ac_stdint_h" ||
29989$as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29990	 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
29991	 X"$ac_stdint_h" : 'X\(//\)$' \| \
29992	 X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
29993$as_echo X"$ac_stdint_h" |
29994    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29995	    s//\1/
29996	    q
29997	  }
29998	  /^X\(\/\/\)[^/].*/{
29999	    s//\1/
30000	    q
30001	  }
30002	  /^X\(\/\/\)$/{
30003	    s//\1/
30004	    q
30005	  }
30006	  /^X\(\/\).*/{
30007	    s//\1/
30008	    q
30009	  }
30010	  s/.*/./; q'`
30011      as_dir="$ac_dir"; as_fn_mkdir_p
30012      rm -f $ac_stdint_h
30013      mv $ac_stdint $ac_stdint_h
30014    fi
30015 ;;
30016    "tools/sane-config":F) chmod a+x tools/sane-config ;;
30017
30018  esac
30019done # for ac_tag
30020
30021
30022as_fn_exit 0
30023_ACEOF
30024ac_clean_files=$ac_clean_files_save
30025
30026test $ac_write_fail = 0 ||
30027  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
30028
30029
30030# configure is writing to config.log, and then calls config.status.
30031# config.status does its own redirection, appending to config.log.
30032# Unfortunately, on DOS this fails, as config.log is still kept open
30033# by configure, so config.status won't be able to write to it; its
30034# output is simply discarded.  So we exec the FD to /dev/null,
30035# effectively closing config.log, so it can be properly (re)opened and
30036# appended to by config.status.  When coming back to configure, we
30037# need to make the FD available again.
30038if test "$no_create" != yes; then
30039  ac_cs_success=:
30040  ac_config_status_args=
30041  test "$silent" = yes &&
30042    ac_config_status_args="$ac_config_status_args --quiet"
30043  exec 5>/dev/null
30044  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30045  exec 5>>config.log
30046  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30047  # would make configure fail if this is the last instruction.
30048  $ac_cs_success || as_fn_exit 1
30049fi
30050if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30051  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30052$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30053fi
30054
30055
30056
30057echo "-> Variables used for compilation/linking:"
30058echo AM_CPPFLAGS=\"${AM_CPPFLAGS}\"
30059echo AM_CFLAGS=\"${AM_CFLAGS}\"
30060echo AM_CXXFLAGS=\"${AM_CXXFLAGS}\"
30061echo AM_LDFLAGS=\"${AM_LDFLAGS}\"
30062echo LIBS=\"${LIBS}\"
30063echo "-> Installation directories:"
30064echo "Configuration: `eval eval echo ${sysconfdir}`"
30065echo "Libraries:     `eval eval echo ${libdir}`"
30066echo "Binaries:      `eval eval echo ${bindir}` and `eval eval echo ${sbindir}`"
30067echo "Manpages:      `eval eval echo ${mandir}`"
30068echo "Documentation: `eval eval echo ${docdir}`"
30069if eval "test x$INSTALL_LOCKPATH = xinstall-lockpath" ; then
30070  echo "Lockfiles:     `eval eval echo ${locksanedir}`"
30071else
30072  echo "Lockfiles:     Feature is disabled!"
30073fi
30074echo "-> Network parameters:"
30075if test "${SANED}" = "saned" ; then
30076  echo "Build saned:   yes"
30077else
30078  echo "Build saned:   no"
30079fi
30080echo "IPv6 support:  `eval eval echo ${ipv6}`"
30081echo "Avahi support: `eval eval echo ${with_avahi}`"
30082echo "cURL support:  `eval eval echo ${with_libcurl}`"
30083echo "POPPLER_GLIB support:  `eval eval echo ${with_poppler_glib}`"
30084echo "SNMP support:  `eval eval echo ${with_snmp}`"
30085echo "-> The following backends will be built:"
30086for backend in ${BACKENDS} ; do
30087  echo $ECHO_N "${backend} "
30088done
30089echo
30090echo
30091echo "-> The following preload backends will be built:"
30092for backend in ${PRELOADABLE_BACKENDS} ; do
30093  echo $ECHO_N "${backend} "
30094done
30095echo
30096
30097if test "$SANE_CONFIG_PATH" != "no" ; then
30098  SANE_INSTALLED_VERSION=`$SANE_CONFIG_PATH --version`
30099  SANE_INSTALLED_PREFIX=`$SANE_CONFIG_PATH --prefix`
30100  if test "$SANE_INSTALLED_PREFIX" != "$prefix" ; then
30101    echo "*** WARNING: SANE is already installed (version $SANE_INSTALLED_VERSION). The old"
30102    echo "*** installation is at $SANE_INSTALLED_PREFIX while SANE will now be installed"
30103    echo "*** at $prefix. It is recommended to uninstall the old SANE version"
30104    echo "*** before installing the new one to avoid problems."
30105  fi
30106else
30107  if test "$LIBSANE_EXISTS" = "yes" ; then
30108    echo "*** Warning: An old version of SANE was detected but the sane-config program"
30109    echo "*** couldn't be found. If you encounter any problems with SANE remove the old"
30110    echo "*** SANE files and reinstall this version."
30111  fi
30112fi
30113if eval "test x${sysconfdir} = x/usr/etc" ; then
30114  echo "*** WARNING: Configuration files are stored in /usr/etc. If this is not"
30115  echo "*** intended, use --sysconfdir to set another path (e.g. "/etc")."
30116fi
30117if test "$SELECTED_BACKENDS" != "" ; then
30118  echo "*** Warning: Local backends have been disabled.  This means that scanners"
30119  echo "*** connected to your local computer won't be supported.  Only a network"
30120  echo "*** connection to a remote host is possible."
30121fi
30122if test "$with_usb" != "no" && test "$have_usb" != "yes" ; then
30123  echo "*** Warning: sane-backends will be built without USB support.  There may"
30124  echo "*** be valid reasons to do so, e.g. if you don't use USB scanners or on"
30125  echo "*** platforms without USB support but generally this means that you"
30126  echo "*** can't use USB devices with SANE. The most probable cause is that"
30127  if test "${ac_cv_header_usb_h}" != "yes"; then
30128    echo "*** the libusb header file usb.h is not installed. If you use Linux"
30129    echo "*** you may need a package called 'libusb-dev', 'libusb-devel' or similar."
30130  else
30131    echo "*** libusb is not installed at all or is too old. See README."
30132  fi
30133fi
30134
30135echo "****************************************************************"
30136echo "* Please be sure to read file PROBLEMS in this directory       *"
30137echo "* BEFORE running any of the SANE applications.  Some devices   *"
30138echo "* may be damaged by improper operation, so please do heed this *"
30139echo "* advice.                                                      *"
30140echo "****************************************************************"
30141