1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libgphoto2 photo camera library 2.5.26.
4#
5# Report bugs to <gphoto-devel@lists.sourceforge.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: gphoto-devel@lists.sourceforge.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='libgphoto2 photo camera library'
592PACKAGE_TARNAME='libgphoto2'
593PACKAGE_VERSION='2.5.26'
594PACKAGE_STRING='libgphoto2 photo camera library 2.5.26'
595PACKAGE_BUGREPORT='gphoto-devel@lists.sourceforge.net'
596PACKAGE_URL=''
597
598ac_unique_file="libgphoto2/gphoto2-version.c"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635enable_option_checking=no
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639LIBOBJS
640subdirs
641HAVE_LIBEXIF_FALSE
642HAVE_LIBEXIF_TRUE
643REQUIREMENTS_FOR_LIBEXIF
644LIBEXIF_CONFIG_PROG
645LIBEXIF_LIBS
646LIBEXIF_CFLAGS
647pkgconfigdir
648hotplugusermapdir
649hotplugdocdir
650HAVE_LINUX_FALSE
651HAVE_LINUX_TRUE
652ENABLE_RPM_FALSE
653ENABLE_RPM_TRUE
654RPMBUILD
655camlibdocdir
656apidocdir
657ENABLE_GTK_DOC_FALSE
658ENABLE_GTK_DOC_TRUE
659GTKDOC
660ENABLE_INTERNAL_DOCS_FALSE
661ENABLE_INTERNAL_DOCS_TRUE
662HTML_APIDOC_INTERNALS_DIR
663DOXYGEN_OUTPUT_DIR
664HTML_APIDOC_DIR
665HAVE_DOT
666HAVE_DOT_FALSE
667HAVE_DOT_TRUE
668HAVE_DOXYGEN_FALSE
669HAVE_DOXYGEN_TRUE
670DOXYGEN
671DOT
672GP_CAMLIB_SET_EVERYTHING
673GP_CAMLIB_SET
674COMM
675SLEEP
676EXPR
677UNIQ
678TR
679SORT
680CMP
681camlibdir
682HAVE_UDEV_FALSE
683HAVE_UDEV_TRUE
684udevscriptdir
685utilsdir
686effective_target
687HAVE_LIBGD_FALSE
688HAVE_LIBGD_TRUE
689REQUIREMENTS_FOR_LIBGD
690LIBGD_CONFIG_PROG
691LIBGD_LIBS
692LIBGD_CFLAGS
693HAVE_LIBCURL_FALSE
694HAVE_LIBCURL_TRUE
695REQUIREMENTS_FOR_LIBCURL
696LIBCURL_CONFIG_PROG
697LIBCURL_LIBS
698LIBCURL_CFLAGS
699HAVE_LIBXML2_FALSE
700HAVE_LIBXML2_TRUE
701REQUIREMENTS_FOR_LIBXML2
702LIBXML2_CONFIG_PROG
703LIBXML2_LIBS
704LIBXML2_CFLAGS
705PKG_CONFIG_LIBDIR
706PKG_CONFIG_PATH
707PKG_CONFIG
708LIBJPEG
709VERSIONMAPLDFLAGS
710POSUB
711LTLIBINTL
712LIBINTL
713INTLLIBS
714LTLIBICONV
715LIBICONV
716MSGMERGE
717XGETTEXT
718GMSGFMT
719MSGFMT
720USE_NLS
721MKINSTALLDIRS
722GETTEXT_PACKAGE
723MAIL_GPHOTO_TRANSLATION
724MAIL_GPHOTO_USER
725MAIL_GPHOTO_DEVEL
726URL_USB_MASSSTORAGE
727URL_JPHOTO_HOME
728URL_DIGICAM_LIST
729URL_GPHOTO_PROJECT
730URL_GPHOTO_HOME
731LIBLTDL
732LTDLINCL
733CXXCPP
734LT_SYS_LIBRARY_PATH
735OTOOL64
736OTOOL
737LIPO
738NMEDIT
739DSYMUTIL
740MANIFEST_TOOL
741RANLIB
742LN_S
743NM
744ac_ct_DUMPBIN
745DUMPBIN
746LD
747FGREP
748SED
749LIBTOOL
750OBJDUMP
751DLLTOOL
752AS
753host_os
754host_vendor
755host_cpu
756host
757build_os
758build_vendor
759build_cpu
760build
761ENABLED_GP2DDB_FALSE
762ENABLED_GP2DDB_TRUE
763BISON
764FLEX
765EGREP
766GREP
767AM_LDFLAGS
768AM_CXXFLAGS
769AM_CFLAGS
770AM_CPPFLAGS
771HAVE_GCC_FALSE
772HAVE_GCC_TRUE
773NO_UNUSED_CFLAGS
774GP_PEDANTIC_CXXFLAGS_CXX17
775GP_HAVE_PEDANTIC_FLAGS_CXX17_FALSE
776GP_HAVE_PEDANTIC_FLAGS_CXX17_TRUE
777GP_PEDANTIC_CXXFLAGS_CXX14
778GP_HAVE_PEDANTIC_FLAGS_CXX14_FALSE
779GP_HAVE_PEDANTIC_FLAGS_CXX14_TRUE
780GP_PEDANTIC_CXXFLAGS_CXX11
781GP_HAVE_PEDANTIC_FLAGS_CXX11_FALSE
782GP_HAVE_PEDANTIC_FLAGS_CXX11_TRUE
783GP_PEDANTIC_CXXFLAGS_CXX98
784GP_HAVE_PEDANTIC_FLAGS_CXX98_FALSE
785GP_HAVE_PEDANTIC_FLAGS_CXX98_TRUE
786GP_PEDANTIC_CFLAGS_C11
787GP_HAVE_PEDANTIC_FLAGS_C11_FALSE
788GP_HAVE_PEDANTIC_FLAGS_C11_TRUE
789GP_PEDANTIC_CFLAGS_C99
790GP_HAVE_PEDANTIC_FLAGS_C99_FALSE
791GP_HAVE_PEDANTIC_FLAGS_C99_TRUE
792GP_PEDANTIC_CFLAGS_C90
793GP_HAVE_PEDANTIC_FLAGS_C90_FALSE
794GP_HAVE_PEDANTIC_FLAGS_C90_TRUE
795HAVE_CXX_FALSE
796HAVE_CXX_TRUE
797ac_ct_AR
798AR
799am__fastdepCXX_FALSE
800am__fastdepCXX_TRUE
801CXXDEPMODE
802ac_ct_CXX
803CXXFLAGS
804CXX
805CPP
806am__fastdepCC_FALSE
807am__fastdepCC_TRUE
808CCDEPMODE
809am__nodep
810AMDEPBACKSLASH
811AMDEP_FALSE
812AMDEP_TRUE
813am__include
814DEPDIR
815OBJEXT
816EXEEXT
817ac_ct_CC
818CPPFLAGS
819LDFLAGS
820CFLAGS
821CC
822LIBGPHOTO2_VERSION_INFO
823LIBGPHOTO2_CURRENT_MIN
824LIBGPHOTO2_CURRENT
825LIBGPHOTO2_REVISION
826LIBGPHOTO2_AGE
827AM_BACKSLASH
828AM_DEFAULT_VERBOSITY
829AM_DEFAULT_V
830AM_V
831am__untar
832am__tar
833AMTAR
834am__leading_dot
835SET_MAKE
836AWK
837mkdir_p
838MKDIR_P
839INSTALL_STRIP_PROGRAM
840STRIP
841install_sh
842MAKEINFO
843AUTOHEADER
844AUTOMAKE
845AUTOCONF
846ACLOCAL
847VERSION
848PACKAGE
849CYGPATH_W
850am__isrc
851INSTALL_DATA
852INSTALL_SCRIPT
853INSTALL_PROGRAM
854target_alias
855host_alias
856build_alias
857LIBS
858ECHO_T
859ECHO_N
860ECHO_C
861DEFS
862mandir
863localedir
864libdir
865psdir
866pdfdir
867dvidir
868htmldir
869infodir
870docdir
871oldincludedir
872includedir
873localstatedir
874sharedstatedir
875sysconfdir
876datadir
877datarootdir
878libexecdir
879sbindir
880bindir
881program_transform_name
882prefix
883exec_prefix
884PACKAGE_URL
885PACKAGE_BUGREPORT
886PACKAGE_STRING
887PACKAGE_VERSION
888PACKAGE_TARNAME
889PACKAGE_NAME
890PATH_SEPARATOR
891SHELL
892am__quote'
893ac_subst_files=''
894ac_user_opts='
895enable_option_checking
896enable_silent_rules
897enable_dependency_tracking
898enable_gp2ddb
899enable_static
900enable_shared
901with_pic
902enable_fast_install
903with_aix_soname
904with_gnu_ld
905with_sysroot
906enable_libtool_lock
907enable_nls
908enable_rpath
909with_libiconv_prefix
910with_libintl_prefix
911enable_largefile
912with_jpeg
913with_libxml_2_0
914with_libcurl
915with_gdlib
916with_camlibdir
917with_camlibs
918with_doc_dir
919enable_internal_docs
920enable_docs
921with_html_dir
922with_rpmbuild
923with_hotplug_doc_dir
924with_hotplug_usermap_dir
925with_libexif
926'
927      ac_precious_vars='build_alias
928host_alias
929target_alias
930CC
931CFLAGS
932LDFLAGS
933LIBS
934CPPFLAGS
935CPP
936CXX
937CXXFLAGS
938CCC
939LT_SYS_LIBRARY_PATH
940CXXCPP
941LTDLINCL
942LIBLTDL
943PKG_CONFIG
944PKG_CONFIG_PATH
945PKG_CONFIG_LIBDIR
946LIBXML2_CFLAGS
947LIBXML2_LIBS
948LIBCURL_CFLAGS
949LIBCURL_LIBS
950LIBGD_CFLAGS
951LIBGD_LIBS
952utilsdir
953udevscriptdir
954CMP
955SORT
956TR
957UNIQ
958EXPR
959SLEEP
960COMM
961LIBEXIF_CFLAGS
962LIBEXIF_LIBS'
963ac_subdirs_all='libgphoto2_port'
964
965# Initialize some variables set by options.
966ac_init_help=
967ac_init_version=false
968ac_unrecognized_opts=
969ac_unrecognized_sep=
970# The variables have the same names as the options, with
971# dashes changed to underlines.
972cache_file=/dev/null
973exec_prefix=NONE
974no_create=
975no_recursion=
976prefix=NONE
977program_prefix=NONE
978program_suffix=NONE
979program_transform_name=s,x,x,
980silent=
981site=
982srcdir=
983verbose=
984x_includes=NONE
985x_libraries=NONE
986
987# Installation directory options.
988# These are left unexpanded so users can "make install exec_prefix=/foo"
989# and all the variables that are supposed to be based on exec_prefix
990# by default will actually change.
991# Use braces instead of parens because sh, perl, etc. also accept them.
992# (The list follows the same order as the GNU Coding Standards.)
993bindir='${exec_prefix}/bin'
994sbindir='${exec_prefix}/sbin'
995libexecdir='${exec_prefix}/libexec'
996datarootdir='${prefix}/share'
997datadir='${datarootdir}'
998sysconfdir='${prefix}/etc'
999sharedstatedir='${prefix}/com'
1000localstatedir='${prefix}/var'
1001includedir='${prefix}/include'
1002oldincludedir='/usr/include'
1003docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1004infodir='${datarootdir}/info'
1005htmldir='${docdir}'
1006dvidir='${docdir}'
1007pdfdir='${docdir}'
1008psdir='${docdir}'
1009libdir='${exec_prefix}/lib'
1010localedir='${datarootdir}/locale'
1011mandir='${datarootdir}/man'
1012
1013ac_prev=
1014ac_dashdash=
1015for ac_option
1016do
1017  # If the previous option needs an argument, assign it.
1018  if test -n "$ac_prev"; then
1019    eval $ac_prev=\$ac_option
1020    ac_prev=
1021    continue
1022  fi
1023
1024  case $ac_option in
1025  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1026  *=)   ac_optarg= ;;
1027  *)    ac_optarg=yes ;;
1028  esac
1029
1030  # Accept the important Cygnus configure options, so we can diagnose typos.
1031
1032  case $ac_dashdash$ac_option in
1033  --)
1034    ac_dashdash=yes ;;
1035
1036  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1037    ac_prev=bindir ;;
1038  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1039    bindir=$ac_optarg ;;
1040
1041  -build | --build | --buil | --bui | --bu)
1042    ac_prev=build_alias ;;
1043  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1044    build_alias=$ac_optarg ;;
1045
1046  -cache-file | --cache-file | --cache-fil | --cache-fi \
1047  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1048    ac_prev=cache_file ;;
1049  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1050  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1051    cache_file=$ac_optarg ;;
1052
1053  --config-cache | -C)
1054    cache_file=config.cache ;;
1055
1056  -datadir | --datadir | --datadi | --datad)
1057    ac_prev=datadir ;;
1058  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1059    datadir=$ac_optarg ;;
1060
1061  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1062  | --dataroo | --dataro | --datar)
1063    ac_prev=datarootdir ;;
1064  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1065  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1066    datarootdir=$ac_optarg ;;
1067
1068  -disable-* | --disable-*)
1069    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1070    # Reject names that are not valid shell variable names.
1071    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1072      as_fn_error $? "invalid feature name: $ac_useropt"
1073    ac_useropt_orig=$ac_useropt
1074    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075    case $ac_user_opts in
1076      *"
1077"enable_$ac_useropt"
1078"*) ;;
1079      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1080	 ac_unrecognized_sep=', ';;
1081    esac
1082    eval enable_$ac_useropt=no ;;
1083
1084  -docdir | --docdir | --docdi | --doc | --do)
1085    ac_prev=docdir ;;
1086  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1087    docdir=$ac_optarg ;;
1088
1089  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1090    ac_prev=dvidir ;;
1091  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1092    dvidir=$ac_optarg ;;
1093
1094  -enable-* | --enable-*)
1095    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1096    # Reject names that are not valid shell variable names.
1097    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098      as_fn_error $? "invalid feature name: $ac_useropt"
1099    ac_useropt_orig=$ac_useropt
1100    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101    case $ac_user_opts in
1102      *"
1103"enable_$ac_useropt"
1104"*) ;;
1105      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1106	 ac_unrecognized_sep=', ';;
1107    esac
1108    eval enable_$ac_useropt=\$ac_optarg ;;
1109
1110  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1111  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1112  | --exec | --exe | --ex)
1113    ac_prev=exec_prefix ;;
1114  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1115  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1116  | --exec=* | --exe=* | --ex=*)
1117    exec_prefix=$ac_optarg ;;
1118
1119  -gas | --gas | --ga | --g)
1120    # Obsolete; use --with-gas.
1121    with_gas=yes ;;
1122
1123  -help | --help | --hel | --he | -h)
1124    ac_init_help=long ;;
1125  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1126    ac_init_help=recursive ;;
1127  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1128    ac_init_help=short ;;
1129
1130  -host | --host | --hos | --ho)
1131    ac_prev=host_alias ;;
1132  -host=* | --host=* | --hos=* | --ho=*)
1133    host_alias=$ac_optarg ;;
1134
1135  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1136    ac_prev=htmldir ;;
1137  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1138  | --ht=*)
1139    htmldir=$ac_optarg ;;
1140
1141  -includedir | --includedir | --includedi | --included | --include \
1142  | --includ | --inclu | --incl | --inc)
1143    ac_prev=includedir ;;
1144  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1145  | --includ=* | --inclu=* | --incl=* | --inc=*)
1146    includedir=$ac_optarg ;;
1147
1148  -infodir | --infodir | --infodi | --infod | --info | --inf)
1149    ac_prev=infodir ;;
1150  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1151    infodir=$ac_optarg ;;
1152
1153  -libdir | --libdir | --libdi | --libd)
1154    ac_prev=libdir ;;
1155  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1156    libdir=$ac_optarg ;;
1157
1158  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1159  | --libexe | --libex | --libe)
1160    ac_prev=libexecdir ;;
1161  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1162  | --libexe=* | --libex=* | --libe=*)
1163    libexecdir=$ac_optarg ;;
1164
1165  -localedir | --localedir | --localedi | --localed | --locale)
1166    ac_prev=localedir ;;
1167  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1168    localedir=$ac_optarg ;;
1169
1170  -localstatedir | --localstatedir | --localstatedi | --localstated \
1171  | --localstate | --localstat | --localsta | --localst | --locals)
1172    ac_prev=localstatedir ;;
1173  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1174  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1175    localstatedir=$ac_optarg ;;
1176
1177  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1178    ac_prev=mandir ;;
1179  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1180    mandir=$ac_optarg ;;
1181
1182  -nfp | --nfp | --nf)
1183    # Obsolete; use --without-fp.
1184    with_fp=no ;;
1185
1186  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1187  | --no-cr | --no-c | -n)
1188    no_create=yes ;;
1189
1190  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1191  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1192    no_recursion=yes ;;
1193
1194  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1195  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1196  | --oldin | --oldi | --old | --ol | --o)
1197    ac_prev=oldincludedir ;;
1198  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1199  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1200  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1201    oldincludedir=$ac_optarg ;;
1202
1203  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1204    ac_prev=prefix ;;
1205  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1206    prefix=$ac_optarg ;;
1207
1208  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1209  | --program-pre | --program-pr | --program-p)
1210    ac_prev=program_prefix ;;
1211  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1212  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1213    program_prefix=$ac_optarg ;;
1214
1215  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1216  | --program-suf | --program-su | --program-s)
1217    ac_prev=program_suffix ;;
1218  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1219  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1220    program_suffix=$ac_optarg ;;
1221
1222  -program-transform-name | --program-transform-name \
1223  | --program-transform-nam | --program-transform-na \
1224  | --program-transform-n | --program-transform- \
1225  | --program-transform | --program-transfor \
1226  | --program-transfo | --program-transf \
1227  | --program-trans | --program-tran \
1228  | --progr-tra | --program-tr | --program-t)
1229    ac_prev=program_transform_name ;;
1230  -program-transform-name=* | --program-transform-name=* \
1231  | --program-transform-nam=* | --program-transform-na=* \
1232  | --program-transform-n=* | --program-transform-=* \
1233  | --program-transform=* | --program-transfor=* \
1234  | --program-transfo=* | --program-transf=* \
1235  | --program-trans=* | --program-tran=* \
1236  | --progr-tra=* | --program-tr=* | --program-t=*)
1237    program_transform_name=$ac_optarg ;;
1238
1239  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1240    ac_prev=pdfdir ;;
1241  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1242    pdfdir=$ac_optarg ;;
1243
1244  -psdir | --psdir | --psdi | --psd | --ps)
1245    ac_prev=psdir ;;
1246  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1247    psdir=$ac_optarg ;;
1248
1249  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250  | -silent | --silent | --silen | --sile | --sil)
1251    silent=yes ;;
1252
1253  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1254    ac_prev=sbindir ;;
1255  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1256  | --sbi=* | --sb=*)
1257    sbindir=$ac_optarg ;;
1258
1259  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1260  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1261  | --sharedst | --shareds | --shared | --share | --shar \
1262  | --sha | --sh)
1263    ac_prev=sharedstatedir ;;
1264  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1265  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1266  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1267  | --sha=* | --sh=*)
1268    sharedstatedir=$ac_optarg ;;
1269
1270  -site | --site | --sit)
1271    ac_prev=site ;;
1272  -site=* | --site=* | --sit=*)
1273    site=$ac_optarg ;;
1274
1275  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1276    ac_prev=srcdir ;;
1277  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1278    srcdir=$ac_optarg ;;
1279
1280  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1281  | --syscon | --sysco | --sysc | --sys | --sy)
1282    ac_prev=sysconfdir ;;
1283  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1284  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1285    sysconfdir=$ac_optarg ;;
1286
1287  -target | --target | --targe | --targ | --tar | --ta | --t)
1288    ac_prev=target_alias ;;
1289  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1290    target_alias=$ac_optarg ;;
1291
1292  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1293    verbose=yes ;;
1294
1295  -version | --version | --versio | --versi | --vers | -V)
1296    ac_init_version=: ;;
1297
1298  -with-* | --with-*)
1299    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1300    # Reject names that are not valid shell variable names.
1301    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1302      as_fn_error $? "invalid package name: $ac_useropt"
1303    ac_useropt_orig=$ac_useropt
1304    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1305    case $ac_user_opts in
1306      *"
1307"with_$ac_useropt"
1308"*) ;;
1309      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1310	 ac_unrecognized_sep=', ';;
1311    esac
1312    eval with_$ac_useropt=\$ac_optarg ;;
1313
1314  -without-* | --without-*)
1315    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1316    # Reject names that are not valid shell variable names.
1317    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1318      as_fn_error $? "invalid package name: $ac_useropt"
1319    ac_useropt_orig=$ac_useropt
1320    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1321    case $ac_user_opts in
1322      *"
1323"with_$ac_useropt"
1324"*) ;;
1325      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1326	 ac_unrecognized_sep=', ';;
1327    esac
1328    eval with_$ac_useropt=no ;;
1329
1330  --x)
1331    # Obsolete; use --with-x.
1332    with_x=yes ;;
1333
1334  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1335  | --x-incl | --x-inc | --x-in | --x-i)
1336    ac_prev=x_includes ;;
1337  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1338  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1339    x_includes=$ac_optarg ;;
1340
1341  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1342  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1343    ac_prev=x_libraries ;;
1344  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1345  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1346    x_libraries=$ac_optarg ;;
1347
1348  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1349Try \`$0 --help' for more information"
1350    ;;
1351
1352  *=*)
1353    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1354    # Reject names that are not valid shell variable names.
1355    case $ac_envvar in #(
1356      '' | [0-9]* | *[!_$as_cr_alnum]* )
1357      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1358    esac
1359    eval $ac_envvar=\$ac_optarg
1360    export $ac_envvar ;;
1361
1362  *)
1363    # FIXME: should be removed in autoconf 3.0.
1364    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1365    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1366      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1367    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1368    ;;
1369
1370  esac
1371done
1372
1373if test -n "$ac_prev"; then
1374  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1375  as_fn_error $? "missing argument to $ac_option"
1376fi
1377
1378if test -n "$ac_unrecognized_opts"; then
1379  case $enable_option_checking in
1380    no) ;;
1381    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1382    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1383  esac
1384fi
1385
1386# Check all directory arguments for consistency.
1387for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1388		datadir sysconfdir sharedstatedir localstatedir includedir \
1389		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1390		libdir localedir mandir
1391do
1392  eval ac_val=\$$ac_var
1393  # Remove trailing slashes.
1394  case $ac_val in
1395    */ )
1396      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1397      eval $ac_var=\$ac_val;;
1398  esac
1399  # Be sure to have absolute directory names.
1400  case $ac_val in
1401    [\\/$]* | ?:[\\/]* )  continue;;
1402    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1403  esac
1404  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1405done
1406
1407# There might be people who depend on the old broken behavior: `$host'
1408# used to hold the argument of --host etc.
1409# FIXME: To remove some day.
1410build=$build_alias
1411host=$host_alias
1412target=$target_alias
1413
1414# FIXME: To remove some day.
1415if test "x$host_alias" != x; then
1416  if test "x$build_alias" = x; then
1417    cross_compiling=maybe
1418  elif test "x$build_alias" != "x$host_alias"; then
1419    cross_compiling=yes
1420  fi
1421fi
1422
1423ac_tool_prefix=
1424test -n "$host_alias" && ac_tool_prefix=$host_alias-
1425
1426test "$silent" = yes && exec 6>/dev/null
1427
1428
1429ac_pwd=`pwd` && test -n "$ac_pwd" &&
1430ac_ls_di=`ls -di .` &&
1431ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1432  as_fn_error $? "working directory cannot be determined"
1433test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1434  as_fn_error $? "pwd does not report name of working directory"
1435
1436
1437# Find the source files, if location was not specified.
1438if test -z "$srcdir"; then
1439  ac_srcdir_defaulted=yes
1440  # Try the directory containing this script, then the parent directory.
1441  ac_confdir=`$as_dirname -- "$as_myself" ||
1442$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1443	 X"$as_myself" : 'X\(//\)[^/]' \| \
1444	 X"$as_myself" : 'X\(//\)$' \| \
1445	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1446$as_echo X"$as_myself" |
1447    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1448	    s//\1/
1449	    q
1450	  }
1451	  /^X\(\/\/\)[^/].*/{
1452	    s//\1/
1453	    q
1454	  }
1455	  /^X\(\/\/\)$/{
1456	    s//\1/
1457	    q
1458	  }
1459	  /^X\(\/\).*/{
1460	    s//\1/
1461	    q
1462	  }
1463	  s/.*/./; q'`
1464  srcdir=$ac_confdir
1465  if test ! -r "$srcdir/$ac_unique_file"; then
1466    srcdir=..
1467  fi
1468else
1469  ac_srcdir_defaulted=no
1470fi
1471if test ! -r "$srcdir/$ac_unique_file"; then
1472  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1473  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1474fi
1475ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1476ac_abs_confdir=`(
1477	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1478	pwd)`
1479# When building in place, set srcdir=.
1480if test "$ac_abs_confdir" = "$ac_pwd"; then
1481  srcdir=.
1482fi
1483# Remove unnecessary trailing slashes from srcdir.
1484# Double slashes in file names in object file debugging info
1485# mess up M-x gdb in Emacs.
1486case $srcdir in
1487*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1488esac
1489for ac_var in $ac_precious_vars; do
1490  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1491  eval ac_env_${ac_var}_value=\$${ac_var}
1492  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1493  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1494done
1495
1496#
1497# Report the --help message.
1498#
1499if test "$ac_init_help" = "long"; then
1500  # Omit some internal or obsolete options to make the list less imposing.
1501  # This message is too long to be a string in the A/UX 3.1 sh.
1502  cat <<_ACEOF
1503\`configure' configures libgphoto2 photo camera library 2.5.26 to adapt to many kinds of systems.
1504
1505Usage: $0 [OPTION]... [VAR=VALUE]...
1506
1507To assign environment variables (e.g., CC, CFLAGS...), specify them as
1508VAR=VALUE.  See below for descriptions of some of the useful variables.
1509
1510Defaults for the options are specified in brackets.
1511
1512Configuration:
1513  -h, --help              display this help and exit
1514      --help=short        display options specific to this package
1515      --help=recursive    display the short help of all the included packages
1516  -V, --version           display version information and exit
1517  -q, --quiet, --silent   do not print \`checking ...' messages
1518      --cache-file=FILE   cache test results in FILE [disabled]
1519  -C, --config-cache      alias for \`--cache-file=config.cache'
1520  -n, --no-create         do not create output files
1521      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1522
1523Installation directories:
1524  --prefix=PREFIX         install architecture-independent files in PREFIX
1525                          [$ac_default_prefix]
1526  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1527                          [PREFIX]
1528
1529By default, \`make install' will install all the files in
1530\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1531an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1532for instance \`--prefix=\$HOME'.
1533
1534For better control, use the options below.
1535
1536Fine tuning of the installation directories:
1537  --bindir=DIR            user executables [EPREFIX/bin]
1538  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1539  --libexecdir=DIR        program executables [EPREFIX/libexec]
1540  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1541  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1542  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1543  --libdir=DIR            object code libraries [EPREFIX/lib]
1544  --includedir=DIR        C header files [PREFIX/include]
1545  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1546  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1547  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1548  --infodir=DIR           info documentation [DATAROOTDIR/info]
1549  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1550  --mandir=DIR            man documentation [DATAROOTDIR/man]
1551  --docdir=DIR            documentation root [DATAROOTDIR/doc/libgphoto2]
1552  --htmldir=DIR           html documentation [DOCDIR]
1553  --dvidir=DIR            dvi documentation [DOCDIR]
1554  --pdfdir=DIR            pdf documentation [DOCDIR]
1555  --psdir=DIR             ps documentation [DOCDIR]
1556_ACEOF
1557
1558  cat <<\_ACEOF
1559
1560Program names:
1561  --program-prefix=PREFIX            prepend PREFIX to installed program names
1562  --program-suffix=SUFFIX            append SUFFIX to installed program names
1563  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1564
1565System types:
1566  --build=BUILD     configure for building on BUILD [guessed]
1567  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1568_ACEOF
1569fi
1570
1571if test -n "$ac_init_help"; then
1572  case $ac_init_help in
1573     short | recursive ) echo "Configuration of libgphoto2 photo camera library 2.5.26:";;
1574   esac
1575  cat <<\_ACEOF
1576
1577Optional Features:
1578  --disable-option-checking  ignore unrecognized --enable/--with options
1579  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1580  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1581  --enable-silent-rules   less verbose build output (undo: "make V=1")
1582  --disable-silent-rules  verbose build output (undo: "make V=0")
1583  --enable-dependency-tracking
1584                          do not reject slow dependency extractors
1585  --disable-dependency-tracking
1586                          speeds up one-time build
1587  --enable-gp2ddb         enable EXPERIMENTAL PRE-ALPHA gphoto2 device
1588                          database code
1589  --enable-static[=PKGS]  build static libraries [default=no]
1590  --enable-shared[=PKGS]  build shared libraries [default=yes]
1591  --enable-fast-install[=PKGS]
1592                          optimize for fast installation [default=yes]
1593  --disable-libtool-lock  avoid locking (might break parallel builds)
1594  --disable-nls           do not use Native Language Support
1595  --disable-rpath         do not hardcode runtime library paths
1596  --disable-largefile     omit support for large files
1597  --enable-internal-docs  Build internal code docs if doxygen available
1598  --enable-docs           Use gtk-doc to build documentation [default=no]
1599
1600Optional Packages:
1601  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1602  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1603  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1604                          both]
1605  --with-aix-soname=aix|svr4|both
1606                          shared library versioning (aka "SONAME") variant to
1607                          provide on AIX, [default=aix].
1608  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1609  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1610                          compiler's sysroot if not specified).
1611  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1612  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1613  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1614  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1615  --without-libintl-prefix     don't search for libintl in includedir and libdir
1616  --without-jpeg          Build without jpeg library (default: no)
1617  --with-libxml-2.0=PREFIX
1618                          where to find libxml-2.0, "no" or "auto"
1619  --with-libcurl=PREFIX   where to find libcurl, "no" or "auto"
1620  --with-gdlib=PREFIX     where to find gdlib, "no" or "auto"
1621  --with-camlibdir=<path> install camlibs in directory <path>
1622  --with-camlibs=<list>   Compile camera drivers (camlibs) in <list>. Camlibs
1623                          may be separated with commas. CAUTION: DRIVER NAMES
1624                          AND CAMERA NAMES MAY DIFFER. 'standard' is the
1625                          default is a standard set of camlibs: ax203 canon
1626                          digigr8 directory docupen jl2005a jl2005c
1627                          kodak_dc240 lumix mars dimagev pentax ptp2 ricoh_g3
1628                          sierra sonix sq905 st2205 topfield tp6801.
1629                          'outdated' is a set of camlibs for very old cameras:
1630                          adc65 agfa_cl20 aox barbie casio_qv clicksmart310
1631                          digita dimera3500 enigma13 fuji gsmart300 hp215
1632                          iclick jamcam jd11 kodak_dc120 kodak_dc210
1633                          kodak_dc3200 kodak_ez200 konica konica_qm150 largan
1634                          lg_gsm mustek panasonic_coolshot panasonic_l859
1635                          panasonic_dc1000 panasonic_dc1580 pccam300 pccam600
1636                          polaroid_pdc320 polaroid_pdc640 polaroid_pdc700
1637                          ricoh samsung sipix_blink2 sipix_web2 smal
1638                          sony_dscf1 sony_dscf55 soundvision spca50x stv0674
1639                          stv0680 sx330z toshiba_pdrm11. You can add or remove
1640                          camlibs or camlib sets by appending them to the list
1641                          with a + or - sign in front.
1642  --with-doc-dir=PATH     Where to install docs [default=autodetect]
1643  --with-html-dir=PATH    Where to install html docs [default=autodetect]
1644  --with-rpmbuild=PATH    Program to use for building RPMs
1645  --with-hotplug-doc-dir=PATH
1646                          Where to install hotplug scripts as docs
1647                          [default=autodetect]
1648  --with-hotplug-usermap-dir=PATH
1649                          Where to install hotplug scripts as docs
1650                          [default=autodetect]
1651  --with-libexif=PREFIX   where to find libexif, "no" or "auto"
1652
1653Some influential environment variables:
1654  CC          C compiler command
1655  CFLAGS      C compiler flags
1656  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1657              nonstandard directory <lib dir>
1658  LIBS        libraries to pass to the linker, e.g. -l<library>
1659  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1660              you have headers in a nonstandard directory <include dir>
1661  CPP         C preprocessor
1662  CXX         C++ compiler command
1663  CXXFLAGS    C++ compiler flags
1664  LT_SYS_LIBRARY_PATH
1665              User-defined run-time library search path.
1666  CXXCPP      C++ preprocessor
1667  LTDLINCL    CFLAGS for compiling with libltdl
1668  LIBLTDL     LIBS to add for linking against libltdl
1669  PKG_CONFIG  path to pkg-config utility
1670  PKG_CONFIG_PATH
1671              directories to add to pkg-config's search path
1672  PKG_CONFIG_LIBDIR
1673              path overriding pkg-config's built-in search path
1674  LIBXML2_CFLAGS
1675              CFLAGS for compiling with libxml-2.0
1676  LIBXML2_LIBS
1677              LIBS to add for linking against libxml-2.0
1678  LIBCURL_CFLAGS
1679              CFLAGS for compiling with libcurl
1680  LIBCURL_LIBS
1681              LIBS to add for linking against libcurl
1682  LIBGD_CFLAGS
1683              CFLAGS for compiling with gdlib
1684  LIBGD_LIBS  LIBS to add for linking against gdlib
1685  utilsdir    Directory where utilities like print-camera-list will be
1686              installed
1687  udevscriptdir
1688              Directory where udev scripts like check-ptp-camera will be
1689              installed
1690  CMP         cmp file comparison command
1691  SORT        sort text file line sorting command
1692  TR          tr string character translation command
1693  UNIQ        uniq sorted file uniquification command
1694  EXPR        expr expression evaluation command
1695  SLEEP       sleep delay command
1696  COMM        comm line by line comparison command
1697  LIBEXIF_CFLAGS
1698              CFLAGS for compiling with libexif
1699  LIBEXIF_LIBS
1700              LIBS to add for linking against libexif
1701
1702Use these variables to override the choices made by `configure' or to help
1703it to find libraries and programs with nonstandard names/locations.
1704
1705Report bugs to <gphoto-devel@lists.sourceforge.net>.
1706_ACEOF
1707ac_status=$?
1708fi
1709
1710if test "$ac_init_help" = "recursive"; then
1711  # If there are subdirs, report their specific --help.
1712  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1713    test -d "$ac_dir" ||
1714      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1715      continue
1716    ac_builddir=.
1717
1718case "$ac_dir" in
1719.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1720*)
1721  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1722  # A ".." for each directory in $ac_dir_suffix.
1723  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1724  case $ac_top_builddir_sub in
1725  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1726  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1727  esac ;;
1728esac
1729ac_abs_top_builddir=$ac_pwd
1730ac_abs_builddir=$ac_pwd$ac_dir_suffix
1731# for backward compatibility:
1732ac_top_builddir=$ac_top_build_prefix
1733
1734case $srcdir in
1735  .)  # We are building in place.
1736    ac_srcdir=.
1737    ac_top_srcdir=$ac_top_builddir_sub
1738    ac_abs_top_srcdir=$ac_pwd ;;
1739  [\\/]* | ?:[\\/]* )  # Absolute name.
1740    ac_srcdir=$srcdir$ac_dir_suffix;
1741    ac_top_srcdir=$srcdir
1742    ac_abs_top_srcdir=$srcdir ;;
1743  *) # Relative name.
1744    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1745    ac_top_srcdir=$ac_top_build_prefix$srcdir
1746    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1747esac
1748ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1749
1750    cd "$ac_dir" || { ac_status=$?; continue; }
1751    # Check for guested configure.
1752    if test -f "$ac_srcdir/configure.gnu"; then
1753      echo &&
1754      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1755    elif test -f "$ac_srcdir/configure"; then
1756      echo &&
1757      $SHELL "$ac_srcdir/configure" --help=recursive
1758    else
1759      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1760    fi || ac_status=$?
1761    cd "$ac_pwd" || { ac_status=$?; break; }
1762  done
1763fi
1764
1765test -n "$ac_init_help" && exit $ac_status
1766if $ac_init_version; then
1767  cat <<\_ACEOF
1768libgphoto2 photo camera library configure 2.5.26
1769generated by GNU Autoconf 2.69
1770
1771Copyright (C) 2012 Free Software Foundation, Inc.
1772This configure script is free software; the Free Software Foundation
1773gives unlimited permission to copy, distribute and modify it.
1774_ACEOF
1775  exit
1776fi
1777
1778## ------------------------ ##
1779## Autoconf initialization. ##
1780## ------------------------ ##
1781
1782# ac_fn_c_try_compile LINENO
1783# --------------------------
1784# Try to compile conftest.$ac_ext, and return whether this succeeded.
1785ac_fn_c_try_compile ()
1786{
1787  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788  rm -f conftest.$ac_objext
1789  if { { ac_try="$ac_compile"
1790case "(($ac_try" in
1791  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792  *) ac_try_echo=$ac_try;;
1793esac
1794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795$as_echo "$ac_try_echo"; } >&5
1796  (eval "$ac_compile") 2>conftest.err
1797  ac_status=$?
1798  if test -s conftest.err; then
1799    grep -v '^ *+' conftest.err >conftest.er1
1800    cat conftest.er1 >&5
1801    mv -f conftest.er1 conftest.err
1802  fi
1803  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804  test $ac_status = 0; } && {
1805	 test -z "$ac_c_werror_flag" ||
1806	 test ! -s conftest.err
1807       } && test -s conftest.$ac_objext; then :
1808  ac_retval=0
1809else
1810  $as_echo "$as_me: failed program was:" >&5
1811sed 's/^/| /' conftest.$ac_ext >&5
1812
1813	ac_retval=1
1814fi
1815  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1816  as_fn_set_status $ac_retval
1817
1818} # ac_fn_c_try_compile
1819
1820# ac_fn_c_try_cpp LINENO
1821# ----------------------
1822# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1823ac_fn_c_try_cpp ()
1824{
1825  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826  if { { ac_try="$ac_cpp conftest.$ac_ext"
1827case "(($ac_try" in
1828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829  *) ac_try_echo=$ac_try;;
1830esac
1831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832$as_echo "$ac_try_echo"; } >&5
1833  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1834  ac_status=$?
1835  if test -s conftest.err; then
1836    grep -v '^ *+' conftest.err >conftest.er1
1837    cat conftest.er1 >&5
1838    mv -f conftest.er1 conftest.err
1839  fi
1840  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841  test $ac_status = 0; } > conftest.i && {
1842	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1843	 test ! -s conftest.err
1844       }; then :
1845  ac_retval=0
1846else
1847  $as_echo "$as_me: failed program was:" >&5
1848sed 's/^/| /' conftest.$ac_ext >&5
1849
1850    ac_retval=1
1851fi
1852  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853  as_fn_set_status $ac_retval
1854
1855} # ac_fn_c_try_cpp
1856
1857# ac_fn_cxx_try_compile LINENO
1858# ----------------------------
1859# Try to compile conftest.$ac_ext, and return whether this succeeded.
1860ac_fn_cxx_try_compile ()
1861{
1862  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863  rm -f conftest.$ac_objext
1864  if { { ac_try="$ac_compile"
1865case "(($ac_try" in
1866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1867  *) ac_try_echo=$ac_try;;
1868esac
1869eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870$as_echo "$ac_try_echo"; } >&5
1871  (eval "$ac_compile") 2>conftest.err
1872  ac_status=$?
1873  if test -s conftest.err; then
1874    grep -v '^ *+' conftest.err >conftest.er1
1875    cat conftest.er1 >&5
1876    mv -f conftest.er1 conftest.err
1877  fi
1878  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1879  test $ac_status = 0; } && {
1880	 test -z "$ac_cxx_werror_flag" ||
1881	 test ! -s conftest.err
1882       } && test -s conftest.$ac_objext; then :
1883  ac_retval=0
1884else
1885  $as_echo "$as_me: failed program was:" >&5
1886sed 's/^/| /' conftest.$ac_ext >&5
1887
1888	ac_retval=1
1889fi
1890  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891  as_fn_set_status $ac_retval
1892
1893} # ac_fn_cxx_try_compile
1894
1895# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1896# -------------------------------------------------------
1897# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1898# the include files in INCLUDES and setting the cache variable VAR
1899# accordingly.
1900ac_fn_c_check_header_mongrel ()
1901{
1902  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903  if eval \${$3+:} false; then :
1904  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905$as_echo_n "checking for $2... " >&6; }
1906if eval \${$3+:} false; then :
1907  $as_echo_n "(cached) " >&6
1908fi
1909eval ac_res=\$$3
1910	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911$as_echo "$ac_res" >&6; }
1912else
1913  # Is the header compilable?
1914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1915$as_echo_n "checking $2 usability... " >&6; }
1916cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917/* end confdefs.h.  */
1918$4
1919#include <$2>
1920_ACEOF
1921if ac_fn_c_try_compile "$LINENO"; then :
1922  ac_header_compiler=yes
1923else
1924  ac_header_compiler=no
1925fi
1926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1928$as_echo "$ac_header_compiler" >&6; }
1929
1930# Is the header present?
1931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1932$as_echo_n "checking $2 presence... " >&6; }
1933cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934/* end confdefs.h.  */
1935#include <$2>
1936_ACEOF
1937if ac_fn_c_try_cpp "$LINENO"; then :
1938  ac_header_preproc=yes
1939else
1940  ac_header_preproc=no
1941fi
1942rm -f conftest.err conftest.i conftest.$ac_ext
1943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1944$as_echo "$ac_header_preproc" >&6; }
1945
1946# So?  What about this header?
1947case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1948  yes:no: )
1949    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1950$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1951    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1952$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1953    ;;
1954  no:yes:* )
1955    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1956$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1957    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1958$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1959    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1960$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1961    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1962$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1963    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1964$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1965( $as_echo "## ------------------------------------------------- ##
1966## Report this to gphoto-devel@lists.sourceforge.net ##
1967## ------------------------------------------------- ##"
1968     ) | sed "s/^/$as_me: WARNING:     /" >&2
1969    ;;
1970esac
1971  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1972$as_echo_n "checking for $2... " >&6; }
1973if eval \${$3+:} false; then :
1974  $as_echo_n "(cached) " >&6
1975else
1976  eval "$3=\$ac_header_compiler"
1977fi
1978eval ac_res=\$$3
1979	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980$as_echo "$ac_res" >&6; }
1981fi
1982  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983
1984} # ac_fn_c_check_header_mongrel
1985
1986# ac_fn_c_try_run LINENO
1987# ----------------------
1988# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1989# that executables *can* be run.
1990ac_fn_c_try_run ()
1991{
1992  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993  if { { ac_try="$ac_link"
1994case "(($ac_try" in
1995  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1996  *) ac_try_echo=$ac_try;;
1997esac
1998eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1999$as_echo "$ac_try_echo"; } >&5
2000  (eval "$ac_link") 2>&5
2001  ac_status=$?
2002  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2003  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2004  { { case "(($ac_try" in
2005  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2006  *) ac_try_echo=$ac_try;;
2007esac
2008eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2009$as_echo "$ac_try_echo"; } >&5
2010  (eval "$ac_try") 2>&5
2011  ac_status=$?
2012  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2013  test $ac_status = 0; }; }; then :
2014  ac_retval=0
2015else
2016  $as_echo "$as_me: program exited with status $ac_status" >&5
2017       $as_echo "$as_me: failed program was:" >&5
2018sed 's/^/| /' conftest.$ac_ext >&5
2019
2020       ac_retval=$ac_status
2021fi
2022  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2023  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2024  as_fn_set_status $ac_retval
2025
2026} # ac_fn_c_try_run
2027
2028# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2029# -------------------------------------------------------
2030# Tests whether HEADER exists and can be compiled using the include files in
2031# INCLUDES, setting the cache variable VAR accordingly.
2032ac_fn_c_check_header_compile ()
2033{
2034  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2036$as_echo_n "checking for $2... " >&6; }
2037if eval \${$3+:} false; then :
2038  $as_echo_n "(cached) " >&6
2039else
2040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041/* end confdefs.h.  */
2042$4
2043#include <$2>
2044_ACEOF
2045if ac_fn_c_try_compile "$LINENO"; then :
2046  eval "$3=yes"
2047else
2048  eval "$3=no"
2049fi
2050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051fi
2052eval ac_res=\$$3
2053	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2054$as_echo "$ac_res" >&6; }
2055  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2056
2057} # ac_fn_c_check_header_compile
2058
2059# ac_fn_c_try_link LINENO
2060# -----------------------
2061# Try to link conftest.$ac_ext, and return whether this succeeded.
2062ac_fn_c_try_link ()
2063{
2064  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065  rm -f conftest.$ac_objext conftest$ac_exeext
2066  if { { ac_try="$ac_link"
2067case "(($ac_try" in
2068  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2069  *) ac_try_echo=$ac_try;;
2070esac
2071eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2072$as_echo "$ac_try_echo"; } >&5
2073  (eval "$ac_link") 2>conftest.err
2074  ac_status=$?
2075  if test -s conftest.err; then
2076    grep -v '^ *+' conftest.err >conftest.er1
2077    cat conftest.er1 >&5
2078    mv -f conftest.er1 conftest.err
2079  fi
2080  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2081  test $ac_status = 0; } && {
2082	 test -z "$ac_c_werror_flag" ||
2083	 test ! -s conftest.err
2084       } && test -s conftest$ac_exeext && {
2085	 test "$cross_compiling" = yes ||
2086	 test -x conftest$ac_exeext
2087       }; then :
2088  ac_retval=0
2089else
2090  $as_echo "$as_me: failed program was:" >&5
2091sed 's/^/| /' conftest.$ac_ext >&5
2092
2093	ac_retval=1
2094fi
2095  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2096  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2097  # interfere with the next link command; also delete a directory that is
2098  # left behind by Apple's compiler.  We do this before executing the actions.
2099  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2100  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2101  as_fn_set_status $ac_retval
2102
2103} # ac_fn_c_try_link
2104
2105# ac_fn_c_check_func LINENO FUNC VAR
2106# ----------------------------------
2107# Tests whether FUNC exists, setting the cache variable VAR accordingly
2108ac_fn_c_check_func ()
2109{
2110  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2112$as_echo_n "checking for $2... " >&6; }
2113if eval \${$3+:} false; then :
2114  $as_echo_n "(cached) " >&6
2115else
2116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117/* end confdefs.h.  */
2118/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2119   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2120#define $2 innocuous_$2
2121
2122/* System header to define __stub macros and hopefully few prototypes,
2123    which can conflict with char $2 (); below.
2124    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2125    <limits.h> exists even on freestanding compilers.  */
2126
2127#ifdef __STDC__
2128# include <limits.h>
2129#else
2130# include <assert.h>
2131#endif
2132
2133#undef $2
2134
2135/* Override any GCC internal prototype to avoid an error.
2136   Use char because int might match the return type of a GCC
2137   builtin and then its argument prototype would still apply.  */
2138#ifdef __cplusplus
2139extern "C"
2140#endif
2141char $2 ();
2142/* The GNU C library defines this for functions which it implements
2143    to always fail with ENOSYS.  Some functions are actually named
2144    something starting with __ and the normal name is an alias.  */
2145#if defined __stub_$2 || defined __stub___$2
2146choke me
2147#endif
2148
2149int
2150main ()
2151{
2152return $2 ();
2153  ;
2154  return 0;
2155}
2156_ACEOF
2157if ac_fn_c_try_link "$LINENO"; then :
2158  eval "$3=yes"
2159else
2160  eval "$3=no"
2161fi
2162rm -f core conftest.err conftest.$ac_objext \
2163    conftest$ac_exeext conftest.$ac_ext
2164fi
2165eval ac_res=\$$3
2166	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2167$as_echo "$ac_res" >&6; }
2168  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2169
2170} # ac_fn_c_check_func
2171
2172# ac_fn_cxx_try_cpp LINENO
2173# ------------------------
2174# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2175ac_fn_cxx_try_cpp ()
2176{
2177  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2178  if { { ac_try="$ac_cpp conftest.$ac_ext"
2179case "(($ac_try" in
2180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2181  *) ac_try_echo=$ac_try;;
2182esac
2183eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2184$as_echo "$ac_try_echo"; } >&5
2185  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2186  ac_status=$?
2187  if test -s conftest.err; then
2188    grep -v '^ *+' conftest.err >conftest.er1
2189    cat conftest.er1 >&5
2190    mv -f conftest.er1 conftest.err
2191  fi
2192  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2193  test $ac_status = 0; } > conftest.i && {
2194	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2195	 test ! -s conftest.err
2196       }; then :
2197  ac_retval=0
2198else
2199  $as_echo "$as_me: failed program was:" >&5
2200sed 's/^/| /' conftest.$ac_ext >&5
2201
2202    ac_retval=1
2203fi
2204  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2205  as_fn_set_status $ac_retval
2206
2207} # ac_fn_cxx_try_cpp
2208
2209# ac_fn_cxx_try_link LINENO
2210# -------------------------
2211# Try to link conftest.$ac_ext, and return whether this succeeded.
2212ac_fn_cxx_try_link ()
2213{
2214  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2215  rm -f conftest.$ac_objext conftest$ac_exeext
2216  if { { ac_try="$ac_link"
2217case "(($ac_try" in
2218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2219  *) ac_try_echo=$ac_try;;
2220esac
2221eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2222$as_echo "$ac_try_echo"; } >&5
2223  (eval "$ac_link") 2>conftest.err
2224  ac_status=$?
2225  if test -s conftest.err; then
2226    grep -v '^ *+' conftest.err >conftest.er1
2227    cat conftest.er1 >&5
2228    mv -f conftest.er1 conftest.err
2229  fi
2230  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2231  test $ac_status = 0; } && {
2232	 test -z "$ac_cxx_werror_flag" ||
2233	 test ! -s conftest.err
2234       } && test -s conftest$ac_exeext && {
2235	 test "$cross_compiling" = yes ||
2236	 test -x conftest$ac_exeext
2237       }; then :
2238  ac_retval=0
2239else
2240  $as_echo "$as_me: failed program was:" >&5
2241sed 's/^/| /' conftest.$ac_ext >&5
2242
2243	ac_retval=1
2244fi
2245  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2246  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2247  # interfere with the next link command; also delete a directory that is
2248  # left behind by Apple's compiler.  We do this before executing the actions.
2249  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2250  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2251  as_fn_set_status $ac_retval
2252
2253} # ac_fn_cxx_try_link
2254
2255# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2256# -------------------------------------------
2257# Tests whether TYPE exists after having included INCLUDES, setting cache
2258# variable VAR accordingly.
2259ac_fn_c_check_type ()
2260{
2261  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2262  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2263$as_echo_n "checking for $2... " >&6; }
2264if eval \${$3+:} false; then :
2265  $as_echo_n "(cached) " >&6
2266else
2267  eval "$3=no"
2268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2269/* end confdefs.h.  */
2270$4
2271int
2272main ()
2273{
2274if (sizeof ($2))
2275	 return 0;
2276  ;
2277  return 0;
2278}
2279_ACEOF
2280if ac_fn_c_try_compile "$LINENO"; then :
2281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282/* end confdefs.h.  */
2283$4
2284int
2285main ()
2286{
2287if (sizeof (($2)))
2288	    return 0;
2289  ;
2290  return 0;
2291}
2292_ACEOF
2293if ac_fn_c_try_compile "$LINENO"; then :
2294
2295else
2296  eval "$3=yes"
2297fi
2298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299fi
2300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2301fi
2302eval ac_res=\$$3
2303	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2304$as_echo "$ac_res" >&6; }
2305  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2306
2307} # ac_fn_c_check_type
2308
2309# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2310# ----------------------------------------------------
2311# Tries to find if the field MEMBER exists in type AGGR, after including
2312# INCLUDES, setting cache variable VAR accordingly.
2313ac_fn_c_check_member ()
2314{
2315  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2316  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2317$as_echo_n "checking for $2.$3... " >&6; }
2318if eval \${$4+:} false; then :
2319  $as_echo_n "(cached) " >&6
2320else
2321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2322/* end confdefs.h.  */
2323$5
2324int
2325main ()
2326{
2327static $2 ac_aggr;
2328if (ac_aggr.$3)
2329return 0;
2330  ;
2331  return 0;
2332}
2333_ACEOF
2334if ac_fn_c_try_compile "$LINENO"; then :
2335  eval "$4=yes"
2336else
2337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2338/* end confdefs.h.  */
2339$5
2340int
2341main ()
2342{
2343static $2 ac_aggr;
2344if (sizeof ac_aggr.$3)
2345return 0;
2346  ;
2347  return 0;
2348}
2349_ACEOF
2350if ac_fn_c_try_compile "$LINENO"; then :
2351  eval "$4=yes"
2352else
2353  eval "$4=no"
2354fi
2355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2356fi
2357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2358fi
2359eval ac_res=\$$4
2360	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2361$as_echo "$ac_res" >&6; }
2362  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2363
2364} # ac_fn_c_check_member
2365cat >config.log <<_ACEOF
2366This file contains any messages produced by compilers while
2367running configure, to aid debugging if configure makes a mistake.
2368
2369It was created by libgphoto2 photo camera library $as_me 2.5.26, which was
2370generated by GNU Autoconf 2.69.  Invocation command line was
2371
2372  $ $0 $@
2373
2374_ACEOF
2375exec 5>>config.log
2376{
2377cat <<_ASUNAME
2378## --------- ##
2379## Platform. ##
2380## --------- ##
2381
2382hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2383uname -m = `(uname -m) 2>/dev/null || echo unknown`
2384uname -r = `(uname -r) 2>/dev/null || echo unknown`
2385uname -s = `(uname -s) 2>/dev/null || echo unknown`
2386uname -v = `(uname -v) 2>/dev/null || echo unknown`
2387
2388/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2389/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2390
2391/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2392/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2393/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2394/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2395/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2396/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2397/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2398
2399_ASUNAME
2400
2401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2402for as_dir in $PATH
2403do
2404  IFS=$as_save_IFS
2405  test -z "$as_dir" && as_dir=.
2406    $as_echo "PATH: $as_dir"
2407  done
2408IFS=$as_save_IFS
2409
2410} >&5
2411
2412cat >&5 <<_ACEOF
2413
2414
2415## ----------- ##
2416## Core tests. ##
2417## ----------- ##
2418
2419_ACEOF
2420
2421
2422# Keep a trace of the command line.
2423# Strip out --no-create and --no-recursion so they do not pile up.
2424# Strip out --silent because we don't want to record it for future runs.
2425# Also quote any args containing shell meta-characters.
2426# Make two passes to allow for proper duplicate-argument suppression.
2427ac_configure_args=
2428ac_configure_args0=
2429ac_configure_args1=
2430ac_must_keep_next=false
2431for ac_pass in 1 2
2432do
2433  for ac_arg
2434  do
2435    case $ac_arg in
2436    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2437    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2438    | -silent | --silent | --silen | --sile | --sil)
2439      continue ;;
2440    *\'*)
2441      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2442    esac
2443    case $ac_pass in
2444    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2445    2)
2446      as_fn_append ac_configure_args1 " '$ac_arg'"
2447      if test $ac_must_keep_next = true; then
2448	ac_must_keep_next=false # Got value, back to normal.
2449      else
2450	case $ac_arg in
2451	  *=* | --config-cache | -C | -disable-* | --disable-* \
2452	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2453	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2454	  | -with-* | --with-* | -without-* | --without-* | --x)
2455	    case "$ac_configure_args0 " in
2456	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2457	    esac
2458	    ;;
2459	  -* ) ac_must_keep_next=true ;;
2460	esac
2461      fi
2462      as_fn_append ac_configure_args " '$ac_arg'"
2463      ;;
2464    esac
2465  done
2466done
2467{ ac_configure_args0=; unset ac_configure_args0;}
2468{ ac_configure_args1=; unset ac_configure_args1;}
2469
2470# When interrupted or exit'd, cleanup temporary files, and complete
2471# config.log.  We remove comments because anyway the quotes in there
2472# would cause problems or look ugly.
2473# WARNING: Use '\'' to represent an apostrophe within the trap.
2474# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2475trap 'exit_status=$?
2476  # Save into config.log some information that might help in debugging.
2477  {
2478    echo
2479
2480    $as_echo "## ---------------- ##
2481## Cache variables. ##
2482## ---------------- ##"
2483    echo
2484    # The following way of writing the cache mishandles newlines in values,
2485(
2486  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2487    eval ac_val=\$$ac_var
2488    case $ac_val in #(
2489    *${as_nl}*)
2490      case $ac_var in #(
2491      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2492$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2493      esac
2494      case $ac_var in #(
2495      _ | IFS | as_nl) ;; #(
2496      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2497      *) { eval $ac_var=; unset $ac_var;} ;;
2498      esac ;;
2499    esac
2500  done
2501  (set) 2>&1 |
2502    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2503    *${as_nl}ac_space=\ *)
2504      sed -n \
2505	"s/'\''/'\''\\\\'\'''\''/g;
2506	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2507      ;; #(
2508    *)
2509      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2510      ;;
2511    esac |
2512    sort
2513)
2514    echo
2515
2516    $as_echo "## ----------------- ##
2517## Output variables. ##
2518## ----------------- ##"
2519    echo
2520    for ac_var in $ac_subst_vars
2521    do
2522      eval ac_val=\$$ac_var
2523      case $ac_val in
2524      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2525      esac
2526      $as_echo "$ac_var='\''$ac_val'\''"
2527    done | sort
2528    echo
2529
2530    if test -n "$ac_subst_files"; then
2531      $as_echo "## ------------------- ##
2532## File substitutions. ##
2533## ------------------- ##"
2534      echo
2535      for ac_var in $ac_subst_files
2536      do
2537	eval ac_val=\$$ac_var
2538	case $ac_val in
2539	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2540	esac
2541	$as_echo "$ac_var='\''$ac_val'\''"
2542      done | sort
2543      echo
2544    fi
2545
2546    if test -s confdefs.h; then
2547      $as_echo "## ----------- ##
2548## confdefs.h. ##
2549## ----------- ##"
2550      echo
2551      cat confdefs.h
2552      echo
2553    fi
2554    test "$ac_signal" != 0 &&
2555      $as_echo "$as_me: caught signal $ac_signal"
2556    $as_echo "$as_me: exit $exit_status"
2557  } >&5
2558  rm -f core *.core core.conftest.* &&
2559    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2560    exit $exit_status
2561' 0
2562for ac_signal in 1 2 13 15; do
2563  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2564done
2565ac_signal=0
2566
2567# confdefs.h avoids OS command line length limits that DEFS can exceed.
2568rm -f -r conftest* confdefs.h
2569
2570$as_echo "/* confdefs.h */" > confdefs.h
2571
2572# Predefined preprocessor variables.
2573
2574cat >>confdefs.h <<_ACEOF
2575#define PACKAGE_NAME "$PACKAGE_NAME"
2576_ACEOF
2577
2578cat >>confdefs.h <<_ACEOF
2579#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2580_ACEOF
2581
2582cat >>confdefs.h <<_ACEOF
2583#define PACKAGE_VERSION "$PACKAGE_VERSION"
2584_ACEOF
2585
2586cat >>confdefs.h <<_ACEOF
2587#define PACKAGE_STRING "$PACKAGE_STRING"
2588_ACEOF
2589
2590cat >>confdefs.h <<_ACEOF
2591#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2592_ACEOF
2593
2594cat >>confdefs.h <<_ACEOF
2595#define PACKAGE_URL "$PACKAGE_URL"
2596_ACEOF
2597
2598
2599# Let the site file select an alternate cache file if it wants to.
2600# Prefer an explicitly selected file to automatically selected ones.
2601ac_site_file1=NONE
2602ac_site_file2=NONE
2603if test -n "$CONFIG_SITE"; then
2604  # We do not want a PATH search for config.site.
2605  case $CONFIG_SITE in #((
2606    -*)  ac_site_file1=./$CONFIG_SITE;;
2607    */*) ac_site_file1=$CONFIG_SITE;;
2608    *)   ac_site_file1=./$CONFIG_SITE;;
2609  esac
2610elif test "x$prefix" != xNONE; then
2611  ac_site_file1=$prefix/share/config.site
2612  ac_site_file2=$prefix/etc/config.site
2613else
2614  ac_site_file1=$ac_default_prefix/share/config.site
2615  ac_site_file2=$ac_default_prefix/etc/config.site
2616fi
2617for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2618do
2619  test "x$ac_site_file" = xNONE && continue
2620  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2621    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2622$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2623    sed 's/^/| /' "$ac_site_file" >&5
2624    . "$ac_site_file" \
2625      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2626$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2627as_fn_error $? "failed to load site script $ac_site_file
2628See \`config.log' for more details" "$LINENO" 5; }
2629  fi
2630done
2631
2632if test -r "$cache_file"; then
2633  # Some versions of bash will fail to source /dev/null (special files
2634  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2635  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2636    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2637$as_echo "$as_me: loading cache $cache_file" >&6;}
2638    case $cache_file in
2639      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2640      *)                      . "./$cache_file";;
2641    esac
2642  fi
2643else
2644  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2645$as_echo "$as_me: creating cache $cache_file" >&6;}
2646  >$cache_file
2647fi
2648
2649# Check that the precious variables saved in the cache have kept the same
2650# value.
2651ac_cache_corrupted=false
2652for ac_var in $ac_precious_vars; do
2653  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2654  eval ac_new_set=\$ac_env_${ac_var}_set
2655  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2656  eval ac_new_val=\$ac_env_${ac_var}_value
2657  case $ac_old_set,$ac_new_set in
2658    set,)
2659      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2660$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2661      ac_cache_corrupted=: ;;
2662    ,set)
2663      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2664$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2665      ac_cache_corrupted=: ;;
2666    ,);;
2667    *)
2668      if test "x$ac_old_val" != "x$ac_new_val"; then
2669	# differences in whitespace do not lead to failure.
2670	ac_old_val_w=`echo x $ac_old_val`
2671	ac_new_val_w=`echo x $ac_new_val`
2672	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2673	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2674$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2675	  ac_cache_corrupted=:
2676	else
2677	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2678$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2679	  eval $ac_var=\$ac_old_val
2680	fi
2681	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2682$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2683	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2684$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2685      fi;;
2686  esac
2687  # Pass precious variables to config.status.
2688  if test "$ac_new_set" = set; then
2689    case $ac_new_val in
2690    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2691    *) ac_arg=$ac_var=$ac_new_val ;;
2692    esac
2693    case " $ac_configure_args " in
2694      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2695      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2696    esac
2697  fi
2698done
2699if $ac_cache_corrupted; then
2700  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2701$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2702  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2703$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2704  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2705fi
2706## -------------------- ##
2707## Main body of script. ##
2708## -------------------- ##
2709
2710ac_ext=c
2711ac_cpp='$CPP $CPPFLAGS'
2712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2714ac_compiler_gnu=$ac_cv_c_compiler_gnu
2715
2716
2717
2718
2719ac_config_headers="$ac_config_headers config.h"
2720
2721
2722ac_aux_dir=
2723for ac_dir in auto-aux "$srcdir"/auto-aux; do
2724  if test -f "$ac_dir/install-sh"; then
2725    ac_aux_dir=$ac_dir
2726    ac_install_sh="$ac_aux_dir/install-sh -c"
2727    break
2728  elif test -f "$ac_dir/install.sh"; then
2729    ac_aux_dir=$ac_dir
2730    ac_install_sh="$ac_aux_dir/install.sh -c"
2731    break
2732  elif test -f "$ac_dir/shtool"; then
2733    ac_aux_dir=$ac_dir
2734    ac_install_sh="$ac_aux_dir/shtool install -c"
2735    break
2736  fi
2737done
2738if test -z "$ac_aux_dir"; then
2739  as_fn_error $? "cannot find install-sh, install.sh, or shtool in auto-aux \"$srcdir\"/auto-aux" "$LINENO" 5
2740fi
2741
2742# These three variables are undocumented and unsupported,
2743# and are intended to be withdrawn in a future Autoconf release.
2744# They can cause serious problems if a builder's source tree is in a directory
2745# whose full name contains unusual characters.
2746ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2747ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2748ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2749
2750
2751am__api_version='1.16'
2752
2753# Find a good install program.  We prefer a C program (faster),
2754# so one script is as good as another.  But avoid the broken or
2755# incompatible versions:
2756# SysV /etc/install, /usr/sbin/install
2757# SunOS /usr/etc/install
2758# IRIX /sbin/install
2759# AIX /bin/install
2760# AmigaOS /C/install, which installs bootblocks on floppy discs
2761# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2762# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2763# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2764# OS/2's system install, which has a completely different semantic
2765# ./install, which can be erroneously created by make from ./install.sh.
2766# Reject install programs that cannot install multiple files.
2767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2768$as_echo_n "checking for a BSD-compatible install... " >&6; }
2769if test -z "$INSTALL"; then
2770if ${ac_cv_path_install+:} false; then :
2771  $as_echo_n "(cached) " >&6
2772else
2773  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774for as_dir in $PATH
2775do
2776  IFS=$as_save_IFS
2777  test -z "$as_dir" && as_dir=.
2778    # Account for people who put trailing slashes in PATH elements.
2779case $as_dir/ in #((
2780  ./ | .// | /[cC]/* | \
2781  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2782  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2783  /usr/ucb/* ) ;;
2784  *)
2785    # OSF1 and SCO ODT 3.0 have their own names for install.
2786    # Don't use installbsd from OSF since it installs stuff as root
2787    # by default.
2788    for ac_prog in ginstall scoinst install; do
2789      for ac_exec_ext in '' $ac_executable_extensions; do
2790	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2791	  if test $ac_prog = install &&
2792	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2793	    # AIX install.  It has an incompatible calling convention.
2794	    :
2795	  elif test $ac_prog = install &&
2796	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2797	    # program-specific install script used by HP pwplus--don't use.
2798	    :
2799	  else
2800	    rm -rf conftest.one conftest.two conftest.dir
2801	    echo one > conftest.one
2802	    echo two > conftest.two
2803	    mkdir conftest.dir
2804	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2805	      test -s conftest.one && test -s conftest.two &&
2806	      test -s conftest.dir/conftest.one &&
2807	      test -s conftest.dir/conftest.two
2808	    then
2809	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2810	      break 3
2811	    fi
2812	  fi
2813	fi
2814      done
2815    done
2816    ;;
2817esac
2818
2819  done
2820IFS=$as_save_IFS
2821
2822rm -rf conftest.one conftest.two conftest.dir
2823
2824fi
2825  if test "${ac_cv_path_install+set}" = set; then
2826    INSTALL=$ac_cv_path_install
2827  else
2828    # As a last resort, use the slow shell script.  Don't cache a
2829    # value for INSTALL within a source directory, because that will
2830    # break other packages using the cache if that directory is
2831    # removed, or if the value is a relative name.
2832    INSTALL=$ac_install_sh
2833  fi
2834fi
2835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2836$as_echo "$INSTALL" >&6; }
2837
2838# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2839# It thinks the first close brace ends the variable substitution.
2840test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2841
2842test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2843
2844test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2845
2846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2847$as_echo_n "checking whether build environment is sane... " >&6; }
2848# Reject unsafe characters in $srcdir or the absolute working directory
2849# name.  Accept space and tab only in the latter.
2850am_lf='
2851'
2852case `pwd` in
2853  *[\\\"\#\$\&\'\`$am_lf]*)
2854    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2855esac
2856case $srcdir in
2857  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2858    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2859esac
2860
2861# Do 'set' in a subshell so we don't clobber the current shell's
2862# arguments.  Must try -L first in case configure is actually a
2863# symlink; some systems play weird games with the mod time of symlinks
2864# (eg FreeBSD returns the mod time of the symlink's containing
2865# directory).
2866if (
2867   am_has_slept=no
2868   for am_try in 1 2; do
2869     echo "timestamp, slept: $am_has_slept" > conftest.file
2870     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2871     if test "$*" = "X"; then
2872	# -L didn't work.
2873	set X `ls -t "$srcdir/configure" conftest.file`
2874     fi
2875     if test "$*" != "X $srcdir/configure conftest.file" \
2876	&& test "$*" != "X conftest.file $srcdir/configure"; then
2877
2878	# If neither matched, then we have a broken ls.  This can happen
2879	# if, for instance, CONFIG_SHELL is bash and it inherits a
2880	# broken ls alias from the environment.  This has actually
2881	# happened.  Such a system could not be considered "sane".
2882	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2883  alias in your environment" "$LINENO" 5
2884     fi
2885     if test "$2" = conftest.file || test $am_try -eq 2; then
2886       break
2887     fi
2888     # Just in case.
2889     sleep 1
2890     am_has_slept=yes
2891   done
2892   test "$2" = conftest.file
2893   )
2894then
2895   # Ok.
2896   :
2897else
2898   as_fn_error $? "newly created file is older than distributed files!
2899Check your system clock" "$LINENO" 5
2900fi
2901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2902$as_echo "yes" >&6; }
2903# If we didn't sleep, we still need to ensure time stamps of config.status and
2904# generated files are strictly newer.
2905am_sleep_pid=
2906if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2907  ( sleep 1 ) &
2908  am_sleep_pid=$!
2909fi
2910
2911rm -f conftest.file
2912
2913test "$program_prefix" != NONE &&
2914  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2915# Use a double $ so make ignores it.
2916test "$program_suffix" != NONE &&
2917  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2918# Double any \ or $.
2919# By default was `s,x,x', remove it if useless.
2920ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2921program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2922
2923# Expand $ac_aux_dir to an absolute path.
2924am_aux_dir=`cd "$ac_aux_dir" && pwd`
2925
2926if test x"${MISSING+set}" != xset; then
2927  case $am_aux_dir in
2928  *\ * | *\	*)
2929    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2930  *)
2931    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2932  esac
2933fi
2934# Use eval to expand $SHELL
2935if eval "$MISSING --is-lightweight"; then
2936  am_missing_run="$MISSING "
2937else
2938  am_missing_run=
2939  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2940$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2941fi
2942
2943if test x"${install_sh+set}" != xset; then
2944  case $am_aux_dir in
2945  *\ * | *\	*)
2946    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2947  *)
2948    install_sh="\${SHELL} $am_aux_dir/install-sh"
2949  esac
2950fi
2951
2952# Installed binaries are usually stripped using 'strip' when the user
2953# run "make install-strip".  However 'strip' might not be the right
2954# tool to use in cross-compilation environments, therefore Automake
2955# will honor the 'STRIP' environment variable to overrule this program.
2956if test "$cross_compiling" != no; then
2957  if test -n "$ac_tool_prefix"; then
2958  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2959set dummy ${ac_tool_prefix}strip; ac_word=$2
2960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2961$as_echo_n "checking for $ac_word... " >&6; }
2962if ${ac_cv_prog_STRIP+:} false; then :
2963  $as_echo_n "(cached) " >&6
2964else
2965  if test -n "$STRIP"; then
2966  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2967else
2968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969for as_dir in $PATH
2970do
2971  IFS=$as_save_IFS
2972  test -z "$as_dir" && as_dir=.
2973    for ac_exec_ext in '' $ac_executable_extensions; do
2974  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2975    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2976    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2977    break 2
2978  fi
2979done
2980  done
2981IFS=$as_save_IFS
2982
2983fi
2984fi
2985STRIP=$ac_cv_prog_STRIP
2986if test -n "$STRIP"; then
2987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2988$as_echo "$STRIP" >&6; }
2989else
2990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991$as_echo "no" >&6; }
2992fi
2993
2994
2995fi
2996if test -z "$ac_cv_prog_STRIP"; then
2997  ac_ct_STRIP=$STRIP
2998  # Extract the first word of "strip", so it can be a program name with args.
2999set dummy strip; ac_word=$2
3000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3001$as_echo_n "checking for $ac_word... " >&6; }
3002if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3003  $as_echo_n "(cached) " >&6
3004else
3005  if test -n "$ac_ct_STRIP"; then
3006  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3007else
3008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009for as_dir in $PATH
3010do
3011  IFS=$as_save_IFS
3012  test -z "$as_dir" && as_dir=.
3013    for ac_exec_ext in '' $ac_executable_extensions; do
3014  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3015    ac_cv_prog_ac_ct_STRIP="strip"
3016    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3017    break 2
3018  fi
3019done
3020  done
3021IFS=$as_save_IFS
3022
3023fi
3024fi
3025ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3026if test -n "$ac_ct_STRIP"; then
3027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3028$as_echo "$ac_ct_STRIP" >&6; }
3029else
3030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031$as_echo "no" >&6; }
3032fi
3033
3034  if test "x$ac_ct_STRIP" = x; then
3035    STRIP=":"
3036  else
3037    case $cross_compiling:$ac_tool_warned in
3038yes:)
3039{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3040$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3041ac_tool_warned=yes ;;
3042esac
3043    STRIP=$ac_ct_STRIP
3044  fi
3045else
3046  STRIP="$ac_cv_prog_STRIP"
3047fi
3048
3049fi
3050INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3051
3052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3053$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3054if test -z "$MKDIR_P"; then
3055  if ${ac_cv_path_mkdir+:} false; then :
3056  $as_echo_n "(cached) " >&6
3057else
3058  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3060do
3061  IFS=$as_save_IFS
3062  test -z "$as_dir" && as_dir=.
3063    for ac_prog in mkdir gmkdir; do
3064	 for ac_exec_ext in '' $ac_executable_extensions; do
3065	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3066	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3067	     'mkdir (GNU coreutils) '* | \
3068	     'mkdir (coreutils) '* | \
3069	     'mkdir (fileutils) '4.1*)
3070	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3071	       break 3;;
3072	   esac
3073	 done
3074       done
3075  done
3076IFS=$as_save_IFS
3077
3078fi
3079
3080  test -d ./--version && rmdir ./--version
3081  if test "${ac_cv_path_mkdir+set}" = set; then
3082    MKDIR_P="$ac_cv_path_mkdir -p"
3083  else
3084    # As a last resort, use the slow shell script.  Don't cache a
3085    # value for MKDIR_P within a source directory, because that will
3086    # break other packages using the cache if that directory is
3087    # removed, or if the value is a relative name.
3088    MKDIR_P="$ac_install_sh -d"
3089  fi
3090fi
3091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3092$as_echo "$MKDIR_P" >&6; }
3093
3094for ac_prog in gawk mawk nawk awk
3095do
3096  # Extract the first word of "$ac_prog", so it can be a program name with args.
3097set dummy $ac_prog; ac_word=$2
3098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3099$as_echo_n "checking for $ac_word... " >&6; }
3100if ${ac_cv_prog_AWK+:} false; then :
3101  $as_echo_n "(cached) " >&6
3102else
3103  if test -n "$AWK"; then
3104  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3105else
3106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107for as_dir in $PATH
3108do
3109  IFS=$as_save_IFS
3110  test -z "$as_dir" && as_dir=.
3111    for ac_exec_ext in '' $ac_executable_extensions; do
3112  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3113    ac_cv_prog_AWK="$ac_prog"
3114    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3115    break 2
3116  fi
3117done
3118  done
3119IFS=$as_save_IFS
3120
3121fi
3122fi
3123AWK=$ac_cv_prog_AWK
3124if test -n "$AWK"; then
3125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3126$as_echo "$AWK" >&6; }
3127else
3128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3129$as_echo "no" >&6; }
3130fi
3131
3132
3133  test -n "$AWK" && break
3134done
3135
3136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3137$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3138set x ${MAKE-make}
3139ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3140if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3141  $as_echo_n "(cached) " >&6
3142else
3143  cat >conftest.make <<\_ACEOF
3144SHELL = /bin/sh
3145all:
3146	@echo '@@@%%%=$(MAKE)=@@@%%%'
3147_ACEOF
3148# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3149case `${MAKE-make} -f conftest.make 2>/dev/null` in
3150  *@@@%%%=?*=@@@%%%*)
3151    eval ac_cv_prog_make_${ac_make}_set=yes;;
3152  *)
3153    eval ac_cv_prog_make_${ac_make}_set=no;;
3154esac
3155rm -f conftest.make
3156fi
3157if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3159$as_echo "yes" >&6; }
3160  SET_MAKE=
3161else
3162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3163$as_echo "no" >&6; }
3164  SET_MAKE="MAKE=${MAKE-make}"
3165fi
3166
3167rm -rf .tst 2>/dev/null
3168mkdir .tst 2>/dev/null
3169if test -d .tst; then
3170  am__leading_dot=.
3171else
3172  am__leading_dot=_
3173fi
3174rmdir .tst 2>/dev/null
3175
3176# Check whether --enable-silent-rules was given.
3177if test "${enable_silent_rules+set}" = set; then :
3178  enableval=$enable_silent_rules;
3179fi
3180
3181case $enable_silent_rules in # (((
3182  yes) AM_DEFAULT_VERBOSITY=0;;
3183   no) AM_DEFAULT_VERBOSITY=1;;
3184    *) AM_DEFAULT_VERBOSITY=1;;
3185esac
3186am_make=${MAKE-make}
3187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3188$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3189if ${am_cv_make_support_nested_variables+:} false; then :
3190  $as_echo_n "(cached) " >&6
3191else
3192  if $as_echo 'TRUE=$(BAR$(V))
3193BAR0=false
3194BAR1=true
3195V=1
3196am__doit:
3197	@$(TRUE)
3198.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3199  am_cv_make_support_nested_variables=yes
3200else
3201  am_cv_make_support_nested_variables=no
3202fi
3203fi
3204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3205$as_echo "$am_cv_make_support_nested_variables" >&6; }
3206if test $am_cv_make_support_nested_variables = yes; then
3207    AM_V='$(V)'
3208  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3209else
3210  AM_V=$AM_DEFAULT_VERBOSITY
3211  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3212fi
3213AM_BACKSLASH='\'
3214
3215if test "`cd $srcdir && pwd`" != "`pwd`"; then
3216  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3217  # is not polluted with repeated "-I."
3218  am__isrc=' -I$(srcdir)'
3219  # test to see if srcdir already configured
3220  if test -f $srcdir/config.status; then
3221    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3222  fi
3223fi
3224
3225# test whether we have cygpath
3226if test -z "$CYGPATH_W"; then
3227  if (cygpath --version) >/dev/null 2>/dev/null; then
3228    CYGPATH_W='cygpath -w'
3229  else
3230    CYGPATH_W=echo
3231  fi
3232fi
3233
3234
3235# Define the identity of the package.
3236 PACKAGE='libgphoto2'
3237 VERSION='2.5.26'
3238
3239
3240cat >>confdefs.h <<_ACEOF
3241#define PACKAGE "$PACKAGE"
3242_ACEOF
3243
3244
3245cat >>confdefs.h <<_ACEOF
3246#define VERSION "$VERSION"
3247_ACEOF
3248
3249# Some tools Automake needs.
3250
3251ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3252
3253
3254AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3255
3256
3257AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3258
3259
3260AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3261
3262
3263MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3264
3265# For better backward compatibility.  To be removed once Automake 1.9.x
3266# dies out for good.  For more background, see:
3267# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3268# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3269mkdir_p='$(MKDIR_P)'
3270
3271# We need awk for the "check" target (and possibly the TAP driver).  The
3272# system "awk" is bad on some platforms.
3273# Always define AMTAR for backward compatibility.  Yes, it's still used
3274# in the wild :-(  We should find a proper way to deprecate it ...
3275AMTAR='$${TAR-tar}'
3276
3277
3278# We'll loop over all known methods to create a tar archive until one works.
3279_am_tools='gnutar  pax cpio none'
3280
3281am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3282
3283
3284
3285
3286
3287
3288# POSIX will say in a future version that running "rm -f" with no argument
3289# is OK; and we want to be able to make that assumption in our Makefile
3290# recipes.  So use an aggressive probe to check that the usage we want is
3291# actually supported "in the wild" to an acceptable degree.
3292# See automake bug#10828.
3293# To make any issue more visible, cause the running configure to be aborted
3294# by default if the 'rm' program in use doesn't match our expectations; the
3295# user can still override this though.
3296if rm -f && rm -fr && rm -rf; then : OK; else
3297  cat >&2 <<'END'
3298Oops!
3299
3300Your 'rm' program seems unable to run without file operands specified
3301on the command line, even when the '-f' option is present.  This is contrary
3302to the behaviour of most rm programs out there, and not conforming with
3303the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3304
3305Please tell bug-automake@gnu.org about your system, including the value
3306of your $PATH and any error possibly output before this message.  This
3307can help us improve future automake versions.
3308
3309END
3310  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3311    echo 'Configuration will proceed anyway, since you have set the' >&2
3312    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3313    echo >&2
3314  else
3315    cat >&2 <<'END'
3316Aborting the configuration process, to ensure you take notice of the issue.
3317
3318You can download and install GNU coreutils to get an 'rm' implementation
3319that behaves properly: <https://www.gnu.org/software/coreutils/>.
3320
3321If you want to complete the configuration process using your problematic
3322'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3323to "yes", and re-run configure.
3324
3325END
3326    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3327  fi
3328fi
3329
3330
3331
3332# Use the silent-rules feature when possible.
3333
3334# Check whether --enable-silent-rules was given.
3335if test "${enable_silent_rules+set}" = set; then :
3336  enableval=$enable_silent_rules;
3337fi
3338
3339case $enable_silent_rules in # (((
3340  yes) AM_DEFAULT_VERBOSITY=0;;
3341   no) AM_DEFAULT_VERBOSITY=1;;
3342    *) AM_DEFAULT_VERBOSITY=1;;
3343esac
3344am_make=${MAKE-make}
3345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3346$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3347if ${am_cv_make_support_nested_variables+:} false; then :
3348  $as_echo_n "(cached) " >&6
3349else
3350  if $as_echo 'TRUE=$(BAR$(V))
3351BAR0=false
3352BAR1=true
3353V=1
3354am__doit:
3355	@$(TRUE)
3356.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3357  am_cv_make_support_nested_variables=yes
3358else
3359  am_cv_make_support_nested_variables=no
3360fi
3361fi
3362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3363$as_echo "$am_cv_make_support_nested_variables" >&6; }
3364if test $am_cv_make_support_nested_variables = yes; then
3365    AM_V='$(V)'
3366  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3367else
3368  AM_V=$AM_DEFAULT_VERBOSITY
3369  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3370fi
3371AM_BACKSLASH='\'
3372
3373
3374
3375# make sure "cd" doesn't print anything on stdout
3376if test x"${CDPATH+set}" = xset
3377then
3378	CDPATH=:
3379	export CDPATH
3380fi
3381
3382# make sure $() command substitution works
3383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX sh \$() command substitution" >&5
3384$as_echo_n "checking for POSIX sh \$() command substitution... " >&6; }
3385if test "x$(pwd)" = "x`pwd`" && test "y$(echo "foobar")" = "y`echo foobar`" # ''''
3386then
3387	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3388$as_echo "yes" >&6; }
3389else
3390	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3391$as_echo "no" >&6; }
3392	uname=`uname 2>&1` # ''
3393	uname_a=`uname -a 2>&1` # ''
3394	as_fn_error $? "
3395
3396* POSIX sh \$() command substition does not work with this shell.
3397*
3398* You are running a very rare species of shell. Please report this
3399* sighting to <${PACKAGE_BUGREPORT}>:
3400* SHELL=${SHELL}
3401* uname=${uname}
3402* uname-a=${uname_a}
3403* Please also include your OS and version.
3404*
3405* Run this configure script using a better (i.e. POSIX compliant) shell.
3406" "$LINENO" 5
3407fi
3408
3409
3410
3411gp_config_len="30"
3412gp_config_empty=""
3413gp_config_len3="$(expr "$gp_config_len" - 3)"
3414n="$gp_config_len"
3415while test "$n" -gt 0; do
3416      gp_config_empty="${gp_config_empty} "
3417      n="$(expr "$n" - 1)"
3418done
3419gp_config_msg="
3420Configuration (${PACKAGE_TARNAME} ${PACKAGE_VERSION}):
3421"
3422
3423
3424gp_config_msg="${gp_config_msg}
3425  Build
3426"
3427
3428
3429gp_config_msg_len="$(expr "Source code location" : '.*')"
3430if test "$gp_config_msg_len" -ge "$gp_config_len"; then
3431	gp_config_msg_lhs="$(expr "Source code location" : "\(.\{0,${gp_config_len3}\}\)")..:"
3432else
3433	gp_config_msg_lhs="$(expr "Source code location:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
3434fi
3435gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} ${srcdir}
3436"
3437
3438
3439LIBGPHOTO2_AGE=1
3440
3441LIBGPHOTO2_REVISION=0
3442
3443LIBGPHOTO2_CURRENT=7
3444
3445LIBGPHOTO2_CURRENT_MIN=`expr $LIBGPHOTO2_CURRENT - $LIBGPHOTO2_AGE`
3446
3447LIBGPHOTO2_VERSION_INFO=$LIBGPHOTO2_CURRENT:$LIBGPHOTO2_REVISION:$LIBGPHOTO2_AGE
3448
3449
3450
3451
3452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking original CC value" >&5
3453$as_echo_n "checking original CC value... " >&6; }
3454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$CC\"" >&5
3455$as_echo "\"$CC\"" >&6; }
3456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking original CXX value" >&5
3457$as_echo_n "checking original CXX value... " >&6; }
3458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$CXX\"" >&5
3459$as_echo "\"$CXX\"" >&6; }
3460
3461ac_ext=c
3462ac_cpp='$CPP $CPPFLAGS'
3463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3465ac_compiler_gnu=$ac_cv_c_compiler_gnu
3466if test -n "$ac_tool_prefix"; then
3467  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3468set dummy ${ac_tool_prefix}gcc; ac_word=$2
3469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3470$as_echo_n "checking for $ac_word... " >&6; }
3471if ${ac_cv_prog_CC+:} false; then :
3472  $as_echo_n "(cached) " >&6
3473else
3474  if test -n "$CC"; then
3475  ac_cv_prog_CC="$CC" # Let the user override the test.
3476else
3477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478for as_dir in $PATH
3479do
3480  IFS=$as_save_IFS
3481  test -z "$as_dir" && as_dir=.
3482    for ac_exec_ext in '' $ac_executable_extensions; do
3483  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3484    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3485    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3486    break 2
3487  fi
3488done
3489  done
3490IFS=$as_save_IFS
3491
3492fi
3493fi
3494CC=$ac_cv_prog_CC
3495if test -n "$CC"; then
3496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3497$as_echo "$CC" >&6; }
3498else
3499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3500$as_echo "no" >&6; }
3501fi
3502
3503
3504fi
3505if test -z "$ac_cv_prog_CC"; then
3506  ac_ct_CC=$CC
3507  # Extract the first word of "gcc", so it can be a program name with args.
3508set dummy gcc; ac_word=$2
3509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3510$as_echo_n "checking for $ac_word... " >&6; }
3511if ${ac_cv_prog_ac_ct_CC+:} false; then :
3512  $as_echo_n "(cached) " >&6
3513else
3514  if test -n "$ac_ct_CC"; then
3515  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3516else
3517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518for as_dir in $PATH
3519do
3520  IFS=$as_save_IFS
3521  test -z "$as_dir" && as_dir=.
3522    for ac_exec_ext in '' $ac_executable_extensions; do
3523  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3524    ac_cv_prog_ac_ct_CC="gcc"
3525    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3526    break 2
3527  fi
3528done
3529  done
3530IFS=$as_save_IFS
3531
3532fi
3533fi
3534ac_ct_CC=$ac_cv_prog_ac_ct_CC
3535if test -n "$ac_ct_CC"; then
3536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3537$as_echo "$ac_ct_CC" >&6; }
3538else
3539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3540$as_echo "no" >&6; }
3541fi
3542
3543  if test "x$ac_ct_CC" = x; then
3544    CC=""
3545  else
3546    case $cross_compiling:$ac_tool_warned in
3547yes:)
3548{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3549$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3550ac_tool_warned=yes ;;
3551esac
3552    CC=$ac_ct_CC
3553  fi
3554else
3555  CC="$ac_cv_prog_CC"
3556fi
3557
3558if test -z "$CC"; then
3559          if test -n "$ac_tool_prefix"; then
3560    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3561set dummy ${ac_tool_prefix}cc; ac_word=$2
3562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3563$as_echo_n "checking for $ac_word... " >&6; }
3564if ${ac_cv_prog_CC+:} false; then :
3565  $as_echo_n "(cached) " >&6
3566else
3567  if test -n "$CC"; then
3568  ac_cv_prog_CC="$CC" # Let the user override the test.
3569else
3570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3571for as_dir in $PATH
3572do
3573  IFS=$as_save_IFS
3574  test -z "$as_dir" && as_dir=.
3575    for ac_exec_ext in '' $ac_executable_extensions; do
3576  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3577    ac_cv_prog_CC="${ac_tool_prefix}cc"
3578    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3579    break 2
3580  fi
3581done
3582  done
3583IFS=$as_save_IFS
3584
3585fi
3586fi
3587CC=$ac_cv_prog_CC
3588if test -n "$CC"; then
3589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3590$as_echo "$CC" >&6; }
3591else
3592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3593$as_echo "no" >&6; }
3594fi
3595
3596
3597  fi
3598fi
3599if test -z "$CC"; then
3600  # Extract the first word of "cc", so it can be a program name with args.
3601set dummy cc; ac_word=$2
3602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3603$as_echo_n "checking for $ac_word... " >&6; }
3604if ${ac_cv_prog_CC+:} false; then :
3605  $as_echo_n "(cached) " >&6
3606else
3607  if test -n "$CC"; then
3608  ac_cv_prog_CC="$CC" # Let the user override the test.
3609else
3610  ac_prog_rejected=no
3611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612for as_dir in $PATH
3613do
3614  IFS=$as_save_IFS
3615  test -z "$as_dir" && as_dir=.
3616    for ac_exec_ext in '' $ac_executable_extensions; do
3617  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3618    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3619       ac_prog_rejected=yes
3620       continue
3621     fi
3622    ac_cv_prog_CC="cc"
3623    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3624    break 2
3625  fi
3626done
3627  done
3628IFS=$as_save_IFS
3629
3630if test $ac_prog_rejected = yes; then
3631  # We found a bogon in the path, so make sure we never use it.
3632  set dummy $ac_cv_prog_CC
3633  shift
3634  if test $# != 0; then
3635    # We chose a different compiler from the bogus one.
3636    # However, it has the same basename, so the bogon will be chosen
3637    # first if we set CC to just the basename; use the full file name.
3638    shift
3639    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3640  fi
3641fi
3642fi
3643fi
3644CC=$ac_cv_prog_CC
3645if test -n "$CC"; then
3646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3647$as_echo "$CC" >&6; }
3648else
3649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3650$as_echo "no" >&6; }
3651fi
3652
3653
3654fi
3655if test -z "$CC"; then
3656  if test -n "$ac_tool_prefix"; then
3657  for ac_prog in cl.exe
3658  do
3659    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3660set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3662$as_echo_n "checking for $ac_word... " >&6; }
3663if ${ac_cv_prog_CC+:} false; then :
3664  $as_echo_n "(cached) " >&6
3665else
3666  if test -n "$CC"; then
3667  ac_cv_prog_CC="$CC" # Let the user override the test.
3668else
3669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670for as_dir in $PATH
3671do
3672  IFS=$as_save_IFS
3673  test -z "$as_dir" && as_dir=.
3674    for ac_exec_ext in '' $ac_executable_extensions; do
3675  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3676    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3677    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3678    break 2
3679  fi
3680done
3681  done
3682IFS=$as_save_IFS
3683
3684fi
3685fi
3686CC=$ac_cv_prog_CC
3687if test -n "$CC"; then
3688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3689$as_echo "$CC" >&6; }
3690else
3691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3692$as_echo "no" >&6; }
3693fi
3694
3695
3696    test -n "$CC" && break
3697  done
3698fi
3699if test -z "$CC"; then
3700  ac_ct_CC=$CC
3701  for ac_prog in cl.exe
3702do
3703  # Extract the first word of "$ac_prog", so it can be a program name with args.
3704set dummy $ac_prog; ac_word=$2
3705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3706$as_echo_n "checking for $ac_word... " >&6; }
3707if ${ac_cv_prog_ac_ct_CC+:} false; then :
3708  $as_echo_n "(cached) " >&6
3709else
3710  if test -n "$ac_ct_CC"; then
3711  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3712else
3713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714for as_dir in $PATH
3715do
3716  IFS=$as_save_IFS
3717  test -z "$as_dir" && as_dir=.
3718    for ac_exec_ext in '' $ac_executable_extensions; do
3719  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3720    ac_cv_prog_ac_ct_CC="$ac_prog"
3721    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3722    break 2
3723  fi
3724done
3725  done
3726IFS=$as_save_IFS
3727
3728fi
3729fi
3730ac_ct_CC=$ac_cv_prog_ac_ct_CC
3731if test -n "$ac_ct_CC"; then
3732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3733$as_echo "$ac_ct_CC" >&6; }
3734else
3735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3736$as_echo "no" >&6; }
3737fi
3738
3739
3740  test -n "$ac_ct_CC" && break
3741done
3742
3743  if test "x$ac_ct_CC" = x; then
3744    CC=""
3745  else
3746    case $cross_compiling:$ac_tool_warned in
3747yes:)
3748{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3749$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3750ac_tool_warned=yes ;;
3751esac
3752    CC=$ac_ct_CC
3753  fi
3754fi
3755
3756fi
3757
3758
3759test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3760$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3761as_fn_error $? "no acceptable C compiler found in \$PATH
3762See \`config.log' for more details" "$LINENO" 5; }
3763
3764# Provide some information about the compiler.
3765$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3766set X $ac_compile
3767ac_compiler=$2
3768for ac_option in --version -v -V -qversion; do
3769  { { ac_try="$ac_compiler $ac_option >&5"
3770case "(($ac_try" in
3771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3772  *) ac_try_echo=$ac_try;;
3773esac
3774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3775$as_echo "$ac_try_echo"; } >&5
3776  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3777  ac_status=$?
3778  if test -s conftest.err; then
3779    sed '10a\
3780... rest of stderr output deleted ...
3781         10q' conftest.err >conftest.er1
3782    cat conftest.er1 >&5
3783  fi
3784  rm -f conftest.er1 conftest.err
3785  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3786  test $ac_status = 0; }
3787done
3788
3789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790/* end confdefs.h.  */
3791
3792int
3793main ()
3794{
3795
3796  ;
3797  return 0;
3798}
3799_ACEOF
3800ac_clean_files_save=$ac_clean_files
3801ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3802# Try to create an executable without -o first, disregard a.out.
3803# It will help us diagnose broken compilers, and finding out an intuition
3804# of exeext.
3805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3806$as_echo_n "checking whether the C compiler works... " >&6; }
3807ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3808
3809# The possible output files:
3810ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3811
3812ac_rmfiles=
3813for ac_file in $ac_files
3814do
3815  case $ac_file in
3816    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3817    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3818  esac
3819done
3820rm -f $ac_rmfiles
3821
3822if { { ac_try="$ac_link_default"
3823case "(($ac_try" in
3824  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3825  *) ac_try_echo=$ac_try;;
3826esac
3827eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3828$as_echo "$ac_try_echo"; } >&5
3829  (eval "$ac_link_default") 2>&5
3830  ac_status=$?
3831  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3832  test $ac_status = 0; }; then :
3833  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3834# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3835# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3836# so that the user can short-circuit this test for compilers unknown to
3837# Autoconf.
3838for ac_file in $ac_files ''
3839do
3840  test -f "$ac_file" || continue
3841  case $ac_file in
3842    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3843	;;
3844    [ab].out )
3845	# We found the default executable, but exeext='' is most
3846	# certainly right.
3847	break;;
3848    *.* )
3849	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3850	then :; else
3851	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3852	fi
3853	# We set ac_cv_exeext here because the later test for it is not
3854	# safe: cross compilers may not add the suffix if given an `-o'
3855	# argument, so we may need to know it at that point already.
3856	# Even if this section looks crufty: it has the advantage of
3857	# actually working.
3858	break;;
3859    * )
3860	break;;
3861  esac
3862done
3863test "$ac_cv_exeext" = no && ac_cv_exeext=
3864
3865else
3866  ac_file=''
3867fi
3868if test -z "$ac_file"; then :
3869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3870$as_echo "no" >&6; }
3871$as_echo "$as_me: failed program was:" >&5
3872sed 's/^/| /' conftest.$ac_ext >&5
3873
3874{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3875$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3876as_fn_error 77 "C compiler cannot create executables
3877See \`config.log' for more details" "$LINENO" 5; }
3878else
3879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3880$as_echo "yes" >&6; }
3881fi
3882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3883$as_echo_n "checking for C compiler default output file name... " >&6; }
3884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3885$as_echo "$ac_file" >&6; }
3886ac_exeext=$ac_cv_exeext
3887
3888rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3889ac_clean_files=$ac_clean_files_save
3890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3891$as_echo_n "checking for suffix of executables... " >&6; }
3892if { { ac_try="$ac_link"
3893case "(($ac_try" in
3894  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3895  *) ac_try_echo=$ac_try;;
3896esac
3897eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3898$as_echo "$ac_try_echo"; } >&5
3899  (eval "$ac_link") 2>&5
3900  ac_status=$?
3901  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3902  test $ac_status = 0; }; then :
3903  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3904# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3905# work properly (i.e., refer to `conftest.exe'), while it won't with
3906# `rm'.
3907for ac_file in conftest.exe conftest conftest.*; do
3908  test -f "$ac_file" || continue
3909  case $ac_file in
3910    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3911    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3912	  break;;
3913    * ) break;;
3914  esac
3915done
3916else
3917  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3918$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3919as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3920See \`config.log' for more details" "$LINENO" 5; }
3921fi
3922rm -f conftest conftest$ac_cv_exeext
3923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3924$as_echo "$ac_cv_exeext" >&6; }
3925
3926rm -f conftest.$ac_ext
3927EXEEXT=$ac_cv_exeext
3928ac_exeext=$EXEEXT
3929cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930/* end confdefs.h.  */
3931#include <stdio.h>
3932int
3933main ()
3934{
3935FILE *f = fopen ("conftest.out", "w");
3936 return ferror (f) || fclose (f) != 0;
3937
3938  ;
3939  return 0;
3940}
3941_ACEOF
3942ac_clean_files="$ac_clean_files conftest.out"
3943# Check that the compiler produces executables we can run.  If not, either
3944# the compiler is broken, or we cross compile.
3945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3946$as_echo_n "checking whether we are cross compiling... " >&6; }
3947if test "$cross_compiling" != yes; then
3948  { { ac_try="$ac_link"
3949case "(($ac_try" in
3950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951  *) ac_try_echo=$ac_try;;
3952esac
3953eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3954$as_echo "$ac_try_echo"; } >&5
3955  (eval "$ac_link") 2>&5
3956  ac_status=$?
3957  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3958  test $ac_status = 0; }
3959  if { ac_try='./conftest$ac_cv_exeext'
3960  { { case "(($ac_try" in
3961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962  *) ac_try_echo=$ac_try;;
3963esac
3964eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3965$as_echo "$ac_try_echo"; } >&5
3966  (eval "$ac_try") 2>&5
3967  ac_status=$?
3968  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3969  test $ac_status = 0; }; }; then
3970    cross_compiling=no
3971  else
3972    if test "$cross_compiling" = maybe; then
3973	cross_compiling=yes
3974    else
3975	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3976$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3977as_fn_error $? "cannot run C compiled programs.
3978If you meant to cross compile, use \`--host'.
3979See \`config.log' for more details" "$LINENO" 5; }
3980    fi
3981  fi
3982fi
3983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3984$as_echo "$cross_compiling" >&6; }
3985
3986rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3987ac_clean_files=$ac_clean_files_save
3988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3989$as_echo_n "checking for suffix of object files... " >&6; }
3990if ${ac_cv_objext+:} false; then :
3991  $as_echo_n "(cached) " >&6
3992else
3993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994/* end confdefs.h.  */
3995
3996int
3997main ()
3998{
3999
4000  ;
4001  return 0;
4002}
4003_ACEOF
4004rm -f conftest.o conftest.obj
4005if { { ac_try="$ac_compile"
4006case "(($ac_try" in
4007  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4008  *) ac_try_echo=$ac_try;;
4009esac
4010eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4011$as_echo "$ac_try_echo"; } >&5
4012  (eval "$ac_compile") 2>&5
4013  ac_status=$?
4014  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4015  test $ac_status = 0; }; then :
4016  for ac_file in conftest.o conftest.obj conftest.*; do
4017  test -f "$ac_file" || continue;
4018  case $ac_file in
4019    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4020    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4021       break;;
4022  esac
4023done
4024else
4025  $as_echo "$as_me: failed program was:" >&5
4026sed 's/^/| /' conftest.$ac_ext >&5
4027
4028{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4029$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4030as_fn_error $? "cannot compute suffix of object files: cannot compile
4031See \`config.log' for more details" "$LINENO" 5; }
4032fi
4033rm -f conftest.$ac_cv_objext conftest.$ac_ext
4034fi
4035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4036$as_echo "$ac_cv_objext" >&6; }
4037OBJEXT=$ac_cv_objext
4038ac_objext=$OBJEXT
4039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4040$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4041if ${ac_cv_c_compiler_gnu+:} false; then :
4042  $as_echo_n "(cached) " >&6
4043else
4044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045/* end confdefs.h.  */
4046
4047int
4048main ()
4049{
4050#ifndef __GNUC__
4051       choke me
4052#endif
4053
4054  ;
4055  return 0;
4056}
4057_ACEOF
4058if ac_fn_c_try_compile "$LINENO"; then :
4059  ac_compiler_gnu=yes
4060else
4061  ac_compiler_gnu=no
4062fi
4063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4064ac_cv_c_compiler_gnu=$ac_compiler_gnu
4065
4066fi
4067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4068$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4069if test $ac_compiler_gnu = yes; then
4070  GCC=yes
4071else
4072  GCC=
4073fi
4074ac_test_CFLAGS=${CFLAGS+set}
4075ac_save_CFLAGS=$CFLAGS
4076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4077$as_echo_n "checking whether $CC accepts -g... " >&6; }
4078if ${ac_cv_prog_cc_g+:} false; then :
4079  $as_echo_n "(cached) " >&6
4080else
4081  ac_save_c_werror_flag=$ac_c_werror_flag
4082   ac_c_werror_flag=yes
4083   ac_cv_prog_cc_g=no
4084   CFLAGS=""
4085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086/* end confdefs.h.  */
4087
4088int
4089main ()
4090{
4091
4092  ;
4093  return 0;
4094}
4095_ACEOF
4096if ac_fn_c_try_compile "$LINENO"; then :
4097  ac_cv_prog_cc_g=yes
4098else
4099  CFLAGS=""
4100      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101/* end confdefs.h.  */
4102
4103int
4104main ()
4105{
4106
4107  ;
4108  return 0;
4109}
4110_ACEOF
4111if ac_fn_c_try_compile "$LINENO"; then :
4112
4113else
4114  ac_c_werror_flag=$ac_save_c_werror_flag
4115	 CFLAGS=""
4116	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4117/* end confdefs.h.  */
4118
4119int
4120main ()
4121{
4122
4123  ;
4124  return 0;
4125}
4126_ACEOF
4127if ac_fn_c_try_compile "$LINENO"; then :
4128  ac_cv_prog_cc_g=yes
4129fi
4130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4131fi
4132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4133fi
4134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135   ac_c_werror_flag=$ac_save_c_werror_flag
4136fi
4137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4138$as_echo "$ac_cv_prog_cc_g" >&6; }
4139if test "$ac_test_CFLAGS" = set; then
4140  CFLAGS=$ac_save_CFLAGS
4141elif test $ac_cv_prog_cc_g = yes; then
4142  if test "$GCC" = yes; then
4143    CFLAGS=" -O2"
4144  else
4145    CFLAGS=""
4146  fi
4147else
4148  if test "$GCC" = yes; then
4149    CFLAGS="-O2"
4150  else
4151    CFLAGS=
4152  fi
4153fi
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4155$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4156if ${ac_cv_prog_cc_c89+:} false; then :
4157  $as_echo_n "(cached) " >&6
4158else
4159  ac_cv_prog_cc_c89=no
4160ac_save_CC=$CC
4161cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162/* end confdefs.h.  */
4163#include <stdarg.h>
4164#include <stdio.h>
4165struct stat;
4166/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4167struct buf { int x; };
4168FILE * (*rcsopen) (struct buf *, struct stat *, int);
4169static char *e (p, i)
4170     char **p;
4171     int i;
4172{
4173  return p[i];
4174}
4175static char *f (char * (*g) (char **, int), char **p, ...)
4176{
4177  char *s;
4178  va_list v;
4179  va_start (v,p);
4180  s = g (p, va_arg (v,int));
4181  va_end (v);
4182  return s;
4183}
4184
4185/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4186   function prototypes and stuff, but not '\xHH' hex character constants.
4187   These don't provoke an error unfortunately, instead are silently treated
4188   as 'x'.  The following induces an error, until -std is added to get
4189   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4190   array size at least.  It's necessary to write '\x00'==0 to get something
4191   that's true only with -std.  */
4192int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4193
4194/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4195   inside strings and character constants.  */
4196#define FOO(x) 'x'
4197int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4198
4199int test (int i, double x);
4200struct s1 {int (*f) (int a);};
4201struct s2 {int (*f) (double a);};
4202int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4203int argc;
4204char **argv;
4205int
4206main ()
4207{
4208return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4209  ;
4210  return 0;
4211}
4212_ACEOF
4213for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4214	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4215do
4216  CC="$ac_save_CC $ac_arg"
4217  if ac_fn_c_try_compile "$LINENO"; then :
4218  ac_cv_prog_cc_c89=$ac_arg
4219fi
4220rm -f core conftest.err conftest.$ac_objext
4221  test "x$ac_cv_prog_cc_c89" != "xno" && break
4222done
4223rm -f conftest.$ac_ext
4224CC=$ac_save_CC
4225
4226fi
4227# AC_CACHE_VAL
4228case "x$ac_cv_prog_cc_c89" in
4229  x)
4230    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4231$as_echo "none needed" >&6; } ;;
4232  xno)
4233    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4234$as_echo "unsupported" >&6; } ;;
4235  *)
4236    CC="$CC $ac_cv_prog_cc_c89"
4237    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4238$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4239esac
4240if test "x$ac_cv_prog_cc_c89" != xno; then :
4241
4242fi
4243
4244ac_ext=c
4245ac_cpp='$CPP $CPPFLAGS'
4246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4248ac_compiler_gnu=$ac_cv_c_compiler_gnu
4249
4250ac_ext=c
4251ac_cpp='$CPP $CPPFLAGS'
4252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4254ac_compiler_gnu=$ac_cv_c_compiler_gnu
4255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4256$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4257if ${am_cv_prog_cc_c_o+:} false; then :
4258  $as_echo_n "(cached) " >&6
4259else
4260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261/* end confdefs.h.  */
4262
4263int
4264main ()
4265{
4266
4267  ;
4268  return 0;
4269}
4270_ACEOF
4271  # Make sure it works both with $CC and with simple cc.
4272  # Following AC_PROG_CC_C_O, we do the test twice because some
4273  # compilers refuse to overwrite an existing .o file with -o,
4274  # though they will create one.
4275  am_cv_prog_cc_c_o=yes
4276  for am_i in 1 2; do
4277    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4278   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4279   ac_status=$?
4280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281   (exit $ac_status); } \
4282         && test -f conftest2.$ac_objext; then
4283      : OK
4284    else
4285      am_cv_prog_cc_c_o=no
4286      break
4287    fi
4288  done
4289  rm -f core conftest*
4290  unset am_i
4291fi
4292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4293$as_echo "$am_cv_prog_cc_c_o" >&6; }
4294if test "$am_cv_prog_cc_c_o" != yes; then
4295   # Losing compiler, so override with the script.
4296   # FIXME: It is wrong to rewrite CC.
4297   # But if we don't then we get into trouble of one sort or another.
4298   # A longer-term fix would be to have automake use am__CC in this case,
4299   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4300   CC="$am_aux_dir/compile $CC"
4301fi
4302ac_ext=c
4303ac_cpp='$CPP $CPPFLAGS'
4304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4306ac_compiler_gnu=$ac_cv_c_compiler_gnu
4307
4308DEPDIR="${am__leading_dot}deps"
4309
4310ac_config_commands="$ac_config_commands depfiles"
4311
4312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4313$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4314cat > confinc.mk << 'END'
4315am__doit:
4316	@echo this is the am__doit target >confinc.out
4317.PHONY: am__doit
4318END
4319am__include="#"
4320am__quote=
4321# BSD make does it like this.
4322echo '.include "confinc.mk" # ignored' > confmf.BSD
4323# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4324echo 'include confinc.mk # ignored' > confmf.GNU
4325_am_result=no
4326for s in GNU BSD; do
4327  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4328   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4329   ac_status=$?
4330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331   (exit $ac_status); }
4332  case $?:`cat confinc.out 2>/dev/null` in #(
4333  '0:this is the am__doit target') :
4334    case $s in #(
4335  BSD) :
4336    am__include='.include' am__quote='"' ;; #(
4337  *) :
4338    am__include='include' am__quote='' ;;
4339esac ;; #(
4340  *) :
4341     ;;
4342esac
4343  if test "$am__include" != "#"; then
4344    _am_result="yes ($s style)"
4345    break
4346  fi
4347done
4348rm -f confinc.* confmf.*
4349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4350$as_echo "${_am_result}" >&6; }
4351
4352# Check whether --enable-dependency-tracking was given.
4353if test "${enable_dependency_tracking+set}" = set; then :
4354  enableval=$enable_dependency_tracking;
4355fi
4356
4357if test "x$enable_dependency_tracking" != xno; then
4358  am_depcomp="$ac_aux_dir/depcomp"
4359  AMDEPBACKSLASH='\'
4360  am__nodep='_no'
4361fi
4362 if test "x$enable_dependency_tracking" != xno; then
4363  AMDEP_TRUE=
4364  AMDEP_FALSE='#'
4365else
4366  AMDEP_TRUE='#'
4367  AMDEP_FALSE=
4368fi
4369
4370
4371
4372depcc="$CC"   am_compiler_list=
4373
4374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4375$as_echo_n "checking dependency style of $depcc... " >&6; }
4376if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4377  $as_echo_n "(cached) " >&6
4378else
4379  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4380  # We make a subdir and do the tests there.  Otherwise we can end up
4381  # making bogus files that we don't know about and never remove.  For
4382  # instance it was reported that on HP-UX the gcc test will end up
4383  # making a dummy file named 'D' -- because '-MD' means "put the output
4384  # in D".
4385  rm -rf conftest.dir
4386  mkdir conftest.dir
4387  # Copy depcomp to subdir because otherwise we won't find it if we're
4388  # using a relative directory.
4389  cp "$am_depcomp" conftest.dir
4390  cd conftest.dir
4391  # We will build objects and dependencies in a subdirectory because
4392  # it helps to detect inapplicable dependency modes.  For instance
4393  # both Tru64's cc and ICC support -MD to output dependencies as a
4394  # side effect of compilation, but ICC will put the dependencies in
4395  # the current directory while Tru64 will put them in the object
4396  # directory.
4397  mkdir sub
4398
4399  am_cv_CC_dependencies_compiler_type=none
4400  if test "$am_compiler_list" = ""; then
4401     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4402  fi
4403  am__universal=false
4404  case " $depcc " in #(
4405     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4406     esac
4407
4408  for depmode in $am_compiler_list; do
4409    # Setup a source with many dependencies, because some compilers
4410    # like to wrap large dependency lists on column 80 (with \), and
4411    # we should not choose a depcomp mode which is confused by this.
4412    #
4413    # We need to recreate these files for each test, as the compiler may
4414    # overwrite some of them when testing with obscure command lines.
4415    # This happens at least with the AIX C compiler.
4416    : > sub/conftest.c
4417    for i in 1 2 3 4 5 6; do
4418      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4419      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4420      # Solaris 10 /bin/sh.
4421      echo '/* dummy */' > sub/conftst$i.h
4422    done
4423    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4424
4425    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4426    # mode.  It turns out that the SunPro C++ compiler does not properly
4427    # handle '-M -o', and we need to detect this.  Also, some Intel
4428    # versions had trouble with output in subdirs.
4429    am__obj=sub/conftest.${OBJEXT-o}
4430    am__minus_obj="-o $am__obj"
4431    case $depmode in
4432    gcc)
4433      # This depmode causes a compiler race in universal mode.
4434      test "$am__universal" = false || continue
4435      ;;
4436    nosideeffect)
4437      # After this tag, mechanisms are not by side-effect, so they'll
4438      # only be used when explicitly requested.
4439      if test "x$enable_dependency_tracking" = xyes; then
4440	continue
4441      else
4442	break
4443      fi
4444      ;;
4445    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4446      # This compiler won't grok '-c -o', but also, the minuso test has
4447      # not run yet.  These depmodes are late enough in the game, and
4448      # so weak that their functioning should not be impacted.
4449      am__obj=conftest.${OBJEXT-o}
4450      am__minus_obj=
4451      ;;
4452    none) break ;;
4453    esac
4454    if depmode=$depmode \
4455       source=sub/conftest.c object=$am__obj \
4456       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4457       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4458         >/dev/null 2>conftest.err &&
4459       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4460       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4461       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4462       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4463      # icc doesn't choke on unknown options, it will just issue warnings
4464      # or remarks (even with -Werror).  So we grep stderr for any message
4465      # that says an option was ignored or not supported.
4466      # When given -MP, icc 7.0 and 7.1 complain thusly:
4467      #   icc: Command line warning: ignoring option '-M'; no argument required
4468      # The diagnosis changed in icc 8.0:
4469      #   icc: Command line remark: option '-MP' not supported
4470      if (grep 'ignoring option' conftest.err ||
4471          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4472        am_cv_CC_dependencies_compiler_type=$depmode
4473        break
4474      fi
4475    fi
4476  done
4477
4478  cd ..
4479  rm -rf conftest.dir
4480else
4481  am_cv_CC_dependencies_compiler_type=none
4482fi
4483
4484fi
4485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4486$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4487CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4488
4489 if
4490  test "x$enable_dependency_tracking" != xno \
4491  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4492  am__fastdepCC_TRUE=
4493  am__fastdepCC_FALSE='#'
4494else
4495  am__fastdepCC_TRUE='#'
4496  am__fastdepCC_FALSE=
4497fi
4498
4499
4500ac_ext=c
4501ac_cpp='$CPP $CPPFLAGS'
4502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4504ac_compiler_gnu=$ac_cv_c_compiler_gnu
4505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4506$as_echo_n "checking how to run the C preprocessor... " >&6; }
4507# On Suns, sometimes $CPP names a directory.
4508if test -n "$CPP" && test -d "$CPP"; then
4509  CPP=
4510fi
4511if test -z "$CPP"; then
4512  if ${ac_cv_prog_CPP+:} false; then :
4513  $as_echo_n "(cached) " >&6
4514else
4515      # Double quotes because CPP needs to be expanded
4516    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4517    do
4518      ac_preproc_ok=false
4519for ac_c_preproc_warn_flag in '' yes
4520do
4521  # Use a header file that comes with gcc, so configuring glibc
4522  # with a fresh cross-compiler works.
4523  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4524  # <limits.h> exists even on freestanding compilers.
4525  # On the NeXT, cc -E runs the code through the compiler's parser,
4526  # not just through cpp. "Syntax error" is here to catch this case.
4527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528/* end confdefs.h.  */
4529#ifdef __STDC__
4530# include <limits.h>
4531#else
4532# include <assert.h>
4533#endif
4534		     Syntax error
4535_ACEOF
4536if ac_fn_c_try_cpp "$LINENO"; then :
4537
4538else
4539  # Broken: fails on valid input.
4540continue
4541fi
4542rm -f conftest.err conftest.i conftest.$ac_ext
4543
4544  # OK, works on sane cases.  Now check whether nonexistent headers
4545  # can be detected and how.
4546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547/* end confdefs.h.  */
4548#include <ac_nonexistent.h>
4549_ACEOF
4550if ac_fn_c_try_cpp "$LINENO"; then :
4551  # Broken: success on invalid input.
4552continue
4553else
4554  # Passes both tests.
4555ac_preproc_ok=:
4556break
4557fi
4558rm -f conftest.err conftest.i conftest.$ac_ext
4559
4560done
4561# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4562rm -f conftest.i conftest.err conftest.$ac_ext
4563if $ac_preproc_ok; then :
4564  break
4565fi
4566
4567    done
4568    ac_cv_prog_CPP=$CPP
4569
4570fi
4571  CPP=$ac_cv_prog_CPP
4572else
4573  ac_cv_prog_CPP=$CPP
4574fi
4575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4576$as_echo "$CPP" >&6; }
4577ac_preproc_ok=false
4578for ac_c_preproc_warn_flag in '' yes
4579do
4580  # Use a header file that comes with gcc, so configuring glibc
4581  # with a fresh cross-compiler works.
4582  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4583  # <limits.h> exists even on freestanding compilers.
4584  # On the NeXT, cc -E runs the code through the compiler's parser,
4585  # not just through cpp. "Syntax error" is here to catch this case.
4586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4587/* end confdefs.h.  */
4588#ifdef __STDC__
4589# include <limits.h>
4590#else
4591# include <assert.h>
4592#endif
4593		     Syntax error
4594_ACEOF
4595if ac_fn_c_try_cpp "$LINENO"; then :
4596
4597else
4598  # Broken: fails on valid input.
4599continue
4600fi
4601rm -f conftest.err conftest.i conftest.$ac_ext
4602
4603  # OK, works on sane cases.  Now check whether nonexistent headers
4604  # can be detected and how.
4605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606/* end confdefs.h.  */
4607#include <ac_nonexistent.h>
4608_ACEOF
4609if ac_fn_c_try_cpp "$LINENO"; then :
4610  # Broken: success on invalid input.
4611continue
4612else
4613  # Passes both tests.
4614ac_preproc_ok=:
4615break
4616fi
4617rm -f conftest.err conftest.i conftest.$ac_ext
4618
4619done
4620# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4621rm -f conftest.i conftest.err conftest.$ac_ext
4622if $ac_preproc_ok; then :
4623
4624else
4625  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4626$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4627as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4628See \`config.log' for more details" "$LINENO" 5; }
4629fi
4630
4631ac_ext=c
4632ac_cpp='$CPP $CPPFLAGS'
4633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4635ac_compiler_gnu=$ac_cv_c_compiler_gnu
4636
4637ac_ext=cpp
4638ac_cpp='$CXXCPP $CPPFLAGS'
4639ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4640ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4641ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4642if test -z "$CXX"; then
4643  if test -n "$CCC"; then
4644    CXX=$CCC
4645  else
4646    if test -n "$ac_tool_prefix"; then
4647  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4648  do
4649    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4650set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4652$as_echo_n "checking for $ac_word... " >&6; }
4653if ${ac_cv_prog_CXX+:} false; then :
4654  $as_echo_n "(cached) " >&6
4655else
4656  if test -n "$CXX"; then
4657  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4658else
4659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660for as_dir in $PATH
4661do
4662  IFS=$as_save_IFS
4663  test -z "$as_dir" && as_dir=.
4664    for ac_exec_ext in '' $ac_executable_extensions; do
4665  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4666    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4667    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4668    break 2
4669  fi
4670done
4671  done
4672IFS=$as_save_IFS
4673
4674fi
4675fi
4676CXX=$ac_cv_prog_CXX
4677if test -n "$CXX"; then
4678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4679$as_echo "$CXX" >&6; }
4680else
4681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4682$as_echo "no" >&6; }
4683fi
4684
4685
4686    test -n "$CXX" && break
4687  done
4688fi
4689if test -z "$CXX"; then
4690  ac_ct_CXX=$CXX
4691  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4692do
4693  # Extract the first word of "$ac_prog", so it can be a program name with args.
4694set dummy $ac_prog; ac_word=$2
4695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4696$as_echo_n "checking for $ac_word... " >&6; }
4697if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4698  $as_echo_n "(cached) " >&6
4699else
4700  if test -n "$ac_ct_CXX"; then
4701  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4702else
4703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704for as_dir in $PATH
4705do
4706  IFS=$as_save_IFS
4707  test -z "$as_dir" && as_dir=.
4708    for ac_exec_ext in '' $ac_executable_extensions; do
4709  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4710    ac_cv_prog_ac_ct_CXX="$ac_prog"
4711    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4712    break 2
4713  fi
4714done
4715  done
4716IFS=$as_save_IFS
4717
4718fi
4719fi
4720ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4721if test -n "$ac_ct_CXX"; then
4722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4723$as_echo "$ac_ct_CXX" >&6; }
4724else
4725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4726$as_echo "no" >&6; }
4727fi
4728
4729
4730  test -n "$ac_ct_CXX" && break
4731done
4732
4733  if test "x$ac_ct_CXX" = x; then
4734    CXX="g++"
4735  else
4736    case $cross_compiling:$ac_tool_warned in
4737yes:)
4738{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4739$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4740ac_tool_warned=yes ;;
4741esac
4742    CXX=$ac_ct_CXX
4743  fi
4744fi
4745
4746  fi
4747fi
4748# Provide some information about the compiler.
4749$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4750set X $ac_compile
4751ac_compiler=$2
4752for ac_option in --version -v -V -qversion; do
4753  { { ac_try="$ac_compiler $ac_option >&5"
4754case "(($ac_try" in
4755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4756  *) ac_try_echo=$ac_try;;
4757esac
4758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4759$as_echo "$ac_try_echo"; } >&5
4760  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4761  ac_status=$?
4762  if test -s conftest.err; then
4763    sed '10a\
4764... rest of stderr output deleted ...
4765         10q' conftest.err >conftest.er1
4766    cat conftest.er1 >&5
4767  fi
4768  rm -f conftest.er1 conftest.err
4769  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4770  test $ac_status = 0; }
4771done
4772
4773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4774$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4775if ${ac_cv_cxx_compiler_gnu+:} false; then :
4776  $as_echo_n "(cached) " >&6
4777else
4778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779/* end confdefs.h.  */
4780
4781int
4782main ()
4783{
4784#ifndef __GNUC__
4785       choke me
4786#endif
4787
4788  ;
4789  return 0;
4790}
4791_ACEOF
4792if ac_fn_cxx_try_compile "$LINENO"; then :
4793  ac_compiler_gnu=yes
4794else
4795  ac_compiler_gnu=no
4796fi
4797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4798ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4799
4800fi
4801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4802$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4803if test $ac_compiler_gnu = yes; then
4804  GXX=yes
4805else
4806  GXX=
4807fi
4808ac_test_CXXFLAGS=${CXXFLAGS+set}
4809ac_save_CXXFLAGS=$CXXFLAGS
4810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4811$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4812if ${ac_cv_prog_cxx_g+:} false; then :
4813  $as_echo_n "(cached) " >&6
4814else
4815  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4816   ac_cxx_werror_flag=yes
4817   ac_cv_prog_cxx_g=no
4818   CXXFLAGS=""
4819   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820/* end confdefs.h.  */
4821
4822int
4823main ()
4824{
4825
4826  ;
4827  return 0;
4828}
4829_ACEOF
4830if ac_fn_cxx_try_compile "$LINENO"; then :
4831  ac_cv_prog_cxx_g=yes
4832else
4833  CXXFLAGS=""
4834      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4835/* end confdefs.h.  */
4836
4837int
4838main ()
4839{
4840
4841  ;
4842  return 0;
4843}
4844_ACEOF
4845if ac_fn_cxx_try_compile "$LINENO"; then :
4846
4847else
4848  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4849	 CXXFLAGS=""
4850	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4851/* end confdefs.h.  */
4852
4853int
4854main ()
4855{
4856
4857  ;
4858  return 0;
4859}
4860_ACEOF
4861if ac_fn_cxx_try_compile "$LINENO"; then :
4862  ac_cv_prog_cxx_g=yes
4863fi
4864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4865fi
4866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4867fi
4868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4869   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4870fi
4871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4872$as_echo "$ac_cv_prog_cxx_g" >&6; }
4873if test "$ac_test_CXXFLAGS" = set; then
4874  CXXFLAGS=$ac_save_CXXFLAGS
4875elif test $ac_cv_prog_cxx_g = yes; then
4876  if test "$GXX" = yes; then
4877    CXXFLAGS=" -O2"
4878  else
4879    CXXFLAGS=""
4880  fi
4881else
4882  if test "$GXX" = yes; then
4883    CXXFLAGS="-O2"
4884  else
4885    CXXFLAGS=
4886  fi
4887fi
4888ac_ext=c
4889ac_cpp='$CPP $CPPFLAGS'
4890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4892ac_compiler_gnu=$ac_cv_c_compiler_gnu
4893
4894depcc="$CXX"  am_compiler_list=
4895
4896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4897$as_echo_n "checking dependency style of $depcc... " >&6; }
4898if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4899  $as_echo_n "(cached) " >&6
4900else
4901  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4902  # We make a subdir and do the tests there.  Otherwise we can end up
4903  # making bogus files that we don't know about and never remove.  For
4904  # instance it was reported that on HP-UX the gcc test will end up
4905  # making a dummy file named 'D' -- because '-MD' means "put the output
4906  # in D".
4907  rm -rf conftest.dir
4908  mkdir conftest.dir
4909  # Copy depcomp to subdir because otherwise we won't find it if we're
4910  # using a relative directory.
4911  cp "$am_depcomp" conftest.dir
4912  cd conftest.dir
4913  # We will build objects and dependencies in a subdirectory because
4914  # it helps to detect inapplicable dependency modes.  For instance
4915  # both Tru64's cc and ICC support -MD to output dependencies as a
4916  # side effect of compilation, but ICC will put the dependencies in
4917  # the current directory while Tru64 will put them in the object
4918  # directory.
4919  mkdir sub
4920
4921  am_cv_CXX_dependencies_compiler_type=none
4922  if test "$am_compiler_list" = ""; then
4923     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4924  fi
4925  am__universal=false
4926  case " $depcc " in #(
4927     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4928     esac
4929
4930  for depmode in $am_compiler_list; do
4931    # Setup a source with many dependencies, because some compilers
4932    # like to wrap large dependency lists on column 80 (with \), and
4933    # we should not choose a depcomp mode which is confused by this.
4934    #
4935    # We need to recreate these files for each test, as the compiler may
4936    # overwrite some of them when testing with obscure command lines.
4937    # This happens at least with the AIX C compiler.
4938    : > sub/conftest.c
4939    for i in 1 2 3 4 5 6; do
4940      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4941      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4942      # Solaris 10 /bin/sh.
4943      echo '/* dummy */' > sub/conftst$i.h
4944    done
4945    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4946
4947    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4948    # mode.  It turns out that the SunPro C++ compiler does not properly
4949    # handle '-M -o', and we need to detect this.  Also, some Intel
4950    # versions had trouble with output in subdirs.
4951    am__obj=sub/conftest.${OBJEXT-o}
4952    am__minus_obj="-o $am__obj"
4953    case $depmode in
4954    gcc)
4955      # This depmode causes a compiler race in universal mode.
4956      test "$am__universal" = false || continue
4957      ;;
4958    nosideeffect)
4959      # After this tag, mechanisms are not by side-effect, so they'll
4960      # only be used when explicitly requested.
4961      if test "x$enable_dependency_tracking" = xyes; then
4962	continue
4963      else
4964	break
4965      fi
4966      ;;
4967    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4968      # This compiler won't grok '-c -o', but also, the minuso test has
4969      # not run yet.  These depmodes are late enough in the game, and
4970      # so weak that their functioning should not be impacted.
4971      am__obj=conftest.${OBJEXT-o}
4972      am__minus_obj=
4973      ;;
4974    none) break ;;
4975    esac
4976    if depmode=$depmode \
4977       source=sub/conftest.c object=$am__obj \
4978       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4979       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4980         >/dev/null 2>conftest.err &&
4981       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4982       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4983       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4984       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4985      # icc doesn't choke on unknown options, it will just issue warnings
4986      # or remarks (even with -Werror).  So we grep stderr for any message
4987      # that says an option was ignored or not supported.
4988      # When given -MP, icc 7.0 and 7.1 complain thusly:
4989      #   icc: Command line warning: ignoring option '-M'; no argument required
4990      # The diagnosis changed in icc 8.0:
4991      #   icc: Command line remark: option '-MP' not supported
4992      if (grep 'ignoring option' conftest.err ||
4993          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4994        am_cv_CXX_dependencies_compiler_type=$depmode
4995        break
4996      fi
4997    fi
4998  done
4999
5000  cd ..
5001  rm -rf conftest.dir
5002else
5003  am_cv_CXX_dependencies_compiler_type=none
5004fi
5005
5006fi
5007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5008$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5009CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5010
5011 if
5012  test "x$enable_dependency_tracking" != xno \
5013  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5014  am__fastdepCXX_TRUE=
5015  am__fastdepCXX_FALSE='#'
5016else
5017  am__fastdepCXX_TRUE='#'
5018  am__fastdepCXX_FALSE=
5019fi
5020
5021
5022
5023
5024
5025if test -n "$ac_tool_prefix"; then
5026  for ac_prog in ar lib "link -lib"
5027  do
5028    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5029set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5031$as_echo_n "checking for $ac_word... " >&6; }
5032if ${ac_cv_prog_AR+:} false; then :
5033  $as_echo_n "(cached) " >&6
5034else
5035  if test -n "$AR"; then
5036  ac_cv_prog_AR="$AR" # Let the user override the test.
5037else
5038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039for as_dir in $PATH
5040do
5041  IFS=$as_save_IFS
5042  test -z "$as_dir" && as_dir=.
5043    for ac_exec_ext in '' $ac_executable_extensions; do
5044  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5045    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5046    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5047    break 2
5048  fi
5049done
5050  done
5051IFS=$as_save_IFS
5052
5053fi
5054fi
5055AR=$ac_cv_prog_AR
5056if test -n "$AR"; then
5057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5058$as_echo "$AR" >&6; }
5059else
5060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5061$as_echo "no" >&6; }
5062fi
5063
5064
5065    test -n "$AR" && break
5066  done
5067fi
5068if test -z "$AR"; then
5069  ac_ct_AR=$AR
5070  for ac_prog in ar lib "link -lib"
5071do
5072  # Extract the first word of "$ac_prog", so it can be a program name with args.
5073set dummy $ac_prog; ac_word=$2
5074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5075$as_echo_n "checking for $ac_word... " >&6; }
5076if ${ac_cv_prog_ac_ct_AR+:} false; then :
5077  $as_echo_n "(cached) " >&6
5078else
5079  if test -n "$ac_ct_AR"; then
5080  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5081else
5082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083for as_dir in $PATH
5084do
5085  IFS=$as_save_IFS
5086  test -z "$as_dir" && as_dir=.
5087    for ac_exec_ext in '' $ac_executable_extensions; do
5088  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5089    ac_cv_prog_ac_ct_AR="$ac_prog"
5090    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5091    break 2
5092  fi
5093done
5094  done
5095IFS=$as_save_IFS
5096
5097fi
5098fi
5099ac_ct_AR=$ac_cv_prog_ac_ct_AR
5100if test -n "$ac_ct_AR"; then
5101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5102$as_echo "$ac_ct_AR" >&6; }
5103else
5104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5105$as_echo "no" >&6; }
5106fi
5107
5108
5109  test -n "$ac_ct_AR" && break
5110done
5111
5112  if test "x$ac_ct_AR" = x; then
5113    AR="false"
5114  else
5115    case $cross_compiling:$ac_tool_warned in
5116yes:)
5117{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5118$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5119ac_tool_warned=yes ;;
5120esac
5121    AR=$ac_ct_AR
5122  fi
5123fi
5124
5125: ${AR=ar}
5126
5127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5128$as_echo_n "checking the archiver ($AR) interface... " >&6; }
5129if ${am_cv_ar_interface+:} false; then :
5130  $as_echo_n "(cached) " >&6
5131else
5132  ac_ext=c
5133ac_cpp='$CPP $CPPFLAGS'
5134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5136ac_compiler_gnu=$ac_cv_c_compiler_gnu
5137
5138   am_cv_ar_interface=ar
5139   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5140/* end confdefs.h.  */
5141int some_variable = 0;
5142_ACEOF
5143if ac_fn_c_try_compile "$LINENO"; then :
5144  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5145      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5146  (eval $am_ar_try) 2>&5
5147  ac_status=$?
5148  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5149  test $ac_status = 0; }
5150      if test "$ac_status" -eq 0; then
5151        am_cv_ar_interface=ar
5152      else
5153        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5154        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5155  (eval $am_ar_try) 2>&5
5156  ac_status=$?
5157  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5158  test $ac_status = 0; }
5159        if test "$ac_status" -eq 0; then
5160          am_cv_ar_interface=lib
5161        else
5162          am_cv_ar_interface=unknown
5163        fi
5164      fi
5165      rm -f conftest.lib libconftest.a
5166
5167fi
5168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5169   ac_ext=c
5170ac_cpp='$CPP $CPPFLAGS'
5171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5173ac_compiler_gnu=$ac_cv_c_compiler_gnu
5174
5175fi
5176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5177$as_echo "$am_cv_ar_interface" >&6; }
5178
5179case $am_cv_ar_interface in
5180ar)
5181  ;;
5182lib)
5183  # Microsoft lib, so override with the ar-lib wrapper script.
5184  # FIXME: It is wrong to rewrite AR.
5185  # But if we don't then we get into trouble of one sort or another.
5186  # A longer-term fix would be to have automake use am__AR in this case,
5187  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5188  # similar.
5189  AR="$am_aux_dir/ar-lib $AR"
5190  ;;
5191unknown)
5192  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5193  ;;
5194esac
5195
5196
5197SED=${SED-sed}
5198
5199
5200 if test "x$CXX" != "x" && test "x$CXX" != "xno"; then
5201  HAVE_CXX_TRUE=
5202  HAVE_CXX_FALSE='#'
5203else
5204  HAVE_CXX_TRUE='#'
5205  HAVE_CXX_FALSE=
5206fi
5207
5208
5209
5210# BEGIN GP_PEDANTIC_COMPILER_FLAGS([C90],[C],[-std=c90])
5211ac_ext=c
5212ac_cpp='$CPP $CPPFLAGS'
5213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5215ac_compiler_gnu=$ac_cv_c_compiler_gnu
5216
5217# BEGIN _GP_PEDANTIC_COMPILER_FLAGS([CFLAGS],[C90],[-std=c90])
5218gp_compiler_flags_saved_CFLAGS="$CFLAGS"
5219CFLAGS=""
5220# BEGIN __GP_PEDANTIC_COMPILER_FLAGS([CFLAGS],[GP_PEDANTIC_CFLAGS_C90],[GP_HAVE_PEDANTIC_FLAGS_C90],[-std=c90])
5221gp_have_pedantic_compiler=yes
5222# BEGIN GP_CONDITIONAL_COMPILE_FLAGS([CFLAGS],[-std=c90])
5223if ${CFLAGS:+false} :; then :
5224    CFLAGS="-std=c90"
5225
5226else
5227    CFLAGS="${CFLAGS} -std=c90"
5228
5229fi
5230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFLAGS=\"$CFLAGS\" compiles" >&5
5231$as_echo_n "checking whether CFLAGS=\"$CFLAGS\" compiles... " >&6; }
5232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5233/* end confdefs.h.  */
5234
5235#include <stdio.h>
5236int main(int argc, char *argv[])
5237{
5238  int i;
5239  /* Use argc and argv to prevent warning about unused function params */
5240  for (i=0; i<argc; ++i) {
5241    printf("  %d %s\n", i, argv[i]);
5242  }
5243  return 0;
5244}
5245
5246_ACEOF
5247if ac_fn_c_try_compile "$LINENO"; then :
5248    : "Added flag -std=c90 to CFLAGS and it works"
5249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5250$as_echo "yes" >&6; }
5251
5252else
5253    : "Added flag -std=c90 to CFLAGS and it does not work"
5254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5255$as_echo "no" >&6; }
5256  gp_have_pedantic_compiler=no
5257
5258fi
5259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5260# END GP_CONDITIONAL_COMPILE_FLAGS([CFLAGS],[-std=c90])
5261if test "x$gp_have_pedantic_compiler" = xyes; then :
5262    # BEGIN GP_CONDITIONAL_COMPILE_FLAGS([CFLAGS],[-pedantic -Wall -Wextra -Werror])
5263if ${CFLAGS:+false} :; then :
5264    CFLAGS="-pedantic -Wall -Wextra -Werror"
5265
5266else
5267    CFLAGS="${CFLAGS} -pedantic -Wall -Wextra -Werror"
5268
5269fi
5270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFLAGS=\"$CFLAGS\" compiles" >&5
5271$as_echo_n "checking whether CFLAGS=\"$CFLAGS\" compiles... " >&6; }
5272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273/* end confdefs.h.  */
5274
5275#include <stdio.h>
5276int main(int argc, char *argv[])
5277{
5278  int i;
5279  /* Use argc and argv to prevent warning about unused function params */
5280  for (i=0; i<argc; ++i) {
5281    printf("  %d %s\n", i, argv[i]);
5282  }
5283  return 0;
5284}
5285
5286_ACEOF
5287if ac_fn_c_try_compile "$LINENO"; then :
5288    : "Added flag -pedantic -Wall -Wextra -Werror to CFLAGS and it works"
5289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5290$as_echo "yes" >&6; }
5291
5292else
5293    : "Added flag -pedantic -Wall -Wextra -Werror to CFLAGS and it does not work"
5294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5295$as_echo "no" >&6; }
5296  gp_have_pedantic_compiler=no
5297
5298fi
5299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5300# END GP_CONDITIONAL_COMPILE_FLAGS([CFLAGS],[-pedantic -Wall -Wextra -Werror])
5301
5302fi
5303 if test "x$gp_have_pedantic_compiler" = "xyes"; then
5304  GP_HAVE_PEDANTIC_FLAGS_C90_TRUE=
5305  GP_HAVE_PEDANTIC_FLAGS_C90_FALSE='#'
5306else
5307  GP_HAVE_PEDANTIC_FLAGS_C90_TRUE='#'
5308  GP_HAVE_PEDANTIC_FLAGS_C90_FALSE=
5309fi
5310
5311GP_PEDANTIC_CFLAGS_C90="$CFLAGS"
5312
5313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to test pedantic -std=c90" >&5
5314$as_echo_n "checking whether to test pedantic -std=c90... " >&6; }
5315if test -z "$GP_HAVE_PEDANTIC_FLAGS_C90_TRUE"; then :
5316    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5317$as_echo "yes" >&6; }
5318
5319else
5320    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5321$as_echo "no" >&6; }
5322
5323fi
5324# END __GP_PEDANTIC_COMPILER_FLAGS([CFLAGS],[GP_PEDANTIC_CFLAGS_C90],[GP_HAVE_PEDANTIC_FLAGS_C90],[-std=c90])
5325
5326GP_PEDANTIC_CFLAGS_C90="$CFLAGS"
5327CFLAGS="$gp_compiler_flags_saved_CFLAGS"
5328# END _GP_PEDANTIC_COMPILER_FLAGS([CFLAGS],[C90],[-std=c90])
5329
5330ac_ext=c
5331ac_cpp='$CPP $CPPFLAGS'
5332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5334ac_compiler_gnu=$ac_cv_c_compiler_gnu
5335
5336# END GP_PEDANTIC_COMPILER_FLAGS([C90],[C],[-std=c90])
5337
5338# BEGIN GP_PEDANTIC_COMPILER_FLAGS([C99],[C],[-std=c99])
5339ac_ext=c
5340ac_cpp='$CPP $CPPFLAGS'
5341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5343ac_compiler_gnu=$ac_cv_c_compiler_gnu
5344
5345# BEGIN _GP_PEDANTIC_COMPILER_FLAGS([CFLAGS],[C99],[-std=c99])
5346gp_compiler_flags_saved_CFLAGS="$CFLAGS"
5347CFLAGS=""
5348# BEGIN __GP_PEDANTIC_COMPILER_FLAGS([CFLAGS],[GP_PEDANTIC_CFLAGS_C99],[GP_HAVE_PEDANTIC_FLAGS_C99],[-std=c99])
5349gp_have_pedantic_compiler=yes
5350# BEGIN GP_CONDITIONAL_COMPILE_FLAGS([CFLAGS],[-std=c99])
5351if ${CFLAGS:+false} :; then :
5352    CFLAGS="-std=c99"
5353
5354else
5355    CFLAGS="${CFLAGS} -std=c99"
5356
5357fi
5358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFLAGS=\"$CFLAGS\" compiles" >&5
5359$as_echo_n "checking whether CFLAGS=\"$CFLAGS\" compiles... " >&6; }
5360cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361/* end confdefs.h.  */
5362
5363#include <stdio.h>
5364int main(int argc, char *argv[])
5365{
5366  int i;
5367  /* Use argc and argv to prevent warning about unused function params */
5368  for (i=0; i<argc; ++i) {
5369    printf("  %d %s\n", i, argv[i]);
5370  }
5371  return 0;
5372}
5373
5374_ACEOF
5375if ac_fn_c_try_compile "$LINENO"; then :
5376    : "Added flag -std=c99 to CFLAGS and it works"
5377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5378$as_echo "yes" >&6; }
5379
5380else
5381    : "Added flag -std=c99 to CFLAGS and it does not work"
5382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5383$as_echo "no" >&6; }
5384  gp_have_pedantic_compiler=no
5385
5386fi
5387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5388# END GP_CONDITIONAL_COMPILE_FLAGS([CFLAGS],[-std=c99])
5389if test "x$gp_have_pedantic_compiler" = xyes; then :
5390    # BEGIN GP_CONDITIONAL_COMPILE_FLAGS([CFLAGS],[-pedantic -Wall -Wextra -Werror])
5391if ${CFLAGS:+false} :; then :
5392    CFLAGS="-pedantic -Wall -Wextra -Werror"
5393
5394else
5395    CFLAGS="${CFLAGS} -pedantic -Wall -Wextra -Werror"
5396
5397fi
5398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFLAGS=\"$CFLAGS\" compiles" >&5
5399$as_echo_n "checking whether CFLAGS=\"$CFLAGS\" compiles... " >&6; }
5400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401/* end confdefs.h.  */
5402
5403#include <stdio.h>
5404int main(int argc, char *argv[])
5405{
5406  int i;
5407  /* Use argc and argv to prevent warning about unused function params */
5408  for (i=0; i<argc; ++i) {
5409    printf("  %d %s\n", i, argv[i]);
5410  }
5411  return 0;
5412}
5413
5414_ACEOF
5415if ac_fn_c_try_compile "$LINENO"; then :
5416    : "Added flag -pedantic -Wall -Wextra -Werror to CFLAGS and it works"
5417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5418$as_echo "yes" >&6; }
5419
5420else
5421    : "Added flag -pedantic -Wall -Wextra -Werror to CFLAGS and it does not work"
5422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423$as_echo "no" >&6; }
5424  gp_have_pedantic_compiler=no
5425
5426fi
5427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5428# END GP_CONDITIONAL_COMPILE_FLAGS([CFLAGS],[-pedantic -Wall -Wextra -Werror])
5429
5430fi
5431 if test "x$gp_have_pedantic_compiler" = "xyes"; then
5432  GP_HAVE_PEDANTIC_FLAGS_C99_TRUE=
5433  GP_HAVE_PEDANTIC_FLAGS_C99_FALSE='#'
5434else
5435  GP_HAVE_PEDANTIC_FLAGS_C99_TRUE='#'
5436  GP_HAVE_PEDANTIC_FLAGS_C99_FALSE=
5437fi
5438
5439GP_PEDANTIC_CFLAGS_C99="$CFLAGS"
5440
5441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to test pedantic -std=c99" >&5
5442$as_echo_n "checking whether to test pedantic -std=c99... " >&6; }
5443if test -z "$GP_HAVE_PEDANTIC_FLAGS_C99_TRUE"; then :
5444    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5445$as_echo "yes" >&6; }
5446
5447else
5448    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5449$as_echo "no" >&6; }
5450
5451fi
5452# END __GP_PEDANTIC_COMPILER_FLAGS([CFLAGS],[GP_PEDANTIC_CFLAGS_C99],[GP_HAVE_PEDANTIC_FLAGS_C99],[-std=c99])
5453
5454GP_PEDANTIC_CFLAGS_C99="$CFLAGS"
5455CFLAGS="$gp_compiler_flags_saved_CFLAGS"
5456# END _GP_PEDANTIC_COMPILER_FLAGS([CFLAGS],[C99],[-std=c99])
5457
5458ac_ext=c
5459ac_cpp='$CPP $CPPFLAGS'
5460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5462ac_compiler_gnu=$ac_cv_c_compiler_gnu
5463
5464# END GP_PEDANTIC_COMPILER_FLAGS([C99],[C],[-std=c99])
5465
5466# BEGIN GP_PEDANTIC_COMPILER_FLAGS([C11],[C],[-std=c11])
5467ac_ext=c
5468ac_cpp='$CPP $CPPFLAGS'
5469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5471ac_compiler_gnu=$ac_cv_c_compiler_gnu
5472
5473# BEGIN _GP_PEDANTIC_COMPILER_FLAGS([CFLAGS],[C11],[-std=c11])
5474gp_compiler_flags_saved_CFLAGS="$CFLAGS"
5475CFLAGS=""
5476# BEGIN __GP_PEDANTIC_COMPILER_FLAGS([CFLAGS],[GP_PEDANTIC_CFLAGS_C11],[GP_HAVE_PEDANTIC_FLAGS_C11],[-std=c11])
5477gp_have_pedantic_compiler=yes
5478# BEGIN GP_CONDITIONAL_COMPILE_FLAGS([CFLAGS],[-std=c11])
5479if ${CFLAGS:+false} :; then :
5480    CFLAGS="-std=c11"
5481
5482else
5483    CFLAGS="${CFLAGS} -std=c11"
5484
5485fi
5486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFLAGS=\"$CFLAGS\" compiles" >&5
5487$as_echo_n "checking whether CFLAGS=\"$CFLAGS\" compiles... " >&6; }
5488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5489/* end confdefs.h.  */
5490
5491#include <stdio.h>
5492int main(int argc, char *argv[])
5493{
5494  int i;
5495  /* Use argc and argv to prevent warning about unused function params */
5496  for (i=0; i<argc; ++i) {
5497    printf("  %d %s\n", i, argv[i]);
5498  }
5499  return 0;
5500}
5501
5502_ACEOF
5503if ac_fn_c_try_compile "$LINENO"; then :
5504    : "Added flag -std=c11 to CFLAGS and it works"
5505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5506$as_echo "yes" >&6; }
5507
5508else
5509    : "Added flag -std=c11 to CFLAGS and it does not work"
5510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5511$as_echo "no" >&6; }
5512  gp_have_pedantic_compiler=no
5513
5514fi
5515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5516# END GP_CONDITIONAL_COMPILE_FLAGS([CFLAGS],[-std=c11])
5517if test "x$gp_have_pedantic_compiler" = xyes; then :
5518    # BEGIN GP_CONDITIONAL_COMPILE_FLAGS([CFLAGS],[-pedantic -Wall -Wextra -Werror])
5519if ${CFLAGS:+false} :; then :
5520    CFLAGS="-pedantic -Wall -Wextra -Werror"
5521
5522else
5523    CFLAGS="${CFLAGS} -pedantic -Wall -Wextra -Werror"
5524
5525fi
5526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFLAGS=\"$CFLAGS\" compiles" >&5
5527$as_echo_n "checking whether CFLAGS=\"$CFLAGS\" compiles... " >&6; }
5528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5529/* end confdefs.h.  */
5530
5531#include <stdio.h>
5532int main(int argc, char *argv[])
5533{
5534  int i;
5535  /* Use argc and argv to prevent warning about unused function params */
5536  for (i=0; i<argc; ++i) {
5537    printf("  %d %s\n", i, argv[i]);
5538  }
5539  return 0;
5540}
5541
5542_ACEOF
5543if ac_fn_c_try_compile "$LINENO"; then :
5544    : "Added flag -pedantic -Wall -Wextra -Werror to CFLAGS and it works"
5545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5546$as_echo "yes" >&6; }
5547
5548else
5549    : "Added flag -pedantic -Wall -Wextra -Werror to CFLAGS and it does not work"
5550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5551$as_echo "no" >&6; }
5552  gp_have_pedantic_compiler=no
5553
5554fi
5555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556# END GP_CONDITIONAL_COMPILE_FLAGS([CFLAGS],[-pedantic -Wall -Wextra -Werror])
5557
5558fi
5559 if test "x$gp_have_pedantic_compiler" = "xyes"; then
5560  GP_HAVE_PEDANTIC_FLAGS_C11_TRUE=
5561  GP_HAVE_PEDANTIC_FLAGS_C11_FALSE='#'
5562else
5563  GP_HAVE_PEDANTIC_FLAGS_C11_TRUE='#'
5564  GP_HAVE_PEDANTIC_FLAGS_C11_FALSE=
5565fi
5566
5567GP_PEDANTIC_CFLAGS_C11="$CFLAGS"
5568
5569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to test pedantic -std=c11" >&5
5570$as_echo_n "checking whether to test pedantic -std=c11... " >&6; }
5571if test -z "$GP_HAVE_PEDANTIC_FLAGS_C11_TRUE"; then :
5572    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5573$as_echo "yes" >&6; }
5574
5575else
5576    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5577$as_echo "no" >&6; }
5578
5579fi
5580# END __GP_PEDANTIC_COMPILER_FLAGS([CFLAGS],[GP_PEDANTIC_CFLAGS_C11],[GP_HAVE_PEDANTIC_FLAGS_C11],[-std=c11])
5581
5582GP_PEDANTIC_CFLAGS_C11="$CFLAGS"
5583CFLAGS="$gp_compiler_flags_saved_CFLAGS"
5584# END _GP_PEDANTIC_COMPILER_FLAGS([CFLAGS],[C11],[-std=c11])
5585
5586ac_ext=c
5587ac_cpp='$CPP $CPPFLAGS'
5588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5590ac_compiler_gnu=$ac_cv_c_compiler_gnu
5591
5592# END GP_PEDANTIC_COMPILER_FLAGS([C11],[C],[-std=c11])
5593
5594
5595# BEGIN GP_PEDANTIC_COMPILER_FLAGS([CXX98],[C++],[-std=c++98])
5596ac_ext=cpp
5597ac_cpp='$CXXCPP $CPPFLAGS'
5598ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5599ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5600ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5601
5602# BEGIN _GP_PEDANTIC_COMPILER_FLAGS([CXXFLAGS],[CXX98],[-std=c++98])
5603gp_compiler_flags_saved_CXXFLAGS="$CXXFLAGS"
5604CXXFLAGS=""
5605# BEGIN __GP_PEDANTIC_COMPILER_FLAGS([CXXFLAGS],[GP_PEDANTIC_CXXFLAGS_CXX98],[GP_HAVE_PEDANTIC_FLAGS_CXX98],[-std=c++98])
5606gp_have_pedantic_compiler=yes
5607# BEGIN GP_CONDITIONAL_COMPILE_FLAGS([CXXFLAGS],[-std=c++98])
5608if ${CXXFLAGS:+false} :; then :
5609    CXXFLAGS="-std=c++98"
5610
5611else
5612    CXXFLAGS="${CXXFLAGS} -std=c++98"
5613
5614fi
5615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CXXFLAGS=\"$CXXFLAGS\" compiles" >&5
5616$as_echo_n "checking whether CXXFLAGS=\"$CXXFLAGS\" compiles... " >&6; }
5617cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618/* end confdefs.h.  */
5619
5620#include <iostream>
5621int main(int argc, char *argv[])
5622{
5623  int i;
5624  /* Use argc and argv to prevent warning about unused function params */
5625  for (i=0; i<argc; ++i) {
5626    std::cout << "  " << i << " " << argv[i] << std::endl;
5627  }
5628  return 0;
5629}
5630
5631_ACEOF
5632if ac_fn_cxx_try_compile "$LINENO"; then :
5633    : "Added flag -std=c++98 to CXXFLAGS and it works"
5634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5635$as_echo "yes" >&6; }
5636
5637else
5638    : "Added flag -std=c++98 to CXXFLAGS and it does not work"
5639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5640$as_echo "no" >&6; }
5641  gp_have_pedantic_compiler=no
5642
5643fi
5644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5645# END GP_CONDITIONAL_COMPILE_FLAGS([CXXFLAGS],[-std=c++98])
5646if test "x$gp_have_pedantic_compiler" = xyes; then :
5647    # BEGIN GP_CONDITIONAL_COMPILE_FLAGS([CXXFLAGS],[-pedantic -Wall -Wextra -Werror])
5648if ${CXXFLAGS:+false} :; then :
5649    CXXFLAGS="-pedantic -Wall -Wextra -Werror"
5650
5651else
5652    CXXFLAGS="${CXXFLAGS} -pedantic -Wall -Wextra -Werror"
5653
5654fi
5655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CXXFLAGS=\"$CXXFLAGS\" compiles" >&5
5656$as_echo_n "checking whether CXXFLAGS=\"$CXXFLAGS\" compiles... " >&6; }
5657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658/* end confdefs.h.  */
5659
5660#include <iostream>
5661int main(int argc, char *argv[])
5662{
5663  int i;
5664  /* Use argc and argv to prevent warning about unused function params */
5665  for (i=0; i<argc; ++i) {
5666    std::cout << "  " << i << " " << argv[i] << std::endl;
5667  }
5668  return 0;
5669}
5670
5671_ACEOF
5672if ac_fn_cxx_try_compile "$LINENO"; then :
5673    : "Added flag -pedantic -Wall -Wextra -Werror to CXXFLAGS and it works"
5674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5675$as_echo "yes" >&6; }
5676
5677else
5678    : "Added flag -pedantic -Wall -Wextra -Werror to CXXFLAGS and it does not work"
5679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680$as_echo "no" >&6; }
5681  gp_have_pedantic_compiler=no
5682
5683fi
5684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5685# END GP_CONDITIONAL_COMPILE_FLAGS([CXXFLAGS],[-pedantic -Wall -Wextra -Werror])
5686
5687fi
5688 if test "x$gp_have_pedantic_compiler" = "xyes"; then
5689  GP_HAVE_PEDANTIC_FLAGS_CXX98_TRUE=
5690  GP_HAVE_PEDANTIC_FLAGS_CXX98_FALSE='#'
5691else
5692  GP_HAVE_PEDANTIC_FLAGS_CXX98_TRUE='#'
5693  GP_HAVE_PEDANTIC_FLAGS_CXX98_FALSE=
5694fi
5695
5696GP_PEDANTIC_CXXFLAGS_CXX98="$CXXFLAGS"
5697
5698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to test pedantic -std=c++98" >&5
5699$as_echo_n "checking whether to test pedantic -std=c++98... " >&6; }
5700if test -z "$GP_HAVE_PEDANTIC_FLAGS_CXX98_TRUE"; then :
5701    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5702$as_echo "yes" >&6; }
5703
5704else
5705    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5706$as_echo "no" >&6; }
5707
5708fi
5709# END __GP_PEDANTIC_COMPILER_FLAGS([CXXFLAGS],[GP_PEDANTIC_CXXFLAGS_CXX98],[GP_HAVE_PEDANTIC_FLAGS_CXX98],[-std=c++98])
5710
5711GP_PEDANTIC_CXXFLAGS_CXX98="$CXXFLAGS"
5712CXXFLAGS="$gp_compiler_flags_saved_CXXFLAGS"
5713# END _GP_PEDANTIC_COMPILER_FLAGS([CXXFLAGS],[CXX98],[-std=c++98])
5714
5715ac_ext=c
5716ac_cpp='$CPP $CPPFLAGS'
5717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5719ac_compiler_gnu=$ac_cv_c_compiler_gnu
5720
5721# END GP_PEDANTIC_COMPILER_FLAGS([CXX98],[C++],[-std=c++98])
5722
5723# BEGIN GP_PEDANTIC_COMPILER_FLAGS([CXX11],[C++],[-std=c++11])
5724ac_ext=cpp
5725ac_cpp='$CXXCPP $CPPFLAGS'
5726ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5727ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5728ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5729
5730# BEGIN _GP_PEDANTIC_COMPILER_FLAGS([CXXFLAGS],[CXX11],[-std=c++11])
5731gp_compiler_flags_saved_CXXFLAGS="$CXXFLAGS"
5732CXXFLAGS=""
5733# BEGIN __GP_PEDANTIC_COMPILER_FLAGS([CXXFLAGS],[GP_PEDANTIC_CXXFLAGS_CXX11],[GP_HAVE_PEDANTIC_FLAGS_CXX11],[-std=c++11])
5734gp_have_pedantic_compiler=yes
5735# BEGIN GP_CONDITIONAL_COMPILE_FLAGS([CXXFLAGS],[-std=c++11])
5736if ${CXXFLAGS:+false} :; then :
5737    CXXFLAGS="-std=c++11"
5738
5739else
5740    CXXFLAGS="${CXXFLAGS} -std=c++11"
5741
5742fi
5743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CXXFLAGS=\"$CXXFLAGS\" compiles" >&5
5744$as_echo_n "checking whether CXXFLAGS=\"$CXXFLAGS\" compiles... " >&6; }
5745cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5746/* end confdefs.h.  */
5747
5748#include <iostream>
5749int main(int argc, char *argv[])
5750{
5751  int i;
5752  /* Use argc and argv to prevent warning about unused function params */
5753  for (i=0; i<argc; ++i) {
5754    std::cout << "  " << i << " " << argv[i] << std::endl;
5755  }
5756  return 0;
5757}
5758
5759_ACEOF
5760if ac_fn_cxx_try_compile "$LINENO"; then :
5761    : "Added flag -std=c++11 to CXXFLAGS and it works"
5762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5763$as_echo "yes" >&6; }
5764
5765else
5766    : "Added flag -std=c++11 to CXXFLAGS and it does not work"
5767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5768$as_echo "no" >&6; }
5769  gp_have_pedantic_compiler=no
5770
5771fi
5772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5773# END GP_CONDITIONAL_COMPILE_FLAGS([CXXFLAGS],[-std=c++11])
5774if test "x$gp_have_pedantic_compiler" = xyes; then :
5775    # BEGIN GP_CONDITIONAL_COMPILE_FLAGS([CXXFLAGS],[-pedantic -Wall -Wextra -Werror])
5776if ${CXXFLAGS:+false} :; then :
5777    CXXFLAGS="-pedantic -Wall -Wextra -Werror"
5778
5779else
5780    CXXFLAGS="${CXXFLAGS} -pedantic -Wall -Wextra -Werror"
5781
5782fi
5783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CXXFLAGS=\"$CXXFLAGS\" compiles" >&5
5784$as_echo_n "checking whether CXXFLAGS=\"$CXXFLAGS\" compiles... " >&6; }
5785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5786/* end confdefs.h.  */
5787
5788#include <iostream>
5789int main(int argc, char *argv[])
5790{
5791  int i;
5792  /* Use argc and argv to prevent warning about unused function params */
5793  for (i=0; i<argc; ++i) {
5794    std::cout << "  " << i << " " << argv[i] << std::endl;
5795  }
5796  return 0;
5797}
5798
5799_ACEOF
5800if ac_fn_cxx_try_compile "$LINENO"; then :
5801    : "Added flag -pedantic -Wall -Wextra -Werror to CXXFLAGS and it works"
5802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5803$as_echo "yes" >&6; }
5804
5805else
5806    : "Added flag -pedantic -Wall -Wextra -Werror to CXXFLAGS and it does not work"
5807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5808$as_echo "no" >&6; }
5809  gp_have_pedantic_compiler=no
5810
5811fi
5812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5813# END GP_CONDITIONAL_COMPILE_FLAGS([CXXFLAGS],[-pedantic -Wall -Wextra -Werror])
5814
5815fi
5816 if test "x$gp_have_pedantic_compiler" = "xyes"; then
5817  GP_HAVE_PEDANTIC_FLAGS_CXX11_TRUE=
5818  GP_HAVE_PEDANTIC_FLAGS_CXX11_FALSE='#'
5819else
5820  GP_HAVE_PEDANTIC_FLAGS_CXX11_TRUE='#'
5821  GP_HAVE_PEDANTIC_FLAGS_CXX11_FALSE=
5822fi
5823
5824GP_PEDANTIC_CXXFLAGS_CXX11="$CXXFLAGS"
5825
5826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to test pedantic -std=c++11" >&5
5827$as_echo_n "checking whether to test pedantic -std=c++11... " >&6; }
5828if test -z "$GP_HAVE_PEDANTIC_FLAGS_CXX11_TRUE"; then :
5829    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5830$as_echo "yes" >&6; }
5831
5832else
5833    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5834$as_echo "no" >&6; }
5835
5836fi
5837# END __GP_PEDANTIC_COMPILER_FLAGS([CXXFLAGS],[GP_PEDANTIC_CXXFLAGS_CXX11],[GP_HAVE_PEDANTIC_FLAGS_CXX11],[-std=c++11])
5838
5839GP_PEDANTIC_CXXFLAGS_CXX11="$CXXFLAGS"
5840CXXFLAGS="$gp_compiler_flags_saved_CXXFLAGS"
5841# END _GP_PEDANTIC_COMPILER_FLAGS([CXXFLAGS],[CXX11],[-std=c++11])
5842
5843ac_ext=c
5844ac_cpp='$CPP $CPPFLAGS'
5845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5847ac_compiler_gnu=$ac_cv_c_compiler_gnu
5848
5849# END GP_PEDANTIC_COMPILER_FLAGS([CXX11],[C++],[-std=c++11])
5850
5851# BEGIN GP_PEDANTIC_COMPILER_FLAGS([CXX14],[C++],[-std=c++14])
5852ac_ext=cpp
5853ac_cpp='$CXXCPP $CPPFLAGS'
5854ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5855ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5856ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5857
5858# BEGIN _GP_PEDANTIC_COMPILER_FLAGS([CXXFLAGS],[CXX14],[-std=c++14])
5859gp_compiler_flags_saved_CXXFLAGS="$CXXFLAGS"
5860CXXFLAGS=""
5861# BEGIN __GP_PEDANTIC_COMPILER_FLAGS([CXXFLAGS],[GP_PEDANTIC_CXXFLAGS_CXX14],[GP_HAVE_PEDANTIC_FLAGS_CXX14],[-std=c++14])
5862gp_have_pedantic_compiler=yes
5863# BEGIN GP_CONDITIONAL_COMPILE_FLAGS([CXXFLAGS],[-std=c++14])
5864if ${CXXFLAGS:+false} :; then :
5865    CXXFLAGS="-std=c++14"
5866
5867else
5868    CXXFLAGS="${CXXFLAGS} -std=c++14"
5869
5870fi
5871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CXXFLAGS=\"$CXXFLAGS\" compiles" >&5
5872$as_echo_n "checking whether CXXFLAGS=\"$CXXFLAGS\" compiles... " >&6; }
5873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5874/* end confdefs.h.  */
5875
5876#include <iostream>
5877int main(int argc, char *argv[])
5878{
5879  int i;
5880  /* Use argc and argv to prevent warning about unused function params */
5881  for (i=0; i<argc; ++i) {
5882    std::cout << "  " << i << " " << argv[i] << std::endl;
5883  }
5884  return 0;
5885}
5886
5887_ACEOF
5888if ac_fn_cxx_try_compile "$LINENO"; then :
5889    : "Added flag -std=c++14 to CXXFLAGS and it works"
5890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5891$as_echo "yes" >&6; }
5892
5893else
5894    : "Added flag -std=c++14 to CXXFLAGS and it does not work"
5895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5896$as_echo "no" >&6; }
5897  gp_have_pedantic_compiler=no
5898
5899fi
5900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5901# END GP_CONDITIONAL_COMPILE_FLAGS([CXXFLAGS],[-std=c++14])
5902if test "x$gp_have_pedantic_compiler" = xyes; then :
5903    # BEGIN GP_CONDITIONAL_COMPILE_FLAGS([CXXFLAGS],[-pedantic -Wall -Wextra -Werror])
5904if ${CXXFLAGS:+false} :; then :
5905    CXXFLAGS="-pedantic -Wall -Wextra -Werror"
5906
5907else
5908    CXXFLAGS="${CXXFLAGS} -pedantic -Wall -Wextra -Werror"
5909
5910fi
5911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CXXFLAGS=\"$CXXFLAGS\" compiles" >&5
5912$as_echo_n "checking whether CXXFLAGS=\"$CXXFLAGS\" compiles... " >&6; }
5913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5914/* end confdefs.h.  */
5915
5916#include <iostream>
5917int main(int argc, char *argv[])
5918{
5919  int i;
5920  /* Use argc and argv to prevent warning about unused function params */
5921  for (i=0; i<argc; ++i) {
5922    std::cout << "  " << i << " " << argv[i] << std::endl;
5923  }
5924  return 0;
5925}
5926
5927_ACEOF
5928if ac_fn_cxx_try_compile "$LINENO"; then :
5929    : "Added flag -pedantic -Wall -Wextra -Werror to CXXFLAGS and it works"
5930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5931$as_echo "yes" >&6; }
5932
5933else
5934    : "Added flag -pedantic -Wall -Wextra -Werror to CXXFLAGS and it does not work"
5935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5936$as_echo "no" >&6; }
5937  gp_have_pedantic_compiler=no
5938
5939fi
5940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5941# END GP_CONDITIONAL_COMPILE_FLAGS([CXXFLAGS],[-pedantic -Wall -Wextra -Werror])
5942
5943fi
5944 if test "x$gp_have_pedantic_compiler" = "xyes"; then
5945  GP_HAVE_PEDANTIC_FLAGS_CXX14_TRUE=
5946  GP_HAVE_PEDANTIC_FLAGS_CXX14_FALSE='#'
5947else
5948  GP_HAVE_PEDANTIC_FLAGS_CXX14_TRUE='#'
5949  GP_HAVE_PEDANTIC_FLAGS_CXX14_FALSE=
5950fi
5951
5952GP_PEDANTIC_CXXFLAGS_CXX14="$CXXFLAGS"
5953
5954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to test pedantic -std=c++14" >&5
5955$as_echo_n "checking whether to test pedantic -std=c++14... " >&6; }
5956if test -z "$GP_HAVE_PEDANTIC_FLAGS_CXX14_TRUE"; then :
5957    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5958$as_echo "yes" >&6; }
5959
5960else
5961    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5962$as_echo "no" >&6; }
5963
5964fi
5965# END __GP_PEDANTIC_COMPILER_FLAGS([CXXFLAGS],[GP_PEDANTIC_CXXFLAGS_CXX14],[GP_HAVE_PEDANTIC_FLAGS_CXX14],[-std=c++14])
5966
5967GP_PEDANTIC_CXXFLAGS_CXX14="$CXXFLAGS"
5968CXXFLAGS="$gp_compiler_flags_saved_CXXFLAGS"
5969# END _GP_PEDANTIC_COMPILER_FLAGS([CXXFLAGS],[CXX14],[-std=c++14])
5970
5971ac_ext=c
5972ac_cpp='$CPP $CPPFLAGS'
5973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5975ac_compiler_gnu=$ac_cv_c_compiler_gnu
5976
5977# END GP_PEDANTIC_COMPILER_FLAGS([CXX14],[C++],[-std=c++14])
5978
5979# BEGIN GP_PEDANTIC_COMPILER_FLAGS([CXX17],[C++],[-std=c++17])
5980ac_ext=cpp
5981ac_cpp='$CXXCPP $CPPFLAGS'
5982ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5983ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5984ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5985
5986# BEGIN _GP_PEDANTIC_COMPILER_FLAGS([CXXFLAGS],[CXX17],[-std=c++17])
5987gp_compiler_flags_saved_CXXFLAGS="$CXXFLAGS"
5988CXXFLAGS=""
5989# BEGIN __GP_PEDANTIC_COMPILER_FLAGS([CXXFLAGS],[GP_PEDANTIC_CXXFLAGS_CXX17],[GP_HAVE_PEDANTIC_FLAGS_CXX17],[-std=c++17])
5990gp_have_pedantic_compiler=yes
5991# BEGIN GP_CONDITIONAL_COMPILE_FLAGS([CXXFLAGS],[-std=c++17])
5992if ${CXXFLAGS:+false} :; then :
5993    CXXFLAGS="-std=c++17"
5994
5995else
5996    CXXFLAGS="${CXXFLAGS} -std=c++17"
5997
5998fi
5999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CXXFLAGS=\"$CXXFLAGS\" compiles" >&5
6000$as_echo_n "checking whether CXXFLAGS=\"$CXXFLAGS\" compiles... " >&6; }
6001cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6002/* end confdefs.h.  */
6003
6004#include <iostream>
6005int main(int argc, char *argv[])
6006{
6007  int i;
6008  /* Use argc and argv to prevent warning about unused function params */
6009  for (i=0; i<argc; ++i) {
6010    std::cout << "  " << i << " " << argv[i] << std::endl;
6011  }
6012  return 0;
6013}
6014
6015_ACEOF
6016if ac_fn_cxx_try_compile "$LINENO"; then :
6017    : "Added flag -std=c++17 to CXXFLAGS and it works"
6018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6019$as_echo "yes" >&6; }
6020
6021else
6022    : "Added flag -std=c++17 to CXXFLAGS and it does not work"
6023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6024$as_echo "no" >&6; }
6025  gp_have_pedantic_compiler=no
6026
6027fi
6028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6029# END GP_CONDITIONAL_COMPILE_FLAGS([CXXFLAGS],[-std=c++17])
6030if test "x$gp_have_pedantic_compiler" = xyes; then :
6031    # BEGIN GP_CONDITIONAL_COMPILE_FLAGS([CXXFLAGS],[-pedantic -Wall -Wextra -Werror])
6032if ${CXXFLAGS:+false} :; then :
6033    CXXFLAGS="-pedantic -Wall -Wextra -Werror"
6034
6035else
6036    CXXFLAGS="${CXXFLAGS} -pedantic -Wall -Wextra -Werror"
6037
6038fi
6039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CXXFLAGS=\"$CXXFLAGS\" compiles" >&5
6040$as_echo_n "checking whether CXXFLAGS=\"$CXXFLAGS\" compiles... " >&6; }
6041cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6042/* end confdefs.h.  */
6043
6044#include <iostream>
6045int main(int argc, char *argv[])
6046{
6047  int i;
6048  /* Use argc and argv to prevent warning about unused function params */
6049  for (i=0; i<argc; ++i) {
6050    std::cout << "  " << i << " " << argv[i] << std::endl;
6051  }
6052  return 0;
6053}
6054
6055_ACEOF
6056if ac_fn_cxx_try_compile "$LINENO"; then :
6057    : "Added flag -pedantic -Wall -Wextra -Werror to CXXFLAGS and it works"
6058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6059$as_echo "yes" >&6; }
6060
6061else
6062    : "Added flag -pedantic -Wall -Wextra -Werror to CXXFLAGS and it does not work"
6063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064$as_echo "no" >&6; }
6065  gp_have_pedantic_compiler=no
6066
6067fi
6068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6069# END GP_CONDITIONAL_COMPILE_FLAGS([CXXFLAGS],[-pedantic -Wall -Wextra -Werror])
6070
6071fi
6072 if test "x$gp_have_pedantic_compiler" = "xyes"; then
6073  GP_HAVE_PEDANTIC_FLAGS_CXX17_TRUE=
6074  GP_HAVE_PEDANTIC_FLAGS_CXX17_FALSE='#'
6075else
6076  GP_HAVE_PEDANTIC_FLAGS_CXX17_TRUE='#'
6077  GP_HAVE_PEDANTIC_FLAGS_CXX17_FALSE=
6078fi
6079
6080GP_PEDANTIC_CXXFLAGS_CXX17="$CXXFLAGS"
6081
6082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to test pedantic -std=c++17" >&5
6083$as_echo_n "checking whether to test pedantic -std=c++17... " >&6; }
6084if test -z "$GP_HAVE_PEDANTIC_FLAGS_CXX17_TRUE"; then :
6085    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6086$as_echo "yes" >&6; }
6087
6088else
6089    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6090$as_echo "no" >&6; }
6091
6092fi
6093# END __GP_PEDANTIC_COMPILER_FLAGS([CXXFLAGS],[GP_PEDANTIC_CXXFLAGS_CXX17],[GP_HAVE_PEDANTIC_FLAGS_CXX17],[-std=c++17])
6094
6095GP_PEDANTIC_CXXFLAGS_CXX17="$CXXFLAGS"
6096CXXFLAGS="$gp_compiler_flags_saved_CXXFLAGS"
6097# END _GP_PEDANTIC_COMPILER_FLAGS([CXXFLAGS],[CXX17],[-std=c++17])
6098
6099ac_ext=c
6100ac_cpp='$CPP $CPPFLAGS'
6101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6103ac_compiler_gnu=$ac_cv_c_compiler_gnu
6104
6105# END GP_PEDANTIC_COMPILER_FLAGS([CXX17],[C++],[-std=c++17])
6106
6107
6108# BEGIN GP_CONDITIONAL_COMPILE_FLAGS([CFLAGS],[-Wall])
6109if ${CFLAGS:+false} :; then :
6110    CFLAGS="-Wall"
6111
6112else
6113    CFLAGS="${CFLAGS} -Wall"
6114
6115fi
6116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFLAGS=\"$CFLAGS\" compiles" >&5
6117$as_echo_n "checking whether CFLAGS=\"$CFLAGS\" compiles... " >&6; }
6118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6119/* end confdefs.h.  */
6120
6121#include <stdio.h>
6122int main(int argc, char *argv[])
6123{
6124  int i;
6125  /* Use argc and argv to prevent warning about unused function params */
6126  for (i=0; i<argc; ++i) {
6127    printf("  %d %s\n", i, argv[i]);
6128  }
6129  return 0;
6130}
6131
6132_ACEOF
6133if ac_fn_c_try_compile "$LINENO"; then :
6134    : "Added flag -Wall to CFLAGS and it works"
6135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6136$as_echo "yes" >&6; }
6137
6138else
6139    : "Added flag -Wall to CFLAGS and it does not work"
6140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6141$as_echo "no" >&6; }
6142  gp_have_pedantic_compiler=no
6143
6144fi
6145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6146# END GP_CONDITIONAL_COMPILE_FLAGS([CFLAGS],[-Wall])
6147
6148# BEGIN GP_CONDITIONAL_COMPILE_FLAGS([CFLAGS],[-Wextra])
6149if ${CFLAGS:+false} :; then :
6150    CFLAGS="-Wextra"
6151
6152else
6153    CFLAGS="${CFLAGS} -Wextra"
6154
6155fi
6156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFLAGS=\"$CFLAGS\" compiles" >&5
6157$as_echo_n "checking whether CFLAGS=\"$CFLAGS\" compiles... " >&6; }
6158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6159/* end confdefs.h.  */
6160
6161#include <stdio.h>
6162int main(int argc, char *argv[])
6163{
6164  int i;
6165  /* Use argc and argv to prevent warning about unused function params */
6166  for (i=0; i<argc; ++i) {
6167    printf("  %d %s\n", i, argv[i]);
6168  }
6169  return 0;
6170}
6171
6172_ACEOF
6173if ac_fn_c_try_compile "$LINENO"; then :
6174    : "Added flag -Wextra to CFLAGS and it works"
6175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6176$as_echo "yes" >&6; }
6177
6178else
6179    : "Added flag -Wextra to CFLAGS and it does not work"
6180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6181$as_echo "no" >&6; }
6182  gp_have_pedantic_compiler=no
6183
6184fi
6185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6186# END GP_CONDITIONAL_COMPILE_FLAGS([CFLAGS],[-Wextra])
6187
6188# BEGIN GP_CONDITIONAL_COMPILE_FLAGS([CFLAGS],[-Wno-unused-parameter])
6189if ${CFLAGS:+false} :; then :
6190    CFLAGS="-Wno-unused-parameter"
6191
6192else
6193    CFLAGS="${CFLAGS} -Wno-unused-parameter"
6194
6195fi
6196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFLAGS=\"$CFLAGS\" compiles" >&5
6197$as_echo_n "checking whether CFLAGS=\"$CFLAGS\" compiles... " >&6; }
6198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6199/* end confdefs.h.  */
6200
6201#include <stdio.h>
6202int main(int argc, char *argv[])
6203{
6204  int i;
6205  /* Use argc and argv to prevent warning about unused function params */
6206  for (i=0; i<argc; ++i) {
6207    printf("  %d %s\n", i, argv[i]);
6208  }
6209  return 0;
6210}
6211
6212_ACEOF
6213if ac_fn_c_try_compile "$LINENO"; then :
6214    : "Added flag -Wno-unused-parameter to CFLAGS and it works"
6215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6216$as_echo "yes" >&6; }
6217
6218else
6219    : "Added flag -Wno-unused-parameter to CFLAGS and it does not work"
6220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6221$as_echo "no" >&6; }
6222  gp_have_pedantic_compiler=no
6223
6224fi
6225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6226# END GP_CONDITIONAL_COMPILE_FLAGS([CFLAGS],[-Wno-unused-parameter])
6227
6228# BEGIN GP_CONDITIONAL_COMPILE_FLAGS([CFLAGS],[-Wno-format-overflow])
6229if ${CFLAGS:+false} :; then :
6230    CFLAGS="-Wno-format-overflow"
6231
6232else
6233    CFLAGS="${CFLAGS} -Wno-format-overflow"
6234
6235fi
6236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFLAGS=\"$CFLAGS\" compiles" >&5
6237$as_echo_n "checking whether CFLAGS=\"$CFLAGS\" compiles... " >&6; }
6238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6239/* end confdefs.h.  */
6240
6241#include <stdio.h>
6242int main(int argc, char *argv[])
6243{
6244  int i;
6245  /* Use argc and argv to prevent warning about unused function params */
6246  for (i=0; i<argc; ++i) {
6247    printf("  %d %s\n", i, argv[i]);
6248  }
6249  return 0;
6250}
6251
6252_ACEOF
6253if ac_fn_c_try_compile "$LINENO"; then :
6254    : "Added flag -Wno-format-overflow to CFLAGS and it works"
6255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6256$as_echo "yes" >&6; }
6257
6258else
6259    : "Added flag -Wno-format-overflow to CFLAGS and it does not work"
6260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6261$as_echo "no" >&6; }
6262  gp_have_pedantic_compiler=no
6263
6264fi
6265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6266# END GP_CONDITIONAL_COMPILE_FLAGS([CFLAGS],[-Wno-format-overflow])
6267
6268# BEGIN GP_CONDITIONAL_COMPILE_FLAGS([CFLAGS],[-Wno-format-truncation])
6269if ${CFLAGS:+false} :; then :
6270    CFLAGS="-Wno-format-truncation"
6271
6272else
6273    CFLAGS="${CFLAGS} -Wno-format-truncation"
6274
6275fi
6276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFLAGS=\"$CFLAGS\" compiles" >&5
6277$as_echo_n "checking whether CFLAGS=\"$CFLAGS\" compiles... " >&6; }
6278cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6279/* end confdefs.h.  */
6280
6281#include <stdio.h>
6282int main(int argc, char *argv[])
6283{
6284  int i;
6285  /* Use argc and argv to prevent warning about unused function params */
6286  for (i=0; i<argc; ++i) {
6287    printf("  %d %s\n", i, argv[i]);
6288  }
6289  return 0;
6290}
6291
6292_ACEOF
6293if ac_fn_c_try_compile "$LINENO"; then :
6294    : "Added flag -Wno-format-truncation to CFLAGS and it works"
6295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6296$as_echo "yes" >&6; }
6297
6298else
6299    : "Added flag -Wno-format-truncation to CFLAGS and it does not work"
6300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6301$as_echo "no" >&6; }
6302  gp_have_pedantic_compiler=no
6303
6304fi
6305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6306# END GP_CONDITIONAL_COMPILE_FLAGS([CFLAGS],[-Wno-format-truncation])
6307
6308# BEGIN GP_CONDITIONAL_COMPILE_FLAGS([CFLAGS],[-Wno-stringop-truncation])
6309if ${CFLAGS:+false} :; then :
6310    CFLAGS="-Wno-stringop-truncation"
6311
6312else
6313    CFLAGS="${CFLAGS} -Wno-stringop-truncation"
6314
6315fi
6316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFLAGS=\"$CFLAGS\" compiles" >&5
6317$as_echo_n "checking whether CFLAGS=\"$CFLAGS\" compiles... " >&6; }
6318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6319/* end confdefs.h.  */
6320
6321#include <stdio.h>
6322int main(int argc, char *argv[])
6323{
6324  int i;
6325  /* Use argc and argv to prevent warning about unused function params */
6326  for (i=0; i<argc; ++i) {
6327    printf("  %d %s\n", i, argv[i]);
6328  }
6329  return 0;
6330}
6331
6332_ACEOF
6333if ac_fn_c_try_compile "$LINENO"; then :
6334    : "Added flag -Wno-stringop-truncation to CFLAGS and it works"
6335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6336$as_echo "yes" >&6; }
6337
6338else
6339    : "Added flag -Wno-stringop-truncation to CFLAGS and it does not work"
6340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6341$as_echo "no" >&6; }
6342  gp_have_pedantic_compiler=no
6343
6344fi
6345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6346# END GP_CONDITIONAL_COMPILE_FLAGS([CFLAGS],[-Wno-stringop-truncation])
6347
6348
6349ac_ext=c
6350ac_cpp='$CPP $CPPFLAGS'
6351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6353ac_compiler_gnu=$ac_cv_c_compiler_gnu
6354
6355
6356
6357if test "x$GCC" = "xyes"; then
6358	# CFLAGS="$CFLAGS --std=c99 -Wall -Wextra -Werror -pedantic"
6359	CFLAGS="$CFLAGS -Wall -Wmissing-declarations -Wmissing-prototypes"
6360	LDFLAGS="$LDFLAGS"
6361	NO_UNUSED_CFLAGS=-Wno-unused
6362
6363fi
6364 if test "x$GCC" = "xyes"; then
6365  HAVE_GCC_TRUE=
6366  HAVE_GCC_FALSE='#'
6367else
6368  HAVE_GCC_TRUE='#'
6369  HAVE_GCC_FALSE=
6370fi
6371
6372
6373# Activate internal code
6374AM_CPPFLAGS="$AM_CPPFLAGS -D_GPHOTO2_INTERNAL_CODE"
6375
6376# CPPFLAGS: C PreProcessor flags
6377
6378# CFLAGS: C compiler flags
6379
6380# CXXFLAGS: C++ compiler flags
6381
6382# LDFLAGS: Linker flags
6383
6384
6385# Check for va_copy()
6386
6387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6388$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6389if ${ac_cv_path_GREP+:} false; then :
6390  $as_echo_n "(cached) " >&6
6391else
6392  if test -z "$GREP"; then
6393  ac_path_GREP_found=false
6394  # Loop through the user's path and test for each of PROGNAME-LIST
6395  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6396for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6397do
6398  IFS=$as_save_IFS
6399  test -z "$as_dir" && as_dir=.
6400    for ac_prog in grep ggrep; do
6401    for ac_exec_ext in '' $ac_executable_extensions; do
6402      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6403      as_fn_executable_p "$ac_path_GREP" || continue
6404# Check for GNU ac_path_GREP and select it if it is found.
6405  # Check for GNU $ac_path_GREP
6406case `"$ac_path_GREP" --version 2>&1` in
6407*GNU*)
6408  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6409*)
6410  ac_count=0
6411  $as_echo_n 0123456789 >"conftest.in"
6412  while :
6413  do
6414    cat "conftest.in" "conftest.in" >"conftest.tmp"
6415    mv "conftest.tmp" "conftest.in"
6416    cp "conftest.in" "conftest.nl"
6417    $as_echo 'GREP' >> "conftest.nl"
6418    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6419    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6420    as_fn_arith $ac_count + 1 && ac_count=$as_val
6421    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6422      # Best one so far, save it but keep looking for a better one
6423      ac_cv_path_GREP="$ac_path_GREP"
6424      ac_path_GREP_max=$ac_count
6425    fi
6426    # 10*(2^10) chars as input seems more than enough
6427    test $ac_count -gt 10 && break
6428  done
6429  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6430esac
6431
6432      $ac_path_GREP_found && break 3
6433    done
6434  done
6435  done
6436IFS=$as_save_IFS
6437  if test -z "$ac_cv_path_GREP"; then
6438    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6439  fi
6440else
6441  ac_cv_path_GREP=$GREP
6442fi
6443
6444fi
6445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6446$as_echo "$ac_cv_path_GREP" >&6; }
6447 GREP="$ac_cv_path_GREP"
6448
6449
6450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6451$as_echo_n "checking for egrep... " >&6; }
6452if ${ac_cv_path_EGREP+:} false; then :
6453  $as_echo_n "(cached) " >&6
6454else
6455  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6456   then ac_cv_path_EGREP="$GREP -E"
6457   else
6458     if test -z "$EGREP"; then
6459  ac_path_EGREP_found=false
6460  # Loop through the user's path and test for each of PROGNAME-LIST
6461  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6463do
6464  IFS=$as_save_IFS
6465  test -z "$as_dir" && as_dir=.
6466    for ac_prog in egrep; do
6467    for ac_exec_ext in '' $ac_executable_extensions; do
6468      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6469      as_fn_executable_p "$ac_path_EGREP" || continue
6470# Check for GNU ac_path_EGREP and select it if it is found.
6471  # Check for GNU $ac_path_EGREP
6472case `"$ac_path_EGREP" --version 2>&1` in
6473*GNU*)
6474  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6475*)
6476  ac_count=0
6477  $as_echo_n 0123456789 >"conftest.in"
6478  while :
6479  do
6480    cat "conftest.in" "conftest.in" >"conftest.tmp"
6481    mv "conftest.tmp" "conftest.in"
6482    cp "conftest.in" "conftest.nl"
6483    $as_echo 'EGREP' >> "conftest.nl"
6484    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6485    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6486    as_fn_arith $ac_count + 1 && ac_count=$as_val
6487    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6488      # Best one so far, save it but keep looking for a better one
6489      ac_cv_path_EGREP="$ac_path_EGREP"
6490      ac_path_EGREP_max=$ac_count
6491    fi
6492    # 10*(2^10) chars as input seems more than enough
6493    test $ac_count -gt 10 && break
6494  done
6495  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6496esac
6497
6498      $ac_path_EGREP_found && break 3
6499    done
6500  done
6501  done
6502IFS=$as_save_IFS
6503  if test -z "$ac_cv_path_EGREP"; then
6504    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6505  fi
6506else
6507  ac_cv_path_EGREP=$EGREP
6508fi
6509
6510   fi
6511fi
6512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6513$as_echo "$ac_cv_path_EGREP" >&6; }
6514 EGREP="$ac_cv_path_EGREP"
6515
6516
6517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6518$as_echo_n "checking for ANSI C header files... " >&6; }
6519if ${ac_cv_header_stdc+:} false; then :
6520  $as_echo_n "(cached) " >&6
6521else
6522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523/* end confdefs.h.  */
6524#include <stdlib.h>
6525#include <stdarg.h>
6526#include <string.h>
6527#include <float.h>
6528
6529int
6530main ()
6531{
6532
6533  ;
6534  return 0;
6535}
6536_ACEOF
6537if ac_fn_c_try_compile "$LINENO"; then :
6538  ac_cv_header_stdc=yes
6539else
6540  ac_cv_header_stdc=no
6541fi
6542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6543
6544if test $ac_cv_header_stdc = yes; then
6545  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6547/* end confdefs.h.  */
6548#include <string.h>
6549
6550_ACEOF
6551if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6552  $EGREP "memchr" >/dev/null 2>&1; then :
6553
6554else
6555  ac_cv_header_stdc=no
6556fi
6557rm -f conftest*
6558
6559fi
6560
6561if test $ac_cv_header_stdc = yes; then
6562  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6564/* end confdefs.h.  */
6565#include <stdlib.h>
6566
6567_ACEOF
6568if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6569  $EGREP "free" >/dev/null 2>&1; then :
6570
6571else
6572  ac_cv_header_stdc=no
6573fi
6574rm -f conftest*
6575
6576fi
6577
6578if test $ac_cv_header_stdc = yes; then
6579  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6580  if test "$cross_compiling" = yes; then :
6581  :
6582else
6583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6584/* end confdefs.h.  */
6585#include <ctype.h>
6586#include <stdlib.h>
6587#if ((' ' & 0x0FF) == 0x020)
6588# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6589# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6590#else
6591# define ISLOWER(c) \
6592		   (('a' <= (c) && (c) <= 'i') \
6593		     || ('j' <= (c) && (c) <= 'r') \
6594		     || ('s' <= (c) && (c) <= 'z'))
6595# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6596#endif
6597
6598#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6599int
6600main ()
6601{
6602  int i;
6603  for (i = 0; i < 256; i++)
6604    if (XOR (islower (i), ISLOWER (i))
6605	|| toupper (i) != TOUPPER (i))
6606      return 2;
6607  return 0;
6608}
6609_ACEOF
6610if ac_fn_c_try_run "$LINENO"; then :
6611
6612else
6613  ac_cv_header_stdc=no
6614fi
6615rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6616  conftest.$ac_objext conftest.beam conftest.$ac_ext
6617fi
6618
6619fi
6620fi
6621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6622$as_echo "$ac_cv_header_stdc" >&6; }
6623if test $ac_cv_header_stdc = yes; then
6624
6625$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6626
6627fi
6628
6629# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6630for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6631		  inttypes.h stdint.h unistd.h
6632do :
6633  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6634ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6635"
6636if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6637  cat >>confdefs.h <<_ACEOF
6638#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6639_ACEOF
6640
6641fi
6642
6643done
6644
6645
6646ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
6647if test "x$ac_cv_header_stdarg_h" = xyes; then :
6648
6649else
6650
6651	as_fn_error $? "
6652Building $PACKAGE_NAME requires <stdarg.h>.
6653" "$LINENO" 5
6654
6655fi
6656
6657
6658have_va_copy=no
6659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6660/* end confdefs.h.  */
6661
6662	#include <stdarg.h>
6663
6664int
6665main ()
6666{
6667
6668	va_list a,b;
6669	va_copy(a,b);
6670
6671  ;
6672  return 0;
6673}
6674_ACEOF
6675if ac_fn_c_try_link "$LINENO"; then :
6676
6677	have_va_copy="va_copy"
6678
6679else
6680
6681	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6682/* end confdefs.h.  */
6683
6684		#include <stdarg.h>
6685
6686int
6687main ()
6688{
6689
6690		va_list a,b;
6691		__va_copy(a,b);
6692
6693  ;
6694  return 0;
6695}
6696_ACEOF
6697if ac_fn_c_try_link "$LINENO"; then :
6698
6699		have_va_copy="__va_copy"
6700
6701$as_echo "#define va_copy __va_copy" >>confdefs.h
6702
6703
6704fi
6705rm -f core conftest.err conftest.$ac_objext \
6706    conftest$ac_exeext conftest.$ac_ext
6707
6708fi
6709rm -f core conftest.err conftest.$ac_objext \
6710    conftest$ac_exeext conftest.$ac_ext
6711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy() or replacement" >&5
6712$as_echo_n "checking for va_copy() or replacement... " >&6; }
6713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_va_copy" >&5
6714$as_echo "$have_va_copy" >&6; }
6715if test "x$have_va_copy" != "xno"; then
6716
6717$as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
6718
6719fi
6720
6721
6722# Note: Do NOT add specific libraries and stuff to the generic _FLAGS.
6723#       Put these into LIBFOO_CFLAGS and LIBFOO_LIBS instead.
6724
6725
6726try_gp2ddb=false
6727msg_gp2ddb=""
6728gp_msg_dp2ddb="no"
6729
6730# Check whether --enable-gp2ddb was given.
6731if test "${enable_gp2ddb+set}" = set; then :
6732  enableval=$enable_gp2ddb;
6733	if test "x$enableval" = "xyes"; then
6734		try_gp2ddb=true
6735		msg_dp2ddb="(--enable-gp2ddb detected)"
6736	elif test "x$enableval" = "xno"; then
6737		try_gp2ddb=false
6738		msg_dp2ddb="(--disable-gp2ddb detected)"
6739	fi
6740
6741fi
6742
6743
6744# Extract the first word of "flex", so it can be a program name with args.
6745set dummy flex; ac_word=$2
6746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6747$as_echo_n "checking for $ac_word... " >&6; }
6748if ${ac_cv_path_FLEX+:} false; then :
6749  $as_echo_n "(cached) " >&6
6750else
6751  case $FLEX in
6752  [\\/]* | ?:[\\/]*)
6753  ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
6754  ;;
6755  *)
6756  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757for as_dir in $PATH
6758do
6759  IFS=$as_save_IFS
6760  test -z "$as_dir" && as_dir=.
6761    for ac_exec_ext in '' $ac_executable_extensions; do
6762  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6763    ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
6764    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6765    break 2
6766  fi
6767done
6768  done
6769IFS=$as_save_IFS
6770
6771  ;;
6772esac
6773fi
6774FLEX=$ac_cv_path_FLEX
6775if test -n "$FLEX"; then
6776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
6777$as_echo "$FLEX" >&6; }
6778else
6779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6780$as_echo "no" >&6; }
6781fi
6782
6783
6784
6785# Extract the first word of "bison", so it can be a program name with args.
6786set dummy bison; ac_word=$2
6787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6788$as_echo_n "checking for $ac_word... " >&6; }
6789if ${ac_cv_path_BISON+:} false; then :
6790  $as_echo_n "(cached) " >&6
6791else
6792  case $BISON in
6793  [\\/]* | ?:[\\/]*)
6794  ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
6795  ;;
6796  *)
6797  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798for as_dir in $PATH
6799do
6800  IFS=$as_save_IFS
6801  test -z "$as_dir" && as_dir=.
6802    for ac_exec_ext in '' $ac_executable_extensions; do
6803  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6804    ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
6805    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6806    break 2
6807  fi
6808done
6809  done
6810IFS=$as_save_IFS
6811
6812  ;;
6813esac
6814fi
6815BISON=$ac_cv_path_BISON
6816if test -n "$BISON"; then
6817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
6818$as_echo "$BISON" >&6; }
6819else
6820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6821$as_echo "no" >&6; }
6822fi
6823
6824
6825
6826
6827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable GP2DDB" >&5
6828$as_echo_n "checking whether to enable GP2DDB... " >&6; }
6829if "$try_gp2ddb"; then
6830   if test -x "$FLEX" && test -x "$BISON"; then
6831      gp_msg_dp2ddb="yes $msg_dp2ddb"
6832   else
6833      as_fn_error $? "Fatal: GP2DDB support requires flex and bison!
6834
6835Aborting configuration.
6836
6837Install flex and bison into your PATH or run configure with --disable-gp2ddb
6838to disable GP2DDB support.
6839" "$LINENO" 5
6840   fi
6841else
6842      gp_msg_dp2ddb="no $msg_dp2ddb"
6843fi
6844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gp_msg_gp2ddb}" >&5
6845$as_echo "${gp_msg_gp2ddb}" >&6; }
6846
6847 if "$try_gp2ddb" && test -x "$FLEX" && test -x "$BISON"; then
6848  ENABLED_GP2DDB_TRUE=
6849  ENABLED_GP2DDB_FALSE='#'
6850else
6851  ENABLED_GP2DDB_TRUE='#'
6852  ENABLED_GP2DDB_FALSE=
6853fi
6854
6855
6856if "$try_gp2ddb" && test -x "$FLEX" && test -x "$BISON"; then
6857	gp_msg_gp2ddb="yes $msg_gp2ddb"
6858
6859$as_echo "#define ENABLED_GP2DDB 1" >>confdefs.h
6860
6861else
6862	gp_msg_gp2ddb="no $msg_gp2ddb"
6863fi
6864
6865gp_config_msg_len="$(expr "GP2DDB support" : '.*')"
6866if test "$gp_config_msg_len" -ge "$gp_config_len"; then
6867	gp_config_msg_lhs="$(expr "GP2DDB support" : "\(.\{0,${gp_config_len3}\}\)")..:"
6868else
6869	gp_config_msg_lhs="$(expr "GP2DDB support:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
6870fi
6871gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} ${gp_msg_gp2ddb} (EXPERIMENTAL)
6872"
6873
6874
6875# Check whether --enable-static was given.
6876if test "${enable_static+set}" = set; then :
6877  enableval=$enable_static; p=${PACKAGE-default}
6878    case $enableval in
6879    yes) enable_static=yes ;;
6880    no) enable_static=no ;;
6881    *)
6882     enable_static=no
6883      # Look at the argument we got.  We use all the common list separators.
6884      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
6885      for pkg in $enableval; do
6886	IFS=$lt_save_ifs
6887	if test "X$pkg" = "X$p"; then
6888	  enable_static=yes
6889	fi
6890      done
6891      IFS=$lt_save_ifs
6892      ;;
6893    esac
6894else
6895  enable_static=no
6896fi
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906# Make sure we can run config.sub.
6907$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6908  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6909
6910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6911$as_echo_n "checking build system type... " >&6; }
6912if ${ac_cv_build+:} false; then :
6913  $as_echo_n "(cached) " >&6
6914else
6915  ac_build_alias=$build_alias
6916test "x$ac_build_alias" = x &&
6917  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6918test "x$ac_build_alias" = x &&
6919  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6920ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6921  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6922
6923fi
6924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6925$as_echo "$ac_cv_build" >&6; }
6926case $ac_cv_build in
6927*-*-*) ;;
6928*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6929esac
6930build=$ac_cv_build
6931ac_save_IFS=$IFS; IFS='-'
6932set x $ac_cv_build
6933shift
6934build_cpu=$1
6935build_vendor=$2
6936shift; shift
6937# Remember, the first character of IFS is used to create $*,
6938# except with old shells:
6939build_os=$*
6940IFS=$ac_save_IFS
6941case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6942
6943
6944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6945$as_echo_n "checking host system type... " >&6; }
6946if ${ac_cv_host+:} false; then :
6947  $as_echo_n "(cached) " >&6
6948else
6949  if test "x$host_alias" = x; then
6950  ac_cv_host=$ac_cv_build
6951else
6952  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6953    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6954fi
6955
6956fi
6957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6958$as_echo "$ac_cv_host" >&6; }
6959case $ac_cv_host in
6960*-*-*) ;;
6961*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6962esac
6963host=$ac_cv_host
6964ac_save_IFS=$IFS; IFS='-'
6965set x $ac_cv_host
6966shift
6967host_cpu=$1
6968host_vendor=$2
6969shift; shift
6970# Remember, the first character of IFS is used to create $*,
6971# except with old shells:
6972host_os=$*
6973IFS=$ac_save_IFS
6974case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6975
6976
6977enable_win32_dll=yes
6978
6979case $host in
6980*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
6981  if test -n "$ac_tool_prefix"; then
6982  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6983set dummy ${ac_tool_prefix}as; ac_word=$2
6984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6985$as_echo_n "checking for $ac_word... " >&6; }
6986if ${ac_cv_prog_AS+:} false; then :
6987  $as_echo_n "(cached) " >&6
6988else
6989  if test -n "$AS"; then
6990  ac_cv_prog_AS="$AS" # Let the user override the test.
6991else
6992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993for as_dir in $PATH
6994do
6995  IFS=$as_save_IFS
6996  test -z "$as_dir" && as_dir=.
6997    for ac_exec_ext in '' $ac_executable_extensions; do
6998  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6999    ac_cv_prog_AS="${ac_tool_prefix}as"
7000    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7001    break 2
7002  fi
7003done
7004  done
7005IFS=$as_save_IFS
7006
7007fi
7008fi
7009AS=$ac_cv_prog_AS
7010if test -n "$AS"; then
7011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7012$as_echo "$AS" >&6; }
7013else
7014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7015$as_echo "no" >&6; }
7016fi
7017
7018
7019fi
7020if test -z "$ac_cv_prog_AS"; then
7021  ac_ct_AS=$AS
7022  # Extract the first word of "as", so it can be a program name with args.
7023set dummy as; ac_word=$2
7024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7025$as_echo_n "checking for $ac_word... " >&6; }
7026if ${ac_cv_prog_ac_ct_AS+:} false; then :
7027  $as_echo_n "(cached) " >&6
7028else
7029  if test -n "$ac_ct_AS"; then
7030  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7031else
7032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033for as_dir in $PATH
7034do
7035  IFS=$as_save_IFS
7036  test -z "$as_dir" && as_dir=.
7037    for ac_exec_ext in '' $ac_executable_extensions; do
7038  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7039    ac_cv_prog_ac_ct_AS="as"
7040    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7041    break 2
7042  fi
7043done
7044  done
7045IFS=$as_save_IFS
7046
7047fi
7048fi
7049ac_ct_AS=$ac_cv_prog_ac_ct_AS
7050if test -n "$ac_ct_AS"; then
7051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7052$as_echo "$ac_ct_AS" >&6; }
7053else
7054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7055$as_echo "no" >&6; }
7056fi
7057
7058  if test "x$ac_ct_AS" = x; then
7059    AS="false"
7060  else
7061    case $cross_compiling:$ac_tool_warned in
7062yes:)
7063{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7064$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7065ac_tool_warned=yes ;;
7066esac
7067    AS=$ac_ct_AS
7068  fi
7069else
7070  AS="$ac_cv_prog_AS"
7071fi
7072
7073  if test -n "$ac_tool_prefix"; then
7074  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7075set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7077$as_echo_n "checking for $ac_word... " >&6; }
7078if ${ac_cv_prog_DLLTOOL+:} false; then :
7079  $as_echo_n "(cached) " >&6
7080else
7081  if test -n "$DLLTOOL"; then
7082  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7083else
7084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085for as_dir in $PATH
7086do
7087  IFS=$as_save_IFS
7088  test -z "$as_dir" && as_dir=.
7089    for ac_exec_ext in '' $ac_executable_extensions; do
7090  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7091    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7092    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7093    break 2
7094  fi
7095done
7096  done
7097IFS=$as_save_IFS
7098
7099fi
7100fi
7101DLLTOOL=$ac_cv_prog_DLLTOOL
7102if test -n "$DLLTOOL"; then
7103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7104$as_echo "$DLLTOOL" >&6; }
7105else
7106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7107$as_echo "no" >&6; }
7108fi
7109
7110
7111fi
7112if test -z "$ac_cv_prog_DLLTOOL"; then
7113  ac_ct_DLLTOOL=$DLLTOOL
7114  # Extract the first word of "dlltool", so it can be a program name with args.
7115set dummy dlltool; ac_word=$2
7116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7117$as_echo_n "checking for $ac_word... " >&6; }
7118if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7119  $as_echo_n "(cached) " >&6
7120else
7121  if test -n "$ac_ct_DLLTOOL"; then
7122  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7123else
7124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125for as_dir in $PATH
7126do
7127  IFS=$as_save_IFS
7128  test -z "$as_dir" && as_dir=.
7129    for ac_exec_ext in '' $ac_executable_extensions; do
7130  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7131    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7132    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7133    break 2
7134  fi
7135done
7136  done
7137IFS=$as_save_IFS
7138
7139fi
7140fi
7141ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7142if test -n "$ac_ct_DLLTOOL"; then
7143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7144$as_echo "$ac_ct_DLLTOOL" >&6; }
7145else
7146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7147$as_echo "no" >&6; }
7148fi
7149
7150  if test "x$ac_ct_DLLTOOL" = x; then
7151    DLLTOOL="false"
7152  else
7153    case $cross_compiling:$ac_tool_warned in
7154yes:)
7155{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7156$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7157ac_tool_warned=yes ;;
7158esac
7159    DLLTOOL=$ac_ct_DLLTOOL
7160  fi
7161else
7162  DLLTOOL="$ac_cv_prog_DLLTOOL"
7163fi
7164
7165  if test -n "$ac_tool_prefix"; then
7166  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7167set dummy ${ac_tool_prefix}objdump; ac_word=$2
7168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7169$as_echo_n "checking for $ac_word... " >&6; }
7170if ${ac_cv_prog_OBJDUMP+:} false; then :
7171  $as_echo_n "(cached) " >&6
7172else
7173  if test -n "$OBJDUMP"; then
7174  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7175else
7176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177for as_dir in $PATH
7178do
7179  IFS=$as_save_IFS
7180  test -z "$as_dir" && as_dir=.
7181    for ac_exec_ext in '' $ac_executable_extensions; do
7182  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7183    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7184    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7185    break 2
7186  fi
7187done
7188  done
7189IFS=$as_save_IFS
7190
7191fi
7192fi
7193OBJDUMP=$ac_cv_prog_OBJDUMP
7194if test -n "$OBJDUMP"; then
7195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7196$as_echo "$OBJDUMP" >&6; }
7197else
7198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199$as_echo "no" >&6; }
7200fi
7201
7202
7203fi
7204if test -z "$ac_cv_prog_OBJDUMP"; then
7205  ac_ct_OBJDUMP=$OBJDUMP
7206  # Extract the first word of "objdump", so it can be a program name with args.
7207set dummy objdump; ac_word=$2
7208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7209$as_echo_n "checking for $ac_word... " >&6; }
7210if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7211  $as_echo_n "(cached) " >&6
7212else
7213  if test -n "$ac_ct_OBJDUMP"; then
7214  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7215else
7216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217for as_dir in $PATH
7218do
7219  IFS=$as_save_IFS
7220  test -z "$as_dir" && as_dir=.
7221    for ac_exec_ext in '' $ac_executable_extensions; do
7222  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7223    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7224    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7225    break 2
7226  fi
7227done
7228  done
7229IFS=$as_save_IFS
7230
7231fi
7232fi
7233ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7234if test -n "$ac_ct_OBJDUMP"; then
7235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7236$as_echo "$ac_ct_OBJDUMP" >&6; }
7237else
7238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239$as_echo "no" >&6; }
7240fi
7241
7242  if test "x$ac_ct_OBJDUMP" = x; then
7243    OBJDUMP="false"
7244  else
7245    case $cross_compiling:$ac_tool_warned in
7246yes:)
7247{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7248$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7249ac_tool_warned=yes ;;
7250esac
7251    OBJDUMP=$ac_ct_OBJDUMP
7252  fi
7253else
7254  OBJDUMP="$ac_cv_prog_OBJDUMP"
7255fi
7256
7257  ;;
7258esac
7259
7260test -z "$AS" && AS=as
7261
7262
7263
7264
7265
7266test -z "$DLLTOOL" && DLLTOOL=dlltool
7267
7268
7269
7270
7271
7272test -z "$OBJDUMP" && OBJDUMP=objdump
7273
7274
7275
7276
7277
7278
7279
7280enable_dlopen=yes
7281
7282
7283
7284case `pwd` in
7285  *\ * | *\	*)
7286    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7287$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7288esac
7289
7290
7291
7292macro_version='2.4.6'
7293macro_revision='2.4.6'
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307ltmain=$ac_aux_dir/ltmain.sh
7308
7309# Backslashify metacharacters that are still active within
7310# double-quoted strings.
7311sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7312
7313# Same as above, but do not quote variable references.
7314double_quote_subst='s/\(["`\\]\)/\\\1/g'
7315
7316# Sed substitution to delay expansion of an escaped shell variable in a
7317# double_quote_subst'ed string.
7318delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7319
7320# Sed substitution to delay expansion of an escaped single quote.
7321delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7322
7323# Sed substitution to avoid accidental globbing in evaled expressions
7324no_glob_subst='s/\*/\\\*/g'
7325
7326ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7327ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7328ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7329
7330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7331$as_echo_n "checking how to print strings... " >&6; }
7332# Test print first, because it will be a builtin if present.
7333if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7334   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7335  ECHO='print -r --'
7336elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7337  ECHO='printf %s\n'
7338else
7339  # Use this function as a fallback that always works.
7340  func_fallback_echo ()
7341  {
7342    eval 'cat <<_LTECHO_EOF
7343$1
7344_LTECHO_EOF'
7345  }
7346  ECHO='func_fallback_echo'
7347fi
7348
7349# func_echo_all arg...
7350# Invoke $ECHO with all args, space-separated.
7351func_echo_all ()
7352{
7353    $ECHO ""
7354}
7355
7356case $ECHO in
7357  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7358$as_echo "printf" >&6; } ;;
7359  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7360$as_echo "print -r" >&6; } ;;
7361  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7362$as_echo "cat" >&6; } ;;
7363esac
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7379$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7380if ${ac_cv_path_SED+:} false; then :
7381  $as_echo_n "(cached) " >&6
7382else
7383            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7384     for ac_i in 1 2 3 4 5 6 7; do
7385       ac_script="$ac_script$as_nl$ac_script"
7386     done
7387     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7388     { ac_script=; unset ac_script;}
7389     if test -z "$SED"; then
7390  ac_path_SED_found=false
7391  # Loop through the user's path and test for each of PROGNAME-LIST
7392  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393for as_dir in $PATH
7394do
7395  IFS=$as_save_IFS
7396  test -z "$as_dir" && as_dir=.
7397    for ac_prog in sed gsed; do
7398    for ac_exec_ext in '' $ac_executable_extensions; do
7399      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7400      as_fn_executable_p "$ac_path_SED" || continue
7401# Check for GNU ac_path_SED and select it if it is found.
7402  # Check for GNU $ac_path_SED
7403case `"$ac_path_SED" --version 2>&1` in
7404*GNU*)
7405  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7406*)
7407  ac_count=0
7408  $as_echo_n 0123456789 >"conftest.in"
7409  while :
7410  do
7411    cat "conftest.in" "conftest.in" >"conftest.tmp"
7412    mv "conftest.tmp" "conftest.in"
7413    cp "conftest.in" "conftest.nl"
7414    $as_echo '' >> "conftest.nl"
7415    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7416    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7417    as_fn_arith $ac_count + 1 && ac_count=$as_val
7418    if test $ac_count -gt ${ac_path_SED_max-0}; then
7419      # Best one so far, save it but keep looking for a better one
7420      ac_cv_path_SED="$ac_path_SED"
7421      ac_path_SED_max=$ac_count
7422    fi
7423    # 10*(2^10) chars as input seems more than enough
7424    test $ac_count -gt 10 && break
7425  done
7426  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7427esac
7428
7429      $ac_path_SED_found && break 3
7430    done
7431  done
7432  done
7433IFS=$as_save_IFS
7434  if test -z "$ac_cv_path_SED"; then
7435    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7436  fi
7437else
7438  ac_cv_path_SED=$SED
7439fi
7440
7441fi
7442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7443$as_echo "$ac_cv_path_SED" >&6; }
7444 SED="$ac_cv_path_SED"
7445  rm -f conftest.sed
7446
7447test -z "$SED" && SED=sed
7448Xsed="$SED -e 1s/^X//"
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7461$as_echo_n "checking for fgrep... " >&6; }
7462if ${ac_cv_path_FGREP+:} false; then :
7463  $as_echo_n "(cached) " >&6
7464else
7465  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7466   then ac_cv_path_FGREP="$GREP -F"
7467   else
7468     if test -z "$FGREP"; then
7469  ac_path_FGREP_found=false
7470  # Loop through the user's path and test for each of PROGNAME-LIST
7471  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7472for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7473do
7474  IFS=$as_save_IFS
7475  test -z "$as_dir" && as_dir=.
7476    for ac_prog in fgrep; do
7477    for ac_exec_ext in '' $ac_executable_extensions; do
7478      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7479      as_fn_executable_p "$ac_path_FGREP" || continue
7480# Check for GNU ac_path_FGREP and select it if it is found.
7481  # Check for GNU $ac_path_FGREP
7482case `"$ac_path_FGREP" --version 2>&1` in
7483*GNU*)
7484  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7485*)
7486  ac_count=0
7487  $as_echo_n 0123456789 >"conftest.in"
7488  while :
7489  do
7490    cat "conftest.in" "conftest.in" >"conftest.tmp"
7491    mv "conftest.tmp" "conftest.in"
7492    cp "conftest.in" "conftest.nl"
7493    $as_echo 'FGREP' >> "conftest.nl"
7494    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7495    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7496    as_fn_arith $ac_count + 1 && ac_count=$as_val
7497    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7498      # Best one so far, save it but keep looking for a better one
7499      ac_cv_path_FGREP="$ac_path_FGREP"
7500      ac_path_FGREP_max=$ac_count
7501    fi
7502    # 10*(2^10) chars as input seems more than enough
7503    test $ac_count -gt 10 && break
7504  done
7505  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7506esac
7507
7508      $ac_path_FGREP_found && break 3
7509    done
7510  done
7511  done
7512IFS=$as_save_IFS
7513  if test -z "$ac_cv_path_FGREP"; then
7514    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7515  fi
7516else
7517  ac_cv_path_FGREP=$FGREP
7518fi
7519
7520   fi
7521fi
7522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7523$as_echo "$ac_cv_path_FGREP" >&6; }
7524 FGREP="$ac_cv_path_FGREP"
7525
7526
7527test -z "$GREP" && GREP=grep
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547# Check whether --with-gnu-ld was given.
7548if test "${with_gnu_ld+set}" = set; then :
7549  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7550else
7551  with_gnu_ld=no
7552fi
7553
7554ac_prog=ld
7555if test yes = "$GCC"; then
7556  # Check if gcc -print-prog-name=ld gives a path.
7557  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7558$as_echo_n "checking for ld used by $CC... " >&6; }
7559  case $host in
7560  *-*-mingw*)
7561    # gcc leaves a trailing carriage return, which upsets mingw
7562    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7563  *)
7564    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7565  esac
7566  case $ac_prog in
7567    # Accept absolute paths.
7568    [\\/]* | ?:[\\/]*)
7569      re_direlt='/[^/][^/]*/\.\./'
7570      # Canonicalize the pathname of ld
7571      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7572      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7573	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7574      done
7575      test -z "$LD" && LD=$ac_prog
7576      ;;
7577  "")
7578    # If it fails, then pretend we aren't using GCC.
7579    ac_prog=ld
7580    ;;
7581  *)
7582    # If it is relative, then search for the first ld in PATH.
7583    with_gnu_ld=unknown
7584    ;;
7585  esac
7586elif test yes = "$with_gnu_ld"; then
7587  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7588$as_echo_n "checking for GNU ld... " >&6; }
7589else
7590  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7591$as_echo_n "checking for non-GNU ld... " >&6; }
7592fi
7593if ${lt_cv_path_LD+:} false; then :
7594  $as_echo_n "(cached) " >&6
7595else
7596  if test -z "$LD"; then
7597  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7598  for ac_dir in $PATH; do
7599    IFS=$lt_save_ifs
7600    test -z "$ac_dir" && ac_dir=.
7601    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7602      lt_cv_path_LD=$ac_dir/$ac_prog
7603      # Check to see if the program is GNU ld.  I'd rather use --version,
7604      # but apparently some variants of GNU ld only accept -v.
7605      # Break only if it was the GNU/non-GNU ld that we prefer.
7606      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7607      *GNU* | *'with BFD'*)
7608	test no != "$with_gnu_ld" && break
7609	;;
7610      *)
7611	test yes != "$with_gnu_ld" && break
7612	;;
7613      esac
7614    fi
7615  done
7616  IFS=$lt_save_ifs
7617else
7618  lt_cv_path_LD=$LD # Let the user override the test with a path.
7619fi
7620fi
7621
7622LD=$lt_cv_path_LD
7623if test -n "$LD"; then
7624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7625$as_echo "$LD" >&6; }
7626else
7627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7628$as_echo "no" >&6; }
7629fi
7630test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7632$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7633if ${lt_cv_prog_gnu_ld+:} false; then :
7634  $as_echo_n "(cached) " >&6
7635else
7636  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7637case `$LD -v 2>&1 </dev/null` in
7638*GNU* | *'with BFD'*)
7639  lt_cv_prog_gnu_ld=yes
7640  ;;
7641*)
7642  lt_cv_prog_gnu_ld=no
7643  ;;
7644esac
7645fi
7646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7647$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7648with_gnu_ld=$lt_cv_prog_gnu_ld
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7659$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7660if ${lt_cv_path_NM+:} false; then :
7661  $as_echo_n "(cached) " >&6
7662else
7663  if test -n "$NM"; then
7664  # Let the user override the test.
7665  lt_cv_path_NM=$NM
7666else
7667  lt_nm_to_check=${ac_tool_prefix}nm
7668  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7669    lt_nm_to_check="$lt_nm_to_check nm"
7670  fi
7671  for lt_tmp_nm in $lt_nm_to_check; do
7672    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7673    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7674      IFS=$lt_save_ifs
7675      test -z "$ac_dir" && ac_dir=.
7676      tmp_nm=$ac_dir/$lt_tmp_nm
7677      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7678	# Check to see if the nm accepts a BSD-compat flag.
7679	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7680	#   nm: unknown option "B" ignored
7681	# Tru64's nm complains that /dev/null is an invalid object file
7682	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7683	case $build_os in
7684	mingw*) lt_bad_file=conftest.nm/nofile ;;
7685	*) lt_bad_file=/dev/null ;;
7686	esac
7687	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7688	*$lt_bad_file* | *'Invalid file or object type'*)
7689	  lt_cv_path_NM="$tmp_nm -B"
7690	  break 2
7691	  ;;
7692	*)
7693	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7694	  */dev/null*)
7695	    lt_cv_path_NM="$tmp_nm -p"
7696	    break 2
7697	    ;;
7698	  *)
7699	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7700	    continue # so that we can try to find one that supports BSD flags
7701	    ;;
7702	  esac
7703	  ;;
7704	esac
7705      fi
7706    done
7707    IFS=$lt_save_ifs
7708  done
7709  : ${lt_cv_path_NM=no}
7710fi
7711fi
7712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7713$as_echo "$lt_cv_path_NM" >&6; }
7714if test no != "$lt_cv_path_NM"; then
7715  NM=$lt_cv_path_NM
7716else
7717  # Didn't find any BSD compatible name lister, look for dumpbin.
7718  if test -n "$DUMPBIN"; then :
7719    # Let the user override the test.
7720  else
7721    if test -n "$ac_tool_prefix"; then
7722  for ac_prog in dumpbin "link -dump"
7723  do
7724    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7725set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7727$as_echo_n "checking for $ac_word... " >&6; }
7728if ${ac_cv_prog_DUMPBIN+:} false; then :
7729  $as_echo_n "(cached) " >&6
7730else
7731  if test -n "$DUMPBIN"; then
7732  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7733else
7734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7735for as_dir in $PATH
7736do
7737  IFS=$as_save_IFS
7738  test -z "$as_dir" && as_dir=.
7739    for ac_exec_ext in '' $ac_executable_extensions; do
7740  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7741    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7742    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7743    break 2
7744  fi
7745done
7746  done
7747IFS=$as_save_IFS
7748
7749fi
7750fi
7751DUMPBIN=$ac_cv_prog_DUMPBIN
7752if test -n "$DUMPBIN"; then
7753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7754$as_echo "$DUMPBIN" >&6; }
7755else
7756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7757$as_echo "no" >&6; }
7758fi
7759
7760
7761    test -n "$DUMPBIN" && break
7762  done
7763fi
7764if test -z "$DUMPBIN"; then
7765  ac_ct_DUMPBIN=$DUMPBIN
7766  for ac_prog in dumpbin "link -dump"
7767do
7768  # Extract the first word of "$ac_prog", so it can be a program name with args.
7769set dummy $ac_prog; ac_word=$2
7770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7771$as_echo_n "checking for $ac_word... " >&6; }
7772if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7773  $as_echo_n "(cached) " >&6
7774else
7775  if test -n "$ac_ct_DUMPBIN"; then
7776  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7777else
7778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779for as_dir in $PATH
7780do
7781  IFS=$as_save_IFS
7782  test -z "$as_dir" && as_dir=.
7783    for ac_exec_ext in '' $ac_executable_extensions; do
7784  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7785    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7786    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7787    break 2
7788  fi
7789done
7790  done
7791IFS=$as_save_IFS
7792
7793fi
7794fi
7795ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7796if test -n "$ac_ct_DUMPBIN"; then
7797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7798$as_echo "$ac_ct_DUMPBIN" >&6; }
7799else
7800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801$as_echo "no" >&6; }
7802fi
7803
7804
7805  test -n "$ac_ct_DUMPBIN" && break
7806done
7807
7808  if test "x$ac_ct_DUMPBIN" = x; then
7809    DUMPBIN=":"
7810  else
7811    case $cross_compiling:$ac_tool_warned in
7812yes:)
7813{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7814$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7815ac_tool_warned=yes ;;
7816esac
7817    DUMPBIN=$ac_ct_DUMPBIN
7818  fi
7819fi
7820
7821    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7822    *COFF*)
7823      DUMPBIN="$DUMPBIN -symbols -headers"
7824      ;;
7825    *)
7826      DUMPBIN=:
7827      ;;
7828    esac
7829  fi
7830
7831  if test : != "$DUMPBIN"; then
7832    NM=$DUMPBIN
7833  fi
7834fi
7835test -z "$NM" && NM=nm
7836
7837
7838
7839
7840
7841
7842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7843$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7844if ${lt_cv_nm_interface+:} false; then :
7845  $as_echo_n "(cached) " >&6
7846else
7847  lt_cv_nm_interface="BSD nm"
7848  echo "int some_variable = 0;" > conftest.$ac_ext
7849  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7850  (eval "$ac_compile" 2>conftest.err)
7851  cat conftest.err >&5
7852  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7853  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7854  cat conftest.err >&5
7855  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7856  cat conftest.out >&5
7857  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7858    lt_cv_nm_interface="MS dumpbin"
7859  fi
7860  rm -f conftest*
7861fi
7862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7863$as_echo "$lt_cv_nm_interface" >&6; }
7864
7865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7866$as_echo_n "checking whether ln -s works... " >&6; }
7867LN_S=$as_ln_s
7868if test "$LN_S" = "ln -s"; then
7869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7870$as_echo "yes" >&6; }
7871else
7872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7873$as_echo "no, using $LN_S" >&6; }
7874fi
7875
7876# find the maximum length of command line arguments
7877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7878$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7879if ${lt_cv_sys_max_cmd_len+:} false; then :
7880  $as_echo_n "(cached) " >&6
7881else
7882    i=0
7883  teststring=ABCD
7884
7885  case $build_os in
7886  msdosdjgpp*)
7887    # On DJGPP, this test can blow up pretty badly due to problems in libc
7888    # (any single argument exceeding 2000 bytes causes a buffer overrun
7889    # during glob expansion).  Even if it were fixed, the result of this
7890    # check would be larger than it should be.
7891    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7892    ;;
7893
7894  gnu*)
7895    # Under GNU Hurd, this test is not required because there is
7896    # no limit to the length of command line arguments.
7897    # Libtool will interpret -1 as no limit whatsoever
7898    lt_cv_sys_max_cmd_len=-1;
7899    ;;
7900
7901  cygwin* | mingw* | cegcc*)
7902    # On Win9x/ME, this test blows up -- it succeeds, but takes
7903    # about 5 minutes as the teststring grows exponentially.
7904    # Worse, since 9x/ME are not pre-emptively multitasking,
7905    # you end up with a "frozen" computer, even though with patience
7906    # the test eventually succeeds (with a max line length of 256k).
7907    # Instead, let's just punt: use the minimum linelength reported by
7908    # all of the supported platforms: 8192 (on NT/2K/XP).
7909    lt_cv_sys_max_cmd_len=8192;
7910    ;;
7911
7912  mint*)
7913    # On MiNT this can take a long time and run out of memory.
7914    lt_cv_sys_max_cmd_len=8192;
7915    ;;
7916
7917  amigaos*)
7918    # On AmigaOS with pdksh, this test takes hours, literally.
7919    # So we just punt and use a minimum line length of 8192.
7920    lt_cv_sys_max_cmd_len=8192;
7921    ;;
7922
7923  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7924    # This has been around since 386BSD, at least.  Likely further.
7925    if test -x /sbin/sysctl; then
7926      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7927    elif test -x /usr/sbin/sysctl; then
7928      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7929    else
7930      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7931    fi
7932    # And add a safety zone
7933    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7934    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7935    ;;
7936
7937  interix*)
7938    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7939    lt_cv_sys_max_cmd_len=196608
7940    ;;
7941
7942  os2*)
7943    # The test takes a long time on OS/2.
7944    lt_cv_sys_max_cmd_len=8192
7945    ;;
7946
7947  osf*)
7948    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7949    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7950    # nice to cause kernel panics so lets avoid the loop below.
7951    # First set a reasonable default.
7952    lt_cv_sys_max_cmd_len=16384
7953    #
7954    if test -x /sbin/sysconfig; then
7955      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7956        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7957      esac
7958    fi
7959    ;;
7960  sco3.2v5*)
7961    lt_cv_sys_max_cmd_len=102400
7962    ;;
7963  sysv5* | sco5v6* | sysv4.2uw2*)
7964    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7965    if test -n "$kargmax"; then
7966      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
7967    else
7968      lt_cv_sys_max_cmd_len=32768
7969    fi
7970    ;;
7971  *)
7972    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7973    if test -n "$lt_cv_sys_max_cmd_len" && \
7974       test undefined != "$lt_cv_sys_max_cmd_len"; then
7975      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7976      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7977    else
7978      # Make teststring a little bigger before we do anything with it.
7979      # a 1K string should be a reasonable start.
7980      for i in 1 2 3 4 5 6 7 8; do
7981        teststring=$teststring$teststring
7982      done
7983      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7984      # If test is not a shell built-in, we'll probably end up computing a
7985      # maximum length that is only half of the actual maximum length, but
7986      # we can't tell.
7987      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7988	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7989	      test 17 != "$i" # 1/2 MB should be enough
7990      do
7991        i=`expr $i + 1`
7992        teststring=$teststring$teststring
7993      done
7994      # Only check the string length outside the loop.
7995      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7996      teststring=
7997      # Add a significant safety factor because C++ compilers can tack on
7998      # massive amounts of additional arguments before passing them to the
7999      # linker.  It appears as though 1/2 is a usable value.
8000      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8001    fi
8002    ;;
8003  esac
8004
8005fi
8006
8007if test -n "$lt_cv_sys_max_cmd_len"; then
8008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8009$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8010else
8011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8012$as_echo "none" >&6; }
8013fi
8014max_cmd_len=$lt_cv_sys_max_cmd_len
8015
8016
8017
8018
8019
8020
8021: ${CP="cp -f"}
8022: ${MV="mv -f"}
8023: ${RM="rm -f"}
8024
8025if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8026  lt_unset=unset
8027else
8028  lt_unset=false
8029fi
8030
8031
8032
8033
8034
8035# test EBCDIC or ASCII
8036case `echo X|tr X '\101'` in
8037 A) # ASCII based system
8038    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8039  lt_SP2NL='tr \040 \012'
8040  lt_NL2SP='tr \015\012 \040\040'
8041  ;;
8042 *) # EBCDIC based system
8043  lt_SP2NL='tr \100 \n'
8044  lt_NL2SP='tr \r\n \100\100'
8045  ;;
8046esac
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8057$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8058if ${lt_cv_to_host_file_cmd+:} false; then :
8059  $as_echo_n "(cached) " >&6
8060else
8061  case $host in
8062  *-*-mingw* )
8063    case $build in
8064      *-*-mingw* ) # actually msys
8065        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8066        ;;
8067      *-*-cygwin* )
8068        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8069        ;;
8070      * ) # otherwise, assume *nix
8071        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8072        ;;
8073    esac
8074    ;;
8075  *-*-cygwin* )
8076    case $build in
8077      *-*-mingw* ) # actually msys
8078        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8079        ;;
8080      *-*-cygwin* )
8081        lt_cv_to_host_file_cmd=func_convert_file_noop
8082        ;;
8083      * ) # otherwise, assume *nix
8084        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8085        ;;
8086    esac
8087    ;;
8088  * ) # unhandled hosts (and "normal" native builds)
8089    lt_cv_to_host_file_cmd=func_convert_file_noop
8090    ;;
8091esac
8092
8093fi
8094
8095to_host_file_cmd=$lt_cv_to_host_file_cmd
8096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8097$as_echo "$lt_cv_to_host_file_cmd" >&6; }
8098
8099
8100
8101
8102
8103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8104$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8105if ${lt_cv_to_tool_file_cmd+:} false; then :
8106  $as_echo_n "(cached) " >&6
8107else
8108  #assume ordinary cross tools, or native build.
8109lt_cv_to_tool_file_cmd=func_convert_file_noop
8110case $host in
8111  *-*-mingw* )
8112    case $build in
8113      *-*-mingw* ) # actually msys
8114        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8115        ;;
8116    esac
8117    ;;
8118esac
8119
8120fi
8121
8122to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8124$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8125
8126
8127
8128
8129
8130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8131$as_echo_n "checking for $LD option to reload object files... " >&6; }
8132if ${lt_cv_ld_reload_flag+:} false; then :
8133  $as_echo_n "(cached) " >&6
8134else
8135  lt_cv_ld_reload_flag='-r'
8136fi
8137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8138$as_echo "$lt_cv_ld_reload_flag" >&6; }
8139reload_flag=$lt_cv_ld_reload_flag
8140case $reload_flag in
8141"" | " "*) ;;
8142*) reload_flag=" $reload_flag" ;;
8143esac
8144reload_cmds='$LD$reload_flag -o $output$reload_objs'
8145case $host_os in
8146  cygwin* | mingw* | pw32* | cegcc*)
8147    if test yes != "$GCC"; then
8148      reload_cmds=false
8149    fi
8150    ;;
8151  darwin*)
8152    if test yes = "$GCC"; then
8153      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8154    else
8155      reload_cmds='$LD$reload_flag -o $output$reload_objs'
8156    fi
8157    ;;
8158esac
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168if test -n "$ac_tool_prefix"; then
8169  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8170set dummy ${ac_tool_prefix}objdump; ac_word=$2
8171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8172$as_echo_n "checking for $ac_word... " >&6; }
8173if ${ac_cv_prog_OBJDUMP+:} false; then :
8174  $as_echo_n "(cached) " >&6
8175else
8176  if test -n "$OBJDUMP"; then
8177  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8178else
8179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8180for as_dir in $PATH
8181do
8182  IFS=$as_save_IFS
8183  test -z "$as_dir" && as_dir=.
8184    for ac_exec_ext in '' $ac_executable_extensions; do
8185  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8186    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8187    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8188    break 2
8189  fi
8190done
8191  done
8192IFS=$as_save_IFS
8193
8194fi
8195fi
8196OBJDUMP=$ac_cv_prog_OBJDUMP
8197if test -n "$OBJDUMP"; then
8198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8199$as_echo "$OBJDUMP" >&6; }
8200else
8201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8202$as_echo "no" >&6; }
8203fi
8204
8205
8206fi
8207if test -z "$ac_cv_prog_OBJDUMP"; then
8208  ac_ct_OBJDUMP=$OBJDUMP
8209  # Extract the first word of "objdump", so it can be a program name with args.
8210set dummy objdump; ac_word=$2
8211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8212$as_echo_n "checking for $ac_word... " >&6; }
8213if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8214  $as_echo_n "(cached) " >&6
8215else
8216  if test -n "$ac_ct_OBJDUMP"; then
8217  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8218else
8219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8220for as_dir in $PATH
8221do
8222  IFS=$as_save_IFS
8223  test -z "$as_dir" && as_dir=.
8224    for ac_exec_ext in '' $ac_executable_extensions; do
8225  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8226    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8227    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8228    break 2
8229  fi
8230done
8231  done
8232IFS=$as_save_IFS
8233
8234fi
8235fi
8236ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8237if test -n "$ac_ct_OBJDUMP"; then
8238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8239$as_echo "$ac_ct_OBJDUMP" >&6; }
8240else
8241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8242$as_echo "no" >&6; }
8243fi
8244
8245  if test "x$ac_ct_OBJDUMP" = x; then
8246    OBJDUMP="false"
8247  else
8248    case $cross_compiling:$ac_tool_warned in
8249yes:)
8250{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8251$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8252ac_tool_warned=yes ;;
8253esac
8254    OBJDUMP=$ac_ct_OBJDUMP
8255  fi
8256else
8257  OBJDUMP="$ac_cv_prog_OBJDUMP"
8258fi
8259
8260test -z "$OBJDUMP" && OBJDUMP=objdump
8261
8262
8263
8264
8265
8266
8267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8268$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8269if ${lt_cv_deplibs_check_method+:} false; then :
8270  $as_echo_n "(cached) " >&6
8271else
8272  lt_cv_file_magic_cmd='$MAGIC_CMD'
8273lt_cv_file_magic_test_file=
8274lt_cv_deplibs_check_method='unknown'
8275# Need to set the preceding variable on all platforms that support
8276# interlibrary dependencies.
8277# 'none' -- dependencies not supported.
8278# 'unknown' -- same as none, but documents that we really don't know.
8279# 'pass_all' -- all dependencies passed with no checks.
8280# 'test_compile' -- check by making test program.
8281# 'file_magic [[regex]]' -- check by looking for files in library path
8282# that responds to the $file_magic_cmd with a given extended regex.
8283# If you have 'file' or equivalent on your system and you're not sure
8284# whether 'pass_all' will *always* work, you probably want this one.
8285
8286case $host_os in
8287aix[4-9]*)
8288  lt_cv_deplibs_check_method=pass_all
8289  ;;
8290
8291beos*)
8292  lt_cv_deplibs_check_method=pass_all
8293  ;;
8294
8295bsdi[45]*)
8296  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8297  lt_cv_file_magic_cmd='/usr/bin/file -L'
8298  lt_cv_file_magic_test_file=/shlib/libc.so
8299  ;;
8300
8301cygwin*)
8302  # func_win32_libid is a shell function defined in ltmain.sh
8303  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8304  lt_cv_file_magic_cmd='func_win32_libid'
8305  ;;
8306
8307mingw* | pw32*)
8308  # Base MSYS/MinGW do not provide the 'file' command needed by
8309  # func_win32_libid shell function, so use a weaker test based on 'objdump',
8310  # unless we find 'file', for example because we are cross-compiling.
8311  if ( file / ) >/dev/null 2>&1; then
8312    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8313    lt_cv_file_magic_cmd='func_win32_libid'
8314  else
8315    # Keep this pattern in sync with the one in func_win32_libid.
8316    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8317    lt_cv_file_magic_cmd='$OBJDUMP -f'
8318  fi
8319  ;;
8320
8321cegcc*)
8322  # use the weaker test based on 'objdump'. See mingw*.
8323  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8324  lt_cv_file_magic_cmd='$OBJDUMP -f'
8325  ;;
8326
8327darwin* | rhapsody*)
8328  lt_cv_deplibs_check_method=pass_all
8329  ;;
8330
8331freebsd* | dragonfly*)
8332  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8333    case $host_cpu in
8334    i*86 )
8335      # Not sure whether the presence of OpenBSD here was a mistake.
8336      # Let's accept both of them until this is cleared up.
8337      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8338      lt_cv_file_magic_cmd=/usr/bin/file
8339      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8340      ;;
8341    esac
8342  else
8343    lt_cv_deplibs_check_method=pass_all
8344  fi
8345  ;;
8346
8347haiku*)
8348  lt_cv_deplibs_check_method=pass_all
8349  ;;
8350
8351hpux10.20* | hpux11*)
8352  lt_cv_file_magic_cmd=/usr/bin/file
8353  case $host_cpu in
8354  ia64*)
8355    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8356    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8357    ;;
8358  hppa*64*)
8359    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]'
8360    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8361    ;;
8362  *)
8363    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8364    lt_cv_file_magic_test_file=/usr/lib/libc.sl
8365    ;;
8366  esac
8367  ;;
8368
8369interix[3-9]*)
8370  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8371  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8372  ;;
8373
8374irix5* | irix6* | nonstopux*)
8375  case $LD in
8376  *-32|*"-32 ") libmagic=32-bit;;
8377  *-n32|*"-n32 ") libmagic=N32;;
8378  *-64|*"-64 ") libmagic=64-bit;;
8379  *) libmagic=never-match;;
8380  esac
8381  lt_cv_deplibs_check_method=pass_all
8382  ;;
8383
8384# This must be glibc/ELF.
8385linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8386  lt_cv_deplibs_check_method=pass_all
8387  ;;
8388
8389netbsd*)
8390  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8391    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8392  else
8393    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8394  fi
8395  ;;
8396
8397newos6*)
8398  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8399  lt_cv_file_magic_cmd=/usr/bin/file
8400  lt_cv_file_magic_test_file=/usr/lib/libnls.so
8401  ;;
8402
8403*nto* | *qnx*)
8404  lt_cv_deplibs_check_method=pass_all
8405  ;;
8406
8407openbsd* | bitrig*)
8408  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8409    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8410  else
8411    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8412  fi
8413  ;;
8414
8415osf3* | osf4* | osf5*)
8416  lt_cv_deplibs_check_method=pass_all
8417  ;;
8418
8419rdos*)
8420  lt_cv_deplibs_check_method=pass_all
8421  ;;
8422
8423solaris*)
8424  lt_cv_deplibs_check_method=pass_all
8425  ;;
8426
8427sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8428  lt_cv_deplibs_check_method=pass_all
8429  ;;
8430
8431sysv4 | sysv4.3*)
8432  case $host_vendor in
8433  motorola)
8434    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]'
8435    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8436    ;;
8437  ncr)
8438    lt_cv_deplibs_check_method=pass_all
8439    ;;
8440  sequent)
8441    lt_cv_file_magic_cmd='/bin/file'
8442    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8443    ;;
8444  sni)
8445    lt_cv_file_magic_cmd='/bin/file'
8446    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8447    lt_cv_file_magic_test_file=/lib/libc.so
8448    ;;
8449  siemens)
8450    lt_cv_deplibs_check_method=pass_all
8451    ;;
8452  pc)
8453    lt_cv_deplibs_check_method=pass_all
8454    ;;
8455  esac
8456  ;;
8457
8458tpf*)
8459  lt_cv_deplibs_check_method=pass_all
8460  ;;
8461os2*)
8462  lt_cv_deplibs_check_method=pass_all
8463  ;;
8464esac
8465
8466fi
8467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8468$as_echo "$lt_cv_deplibs_check_method" >&6; }
8469
8470file_magic_glob=
8471want_nocaseglob=no
8472if test "$build" = "$host"; then
8473  case $host_os in
8474  mingw* | pw32*)
8475    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8476      want_nocaseglob=yes
8477    else
8478      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8479    fi
8480    ;;
8481  esac
8482fi
8483
8484file_magic_cmd=$lt_cv_file_magic_cmd
8485deplibs_check_method=$lt_cv_deplibs_check_method
8486test -z "$deplibs_check_method" && deplibs_check_method=unknown
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509if test -n "$ac_tool_prefix"; then
8510  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8511set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8513$as_echo_n "checking for $ac_word... " >&6; }
8514if ${ac_cv_prog_DLLTOOL+:} false; then :
8515  $as_echo_n "(cached) " >&6
8516else
8517  if test -n "$DLLTOOL"; then
8518  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8519else
8520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8521for as_dir in $PATH
8522do
8523  IFS=$as_save_IFS
8524  test -z "$as_dir" && as_dir=.
8525    for ac_exec_ext in '' $ac_executable_extensions; do
8526  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8527    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8528    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8529    break 2
8530  fi
8531done
8532  done
8533IFS=$as_save_IFS
8534
8535fi
8536fi
8537DLLTOOL=$ac_cv_prog_DLLTOOL
8538if test -n "$DLLTOOL"; then
8539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8540$as_echo "$DLLTOOL" >&6; }
8541else
8542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8543$as_echo "no" >&6; }
8544fi
8545
8546
8547fi
8548if test -z "$ac_cv_prog_DLLTOOL"; then
8549  ac_ct_DLLTOOL=$DLLTOOL
8550  # Extract the first word of "dlltool", so it can be a program name with args.
8551set dummy dlltool; ac_word=$2
8552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8553$as_echo_n "checking for $ac_word... " >&6; }
8554if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8555  $as_echo_n "(cached) " >&6
8556else
8557  if test -n "$ac_ct_DLLTOOL"; then
8558  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8559else
8560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8561for as_dir in $PATH
8562do
8563  IFS=$as_save_IFS
8564  test -z "$as_dir" && as_dir=.
8565    for ac_exec_ext in '' $ac_executable_extensions; do
8566  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8567    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8568    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8569    break 2
8570  fi
8571done
8572  done
8573IFS=$as_save_IFS
8574
8575fi
8576fi
8577ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8578if test -n "$ac_ct_DLLTOOL"; then
8579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8580$as_echo "$ac_ct_DLLTOOL" >&6; }
8581else
8582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8583$as_echo "no" >&6; }
8584fi
8585
8586  if test "x$ac_ct_DLLTOOL" = x; then
8587    DLLTOOL="false"
8588  else
8589    case $cross_compiling:$ac_tool_warned in
8590yes:)
8591{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8592$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8593ac_tool_warned=yes ;;
8594esac
8595    DLLTOOL=$ac_ct_DLLTOOL
8596  fi
8597else
8598  DLLTOOL="$ac_cv_prog_DLLTOOL"
8599fi
8600
8601test -z "$DLLTOOL" && DLLTOOL=dlltool
8602
8603
8604
8605
8606
8607
8608
8609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8610$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8611if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8612  $as_echo_n "(cached) " >&6
8613else
8614  lt_cv_sharedlib_from_linklib_cmd='unknown'
8615
8616case $host_os in
8617cygwin* | mingw* | pw32* | cegcc*)
8618  # two different shell functions defined in ltmain.sh;
8619  # decide which one to use based on capabilities of $DLLTOOL
8620  case `$DLLTOOL --help 2>&1` in
8621  *--identify-strict*)
8622    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8623    ;;
8624  *)
8625    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8626    ;;
8627  esac
8628  ;;
8629*)
8630  # fallback: assume linklib IS sharedlib
8631  lt_cv_sharedlib_from_linklib_cmd=$ECHO
8632  ;;
8633esac
8634
8635fi
8636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8637$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8638sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8639test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8640
8641
8642
8643
8644
8645
8646
8647if test -n "$ac_tool_prefix"; then
8648  for ac_prog in ar
8649  do
8650    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8651set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8653$as_echo_n "checking for $ac_word... " >&6; }
8654if ${ac_cv_prog_AR+:} false; then :
8655  $as_echo_n "(cached) " >&6
8656else
8657  if test -n "$AR"; then
8658  ac_cv_prog_AR="$AR" # Let the user override the test.
8659else
8660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8661for as_dir in $PATH
8662do
8663  IFS=$as_save_IFS
8664  test -z "$as_dir" && as_dir=.
8665    for ac_exec_ext in '' $ac_executable_extensions; do
8666  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8667    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8668    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8669    break 2
8670  fi
8671done
8672  done
8673IFS=$as_save_IFS
8674
8675fi
8676fi
8677AR=$ac_cv_prog_AR
8678if test -n "$AR"; then
8679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8680$as_echo "$AR" >&6; }
8681else
8682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8683$as_echo "no" >&6; }
8684fi
8685
8686
8687    test -n "$AR" && break
8688  done
8689fi
8690if test -z "$AR"; then
8691  ac_ct_AR=$AR
8692  for ac_prog in ar
8693do
8694  # Extract the first word of "$ac_prog", so it can be a program name with args.
8695set dummy $ac_prog; ac_word=$2
8696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8697$as_echo_n "checking for $ac_word... " >&6; }
8698if ${ac_cv_prog_ac_ct_AR+:} false; then :
8699  $as_echo_n "(cached) " >&6
8700else
8701  if test -n "$ac_ct_AR"; then
8702  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8703else
8704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8705for as_dir in $PATH
8706do
8707  IFS=$as_save_IFS
8708  test -z "$as_dir" && as_dir=.
8709    for ac_exec_ext in '' $ac_executable_extensions; do
8710  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8711    ac_cv_prog_ac_ct_AR="$ac_prog"
8712    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8713    break 2
8714  fi
8715done
8716  done
8717IFS=$as_save_IFS
8718
8719fi
8720fi
8721ac_ct_AR=$ac_cv_prog_ac_ct_AR
8722if test -n "$ac_ct_AR"; then
8723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8724$as_echo "$ac_ct_AR" >&6; }
8725else
8726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8727$as_echo "no" >&6; }
8728fi
8729
8730
8731  test -n "$ac_ct_AR" && break
8732done
8733
8734  if test "x$ac_ct_AR" = x; then
8735    AR="false"
8736  else
8737    case $cross_compiling:$ac_tool_warned in
8738yes:)
8739{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8740$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8741ac_tool_warned=yes ;;
8742esac
8743    AR=$ac_ct_AR
8744  fi
8745fi
8746
8747: ${AR=ar}
8748: ${AR_FLAGS=cru}
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8761$as_echo_n "checking for archiver @FILE support... " >&6; }
8762if ${lt_cv_ar_at_file+:} false; then :
8763  $as_echo_n "(cached) " >&6
8764else
8765  lt_cv_ar_at_file=no
8766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8767/* end confdefs.h.  */
8768
8769int
8770main ()
8771{
8772
8773  ;
8774  return 0;
8775}
8776_ACEOF
8777if ac_fn_c_try_compile "$LINENO"; then :
8778  echo conftest.$ac_objext > conftest.lst
8779      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8780      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8781  (eval $lt_ar_try) 2>&5
8782  ac_status=$?
8783  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8784  test $ac_status = 0; }
8785      if test 0 -eq "$ac_status"; then
8786	# Ensure the archiver fails upon bogus file names.
8787	rm -f conftest.$ac_objext libconftest.a
8788	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8789  (eval $lt_ar_try) 2>&5
8790  ac_status=$?
8791  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8792  test $ac_status = 0; }
8793	if test 0 -ne "$ac_status"; then
8794          lt_cv_ar_at_file=@
8795        fi
8796      fi
8797      rm -f conftest.* libconftest.a
8798
8799fi
8800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8801
8802fi
8803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8804$as_echo "$lt_cv_ar_at_file" >&6; }
8805
8806if test no = "$lt_cv_ar_at_file"; then
8807  archiver_list_spec=
8808else
8809  archiver_list_spec=$lt_cv_ar_at_file
8810fi
8811
8812
8813
8814
8815
8816
8817
8818if test -n "$ac_tool_prefix"; then
8819  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8820set dummy ${ac_tool_prefix}strip; ac_word=$2
8821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8822$as_echo_n "checking for $ac_word... " >&6; }
8823if ${ac_cv_prog_STRIP+:} false; then :
8824  $as_echo_n "(cached) " >&6
8825else
8826  if test -n "$STRIP"; then
8827  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8828else
8829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8830for as_dir in $PATH
8831do
8832  IFS=$as_save_IFS
8833  test -z "$as_dir" && as_dir=.
8834    for ac_exec_ext in '' $ac_executable_extensions; do
8835  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8836    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8837    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8838    break 2
8839  fi
8840done
8841  done
8842IFS=$as_save_IFS
8843
8844fi
8845fi
8846STRIP=$ac_cv_prog_STRIP
8847if test -n "$STRIP"; then
8848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8849$as_echo "$STRIP" >&6; }
8850else
8851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8852$as_echo "no" >&6; }
8853fi
8854
8855
8856fi
8857if test -z "$ac_cv_prog_STRIP"; then
8858  ac_ct_STRIP=$STRIP
8859  # Extract the first word of "strip", so it can be a program name with args.
8860set dummy strip; ac_word=$2
8861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8862$as_echo_n "checking for $ac_word... " >&6; }
8863if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8864  $as_echo_n "(cached) " >&6
8865else
8866  if test -n "$ac_ct_STRIP"; then
8867  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8868else
8869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8870for as_dir in $PATH
8871do
8872  IFS=$as_save_IFS
8873  test -z "$as_dir" && as_dir=.
8874    for ac_exec_ext in '' $ac_executable_extensions; do
8875  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8876    ac_cv_prog_ac_ct_STRIP="strip"
8877    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8878    break 2
8879  fi
8880done
8881  done
8882IFS=$as_save_IFS
8883
8884fi
8885fi
8886ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8887if test -n "$ac_ct_STRIP"; then
8888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8889$as_echo "$ac_ct_STRIP" >&6; }
8890else
8891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8892$as_echo "no" >&6; }
8893fi
8894
8895  if test "x$ac_ct_STRIP" = x; then
8896    STRIP=":"
8897  else
8898    case $cross_compiling:$ac_tool_warned in
8899yes:)
8900{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8901$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8902ac_tool_warned=yes ;;
8903esac
8904    STRIP=$ac_ct_STRIP
8905  fi
8906else
8907  STRIP="$ac_cv_prog_STRIP"
8908fi
8909
8910test -z "$STRIP" && STRIP=:
8911
8912
8913
8914
8915
8916
8917if test -n "$ac_tool_prefix"; then
8918  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8919set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8921$as_echo_n "checking for $ac_word... " >&6; }
8922if ${ac_cv_prog_RANLIB+:} false; then :
8923  $as_echo_n "(cached) " >&6
8924else
8925  if test -n "$RANLIB"; then
8926  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8927else
8928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8929for as_dir in $PATH
8930do
8931  IFS=$as_save_IFS
8932  test -z "$as_dir" && as_dir=.
8933    for ac_exec_ext in '' $ac_executable_extensions; do
8934  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8935    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8936    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8937    break 2
8938  fi
8939done
8940  done
8941IFS=$as_save_IFS
8942
8943fi
8944fi
8945RANLIB=$ac_cv_prog_RANLIB
8946if test -n "$RANLIB"; then
8947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8948$as_echo "$RANLIB" >&6; }
8949else
8950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8951$as_echo "no" >&6; }
8952fi
8953
8954
8955fi
8956if test -z "$ac_cv_prog_RANLIB"; then
8957  ac_ct_RANLIB=$RANLIB
8958  # Extract the first word of "ranlib", so it can be a program name with args.
8959set dummy ranlib; ac_word=$2
8960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8961$as_echo_n "checking for $ac_word... " >&6; }
8962if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8963  $as_echo_n "(cached) " >&6
8964else
8965  if test -n "$ac_ct_RANLIB"; then
8966  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8967else
8968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8969for as_dir in $PATH
8970do
8971  IFS=$as_save_IFS
8972  test -z "$as_dir" && as_dir=.
8973    for ac_exec_ext in '' $ac_executable_extensions; do
8974  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8975    ac_cv_prog_ac_ct_RANLIB="ranlib"
8976    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8977    break 2
8978  fi
8979done
8980  done
8981IFS=$as_save_IFS
8982
8983fi
8984fi
8985ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8986if test -n "$ac_ct_RANLIB"; then
8987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8988$as_echo "$ac_ct_RANLIB" >&6; }
8989else
8990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8991$as_echo "no" >&6; }
8992fi
8993
8994  if test "x$ac_ct_RANLIB" = x; then
8995    RANLIB=":"
8996  else
8997    case $cross_compiling:$ac_tool_warned in
8998yes:)
8999{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9000$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9001ac_tool_warned=yes ;;
9002esac
9003    RANLIB=$ac_ct_RANLIB
9004  fi
9005else
9006  RANLIB="$ac_cv_prog_RANLIB"
9007fi
9008
9009test -z "$RANLIB" && RANLIB=:
9010
9011
9012
9013
9014
9015
9016# Determine commands to create old-style static archives.
9017old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9018old_postinstall_cmds='chmod 644 $oldlib'
9019old_postuninstall_cmds=
9020
9021if test -n "$RANLIB"; then
9022  case $host_os in
9023  bitrig* | openbsd*)
9024    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9025    ;;
9026  *)
9027    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9028    ;;
9029  esac
9030  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9031fi
9032
9033case $host_os in
9034  darwin*)
9035    lock_old_archive_extraction=yes ;;
9036  *)
9037    lock_old_archive_extraction=no ;;
9038esac
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078# If no C compiler was specified, use CC.
9079LTCC=${LTCC-"$CC"}
9080
9081# If no C compiler flags were specified, use CFLAGS.
9082LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9083
9084# Allow CC to be a program name with arguments.
9085compiler=$CC
9086
9087
9088# Check for command to grab the raw symbol name followed by C symbol from nm.
9089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9090$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9091if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9092  $as_echo_n "(cached) " >&6
9093else
9094
9095# These are sane defaults that work on at least a few old systems.
9096# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9097
9098# Character class describing NM global symbol codes.
9099symcode='[BCDEGRST]'
9100
9101# Regexp to match symbols that can be accessed directly from C.
9102sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9103
9104# Define system-specific variables.
9105case $host_os in
9106aix*)
9107  symcode='[BCDT]'
9108  ;;
9109cygwin* | mingw* | pw32* | cegcc*)
9110  symcode='[ABCDGISTW]'
9111  ;;
9112hpux*)
9113  if test ia64 = "$host_cpu"; then
9114    symcode='[ABCDEGRST]'
9115  fi
9116  ;;
9117irix* | nonstopux*)
9118  symcode='[BCDEGRST]'
9119  ;;
9120osf*)
9121  symcode='[BCDEGQRST]'
9122  ;;
9123solaris*)
9124  symcode='[BDRT]'
9125  ;;
9126sco3.2v5*)
9127  symcode='[DT]'
9128  ;;
9129sysv4.2uw2*)
9130  symcode='[DT]'
9131  ;;
9132sysv5* | sco5v6* | unixware* | OpenUNIX*)
9133  symcode='[ABDT]'
9134  ;;
9135sysv4)
9136  symcode='[DFNSTU]'
9137  ;;
9138esac
9139
9140# If we're using GNU nm, then use its standard symbol codes.
9141case `$NM -V 2>&1` in
9142*GNU* | *'with BFD'*)
9143  symcode='[ABCDGIRSTW]' ;;
9144esac
9145
9146if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9147  # Gets list of data symbols to import.
9148  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9149  # Adjust the below global symbol transforms to fixup imported variables.
9150  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9151  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
9152  lt_c_name_lib_hook="\
9153  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
9154  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
9155else
9156  # Disable hooks by default.
9157  lt_cv_sys_global_symbol_to_import=
9158  lt_cdecl_hook=
9159  lt_c_name_hook=
9160  lt_c_name_lib_hook=
9161fi
9162
9163# Transform an extracted symbol line into a proper C declaration.
9164# Some systems (esp. on ia64) link data and code symbols differently,
9165# so use this general approach.
9166lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9167$lt_cdecl_hook\
9168" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9169" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9170
9171# Transform an extracted symbol line into symbol name and symbol address
9172lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9173$lt_c_name_hook\
9174" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9175" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
9176
9177# Transform an extracted symbol line into symbol name with lib prefix and
9178# symbol address.
9179lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9180$lt_c_name_lib_hook\
9181" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9182" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
9183" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
9184
9185# Handle CRLF in mingw tool chain
9186opt_cr=
9187case $build_os in
9188mingw*)
9189  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9190  ;;
9191esac
9192
9193# Try without a prefix underscore, then with it.
9194for ac_symprfx in "" "_"; do
9195
9196  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9197  symxfrm="\\1 $ac_symprfx\\2 \\2"
9198
9199  # Write the raw and C identifiers.
9200  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9201    # Fake it for dumpbin and say T for any non-static function,
9202    # D for any global variable and I for any imported variable.
9203    # Also find C++ and __fastcall symbols from MSVC++,
9204    # which start with @ or ?.
9205    lt_cv_sys_global_symbol_pipe="$AWK '"\
9206"     {last_section=section; section=\$ 3};"\
9207"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9208"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9209"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9210"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9211"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9212"     \$ 0!~/External *\|/{next};"\
9213"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9214"     {if(hide[section]) next};"\
9215"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9216"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9217"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9218"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9219"     ' prfx=^$ac_symprfx"
9220  else
9221    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9222  fi
9223  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9224
9225  # Check to see that the pipe works correctly.
9226  pipe_works=no
9227
9228  rm -f conftest*
9229  cat > conftest.$ac_ext <<_LT_EOF
9230#ifdef __cplusplus
9231extern "C" {
9232#endif
9233char nm_test_var;
9234void nm_test_func(void);
9235void nm_test_func(void){}
9236#ifdef __cplusplus
9237}
9238#endif
9239int main(){nm_test_var='a';nm_test_func();return(0);}
9240_LT_EOF
9241
9242  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9243  (eval $ac_compile) 2>&5
9244  ac_status=$?
9245  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9246  test $ac_status = 0; }; then
9247    # Now try to grab the symbols.
9248    nlist=conftest.nm
9249    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9250  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9251  ac_status=$?
9252  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9253  test $ac_status = 0; } && test -s "$nlist"; then
9254      # Try sorting and uniquifying the output.
9255      if sort "$nlist" | uniq > "$nlist"T; then
9256	mv -f "$nlist"T "$nlist"
9257      else
9258	rm -f "$nlist"T
9259      fi
9260
9261      # Make sure that we snagged all the symbols we need.
9262      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9263	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9264	  cat <<_LT_EOF > conftest.$ac_ext
9265/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9266#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9267/* DATA imports from DLLs on WIN32 can't be const, because runtime
9268   relocations are performed -- see ld's documentation on pseudo-relocs.  */
9269# define LT_DLSYM_CONST
9270#elif defined __osf__
9271/* This system does not cope well with relocations in const data.  */
9272# define LT_DLSYM_CONST
9273#else
9274# define LT_DLSYM_CONST const
9275#endif
9276
9277#ifdef __cplusplus
9278extern "C" {
9279#endif
9280
9281_LT_EOF
9282	  # Now generate the symbol file.
9283	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9284
9285	  cat <<_LT_EOF >> conftest.$ac_ext
9286
9287/* The mapping between symbol names and symbols.  */
9288LT_DLSYM_CONST struct {
9289  const char *name;
9290  void       *address;
9291}
9292lt__PROGRAM__LTX_preloaded_symbols[] =
9293{
9294  { "@PROGRAM@", (void *) 0 },
9295_LT_EOF
9296	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9297	  cat <<\_LT_EOF >> conftest.$ac_ext
9298  {0, (void *) 0}
9299};
9300
9301/* This works around a problem in FreeBSD linker */
9302#ifdef FREEBSD_WORKAROUND
9303static const void *lt_preloaded_setup() {
9304  return lt__PROGRAM__LTX_preloaded_symbols;
9305}
9306#endif
9307
9308#ifdef __cplusplus
9309}
9310#endif
9311_LT_EOF
9312	  # Now try linking the two files.
9313	  mv conftest.$ac_objext conftstm.$ac_objext
9314	  lt_globsym_save_LIBS=$LIBS
9315	  lt_globsym_save_CFLAGS=$CFLAGS
9316	  LIBS=conftstm.$ac_objext
9317	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9318	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9319  (eval $ac_link) 2>&5
9320  ac_status=$?
9321  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9322  test $ac_status = 0; } && test -s conftest$ac_exeext; then
9323	    pipe_works=yes
9324	  fi
9325	  LIBS=$lt_globsym_save_LIBS
9326	  CFLAGS=$lt_globsym_save_CFLAGS
9327	else
9328	  echo "cannot find nm_test_func in $nlist" >&5
9329	fi
9330      else
9331	echo "cannot find nm_test_var in $nlist" >&5
9332      fi
9333    else
9334      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9335    fi
9336  else
9337    echo "$progname: failed program was:" >&5
9338    cat conftest.$ac_ext >&5
9339  fi
9340  rm -rf conftest* conftst*
9341
9342  # Do not use the global_symbol_pipe unless it works.
9343  if test yes = "$pipe_works"; then
9344    break
9345  else
9346    lt_cv_sys_global_symbol_pipe=
9347  fi
9348done
9349
9350fi
9351
9352if test -z "$lt_cv_sys_global_symbol_pipe"; then
9353  lt_cv_sys_global_symbol_to_cdecl=
9354fi
9355if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9357$as_echo "failed" >&6; }
9358else
9359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9360$as_echo "ok" >&6; }
9361fi
9362
9363# Response file support.
9364if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9365  nm_file_list_spec='@'
9366elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9367  nm_file_list_spec='@'
9368fi
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9407$as_echo_n "checking for sysroot... " >&6; }
9408
9409# Check whether --with-sysroot was given.
9410if test "${with_sysroot+set}" = set; then :
9411  withval=$with_sysroot;
9412else
9413  with_sysroot=no
9414fi
9415
9416
9417lt_sysroot=
9418case $with_sysroot in #(
9419 yes)
9420   if test yes = "$GCC"; then
9421     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9422   fi
9423   ;; #(
9424 /*)
9425   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9426   ;; #(
9427 no|'')
9428   ;; #(
9429 *)
9430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9431$as_echo "$with_sysroot" >&6; }
9432   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9433   ;;
9434esac
9435
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9437$as_echo "${lt_sysroot:-no}" >&6; }
9438
9439
9440
9441
9442
9443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9444$as_echo_n "checking for a working dd... " >&6; }
9445if ${ac_cv_path_lt_DD+:} false; then :
9446  $as_echo_n "(cached) " >&6
9447else
9448  printf 0123456789abcdef0123456789abcdef >conftest.i
9449cat conftest.i conftest.i >conftest2.i
9450: ${lt_DD:=$DD}
9451if test -z "$lt_DD"; then
9452  ac_path_lt_DD_found=false
9453  # Loop through the user's path and test for each of PROGNAME-LIST
9454  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9455for as_dir in $PATH
9456do
9457  IFS=$as_save_IFS
9458  test -z "$as_dir" && as_dir=.
9459    for ac_prog in dd; do
9460    for ac_exec_ext in '' $ac_executable_extensions; do
9461      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9462      as_fn_executable_p "$ac_path_lt_DD" || continue
9463if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9464  cmp -s conftest.i conftest.out \
9465  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9466fi
9467      $ac_path_lt_DD_found && break 3
9468    done
9469  done
9470  done
9471IFS=$as_save_IFS
9472  if test -z "$ac_cv_path_lt_DD"; then
9473    :
9474  fi
9475else
9476  ac_cv_path_lt_DD=$lt_DD
9477fi
9478
9479rm -f conftest.i conftest2.i conftest.out
9480fi
9481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9482$as_echo "$ac_cv_path_lt_DD" >&6; }
9483
9484
9485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9486$as_echo_n "checking how to truncate binary pipes... " >&6; }
9487if ${lt_cv_truncate_bin+:} false; then :
9488  $as_echo_n "(cached) " >&6
9489else
9490  printf 0123456789abcdef0123456789abcdef >conftest.i
9491cat conftest.i conftest.i >conftest2.i
9492lt_cv_truncate_bin=
9493if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9494  cmp -s conftest.i conftest.out \
9495  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9496fi
9497rm -f conftest.i conftest2.i conftest.out
9498test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9499fi
9500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9501$as_echo "$lt_cv_truncate_bin" >&6; }
9502
9503
9504
9505
9506
9507
9508
9509# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
9510func_cc_basename ()
9511{
9512    for cc_temp in $*""; do
9513      case $cc_temp in
9514        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9515        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9516        \-*) ;;
9517        *) break;;
9518      esac
9519    done
9520    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9521}
9522
9523# Check whether --enable-libtool-lock was given.
9524if test "${enable_libtool_lock+set}" = set; then :
9525  enableval=$enable_libtool_lock;
9526fi
9527
9528test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9529
9530# Some flags need to be propagated to the compiler or linker for good
9531# libtool support.
9532case $host in
9533ia64-*-hpux*)
9534  # Find out what ABI is being produced by ac_compile, and set mode
9535  # options accordingly.
9536  echo 'int i;' > conftest.$ac_ext
9537  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9538  (eval $ac_compile) 2>&5
9539  ac_status=$?
9540  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9541  test $ac_status = 0; }; then
9542    case `/usr/bin/file conftest.$ac_objext` in
9543      *ELF-32*)
9544	HPUX_IA64_MODE=32
9545	;;
9546      *ELF-64*)
9547	HPUX_IA64_MODE=64
9548	;;
9549    esac
9550  fi
9551  rm -rf conftest*
9552  ;;
9553*-*-irix6*)
9554  # Find out what ABI is being produced by ac_compile, and set linker
9555  # options accordingly.
9556  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9557  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9558  (eval $ac_compile) 2>&5
9559  ac_status=$?
9560  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9561  test $ac_status = 0; }; then
9562    if test yes = "$lt_cv_prog_gnu_ld"; then
9563      case `/usr/bin/file conftest.$ac_objext` in
9564	*32-bit*)
9565	  LD="${LD-ld} -melf32bsmip"
9566	  ;;
9567	*N32*)
9568	  LD="${LD-ld} -melf32bmipn32"
9569	  ;;
9570	*64-bit*)
9571	  LD="${LD-ld} -melf64bmip"
9572	;;
9573      esac
9574    else
9575      case `/usr/bin/file conftest.$ac_objext` in
9576	*32-bit*)
9577	  LD="${LD-ld} -32"
9578	  ;;
9579	*N32*)
9580	  LD="${LD-ld} -n32"
9581	  ;;
9582	*64-bit*)
9583	  LD="${LD-ld} -64"
9584	  ;;
9585      esac
9586    fi
9587  fi
9588  rm -rf conftest*
9589  ;;
9590
9591mips64*-*linux*)
9592  # Find out what ABI is being produced by ac_compile, and set linker
9593  # options accordingly.
9594  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9595  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9596  (eval $ac_compile) 2>&5
9597  ac_status=$?
9598  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9599  test $ac_status = 0; }; then
9600    emul=elf
9601    case `/usr/bin/file conftest.$ac_objext` in
9602      *32-bit*)
9603	emul="${emul}32"
9604	;;
9605      *64-bit*)
9606	emul="${emul}64"
9607	;;
9608    esac
9609    case `/usr/bin/file conftest.$ac_objext` in
9610      *MSB*)
9611	emul="${emul}btsmip"
9612	;;
9613      *LSB*)
9614	emul="${emul}ltsmip"
9615	;;
9616    esac
9617    case `/usr/bin/file conftest.$ac_objext` in
9618      *N32*)
9619	emul="${emul}n32"
9620	;;
9621    esac
9622    LD="${LD-ld} -m $emul"
9623  fi
9624  rm -rf conftest*
9625  ;;
9626
9627x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9628s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9629  # Find out what ABI is being produced by ac_compile, and set linker
9630  # options accordingly.  Note that the listed cases only cover the
9631  # situations where additional linker options are needed (such as when
9632  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9633  # vice versa); the common cases where no linker options are needed do
9634  # not appear in the list.
9635  echo 'int i;' > conftest.$ac_ext
9636  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9637  (eval $ac_compile) 2>&5
9638  ac_status=$?
9639  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9640  test $ac_status = 0; }; then
9641    case `/usr/bin/file conftest.o` in
9642      *32-bit*)
9643	case $host in
9644	  x86_64-*kfreebsd*-gnu)
9645	    LD="${LD-ld} -m elf_i386_fbsd"
9646	    ;;
9647	  x86_64-*linux*)
9648	    case `/usr/bin/file conftest.o` in
9649	      *x86-64*)
9650		LD="${LD-ld} -m elf32_x86_64"
9651		;;
9652	      *)
9653		LD="${LD-ld} -m elf_i386"
9654		;;
9655	    esac
9656	    ;;
9657	  powerpc64le-*linux*)
9658	    LD="${LD-ld} -m elf32lppclinux"
9659	    ;;
9660	  powerpc64-*linux*)
9661	    LD="${LD-ld} -m elf32ppclinux"
9662	    ;;
9663	  s390x-*linux*)
9664	    LD="${LD-ld} -m elf_s390"
9665	    ;;
9666	  sparc64-*linux*)
9667	    LD="${LD-ld} -m elf32_sparc"
9668	    ;;
9669	esac
9670	;;
9671      *64-bit*)
9672	case $host in
9673	  x86_64-*kfreebsd*-gnu)
9674	    LD="${LD-ld} -m elf_x86_64_fbsd"
9675	    ;;
9676	  x86_64-*linux*)
9677	    LD="${LD-ld} -m elf_x86_64"
9678	    ;;
9679	  powerpcle-*linux*)
9680	    LD="${LD-ld} -m elf64lppc"
9681	    ;;
9682	  powerpc-*linux*)
9683	    LD="${LD-ld} -m elf64ppc"
9684	    ;;
9685	  s390*-*linux*|s390*-*tpf*)
9686	    LD="${LD-ld} -m elf64_s390"
9687	    ;;
9688	  sparc*-*linux*)
9689	    LD="${LD-ld} -m elf64_sparc"
9690	    ;;
9691	esac
9692	;;
9693    esac
9694  fi
9695  rm -rf conftest*
9696  ;;
9697
9698*-*-sco3.2v5*)
9699  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9700  SAVE_CFLAGS=$CFLAGS
9701  CFLAGS="$CFLAGS -belf"
9702  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9703$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9704if ${lt_cv_cc_needs_belf+:} false; then :
9705  $as_echo_n "(cached) " >&6
9706else
9707  ac_ext=c
9708ac_cpp='$CPP $CPPFLAGS'
9709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9711ac_compiler_gnu=$ac_cv_c_compiler_gnu
9712
9713     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9714/* end confdefs.h.  */
9715
9716int
9717main ()
9718{
9719
9720  ;
9721  return 0;
9722}
9723_ACEOF
9724if ac_fn_c_try_link "$LINENO"; then :
9725  lt_cv_cc_needs_belf=yes
9726else
9727  lt_cv_cc_needs_belf=no
9728fi
9729rm -f core conftest.err conftest.$ac_objext \
9730    conftest$ac_exeext conftest.$ac_ext
9731     ac_ext=c
9732ac_cpp='$CPP $CPPFLAGS'
9733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9735ac_compiler_gnu=$ac_cv_c_compiler_gnu
9736
9737fi
9738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9739$as_echo "$lt_cv_cc_needs_belf" >&6; }
9740  if test yes != "$lt_cv_cc_needs_belf"; then
9741    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9742    CFLAGS=$SAVE_CFLAGS
9743  fi
9744  ;;
9745*-*solaris*)
9746  # Find out what ABI is being produced by ac_compile, and set linker
9747  # options accordingly.
9748  echo 'int i;' > conftest.$ac_ext
9749  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9750  (eval $ac_compile) 2>&5
9751  ac_status=$?
9752  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9753  test $ac_status = 0; }; then
9754    case `/usr/bin/file conftest.o` in
9755    *64-bit*)
9756      case $lt_cv_prog_gnu_ld in
9757      yes*)
9758        case $host in
9759        i?86-*-solaris*|x86_64-*-solaris*)
9760          LD="${LD-ld} -m elf_x86_64"
9761          ;;
9762        sparc*-*-solaris*)
9763          LD="${LD-ld} -m elf64_sparc"
9764          ;;
9765        esac
9766        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
9767        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9768          LD=${LD-ld}_sol2
9769        fi
9770        ;;
9771      *)
9772	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9773	  LD="${LD-ld} -64"
9774	fi
9775	;;
9776      esac
9777      ;;
9778    esac
9779  fi
9780  rm -rf conftest*
9781  ;;
9782esac
9783
9784need_locks=$enable_libtool_lock
9785
9786if test -n "$ac_tool_prefix"; then
9787  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9788set dummy ${ac_tool_prefix}mt; ac_word=$2
9789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9790$as_echo_n "checking for $ac_word... " >&6; }
9791if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9792  $as_echo_n "(cached) " >&6
9793else
9794  if test -n "$MANIFEST_TOOL"; then
9795  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9796else
9797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9798for as_dir in $PATH
9799do
9800  IFS=$as_save_IFS
9801  test -z "$as_dir" && as_dir=.
9802    for ac_exec_ext in '' $ac_executable_extensions; do
9803  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9804    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9805    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9806    break 2
9807  fi
9808done
9809  done
9810IFS=$as_save_IFS
9811
9812fi
9813fi
9814MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9815if test -n "$MANIFEST_TOOL"; then
9816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9817$as_echo "$MANIFEST_TOOL" >&6; }
9818else
9819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9820$as_echo "no" >&6; }
9821fi
9822
9823
9824fi
9825if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9826  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9827  # Extract the first word of "mt", so it can be a program name with args.
9828set dummy mt; ac_word=$2
9829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9830$as_echo_n "checking for $ac_word... " >&6; }
9831if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9832  $as_echo_n "(cached) " >&6
9833else
9834  if test -n "$ac_ct_MANIFEST_TOOL"; then
9835  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9836else
9837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9838for as_dir in $PATH
9839do
9840  IFS=$as_save_IFS
9841  test -z "$as_dir" && as_dir=.
9842    for ac_exec_ext in '' $ac_executable_extensions; do
9843  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9844    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9845    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9846    break 2
9847  fi
9848done
9849  done
9850IFS=$as_save_IFS
9851
9852fi
9853fi
9854ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9855if test -n "$ac_ct_MANIFEST_TOOL"; then
9856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9857$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9858else
9859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9860$as_echo "no" >&6; }
9861fi
9862
9863  if test "x$ac_ct_MANIFEST_TOOL" = x; then
9864    MANIFEST_TOOL=":"
9865  else
9866    case $cross_compiling:$ac_tool_warned in
9867yes:)
9868{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9869$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9870ac_tool_warned=yes ;;
9871esac
9872    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9873  fi
9874else
9875  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9876fi
9877
9878test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9880$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9881if ${lt_cv_path_mainfest_tool+:} false; then :
9882  $as_echo_n "(cached) " >&6
9883else
9884  lt_cv_path_mainfest_tool=no
9885  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9886  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9887  cat conftest.err >&5
9888  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9889    lt_cv_path_mainfest_tool=yes
9890  fi
9891  rm -f conftest*
9892fi
9893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9894$as_echo "$lt_cv_path_mainfest_tool" >&6; }
9895if test yes != "$lt_cv_path_mainfest_tool"; then
9896  MANIFEST_TOOL=:
9897fi
9898
9899
9900
9901
9902
9903
9904  case $host_os in
9905    rhapsody* | darwin*)
9906    if test -n "$ac_tool_prefix"; then
9907  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9908set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9910$as_echo_n "checking for $ac_word... " >&6; }
9911if ${ac_cv_prog_DSYMUTIL+:} false; then :
9912  $as_echo_n "(cached) " >&6
9913else
9914  if test -n "$DSYMUTIL"; then
9915  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9916else
9917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9918for as_dir in $PATH
9919do
9920  IFS=$as_save_IFS
9921  test -z "$as_dir" && as_dir=.
9922    for ac_exec_ext in '' $ac_executable_extensions; do
9923  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9924    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9925    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9926    break 2
9927  fi
9928done
9929  done
9930IFS=$as_save_IFS
9931
9932fi
9933fi
9934DSYMUTIL=$ac_cv_prog_DSYMUTIL
9935if test -n "$DSYMUTIL"; then
9936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9937$as_echo "$DSYMUTIL" >&6; }
9938else
9939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9940$as_echo "no" >&6; }
9941fi
9942
9943
9944fi
9945if test -z "$ac_cv_prog_DSYMUTIL"; then
9946  ac_ct_DSYMUTIL=$DSYMUTIL
9947  # Extract the first word of "dsymutil", so it can be a program name with args.
9948set dummy dsymutil; ac_word=$2
9949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9950$as_echo_n "checking for $ac_word... " >&6; }
9951if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9952  $as_echo_n "(cached) " >&6
9953else
9954  if test -n "$ac_ct_DSYMUTIL"; then
9955  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9956else
9957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9958for as_dir in $PATH
9959do
9960  IFS=$as_save_IFS
9961  test -z "$as_dir" && as_dir=.
9962    for ac_exec_ext in '' $ac_executable_extensions; do
9963  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9964    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9965    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9966    break 2
9967  fi
9968done
9969  done
9970IFS=$as_save_IFS
9971
9972fi
9973fi
9974ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9975if test -n "$ac_ct_DSYMUTIL"; then
9976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9977$as_echo "$ac_ct_DSYMUTIL" >&6; }
9978else
9979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9980$as_echo "no" >&6; }
9981fi
9982
9983  if test "x$ac_ct_DSYMUTIL" = x; then
9984    DSYMUTIL=":"
9985  else
9986    case $cross_compiling:$ac_tool_warned in
9987yes:)
9988{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9989$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9990ac_tool_warned=yes ;;
9991esac
9992    DSYMUTIL=$ac_ct_DSYMUTIL
9993  fi
9994else
9995  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9996fi
9997
9998    if test -n "$ac_tool_prefix"; then
9999  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10000set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10002$as_echo_n "checking for $ac_word... " >&6; }
10003if ${ac_cv_prog_NMEDIT+:} false; then :
10004  $as_echo_n "(cached) " >&6
10005else
10006  if test -n "$NMEDIT"; then
10007  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10008else
10009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10010for as_dir in $PATH
10011do
10012  IFS=$as_save_IFS
10013  test -z "$as_dir" && as_dir=.
10014    for ac_exec_ext in '' $ac_executable_extensions; do
10015  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10016    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10017    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10018    break 2
10019  fi
10020done
10021  done
10022IFS=$as_save_IFS
10023
10024fi
10025fi
10026NMEDIT=$ac_cv_prog_NMEDIT
10027if test -n "$NMEDIT"; then
10028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10029$as_echo "$NMEDIT" >&6; }
10030else
10031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10032$as_echo "no" >&6; }
10033fi
10034
10035
10036fi
10037if test -z "$ac_cv_prog_NMEDIT"; then
10038  ac_ct_NMEDIT=$NMEDIT
10039  # Extract the first word of "nmedit", so it can be a program name with args.
10040set dummy nmedit; ac_word=$2
10041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10042$as_echo_n "checking for $ac_word... " >&6; }
10043if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10044  $as_echo_n "(cached) " >&6
10045else
10046  if test -n "$ac_ct_NMEDIT"; then
10047  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10048else
10049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10050for as_dir in $PATH
10051do
10052  IFS=$as_save_IFS
10053  test -z "$as_dir" && as_dir=.
10054    for ac_exec_ext in '' $ac_executable_extensions; do
10055  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10056    ac_cv_prog_ac_ct_NMEDIT="nmedit"
10057    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10058    break 2
10059  fi
10060done
10061  done
10062IFS=$as_save_IFS
10063
10064fi
10065fi
10066ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10067if test -n "$ac_ct_NMEDIT"; then
10068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10069$as_echo "$ac_ct_NMEDIT" >&6; }
10070else
10071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10072$as_echo "no" >&6; }
10073fi
10074
10075  if test "x$ac_ct_NMEDIT" = x; then
10076    NMEDIT=":"
10077  else
10078    case $cross_compiling:$ac_tool_warned in
10079yes:)
10080{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10081$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10082ac_tool_warned=yes ;;
10083esac
10084    NMEDIT=$ac_ct_NMEDIT
10085  fi
10086else
10087  NMEDIT="$ac_cv_prog_NMEDIT"
10088fi
10089
10090    if test -n "$ac_tool_prefix"; then
10091  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10092set dummy ${ac_tool_prefix}lipo; ac_word=$2
10093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10094$as_echo_n "checking for $ac_word... " >&6; }
10095if ${ac_cv_prog_LIPO+:} false; then :
10096  $as_echo_n "(cached) " >&6
10097else
10098  if test -n "$LIPO"; then
10099  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10100else
10101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10102for as_dir in $PATH
10103do
10104  IFS=$as_save_IFS
10105  test -z "$as_dir" && as_dir=.
10106    for ac_exec_ext in '' $ac_executable_extensions; do
10107  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10108    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10109    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10110    break 2
10111  fi
10112done
10113  done
10114IFS=$as_save_IFS
10115
10116fi
10117fi
10118LIPO=$ac_cv_prog_LIPO
10119if test -n "$LIPO"; then
10120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10121$as_echo "$LIPO" >&6; }
10122else
10123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10124$as_echo "no" >&6; }
10125fi
10126
10127
10128fi
10129if test -z "$ac_cv_prog_LIPO"; then
10130  ac_ct_LIPO=$LIPO
10131  # Extract the first word of "lipo", so it can be a program name with args.
10132set dummy lipo; ac_word=$2
10133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10134$as_echo_n "checking for $ac_word... " >&6; }
10135if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10136  $as_echo_n "(cached) " >&6
10137else
10138  if test -n "$ac_ct_LIPO"; then
10139  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10140else
10141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10142for as_dir in $PATH
10143do
10144  IFS=$as_save_IFS
10145  test -z "$as_dir" && as_dir=.
10146    for ac_exec_ext in '' $ac_executable_extensions; do
10147  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10148    ac_cv_prog_ac_ct_LIPO="lipo"
10149    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10150    break 2
10151  fi
10152done
10153  done
10154IFS=$as_save_IFS
10155
10156fi
10157fi
10158ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10159if test -n "$ac_ct_LIPO"; then
10160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10161$as_echo "$ac_ct_LIPO" >&6; }
10162else
10163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10164$as_echo "no" >&6; }
10165fi
10166
10167  if test "x$ac_ct_LIPO" = x; then
10168    LIPO=":"
10169  else
10170    case $cross_compiling:$ac_tool_warned in
10171yes:)
10172{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10173$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10174ac_tool_warned=yes ;;
10175esac
10176    LIPO=$ac_ct_LIPO
10177  fi
10178else
10179  LIPO="$ac_cv_prog_LIPO"
10180fi
10181
10182    if test -n "$ac_tool_prefix"; then
10183  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10184set dummy ${ac_tool_prefix}otool; ac_word=$2
10185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10186$as_echo_n "checking for $ac_word... " >&6; }
10187if ${ac_cv_prog_OTOOL+:} false; then :
10188  $as_echo_n "(cached) " >&6
10189else
10190  if test -n "$OTOOL"; then
10191  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10192else
10193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10194for as_dir in $PATH
10195do
10196  IFS=$as_save_IFS
10197  test -z "$as_dir" && as_dir=.
10198    for ac_exec_ext in '' $ac_executable_extensions; do
10199  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10200    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10201    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10202    break 2
10203  fi
10204done
10205  done
10206IFS=$as_save_IFS
10207
10208fi
10209fi
10210OTOOL=$ac_cv_prog_OTOOL
10211if test -n "$OTOOL"; then
10212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10213$as_echo "$OTOOL" >&6; }
10214else
10215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10216$as_echo "no" >&6; }
10217fi
10218
10219
10220fi
10221if test -z "$ac_cv_prog_OTOOL"; then
10222  ac_ct_OTOOL=$OTOOL
10223  # Extract the first word of "otool", so it can be a program name with args.
10224set dummy otool; ac_word=$2
10225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10226$as_echo_n "checking for $ac_word... " >&6; }
10227if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10228  $as_echo_n "(cached) " >&6
10229else
10230  if test -n "$ac_ct_OTOOL"; then
10231  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10232else
10233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10234for as_dir in $PATH
10235do
10236  IFS=$as_save_IFS
10237  test -z "$as_dir" && as_dir=.
10238    for ac_exec_ext in '' $ac_executable_extensions; do
10239  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10240    ac_cv_prog_ac_ct_OTOOL="otool"
10241    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10242    break 2
10243  fi
10244done
10245  done
10246IFS=$as_save_IFS
10247
10248fi
10249fi
10250ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10251if test -n "$ac_ct_OTOOL"; then
10252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10253$as_echo "$ac_ct_OTOOL" >&6; }
10254else
10255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10256$as_echo "no" >&6; }
10257fi
10258
10259  if test "x$ac_ct_OTOOL" = x; then
10260    OTOOL=":"
10261  else
10262    case $cross_compiling:$ac_tool_warned in
10263yes:)
10264{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10265$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10266ac_tool_warned=yes ;;
10267esac
10268    OTOOL=$ac_ct_OTOOL
10269  fi
10270else
10271  OTOOL="$ac_cv_prog_OTOOL"
10272fi
10273
10274    if test -n "$ac_tool_prefix"; then
10275  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10276set dummy ${ac_tool_prefix}otool64; ac_word=$2
10277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10278$as_echo_n "checking for $ac_word... " >&6; }
10279if ${ac_cv_prog_OTOOL64+:} false; then :
10280  $as_echo_n "(cached) " >&6
10281else
10282  if test -n "$OTOOL64"; then
10283  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10284else
10285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10286for as_dir in $PATH
10287do
10288  IFS=$as_save_IFS
10289  test -z "$as_dir" && as_dir=.
10290    for ac_exec_ext in '' $ac_executable_extensions; do
10291  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10292    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10293    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10294    break 2
10295  fi
10296done
10297  done
10298IFS=$as_save_IFS
10299
10300fi
10301fi
10302OTOOL64=$ac_cv_prog_OTOOL64
10303if test -n "$OTOOL64"; then
10304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10305$as_echo "$OTOOL64" >&6; }
10306else
10307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10308$as_echo "no" >&6; }
10309fi
10310
10311
10312fi
10313if test -z "$ac_cv_prog_OTOOL64"; then
10314  ac_ct_OTOOL64=$OTOOL64
10315  # Extract the first word of "otool64", so it can be a program name with args.
10316set dummy otool64; ac_word=$2
10317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10318$as_echo_n "checking for $ac_word... " >&6; }
10319if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10320  $as_echo_n "(cached) " >&6
10321else
10322  if test -n "$ac_ct_OTOOL64"; then
10323  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10324else
10325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10326for as_dir in $PATH
10327do
10328  IFS=$as_save_IFS
10329  test -z "$as_dir" && as_dir=.
10330    for ac_exec_ext in '' $ac_executable_extensions; do
10331  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10332    ac_cv_prog_ac_ct_OTOOL64="otool64"
10333    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10334    break 2
10335  fi
10336done
10337  done
10338IFS=$as_save_IFS
10339
10340fi
10341fi
10342ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10343if test -n "$ac_ct_OTOOL64"; then
10344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10345$as_echo "$ac_ct_OTOOL64" >&6; }
10346else
10347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10348$as_echo "no" >&6; }
10349fi
10350
10351  if test "x$ac_ct_OTOOL64" = x; then
10352    OTOOL64=":"
10353  else
10354    case $cross_compiling:$ac_tool_warned in
10355yes:)
10356{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10357$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10358ac_tool_warned=yes ;;
10359esac
10360    OTOOL64=$ac_ct_OTOOL64
10361  fi
10362else
10363  OTOOL64="$ac_cv_prog_OTOOL64"
10364fi
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10393$as_echo_n "checking for -single_module linker flag... " >&6; }
10394if ${lt_cv_apple_cc_single_mod+:} false; then :
10395  $as_echo_n "(cached) " >&6
10396else
10397  lt_cv_apple_cc_single_mod=no
10398      if test -z "$LT_MULTI_MODULE"; then
10399	# By default we will add the -single_module flag. You can override
10400	# by either setting the environment variable LT_MULTI_MODULE
10401	# non-empty at configure time, or by adding -multi_module to the
10402	# link flags.
10403	rm -rf libconftest.dylib*
10404	echo "int foo(void){return 1;}" > conftest.c
10405	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10406-dynamiclib -Wl,-single_module conftest.c" >&5
10407	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10408	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10409        _lt_result=$?
10410	# If there is a non-empty error log, and "single_module"
10411	# appears in it, assume the flag caused a linker warning
10412        if test -s conftest.err && $GREP single_module conftest.err; then
10413	  cat conftest.err >&5
10414	# Otherwise, if the output was created with a 0 exit code from
10415	# the compiler, it worked.
10416	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10417	  lt_cv_apple_cc_single_mod=yes
10418	else
10419	  cat conftest.err >&5
10420	fi
10421	rm -rf libconftest.dylib*
10422	rm -f conftest.*
10423      fi
10424fi
10425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10426$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10427
10428    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10429$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10430if ${lt_cv_ld_exported_symbols_list+:} false; then :
10431  $as_echo_n "(cached) " >&6
10432else
10433  lt_cv_ld_exported_symbols_list=no
10434      save_LDFLAGS=$LDFLAGS
10435      echo "_main" > conftest.sym
10436      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10437      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10438/* end confdefs.h.  */
10439
10440int
10441main ()
10442{
10443
10444  ;
10445  return 0;
10446}
10447_ACEOF
10448if ac_fn_c_try_link "$LINENO"; then :
10449  lt_cv_ld_exported_symbols_list=yes
10450else
10451  lt_cv_ld_exported_symbols_list=no
10452fi
10453rm -f core conftest.err conftest.$ac_objext \
10454    conftest$ac_exeext conftest.$ac_ext
10455	LDFLAGS=$save_LDFLAGS
10456
10457fi
10458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10459$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10460
10461    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10462$as_echo_n "checking for -force_load linker flag... " >&6; }
10463if ${lt_cv_ld_force_load+:} false; then :
10464  $as_echo_n "(cached) " >&6
10465else
10466  lt_cv_ld_force_load=no
10467      cat > conftest.c << _LT_EOF
10468int forced_loaded() { return 2;}
10469_LT_EOF
10470      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10471      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10472      echo "$AR cru libconftest.a conftest.o" >&5
10473      $AR cru libconftest.a conftest.o 2>&5
10474      echo "$RANLIB libconftest.a" >&5
10475      $RANLIB libconftest.a 2>&5
10476      cat > conftest.c << _LT_EOF
10477int main() { return 0;}
10478_LT_EOF
10479      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10480      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10481      _lt_result=$?
10482      if test -s conftest.err && $GREP force_load conftest.err; then
10483	cat conftest.err >&5
10484      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10485	lt_cv_ld_force_load=yes
10486      else
10487	cat conftest.err >&5
10488      fi
10489        rm -f conftest.err libconftest.a conftest conftest.c
10490        rm -rf conftest.dSYM
10491
10492fi
10493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10494$as_echo "$lt_cv_ld_force_load" >&6; }
10495    case $host_os in
10496    rhapsody* | darwin1.[012])
10497      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10498    darwin1.*)
10499      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10500    darwin*) # darwin 5.x on
10501      # if running on 10.5 or later, the deployment target defaults
10502      # to the OS version, if on x86, and 10.4, the deployment
10503      # target defaults to 10.4. Don't you love it?
10504      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10505	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10506	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10507	10.[012][,.]*)
10508	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10509	10.*)
10510	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10511      esac
10512    ;;
10513  esac
10514    if test yes = "$lt_cv_apple_cc_single_mod"; then
10515      _lt_dar_single_mod='$single_module'
10516    fi
10517    if test yes = "$lt_cv_ld_exported_symbols_list"; then
10518      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10519    else
10520      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10521    fi
10522    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10523      _lt_dsymutil='~$DSYMUTIL $lib || :'
10524    else
10525      _lt_dsymutil=
10526    fi
10527    ;;
10528  esac
10529
10530# func_munge_path_list VARIABLE PATH
10531# -----------------------------------
10532# VARIABLE is name of variable containing _space_ separated list of
10533# directories to be munged by the contents of PATH, which is string
10534# having a format:
10535# "DIR[:DIR]:"
10536#       string "DIR[ DIR]" will be prepended to VARIABLE
10537# ":DIR[:DIR]"
10538#       string "DIR[ DIR]" will be appended to VARIABLE
10539# "DIRP[:DIRP]::[DIRA:]DIRA"
10540#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10541#       "DIRA[ DIRA]" will be appended to VARIABLE
10542# "DIR[:DIR]"
10543#       VARIABLE will be replaced by "DIR[ DIR]"
10544func_munge_path_list ()
10545{
10546    case x$2 in
10547    x)
10548        ;;
10549    *:)
10550        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10551        ;;
10552    x:*)
10553        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10554        ;;
10555    *::*)
10556        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10557        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10558        ;;
10559    *)
10560        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10561        ;;
10562    esac
10563}
10564
10565for ac_header in dlfcn.h
10566do :
10567  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10568"
10569if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10570  cat >>confdefs.h <<_ACEOF
10571#define HAVE_DLFCN_H 1
10572_ACEOF
10573
10574fi
10575
10576done
10577
10578
10579
10580func_stripname_cnf ()
10581{
10582  case $2 in
10583  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
10584  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
10585  esac
10586} # func_stripname_cnf
10587
10588
10589
10590
10591
10592# Set options
10593
10594
10595
10596
10597
10598            # Check whether --enable-shared was given.
10599if test "${enable_shared+set}" = set; then :
10600  enableval=$enable_shared; p=${PACKAGE-default}
10601    case $enableval in
10602    yes) enable_shared=yes ;;
10603    no) enable_shared=no ;;
10604    *)
10605      enable_shared=no
10606      # Look at the argument we got.  We use all the common list separators.
10607      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10608      for pkg in $enableval; do
10609	IFS=$lt_save_ifs
10610	if test "X$pkg" = "X$p"; then
10611	  enable_shared=yes
10612	fi
10613      done
10614      IFS=$lt_save_ifs
10615      ;;
10616    esac
10617else
10618  enable_shared=yes
10619fi
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631# Check whether --with-pic was given.
10632if test "${with_pic+set}" = set; then :
10633  withval=$with_pic; lt_p=${PACKAGE-default}
10634    case $withval in
10635    yes|no) pic_mode=$withval ;;
10636    *)
10637      pic_mode=default
10638      # Look at the argument we got.  We use all the common list separators.
10639      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10640      for lt_pkg in $withval; do
10641	IFS=$lt_save_ifs
10642	if test "X$lt_pkg" = "X$lt_p"; then
10643	  pic_mode=yes
10644	fi
10645      done
10646      IFS=$lt_save_ifs
10647      ;;
10648    esac
10649else
10650  pic_mode=default
10651fi
10652
10653
10654
10655
10656
10657
10658
10659
10660  # Check whether --enable-fast-install was given.
10661if test "${enable_fast_install+set}" = set; then :
10662  enableval=$enable_fast_install; p=${PACKAGE-default}
10663    case $enableval in
10664    yes) enable_fast_install=yes ;;
10665    no) enable_fast_install=no ;;
10666    *)
10667      enable_fast_install=no
10668      # Look at the argument we got.  We use all the common list separators.
10669      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10670      for pkg in $enableval; do
10671	IFS=$lt_save_ifs
10672	if test "X$pkg" = "X$p"; then
10673	  enable_fast_install=yes
10674	fi
10675      done
10676      IFS=$lt_save_ifs
10677      ;;
10678    esac
10679else
10680  enable_fast_install=yes
10681fi
10682
10683
10684
10685
10686
10687
10688
10689
10690  shared_archive_member_spec=
10691case $host,$enable_shared in
10692power*-*-aix[5-9]*,yes)
10693  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10694$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10695
10696# Check whether --with-aix-soname was given.
10697if test "${with_aix_soname+set}" = set; then :
10698  withval=$with_aix_soname; case $withval in
10699    aix|svr4|both)
10700      ;;
10701    *)
10702      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10703      ;;
10704    esac
10705    lt_cv_with_aix_soname=$with_aix_soname
10706else
10707  if ${lt_cv_with_aix_soname+:} false; then :
10708  $as_echo_n "(cached) " >&6
10709else
10710  lt_cv_with_aix_soname=aix
10711fi
10712
10713    with_aix_soname=$lt_cv_with_aix_soname
10714fi
10715
10716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10717$as_echo "$with_aix_soname" >&6; }
10718  if test aix != "$with_aix_soname"; then
10719    # For the AIX way of multilib, we name the shared archive member
10720    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10721    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10722    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10723    # the AIX toolchain works better with OBJECT_MODE set (default 32).
10724    if test 64 = "${OBJECT_MODE-32}"; then
10725      shared_archive_member_spec=shr_64
10726    else
10727      shared_archive_member_spec=shr
10728    fi
10729  fi
10730  ;;
10731*)
10732  with_aix_soname=aix
10733  ;;
10734esac
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745# This can be used to rebuild libtool when needed
10746LIBTOOL_DEPS=$ltmain
10747
10748# Always use our own libtool.
10749LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780test -z "$LN_S" && LN_S="ln -s"
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795if test -n "${ZSH_VERSION+set}"; then
10796   setopt NO_GLOB_SUBST
10797fi
10798
10799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10800$as_echo_n "checking for objdir... " >&6; }
10801if ${lt_cv_objdir+:} false; then :
10802  $as_echo_n "(cached) " >&6
10803else
10804  rm -f .libs 2>/dev/null
10805mkdir .libs 2>/dev/null
10806if test -d .libs; then
10807  lt_cv_objdir=.libs
10808else
10809  # MS-DOS does not allow filenames that begin with a dot.
10810  lt_cv_objdir=_libs
10811fi
10812rmdir .libs 2>/dev/null
10813fi
10814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10815$as_echo "$lt_cv_objdir" >&6; }
10816objdir=$lt_cv_objdir
10817
10818
10819
10820
10821
10822cat >>confdefs.h <<_ACEOF
10823#define LT_OBJDIR "$lt_cv_objdir/"
10824_ACEOF
10825
10826
10827
10828
10829case $host_os in
10830aix3*)
10831  # AIX sometimes has problems with the GCC collect2 program.  For some
10832  # reason, if we set the COLLECT_NAMES environment variable, the problems
10833  # vanish in a puff of smoke.
10834  if test set != "${COLLECT_NAMES+set}"; then
10835    COLLECT_NAMES=
10836    export COLLECT_NAMES
10837  fi
10838  ;;
10839esac
10840
10841# Global variables:
10842ofile=libtool
10843can_build_shared=yes
10844
10845# All known linkers require a '.a' archive for static linking (except MSVC,
10846# which needs '.lib').
10847libext=a
10848
10849with_gnu_ld=$lt_cv_prog_gnu_ld
10850
10851old_CC=$CC
10852old_CFLAGS=$CFLAGS
10853
10854# Set sane defaults for various variables
10855test -z "$CC" && CC=cc
10856test -z "$LTCC" && LTCC=$CC
10857test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10858test -z "$LD" && LD=ld
10859test -z "$ac_objext" && ac_objext=o
10860
10861func_cc_basename $compiler
10862cc_basename=$func_cc_basename_result
10863
10864
10865# Only perform the check for file, if the check method requires it
10866test -z "$MAGIC_CMD" && MAGIC_CMD=file
10867case $deplibs_check_method in
10868file_magic*)
10869  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10870    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10871$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10872if ${lt_cv_path_MAGIC_CMD+:} false; then :
10873  $as_echo_n "(cached) " >&6
10874else
10875  case $MAGIC_CMD in
10876[\\/*] |  ?:[\\/]*)
10877  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10878  ;;
10879*)
10880  lt_save_MAGIC_CMD=$MAGIC_CMD
10881  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10882  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10883  for ac_dir in $ac_dummy; do
10884    IFS=$lt_save_ifs
10885    test -z "$ac_dir" && ac_dir=.
10886    if test -f "$ac_dir/${ac_tool_prefix}file"; then
10887      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10888      if test -n "$file_magic_test_file"; then
10889	case $deplibs_check_method in
10890	"file_magic "*)
10891	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10892	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10893	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10894	    $EGREP "$file_magic_regex" > /dev/null; then
10895	    :
10896	  else
10897	    cat <<_LT_EOF 1>&2
10898
10899*** Warning: the command libtool uses to detect shared libraries,
10900*** $file_magic_cmd, produces output that libtool cannot recognize.
10901*** The result is that libtool may fail to recognize shared libraries
10902*** as such.  This will affect the creation of libtool libraries that
10903*** depend on shared libraries, but programs linked with such libtool
10904*** libraries will work regardless of this problem.  Nevertheless, you
10905*** may want to report the problem to your system manager and/or to
10906*** bug-libtool@gnu.org
10907
10908_LT_EOF
10909	  fi ;;
10910	esac
10911      fi
10912      break
10913    fi
10914  done
10915  IFS=$lt_save_ifs
10916  MAGIC_CMD=$lt_save_MAGIC_CMD
10917  ;;
10918esac
10919fi
10920
10921MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10922if test -n "$MAGIC_CMD"; then
10923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10924$as_echo "$MAGIC_CMD" >&6; }
10925else
10926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10927$as_echo "no" >&6; }
10928fi
10929
10930
10931
10932
10933
10934if test -z "$lt_cv_path_MAGIC_CMD"; then
10935  if test -n "$ac_tool_prefix"; then
10936    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10937$as_echo_n "checking for file... " >&6; }
10938if ${lt_cv_path_MAGIC_CMD+:} false; then :
10939  $as_echo_n "(cached) " >&6
10940else
10941  case $MAGIC_CMD in
10942[\\/*] |  ?:[\\/]*)
10943  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10944  ;;
10945*)
10946  lt_save_MAGIC_CMD=$MAGIC_CMD
10947  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10948  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10949  for ac_dir in $ac_dummy; do
10950    IFS=$lt_save_ifs
10951    test -z "$ac_dir" && ac_dir=.
10952    if test -f "$ac_dir/file"; then
10953      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10954      if test -n "$file_magic_test_file"; then
10955	case $deplibs_check_method in
10956	"file_magic "*)
10957	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10958	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10959	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10960	    $EGREP "$file_magic_regex" > /dev/null; then
10961	    :
10962	  else
10963	    cat <<_LT_EOF 1>&2
10964
10965*** Warning: the command libtool uses to detect shared libraries,
10966*** $file_magic_cmd, produces output that libtool cannot recognize.
10967*** The result is that libtool may fail to recognize shared libraries
10968*** as such.  This will affect the creation of libtool libraries that
10969*** depend on shared libraries, but programs linked with such libtool
10970*** libraries will work regardless of this problem.  Nevertheless, you
10971*** may want to report the problem to your system manager and/or to
10972*** bug-libtool@gnu.org
10973
10974_LT_EOF
10975	  fi ;;
10976	esac
10977      fi
10978      break
10979    fi
10980  done
10981  IFS=$lt_save_ifs
10982  MAGIC_CMD=$lt_save_MAGIC_CMD
10983  ;;
10984esac
10985fi
10986
10987MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10988if test -n "$MAGIC_CMD"; then
10989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10990$as_echo "$MAGIC_CMD" >&6; }
10991else
10992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10993$as_echo "no" >&6; }
10994fi
10995
10996
10997  else
10998    MAGIC_CMD=:
10999  fi
11000fi
11001
11002  fi
11003  ;;
11004esac
11005
11006# Use C for the default configuration in the libtool script
11007
11008lt_save_CC=$CC
11009ac_ext=c
11010ac_cpp='$CPP $CPPFLAGS'
11011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11013ac_compiler_gnu=$ac_cv_c_compiler_gnu
11014
11015
11016# Source file extension for C test sources.
11017ac_ext=c
11018
11019# Object file extension for compiled C test sources.
11020objext=o
11021objext=$objext
11022
11023# Code to be used in simple compile tests
11024lt_simple_compile_test_code="int some_variable = 0;"
11025
11026# Code to be used in simple link tests
11027lt_simple_link_test_code='int main(){return(0);}'
11028
11029
11030
11031
11032
11033
11034
11035# If no C compiler was specified, use CC.
11036LTCC=${LTCC-"$CC"}
11037
11038# If no C compiler flags were specified, use CFLAGS.
11039LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11040
11041# Allow CC to be a program name with arguments.
11042compiler=$CC
11043
11044# Save the default compiler, since it gets overwritten when the other
11045# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11046compiler_DEFAULT=$CC
11047
11048# save warnings/boilerplate of simple test code
11049ac_outfile=conftest.$ac_objext
11050echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11051eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11052_lt_compiler_boilerplate=`cat conftest.err`
11053$RM conftest*
11054
11055ac_outfile=conftest.$ac_objext
11056echo "$lt_simple_link_test_code" >conftest.$ac_ext
11057eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11058_lt_linker_boilerplate=`cat conftest.err`
11059$RM -r conftest*
11060
11061
11062## CAVEAT EMPTOR:
11063## There is no encapsulation within the following macros, do not change
11064## the running order or otherwise move them around unless you know exactly
11065## what you are doing...
11066if test -n "$compiler"; then
11067
11068lt_prog_compiler_no_builtin_flag=
11069
11070if test yes = "$GCC"; then
11071  case $cc_basename in
11072  nvcc*)
11073    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11074  *)
11075    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11076  esac
11077
11078  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11079$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11080if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11081  $as_echo_n "(cached) " >&6
11082else
11083  lt_cv_prog_compiler_rtti_exceptions=no
11084   ac_outfile=conftest.$ac_objext
11085   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11086   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
11087   # Insert the option either (1) after the last *FLAGS variable, or
11088   # (2) before a word containing "conftest.", or (3) at the end.
11089   # Note that $ac_compile itself does not contain backslashes and begins
11090   # with a dollar sign (not a hyphen), so the echo should work correctly.
11091   # The option is referenced via a variable to avoid confusing sed.
11092   lt_compile=`echo "$ac_compile" | $SED \
11093   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11094   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11095   -e 's:$: $lt_compiler_flag:'`
11096   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11097   (eval "$lt_compile" 2>conftest.err)
11098   ac_status=$?
11099   cat conftest.err >&5
11100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101   if (exit $ac_status) && test -s "$ac_outfile"; then
11102     # The compiler can only warn and ignore the option if not recognized
11103     # So say no if there are warnings other than the usual output.
11104     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11105     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11106     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11107       lt_cv_prog_compiler_rtti_exceptions=yes
11108     fi
11109   fi
11110   $RM conftest*
11111
11112fi
11113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11114$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11115
11116if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11117    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11118else
11119    :
11120fi
11121
11122fi
11123
11124
11125
11126
11127
11128
11129  lt_prog_compiler_wl=
11130lt_prog_compiler_pic=
11131lt_prog_compiler_static=
11132
11133
11134  if test yes = "$GCC"; then
11135    lt_prog_compiler_wl='-Wl,'
11136    lt_prog_compiler_static='-static'
11137
11138    case $host_os in
11139      aix*)
11140      # All AIX code is PIC.
11141      if test ia64 = "$host_cpu"; then
11142	# AIX 5 now supports IA64 processor
11143	lt_prog_compiler_static='-Bstatic'
11144      fi
11145      lt_prog_compiler_pic='-fPIC'
11146      ;;
11147
11148    amigaos*)
11149      case $host_cpu in
11150      powerpc)
11151            # see comment about AmigaOS4 .so support
11152            lt_prog_compiler_pic='-fPIC'
11153        ;;
11154      m68k)
11155            # FIXME: we need at least 68020 code to build shared libraries, but
11156            # adding the '-m68020' flag to GCC prevents building anything better,
11157            # like '-m68040'.
11158            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11159        ;;
11160      esac
11161      ;;
11162
11163    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11164      # PIC is the default for these OSes.
11165      ;;
11166
11167    mingw* | cygwin* | pw32* | os2* | cegcc*)
11168      # This hack is so that the source file can tell whether it is being
11169      # built for inclusion in a dll (and should export symbols for example).
11170      # Although the cygwin gcc ignores -fPIC, still need this for old-style
11171      # (--disable-auto-import) libraries
11172      lt_prog_compiler_pic='-DDLL_EXPORT'
11173      case $host_os in
11174      os2*)
11175	lt_prog_compiler_static='$wl-static'
11176	;;
11177      esac
11178      ;;
11179
11180    darwin* | rhapsody*)
11181      # PIC is the default on this platform
11182      # Common symbols not allowed in MH_DYLIB files
11183      lt_prog_compiler_pic='-fno-common'
11184      ;;
11185
11186    haiku*)
11187      # PIC is the default for Haiku.
11188      # The "-static" flag exists, but is broken.
11189      lt_prog_compiler_static=
11190      ;;
11191
11192    hpux*)
11193      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11194      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11195      # sets the default TLS model and affects inlining.
11196      case $host_cpu in
11197      hppa*64*)
11198	# +Z the default
11199	;;
11200      *)
11201	lt_prog_compiler_pic='-fPIC'
11202	;;
11203      esac
11204      ;;
11205
11206    interix[3-9]*)
11207      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11208      # Instead, we relocate shared libraries at runtime.
11209      ;;
11210
11211    msdosdjgpp*)
11212      # Just because we use GCC doesn't mean we suddenly get shared libraries
11213      # on systems that don't support them.
11214      lt_prog_compiler_can_build_shared=no
11215      enable_shared=no
11216      ;;
11217
11218    *nto* | *qnx*)
11219      # QNX uses GNU C++, but need to define -shared option too, otherwise
11220      # it will coredump.
11221      lt_prog_compiler_pic='-fPIC -shared'
11222      ;;
11223
11224    sysv4*MP*)
11225      if test -d /usr/nec; then
11226	lt_prog_compiler_pic=-Kconform_pic
11227      fi
11228      ;;
11229
11230    *)
11231      lt_prog_compiler_pic='-fPIC'
11232      ;;
11233    esac
11234
11235    case $cc_basename in
11236    nvcc*) # Cuda Compiler Driver 2.2
11237      lt_prog_compiler_wl='-Xlinker '
11238      if test -n "$lt_prog_compiler_pic"; then
11239        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11240      fi
11241      ;;
11242    esac
11243  else
11244    # PORTME Check for flag to pass linker flags through the system compiler.
11245    case $host_os in
11246    aix*)
11247      lt_prog_compiler_wl='-Wl,'
11248      if test ia64 = "$host_cpu"; then
11249	# AIX 5 now supports IA64 processor
11250	lt_prog_compiler_static='-Bstatic'
11251      else
11252	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11253      fi
11254      ;;
11255
11256    darwin* | rhapsody*)
11257      # PIC is the default on this platform
11258      # Common symbols not allowed in MH_DYLIB files
11259      lt_prog_compiler_pic='-fno-common'
11260      case $cc_basename in
11261      nagfor*)
11262        # NAG Fortran compiler
11263        lt_prog_compiler_wl='-Wl,-Wl,,'
11264        lt_prog_compiler_pic='-PIC'
11265        lt_prog_compiler_static='-Bstatic'
11266        ;;
11267      esac
11268      ;;
11269
11270    mingw* | cygwin* | pw32* | os2* | cegcc*)
11271      # This hack is so that the source file can tell whether it is being
11272      # built for inclusion in a dll (and should export symbols for example).
11273      lt_prog_compiler_pic='-DDLL_EXPORT'
11274      case $host_os in
11275      os2*)
11276	lt_prog_compiler_static='$wl-static'
11277	;;
11278      esac
11279      ;;
11280
11281    hpux9* | hpux10* | hpux11*)
11282      lt_prog_compiler_wl='-Wl,'
11283      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11284      # not for PA HP-UX.
11285      case $host_cpu in
11286      hppa*64*|ia64*)
11287	# +Z the default
11288	;;
11289      *)
11290	lt_prog_compiler_pic='+Z'
11291	;;
11292      esac
11293      # Is there a better lt_prog_compiler_static that works with the bundled CC?
11294      lt_prog_compiler_static='$wl-a ${wl}archive'
11295      ;;
11296
11297    irix5* | irix6* | nonstopux*)
11298      lt_prog_compiler_wl='-Wl,'
11299      # PIC (with -KPIC) is the default.
11300      lt_prog_compiler_static='-non_shared'
11301      ;;
11302
11303    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11304      case $cc_basename in
11305      # old Intel for x86_64, which still supported -KPIC.
11306      ecc*)
11307	lt_prog_compiler_wl='-Wl,'
11308	lt_prog_compiler_pic='-KPIC'
11309	lt_prog_compiler_static='-static'
11310        ;;
11311      # icc used to be incompatible with GCC.
11312      # ICC 10 doesn't accept -KPIC any more.
11313      icc* | ifort*)
11314	lt_prog_compiler_wl='-Wl,'
11315	lt_prog_compiler_pic='-fPIC'
11316	lt_prog_compiler_static='-static'
11317        ;;
11318      # Lahey Fortran 8.1.
11319      lf95*)
11320	lt_prog_compiler_wl='-Wl,'
11321	lt_prog_compiler_pic='--shared'
11322	lt_prog_compiler_static='--static'
11323	;;
11324      nagfor*)
11325	# NAG Fortran compiler
11326	lt_prog_compiler_wl='-Wl,-Wl,,'
11327	lt_prog_compiler_pic='-PIC'
11328	lt_prog_compiler_static='-Bstatic'
11329	;;
11330      tcc*)
11331	# Fabrice Bellard et al's Tiny C Compiler
11332	lt_prog_compiler_wl='-Wl,'
11333	lt_prog_compiler_pic='-fPIC'
11334	lt_prog_compiler_static='-static'
11335	;;
11336      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11337        # Portland Group compilers (*not* the Pentium gcc compiler,
11338	# which looks to be a dead project)
11339	lt_prog_compiler_wl='-Wl,'
11340	lt_prog_compiler_pic='-fpic'
11341	lt_prog_compiler_static='-Bstatic'
11342        ;;
11343      ccc*)
11344        lt_prog_compiler_wl='-Wl,'
11345        # All Alpha code is PIC.
11346        lt_prog_compiler_static='-non_shared'
11347        ;;
11348      xl* | bgxl* | bgf* | mpixl*)
11349	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11350	lt_prog_compiler_wl='-Wl,'
11351	lt_prog_compiler_pic='-qpic'
11352	lt_prog_compiler_static='-qstaticlink'
11353	;;
11354      *)
11355	case `$CC -V 2>&1 | sed 5q` in
11356	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11357	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
11358	  lt_prog_compiler_pic='-KPIC'
11359	  lt_prog_compiler_static='-Bstatic'
11360	  lt_prog_compiler_wl=''
11361	  ;;
11362	*Sun\ F* | *Sun*Fortran*)
11363	  lt_prog_compiler_pic='-KPIC'
11364	  lt_prog_compiler_static='-Bstatic'
11365	  lt_prog_compiler_wl='-Qoption ld '
11366	  ;;
11367	*Sun\ C*)
11368	  # Sun C 5.9
11369	  lt_prog_compiler_pic='-KPIC'
11370	  lt_prog_compiler_static='-Bstatic'
11371	  lt_prog_compiler_wl='-Wl,'
11372	  ;;
11373        *Intel*\ [CF]*Compiler*)
11374	  lt_prog_compiler_wl='-Wl,'
11375	  lt_prog_compiler_pic='-fPIC'
11376	  lt_prog_compiler_static='-static'
11377	  ;;
11378	*Portland\ Group*)
11379	  lt_prog_compiler_wl='-Wl,'
11380	  lt_prog_compiler_pic='-fpic'
11381	  lt_prog_compiler_static='-Bstatic'
11382	  ;;
11383	esac
11384	;;
11385      esac
11386      ;;
11387
11388    newsos6)
11389      lt_prog_compiler_pic='-KPIC'
11390      lt_prog_compiler_static='-Bstatic'
11391      ;;
11392
11393    *nto* | *qnx*)
11394      # QNX uses GNU C++, but need to define -shared option too, otherwise
11395      # it will coredump.
11396      lt_prog_compiler_pic='-fPIC -shared'
11397      ;;
11398
11399    osf3* | osf4* | osf5*)
11400      lt_prog_compiler_wl='-Wl,'
11401      # All OSF/1 code is PIC.
11402      lt_prog_compiler_static='-non_shared'
11403      ;;
11404
11405    rdos*)
11406      lt_prog_compiler_static='-non_shared'
11407      ;;
11408
11409    solaris*)
11410      lt_prog_compiler_pic='-KPIC'
11411      lt_prog_compiler_static='-Bstatic'
11412      case $cc_basename in
11413      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11414	lt_prog_compiler_wl='-Qoption ld ';;
11415      *)
11416	lt_prog_compiler_wl='-Wl,';;
11417      esac
11418      ;;
11419
11420    sunos4*)
11421      lt_prog_compiler_wl='-Qoption ld '
11422      lt_prog_compiler_pic='-PIC'
11423      lt_prog_compiler_static='-Bstatic'
11424      ;;
11425
11426    sysv4 | sysv4.2uw2* | sysv4.3*)
11427      lt_prog_compiler_wl='-Wl,'
11428      lt_prog_compiler_pic='-KPIC'
11429      lt_prog_compiler_static='-Bstatic'
11430      ;;
11431
11432    sysv4*MP*)
11433      if test -d /usr/nec; then
11434	lt_prog_compiler_pic='-Kconform_pic'
11435	lt_prog_compiler_static='-Bstatic'
11436      fi
11437      ;;
11438
11439    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11440      lt_prog_compiler_wl='-Wl,'
11441      lt_prog_compiler_pic='-KPIC'
11442      lt_prog_compiler_static='-Bstatic'
11443      ;;
11444
11445    unicos*)
11446      lt_prog_compiler_wl='-Wl,'
11447      lt_prog_compiler_can_build_shared=no
11448      ;;
11449
11450    uts4*)
11451      lt_prog_compiler_pic='-pic'
11452      lt_prog_compiler_static='-Bstatic'
11453      ;;
11454
11455    *)
11456      lt_prog_compiler_can_build_shared=no
11457      ;;
11458    esac
11459  fi
11460
11461case $host_os in
11462  # For platforms that do not support PIC, -DPIC is meaningless:
11463  *djgpp*)
11464    lt_prog_compiler_pic=
11465    ;;
11466  *)
11467    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11468    ;;
11469esac
11470
11471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11472$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11473if ${lt_cv_prog_compiler_pic+:} false; then :
11474  $as_echo_n "(cached) " >&6
11475else
11476  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11477fi
11478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11479$as_echo "$lt_cv_prog_compiler_pic" >&6; }
11480lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11481
11482#
11483# Check to make sure the PIC flag actually works.
11484#
11485if test -n "$lt_prog_compiler_pic"; then
11486  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11487$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11488if ${lt_cv_prog_compiler_pic_works+:} false; then :
11489  $as_echo_n "(cached) " >&6
11490else
11491  lt_cv_prog_compiler_pic_works=no
11492   ac_outfile=conftest.$ac_objext
11493   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11494   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
11495   # Insert the option either (1) after the last *FLAGS variable, or
11496   # (2) before a word containing "conftest.", or (3) at the end.
11497   # Note that $ac_compile itself does not contain backslashes and begins
11498   # with a dollar sign (not a hyphen), so the echo should work correctly.
11499   # The option is referenced via a variable to avoid confusing sed.
11500   lt_compile=`echo "$ac_compile" | $SED \
11501   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11502   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11503   -e 's:$: $lt_compiler_flag:'`
11504   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11505   (eval "$lt_compile" 2>conftest.err)
11506   ac_status=$?
11507   cat conftest.err >&5
11508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509   if (exit $ac_status) && test -s "$ac_outfile"; then
11510     # The compiler can only warn and ignore the option if not recognized
11511     # So say no if there are warnings other than the usual output.
11512     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11513     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11514     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11515       lt_cv_prog_compiler_pic_works=yes
11516     fi
11517   fi
11518   $RM conftest*
11519
11520fi
11521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11522$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11523
11524if test yes = "$lt_cv_prog_compiler_pic_works"; then
11525    case $lt_prog_compiler_pic in
11526     "" | " "*) ;;
11527     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11528     esac
11529else
11530    lt_prog_compiler_pic=
11531     lt_prog_compiler_can_build_shared=no
11532fi
11533
11534fi
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546#
11547# Check to make sure the static flag actually works.
11548#
11549wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11551$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11552if ${lt_cv_prog_compiler_static_works+:} false; then :
11553  $as_echo_n "(cached) " >&6
11554else
11555  lt_cv_prog_compiler_static_works=no
11556   save_LDFLAGS=$LDFLAGS
11557   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11558   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11559   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11560     # The linker can only warn and ignore the option if not recognized
11561     # So say no if there are warnings
11562     if test -s conftest.err; then
11563       # Append any errors to the config.log.
11564       cat conftest.err 1>&5
11565       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11566       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11567       if diff conftest.exp conftest.er2 >/dev/null; then
11568         lt_cv_prog_compiler_static_works=yes
11569       fi
11570     else
11571       lt_cv_prog_compiler_static_works=yes
11572     fi
11573   fi
11574   $RM -r conftest*
11575   LDFLAGS=$save_LDFLAGS
11576
11577fi
11578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11579$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11580
11581if test yes = "$lt_cv_prog_compiler_static_works"; then
11582    :
11583else
11584    lt_prog_compiler_static=
11585fi
11586
11587
11588
11589
11590
11591
11592
11593  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11594$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11595if ${lt_cv_prog_compiler_c_o+:} false; then :
11596  $as_echo_n "(cached) " >&6
11597else
11598  lt_cv_prog_compiler_c_o=no
11599   $RM -r conftest 2>/dev/null
11600   mkdir conftest
11601   cd conftest
11602   mkdir out
11603   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11604
11605   lt_compiler_flag="-o out/conftest2.$ac_objext"
11606   # Insert the option either (1) after the last *FLAGS variable, or
11607   # (2) before a word containing "conftest.", or (3) at the end.
11608   # Note that $ac_compile itself does not contain backslashes and begins
11609   # with a dollar sign (not a hyphen), so the echo should work correctly.
11610   lt_compile=`echo "$ac_compile" | $SED \
11611   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11612   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11613   -e 's:$: $lt_compiler_flag:'`
11614   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11615   (eval "$lt_compile" 2>out/conftest.err)
11616   ac_status=$?
11617   cat out/conftest.err >&5
11618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11620   then
11621     # The compiler can only warn and ignore the option if not recognized
11622     # So say no if there are warnings
11623     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11624     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11625     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11626       lt_cv_prog_compiler_c_o=yes
11627     fi
11628   fi
11629   chmod u+w . 2>&5
11630   $RM conftest*
11631   # SGI C++ compiler will create directory out/ii_files/ for
11632   # template instantiation
11633   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11634   $RM out/* && rmdir out
11635   cd ..
11636   $RM -r conftest
11637   $RM conftest*
11638
11639fi
11640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11641$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11642
11643
11644
11645
11646
11647
11648  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11649$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11650if ${lt_cv_prog_compiler_c_o+:} false; then :
11651  $as_echo_n "(cached) " >&6
11652else
11653  lt_cv_prog_compiler_c_o=no
11654   $RM -r conftest 2>/dev/null
11655   mkdir conftest
11656   cd conftest
11657   mkdir out
11658   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11659
11660   lt_compiler_flag="-o out/conftest2.$ac_objext"
11661   # Insert the option either (1) after the last *FLAGS variable, or
11662   # (2) before a word containing "conftest.", or (3) at the end.
11663   # Note that $ac_compile itself does not contain backslashes and begins
11664   # with a dollar sign (not a hyphen), so the echo should work correctly.
11665   lt_compile=`echo "$ac_compile" | $SED \
11666   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11667   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11668   -e 's:$: $lt_compiler_flag:'`
11669   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11670   (eval "$lt_compile" 2>out/conftest.err)
11671   ac_status=$?
11672   cat out/conftest.err >&5
11673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11675   then
11676     # The compiler can only warn and ignore the option if not recognized
11677     # So say no if there are warnings
11678     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11679     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11680     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11681       lt_cv_prog_compiler_c_o=yes
11682     fi
11683   fi
11684   chmod u+w . 2>&5
11685   $RM conftest*
11686   # SGI C++ compiler will create directory out/ii_files/ for
11687   # template instantiation
11688   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11689   $RM out/* && rmdir out
11690   cd ..
11691   $RM -r conftest
11692   $RM conftest*
11693
11694fi
11695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11696$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11697
11698
11699
11700
11701hard_links=nottested
11702if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11703  # do not overwrite the value of need_locks provided by the user
11704  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11705$as_echo_n "checking if we can lock with hard links... " >&6; }
11706  hard_links=yes
11707  $RM conftest*
11708  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11709  touch conftest.a
11710  ln conftest.a conftest.b 2>&5 || hard_links=no
11711  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11713$as_echo "$hard_links" >&6; }
11714  if test no = "$hard_links"; then
11715    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11716$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11717    need_locks=warn
11718  fi
11719else
11720  need_locks=no
11721fi
11722
11723
11724
11725
11726
11727
11728  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11729$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11730
11731  runpath_var=
11732  allow_undefined_flag=
11733  always_export_symbols=no
11734  archive_cmds=
11735  archive_expsym_cmds=
11736  compiler_needs_object=no
11737  enable_shared_with_static_runtimes=no
11738  export_dynamic_flag_spec=
11739  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11740  hardcode_automatic=no
11741  hardcode_direct=no
11742  hardcode_direct_absolute=no
11743  hardcode_libdir_flag_spec=
11744  hardcode_libdir_separator=
11745  hardcode_minus_L=no
11746  hardcode_shlibpath_var=unsupported
11747  inherit_rpath=no
11748  link_all_deplibs=unknown
11749  module_cmds=
11750  module_expsym_cmds=
11751  old_archive_from_new_cmds=
11752  old_archive_from_expsyms_cmds=
11753  thread_safe_flag_spec=
11754  whole_archive_flag_spec=
11755  # include_expsyms should be a list of space-separated symbols to be *always*
11756  # included in the symbol list
11757  include_expsyms=
11758  # exclude_expsyms can be an extended regexp of symbols to exclude
11759  # it will be wrapped by ' (' and ')$', so one must not match beginning or
11760  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11761  # as well as any symbol that contains 'd'.
11762  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11763  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11764  # platforms (ab)use it in PIC code, but their linkers get confused if
11765  # the symbol is explicitly referenced.  Since portable code cannot
11766  # rely on this symbol name, it's probably fine to never include it in
11767  # preloaded symbol tables.
11768  # Exclude shared library initialization/finalization symbols.
11769  extract_expsyms_cmds=
11770
11771  case $host_os in
11772  cygwin* | mingw* | pw32* | cegcc*)
11773    # FIXME: the MSVC++ port hasn't been tested in a loooong time
11774    # When not using gcc, we currently assume that we are using
11775    # Microsoft Visual C++.
11776    if test yes != "$GCC"; then
11777      with_gnu_ld=no
11778    fi
11779    ;;
11780  interix*)
11781    # we just hope/assume this is gcc and not c89 (= MSVC++)
11782    with_gnu_ld=yes
11783    ;;
11784  openbsd* | bitrig*)
11785    with_gnu_ld=no
11786    ;;
11787  esac
11788
11789  ld_shlibs=yes
11790
11791  # On some targets, GNU ld is compatible enough with the native linker
11792  # that we're better off using the native interface for both.
11793  lt_use_gnu_ld_interface=no
11794  if test yes = "$with_gnu_ld"; then
11795    case $host_os in
11796      aix*)
11797	# The AIX port of GNU ld has always aspired to compatibility
11798	# with the native linker.  However, as the warning in the GNU ld
11799	# block says, versions before 2.19.5* couldn't really create working
11800	# shared libraries, regardless of the interface used.
11801	case `$LD -v 2>&1` in
11802	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11803	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11804	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11805	  *)
11806	    lt_use_gnu_ld_interface=yes
11807	    ;;
11808	esac
11809	;;
11810      *)
11811	lt_use_gnu_ld_interface=yes
11812	;;
11813    esac
11814  fi
11815
11816  if test yes = "$lt_use_gnu_ld_interface"; then
11817    # If archive_cmds runs LD, not CC, wlarc should be empty
11818    wlarc='$wl'
11819
11820    # Set some defaults for GNU ld with shared library support. These
11821    # are reset later if shared libraries are not supported. Putting them
11822    # here allows them to be overridden if necessary.
11823    runpath_var=LD_RUN_PATH
11824    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11825    export_dynamic_flag_spec='$wl--export-dynamic'
11826    # ancient GNU ld didn't support --whole-archive et. al.
11827    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11828      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11829    else
11830      whole_archive_flag_spec=
11831    fi
11832    supports_anon_versioning=no
11833    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11834      *GNU\ gold*) supports_anon_versioning=yes ;;
11835      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11836      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11837      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11838      *\ 2.11.*) ;; # other 2.11 versions
11839      *) supports_anon_versioning=yes ;;
11840    esac
11841
11842    # See if GNU ld supports shared libraries.
11843    case $host_os in
11844    aix[3-9]*)
11845      # On AIX/PPC, the GNU linker is very broken
11846      if test ia64 != "$host_cpu"; then
11847	ld_shlibs=no
11848	cat <<_LT_EOF 1>&2
11849
11850*** Warning: the GNU linker, at least up to release 2.19, is reported
11851*** to be unable to reliably create shared libraries on AIX.
11852*** Therefore, libtool is disabling shared libraries support.  If you
11853*** really care for shared libraries, you may want to install binutils
11854*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11855*** You will then need to restart the configuration process.
11856
11857_LT_EOF
11858      fi
11859      ;;
11860
11861    amigaos*)
11862      case $host_cpu in
11863      powerpc)
11864            # see comment about AmigaOS4 .so support
11865            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11866            archive_expsym_cmds=''
11867        ;;
11868      m68k)
11869            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)'
11870            hardcode_libdir_flag_spec='-L$libdir'
11871            hardcode_minus_L=yes
11872        ;;
11873      esac
11874      ;;
11875
11876    beos*)
11877      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11878	allow_undefined_flag=unsupported
11879	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11880	# support --undefined.  This deserves some investigation.  FIXME
11881	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11882      else
11883	ld_shlibs=no
11884      fi
11885      ;;
11886
11887    cygwin* | mingw* | pw32* | cegcc*)
11888      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11889      # as there is no search path for DLLs.
11890      hardcode_libdir_flag_spec='-L$libdir'
11891      export_dynamic_flag_spec='$wl--export-all-symbols'
11892      allow_undefined_flag=unsupported
11893      always_export_symbols=no
11894      enable_shared_with_static_runtimes=yes
11895      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'
11896      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11897
11898      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11899        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11900	# If the export-symbols file already is a .def file, use it as
11901	# is; otherwise, prepend EXPORTS...
11902	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11903          cp $export_symbols $output_objdir/$soname.def;
11904        else
11905          echo EXPORTS > $output_objdir/$soname.def;
11906          cat $export_symbols >> $output_objdir/$soname.def;
11907        fi~
11908        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11909      else
11910	ld_shlibs=no
11911      fi
11912      ;;
11913
11914    haiku*)
11915      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11916      link_all_deplibs=yes
11917      ;;
11918
11919    os2*)
11920      hardcode_libdir_flag_spec='-L$libdir'
11921      hardcode_minus_L=yes
11922      allow_undefined_flag=unsupported
11923      shrext_cmds=.dll
11924      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11925	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11926	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11927	$ECHO EXPORTS >> $output_objdir/$libname.def~
11928	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11929	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11930	emximp -o $lib $output_objdir/$libname.def'
11931      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11932	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11933	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11934	$ECHO EXPORTS >> $output_objdir/$libname.def~
11935	prefix_cmds="$SED"~
11936	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11937	  prefix_cmds="$prefix_cmds -e 1d";
11938	fi~
11939	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11940	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11941	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11942	emximp -o $lib $output_objdir/$libname.def'
11943      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11944      enable_shared_with_static_runtimes=yes
11945      ;;
11946
11947    interix[3-9]*)
11948      hardcode_direct=no
11949      hardcode_shlibpath_var=no
11950      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11951      export_dynamic_flag_spec='$wl-E'
11952      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11953      # Instead, shared libraries are loaded at an image base (0x10000000 by
11954      # default) and relocated if they conflict, which is a slow very memory
11955      # consuming and fragmenting process.  To avoid this, we pick a random,
11956      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11957      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11958      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11959      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'
11960      ;;
11961
11962    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11963      tmp_diet=no
11964      if test linux-dietlibc = "$host_os"; then
11965	case $cc_basename in
11966	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
11967	esac
11968      fi
11969      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11970	 && test no = "$tmp_diet"
11971      then
11972	tmp_addflag=' $pic_flag'
11973	tmp_sharedflag='-shared'
11974	case $cc_basename,$host_cpu in
11975        pgcc*)				# Portland Group C compiler
11976	  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'
11977	  tmp_addflag=' $pic_flag'
11978	  ;;
11979	pgf77* | pgf90* | pgf95* | pgfortran*)
11980					# Portland Group f77 and f90 compilers
11981	  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'
11982	  tmp_addflag=' $pic_flag -Mnomain' ;;
11983	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11984	  tmp_addflag=' -i_dynamic' ;;
11985	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11986	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11987	ifc* | ifort*)			# Intel Fortran compiler
11988	  tmp_addflag=' -nofor_main' ;;
11989	lf95*)				# Lahey Fortran 8.1
11990	  whole_archive_flag_spec=
11991	  tmp_sharedflag='--shared' ;;
11992        nagfor*)                        # NAGFOR 5.3
11993          tmp_sharedflag='-Wl,-shared' ;;
11994	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11995	  tmp_sharedflag='-qmkshrobj'
11996	  tmp_addflag= ;;
11997	nvcc*)	# Cuda Compiler Driver 2.2
11998	  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'
11999	  compiler_needs_object=yes
12000	  ;;
12001	esac
12002	case `$CC -V 2>&1 | sed 5q` in
12003	*Sun\ C*)			# Sun C 5.9
12004	  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'
12005	  compiler_needs_object=yes
12006	  tmp_sharedflag='-G' ;;
12007	*Sun\ F*)			# Sun Fortran 8.3
12008	  tmp_sharedflag='-G' ;;
12009	esac
12010	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12011
12012        if test yes = "$supports_anon_versioning"; then
12013          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12014            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12015            echo "local: *; };" >> $output_objdir/$libname.ver~
12016            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12017        fi
12018
12019	case $cc_basename in
12020	tcc*)
12021	  export_dynamic_flag_spec='-rdynamic'
12022	  ;;
12023	xlf* | bgf* | bgxlf* | mpixlf*)
12024	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12025	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12026	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12027	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12028	  if test yes = "$supports_anon_versioning"; then
12029	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12030              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12031              echo "local: *; };" >> $output_objdir/$libname.ver~
12032              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12033	  fi
12034	  ;;
12035	esac
12036      else
12037        ld_shlibs=no
12038      fi
12039      ;;
12040
12041    netbsd*)
12042      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12043	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12044	wlarc=
12045      else
12046	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12047	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12048      fi
12049      ;;
12050
12051    solaris*)
12052      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12053	ld_shlibs=no
12054	cat <<_LT_EOF 1>&2
12055
12056*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12057*** create shared libraries on Solaris systems.  Therefore, libtool
12058*** is disabling shared libraries support.  We urge you to upgrade GNU
12059*** binutils to release 2.9.1 or newer.  Another option is to modify
12060*** your PATH or compiler configuration so that the native linker is
12061*** used, and then restart.
12062
12063_LT_EOF
12064      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12065	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12066	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12067      else
12068	ld_shlibs=no
12069      fi
12070      ;;
12071
12072    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12073      case `$LD -v 2>&1` in
12074        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12075	ld_shlibs=no
12076	cat <<_LT_EOF 1>&2
12077
12078*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12079*** reliably create shared libraries on SCO systems.  Therefore, libtool
12080*** is disabling shared libraries support.  We urge you to upgrade GNU
12081*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12082*** your PATH or compiler configuration so that the native linker is
12083*** used, and then restart.
12084
12085_LT_EOF
12086	;;
12087	*)
12088	  # For security reasons, it is highly recommended that you always
12089	  # use absolute paths for naming shared libraries, and exclude the
12090	  # DT_RUNPATH tag from executables and libraries.  But doing so
12091	  # requires that you compile everything twice, which is a pain.
12092	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12093	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12094	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12095	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12096	  else
12097	    ld_shlibs=no
12098	  fi
12099	;;
12100      esac
12101      ;;
12102
12103    sunos4*)
12104      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12105      wlarc=
12106      hardcode_direct=yes
12107      hardcode_shlibpath_var=no
12108      ;;
12109
12110    *)
12111      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12112	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12113	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12114      else
12115	ld_shlibs=no
12116      fi
12117      ;;
12118    esac
12119
12120    if test no = "$ld_shlibs"; then
12121      runpath_var=
12122      hardcode_libdir_flag_spec=
12123      export_dynamic_flag_spec=
12124      whole_archive_flag_spec=
12125    fi
12126  else
12127    # PORTME fill in a description of your system's linker (not GNU ld)
12128    case $host_os in
12129    aix3*)
12130      allow_undefined_flag=unsupported
12131      always_export_symbols=yes
12132      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'
12133      # Note: this linker hardcodes the directories in LIBPATH if there
12134      # are no directories specified by -L.
12135      hardcode_minus_L=yes
12136      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12137	# Neither direct hardcoding nor static linking is supported with a
12138	# broken collect2.
12139	hardcode_direct=unsupported
12140      fi
12141      ;;
12142
12143    aix[4-9]*)
12144      if test ia64 = "$host_cpu"; then
12145	# On IA64, the linker does run time linking by default, so we don't
12146	# have to do anything special.
12147	aix_use_runtimelinking=no
12148	exp_sym_flag='-Bexport'
12149	no_entry_flag=
12150      else
12151	# If we're using GNU nm, then we don't want the "-C" option.
12152	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
12153	# Without the "-l" option, or with the "-B" option, AIX nm treats
12154	# weak defined symbols like other global defined symbols, whereas
12155	# GNU nm marks them as "W".
12156	# While the 'weak' keyword is ignored in the Export File, we need
12157	# it in the Import File for the 'aix-soname' feature, so we have
12158	# to replace the "-B" option with "-P" for AIX nm.
12159	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12160	  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'
12161	else
12162	  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'
12163	fi
12164	aix_use_runtimelinking=no
12165
12166	# Test if we are trying to use run time linking or normal
12167	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12168	# have runtime linking enabled, and use it for executables.
12169	# For shared libraries, we enable/disable runtime linking
12170	# depending on the kind of the shared library created -
12171	# when "with_aix_soname,aix_use_runtimelinking" is:
12172	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
12173	# "aix,yes"  lib.so          shared, rtl:yes, for executables
12174	#            lib.a           static archive
12175	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
12176	#            lib.a(lib.so.V) shared, rtl:no,  for executables
12177	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12178	#            lib.a(lib.so.V) shared, rtl:no
12179	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
12180	#            lib.a           static archive
12181	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12182	  for ld_flag in $LDFLAGS; do
12183	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12184	    aix_use_runtimelinking=yes
12185	    break
12186	  fi
12187	  done
12188	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12189	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
12190	    # so we don't have lib.a shared libs to link our executables.
12191	    # We have to force runtime linking in this case.
12192	    aix_use_runtimelinking=yes
12193	    LDFLAGS="$LDFLAGS -Wl,-brtl"
12194	  fi
12195	  ;;
12196	esac
12197
12198	exp_sym_flag='-bexport'
12199	no_entry_flag='-bnoentry'
12200      fi
12201
12202      # When large executables or shared objects are built, AIX ld can
12203      # have problems creating the table of contents.  If linking a library
12204      # or program results in "error TOC overflow" add -mminimal-toc to
12205      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12206      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12207
12208      archive_cmds=''
12209      hardcode_direct=yes
12210      hardcode_direct_absolute=yes
12211      hardcode_libdir_separator=':'
12212      link_all_deplibs=yes
12213      file_list_spec='$wl-f,'
12214      case $with_aix_soname,$aix_use_runtimelinking in
12215      aix,*) ;; # traditional, no import file
12216      svr4,* | *,yes) # use import file
12217	# The Import File defines what to hardcode.
12218	hardcode_direct=no
12219	hardcode_direct_absolute=no
12220	;;
12221      esac
12222
12223      if test yes = "$GCC"; then
12224	case $host_os in aix4.[012]|aix4.[012].*)
12225	# We only want to do this on AIX 4.2 and lower, the check
12226	# below for broken collect2 doesn't work under 4.3+
12227	  collect2name=`$CC -print-prog-name=collect2`
12228	  if test -f "$collect2name" &&
12229	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12230	  then
12231	  # We have reworked collect2
12232	  :
12233	  else
12234	  # We have old collect2
12235	  hardcode_direct=unsupported
12236	  # It fails to find uninstalled libraries when the uninstalled
12237	  # path is not listed in the libpath.  Setting hardcode_minus_L
12238	  # to unsupported forces relinking
12239	  hardcode_minus_L=yes
12240	  hardcode_libdir_flag_spec='-L$libdir'
12241	  hardcode_libdir_separator=
12242	  fi
12243	  ;;
12244	esac
12245	shared_flag='-shared'
12246	if test yes = "$aix_use_runtimelinking"; then
12247	  shared_flag="$shared_flag "'$wl-G'
12248	fi
12249	# Need to ensure runtime linking is disabled for the traditional
12250	# shared library, or the linker may eventually find shared libraries
12251	# /with/ Import File - we do not want to mix them.
12252	shared_flag_aix='-shared'
12253	shared_flag_svr4='-shared $wl-G'
12254      else
12255	# not using gcc
12256	if test ia64 = "$host_cpu"; then
12257	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12258	# chokes on -Wl,-G. The following line is correct:
12259	  shared_flag='-G'
12260	else
12261	  if test yes = "$aix_use_runtimelinking"; then
12262	    shared_flag='$wl-G'
12263	  else
12264	    shared_flag='$wl-bM:SRE'
12265	  fi
12266	  shared_flag_aix='$wl-bM:SRE'
12267	  shared_flag_svr4='$wl-G'
12268	fi
12269      fi
12270
12271      export_dynamic_flag_spec='$wl-bexpall'
12272      # It seems that -bexpall does not export symbols beginning with
12273      # underscore (_), so it is better to generate a list of symbols to export.
12274      always_export_symbols=yes
12275      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12276	# Warning - without using the other runtime loading flags (-brtl),
12277	# -berok will link without error, but may produce a broken library.
12278	allow_undefined_flag='-berok'
12279        # Determine the default libpath from the value encoded in an
12280        # empty executable.
12281        if test set = "${lt_cv_aix_libpath+set}"; then
12282  aix_libpath=$lt_cv_aix_libpath
12283else
12284  if ${lt_cv_aix_libpath_+:} false; then :
12285  $as_echo_n "(cached) " >&6
12286else
12287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12288/* end confdefs.h.  */
12289
12290int
12291main ()
12292{
12293
12294  ;
12295  return 0;
12296}
12297_ACEOF
12298if ac_fn_c_try_link "$LINENO"; then :
12299
12300  lt_aix_libpath_sed='
12301      /Import File Strings/,/^$/ {
12302	  /^0/ {
12303	      s/^0  *\([^ ]*\) *$/\1/
12304	      p
12305	  }
12306      }'
12307  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12308  # Check for a 64-bit object if we didn't find anything.
12309  if test -z "$lt_cv_aix_libpath_"; then
12310    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12311  fi
12312fi
12313rm -f core conftest.err conftest.$ac_objext \
12314    conftest$ac_exeext conftest.$ac_ext
12315  if test -z "$lt_cv_aix_libpath_"; then
12316    lt_cv_aix_libpath_=/usr/lib:/lib
12317  fi
12318
12319fi
12320
12321  aix_libpath=$lt_cv_aix_libpath_
12322fi
12323
12324        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12325        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
12326      else
12327	if test ia64 = "$host_cpu"; then
12328	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12329	  allow_undefined_flag="-z nodefs"
12330	  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"
12331	else
12332	 # Determine the default libpath from the value encoded in an
12333	 # empty executable.
12334	 if test set = "${lt_cv_aix_libpath+set}"; then
12335  aix_libpath=$lt_cv_aix_libpath
12336else
12337  if ${lt_cv_aix_libpath_+:} false; then :
12338  $as_echo_n "(cached) " >&6
12339else
12340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12341/* end confdefs.h.  */
12342
12343int
12344main ()
12345{
12346
12347  ;
12348  return 0;
12349}
12350_ACEOF
12351if ac_fn_c_try_link "$LINENO"; then :
12352
12353  lt_aix_libpath_sed='
12354      /Import File Strings/,/^$/ {
12355	  /^0/ {
12356	      s/^0  *\([^ ]*\) *$/\1/
12357	      p
12358	  }
12359      }'
12360  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12361  # Check for a 64-bit object if we didn't find anything.
12362  if test -z "$lt_cv_aix_libpath_"; then
12363    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12364  fi
12365fi
12366rm -f core conftest.err conftest.$ac_objext \
12367    conftest$ac_exeext conftest.$ac_ext
12368  if test -z "$lt_cv_aix_libpath_"; then
12369    lt_cv_aix_libpath_=/usr/lib:/lib
12370  fi
12371
12372fi
12373
12374  aix_libpath=$lt_cv_aix_libpath_
12375fi
12376
12377	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12378	  # Warning - without using the other run time loading flags,
12379	  # -berok will link without error, but may produce a broken library.
12380	  no_undefined_flag=' $wl-bernotok'
12381	  allow_undefined_flag=' $wl-berok'
12382	  if test yes = "$with_gnu_ld"; then
12383	    # We only use this code for GNU lds that support --whole-archive.
12384	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12385	  else
12386	    # Exported symbols can be pulled into shared objects from archives
12387	    whole_archive_flag_spec='$convenience'
12388	  fi
12389	  archive_cmds_need_lc=yes
12390	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12391	  # -brtl affects multiple linker settings, -berok does not and is overridden later
12392	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12393	  if test svr4 != "$with_aix_soname"; then
12394	    # This is similar to how AIX traditionally builds its shared libraries.
12395	    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'
12396	  fi
12397	  if test aix != "$with_aix_soname"; then
12398	    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'
12399	  else
12400	    # used by -dlpreopen to get the symbols
12401	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
12402	  fi
12403	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12404	fi
12405      fi
12406      ;;
12407
12408    amigaos*)
12409      case $host_cpu in
12410      powerpc)
12411            # see comment about AmigaOS4 .so support
12412            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12413            archive_expsym_cmds=''
12414        ;;
12415      m68k)
12416            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)'
12417            hardcode_libdir_flag_spec='-L$libdir'
12418            hardcode_minus_L=yes
12419        ;;
12420      esac
12421      ;;
12422
12423    bsdi[45]*)
12424      export_dynamic_flag_spec=-rdynamic
12425      ;;
12426
12427    cygwin* | mingw* | pw32* | cegcc*)
12428      # When not using gcc, we currently assume that we are using
12429      # Microsoft Visual C++.
12430      # hardcode_libdir_flag_spec is actually meaningless, as there is
12431      # no search path for DLLs.
12432      case $cc_basename in
12433      cl*)
12434	# Native MSVC
12435	hardcode_libdir_flag_spec=' '
12436	allow_undefined_flag=unsupported
12437	always_export_symbols=yes
12438	file_list_spec='@'
12439	# Tell ltmain to make .lib files, not .a files.
12440	libext=lib
12441	# Tell ltmain to make .dll files, not .so files.
12442	shrext_cmds=.dll
12443	# FIXME: Setting linknames here is a bad hack.
12444	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12445	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12446            cp "$export_symbols" "$output_objdir/$soname.def";
12447            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12448          else
12449            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12450          fi~
12451          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12452          linknames='
12453	# The linker will not automatically build a static lib if we build a DLL.
12454	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12455	enable_shared_with_static_runtimes=yes
12456	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12457	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12458	# Don't use ranlib
12459	old_postinstall_cmds='chmod 644 $oldlib'
12460	postlink_cmds='lt_outputfile="@OUTPUT@"~
12461          lt_tool_outputfile="@TOOL_OUTPUT@"~
12462          case $lt_outputfile in
12463            *.exe|*.EXE) ;;
12464            *)
12465              lt_outputfile=$lt_outputfile.exe
12466              lt_tool_outputfile=$lt_tool_outputfile.exe
12467              ;;
12468          esac~
12469          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12470            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12471            $RM "$lt_outputfile.manifest";
12472          fi'
12473	;;
12474      *)
12475	# Assume MSVC wrapper
12476	hardcode_libdir_flag_spec=' '
12477	allow_undefined_flag=unsupported
12478	# Tell ltmain to make .lib files, not .a files.
12479	libext=lib
12480	# Tell ltmain to make .dll files, not .so files.
12481	shrext_cmds=.dll
12482	# FIXME: Setting linknames here is a bad hack.
12483	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12484	# The linker will automatically build a .lib file if we build a DLL.
12485	old_archive_from_new_cmds='true'
12486	# FIXME: Should let the user specify the lib program.
12487	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12488	enable_shared_with_static_runtimes=yes
12489	;;
12490      esac
12491      ;;
12492
12493    darwin* | rhapsody*)
12494
12495
12496  archive_cmds_need_lc=no
12497  hardcode_direct=no
12498  hardcode_automatic=yes
12499  hardcode_shlibpath_var=unsupported
12500  if test yes = "$lt_cv_ld_force_load"; then
12501    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\"`'
12502
12503  else
12504    whole_archive_flag_spec=''
12505  fi
12506  link_all_deplibs=yes
12507  allow_undefined_flag=$_lt_dar_allow_undefined
12508  case $cc_basename in
12509     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12510     *) _lt_dar_can_shared=$GCC ;;
12511  esac
12512  if test yes = "$_lt_dar_can_shared"; then
12513    output_verbose_link_cmd=func_echo_all
12514    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12515    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12516    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"
12517    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"
12518
12519  else
12520  ld_shlibs=no
12521  fi
12522
12523      ;;
12524
12525    dgux*)
12526      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12527      hardcode_libdir_flag_spec='-L$libdir'
12528      hardcode_shlibpath_var=no
12529      ;;
12530
12531    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12532    # support.  Future versions do this automatically, but an explicit c++rt0.o
12533    # does not break anything, and helps significantly (at the cost of a little
12534    # extra space).
12535    freebsd2.2*)
12536      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12537      hardcode_libdir_flag_spec='-R$libdir'
12538      hardcode_direct=yes
12539      hardcode_shlibpath_var=no
12540      ;;
12541
12542    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12543    freebsd2.*)
12544      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12545      hardcode_direct=yes
12546      hardcode_minus_L=yes
12547      hardcode_shlibpath_var=no
12548      ;;
12549
12550    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12551    freebsd* | dragonfly*)
12552      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12553      hardcode_libdir_flag_spec='-R$libdir'
12554      hardcode_direct=yes
12555      hardcode_shlibpath_var=no
12556      ;;
12557
12558    hpux9*)
12559      if test yes = "$GCC"; then
12560	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'
12561      else
12562	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'
12563      fi
12564      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12565      hardcode_libdir_separator=:
12566      hardcode_direct=yes
12567
12568      # hardcode_minus_L: Not really in the search PATH,
12569      # but as the default location of the library.
12570      hardcode_minus_L=yes
12571      export_dynamic_flag_spec='$wl-E'
12572      ;;
12573
12574    hpux10*)
12575      if test yes,no = "$GCC,$with_gnu_ld"; then
12576	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12577      else
12578	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12579      fi
12580      if test no = "$with_gnu_ld"; then
12581	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12582	hardcode_libdir_separator=:
12583	hardcode_direct=yes
12584	hardcode_direct_absolute=yes
12585	export_dynamic_flag_spec='$wl-E'
12586	# hardcode_minus_L: Not really in the search PATH,
12587	# but as the default location of the library.
12588	hardcode_minus_L=yes
12589      fi
12590      ;;
12591
12592    hpux11*)
12593      if test yes,no = "$GCC,$with_gnu_ld"; then
12594	case $host_cpu in
12595	hppa*64*)
12596	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12597	  ;;
12598	ia64*)
12599	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12600	  ;;
12601	*)
12602	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12603	  ;;
12604	esac
12605      else
12606	case $host_cpu in
12607	hppa*64*)
12608	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12609	  ;;
12610	ia64*)
12611	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12612	  ;;
12613	*)
12614
12615	  # Older versions of the 11.00 compiler do not understand -b yet
12616	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12617	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12618$as_echo_n "checking if $CC understands -b... " >&6; }
12619if ${lt_cv_prog_compiler__b+:} false; then :
12620  $as_echo_n "(cached) " >&6
12621else
12622  lt_cv_prog_compiler__b=no
12623   save_LDFLAGS=$LDFLAGS
12624   LDFLAGS="$LDFLAGS -b"
12625   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12626   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12627     # The linker can only warn and ignore the option if not recognized
12628     # So say no if there are warnings
12629     if test -s conftest.err; then
12630       # Append any errors to the config.log.
12631       cat conftest.err 1>&5
12632       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12633       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12634       if diff conftest.exp conftest.er2 >/dev/null; then
12635         lt_cv_prog_compiler__b=yes
12636       fi
12637     else
12638       lt_cv_prog_compiler__b=yes
12639     fi
12640   fi
12641   $RM -r conftest*
12642   LDFLAGS=$save_LDFLAGS
12643
12644fi
12645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12646$as_echo "$lt_cv_prog_compiler__b" >&6; }
12647
12648if test yes = "$lt_cv_prog_compiler__b"; then
12649    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12650else
12651    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12652fi
12653
12654	  ;;
12655	esac
12656      fi
12657      if test no = "$with_gnu_ld"; then
12658	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12659	hardcode_libdir_separator=:
12660
12661	case $host_cpu in
12662	hppa*64*|ia64*)
12663	  hardcode_direct=no
12664	  hardcode_shlibpath_var=no
12665	  ;;
12666	*)
12667	  hardcode_direct=yes
12668	  hardcode_direct_absolute=yes
12669	  export_dynamic_flag_spec='$wl-E'
12670
12671	  # hardcode_minus_L: Not really in the search PATH,
12672	  # but as the default location of the library.
12673	  hardcode_minus_L=yes
12674	  ;;
12675	esac
12676      fi
12677      ;;
12678
12679    irix5* | irix6* | nonstopux*)
12680      if test yes = "$GCC"; then
12681	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'
12682	# Try to use the -exported_symbol ld option, if it does not
12683	# work, assume that -exports_file does not work either and
12684	# implicitly export all symbols.
12685	# This should be the same for all languages, so no per-tag cache variable.
12686	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12687$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12688if ${lt_cv_irix_exported_symbol+:} false; then :
12689  $as_echo_n "(cached) " >&6
12690else
12691  save_LDFLAGS=$LDFLAGS
12692	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12693	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12694/* end confdefs.h.  */
12695int foo (void) { return 0; }
12696_ACEOF
12697if ac_fn_c_try_link "$LINENO"; then :
12698  lt_cv_irix_exported_symbol=yes
12699else
12700  lt_cv_irix_exported_symbol=no
12701fi
12702rm -f core conftest.err conftest.$ac_objext \
12703    conftest$ac_exeext conftest.$ac_ext
12704           LDFLAGS=$save_LDFLAGS
12705fi
12706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12707$as_echo "$lt_cv_irix_exported_symbol" >&6; }
12708	if test yes = "$lt_cv_irix_exported_symbol"; then
12709          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'
12710	fi
12711      else
12712	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'
12713	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'
12714      fi
12715      archive_cmds_need_lc='no'
12716      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12717      hardcode_libdir_separator=:
12718      inherit_rpath=yes
12719      link_all_deplibs=yes
12720      ;;
12721
12722    linux*)
12723      case $cc_basename in
12724      tcc*)
12725	# Fabrice Bellard et al's Tiny C Compiler
12726	ld_shlibs=yes
12727	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12728	;;
12729      esac
12730      ;;
12731
12732    netbsd*)
12733      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12734	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12735      else
12736	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12737      fi
12738      hardcode_libdir_flag_spec='-R$libdir'
12739      hardcode_direct=yes
12740      hardcode_shlibpath_var=no
12741      ;;
12742
12743    newsos6)
12744      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12745      hardcode_direct=yes
12746      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12747      hardcode_libdir_separator=:
12748      hardcode_shlibpath_var=no
12749      ;;
12750
12751    *nto* | *qnx*)
12752      ;;
12753
12754    openbsd* | bitrig*)
12755      if test -f /usr/libexec/ld.so; then
12756	hardcode_direct=yes
12757	hardcode_shlibpath_var=no
12758	hardcode_direct_absolute=yes
12759	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12760	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12761	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12762	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12763	  export_dynamic_flag_spec='$wl-E'
12764	else
12765	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12766	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12767	fi
12768      else
12769	ld_shlibs=no
12770      fi
12771      ;;
12772
12773    os2*)
12774      hardcode_libdir_flag_spec='-L$libdir'
12775      hardcode_minus_L=yes
12776      allow_undefined_flag=unsupported
12777      shrext_cmds=.dll
12778      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12779	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12780	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12781	$ECHO EXPORTS >> $output_objdir/$libname.def~
12782	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12783	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12784	emximp -o $lib $output_objdir/$libname.def'
12785      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12786	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12787	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12788	$ECHO EXPORTS >> $output_objdir/$libname.def~
12789	prefix_cmds="$SED"~
12790	if test EXPORTS = "`$SED 1q $export_symbols`"; then
12791	  prefix_cmds="$prefix_cmds -e 1d";
12792	fi~
12793	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12794	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12795	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12796	emximp -o $lib $output_objdir/$libname.def'
12797      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12798      enable_shared_with_static_runtimes=yes
12799      ;;
12800
12801    osf3*)
12802      if test yes = "$GCC"; then
12803	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12804	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'
12805      else
12806	allow_undefined_flag=' -expect_unresolved \*'
12807	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'
12808      fi
12809      archive_cmds_need_lc='no'
12810      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12811      hardcode_libdir_separator=:
12812      ;;
12813
12814    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12815      if test yes = "$GCC"; then
12816	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12817	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'
12818	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12819      else
12820	allow_undefined_flag=' -expect_unresolved \*'
12821	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'
12822	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~
12823          $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'
12824
12825	# Both c and cxx compiler support -rpath directly
12826	hardcode_libdir_flag_spec='-rpath $libdir'
12827      fi
12828      archive_cmds_need_lc='no'
12829      hardcode_libdir_separator=:
12830      ;;
12831
12832    solaris*)
12833      no_undefined_flag=' -z defs'
12834      if test yes = "$GCC"; then
12835	wlarc='$wl'
12836	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12837	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12838          $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'
12839      else
12840	case `$CC -V 2>&1` in
12841	*"Compilers 5.0"*)
12842	  wlarc=''
12843	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12844	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12845            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12846	  ;;
12847	*)
12848	  wlarc='$wl'
12849	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12850	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12851            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12852	  ;;
12853	esac
12854      fi
12855      hardcode_libdir_flag_spec='-R$libdir'
12856      hardcode_shlibpath_var=no
12857      case $host_os in
12858      solaris2.[0-5] | solaris2.[0-5].*) ;;
12859      *)
12860	# The compiler driver will combine and reorder linker options,
12861	# but understands '-z linker_flag'.  GCC discards it without '$wl',
12862	# but is careful enough not to reorder.
12863	# Supported since Solaris 2.6 (maybe 2.5.1?)
12864	if test yes = "$GCC"; then
12865	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12866	else
12867	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12868	fi
12869	;;
12870      esac
12871      link_all_deplibs=yes
12872      ;;
12873
12874    sunos4*)
12875      if test sequent = "$host_vendor"; then
12876	# Use $CC to link under sequent, because it throws in some extra .o
12877	# files that make .init and .fini sections work.
12878	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12879      else
12880	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12881      fi
12882      hardcode_libdir_flag_spec='-L$libdir'
12883      hardcode_direct=yes
12884      hardcode_minus_L=yes
12885      hardcode_shlibpath_var=no
12886      ;;
12887
12888    sysv4)
12889      case $host_vendor in
12890	sni)
12891	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12892	  hardcode_direct=yes # is this really true???
12893	;;
12894	siemens)
12895	  ## LD is ld it makes a PLAMLIB
12896	  ## CC just makes a GrossModule.
12897	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12898	  reload_cmds='$CC -r -o $output$reload_objs'
12899	  hardcode_direct=no
12900        ;;
12901	motorola)
12902	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12903	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12904	;;
12905      esac
12906      runpath_var='LD_RUN_PATH'
12907      hardcode_shlibpath_var=no
12908      ;;
12909
12910    sysv4.3*)
12911      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12912      hardcode_shlibpath_var=no
12913      export_dynamic_flag_spec='-Bexport'
12914      ;;
12915
12916    sysv4*MP*)
12917      if test -d /usr/nec; then
12918	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12919	hardcode_shlibpath_var=no
12920	runpath_var=LD_RUN_PATH
12921	hardcode_runpath_var=yes
12922	ld_shlibs=yes
12923      fi
12924      ;;
12925
12926    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12927      no_undefined_flag='$wl-z,text'
12928      archive_cmds_need_lc=no
12929      hardcode_shlibpath_var=no
12930      runpath_var='LD_RUN_PATH'
12931
12932      if test yes = "$GCC"; then
12933	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12934	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12935      else
12936	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12937	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12938      fi
12939      ;;
12940
12941    sysv5* | sco3.2v5* | sco5v6*)
12942      # Note: We CANNOT use -z defs as we might desire, because we do not
12943      # link with -lc, and that would cause any symbols used from libc to
12944      # always be unresolved, which means just about no library would
12945      # ever link correctly.  If we're not using GNU ld we use -z text
12946      # though, which does catch some bad symbols but isn't as heavy-handed
12947      # as -z defs.
12948      no_undefined_flag='$wl-z,text'
12949      allow_undefined_flag='$wl-z,nodefs'
12950      archive_cmds_need_lc=no
12951      hardcode_shlibpath_var=no
12952      hardcode_libdir_flag_spec='$wl-R,$libdir'
12953      hardcode_libdir_separator=':'
12954      link_all_deplibs=yes
12955      export_dynamic_flag_spec='$wl-Bexport'
12956      runpath_var='LD_RUN_PATH'
12957
12958      if test yes = "$GCC"; then
12959	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12960	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12961      else
12962	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12963	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12964      fi
12965      ;;
12966
12967    uts4*)
12968      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12969      hardcode_libdir_flag_spec='-L$libdir'
12970      hardcode_shlibpath_var=no
12971      ;;
12972
12973    *)
12974      ld_shlibs=no
12975      ;;
12976    esac
12977
12978    if test sni = "$host_vendor"; then
12979      case $host in
12980      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12981	export_dynamic_flag_spec='$wl-Blargedynsym'
12982	;;
12983      esac
12984    fi
12985  fi
12986
12987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12988$as_echo "$ld_shlibs" >&6; }
12989test no = "$ld_shlibs" && can_build_shared=no
12990
12991with_gnu_ld=$with_gnu_ld
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007#
13008# Do we need to explicitly link libc?
13009#
13010case "x$archive_cmds_need_lc" in
13011x|xyes)
13012  # Assume -lc should be added
13013  archive_cmds_need_lc=yes
13014
13015  if test yes,yes = "$GCC,$enable_shared"; then
13016    case $archive_cmds in
13017    *'~'*)
13018      # FIXME: we may have to deal with multi-command sequences.
13019      ;;
13020    '$CC '*)
13021      # Test whether the compiler implicitly links with -lc since on some
13022      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13023      # to ld, don't add -lc before -lgcc.
13024      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13025$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13026if ${lt_cv_archive_cmds_need_lc+:} false; then :
13027  $as_echo_n "(cached) " >&6
13028else
13029  $RM conftest*
13030	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13031
13032	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13033  (eval $ac_compile) 2>&5
13034  ac_status=$?
13035  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13036  test $ac_status = 0; } 2>conftest.err; then
13037	  soname=conftest
13038	  lib=conftest
13039	  libobjs=conftest.$ac_objext
13040	  deplibs=
13041	  wl=$lt_prog_compiler_wl
13042	  pic_flag=$lt_prog_compiler_pic
13043	  compiler_flags=-v
13044	  linker_flags=-v
13045	  verstring=
13046	  output_objdir=.
13047	  libname=conftest
13048	  lt_save_allow_undefined_flag=$allow_undefined_flag
13049	  allow_undefined_flag=
13050	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13051  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13052  ac_status=$?
13053  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13054  test $ac_status = 0; }
13055	  then
13056	    lt_cv_archive_cmds_need_lc=no
13057	  else
13058	    lt_cv_archive_cmds_need_lc=yes
13059	  fi
13060	  allow_undefined_flag=$lt_save_allow_undefined_flag
13061	else
13062	  cat conftest.err 1>&5
13063	fi
13064	$RM conftest*
13065
13066fi
13067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13068$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13069      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13070      ;;
13071    esac
13072  fi
13073  ;;
13074esac
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13228$as_echo_n "checking dynamic linker characteristics... " >&6; }
13229
13230if test yes = "$GCC"; then
13231  case $host_os in
13232    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13233    *) lt_awk_arg='/^libraries:/' ;;
13234  esac
13235  case $host_os in
13236    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13237    *) lt_sed_strip_eq='s|=/|/|g' ;;
13238  esac
13239  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13240  case $lt_search_path_spec in
13241  *\;*)
13242    # if the path contains ";" then we assume it to be the separator
13243    # otherwise default to the standard path separator (i.e. ":") - it is
13244    # assumed that no part of a normal pathname contains ";" but that should
13245    # okay in the real world where ";" in dirpaths is itself problematic.
13246    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13247    ;;
13248  *)
13249    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13250    ;;
13251  esac
13252  # Ok, now we have the path, separated by spaces, we can step through it
13253  # and add multilib dir if necessary...
13254  lt_tmp_lt_search_path_spec=
13255  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13256  # ...but if some path component already ends with the multilib dir we assume
13257  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13258  case "$lt_multi_os_dir; $lt_search_path_spec " in
13259  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13260    lt_multi_os_dir=
13261    ;;
13262  esac
13263  for lt_sys_path in $lt_search_path_spec; do
13264    if test -d "$lt_sys_path$lt_multi_os_dir"; then
13265      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13266    elif test -n "$lt_multi_os_dir"; then
13267      test -d "$lt_sys_path" && \
13268	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13269    fi
13270  done
13271  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13272BEGIN {RS = " "; FS = "/|\n";} {
13273  lt_foo = "";
13274  lt_count = 0;
13275  for (lt_i = NF; lt_i > 0; lt_i--) {
13276    if ($lt_i != "" && $lt_i != ".") {
13277      if ($lt_i == "..") {
13278        lt_count++;
13279      } else {
13280        if (lt_count == 0) {
13281          lt_foo = "/" $lt_i lt_foo;
13282        } else {
13283          lt_count--;
13284        }
13285      }
13286    }
13287  }
13288  if (lt_foo != "") { lt_freq[lt_foo]++; }
13289  if (lt_freq[lt_foo] == 1) { print lt_foo; }
13290}'`
13291  # AWK program above erroneously prepends '/' to C:/dos/paths
13292  # for these hosts.
13293  case $host_os in
13294    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13295      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13296  esac
13297  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13298else
13299  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13300fi
13301library_names_spec=
13302libname_spec='lib$name'
13303soname_spec=
13304shrext_cmds=.so
13305postinstall_cmds=
13306postuninstall_cmds=
13307finish_cmds=
13308finish_eval=
13309shlibpath_var=
13310shlibpath_overrides_runpath=unknown
13311version_type=none
13312dynamic_linker="$host_os ld.so"
13313sys_lib_dlsearch_path_spec="/lib /usr/lib"
13314need_lib_prefix=unknown
13315hardcode_into_libs=no
13316
13317# when you set need_version to no, make sure it does not cause -set_version
13318# flags to be left without arguments
13319need_version=unknown
13320
13321
13322
13323case $host_os in
13324aix3*)
13325  version_type=linux # correct to gnu/linux during the next big refactor
13326  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13327  shlibpath_var=LIBPATH
13328
13329  # AIX 3 has no versioning support, so we append a major version to the name.
13330  soname_spec='$libname$release$shared_ext$major'
13331  ;;
13332
13333aix[4-9]*)
13334  version_type=linux # correct to gnu/linux during the next big refactor
13335  need_lib_prefix=no
13336  need_version=no
13337  hardcode_into_libs=yes
13338  if test ia64 = "$host_cpu"; then
13339    # AIX 5 supports IA64
13340    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13341    shlibpath_var=LD_LIBRARY_PATH
13342  else
13343    # With GCC up to 2.95.x, collect2 would create an import file
13344    # for dependence libraries.  The import file would start with
13345    # the line '#! .'.  This would cause the generated library to
13346    # depend on '.', always an invalid library.  This was fixed in
13347    # development snapshots of GCC prior to 3.0.
13348    case $host_os in
13349      aix4 | aix4.[01] | aix4.[01].*)
13350      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13351	   echo ' yes '
13352	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13353	:
13354      else
13355	can_build_shared=no
13356      fi
13357      ;;
13358    esac
13359    # Using Import Files as archive members, it is possible to support
13360    # filename-based versioning of shared library archives on AIX. While
13361    # this would work for both with and without runtime linking, it will
13362    # prevent static linking of such archives. So we do filename-based
13363    # shared library versioning with .so extension only, which is used
13364    # when both runtime linking and shared linking is enabled.
13365    # Unfortunately, runtime linking may impact performance, so we do
13366    # not want this to be the default eventually. Also, we use the
13367    # versioned .so libs for executables only if there is the -brtl
13368    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13369    # To allow for filename-based versioning support, we need to create
13370    # libNAME.so.V as an archive file, containing:
13371    # *) an Import File, referring to the versioned filename of the
13372    #    archive as well as the shared archive member, telling the
13373    #    bitwidth (32 or 64) of that shared object, and providing the
13374    #    list of exported symbols of that shared object, eventually
13375    #    decorated with the 'weak' keyword
13376    # *) the shared object with the F_LOADONLY flag set, to really avoid
13377    #    it being seen by the linker.
13378    # At run time we better use the real file rather than another symlink,
13379    # but for link time we create the symlink libNAME.so -> libNAME.so.V
13380
13381    case $with_aix_soname,$aix_use_runtimelinking in
13382    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13383    # soname into executable. Probably we can add versioning support to
13384    # collect2, so additional links can be useful in future.
13385    aix,yes) # traditional libtool
13386      dynamic_linker='AIX unversionable lib.so'
13387      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13388      # instead of lib<name>.a to let people know that these are not
13389      # typical AIX shared libraries.
13390      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13391      ;;
13392    aix,no) # traditional AIX only
13393      dynamic_linker='AIX lib.a(lib.so.V)'
13394      # We preserve .a as extension for shared libraries through AIX4.2
13395      # and later when we are not doing run time linking.
13396      library_names_spec='$libname$release.a $libname.a'
13397      soname_spec='$libname$release$shared_ext$major'
13398      ;;
13399    svr4,*) # full svr4 only
13400      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13401      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13402      # We do not specify a path in Import Files, so LIBPATH fires.
13403      shlibpath_overrides_runpath=yes
13404      ;;
13405    *,yes) # both, prefer svr4
13406      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13407      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13408      # unpreferred sharedlib libNAME.a needs extra handling
13409      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"'
13410      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"'
13411      # We do not specify a path in Import Files, so LIBPATH fires.
13412      shlibpath_overrides_runpath=yes
13413      ;;
13414    *,no) # both, prefer aix
13415      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13416      library_names_spec='$libname$release.a $libname.a'
13417      soname_spec='$libname$release$shared_ext$major'
13418      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13419      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)'
13420      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"'
13421      ;;
13422    esac
13423    shlibpath_var=LIBPATH
13424  fi
13425  ;;
13426
13427amigaos*)
13428  case $host_cpu in
13429  powerpc)
13430    # Since July 2007 AmigaOS4 officially supports .so libraries.
13431    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13432    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13433    ;;
13434  m68k)
13435    library_names_spec='$libname.ixlibrary $libname.a'
13436    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13437    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'
13438    ;;
13439  esac
13440  ;;
13441
13442beos*)
13443  library_names_spec='$libname$shared_ext'
13444  dynamic_linker="$host_os ld.so"
13445  shlibpath_var=LIBRARY_PATH
13446  ;;
13447
13448bsdi[45]*)
13449  version_type=linux # correct to gnu/linux during the next big refactor
13450  need_version=no
13451  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13452  soname_spec='$libname$release$shared_ext$major'
13453  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13454  shlibpath_var=LD_LIBRARY_PATH
13455  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13456  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13457  # the default ld.so.conf also contains /usr/contrib/lib and
13458  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13459  # libtool to hard-code these into programs
13460  ;;
13461
13462cygwin* | mingw* | pw32* | cegcc*)
13463  version_type=windows
13464  shrext_cmds=.dll
13465  need_version=no
13466  need_lib_prefix=no
13467
13468  case $GCC,$cc_basename in
13469  yes,*)
13470    # gcc
13471    library_names_spec='$libname.dll.a'
13472    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13473    postinstall_cmds='base_file=`basename \$file`~
13474      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13475      dldir=$destdir/`dirname \$dlpath`~
13476      test -d \$dldir || mkdir -p \$dldir~
13477      $install_prog $dir/$dlname \$dldir/$dlname~
13478      chmod a+x \$dldir/$dlname~
13479      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13480        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13481      fi'
13482    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13483      dlpath=$dir/\$dldll~
13484       $RM \$dlpath'
13485    shlibpath_overrides_runpath=yes
13486
13487    case $host_os in
13488    cygwin*)
13489      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13490      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13491
13492      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13493      ;;
13494    mingw* | cegcc*)
13495      # MinGW DLLs use traditional 'lib' prefix
13496      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13497      ;;
13498    pw32*)
13499      # pw32 DLLs use 'pw' prefix rather than 'lib'
13500      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13501      ;;
13502    esac
13503    dynamic_linker='Win32 ld.exe'
13504    ;;
13505
13506  *,cl*)
13507    # Native MSVC
13508    libname_spec='$name'
13509    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13510    library_names_spec='$libname.dll.lib'
13511
13512    case $build_os in
13513    mingw*)
13514      sys_lib_search_path_spec=
13515      lt_save_ifs=$IFS
13516      IFS=';'
13517      for lt_path in $LIB
13518      do
13519        IFS=$lt_save_ifs
13520        # Let DOS variable expansion print the short 8.3 style file name.
13521        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13522        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13523      done
13524      IFS=$lt_save_ifs
13525      # Convert to MSYS style.
13526      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13527      ;;
13528    cygwin*)
13529      # Convert to unix form, then to dos form, then back to unix form
13530      # but this time dos style (no spaces!) so that the unix form looks
13531      # like /cygdrive/c/PROGRA~1:/cygdr...
13532      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13533      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13534      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13535      ;;
13536    *)
13537      sys_lib_search_path_spec=$LIB
13538      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13539        # It is most probably a Windows format PATH.
13540        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13541      else
13542        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13543      fi
13544      # FIXME: find the short name or the path components, as spaces are
13545      # common. (e.g. "Program Files" -> "PROGRA~1")
13546      ;;
13547    esac
13548
13549    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13550    postinstall_cmds='base_file=`basename \$file`~
13551      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13552      dldir=$destdir/`dirname \$dlpath`~
13553      test -d \$dldir || mkdir -p \$dldir~
13554      $install_prog $dir/$dlname \$dldir/$dlname'
13555    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13556      dlpath=$dir/\$dldll~
13557       $RM \$dlpath'
13558    shlibpath_overrides_runpath=yes
13559    dynamic_linker='Win32 link.exe'
13560    ;;
13561
13562  *)
13563    # Assume MSVC wrapper
13564    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13565    dynamic_linker='Win32 ld.exe'
13566    ;;
13567  esac
13568  # FIXME: first we should search . and the directory the executable is in
13569  shlibpath_var=PATH
13570  ;;
13571
13572darwin* | rhapsody*)
13573  dynamic_linker="$host_os dyld"
13574  version_type=darwin
13575  need_lib_prefix=no
13576  need_version=no
13577  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13578  soname_spec='$libname$release$major$shared_ext'
13579  shlibpath_overrides_runpath=yes
13580  shlibpath_var=DYLD_LIBRARY_PATH
13581  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13582
13583  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13584  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13585  ;;
13586
13587dgux*)
13588  version_type=linux # correct to gnu/linux during the next big refactor
13589  need_lib_prefix=no
13590  need_version=no
13591  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13592  soname_spec='$libname$release$shared_ext$major'
13593  shlibpath_var=LD_LIBRARY_PATH
13594  ;;
13595
13596freebsd* | dragonfly*)
13597  # DragonFly does not have aout.  When/if they implement a new
13598  # versioning mechanism, adjust this.
13599  if test -x /usr/bin/objformat; then
13600    objformat=`/usr/bin/objformat`
13601  else
13602    case $host_os in
13603    freebsd[23].*) objformat=aout ;;
13604    *) objformat=elf ;;
13605    esac
13606  fi
13607  version_type=freebsd-$objformat
13608  case $version_type in
13609    freebsd-elf*)
13610      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13611      soname_spec='$libname$release$shared_ext$major'
13612      need_version=no
13613      need_lib_prefix=no
13614      ;;
13615    freebsd-*)
13616      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13617      need_version=yes
13618      ;;
13619  esac
13620  shlibpath_var=LD_LIBRARY_PATH
13621  case $host_os in
13622  freebsd2.*)
13623    shlibpath_overrides_runpath=yes
13624    ;;
13625  freebsd3.[01]* | freebsdelf3.[01]*)
13626    shlibpath_overrides_runpath=yes
13627    hardcode_into_libs=yes
13628    ;;
13629  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13630  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13631    shlibpath_overrides_runpath=no
13632    hardcode_into_libs=yes
13633    ;;
13634  *) # from 4.6 on, and DragonFly
13635    shlibpath_overrides_runpath=yes
13636    hardcode_into_libs=yes
13637    ;;
13638  esac
13639  ;;
13640
13641haiku*)
13642  version_type=linux # correct to gnu/linux during the next big refactor
13643  need_lib_prefix=no
13644  need_version=no
13645  dynamic_linker="$host_os runtime_loader"
13646  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13647  soname_spec='$libname$release$shared_ext$major'
13648  shlibpath_var=LIBRARY_PATH
13649  shlibpath_overrides_runpath=no
13650  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13651  hardcode_into_libs=yes
13652  ;;
13653
13654hpux9* | hpux10* | hpux11*)
13655  # Give a soname corresponding to the major version so that dld.sl refuses to
13656  # link against other versions.
13657  version_type=sunos
13658  need_lib_prefix=no
13659  need_version=no
13660  case $host_cpu in
13661  ia64*)
13662    shrext_cmds='.so'
13663    hardcode_into_libs=yes
13664    dynamic_linker="$host_os dld.so"
13665    shlibpath_var=LD_LIBRARY_PATH
13666    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13667    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13668    soname_spec='$libname$release$shared_ext$major'
13669    if test 32 = "$HPUX_IA64_MODE"; then
13670      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13671      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13672    else
13673      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13674      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13675    fi
13676    ;;
13677  hppa*64*)
13678    shrext_cmds='.sl'
13679    hardcode_into_libs=yes
13680    dynamic_linker="$host_os dld.sl"
13681    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13682    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13683    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13684    soname_spec='$libname$release$shared_ext$major'
13685    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13686    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13687    ;;
13688  *)
13689    shrext_cmds='.sl'
13690    dynamic_linker="$host_os dld.sl"
13691    shlibpath_var=SHLIB_PATH
13692    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13693    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13694    soname_spec='$libname$release$shared_ext$major'
13695    ;;
13696  esac
13697  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13698  postinstall_cmds='chmod 555 $lib'
13699  # or fails outright, so override atomically:
13700  install_override_mode=555
13701  ;;
13702
13703interix[3-9]*)
13704  version_type=linux # correct to gnu/linux during the next big refactor
13705  need_lib_prefix=no
13706  need_version=no
13707  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13708  soname_spec='$libname$release$shared_ext$major'
13709  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13710  shlibpath_var=LD_LIBRARY_PATH
13711  shlibpath_overrides_runpath=no
13712  hardcode_into_libs=yes
13713  ;;
13714
13715irix5* | irix6* | nonstopux*)
13716  case $host_os in
13717    nonstopux*) version_type=nonstopux ;;
13718    *)
13719	if test yes = "$lt_cv_prog_gnu_ld"; then
13720		version_type=linux # correct to gnu/linux during the next big refactor
13721	else
13722		version_type=irix
13723	fi ;;
13724  esac
13725  need_lib_prefix=no
13726  need_version=no
13727  soname_spec='$libname$release$shared_ext$major'
13728  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13729  case $host_os in
13730  irix5* | nonstopux*)
13731    libsuff= shlibsuff=
13732    ;;
13733  *)
13734    case $LD in # libtool.m4 will add one of these switches to LD
13735    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13736      libsuff= shlibsuff= libmagic=32-bit;;
13737    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13738      libsuff=32 shlibsuff=N32 libmagic=N32;;
13739    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13740      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13741    *) libsuff= shlibsuff= libmagic=never-match;;
13742    esac
13743    ;;
13744  esac
13745  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13746  shlibpath_overrides_runpath=no
13747  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13748  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13749  hardcode_into_libs=yes
13750  ;;
13751
13752# No shared lib support for Linux oldld, aout, or coff.
13753linux*oldld* | linux*aout* | linux*coff*)
13754  dynamic_linker=no
13755  ;;
13756
13757linux*android*)
13758  version_type=none # Android doesn't support versioned libraries.
13759  need_lib_prefix=no
13760  need_version=no
13761  library_names_spec='$libname$release$shared_ext'
13762  soname_spec='$libname$release$shared_ext'
13763  finish_cmds=
13764  shlibpath_var=LD_LIBRARY_PATH
13765  shlibpath_overrides_runpath=yes
13766
13767  # This implies no fast_install, which is unacceptable.
13768  # Some rework will be needed to allow for fast_install
13769  # before this can be enabled.
13770  hardcode_into_libs=yes
13771
13772  dynamic_linker='Android linker'
13773  # Don't embed -rpath directories since the linker doesn't support them.
13774  hardcode_libdir_flag_spec='-L$libdir'
13775  ;;
13776
13777# This must be glibc/ELF.
13778linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13779  version_type=linux # correct to gnu/linux during the next big refactor
13780  need_lib_prefix=no
13781  need_version=no
13782  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13783  soname_spec='$libname$release$shared_ext$major'
13784  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13785  shlibpath_var=LD_LIBRARY_PATH
13786  shlibpath_overrides_runpath=no
13787
13788  # Some binutils ld are patched to set DT_RUNPATH
13789  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13790  $as_echo_n "(cached) " >&6
13791else
13792  lt_cv_shlibpath_overrides_runpath=no
13793    save_LDFLAGS=$LDFLAGS
13794    save_libdir=$libdir
13795    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13796	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13797    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13798/* end confdefs.h.  */
13799
13800int
13801main ()
13802{
13803
13804  ;
13805  return 0;
13806}
13807_ACEOF
13808if ac_fn_c_try_link "$LINENO"; then :
13809  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13810  lt_cv_shlibpath_overrides_runpath=yes
13811fi
13812fi
13813rm -f core conftest.err conftest.$ac_objext \
13814    conftest$ac_exeext conftest.$ac_ext
13815    LDFLAGS=$save_LDFLAGS
13816    libdir=$save_libdir
13817
13818fi
13819
13820  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13821
13822  # This implies no fast_install, which is unacceptable.
13823  # Some rework will be needed to allow for fast_install
13824  # before this can be enabled.
13825  hardcode_into_libs=yes
13826
13827  # Ideally, we could use ldconfig to report *all* directores which are
13828  # searched for libraries, however this is still not possible.  Aside from not
13829  # being certain /sbin/ldconfig is available, command
13830  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13831  # even though it is searched at run-time.  Try to do the best guess by
13832  # appending ld.so.conf contents (and includes) to the search path.
13833  if test -f /etc/ld.so.conf; then
13834    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' ' '`
13835    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13836  fi
13837
13838  # We used to test for /lib/ld.so.1 and disable shared libraries on
13839  # powerpc, because MkLinux only supported shared libraries with the
13840  # GNU dynamic linker.  Since this was broken with cross compilers,
13841  # most powerpc-linux boxes support dynamic linking these days and
13842  # people can always --disable-shared, the test was removed, and we
13843  # assume the GNU/Linux dynamic linker is in use.
13844  dynamic_linker='GNU/Linux ld.so'
13845  ;;
13846
13847netbsd*)
13848  version_type=sunos
13849  need_lib_prefix=no
13850  need_version=no
13851  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13852    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13853    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13854    dynamic_linker='NetBSD (a.out) ld.so'
13855  else
13856    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13857    soname_spec='$libname$release$shared_ext$major'
13858    dynamic_linker='NetBSD ld.elf_so'
13859  fi
13860  shlibpath_var=LD_LIBRARY_PATH
13861  shlibpath_overrides_runpath=yes
13862  hardcode_into_libs=yes
13863  ;;
13864
13865newsos6)
13866  version_type=linux # correct to gnu/linux during the next big refactor
13867  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13868  shlibpath_var=LD_LIBRARY_PATH
13869  shlibpath_overrides_runpath=yes
13870  ;;
13871
13872*nto* | *qnx*)
13873  version_type=qnx
13874  need_lib_prefix=no
13875  need_version=no
13876  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13877  soname_spec='$libname$release$shared_ext$major'
13878  shlibpath_var=LD_LIBRARY_PATH
13879  shlibpath_overrides_runpath=no
13880  hardcode_into_libs=yes
13881  dynamic_linker='ldqnx.so'
13882  ;;
13883
13884openbsd* | bitrig*)
13885  version_type=sunos
13886  sys_lib_dlsearch_path_spec=/usr/lib
13887  need_lib_prefix=no
13888  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13889    need_version=no
13890  else
13891    need_version=yes
13892  fi
13893  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13894  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13895  shlibpath_var=LD_LIBRARY_PATH
13896  shlibpath_overrides_runpath=yes
13897  ;;
13898
13899os2*)
13900  libname_spec='$name'
13901  version_type=windows
13902  shrext_cmds=.dll
13903  need_version=no
13904  need_lib_prefix=no
13905  # OS/2 can only load a DLL with a base name of 8 characters or less.
13906  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13907    v=$($ECHO $release$versuffix | tr -d .-);
13908    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13909    $ECHO $n$v`$shared_ext'
13910  library_names_spec='${libname}_dll.$libext'
13911  dynamic_linker='OS/2 ld.exe'
13912  shlibpath_var=BEGINLIBPATH
13913  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13914  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13915  postinstall_cmds='base_file=`basename \$file`~
13916    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13917    dldir=$destdir/`dirname \$dlpath`~
13918    test -d \$dldir || mkdir -p \$dldir~
13919    $install_prog $dir/$dlname \$dldir/$dlname~
13920    chmod a+x \$dldir/$dlname~
13921    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13922      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13923    fi'
13924  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13925    dlpath=$dir/\$dldll~
13926    $RM \$dlpath'
13927  ;;
13928
13929osf3* | osf4* | osf5*)
13930  version_type=osf
13931  need_lib_prefix=no
13932  need_version=no
13933  soname_spec='$libname$release$shared_ext$major'
13934  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13935  shlibpath_var=LD_LIBRARY_PATH
13936  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13937  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13938  ;;
13939
13940rdos*)
13941  dynamic_linker=no
13942  ;;
13943
13944solaris*)
13945  version_type=linux # correct to gnu/linux during the next big refactor
13946  need_lib_prefix=no
13947  need_version=no
13948  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13949  soname_spec='$libname$release$shared_ext$major'
13950  shlibpath_var=LD_LIBRARY_PATH
13951  shlibpath_overrides_runpath=yes
13952  hardcode_into_libs=yes
13953  # ldd complains unless libraries are executable
13954  postinstall_cmds='chmod +x $lib'
13955  ;;
13956
13957sunos4*)
13958  version_type=sunos
13959  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13960  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13961  shlibpath_var=LD_LIBRARY_PATH
13962  shlibpath_overrides_runpath=yes
13963  if test yes = "$with_gnu_ld"; then
13964    need_lib_prefix=no
13965  fi
13966  need_version=yes
13967  ;;
13968
13969sysv4 | sysv4.3*)
13970  version_type=linux # correct to gnu/linux during the next big refactor
13971  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13972  soname_spec='$libname$release$shared_ext$major'
13973  shlibpath_var=LD_LIBRARY_PATH
13974  case $host_vendor in
13975    sni)
13976      shlibpath_overrides_runpath=no
13977      need_lib_prefix=no
13978      runpath_var=LD_RUN_PATH
13979      ;;
13980    siemens)
13981      need_lib_prefix=no
13982      ;;
13983    motorola)
13984      need_lib_prefix=no
13985      need_version=no
13986      shlibpath_overrides_runpath=no
13987      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13988      ;;
13989  esac
13990  ;;
13991
13992sysv4*MP*)
13993  if test -d /usr/nec; then
13994    version_type=linux # correct to gnu/linux during the next big refactor
13995    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13996    soname_spec='$libname$shared_ext.$major'
13997    shlibpath_var=LD_LIBRARY_PATH
13998  fi
13999  ;;
14000
14001sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14002  version_type=sco
14003  need_lib_prefix=no
14004  need_version=no
14005  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14006  soname_spec='$libname$release$shared_ext$major'
14007  shlibpath_var=LD_LIBRARY_PATH
14008  shlibpath_overrides_runpath=yes
14009  hardcode_into_libs=yes
14010  if test yes = "$with_gnu_ld"; then
14011    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14012  else
14013    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14014    case $host_os in
14015      sco3.2v5*)
14016        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14017	;;
14018    esac
14019  fi
14020  sys_lib_dlsearch_path_spec='/usr/lib'
14021  ;;
14022
14023tpf*)
14024  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14025  version_type=linux # correct to gnu/linux during the next big refactor
14026  need_lib_prefix=no
14027  need_version=no
14028  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14029  shlibpath_var=LD_LIBRARY_PATH
14030  shlibpath_overrides_runpath=no
14031  hardcode_into_libs=yes
14032  ;;
14033
14034uts4*)
14035  version_type=linux # correct to gnu/linux during the next big refactor
14036  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14037  soname_spec='$libname$release$shared_ext$major'
14038  shlibpath_var=LD_LIBRARY_PATH
14039  ;;
14040
14041*)
14042  dynamic_linker=no
14043  ;;
14044esac
14045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14046$as_echo "$dynamic_linker" >&6; }
14047test no = "$dynamic_linker" && can_build_shared=no
14048
14049variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14050if test yes = "$GCC"; then
14051  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14052fi
14053
14054if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14055  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14056fi
14057
14058if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14059  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14060fi
14061
14062# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14063configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14064
14065# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14066func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14067
14068# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14069configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14168$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14169hardcode_action=
14170if test -n "$hardcode_libdir_flag_spec" ||
14171   test -n "$runpath_var" ||
14172   test yes = "$hardcode_automatic"; then
14173
14174  # We can hardcode non-existent directories.
14175  if test no != "$hardcode_direct" &&
14176     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14177     # have to relink, otherwise we might link with an installed library
14178     # when we should be linking with a yet-to-be-installed one
14179     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14180     test no != "$hardcode_minus_L"; then
14181    # Linking always hardcodes the temporary library directory.
14182    hardcode_action=relink
14183  else
14184    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14185    hardcode_action=immediate
14186  fi
14187else
14188  # We cannot hardcode anything, or else we can only hardcode existing
14189  # directories.
14190  hardcode_action=unsupported
14191fi
14192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14193$as_echo "$hardcode_action" >&6; }
14194
14195if test relink = "$hardcode_action" ||
14196   test yes = "$inherit_rpath"; then
14197  # Fast installation is not supported
14198  enable_fast_install=no
14199elif test yes = "$shlibpath_overrides_runpath" ||
14200     test no = "$enable_shared"; then
14201  # Fast installation is not necessary
14202  enable_fast_install=needless
14203fi
14204
14205
14206
14207
14208
14209
14210  if test yes != "$enable_dlopen"; then
14211  enable_dlopen=unknown
14212  enable_dlopen_self=unknown
14213  enable_dlopen_self_static=unknown
14214else
14215  lt_cv_dlopen=no
14216  lt_cv_dlopen_libs=
14217
14218  case $host_os in
14219  beos*)
14220    lt_cv_dlopen=load_add_on
14221    lt_cv_dlopen_libs=
14222    lt_cv_dlopen_self=yes
14223    ;;
14224
14225  mingw* | pw32* | cegcc*)
14226    lt_cv_dlopen=LoadLibrary
14227    lt_cv_dlopen_libs=
14228    ;;
14229
14230  cygwin*)
14231    lt_cv_dlopen=dlopen
14232    lt_cv_dlopen_libs=
14233    ;;
14234
14235  darwin*)
14236    # if libdl is installed we need to link against it
14237    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14238$as_echo_n "checking for dlopen in -ldl... " >&6; }
14239if ${ac_cv_lib_dl_dlopen+:} false; then :
14240  $as_echo_n "(cached) " >&6
14241else
14242  ac_check_lib_save_LIBS=$LIBS
14243LIBS="-ldl  $LIBS"
14244cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14245/* end confdefs.h.  */
14246
14247/* Override any GCC internal prototype to avoid an error.
14248   Use char because int might match the return type of a GCC
14249   builtin and then its argument prototype would still apply.  */
14250#ifdef __cplusplus
14251extern "C"
14252#endif
14253char dlopen ();
14254int
14255main ()
14256{
14257return dlopen ();
14258  ;
14259  return 0;
14260}
14261_ACEOF
14262if ac_fn_c_try_link "$LINENO"; then :
14263  ac_cv_lib_dl_dlopen=yes
14264else
14265  ac_cv_lib_dl_dlopen=no
14266fi
14267rm -f core conftest.err conftest.$ac_objext \
14268    conftest$ac_exeext conftest.$ac_ext
14269LIBS=$ac_check_lib_save_LIBS
14270fi
14271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14272$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14273if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14274  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14275else
14276
14277    lt_cv_dlopen=dyld
14278    lt_cv_dlopen_libs=
14279    lt_cv_dlopen_self=yes
14280
14281fi
14282
14283    ;;
14284
14285  tpf*)
14286    # Don't try to run any link tests for TPF.  We know it's impossible
14287    # because TPF is a cross-compiler, and we know how we open DSOs.
14288    lt_cv_dlopen=dlopen
14289    lt_cv_dlopen_libs=
14290    lt_cv_dlopen_self=no
14291    ;;
14292
14293  *)
14294    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14295if test "x$ac_cv_func_shl_load" = xyes; then :
14296  lt_cv_dlopen=shl_load
14297else
14298  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14299$as_echo_n "checking for shl_load in -ldld... " >&6; }
14300if ${ac_cv_lib_dld_shl_load+:} false; then :
14301  $as_echo_n "(cached) " >&6
14302else
14303  ac_check_lib_save_LIBS=$LIBS
14304LIBS="-ldld  $LIBS"
14305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14306/* end confdefs.h.  */
14307
14308/* Override any GCC internal prototype to avoid an error.
14309   Use char because int might match the return type of a GCC
14310   builtin and then its argument prototype would still apply.  */
14311#ifdef __cplusplus
14312extern "C"
14313#endif
14314char shl_load ();
14315int
14316main ()
14317{
14318return shl_load ();
14319  ;
14320  return 0;
14321}
14322_ACEOF
14323if ac_fn_c_try_link "$LINENO"; then :
14324  ac_cv_lib_dld_shl_load=yes
14325else
14326  ac_cv_lib_dld_shl_load=no
14327fi
14328rm -f core conftest.err conftest.$ac_objext \
14329    conftest$ac_exeext conftest.$ac_ext
14330LIBS=$ac_check_lib_save_LIBS
14331fi
14332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14333$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14334if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14335  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14336else
14337  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14338if test "x$ac_cv_func_dlopen" = xyes; then :
14339  lt_cv_dlopen=dlopen
14340else
14341  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14342$as_echo_n "checking for dlopen in -ldl... " >&6; }
14343if ${ac_cv_lib_dl_dlopen+:} false; then :
14344  $as_echo_n "(cached) " >&6
14345else
14346  ac_check_lib_save_LIBS=$LIBS
14347LIBS="-ldl  $LIBS"
14348cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14349/* end confdefs.h.  */
14350
14351/* Override any GCC internal prototype to avoid an error.
14352   Use char because int might match the return type of a GCC
14353   builtin and then its argument prototype would still apply.  */
14354#ifdef __cplusplus
14355extern "C"
14356#endif
14357char dlopen ();
14358int
14359main ()
14360{
14361return dlopen ();
14362  ;
14363  return 0;
14364}
14365_ACEOF
14366if ac_fn_c_try_link "$LINENO"; then :
14367  ac_cv_lib_dl_dlopen=yes
14368else
14369  ac_cv_lib_dl_dlopen=no
14370fi
14371rm -f core conftest.err conftest.$ac_objext \
14372    conftest$ac_exeext conftest.$ac_ext
14373LIBS=$ac_check_lib_save_LIBS
14374fi
14375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14376$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14377if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14378  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14379else
14380  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14381$as_echo_n "checking for dlopen in -lsvld... " >&6; }
14382if ${ac_cv_lib_svld_dlopen+:} false; then :
14383  $as_echo_n "(cached) " >&6
14384else
14385  ac_check_lib_save_LIBS=$LIBS
14386LIBS="-lsvld  $LIBS"
14387cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14388/* end confdefs.h.  */
14389
14390/* Override any GCC internal prototype to avoid an error.
14391   Use char because int might match the return type of a GCC
14392   builtin and then its argument prototype would still apply.  */
14393#ifdef __cplusplus
14394extern "C"
14395#endif
14396char dlopen ();
14397int
14398main ()
14399{
14400return dlopen ();
14401  ;
14402  return 0;
14403}
14404_ACEOF
14405if ac_fn_c_try_link "$LINENO"; then :
14406  ac_cv_lib_svld_dlopen=yes
14407else
14408  ac_cv_lib_svld_dlopen=no
14409fi
14410rm -f core conftest.err conftest.$ac_objext \
14411    conftest$ac_exeext conftest.$ac_ext
14412LIBS=$ac_check_lib_save_LIBS
14413fi
14414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14415$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14416if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14417  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14418else
14419  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14420$as_echo_n "checking for dld_link in -ldld... " >&6; }
14421if ${ac_cv_lib_dld_dld_link+:} false; then :
14422  $as_echo_n "(cached) " >&6
14423else
14424  ac_check_lib_save_LIBS=$LIBS
14425LIBS="-ldld  $LIBS"
14426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14427/* end confdefs.h.  */
14428
14429/* Override any GCC internal prototype to avoid an error.
14430   Use char because int might match the return type of a GCC
14431   builtin and then its argument prototype would still apply.  */
14432#ifdef __cplusplus
14433extern "C"
14434#endif
14435char dld_link ();
14436int
14437main ()
14438{
14439return dld_link ();
14440  ;
14441  return 0;
14442}
14443_ACEOF
14444if ac_fn_c_try_link "$LINENO"; then :
14445  ac_cv_lib_dld_dld_link=yes
14446else
14447  ac_cv_lib_dld_dld_link=no
14448fi
14449rm -f core conftest.err conftest.$ac_objext \
14450    conftest$ac_exeext conftest.$ac_ext
14451LIBS=$ac_check_lib_save_LIBS
14452fi
14453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14454$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14455if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14456  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14457fi
14458
14459
14460fi
14461
14462
14463fi
14464
14465
14466fi
14467
14468
14469fi
14470
14471
14472fi
14473
14474    ;;
14475  esac
14476
14477  if test no = "$lt_cv_dlopen"; then
14478    enable_dlopen=no
14479  else
14480    enable_dlopen=yes
14481  fi
14482
14483  case $lt_cv_dlopen in
14484  dlopen)
14485    save_CPPFLAGS=$CPPFLAGS
14486    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14487
14488    save_LDFLAGS=$LDFLAGS
14489    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14490
14491    save_LIBS=$LIBS
14492    LIBS="$lt_cv_dlopen_libs $LIBS"
14493
14494    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14495$as_echo_n "checking whether a program can dlopen itself... " >&6; }
14496if ${lt_cv_dlopen_self+:} false; then :
14497  $as_echo_n "(cached) " >&6
14498else
14499  	  if test yes = "$cross_compiling"; then :
14500  lt_cv_dlopen_self=cross
14501else
14502  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14503  lt_status=$lt_dlunknown
14504  cat > conftest.$ac_ext <<_LT_EOF
14505#line $LINENO "configure"
14506#include "confdefs.h"
14507
14508#if HAVE_DLFCN_H
14509#include <dlfcn.h>
14510#endif
14511
14512#include <stdio.h>
14513
14514#ifdef RTLD_GLOBAL
14515#  define LT_DLGLOBAL		RTLD_GLOBAL
14516#else
14517#  ifdef DL_GLOBAL
14518#    define LT_DLGLOBAL		DL_GLOBAL
14519#  else
14520#    define LT_DLGLOBAL		0
14521#  endif
14522#endif
14523
14524/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14525   find out it does not work in some platform. */
14526#ifndef LT_DLLAZY_OR_NOW
14527#  ifdef RTLD_LAZY
14528#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14529#  else
14530#    ifdef DL_LAZY
14531#      define LT_DLLAZY_OR_NOW		DL_LAZY
14532#    else
14533#      ifdef RTLD_NOW
14534#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14535#      else
14536#        ifdef DL_NOW
14537#          define LT_DLLAZY_OR_NOW	DL_NOW
14538#        else
14539#          define LT_DLLAZY_OR_NOW	0
14540#        endif
14541#      endif
14542#    endif
14543#  endif
14544#endif
14545
14546/* When -fvisibility=hidden is used, assume the code has been annotated
14547   correspondingly for the symbols needed.  */
14548#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14549int fnord () __attribute__((visibility("default")));
14550#endif
14551
14552int fnord () { return 42; }
14553int main ()
14554{
14555  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14556  int status = $lt_dlunknown;
14557
14558  if (self)
14559    {
14560      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14561      else
14562        {
14563	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14564          else puts (dlerror ());
14565	}
14566      /* dlclose (self); */
14567    }
14568  else
14569    puts (dlerror ());
14570
14571  return status;
14572}
14573_LT_EOF
14574  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14575  (eval $ac_link) 2>&5
14576  ac_status=$?
14577  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14578  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14579    (./conftest; exit; ) >&5 2>/dev/null
14580    lt_status=$?
14581    case x$lt_status in
14582      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14583      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14584      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14585    esac
14586  else :
14587    # compilation failed
14588    lt_cv_dlopen_self=no
14589  fi
14590fi
14591rm -fr conftest*
14592
14593
14594fi
14595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14596$as_echo "$lt_cv_dlopen_self" >&6; }
14597
14598    if test yes = "$lt_cv_dlopen_self"; then
14599      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14600      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14601$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14602if ${lt_cv_dlopen_self_static+:} false; then :
14603  $as_echo_n "(cached) " >&6
14604else
14605  	  if test yes = "$cross_compiling"; then :
14606  lt_cv_dlopen_self_static=cross
14607else
14608  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14609  lt_status=$lt_dlunknown
14610  cat > conftest.$ac_ext <<_LT_EOF
14611#line $LINENO "configure"
14612#include "confdefs.h"
14613
14614#if HAVE_DLFCN_H
14615#include <dlfcn.h>
14616#endif
14617
14618#include <stdio.h>
14619
14620#ifdef RTLD_GLOBAL
14621#  define LT_DLGLOBAL		RTLD_GLOBAL
14622#else
14623#  ifdef DL_GLOBAL
14624#    define LT_DLGLOBAL		DL_GLOBAL
14625#  else
14626#    define LT_DLGLOBAL		0
14627#  endif
14628#endif
14629
14630/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14631   find out it does not work in some platform. */
14632#ifndef LT_DLLAZY_OR_NOW
14633#  ifdef RTLD_LAZY
14634#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14635#  else
14636#    ifdef DL_LAZY
14637#      define LT_DLLAZY_OR_NOW		DL_LAZY
14638#    else
14639#      ifdef RTLD_NOW
14640#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14641#      else
14642#        ifdef DL_NOW
14643#          define LT_DLLAZY_OR_NOW	DL_NOW
14644#        else
14645#          define LT_DLLAZY_OR_NOW	0
14646#        endif
14647#      endif
14648#    endif
14649#  endif
14650#endif
14651
14652/* When -fvisibility=hidden is used, assume the code has been annotated
14653   correspondingly for the symbols needed.  */
14654#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14655int fnord () __attribute__((visibility("default")));
14656#endif
14657
14658int fnord () { return 42; }
14659int main ()
14660{
14661  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14662  int status = $lt_dlunknown;
14663
14664  if (self)
14665    {
14666      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14667      else
14668        {
14669	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14670          else puts (dlerror ());
14671	}
14672      /* dlclose (self); */
14673    }
14674  else
14675    puts (dlerror ());
14676
14677  return status;
14678}
14679_LT_EOF
14680  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14681  (eval $ac_link) 2>&5
14682  ac_status=$?
14683  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14684  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14685    (./conftest; exit; ) >&5 2>/dev/null
14686    lt_status=$?
14687    case x$lt_status in
14688      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14689      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14690      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14691    esac
14692  else :
14693    # compilation failed
14694    lt_cv_dlopen_self_static=no
14695  fi
14696fi
14697rm -fr conftest*
14698
14699
14700fi
14701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14702$as_echo "$lt_cv_dlopen_self_static" >&6; }
14703    fi
14704
14705    CPPFLAGS=$save_CPPFLAGS
14706    LDFLAGS=$save_LDFLAGS
14707    LIBS=$save_LIBS
14708    ;;
14709  esac
14710
14711  case $lt_cv_dlopen_self in
14712  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14713  *) enable_dlopen_self=unknown ;;
14714  esac
14715
14716  case $lt_cv_dlopen_self_static in
14717  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14718  *) enable_dlopen_self_static=unknown ;;
14719  esac
14720fi
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738striplib=
14739old_striplib=
14740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14741$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14742if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14743  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14744  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14746$as_echo "yes" >&6; }
14747else
14748# FIXME - insert some real tests, host_os isn't really good enough
14749  case $host_os in
14750  darwin*)
14751    if test -n "$STRIP"; then
14752      striplib="$STRIP -x"
14753      old_striplib="$STRIP -S"
14754      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14755$as_echo "yes" >&6; }
14756    else
14757      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14758$as_echo "no" >&6; }
14759    fi
14760    ;;
14761  *)
14762    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14763$as_echo "no" >&6; }
14764    ;;
14765  esac
14766fi
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779  # Report what library types will actually be built
14780  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14781$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14783$as_echo "$can_build_shared" >&6; }
14784
14785  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14786$as_echo_n "checking whether to build shared libraries... " >&6; }
14787  test no = "$can_build_shared" && enable_shared=no
14788
14789  # On AIX, shared libraries and static libraries use the same namespace, and
14790  # are all built from PIC.
14791  case $host_os in
14792  aix3*)
14793    test yes = "$enable_shared" && enable_static=no
14794    if test -n "$RANLIB"; then
14795      archive_cmds="$archive_cmds~\$RANLIB \$lib"
14796      postinstall_cmds='$RANLIB $lib'
14797    fi
14798    ;;
14799
14800  aix[4-9]*)
14801    if test ia64 != "$host_cpu"; then
14802      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14803      yes,aix,yes) ;;			# shared object as lib.so file only
14804      yes,svr4,*) ;;			# shared object as lib.so archive member only
14805      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
14806      esac
14807    fi
14808    ;;
14809  esac
14810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14811$as_echo "$enable_shared" >&6; }
14812
14813  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14814$as_echo_n "checking whether to build static libraries... " >&6; }
14815  # Make sure either enable_shared or enable_static is yes.
14816  test yes = "$enable_shared" || enable_static=yes
14817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14818$as_echo "$enable_static" >&6; }
14819
14820
14821
14822
14823fi
14824ac_ext=c
14825ac_cpp='$CPP $CPPFLAGS'
14826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14828ac_compiler_gnu=$ac_cv_c_compiler_gnu
14829
14830CC=$lt_save_CC
14831
14832      if test -n "$CXX" && ( test no != "$CXX" &&
14833    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14834    (test g++ != "$CXX"))); then
14835  ac_ext=cpp
14836ac_cpp='$CXXCPP $CPPFLAGS'
14837ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14838ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14839ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14841$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14842if test -z "$CXXCPP"; then
14843  if ${ac_cv_prog_CXXCPP+:} false; then :
14844  $as_echo_n "(cached) " >&6
14845else
14846      # Double quotes because CXXCPP needs to be expanded
14847    for CXXCPP in "$CXX -E" "/lib/cpp"
14848    do
14849      ac_preproc_ok=false
14850for ac_cxx_preproc_warn_flag in '' yes
14851do
14852  # Use a header file that comes with gcc, so configuring glibc
14853  # with a fresh cross-compiler works.
14854  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14855  # <limits.h> exists even on freestanding compilers.
14856  # On the NeXT, cc -E runs the code through the compiler's parser,
14857  # not just through cpp. "Syntax error" is here to catch this case.
14858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14859/* end confdefs.h.  */
14860#ifdef __STDC__
14861# include <limits.h>
14862#else
14863# include <assert.h>
14864#endif
14865		     Syntax error
14866_ACEOF
14867if ac_fn_cxx_try_cpp "$LINENO"; then :
14868
14869else
14870  # Broken: fails on valid input.
14871continue
14872fi
14873rm -f conftest.err conftest.i conftest.$ac_ext
14874
14875  # OK, works on sane cases.  Now check whether nonexistent headers
14876  # can be detected and how.
14877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14878/* end confdefs.h.  */
14879#include <ac_nonexistent.h>
14880_ACEOF
14881if ac_fn_cxx_try_cpp "$LINENO"; then :
14882  # Broken: success on invalid input.
14883continue
14884else
14885  # Passes both tests.
14886ac_preproc_ok=:
14887break
14888fi
14889rm -f conftest.err conftest.i conftest.$ac_ext
14890
14891done
14892# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14893rm -f conftest.i conftest.err conftest.$ac_ext
14894if $ac_preproc_ok; then :
14895  break
14896fi
14897
14898    done
14899    ac_cv_prog_CXXCPP=$CXXCPP
14900
14901fi
14902  CXXCPP=$ac_cv_prog_CXXCPP
14903else
14904  ac_cv_prog_CXXCPP=$CXXCPP
14905fi
14906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14907$as_echo "$CXXCPP" >&6; }
14908ac_preproc_ok=false
14909for ac_cxx_preproc_warn_flag in '' yes
14910do
14911  # Use a header file that comes with gcc, so configuring glibc
14912  # with a fresh cross-compiler works.
14913  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14914  # <limits.h> exists even on freestanding compilers.
14915  # On the NeXT, cc -E runs the code through the compiler's parser,
14916  # not just through cpp. "Syntax error" is here to catch this case.
14917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14918/* end confdefs.h.  */
14919#ifdef __STDC__
14920# include <limits.h>
14921#else
14922# include <assert.h>
14923#endif
14924		     Syntax error
14925_ACEOF
14926if ac_fn_cxx_try_cpp "$LINENO"; then :
14927
14928else
14929  # Broken: fails on valid input.
14930continue
14931fi
14932rm -f conftest.err conftest.i conftest.$ac_ext
14933
14934  # OK, works on sane cases.  Now check whether nonexistent headers
14935  # can be detected and how.
14936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14937/* end confdefs.h.  */
14938#include <ac_nonexistent.h>
14939_ACEOF
14940if ac_fn_cxx_try_cpp "$LINENO"; then :
14941  # Broken: success on invalid input.
14942continue
14943else
14944  # Passes both tests.
14945ac_preproc_ok=:
14946break
14947fi
14948rm -f conftest.err conftest.i conftest.$ac_ext
14949
14950done
14951# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14952rm -f conftest.i conftest.err conftest.$ac_ext
14953if $ac_preproc_ok; then :
14954
14955else
14956  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14957$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14958as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14959See \`config.log' for more details" "$LINENO" 5; }
14960fi
14961
14962ac_ext=c
14963ac_cpp='$CPP $CPPFLAGS'
14964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14966ac_compiler_gnu=$ac_cv_c_compiler_gnu
14967
14968else
14969  _lt_caught_CXX_error=yes
14970fi
14971
14972ac_ext=cpp
14973ac_cpp='$CXXCPP $CPPFLAGS'
14974ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14975ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14976ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14977
14978archive_cmds_need_lc_CXX=no
14979allow_undefined_flag_CXX=
14980always_export_symbols_CXX=no
14981archive_expsym_cmds_CXX=
14982compiler_needs_object_CXX=no
14983export_dynamic_flag_spec_CXX=
14984hardcode_direct_CXX=no
14985hardcode_direct_absolute_CXX=no
14986hardcode_libdir_flag_spec_CXX=
14987hardcode_libdir_separator_CXX=
14988hardcode_minus_L_CXX=no
14989hardcode_shlibpath_var_CXX=unsupported
14990hardcode_automatic_CXX=no
14991inherit_rpath_CXX=no
14992module_cmds_CXX=
14993module_expsym_cmds_CXX=
14994link_all_deplibs_CXX=unknown
14995old_archive_cmds_CXX=$old_archive_cmds
14996reload_flag_CXX=$reload_flag
14997reload_cmds_CXX=$reload_cmds
14998no_undefined_flag_CXX=
14999whole_archive_flag_spec_CXX=
15000enable_shared_with_static_runtimes_CXX=no
15001
15002# Source file extension for C++ test sources.
15003ac_ext=cpp
15004
15005# Object file extension for compiled C++ test sources.
15006objext=o
15007objext_CXX=$objext
15008
15009# No sense in running all these tests if we already determined that
15010# the CXX compiler isn't working.  Some variables (like enable_shared)
15011# are currently assumed to apply to all compilers on this platform,
15012# and will be corrupted by setting them based on a non-working compiler.
15013if test yes != "$_lt_caught_CXX_error"; then
15014  # Code to be used in simple compile tests
15015  lt_simple_compile_test_code="int some_variable = 0;"
15016
15017  # Code to be used in simple link tests
15018  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15019
15020  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15021
15022
15023
15024
15025
15026
15027# If no C compiler was specified, use CC.
15028LTCC=${LTCC-"$CC"}
15029
15030# If no C compiler flags were specified, use CFLAGS.
15031LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15032
15033# Allow CC to be a program name with arguments.
15034compiler=$CC
15035
15036
15037  # save warnings/boilerplate of simple test code
15038  ac_outfile=conftest.$ac_objext
15039echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15040eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15041_lt_compiler_boilerplate=`cat conftest.err`
15042$RM conftest*
15043
15044  ac_outfile=conftest.$ac_objext
15045echo "$lt_simple_link_test_code" >conftest.$ac_ext
15046eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15047_lt_linker_boilerplate=`cat conftest.err`
15048$RM -r conftest*
15049
15050
15051  # Allow CC to be a program name with arguments.
15052  lt_save_CC=$CC
15053  lt_save_CFLAGS=$CFLAGS
15054  lt_save_LD=$LD
15055  lt_save_GCC=$GCC
15056  GCC=$GXX
15057  lt_save_with_gnu_ld=$with_gnu_ld
15058  lt_save_path_LD=$lt_cv_path_LD
15059  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15060    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15061  else
15062    $as_unset lt_cv_prog_gnu_ld
15063  fi
15064  if test -n "${lt_cv_path_LDCXX+set}"; then
15065    lt_cv_path_LD=$lt_cv_path_LDCXX
15066  else
15067    $as_unset lt_cv_path_LD
15068  fi
15069  test -z "${LDCXX+set}" || LD=$LDCXX
15070  CC=${CXX-"c++"}
15071  CFLAGS=$CXXFLAGS
15072  compiler=$CC
15073  compiler_CXX=$CC
15074  func_cc_basename $compiler
15075cc_basename=$func_cc_basename_result
15076
15077
15078  if test -n "$compiler"; then
15079    # We don't want -fno-exception when compiling C++ code, so set the
15080    # no_builtin_flag separately
15081    if test yes = "$GXX"; then
15082      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15083    else
15084      lt_prog_compiler_no_builtin_flag_CXX=
15085    fi
15086
15087    if test yes = "$GXX"; then
15088      # Set up default GNU C++ configuration
15089
15090
15091
15092# Check whether --with-gnu-ld was given.
15093if test "${with_gnu_ld+set}" = set; then :
15094  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
15095else
15096  with_gnu_ld=no
15097fi
15098
15099ac_prog=ld
15100if test yes = "$GCC"; then
15101  # Check if gcc -print-prog-name=ld gives a path.
15102  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15103$as_echo_n "checking for ld used by $CC... " >&6; }
15104  case $host in
15105  *-*-mingw*)
15106    # gcc leaves a trailing carriage return, which upsets mingw
15107    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15108  *)
15109    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15110  esac
15111  case $ac_prog in
15112    # Accept absolute paths.
15113    [\\/]* | ?:[\\/]*)
15114      re_direlt='/[^/][^/]*/\.\./'
15115      # Canonicalize the pathname of ld
15116      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15117      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15118	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15119      done
15120      test -z "$LD" && LD=$ac_prog
15121      ;;
15122  "")
15123    # If it fails, then pretend we aren't using GCC.
15124    ac_prog=ld
15125    ;;
15126  *)
15127    # If it is relative, then search for the first ld in PATH.
15128    with_gnu_ld=unknown
15129    ;;
15130  esac
15131elif test yes = "$with_gnu_ld"; then
15132  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15133$as_echo_n "checking for GNU ld... " >&6; }
15134else
15135  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15136$as_echo_n "checking for non-GNU ld... " >&6; }
15137fi
15138if ${lt_cv_path_LD+:} false; then :
15139  $as_echo_n "(cached) " >&6
15140else
15141  if test -z "$LD"; then
15142  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15143  for ac_dir in $PATH; do
15144    IFS=$lt_save_ifs
15145    test -z "$ac_dir" && ac_dir=.
15146    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15147      lt_cv_path_LD=$ac_dir/$ac_prog
15148      # Check to see if the program is GNU ld.  I'd rather use --version,
15149      # but apparently some variants of GNU ld only accept -v.
15150      # Break only if it was the GNU/non-GNU ld that we prefer.
15151      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15152      *GNU* | *'with BFD'*)
15153	test no != "$with_gnu_ld" && break
15154	;;
15155      *)
15156	test yes != "$with_gnu_ld" && break
15157	;;
15158      esac
15159    fi
15160  done
15161  IFS=$lt_save_ifs
15162else
15163  lt_cv_path_LD=$LD # Let the user override the test with a path.
15164fi
15165fi
15166
15167LD=$lt_cv_path_LD
15168if test -n "$LD"; then
15169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15170$as_echo "$LD" >&6; }
15171else
15172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15173$as_echo "no" >&6; }
15174fi
15175test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15177$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15178if ${lt_cv_prog_gnu_ld+:} false; then :
15179  $as_echo_n "(cached) " >&6
15180else
15181  # I'd rather use --version here, but apparently some GNU lds only accept -v.
15182case `$LD -v 2>&1 </dev/null` in
15183*GNU* | *'with BFD'*)
15184  lt_cv_prog_gnu_ld=yes
15185  ;;
15186*)
15187  lt_cv_prog_gnu_ld=no
15188  ;;
15189esac
15190fi
15191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15192$as_echo "$lt_cv_prog_gnu_ld" >&6; }
15193with_gnu_ld=$lt_cv_prog_gnu_ld
15194
15195
15196
15197
15198
15199
15200
15201      # Check if GNU C++ uses GNU ld as the underlying linker, since the
15202      # archiving commands below assume that GNU ld is being used.
15203      if test yes = "$with_gnu_ld"; then
15204        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15205        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'
15206
15207        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15208        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15209
15210        # If archive_cmds runs LD, not CC, wlarc should be empty
15211        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15212        #     investigate it a little bit more. (MM)
15213        wlarc='$wl'
15214
15215        # ancient GNU ld didn't support --whole-archive et. al.
15216        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15217	  $GREP 'no-whole-archive' > /dev/null; then
15218          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15219        else
15220          whole_archive_flag_spec_CXX=
15221        fi
15222      else
15223        with_gnu_ld=no
15224        wlarc=
15225
15226        # A generic and very simple default shared library creation
15227        # command for GNU C++ for the case where it uses the native
15228        # linker, instead of GNU ld.  If possible, this setting should
15229        # overridden to take advantage of the native linker features on
15230        # the platform it is being used on.
15231        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15232      fi
15233
15234      # Commands to make compiler produce verbose output that lists
15235      # what "hidden" libraries, object files and flags are used when
15236      # linking a shared library.
15237      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15238
15239    else
15240      GXX=no
15241      with_gnu_ld=no
15242      wlarc=
15243    fi
15244
15245    # PORTME: fill in a description of your system's C++ link characteristics
15246    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15247$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15248    ld_shlibs_CXX=yes
15249    case $host_os in
15250      aix3*)
15251        # FIXME: insert proper C++ library support
15252        ld_shlibs_CXX=no
15253        ;;
15254      aix[4-9]*)
15255        if test ia64 = "$host_cpu"; then
15256          # On IA64, the linker does run time linking by default, so we don't
15257          # have to do anything special.
15258          aix_use_runtimelinking=no
15259          exp_sym_flag='-Bexport'
15260          no_entry_flag=
15261        else
15262          aix_use_runtimelinking=no
15263
15264          # Test if we are trying to use run time linking or normal
15265          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15266          # have runtime linking enabled, and use it for executables.
15267          # For shared libraries, we enable/disable runtime linking
15268          # depending on the kind of the shared library created -
15269          # when "with_aix_soname,aix_use_runtimelinking" is:
15270          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
15271          # "aix,yes"  lib.so          shared, rtl:yes, for executables
15272          #            lib.a           static archive
15273          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
15274          #            lib.a(lib.so.V) shared, rtl:no,  for executables
15275          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15276          #            lib.a(lib.so.V) shared, rtl:no
15277          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
15278          #            lib.a           static archive
15279          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15280	    for ld_flag in $LDFLAGS; do
15281	      case $ld_flag in
15282	      *-brtl*)
15283	        aix_use_runtimelinking=yes
15284	        break
15285	        ;;
15286	      esac
15287	    done
15288	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15289	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
15290	      # so we don't have lib.a shared libs to link our executables.
15291	      # We have to force runtime linking in this case.
15292	      aix_use_runtimelinking=yes
15293	      LDFLAGS="$LDFLAGS -Wl,-brtl"
15294	    fi
15295	    ;;
15296          esac
15297
15298          exp_sym_flag='-bexport'
15299          no_entry_flag='-bnoentry'
15300        fi
15301
15302        # When large executables or shared objects are built, AIX ld can
15303        # have problems creating the table of contents.  If linking a library
15304        # or program results in "error TOC overflow" add -mminimal-toc to
15305        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15306        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15307
15308        archive_cmds_CXX=''
15309        hardcode_direct_CXX=yes
15310        hardcode_direct_absolute_CXX=yes
15311        hardcode_libdir_separator_CXX=':'
15312        link_all_deplibs_CXX=yes
15313        file_list_spec_CXX='$wl-f,'
15314        case $with_aix_soname,$aix_use_runtimelinking in
15315        aix,*) ;;	# no import file
15316        svr4,* | *,yes) # use import file
15317          # The Import File defines what to hardcode.
15318          hardcode_direct_CXX=no
15319          hardcode_direct_absolute_CXX=no
15320          ;;
15321        esac
15322
15323        if test yes = "$GXX"; then
15324          case $host_os in aix4.[012]|aix4.[012].*)
15325          # We only want to do this on AIX 4.2 and lower, the check
15326          # below for broken collect2 doesn't work under 4.3+
15327	  collect2name=`$CC -print-prog-name=collect2`
15328	  if test -f "$collect2name" &&
15329	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15330	  then
15331	    # We have reworked collect2
15332	    :
15333	  else
15334	    # We have old collect2
15335	    hardcode_direct_CXX=unsupported
15336	    # It fails to find uninstalled libraries when the uninstalled
15337	    # path is not listed in the libpath.  Setting hardcode_minus_L
15338	    # to unsupported forces relinking
15339	    hardcode_minus_L_CXX=yes
15340	    hardcode_libdir_flag_spec_CXX='-L$libdir'
15341	    hardcode_libdir_separator_CXX=
15342	  fi
15343          esac
15344          shared_flag='-shared'
15345	  if test yes = "$aix_use_runtimelinking"; then
15346	    shared_flag=$shared_flag' $wl-G'
15347	  fi
15348	  # Need to ensure runtime linking is disabled for the traditional
15349	  # shared library, or the linker may eventually find shared libraries
15350	  # /with/ Import File - we do not want to mix them.
15351	  shared_flag_aix='-shared'
15352	  shared_flag_svr4='-shared $wl-G'
15353        else
15354          # not using gcc
15355          if test ia64 = "$host_cpu"; then
15356	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15357	  # chokes on -Wl,-G. The following line is correct:
15358	  shared_flag='-G'
15359          else
15360	    if test yes = "$aix_use_runtimelinking"; then
15361	      shared_flag='$wl-G'
15362	    else
15363	      shared_flag='$wl-bM:SRE'
15364	    fi
15365	    shared_flag_aix='$wl-bM:SRE'
15366	    shared_flag_svr4='$wl-G'
15367          fi
15368        fi
15369
15370        export_dynamic_flag_spec_CXX='$wl-bexpall'
15371        # It seems that -bexpall does not export symbols beginning with
15372        # underscore (_), so it is better to generate a list of symbols to
15373	# export.
15374        always_export_symbols_CXX=yes
15375	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15376          # Warning - without using the other runtime loading flags (-brtl),
15377          # -berok will link without error, but may produce a broken library.
15378          # The "-G" linker flag allows undefined symbols.
15379          no_undefined_flag_CXX='-bernotok'
15380          # Determine the default libpath from the value encoded in an empty
15381          # executable.
15382          if test set = "${lt_cv_aix_libpath+set}"; then
15383  aix_libpath=$lt_cv_aix_libpath
15384else
15385  if ${lt_cv_aix_libpath__CXX+:} false; then :
15386  $as_echo_n "(cached) " >&6
15387else
15388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15389/* end confdefs.h.  */
15390
15391int
15392main ()
15393{
15394
15395  ;
15396  return 0;
15397}
15398_ACEOF
15399if ac_fn_cxx_try_link "$LINENO"; then :
15400
15401  lt_aix_libpath_sed='
15402      /Import File Strings/,/^$/ {
15403	  /^0/ {
15404	      s/^0  *\([^ ]*\) *$/\1/
15405	      p
15406	  }
15407      }'
15408  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15409  # Check for a 64-bit object if we didn't find anything.
15410  if test -z "$lt_cv_aix_libpath__CXX"; then
15411    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15412  fi
15413fi
15414rm -f core conftest.err conftest.$ac_objext \
15415    conftest$ac_exeext conftest.$ac_ext
15416  if test -z "$lt_cv_aix_libpath__CXX"; then
15417    lt_cv_aix_libpath__CXX=/usr/lib:/lib
15418  fi
15419
15420fi
15421
15422  aix_libpath=$lt_cv_aix_libpath__CXX
15423fi
15424
15425          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15426
15427          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
15428        else
15429          if test ia64 = "$host_cpu"; then
15430	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15431	    allow_undefined_flag_CXX="-z nodefs"
15432	    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"
15433          else
15434	    # Determine the default libpath from the value encoded in an
15435	    # empty executable.
15436	    if test set = "${lt_cv_aix_libpath+set}"; then
15437  aix_libpath=$lt_cv_aix_libpath
15438else
15439  if ${lt_cv_aix_libpath__CXX+:} false; then :
15440  $as_echo_n "(cached) " >&6
15441else
15442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15443/* end confdefs.h.  */
15444
15445int
15446main ()
15447{
15448
15449  ;
15450  return 0;
15451}
15452_ACEOF
15453if ac_fn_cxx_try_link "$LINENO"; then :
15454
15455  lt_aix_libpath_sed='
15456      /Import File Strings/,/^$/ {
15457	  /^0/ {
15458	      s/^0  *\([^ ]*\) *$/\1/
15459	      p
15460	  }
15461      }'
15462  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15463  # Check for a 64-bit object if we didn't find anything.
15464  if test -z "$lt_cv_aix_libpath__CXX"; then
15465    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15466  fi
15467fi
15468rm -f core conftest.err conftest.$ac_objext \
15469    conftest$ac_exeext conftest.$ac_ext
15470  if test -z "$lt_cv_aix_libpath__CXX"; then
15471    lt_cv_aix_libpath__CXX=/usr/lib:/lib
15472  fi
15473
15474fi
15475
15476  aix_libpath=$lt_cv_aix_libpath__CXX
15477fi
15478
15479	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15480	    # Warning - without using the other run time loading flags,
15481	    # -berok will link without error, but may produce a broken library.
15482	    no_undefined_flag_CXX=' $wl-bernotok'
15483	    allow_undefined_flag_CXX=' $wl-berok'
15484	    if test yes = "$with_gnu_ld"; then
15485	      # We only use this code for GNU lds that support --whole-archive.
15486	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15487	    else
15488	      # Exported symbols can be pulled into shared objects from archives
15489	      whole_archive_flag_spec_CXX='$convenience'
15490	    fi
15491	    archive_cmds_need_lc_CXX=yes
15492	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15493	    # -brtl affects multiple linker settings, -berok does not and is overridden later
15494	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15495	    if test svr4 != "$with_aix_soname"; then
15496	      # This is similar to how AIX traditionally builds its shared
15497	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15498	      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'
15499	    fi
15500	    if test aix != "$with_aix_soname"; then
15501	      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'
15502	    else
15503	      # used by -dlpreopen to get the symbols
15504	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
15505	    fi
15506	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15507          fi
15508        fi
15509        ;;
15510
15511      beos*)
15512	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15513	  allow_undefined_flag_CXX=unsupported
15514	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15515	  # support --undefined.  This deserves some investigation.  FIXME
15516	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15517	else
15518	  ld_shlibs_CXX=no
15519	fi
15520	;;
15521
15522      chorus*)
15523        case $cc_basename in
15524          *)
15525	  # FIXME: insert proper C++ library support
15526	  ld_shlibs_CXX=no
15527	  ;;
15528        esac
15529        ;;
15530
15531      cygwin* | mingw* | pw32* | cegcc*)
15532	case $GXX,$cc_basename in
15533	,cl* | no,cl*)
15534	  # Native MSVC
15535	  # hardcode_libdir_flag_spec is actually meaningless, as there is
15536	  # no search path for DLLs.
15537	  hardcode_libdir_flag_spec_CXX=' '
15538	  allow_undefined_flag_CXX=unsupported
15539	  always_export_symbols_CXX=yes
15540	  file_list_spec_CXX='@'
15541	  # Tell ltmain to make .lib files, not .a files.
15542	  libext=lib
15543	  # Tell ltmain to make .dll files, not .so files.
15544	  shrext_cmds=.dll
15545	  # FIXME: Setting linknames here is a bad hack.
15546	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15547	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15548              cp "$export_symbols" "$output_objdir/$soname.def";
15549              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15550            else
15551              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15552            fi~
15553            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15554            linknames='
15555	  # The linker will not automatically build a static lib if we build a DLL.
15556	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15557	  enable_shared_with_static_runtimes_CXX=yes
15558	  # Don't use ranlib
15559	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
15560	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15561            lt_tool_outputfile="@TOOL_OUTPUT@"~
15562            case $lt_outputfile in
15563              *.exe|*.EXE) ;;
15564              *)
15565                lt_outputfile=$lt_outputfile.exe
15566                lt_tool_outputfile=$lt_tool_outputfile.exe
15567                ;;
15568            esac~
15569            func_to_tool_file "$lt_outputfile"~
15570            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15571              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15572              $RM "$lt_outputfile.manifest";
15573            fi'
15574	  ;;
15575	*)
15576	  # g++
15577	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15578	  # as there is no search path for DLLs.
15579	  hardcode_libdir_flag_spec_CXX='-L$libdir'
15580	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15581	  allow_undefined_flag_CXX=unsupported
15582	  always_export_symbols_CXX=no
15583	  enable_shared_with_static_runtimes_CXX=yes
15584
15585	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15586	    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'
15587	    # If the export-symbols file already is a .def file, use it as
15588	    # is; otherwise, prepend EXPORTS...
15589	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15590              cp $export_symbols $output_objdir/$soname.def;
15591            else
15592              echo EXPORTS > $output_objdir/$soname.def;
15593              cat $export_symbols >> $output_objdir/$soname.def;
15594            fi~
15595            $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'
15596	  else
15597	    ld_shlibs_CXX=no
15598	  fi
15599	  ;;
15600	esac
15601	;;
15602      darwin* | rhapsody*)
15603
15604
15605  archive_cmds_need_lc_CXX=no
15606  hardcode_direct_CXX=no
15607  hardcode_automatic_CXX=yes
15608  hardcode_shlibpath_var_CXX=unsupported
15609  if test yes = "$lt_cv_ld_force_load"; then
15610    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\"`'
15611
15612  else
15613    whole_archive_flag_spec_CXX=''
15614  fi
15615  link_all_deplibs_CXX=yes
15616  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15617  case $cc_basename in
15618     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15619     *) _lt_dar_can_shared=$GCC ;;
15620  esac
15621  if test yes = "$_lt_dar_can_shared"; then
15622    output_verbose_link_cmd=func_echo_all
15623    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"
15624    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15625    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"
15626    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"
15627       if test yes != "$lt_cv_apple_cc_single_mod"; then
15628      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"
15629      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"
15630    fi
15631
15632  else
15633  ld_shlibs_CXX=no
15634  fi
15635
15636	;;
15637
15638      os2*)
15639	hardcode_libdir_flag_spec_CXX='-L$libdir'
15640	hardcode_minus_L_CXX=yes
15641	allow_undefined_flag_CXX=unsupported
15642	shrext_cmds=.dll
15643	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15644	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15645	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15646	  $ECHO EXPORTS >> $output_objdir/$libname.def~
15647	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15648	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15649	  emximp -o $lib $output_objdir/$libname.def'
15650	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15651	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15652	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15653	  $ECHO EXPORTS >> $output_objdir/$libname.def~
15654	  prefix_cmds="$SED"~
15655	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
15656	    prefix_cmds="$prefix_cmds -e 1d";
15657	  fi~
15658	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15659	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15660	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15661	  emximp -o $lib $output_objdir/$libname.def'
15662	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15663	enable_shared_with_static_runtimes_CXX=yes
15664	;;
15665
15666      dgux*)
15667        case $cc_basename in
15668          ec++*)
15669	    # FIXME: insert proper C++ library support
15670	    ld_shlibs_CXX=no
15671	    ;;
15672          ghcx*)
15673	    # Green Hills C++ Compiler
15674	    # FIXME: insert proper C++ library support
15675	    ld_shlibs_CXX=no
15676	    ;;
15677          *)
15678	    # FIXME: insert proper C++ library support
15679	    ld_shlibs_CXX=no
15680	    ;;
15681        esac
15682        ;;
15683
15684      freebsd2.*)
15685        # C++ shared libraries reported to be fairly broken before
15686	# switch to ELF
15687        ld_shlibs_CXX=no
15688        ;;
15689
15690      freebsd-elf*)
15691        archive_cmds_need_lc_CXX=no
15692        ;;
15693
15694      freebsd* | dragonfly*)
15695        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15696        # conventions
15697        ld_shlibs_CXX=yes
15698        ;;
15699
15700      haiku*)
15701        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15702        link_all_deplibs_CXX=yes
15703        ;;
15704
15705      hpux9*)
15706        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15707        hardcode_libdir_separator_CXX=:
15708        export_dynamic_flag_spec_CXX='$wl-E'
15709        hardcode_direct_CXX=yes
15710        hardcode_minus_L_CXX=yes # Not in the search PATH,
15711				             # but as the default
15712				             # location of the library.
15713
15714        case $cc_basename in
15715          CC*)
15716            # FIXME: insert proper C++ library support
15717            ld_shlibs_CXX=no
15718            ;;
15719          aCC*)
15720            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'
15721            # Commands to make compiler produce verbose output that lists
15722            # what "hidden" libraries, object files and flags are used when
15723            # linking a shared library.
15724            #
15725            # There doesn't appear to be a way to prevent this compiler from
15726            # explicitly linking system object files so we need to strip them
15727            # from the output so that they don't get included in the library
15728            # dependencies.
15729            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"'
15730            ;;
15731          *)
15732            if test yes = "$GXX"; then
15733              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'
15734            else
15735              # FIXME: insert proper C++ library support
15736              ld_shlibs_CXX=no
15737            fi
15738            ;;
15739        esac
15740        ;;
15741
15742      hpux10*|hpux11*)
15743        if test no = "$with_gnu_ld"; then
15744	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15745	  hardcode_libdir_separator_CXX=:
15746
15747          case $host_cpu in
15748            hppa*64*|ia64*)
15749              ;;
15750            *)
15751	      export_dynamic_flag_spec_CXX='$wl-E'
15752              ;;
15753          esac
15754        fi
15755        case $host_cpu in
15756          hppa*64*|ia64*)
15757            hardcode_direct_CXX=no
15758            hardcode_shlibpath_var_CXX=no
15759            ;;
15760          *)
15761            hardcode_direct_CXX=yes
15762            hardcode_direct_absolute_CXX=yes
15763            hardcode_minus_L_CXX=yes # Not in the search PATH,
15764					         # but as the default
15765					         # location of the library.
15766            ;;
15767        esac
15768
15769        case $cc_basename in
15770          CC*)
15771	    # FIXME: insert proper C++ library support
15772	    ld_shlibs_CXX=no
15773	    ;;
15774          aCC*)
15775	    case $host_cpu in
15776	      hppa*64*)
15777	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15778	        ;;
15779	      ia64*)
15780	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15781	        ;;
15782	      *)
15783	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15784	        ;;
15785	    esac
15786	    # Commands to make compiler produce verbose output that lists
15787	    # what "hidden" libraries, object files and flags are used when
15788	    # linking a shared library.
15789	    #
15790	    # There doesn't appear to be a way to prevent this compiler from
15791	    # explicitly linking system object files so we need to strip them
15792	    # from the output so that they don't get included in the library
15793	    # dependencies.
15794	    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"'
15795	    ;;
15796          *)
15797	    if test yes = "$GXX"; then
15798	      if test no = "$with_gnu_ld"; then
15799	        case $host_cpu in
15800	          hppa*64*)
15801	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15802	            ;;
15803	          ia64*)
15804	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15805	            ;;
15806	          *)
15807	            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'
15808	            ;;
15809	        esac
15810	      fi
15811	    else
15812	      # FIXME: insert proper C++ library support
15813	      ld_shlibs_CXX=no
15814	    fi
15815	    ;;
15816        esac
15817        ;;
15818
15819      interix[3-9]*)
15820	hardcode_direct_CXX=no
15821	hardcode_shlibpath_var_CXX=no
15822	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15823	export_dynamic_flag_spec_CXX='$wl-E'
15824	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15825	# Instead, shared libraries are loaded at an image base (0x10000000 by
15826	# default) and relocated if they conflict, which is a slow very memory
15827	# consuming and fragmenting process.  To avoid this, we pick a random,
15828	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15829	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15830	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'
15831	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'
15832	;;
15833      irix5* | irix6*)
15834        case $cc_basename in
15835          CC*)
15836	    # SGI C++
15837	    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'
15838
15839	    # Archives containing C++ object files must be created using
15840	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15841	    # necessary to make sure instantiated templates are included
15842	    # in the archive.
15843	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15844	    ;;
15845          *)
15846	    if test yes = "$GXX"; then
15847	      if test no = "$with_gnu_ld"; then
15848	        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'
15849	      else
15850	        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'
15851	      fi
15852	    fi
15853	    link_all_deplibs_CXX=yes
15854	    ;;
15855        esac
15856        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15857        hardcode_libdir_separator_CXX=:
15858        inherit_rpath_CXX=yes
15859        ;;
15860
15861      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15862        case $cc_basename in
15863          KCC*)
15864	    # Kuck and Associates, Inc. (KAI) C++ Compiler
15865
15866	    # KCC will only create a shared library if the output file
15867	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
15868	    # to its proper name (with version) after linking.
15869	    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'
15870	    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'
15871	    # Commands to make compiler produce verbose output that lists
15872	    # what "hidden" libraries, object files and flags are used when
15873	    # linking a shared library.
15874	    #
15875	    # There doesn't appear to be a way to prevent this compiler from
15876	    # explicitly linking system object files so we need to strip them
15877	    # from the output so that they don't get included in the library
15878	    # dependencies.
15879	    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"'
15880
15881	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15882	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15883
15884	    # Archives containing C++ object files must be created using
15885	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15886	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15887	    ;;
15888	  icpc* | ecpc* )
15889	    # Intel C++
15890	    with_gnu_ld=yes
15891	    # version 8.0 and above of icpc choke on multiply defined symbols
15892	    # if we add $predep_objects and $postdep_objects, however 7.1 and
15893	    # earlier do not add the objects themselves.
15894	    case `$CC -V 2>&1` in
15895	      *"Version 7."*)
15896	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15897		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'
15898		;;
15899	      *)  # Version 8.0 or newer
15900	        tmp_idyn=
15901	        case $host_cpu in
15902		  ia64*) tmp_idyn=' -i_dynamic';;
15903		esac
15904	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15905		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'
15906		;;
15907	    esac
15908	    archive_cmds_need_lc_CXX=no
15909	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15910	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15911	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15912	    ;;
15913          pgCC* | pgcpp*)
15914            # Portland Group C++ compiler
15915	    case `$CC -V` in
15916	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15917	      prelink_cmds_CXX='tpldir=Template.dir~
15918               rm -rf $tpldir~
15919               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15920               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15921	      old_archive_cmds_CXX='tpldir=Template.dir~
15922                rm -rf $tpldir~
15923                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15924                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15925                $RANLIB $oldlib'
15926	      archive_cmds_CXX='tpldir=Template.dir~
15927                rm -rf $tpldir~
15928                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15929                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15930	      archive_expsym_cmds_CXX='tpldir=Template.dir~
15931                rm -rf $tpldir~
15932                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15933                $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'
15934	      ;;
15935	    *) # Version 6 and above use weak symbols
15936	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15937	      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'
15938	      ;;
15939	    esac
15940
15941	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15942	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15943	    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'
15944            ;;
15945	  cxx*)
15946	    # Compaq C++
15947	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15948	    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'
15949
15950	    runpath_var=LD_RUN_PATH
15951	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15952	    hardcode_libdir_separator_CXX=:
15953
15954	    # Commands to make compiler produce verbose output that lists
15955	    # what "hidden" libraries, object files and flags are used when
15956	    # linking a shared library.
15957	    #
15958	    # There doesn't appear to be a way to prevent this compiler from
15959	    # explicitly linking system object files so we need to strip them
15960	    # from the output so that they don't get included in the library
15961	    # dependencies.
15962	    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'
15963	    ;;
15964	  xl* | mpixl* | bgxl*)
15965	    # IBM XL 8.0 on PPC, with GNU ld
15966	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15967	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15968	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15969	    if test yes = "$supports_anon_versioning"; then
15970	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15971                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15972                echo "local: *; };" >> $output_objdir/$libname.ver~
15973                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15974	    fi
15975	    ;;
15976	  *)
15977	    case `$CC -V 2>&1 | sed 5q` in
15978	    *Sun\ C*)
15979	      # Sun C++ 5.9
15980	      no_undefined_flag_CXX=' -zdefs'
15981	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15982	      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'
15983	      hardcode_libdir_flag_spec_CXX='-R$libdir'
15984	      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'
15985	      compiler_needs_object_CXX=yes
15986
15987	      # Not sure whether something based on
15988	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15989	      # would be better.
15990	      output_verbose_link_cmd='func_echo_all'
15991
15992	      # Archives containing C++ object files must be created using
15993	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15994	      # necessary to make sure instantiated templates are included
15995	      # in the archive.
15996	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15997	      ;;
15998	    esac
15999	    ;;
16000	esac
16001	;;
16002
16003      lynxos*)
16004        # FIXME: insert proper C++ library support
16005	ld_shlibs_CXX=no
16006	;;
16007
16008      m88k*)
16009        # FIXME: insert proper C++ library support
16010        ld_shlibs_CXX=no
16011	;;
16012
16013      mvs*)
16014        case $cc_basename in
16015          cxx*)
16016	    # FIXME: insert proper C++ library support
16017	    ld_shlibs_CXX=no
16018	    ;;
16019	  *)
16020	    # FIXME: insert proper C++ library support
16021	    ld_shlibs_CXX=no
16022	    ;;
16023	esac
16024	;;
16025
16026      netbsd*)
16027        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16028	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16029	  wlarc=
16030	  hardcode_libdir_flag_spec_CXX='-R$libdir'
16031	  hardcode_direct_CXX=yes
16032	  hardcode_shlibpath_var_CXX=no
16033	fi
16034	# Workaround some broken pre-1.5 toolchains
16035	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16036	;;
16037
16038      *nto* | *qnx*)
16039        ld_shlibs_CXX=yes
16040	;;
16041
16042      openbsd* | bitrig*)
16043	if test -f /usr/libexec/ld.so; then
16044	  hardcode_direct_CXX=yes
16045	  hardcode_shlibpath_var_CXX=no
16046	  hardcode_direct_absolute_CXX=yes
16047	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16048	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16049	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
16050	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
16051	    export_dynamic_flag_spec_CXX='$wl-E'
16052	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16053	  fi
16054	  output_verbose_link_cmd=func_echo_all
16055	else
16056	  ld_shlibs_CXX=no
16057	fi
16058	;;
16059
16060      osf3* | osf4* | osf5*)
16061        case $cc_basename in
16062          KCC*)
16063	    # Kuck and Associates, Inc. (KAI) C++ Compiler
16064
16065	    # KCC will only create a shared library if the output file
16066	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
16067	    # to its proper name (with version) after linking.
16068	    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'
16069
16070	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16071	    hardcode_libdir_separator_CXX=:
16072
16073	    # Archives containing C++ object files must be created using
16074	    # the KAI C++ compiler.
16075	    case $host in
16076	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16077	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16078	    esac
16079	    ;;
16080          RCC*)
16081	    # Rational C++ 2.4.1
16082	    # FIXME: insert proper C++ library support
16083	    ld_shlibs_CXX=no
16084	    ;;
16085          cxx*)
16086	    case $host in
16087	      osf3*)
16088	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16089	        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'
16090	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16091		;;
16092	      *)
16093	        allow_undefined_flag_CXX=' -expect_unresolved \*'
16094	        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'
16095	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16096                  echo "-hidden">> $lib.exp~
16097                  $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~
16098                  $RM $lib.exp'
16099	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16100		;;
16101	    esac
16102
16103	    hardcode_libdir_separator_CXX=:
16104
16105	    # Commands to make compiler produce verbose output that lists
16106	    # what "hidden" libraries, object files and flags are used when
16107	    # linking a shared library.
16108	    #
16109	    # There doesn't appear to be a way to prevent this compiler from
16110	    # explicitly linking system object files so we need to strip them
16111	    # from the output so that they don't get included in the library
16112	    # dependencies.
16113	    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"'
16114	    ;;
16115	  *)
16116	    if test yes,no = "$GXX,$with_gnu_ld"; then
16117	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16118	      case $host in
16119	        osf3*)
16120	          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'
16121		  ;;
16122	        *)
16123	          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'
16124		  ;;
16125	      esac
16126
16127	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16128	      hardcode_libdir_separator_CXX=:
16129
16130	      # Commands to make compiler produce verbose output that lists
16131	      # what "hidden" libraries, object files and flags are used when
16132	      # linking a shared library.
16133	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16134
16135	    else
16136	      # FIXME: insert proper C++ library support
16137	      ld_shlibs_CXX=no
16138	    fi
16139	    ;;
16140        esac
16141        ;;
16142
16143      psos*)
16144        # FIXME: insert proper C++ library support
16145        ld_shlibs_CXX=no
16146        ;;
16147
16148      sunos4*)
16149        case $cc_basename in
16150          CC*)
16151	    # Sun C++ 4.x
16152	    # FIXME: insert proper C++ library support
16153	    ld_shlibs_CXX=no
16154	    ;;
16155          lcc*)
16156	    # Lucid
16157	    # FIXME: insert proper C++ library support
16158	    ld_shlibs_CXX=no
16159	    ;;
16160          *)
16161	    # FIXME: insert proper C++ library support
16162	    ld_shlibs_CXX=no
16163	    ;;
16164        esac
16165        ;;
16166
16167      solaris*)
16168        case $cc_basename in
16169          CC* | sunCC*)
16170	    # Sun C++ 4.2, 5.x and Centerline C++
16171            archive_cmds_need_lc_CXX=yes
16172	    no_undefined_flag_CXX=' -zdefs'
16173	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16174	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16175              $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'
16176
16177	    hardcode_libdir_flag_spec_CXX='-R$libdir'
16178	    hardcode_shlibpath_var_CXX=no
16179	    case $host_os in
16180	      solaris2.[0-5] | solaris2.[0-5].*) ;;
16181	      *)
16182		# The compiler driver will combine and reorder linker options,
16183		# but understands '-z linker_flag'.
16184	        # Supported since Solaris 2.6 (maybe 2.5.1?)
16185		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16186	        ;;
16187	    esac
16188	    link_all_deplibs_CXX=yes
16189
16190	    output_verbose_link_cmd='func_echo_all'
16191
16192	    # Archives containing C++ object files must be created using
16193	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16194	    # necessary to make sure instantiated templates are included
16195	    # in the archive.
16196	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16197	    ;;
16198          gcx*)
16199	    # Green Hills C++ Compiler
16200	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16201
16202	    # The C++ compiler must be used to create the archive.
16203	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16204	    ;;
16205          *)
16206	    # GNU C++ compiler with Solaris linker
16207	    if test yes,no = "$GXX,$with_gnu_ld"; then
16208	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
16209	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16210	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16211	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16212                  $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'
16213
16214	        # Commands to make compiler produce verbose output that lists
16215	        # what "hidden" libraries, object files and flags are used when
16216	        # linking a shared library.
16217	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16218	      else
16219	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
16220	        # platform.
16221	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16222	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16223                  $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'
16224
16225	        # Commands to make compiler produce verbose output that lists
16226	        # what "hidden" libraries, object files and flags are used when
16227	        # linking a shared library.
16228	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16229	      fi
16230
16231	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16232	      case $host_os in
16233		solaris2.[0-5] | solaris2.[0-5].*) ;;
16234		*)
16235		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16236		  ;;
16237	      esac
16238	    fi
16239	    ;;
16240        esac
16241        ;;
16242
16243    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16244      no_undefined_flag_CXX='$wl-z,text'
16245      archive_cmds_need_lc_CXX=no
16246      hardcode_shlibpath_var_CXX=no
16247      runpath_var='LD_RUN_PATH'
16248
16249      case $cc_basename in
16250        CC*)
16251	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16252	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16253	  ;;
16254	*)
16255	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16256	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16257	  ;;
16258      esac
16259      ;;
16260
16261      sysv5* | sco3.2v5* | sco5v6*)
16262	# Note: We CANNOT use -z defs as we might desire, because we do not
16263	# link with -lc, and that would cause any symbols used from libc to
16264	# always be unresolved, which means just about no library would
16265	# ever link correctly.  If we're not using GNU ld we use -z text
16266	# though, which does catch some bad symbols but isn't as heavy-handed
16267	# as -z defs.
16268	no_undefined_flag_CXX='$wl-z,text'
16269	allow_undefined_flag_CXX='$wl-z,nodefs'
16270	archive_cmds_need_lc_CXX=no
16271	hardcode_shlibpath_var_CXX=no
16272	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16273	hardcode_libdir_separator_CXX=':'
16274	link_all_deplibs_CXX=yes
16275	export_dynamic_flag_spec_CXX='$wl-Bexport'
16276	runpath_var='LD_RUN_PATH'
16277
16278	case $cc_basename in
16279          CC*)
16280	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16281	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16282	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16283              '"$old_archive_cmds_CXX"
16284	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16285              '"$reload_cmds_CXX"
16286	    ;;
16287	  *)
16288	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16289	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16290	    ;;
16291	esac
16292      ;;
16293
16294      tandem*)
16295        case $cc_basename in
16296          NCC*)
16297	    # NonStop-UX NCC 3.20
16298	    # FIXME: insert proper C++ library support
16299	    ld_shlibs_CXX=no
16300	    ;;
16301          *)
16302	    # FIXME: insert proper C++ library support
16303	    ld_shlibs_CXX=no
16304	    ;;
16305        esac
16306        ;;
16307
16308      vxworks*)
16309        # FIXME: insert proper C++ library support
16310        ld_shlibs_CXX=no
16311        ;;
16312
16313      *)
16314        # FIXME: insert proper C++ library support
16315        ld_shlibs_CXX=no
16316        ;;
16317    esac
16318
16319    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16320$as_echo "$ld_shlibs_CXX" >&6; }
16321    test no = "$ld_shlibs_CXX" && can_build_shared=no
16322
16323    GCC_CXX=$GXX
16324    LD_CXX=$LD
16325
16326    ## CAVEAT EMPTOR:
16327    ## There is no encapsulation within the following macros, do not change
16328    ## the running order or otherwise move them around unless you know exactly
16329    ## what you are doing...
16330    # Dependencies to place before and after the object being linked:
16331predep_objects_CXX=
16332postdep_objects_CXX=
16333predeps_CXX=
16334postdeps_CXX=
16335compiler_lib_search_path_CXX=
16336
16337cat > conftest.$ac_ext <<_LT_EOF
16338class Foo
16339{
16340public:
16341  Foo (void) { a = 0; }
16342private:
16343  int a;
16344};
16345_LT_EOF
16346
16347
16348_lt_libdeps_save_CFLAGS=$CFLAGS
16349case "$CC $CFLAGS " in #(
16350*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16351*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16352*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16353esac
16354
16355if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16356  (eval $ac_compile) 2>&5
16357  ac_status=$?
16358  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16359  test $ac_status = 0; }; then
16360  # Parse the compiler output and extract the necessary
16361  # objects, libraries and library flags.
16362
16363  # Sentinel used to keep track of whether or not we are before
16364  # the conftest object file.
16365  pre_test_object_deps_done=no
16366
16367  for p in `eval "$output_verbose_link_cmd"`; do
16368    case $prev$p in
16369
16370    -L* | -R* | -l*)
16371       # Some compilers place space between "-{L,R}" and the path.
16372       # Remove the space.
16373       if test x-L = "$p" ||
16374          test x-R = "$p"; then
16375	 prev=$p
16376	 continue
16377       fi
16378
16379       # Expand the sysroot to ease extracting the directories later.
16380       if test -z "$prev"; then
16381         case $p in
16382         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16383         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16384         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16385         esac
16386       fi
16387       case $p in
16388       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16389       esac
16390       if test no = "$pre_test_object_deps_done"; then
16391	 case $prev in
16392	 -L | -R)
16393	   # Internal compiler library paths should come after those
16394	   # provided the user.  The postdeps already come after the
16395	   # user supplied libs so there is no need to process them.
16396	   if test -z "$compiler_lib_search_path_CXX"; then
16397	     compiler_lib_search_path_CXX=$prev$p
16398	   else
16399	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16400	   fi
16401	   ;;
16402	 # The "-l" case would never come before the object being
16403	 # linked, so don't bother handling this case.
16404	 esac
16405       else
16406	 if test -z "$postdeps_CXX"; then
16407	   postdeps_CXX=$prev$p
16408	 else
16409	   postdeps_CXX="${postdeps_CXX} $prev$p"
16410	 fi
16411       fi
16412       prev=
16413       ;;
16414
16415    *.lto.$objext) ;; # Ignore GCC LTO objects
16416    *.$objext)
16417       # This assumes that the test object file only shows up
16418       # once in the compiler output.
16419       if test "$p" = "conftest.$objext"; then
16420	 pre_test_object_deps_done=yes
16421	 continue
16422       fi
16423
16424       if test no = "$pre_test_object_deps_done"; then
16425	 if test -z "$predep_objects_CXX"; then
16426	   predep_objects_CXX=$p
16427	 else
16428	   predep_objects_CXX="$predep_objects_CXX $p"
16429	 fi
16430       else
16431	 if test -z "$postdep_objects_CXX"; then
16432	   postdep_objects_CXX=$p
16433	 else
16434	   postdep_objects_CXX="$postdep_objects_CXX $p"
16435	 fi
16436       fi
16437       ;;
16438
16439    *) ;; # Ignore the rest.
16440
16441    esac
16442  done
16443
16444  # Clean up.
16445  rm -f a.out a.exe
16446else
16447  echo "libtool.m4: error: problem compiling CXX test program"
16448fi
16449
16450$RM -f confest.$objext
16451CFLAGS=$_lt_libdeps_save_CFLAGS
16452
16453# PORTME: override above test on systems where it is broken
16454case $host_os in
16455interix[3-9]*)
16456  # Interix 3.5 installs completely hosed .la files for C++, so rather than
16457  # hack all around it, let's just trust "g++" to DTRT.
16458  predep_objects_CXX=
16459  postdep_objects_CXX=
16460  postdeps_CXX=
16461  ;;
16462esac
16463
16464
16465case " $postdeps_CXX " in
16466*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16467esac
16468 compiler_lib_search_dirs_CXX=
16469if test -n "${compiler_lib_search_path_CXX}"; then
16470 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16471fi
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    lt_prog_compiler_wl_CXX=
16504lt_prog_compiler_pic_CXX=
16505lt_prog_compiler_static_CXX=
16506
16507
16508  # C++ specific cases for pic, static, wl, etc.
16509  if test yes = "$GXX"; then
16510    lt_prog_compiler_wl_CXX='-Wl,'
16511    lt_prog_compiler_static_CXX='-static'
16512
16513    case $host_os in
16514    aix*)
16515      # All AIX code is PIC.
16516      if test ia64 = "$host_cpu"; then
16517	# AIX 5 now supports IA64 processor
16518	lt_prog_compiler_static_CXX='-Bstatic'
16519      fi
16520      lt_prog_compiler_pic_CXX='-fPIC'
16521      ;;
16522
16523    amigaos*)
16524      case $host_cpu in
16525      powerpc)
16526            # see comment about AmigaOS4 .so support
16527            lt_prog_compiler_pic_CXX='-fPIC'
16528        ;;
16529      m68k)
16530            # FIXME: we need at least 68020 code to build shared libraries, but
16531            # adding the '-m68020' flag to GCC prevents building anything better,
16532            # like '-m68040'.
16533            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16534        ;;
16535      esac
16536      ;;
16537
16538    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16539      # PIC is the default for these OSes.
16540      ;;
16541    mingw* | cygwin* | os2* | pw32* | cegcc*)
16542      # This hack is so that the source file can tell whether it is being
16543      # built for inclusion in a dll (and should export symbols for example).
16544      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16545      # (--disable-auto-import) libraries
16546      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16547      case $host_os in
16548      os2*)
16549	lt_prog_compiler_static_CXX='$wl-static'
16550	;;
16551      esac
16552      ;;
16553    darwin* | rhapsody*)
16554      # PIC is the default on this platform
16555      # Common symbols not allowed in MH_DYLIB files
16556      lt_prog_compiler_pic_CXX='-fno-common'
16557      ;;
16558    *djgpp*)
16559      # DJGPP does not support shared libraries at all
16560      lt_prog_compiler_pic_CXX=
16561      ;;
16562    haiku*)
16563      # PIC is the default for Haiku.
16564      # The "-static" flag exists, but is broken.
16565      lt_prog_compiler_static_CXX=
16566      ;;
16567    interix[3-9]*)
16568      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16569      # Instead, we relocate shared libraries at runtime.
16570      ;;
16571    sysv4*MP*)
16572      if test -d /usr/nec; then
16573	lt_prog_compiler_pic_CXX=-Kconform_pic
16574      fi
16575      ;;
16576    hpux*)
16577      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16578      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16579      # sets the default TLS model and affects inlining.
16580      case $host_cpu in
16581      hppa*64*)
16582	;;
16583      *)
16584	lt_prog_compiler_pic_CXX='-fPIC'
16585	;;
16586      esac
16587      ;;
16588    *qnx* | *nto*)
16589      # QNX uses GNU C++, but need to define -shared option too, otherwise
16590      # it will coredump.
16591      lt_prog_compiler_pic_CXX='-fPIC -shared'
16592      ;;
16593    *)
16594      lt_prog_compiler_pic_CXX='-fPIC'
16595      ;;
16596    esac
16597  else
16598    case $host_os in
16599      aix[4-9]*)
16600	# All AIX code is PIC.
16601	if test ia64 = "$host_cpu"; then
16602	  # AIX 5 now supports IA64 processor
16603	  lt_prog_compiler_static_CXX='-Bstatic'
16604	else
16605	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16606	fi
16607	;;
16608      chorus*)
16609	case $cc_basename in
16610	cxch68*)
16611	  # Green Hills C++ Compiler
16612	  # _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"
16613	  ;;
16614	esac
16615	;;
16616      mingw* | cygwin* | os2* | pw32* | cegcc*)
16617	# This hack is so that the source file can tell whether it is being
16618	# built for inclusion in a dll (and should export symbols for example).
16619	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16620	;;
16621      dgux*)
16622	case $cc_basename in
16623	  ec++*)
16624	    lt_prog_compiler_pic_CXX='-KPIC'
16625	    ;;
16626	  ghcx*)
16627	    # Green Hills C++ Compiler
16628	    lt_prog_compiler_pic_CXX='-pic'
16629	    ;;
16630	  *)
16631	    ;;
16632	esac
16633	;;
16634      freebsd* | dragonfly*)
16635	# FreeBSD uses GNU C++
16636	;;
16637      hpux9* | hpux10* | hpux11*)
16638	case $cc_basename in
16639	  CC*)
16640	    lt_prog_compiler_wl_CXX='-Wl,'
16641	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16642	    if test ia64 != "$host_cpu"; then
16643	      lt_prog_compiler_pic_CXX='+Z'
16644	    fi
16645	    ;;
16646	  aCC*)
16647	    lt_prog_compiler_wl_CXX='-Wl,'
16648	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16649	    case $host_cpu in
16650	    hppa*64*|ia64*)
16651	      # +Z the default
16652	      ;;
16653	    *)
16654	      lt_prog_compiler_pic_CXX='+Z'
16655	      ;;
16656	    esac
16657	    ;;
16658	  *)
16659	    ;;
16660	esac
16661	;;
16662      interix*)
16663	# This is c89, which is MS Visual C++ (no shared libs)
16664	# Anyone wants to do a port?
16665	;;
16666      irix5* | irix6* | nonstopux*)
16667	case $cc_basename in
16668	  CC*)
16669	    lt_prog_compiler_wl_CXX='-Wl,'
16670	    lt_prog_compiler_static_CXX='-non_shared'
16671	    # CC pic flag -KPIC is the default.
16672	    ;;
16673	  *)
16674	    ;;
16675	esac
16676	;;
16677      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16678	case $cc_basename in
16679	  KCC*)
16680	    # KAI C++ Compiler
16681	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16682	    lt_prog_compiler_pic_CXX='-fPIC'
16683	    ;;
16684	  ecpc* )
16685	    # old Intel C++ for x86_64, which still supported -KPIC.
16686	    lt_prog_compiler_wl_CXX='-Wl,'
16687	    lt_prog_compiler_pic_CXX='-KPIC'
16688	    lt_prog_compiler_static_CXX='-static'
16689	    ;;
16690	  icpc* )
16691	    # Intel C++, used to be incompatible with GCC.
16692	    # ICC 10 doesn't accept -KPIC any more.
16693	    lt_prog_compiler_wl_CXX='-Wl,'
16694	    lt_prog_compiler_pic_CXX='-fPIC'
16695	    lt_prog_compiler_static_CXX='-static'
16696	    ;;
16697	  pgCC* | pgcpp*)
16698	    # Portland Group C++ compiler
16699	    lt_prog_compiler_wl_CXX='-Wl,'
16700	    lt_prog_compiler_pic_CXX='-fpic'
16701	    lt_prog_compiler_static_CXX='-Bstatic'
16702	    ;;
16703	  cxx*)
16704	    # Compaq C++
16705	    # Make sure the PIC flag is empty.  It appears that all Alpha
16706	    # Linux and Compaq Tru64 Unix objects are PIC.
16707	    lt_prog_compiler_pic_CXX=
16708	    lt_prog_compiler_static_CXX='-non_shared'
16709	    ;;
16710	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16711	    # IBM XL 8.0, 9.0 on PPC and BlueGene
16712	    lt_prog_compiler_wl_CXX='-Wl,'
16713	    lt_prog_compiler_pic_CXX='-qpic'
16714	    lt_prog_compiler_static_CXX='-qstaticlink'
16715	    ;;
16716	  *)
16717	    case `$CC -V 2>&1 | sed 5q` in
16718	    *Sun\ C*)
16719	      # Sun C++ 5.9
16720	      lt_prog_compiler_pic_CXX='-KPIC'
16721	      lt_prog_compiler_static_CXX='-Bstatic'
16722	      lt_prog_compiler_wl_CXX='-Qoption ld '
16723	      ;;
16724	    esac
16725	    ;;
16726	esac
16727	;;
16728      lynxos*)
16729	;;
16730      m88k*)
16731	;;
16732      mvs*)
16733	case $cc_basename in
16734	  cxx*)
16735	    lt_prog_compiler_pic_CXX='-W c,exportall'
16736	    ;;
16737	  *)
16738	    ;;
16739	esac
16740	;;
16741      netbsd*)
16742	;;
16743      *qnx* | *nto*)
16744        # QNX uses GNU C++, but need to define -shared option too, otherwise
16745        # it will coredump.
16746        lt_prog_compiler_pic_CXX='-fPIC -shared'
16747        ;;
16748      osf3* | osf4* | osf5*)
16749	case $cc_basename in
16750	  KCC*)
16751	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16752	    ;;
16753	  RCC*)
16754	    # Rational C++ 2.4.1
16755	    lt_prog_compiler_pic_CXX='-pic'
16756	    ;;
16757	  cxx*)
16758	    # Digital/Compaq C++
16759	    lt_prog_compiler_wl_CXX='-Wl,'
16760	    # Make sure the PIC flag is empty.  It appears that all Alpha
16761	    # Linux and Compaq Tru64 Unix objects are PIC.
16762	    lt_prog_compiler_pic_CXX=
16763	    lt_prog_compiler_static_CXX='-non_shared'
16764	    ;;
16765	  *)
16766	    ;;
16767	esac
16768	;;
16769      psos*)
16770	;;
16771      solaris*)
16772	case $cc_basename in
16773	  CC* | sunCC*)
16774	    # Sun C++ 4.2, 5.x and Centerline C++
16775	    lt_prog_compiler_pic_CXX='-KPIC'
16776	    lt_prog_compiler_static_CXX='-Bstatic'
16777	    lt_prog_compiler_wl_CXX='-Qoption ld '
16778	    ;;
16779	  gcx*)
16780	    # Green Hills C++ Compiler
16781	    lt_prog_compiler_pic_CXX='-PIC'
16782	    ;;
16783	  *)
16784	    ;;
16785	esac
16786	;;
16787      sunos4*)
16788	case $cc_basename in
16789	  CC*)
16790	    # Sun C++ 4.x
16791	    lt_prog_compiler_pic_CXX='-pic'
16792	    lt_prog_compiler_static_CXX='-Bstatic'
16793	    ;;
16794	  lcc*)
16795	    # Lucid
16796	    lt_prog_compiler_pic_CXX='-pic'
16797	    ;;
16798	  *)
16799	    ;;
16800	esac
16801	;;
16802      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16803	case $cc_basename in
16804	  CC*)
16805	    lt_prog_compiler_wl_CXX='-Wl,'
16806	    lt_prog_compiler_pic_CXX='-KPIC'
16807	    lt_prog_compiler_static_CXX='-Bstatic'
16808	    ;;
16809	esac
16810	;;
16811      tandem*)
16812	case $cc_basename in
16813	  NCC*)
16814	    # NonStop-UX NCC 3.20
16815	    lt_prog_compiler_pic_CXX='-KPIC'
16816	    ;;
16817	  *)
16818	    ;;
16819	esac
16820	;;
16821      vxworks*)
16822	;;
16823      *)
16824	lt_prog_compiler_can_build_shared_CXX=no
16825	;;
16826    esac
16827  fi
16828
16829case $host_os in
16830  # For platforms that do not support PIC, -DPIC is meaningless:
16831  *djgpp*)
16832    lt_prog_compiler_pic_CXX=
16833    ;;
16834  *)
16835    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16836    ;;
16837esac
16838
16839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16840$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16841if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16842  $as_echo_n "(cached) " >&6
16843else
16844  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16845fi
16846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16847$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16848lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16849
16850#
16851# Check to make sure the PIC flag actually works.
16852#
16853if test -n "$lt_prog_compiler_pic_CXX"; then
16854  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16855$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16856if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16857  $as_echo_n "(cached) " >&6
16858else
16859  lt_cv_prog_compiler_pic_works_CXX=no
16860   ac_outfile=conftest.$ac_objext
16861   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16862   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
16863   # Insert the option either (1) after the last *FLAGS variable, or
16864   # (2) before a word containing "conftest.", or (3) at the end.
16865   # Note that $ac_compile itself does not contain backslashes and begins
16866   # with a dollar sign (not a hyphen), so the echo should work correctly.
16867   # The option is referenced via a variable to avoid confusing sed.
16868   lt_compile=`echo "$ac_compile" | $SED \
16869   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16870   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16871   -e 's:$: $lt_compiler_flag:'`
16872   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16873   (eval "$lt_compile" 2>conftest.err)
16874   ac_status=$?
16875   cat conftest.err >&5
16876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877   if (exit $ac_status) && test -s "$ac_outfile"; then
16878     # The compiler can only warn and ignore the option if not recognized
16879     # So say no if there are warnings other than the usual output.
16880     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16881     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16882     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16883       lt_cv_prog_compiler_pic_works_CXX=yes
16884     fi
16885   fi
16886   $RM conftest*
16887
16888fi
16889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16890$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16891
16892if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16893    case $lt_prog_compiler_pic_CXX in
16894     "" | " "*) ;;
16895     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16896     esac
16897else
16898    lt_prog_compiler_pic_CXX=
16899     lt_prog_compiler_can_build_shared_CXX=no
16900fi
16901
16902fi
16903
16904
16905
16906
16907
16908#
16909# Check to make sure the static flag actually works.
16910#
16911wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16913$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16914if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16915  $as_echo_n "(cached) " >&6
16916else
16917  lt_cv_prog_compiler_static_works_CXX=no
16918   save_LDFLAGS=$LDFLAGS
16919   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16920   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16921   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16922     # The linker can only warn and ignore the option if not recognized
16923     # So say no if there are warnings
16924     if test -s conftest.err; then
16925       # Append any errors to the config.log.
16926       cat conftest.err 1>&5
16927       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16928       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16929       if diff conftest.exp conftest.er2 >/dev/null; then
16930         lt_cv_prog_compiler_static_works_CXX=yes
16931       fi
16932     else
16933       lt_cv_prog_compiler_static_works_CXX=yes
16934     fi
16935   fi
16936   $RM -r conftest*
16937   LDFLAGS=$save_LDFLAGS
16938
16939fi
16940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16941$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16942
16943if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16944    :
16945else
16946    lt_prog_compiler_static_CXX=
16947fi
16948
16949
16950
16951
16952    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16953$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16954if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16955  $as_echo_n "(cached) " >&6
16956else
16957  lt_cv_prog_compiler_c_o_CXX=no
16958   $RM -r conftest 2>/dev/null
16959   mkdir conftest
16960   cd conftest
16961   mkdir out
16962   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16963
16964   lt_compiler_flag="-o out/conftest2.$ac_objext"
16965   # Insert the option either (1) after the last *FLAGS variable, or
16966   # (2) before a word containing "conftest.", or (3) at the end.
16967   # Note that $ac_compile itself does not contain backslashes and begins
16968   # with a dollar sign (not a hyphen), so the echo should work correctly.
16969   lt_compile=`echo "$ac_compile" | $SED \
16970   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16971   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16972   -e 's:$: $lt_compiler_flag:'`
16973   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16974   (eval "$lt_compile" 2>out/conftest.err)
16975   ac_status=$?
16976   cat out/conftest.err >&5
16977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16979   then
16980     # The compiler can only warn and ignore the option if not recognized
16981     # So say no if there are warnings
16982     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16983     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16984     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16985       lt_cv_prog_compiler_c_o_CXX=yes
16986     fi
16987   fi
16988   chmod u+w . 2>&5
16989   $RM conftest*
16990   # SGI C++ compiler will create directory out/ii_files/ for
16991   # template instantiation
16992   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16993   $RM out/* && rmdir out
16994   cd ..
16995   $RM -r conftest
16996   $RM conftest*
16997
16998fi
16999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17000$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17001
17002
17003
17004    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17005$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17006if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17007  $as_echo_n "(cached) " >&6
17008else
17009  lt_cv_prog_compiler_c_o_CXX=no
17010   $RM -r conftest 2>/dev/null
17011   mkdir conftest
17012   cd conftest
17013   mkdir out
17014   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17015
17016   lt_compiler_flag="-o out/conftest2.$ac_objext"
17017   # Insert the option either (1) after the last *FLAGS variable, or
17018   # (2) before a word containing "conftest.", or (3) at the end.
17019   # Note that $ac_compile itself does not contain backslashes and begins
17020   # with a dollar sign (not a hyphen), so the echo should work correctly.
17021   lt_compile=`echo "$ac_compile" | $SED \
17022   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17023   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17024   -e 's:$: $lt_compiler_flag:'`
17025   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17026   (eval "$lt_compile" 2>out/conftest.err)
17027   ac_status=$?
17028   cat out/conftest.err >&5
17029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17031   then
17032     # The compiler can only warn and ignore the option if not recognized
17033     # So say no if there are warnings
17034     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17035     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17036     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17037       lt_cv_prog_compiler_c_o_CXX=yes
17038     fi
17039   fi
17040   chmod u+w . 2>&5
17041   $RM conftest*
17042   # SGI C++ compiler will create directory out/ii_files/ for
17043   # template instantiation
17044   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17045   $RM out/* && rmdir out
17046   cd ..
17047   $RM -r conftest
17048   $RM conftest*
17049
17050fi
17051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17052$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17053
17054
17055
17056
17057hard_links=nottested
17058if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
17059  # do not overwrite the value of need_locks provided by the user
17060  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17061$as_echo_n "checking if we can lock with hard links... " >&6; }
17062  hard_links=yes
17063  $RM conftest*
17064  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17065  touch conftest.a
17066  ln conftest.a conftest.b 2>&5 || hard_links=no
17067  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17069$as_echo "$hard_links" >&6; }
17070  if test no = "$hard_links"; then
17071    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17072$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17073    need_locks=warn
17074  fi
17075else
17076  need_locks=no
17077fi
17078
17079
17080
17081    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17082$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17083
17084  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17085  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17086  case $host_os in
17087  aix[4-9]*)
17088    # If we're using GNU nm, then we don't want the "-C" option.
17089    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17090    # Without the "-l" option, or with the "-B" option, AIX nm treats
17091    # weak defined symbols like other global defined symbols, whereas
17092    # GNU nm marks them as "W".
17093    # While the 'weak' keyword is ignored in the Export File, we need
17094    # it in the Import File for the 'aix-soname' feature, so we have
17095    # to replace the "-B" option with "-P" for AIX nm.
17096    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17097      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'
17098    else
17099      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'
17100    fi
17101    ;;
17102  pw32*)
17103    export_symbols_cmds_CXX=$ltdll_cmds
17104    ;;
17105  cygwin* | mingw* | cegcc*)
17106    case $cc_basename in
17107    cl*)
17108      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17109      ;;
17110    *)
17111      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'
17112      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17113      ;;
17114    esac
17115    ;;
17116  *)
17117    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17118    ;;
17119  esac
17120
17121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17122$as_echo "$ld_shlibs_CXX" >&6; }
17123test no = "$ld_shlibs_CXX" && can_build_shared=no
17124
17125with_gnu_ld_CXX=$with_gnu_ld
17126
17127
17128
17129
17130
17131
17132#
17133# Do we need to explicitly link libc?
17134#
17135case "x$archive_cmds_need_lc_CXX" in
17136x|xyes)
17137  # Assume -lc should be added
17138  archive_cmds_need_lc_CXX=yes
17139
17140  if test yes,yes = "$GCC,$enable_shared"; then
17141    case $archive_cmds_CXX in
17142    *'~'*)
17143      # FIXME: we may have to deal with multi-command sequences.
17144      ;;
17145    '$CC '*)
17146      # Test whether the compiler implicitly links with -lc since on some
17147      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17148      # to ld, don't add -lc before -lgcc.
17149      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17150$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17151if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17152  $as_echo_n "(cached) " >&6
17153else
17154  $RM conftest*
17155	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17156
17157	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17158  (eval $ac_compile) 2>&5
17159  ac_status=$?
17160  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17161  test $ac_status = 0; } 2>conftest.err; then
17162	  soname=conftest
17163	  lib=conftest
17164	  libobjs=conftest.$ac_objext
17165	  deplibs=
17166	  wl=$lt_prog_compiler_wl_CXX
17167	  pic_flag=$lt_prog_compiler_pic_CXX
17168	  compiler_flags=-v
17169	  linker_flags=-v
17170	  verstring=
17171	  output_objdir=.
17172	  libname=conftest
17173	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17174	  allow_undefined_flag_CXX=
17175	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17176  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17177  ac_status=$?
17178  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17179  test $ac_status = 0; }
17180	  then
17181	    lt_cv_archive_cmds_need_lc_CXX=no
17182	  else
17183	    lt_cv_archive_cmds_need_lc_CXX=yes
17184	  fi
17185	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17186	else
17187	  cat conftest.err 1>&5
17188	fi
17189	$RM conftest*
17190
17191fi
17192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17193$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17194      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17195      ;;
17196    esac
17197  fi
17198  ;;
17199esac
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17263$as_echo_n "checking dynamic linker characteristics... " >&6; }
17264
17265library_names_spec=
17266libname_spec='lib$name'
17267soname_spec=
17268shrext_cmds=.so
17269postinstall_cmds=
17270postuninstall_cmds=
17271finish_cmds=
17272finish_eval=
17273shlibpath_var=
17274shlibpath_overrides_runpath=unknown
17275version_type=none
17276dynamic_linker="$host_os ld.so"
17277sys_lib_dlsearch_path_spec="/lib /usr/lib"
17278need_lib_prefix=unknown
17279hardcode_into_libs=no
17280
17281# when you set need_version to no, make sure it does not cause -set_version
17282# flags to be left without arguments
17283need_version=unknown
17284
17285
17286
17287case $host_os in
17288aix3*)
17289  version_type=linux # correct to gnu/linux during the next big refactor
17290  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17291  shlibpath_var=LIBPATH
17292
17293  # AIX 3 has no versioning support, so we append a major version to the name.
17294  soname_spec='$libname$release$shared_ext$major'
17295  ;;
17296
17297aix[4-9]*)
17298  version_type=linux # correct to gnu/linux during the next big refactor
17299  need_lib_prefix=no
17300  need_version=no
17301  hardcode_into_libs=yes
17302  if test ia64 = "$host_cpu"; then
17303    # AIX 5 supports IA64
17304    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17305    shlibpath_var=LD_LIBRARY_PATH
17306  else
17307    # With GCC up to 2.95.x, collect2 would create an import file
17308    # for dependence libraries.  The import file would start with
17309    # the line '#! .'.  This would cause the generated library to
17310    # depend on '.', always an invalid library.  This was fixed in
17311    # development snapshots of GCC prior to 3.0.
17312    case $host_os in
17313      aix4 | aix4.[01] | aix4.[01].*)
17314      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17315	   echo ' yes '
17316	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17317	:
17318      else
17319	can_build_shared=no
17320      fi
17321      ;;
17322    esac
17323    # Using Import Files as archive members, it is possible to support
17324    # filename-based versioning of shared library archives on AIX. While
17325    # this would work for both with and without runtime linking, it will
17326    # prevent static linking of such archives. So we do filename-based
17327    # shared library versioning with .so extension only, which is used
17328    # when both runtime linking and shared linking is enabled.
17329    # Unfortunately, runtime linking may impact performance, so we do
17330    # not want this to be the default eventually. Also, we use the
17331    # versioned .so libs for executables only if there is the -brtl
17332    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17333    # To allow for filename-based versioning support, we need to create
17334    # libNAME.so.V as an archive file, containing:
17335    # *) an Import File, referring to the versioned filename of the
17336    #    archive as well as the shared archive member, telling the
17337    #    bitwidth (32 or 64) of that shared object, and providing the
17338    #    list of exported symbols of that shared object, eventually
17339    #    decorated with the 'weak' keyword
17340    # *) the shared object with the F_LOADONLY flag set, to really avoid
17341    #    it being seen by the linker.
17342    # At run time we better use the real file rather than another symlink,
17343    # but for link time we create the symlink libNAME.so -> libNAME.so.V
17344
17345    case $with_aix_soname,$aix_use_runtimelinking in
17346    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17347    # soname into executable. Probably we can add versioning support to
17348    # collect2, so additional links can be useful in future.
17349    aix,yes) # traditional libtool
17350      dynamic_linker='AIX unversionable lib.so'
17351      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17352      # instead of lib<name>.a to let people know that these are not
17353      # typical AIX shared libraries.
17354      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17355      ;;
17356    aix,no) # traditional AIX only
17357      dynamic_linker='AIX lib.a(lib.so.V)'
17358      # We preserve .a as extension for shared libraries through AIX4.2
17359      # and later when we are not doing run time linking.
17360      library_names_spec='$libname$release.a $libname.a'
17361      soname_spec='$libname$release$shared_ext$major'
17362      ;;
17363    svr4,*) # full svr4 only
17364      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17365      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17366      # We do not specify a path in Import Files, so LIBPATH fires.
17367      shlibpath_overrides_runpath=yes
17368      ;;
17369    *,yes) # both, prefer svr4
17370      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17371      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17372      # unpreferred sharedlib libNAME.a needs extra handling
17373      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"'
17374      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"'
17375      # We do not specify a path in Import Files, so LIBPATH fires.
17376      shlibpath_overrides_runpath=yes
17377      ;;
17378    *,no) # both, prefer aix
17379      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17380      library_names_spec='$libname$release.a $libname.a'
17381      soname_spec='$libname$release$shared_ext$major'
17382      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17383      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)'
17384      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"'
17385      ;;
17386    esac
17387    shlibpath_var=LIBPATH
17388  fi
17389  ;;
17390
17391amigaos*)
17392  case $host_cpu in
17393  powerpc)
17394    # Since July 2007 AmigaOS4 officially supports .so libraries.
17395    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17396    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17397    ;;
17398  m68k)
17399    library_names_spec='$libname.ixlibrary $libname.a'
17400    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17401    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'
17402    ;;
17403  esac
17404  ;;
17405
17406beos*)
17407  library_names_spec='$libname$shared_ext'
17408  dynamic_linker="$host_os ld.so"
17409  shlibpath_var=LIBRARY_PATH
17410  ;;
17411
17412bsdi[45]*)
17413  version_type=linux # correct to gnu/linux during the next big refactor
17414  need_version=no
17415  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17416  soname_spec='$libname$release$shared_ext$major'
17417  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17418  shlibpath_var=LD_LIBRARY_PATH
17419  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17420  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17421  # the default ld.so.conf also contains /usr/contrib/lib and
17422  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17423  # libtool to hard-code these into programs
17424  ;;
17425
17426cygwin* | mingw* | pw32* | cegcc*)
17427  version_type=windows
17428  shrext_cmds=.dll
17429  need_version=no
17430  need_lib_prefix=no
17431
17432  case $GCC,$cc_basename in
17433  yes,*)
17434    # gcc
17435    library_names_spec='$libname.dll.a'
17436    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17437    postinstall_cmds='base_file=`basename \$file`~
17438      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17439      dldir=$destdir/`dirname \$dlpath`~
17440      test -d \$dldir || mkdir -p \$dldir~
17441      $install_prog $dir/$dlname \$dldir/$dlname~
17442      chmod a+x \$dldir/$dlname~
17443      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17444        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17445      fi'
17446    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17447      dlpath=$dir/\$dldll~
17448       $RM \$dlpath'
17449    shlibpath_overrides_runpath=yes
17450
17451    case $host_os in
17452    cygwin*)
17453      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17454      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17455
17456      ;;
17457    mingw* | cegcc*)
17458      # MinGW DLLs use traditional 'lib' prefix
17459      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17460      ;;
17461    pw32*)
17462      # pw32 DLLs use 'pw' prefix rather than 'lib'
17463      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17464      ;;
17465    esac
17466    dynamic_linker='Win32 ld.exe'
17467    ;;
17468
17469  *,cl*)
17470    # Native MSVC
17471    libname_spec='$name'
17472    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17473    library_names_spec='$libname.dll.lib'
17474
17475    case $build_os in
17476    mingw*)
17477      sys_lib_search_path_spec=
17478      lt_save_ifs=$IFS
17479      IFS=';'
17480      for lt_path in $LIB
17481      do
17482        IFS=$lt_save_ifs
17483        # Let DOS variable expansion print the short 8.3 style file name.
17484        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17485        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17486      done
17487      IFS=$lt_save_ifs
17488      # Convert to MSYS style.
17489      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17490      ;;
17491    cygwin*)
17492      # Convert to unix form, then to dos form, then back to unix form
17493      # but this time dos style (no spaces!) so that the unix form looks
17494      # like /cygdrive/c/PROGRA~1:/cygdr...
17495      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17496      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17497      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17498      ;;
17499    *)
17500      sys_lib_search_path_spec=$LIB
17501      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17502        # It is most probably a Windows format PATH.
17503        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17504      else
17505        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17506      fi
17507      # FIXME: find the short name or the path components, as spaces are
17508      # common. (e.g. "Program Files" -> "PROGRA~1")
17509      ;;
17510    esac
17511
17512    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17513    postinstall_cmds='base_file=`basename \$file`~
17514      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17515      dldir=$destdir/`dirname \$dlpath`~
17516      test -d \$dldir || mkdir -p \$dldir~
17517      $install_prog $dir/$dlname \$dldir/$dlname'
17518    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17519      dlpath=$dir/\$dldll~
17520       $RM \$dlpath'
17521    shlibpath_overrides_runpath=yes
17522    dynamic_linker='Win32 link.exe'
17523    ;;
17524
17525  *)
17526    # Assume MSVC wrapper
17527    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17528    dynamic_linker='Win32 ld.exe'
17529    ;;
17530  esac
17531  # FIXME: first we should search . and the directory the executable is in
17532  shlibpath_var=PATH
17533  ;;
17534
17535darwin* | rhapsody*)
17536  dynamic_linker="$host_os dyld"
17537  version_type=darwin
17538  need_lib_prefix=no
17539  need_version=no
17540  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17541  soname_spec='$libname$release$major$shared_ext'
17542  shlibpath_overrides_runpath=yes
17543  shlibpath_var=DYLD_LIBRARY_PATH
17544  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17545
17546  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17547  ;;
17548
17549dgux*)
17550  version_type=linux # correct to gnu/linux during the next big refactor
17551  need_lib_prefix=no
17552  need_version=no
17553  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17554  soname_spec='$libname$release$shared_ext$major'
17555  shlibpath_var=LD_LIBRARY_PATH
17556  ;;
17557
17558freebsd* | dragonfly*)
17559  # DragonFly does not have aout.  When/if they implement a new
17560  # versioning mechanism, adjust this.
17561  if test -x /usr/bin/objformat; then
17562    objformat=`/usr/bin/objformat`
17563  else
17564    case $host_os in
17565    freebsd[23].*) objformat=aout ;;
17566    *) objformat=elf ;;
17567    esac
17568  fi
17569  version_type=freebsd-$objformat
17570  case $version_type in
17571    freebsd-elf*)
17572      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17573      soname_spec='$libname$release$shared_ext$major'
17574      need_version=no
17575      need_lib_prefix=no
17576      ;;
17577    freebsd-*)
17578      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17579      need_version=yes
17580      ;;
17581  esac
17582  shlibpath_var=LD_LIBRARY_PATH
17583  case $host_os in
17584  freebsd2.*)
17585    shlibpath_overrides_runpath=yes
17586    ;;
17587  freebsd3.[01]* | freebsdelf3.[01]*)
17588    shlibpath_overrides_runpath=yes
17589    hardcode_into_libs=yes
17590    ;;
17591  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17592  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17593    shlibpath_overrides_runpath=no
17594    hardcode_into_libs=yes
17595    ;;
17596  *) # from 4.6 on, and DragonFly
17597    shlibpath_overrides_runpath=yes
17598    hardcode_into_libs=yes
17599    ;;
17600  esac
17601  ;;
17602
17603haiku*)
17604  version_type=linux # correct to gnu/linux during the next big refactor
17605  need_lib_prefix=no
17606  need_version=no
17607  dynamic_linker="$host_os runtime_loader"
17608  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17609  soname_spec='$libname$release$shared_ext$major'
17610  shlibpath_var=LIBRARY_PATH
17611  shlibpath_overrides_runpath=no
17612  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17613  hardcode_into_libs=yes
17614  ;;
17615
17616hpux9* | hpux10* | hpux11*)
17617  # Give a soname corresponding to the major version so that dld.sl refuses to
17618  # link against other versions.
17619  version_type=sunos
17620  need_lib_prefix=no
17621  need_version=no
17622  case $host_cpu in
17623  ia64*)
17624    shrext_cmds='.so'
17625    hardcode_into_libs=yes
17626    dynamic_linker="$host_os dld.so"
17627    shlibpath_var=LD_LIBRARY_PATH
17628    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17629    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17630    soname_spec='$libname$release$shared_ext$major'
17631    if test 32 = "$HPUX_IA64_MODE"; then
17632      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17633      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17634    else
17635      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17636      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17637    fi
17638    ;;
17639  hppa*64*)
17640    shrext_cmds='.sl'
17641    hardcode_into_libs=yes
17642    dynamic_linker="$host_os dld.sl"
17643    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17644    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17645    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17646    soname_spec='$libname$release$shared_ext$major'
17647    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17648    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17649    ;;
17650  *)
17651    shrext_cmds='.sl'
17652    dynamic_linker="$host_os dld.sl"
17653    shlibpath_var=SHLIB_PATH
17654    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17655    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17656    soname_spec='$libname$release$shared_ext$major'
17657    ;;
17658  esac
17659  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17660  postinstall_cmds='chmod 555 $lib'
17661  # or fails outright, so override atomically:
17662  install_override_mode=555
17663  ;;
17664
17665interix[3-9]*)
17666  version_type=linux # correct to gnu/linux during the next big refactor
17667  need_lib_prefix=no
17668  need_version=no
17669  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17670  soname_spec='$libname$release$shared_ext$major'
17671  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17672  shlibpath_var=LD_LIBRARY_PATH
17673  shlibpath_overrides_runpath=no
17674  hardcode_into_libs=yes
17675  ;;
17676
17677irix5* | irix6* | nonstopux*)
17678  case $host_os in
17679    nonstopux*) version_type=nonstopux ;;
17680    *)
17681	if test yes = "$lt_cv_prog_gnu_ld"; then
17682		version_type=linux # correct to gnu/linux during the next big refactor
17683	else
17684		version_type=irix
17685	fi ;;
17686  esac
17687  need_lib_prefix=no
17688  need_version=no
17689  soname_spec='$libname$release$shared_ext$major'
17690  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17691  case $host_os in
17692  irix5* | nonstopux*)
17693    libsuff= shlibsuff=
17694    ;;
17695  *)
17696    case $LD in # libtool.m4 will add one of these switches to LD
17697    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17698      libsuff= shlibsuff= libmagic=32-bit;;
17699    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17700      libsuff=32 shlibsuff=N32 libmagic=N32;;
17701    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17702      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17703    *) libsuff= shlibsuff= libmagic=never-match;;
17704    esac
17705    ;;
17706  esac
17707  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17708  shlibpath_overrides_runpath=no
17709  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17710  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17711  hardcode_into_libs=yes
17712  ;;
17713
17714# No shared lib support for Linux oldld, aout, or coff.
17715linux*oldld* | linux*aout* | linux*coff*)
17716  dynamic_linker=no
17717  ;;
17718
17719linux*android*)
17720  version_type=none # Android doesn't support versioned libraries.
17721  need_lib_prefix=no
17722  need_version=no
17723  library_names_spec='$libname$release$shared_ext'
17724  soname_spec='$libname$release$shared_ext'
17725  finish_cmds=
17726  shlibpath_var=LD_LIBRARY_PATH
17727  shlibpath_overrides_runpath=yes
17728
17729  # This implies no fast_install, which is unacceptable.
17730  # Some rework will be needed to allow for fast_install
17731  # before this can be enabled.
17732  hardcode_into_libs=yes
17733
17734  dynamic_linker='Android linker'
17735  # Don't embed -rpath directories since the linker doesn't support them.
17736  hardcode_libdir_flag_spec_CXX='-L$libdir'
17737  ;;
17738
17739# This must be glibc/ELF.
17740linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17741  version_type=linux # correct to gnu/linux during the next big refactor
17742  need_lib_prefix=no
17743  need_version=no
17744  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17745  soname_spec='$libname$release$shared_ext$major'
17746  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17747  shlibpath_var=LD_LIBRARY_PATH
17748  shlibpath_overrides_runpath=no
17749
17750  # Some binutils ld are patched to set DT_RUNPATH
17751  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17752  $as_echo_n "(cached) " >&6
17753else
17754  lt_cv_shlibpath_overrides_runpath=no
17755    save_LDFLAGS=$LDFLAGS
17756    save_libdir=$libdir
17757    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17758	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17759    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17760/* end confdefs.h.  */
17761
17762int
17763main ()
17764{
17765
17766  ;
17767  return 0;
17768}
17769_ACEOF
17770if ac_fn_cxx_try_link "$LINENO"; then :
17771  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17772  lt_cv_shlibpath_overrides_runpath=yes
17773fi
17774fi
17775rm -f core conftest.err conftest.$ac_objext \
17776    conftest$ac_exeext conftest.$ac_ext
17777    LDFLAGS=$save_LDFLAGS
17778    libdir=$save_libdir
17779
17780fi
17781
17782  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17783
17784  # This implies no fast_install, which is unacceptable.
17785  # Some rework will be needed to allow for fast_install
17786  # before this can be enabled.
17787  hardcode_into_libs=yes
17788
17789  # Ideally, we could use ldconfig to report *all* directores which are
17790  # searched for libraries, however this is still not possible.  Aside from not
17791  # being certain /sbin/ldconfig is available, command
17792  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17793  # even though it is searched at run-time.  Try to do the best guess by
17794  # appending ld.so.conf contents (and includes) to the search path.
17795  if test -f /etc/ld.so.conf; then
17796    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' ' '`
17797    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17798  fi
17799
17800  # We used to test for /lib/ld.so.1 and disable shared libraries on
17801  # powerpc, because MkLinux only supported shared libraries with the
17802  # GNU dynamic linker.  Since this was broken with cross compilers,
17803  # most powerpc-linux boxes support dynamic linking these days and
17804  # people can always --disable-shared, the test was removed, and we
17805  # assume the GNU/Linux dynamic linker is in use.
17806  dynamic_linker='GNU/Linux ld.so'
17807  ;;
17808
17809netbsd*)
17810  version_type=sunos
17811  need_lib_prefix=no
17812  need_version=no
17813  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17814    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17815    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17816    dynamic_linker='NetBSD (a.out) ld.so'
17817  else
17818    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17819    soname_spec='$libname$release$shared_ext$major'
17820    dynamic_linker='NetBSD ld.elf_so'
17821  fi
17822  shlibpath_var=LD_LIBRARY_PATH
17823  shlibpath_overrides_runpath=yes
17824  hardcode_into_libs=yes
17825  ;;
17826
17827newsos6)
17828  version_type=linux # correct to gnu/linux during the next big refactor
17829  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17830  shlibpath_var=LD_LIBRARY_PATH
17831  shlibpath_overrides_runpath=yes
17832  ;;
17833
17834*nto* | *qnx*)
17835  version_type=qnx
17836  need_lib_prefix=no
17837  need_version=no
17838  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17839  soname_spec='$libname$release$shared_ext$major'
17840  shlibpath_var=LD_LIBRARY_PATH
17841  shlibpath_overrides_runpath=no
17842  hardcode_into_libs=yes
17843  dynamic_linker='ldqnx.so'
17844  ;;
17845
17846openbsd* | bitrig*)
17847  version_type=sunos
17848  sys_lib_dlsearch_path_spec=/usr/lib
17849  need_lib_prefix=no
17850  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17851    need_version=no
17852  else
17853    need_version=yes
17854  fi
17855  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17856  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17857  shlibpath_var=LD_LIBRARY_PATH
17858  shlibpath_overrides_runpath=yes
17859  ;;
17860
17861os2*)
17862  libname_spec='$name'
17863  version_type=windows
17864  shrext_cmds=.dll
17865  need_version=no
17866  need_lib_prefix=no
17867  # OS/2 can only load a DLL with a base name of 8 characters or less.
17868  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17869    v=$($ECHO $release$versuffix | tr -d .-);
17870    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17871    $ECHO $n$v`$shared_ext'
17872  library_names_spec='${libname}_dll.$libext'
17873  dynamic_linker='OS/2 ld.exe'
17874  shlibpath_var=BEGINLIBPATH
17875  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17876  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17877  postinstall_cmds='base_file=`basename \$file`~
17878    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17879    dldir=$destdir/`dirname \$dlpath`~
17880    test -d \$dldir || mkdir -p \$dldir~
17881    $install_prog $dir/$dlname \$dldir/$dlname~
17882    chmod a+x \$dldir/$dlname~
17883    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17884      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17885    fi'
17886  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17887    dlpath=$dir/\$dldll~
17888    $RM \$dlpath'
17889  ;;
17890
17891osf3* | osf4* | osf5*)
17892  version_type=osf
17893  need_lib_prefix=no
17894  need_version=no
17895  soname_spec='$libname$release$shared_ext$major'
17896  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17897  shlibpath_var=LD_LIBRARY_PATH
17898  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17899  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17900  ;;
17901
17902rdos*)
17903  dynamic_linker=no
17904  ;;
17905
17906solaris*)
17907  version_type=linux # correct to gnu/linux during the next big refactor
17908  need_lib_prefix=no
17909  need_version=no
17910  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17911  soname_spec='$libname$release$shared_ext$major'
17912  shlibpath_var=LD_LIBRARY_PATH
17913  shlibpath_overrides_runpath=yes
17914  hardcode_into_libs=yes
17915  # ldd complains unless libraries are executable
17916  postinstall_cmds='chmod +x $lib'
17917  ;;
17918
17919sunos4*)
17920  version_type=sunos
17921  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17922  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17923  shlibpath_var=LD_LIBRARY_PATH
17924  shlibpath_overrides_runpath=yes
17925  if test yes = "$with_gnu_ld"; then
17926    need_lib_prefix=no
17927  fi
17928  need_version=yes
17929  ;;
17930
17931sysv4 | sysv4.3*)
17932  version_type=linux # correct to gnu/linux during the next big refactor
17933  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17934  soname_spec='$libname$release$shared_ext$major'
17935  shlibpath_var=LD_LIBRARY_PATH
17936  case $host_vendor in
17937    sni)
17938      shlibpath_overrides_runpath=no
17939      need_lib_prefix=no
17940      runpath_var=LD_RUN_PATH
17941      ;;
17942    siemens)
17943      need_lib_prefix=no
17944      ;;
17945    motorola)
17946      need_lib_prefix=no
17947      need_version=no
17948      shlibpath_overrides_runpath=no
17949      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17950      ;;
17951  esac
17952  ;;
17953
17954sysv4*MP*)
17955  if test -d /usr/nec; then
17956    version_type=linux # correct to gnu/linux during the next big refactor
17957    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17958    soname_spec='$libname$shared_ext.$major'
17959    shlibpath_var=LD_LIBRARY_PATH
17960  fi
17961  ;;
17962
17963sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17964  version_type=sco
17965  need_lib_prefix=no
17966  need_version=no
17967  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17968  soname_spec='$libname$release$shared_ext$major'
17969  shlibpath_var=LD_LIBRARY_PATH
17970  shlibpath_overrides_runpath=yes
17971  hardcode_into_libs=yes
17972  if test yes = "$with_gnu_ld"; then
17973    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17974  else
17975    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17976    case $host_os in
17977      sco3.2v5*)
17978        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17979	;;
17980    esac
17981  fi
17982  sys_lib_dlsearch_path_spec='/usr/lib'
17983  ;;
17984
17985tpf*)
17986  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17987  version_type=linux # correct to gnu/linux during the next big refactor
17988  need_lib_prefix=no
17989  need_version=no
17990  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17991  shlibpath_var=LD_LIBRARY_PATH
17992  shlibpath_overrides_runpath=no
17993  hardcode_into_libs=yes
17994  ;;
17995
17996uts4*)
17997  version_type=linux # correct to gnu/linux during the next big refactor
17998  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17999  soname_spec='$libname$release$shared_ext$major'
18000  shlibpath_var=LD_LIBRARY_PATH
18001  ;;
18002
18003*)
18004  dynamic_linker=no
18005  ;;
18006esac
18007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18008$as_echo "$dynamic_linker" >&6; }
18009test no = "$dynamic_linker" && can_build_shared=no
18010
18011variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18012if test yes = "$GCC"; then
18013  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18014fi
18015
18016if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18017  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18018fi
18019
18020if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18021  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18022fi
18023
18024# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18025configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18026
18027# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18028func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18029
18030# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18031configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18073$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18074hardcode_action_CXX=
18075if test -n "$hardcode_libdir_flag_spec_CXX" ||
18076   test -n "$runpath_var_CXX" ||
18077   test yes = "$hardcode_automatic_CXX"; then
18078
18079  # We can hardcode non-existent directories.
18080  if test no != "$hardcode_direct_CXX" &&
18081     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18082     # have to relink, otherwise we might link with an installed library
18083     # when we should be linking with a yet-to-be-installed one
18084     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18085     test no != "$hardcode_minus_L_CXX"; then
18086    # Linking always hardcodes the temporary library directory.
18087    hardcode_action_CXX=relink
18088  else
18089    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18090    hardcode_action_CXX=immediate
18091  fi
18092else
18093  # We cannot hardcode anything, or else we can only hardcode existing
18094  # directories.
18095  hardcode_action_CXX=unsupported
18096fi
18097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18098$as_echo "$hardcode_action_CXX" >&6; }
18099
18100if test relink = "$hardcode_action_CXX" ||
18101   test yes = "$inherit_rpath_CXX"; then
18102  # Fast installation is not supported
18103  enable_fast_install=no
18104elif test yes = "$shlibpath_overrides_runpath" ||
18105     test no = "$enable_shared"; then
18106  # Fast installation is not necessary
18107  enable_fast_install=needless
18108fi
18109
18110
18111
18112
18113
18114
18115
18116  fi # test -n "$compiler"
18117
18118  CC=$lt_save_CC
18119  CFLAGS=$lt_save_CFLAGS
18120  LDCXX=$LD
18121  LD=$lt_save_LD
18122  GCC=$lt_save_GCC
18123  with_gnu_ld=$lt_save_with_gnu_ld
18124  lt_cv_path_LDCXX=$lt_cv_path_LD
18125  lt_cv_path_LD=$lt_save_path_LD
18126  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18127  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18128fi # test yes != "$_lt_caught_CXX_error"
18129
18130ac_ext=c
18131ac_cpp='$CPP $CPPFLAGS'
18132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18134ac_compiler_gnu=$ac_cv_c_compiler_gnu
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150        ac_config_commands="$ac_config_commands libtool"
18151
18152
18153
18154
18155# Only expand once:
18156
18157
18158
18159
18160
18161if test "x${LTDLINCL}${LIBLTDL}" = "x"; then
18162ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
18163if test "x$ac_cv_header_ltdl_h" = xyes; then :
18164  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
18165$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
18166if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
18167  $as_echo_n "(cached) " >&6
18168else
18169  ac_check_lib_save_LIBS=$LIBS
18170LIBS="-lltdl  $LIBS"
18171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18172/* end confdefs.h.  */
18173
18174/* Override any GCC internal prototype to avoid an error.
18175   Use char because int might match the return type of a GCC
18176   builtin and then its argument prototype would still apply.  */
18177#ifdef __cplusplus
18178extern "C"
18179#endif
18180char lt_dlinit ();
18181int
18182main ()
18183{
18184return lt_dlinit ();
18185  ;
18186  return 0;
18187}
18188_ACEOF
18189if ac_fn_c_try_link "$LINENO"; then :
18190  ac_cv_lib_ltdl_lt_dlinit=yes
18191else
18192  ac_cv_lib_ltdl_lt_dlinit=no
18193fi
18194rm -f core conftest.err conftest.$ac_objext \
18195    conftest$ac_exeext conftest.$ac_ext
18196LIBS=$ac_check_lib_save_LIBS
18197fi
18198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
18199$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
18200if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
18201  LTDLINCL=""
18202LIBLTDL="-lltdl"
18203
18204$as_echo "#define HAVE_LTDL 1" >>confdefs.h
18205
18206
18207else
18208  as_fn_error $? "
18209$PACKAGE requires the ltdl library, included with libtool
18210
18211Please make sure that the proper development package is installed
18212(libltdl-dev, libtool-ltdl-devel, etc.)
18213" "$LINENO" 5
18214fi
18215
18216fi
18217
18218
18219else
18220	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl flags" >&5
18221$as_echo_n "checking for libltdl flags... " >&6; }
18222	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: set explicitly: ${LTDLINCL} ${LIBLTDL}" >&5
18223$as_echo "set explicitly: ${LTDLINCL} ${LIBLTDL}" >&6; }
18224fi
18225
18226
18227ac_ext=c
18228ac_cpp='$CPP $CPPFLAGS'
18229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18231ac_compiler_gnu=$ac_cv_c_compiler_gnu
18232
18233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that we can compile and link with libltdl" >&5
18234$as_echo_n "checking that we can compile and link with libltdl... " >&6; }
18235saved_CPPFLAGS="$CPPFLAGS"
18236saved_LIBS="$LIBS"
18237CPPFLAGS="$CPPFLAGS $LTDLINCL"
18238LIBS="$LIBS $LIBLTDL"
18239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18240/* end confdefs.h.  */
18241#include <stdlib.h> /* for NULL */
18242#include <ltdl.h>   /* for lt_* */
18243
18244int
18245main ()
18246{
18247int ret = lt_dlforeachfile("/usr/lib:/usr/local/lib", NULL, NULL);
18248
18249  ;
18250  return 0;
18251}
18252_ACEOF
18253if ac_fn_c_try_link "$LINENO"; then :
18254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18255$as_echo "yes" >&6; }
18256else
18257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18258$as_echo "no" >&6; }
18259as_fn_error $? "cannot compile and link against libltdl
18260${PACKAGE_TARNAME} requires libltdl (the libtool dl* library),
18261but cannot compile and link against it.
18262Aborting.
18263" "$LINENO" 5
18264
18265fi
18266rm -f core conftest.err conftest.$ac_objext \
18267    conftest$ac_exeext conftest.$ac_ext
18268CPPFLAGS="$saved_CPPFLAGS"
18269LIBS="$saved_LIBS"
18270ac_ext=c
18271ac_cpp='$CPP $CPPFLAGS'
18272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18274ac_compiler_gnu=$ac_cv_c_compiler_gnu
18275
18276
18277
18278
18279# report on compiler/libtool setup
18280
18281gp_config_msg_len="$(expr "Compiler" : '.*')"
18282if test "$gp_config_msg_len" -ge "$gp_config_len"; then
18283	gp_config_msg_lhs="$(expr "Compiler" : "\(.\{0,${gp_config_len3}\}\)")..:"
18284else
18285	gp_config_msg_lhs="$(expr "Compiler:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
18286fi
18287gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} ${CC}
18288"
18289
18290
18291gp_config_msg_len="$(expr "libltdl includes" : '.*')"
18292if test "$gp_config_msg_len" -ge "$gp_config_len"; then
18293	gp_config_msg_lhs="$(expr "libltdl includes" : "\(.\{0,${gp_config_len3}\}\)")..:"
18294else
18295	gp_config_msg_lhs="$(expr "libltdl includes:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
18296fi
18297gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} $LTDLINCL
18298"
18299
18300
18301gp_config_msg_len="$(expr "libltdl library" : '.*')"
18302if test "$gp_config_msg_len" -ge "$gp_config_len"; then
18303	gp_config_msg_lhs="$(expr "libltdl library" : "\(.\{0,${gp_config_len3}\}\)")..:"
18304else
18305	gp_config_msg_lhs="$(expr "libltdl library:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
18306fi
18307gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} $LIBLTDL
18308"
18309
18310
18311
18312cat >>confdefs.h <<_ACEOF
18313#define HAVE_CC "$CC"
18314_ACEOF
18315
18316
18317
18318
18319
18320
18321
18322URL_GPHOTO_HOME="http://www.gphoto.org/"
18323
18324
18325cat >>confdefs.h <<_ACEOF
18326#define URL_GPHOTO_HOME "http://www.gphoto.org/"
18327_ACEOF
18328
18329
18330
18331URL_GPHOTO_PROJECT="https://github.com/gphoto"
18332
18333
18334cat >>confdefs.h <<_ACEOF
18335#define URL_GPHOTO_PROJECT "https://github.com/gphoto"
18336_ACEOF
18337
18338
18339
18340
18341URL_DIGICAM_LIST="http://gphoto.org/proj/libgphoto2/support.php"
18342
18343
18344cat >>confdefs.h <<_ACEOF
18345#define URL_DIGICAM_LIST "http://gphoto.org/proj/libgphoto2/support.php"
18346_ACEOF
18347
18348
18349
18350
18351URL_JPHOTO_HOME="http://jphoto.sourceforge.net/"
18352
18353
18354cat >>confdefs.h <<_ACEOF
18355#define URL_JPHOTO_HOME "http://jphoto.sourceforge.net/"
18356_ACEOF
18357
18358
18359
18360
18361URL_USB_MASSSTORAGE="http://www.linux-usb.org/USB-guide/x498.html"
18362
18363
18364cat >>confdefs.h <<_ACEOF
18365#define URL_USB_MASSSTORAGE "http://www.linux-usb.org/USB-guide/x498.html"
18366_ACEOF
18367
18368
18369
18370
18371MAIL_GPHOTO_DEVEL="<gphoto-devel@lists.sourceforge.net>"
18372
18373
18374cat >>confdefs.h <<_ACEOF
18375#define MAIL_GPHOTO_DEVEL "<gphoto-devel@lists.sourceforge.net>"
18376_ACEOF
18377
18378
18379
18380
18381MAIL_GPHOTO_USER="<gphoto-user@lists.sourceforge.net>"
18382
18383
18384cat >>confdefs.h <<_ACEOF
18385#define MAIL_GPHOTO_USER "<gphoto-user@lists.sourceforge.net>"
18386_ACEOF
18387
18388
18389
18390
18391MAIL_GPHOTO_TRANSLATION="<gphoto-translation@lists.sourceforge.net>"
18392
18393
18394cat >>confdefs.h <<_ACEOF
18395#define MAIL_GPHOTO_TRANSLATION "<gphoto-translation@lists.sourceforge.net>"
18396_ACEOF
18397
18398
18399
18400
18401
18402
18403gp_config_msg="${gp_config_msg}
18404  Features
18405"
18406
18407
18408
18409ALL_LINGUAS="cs da de es eu fr hu it ja nl pl ru sv uk vi zh_CN"
18410GETTEXT_PACKAGE="${PACKAGE}-${LIBGPHOTO2_CURRENT_MIN}"
18411
18412cat >>confdefs.h <<_ACEOF
18413#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
18414_ACEOF
18415
18416
18417sed_cmds="s|^DOMAIN.*|DOMAIN = ${GETTEXT_PACKAGE}|"
18418sed_cmds="${sed_cmds};s|^COPYRIGHT_HOLDER.*|COPYRIGHT_HOLDER = The gPhoto Team|"
18419
18420if test -n "$PACKAGE_BUGREPORT"; then
18421   sed_mb="${PACKAGE_BUGREPORT}"
18422else
18423   as_fn_error $? "
18424*** Your configure.{ac,in} is wrong.
18425*** Either define PACKAGE_BUGREPORT (by using the 4-parameter AC INIT syntax)
18426*** or give GP_GETTEXT_HACK the third parameter.
18427***
18428" "$LINENO" 5
18429fi
18430
18431sed_cmds="${sed_cmds};s|^MSGID_BUGS_ADDRESS.*|MSGID_BUGS_ADDRESS = ${sed_mb}|"
18432# Not so sure whether this hack is all *that* evil...
18433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for po/Makevars requiring hack" >&5
18434$as_echo_n "checking for po/Makevars requiring hack... " >&6; }
18435if test -f "${srcdir}/po/Makevars.template"; then
18436   sed "$sed_cmds" < "${srcdir}/po/Makevars.template" > "${srcdir}/po/Makevars"
18437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, done." >&5
18438$as_echo "yes, done." >&6; }
18439else
18440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18441$as_echo "no" >&6; }
18442fi
18443
18444
18445
18446        MKINSTALLDIRS=
18447  if test -n "$ac_aux_dir"; then
18448    case "$ac_aux_dir" in
18449      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
18450      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
18451    esac
18452  fi
18453  if test -z "$MKINSTALLDIRS"; then
18454    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
18455  fi
18456
18457
18458
18459  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18460$as_echo_n "checking whether NLS is requested... " >&6; }
18461    # Check whether --enable-nls was given.
18462if test "${enable_nls+set}" = set; then :
18463  enableval=$enable_nls; USE_NLS=$enableval
18464else
18465  USE_NLS=yes
18466fi
18467
18468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18469$as_echo "$USE_NLS" >&6; }
18470
18471
18472
18473
18474
18475
18476# Prepare PATH_SEPARATOR.
18477# The user is always right.
18478if test "${PATH_SEPARATOR+set}" != set; then
18479  echo "#! /bin/sh" >conf$$.sh
18480  echo  "exit 0"   >>conf$$.sh
18481  chmod +x conf$$.sh
18482  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18483    PATH_SEPARATOR=';'
18484  else
18485    PATH_SEPARATOR=:
18486  fi
18487  rm -f conf$$.sh
18488fi
18489
18490# Find out how to test for executable files. Don't use a zero-byte file,
18491# as systems may use methods other than mode bits to determine executability.
18492cat >conf$$.file <<_ASEOF
18493#! /bin/sh
18494exit 0
18495_ASEOF
18496chmod +x conf$$.file
18497if test -x conf$$.file >/dev/null 2>&1; then
18498  ac_executable_p="test -x"
18499else
18500  ac_executable_p="test -f"
18501fi
18502rm -f conf$$.file
18503
18504# Extract the first word of "msgfmt", so it can be a program name with args.
18505set dummy msgfmt; ac_word=$2
18506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18507$as_echo_n "checking for $ac_word... " >&6; }
18508if ${ac_cv_path_MSGFMT+:} false; then :
18509  $as_echo_n "(cached) " >&6
18510else
18511  case "$MSGFMT" in
18512  [\\/]* | ?:[\\/]*)
18513    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18514    ;;
18515  *)
18516    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
18517    for ac_dir in $PATH; do
18518      IFS="$ac_save_IFS"
18519      test -z "$ac_dir" && ac_dir=.
18520      for ac_exec_ext in '' $ac_executable_extensions; do
18521        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18522          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
18523     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
18524            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
18525            break 2
18526          fi
18527        fi
18528      done
18529    done
18530    IFS="$ac_save_IFS"
18531  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
18532    ;;
18533esac
18534fi
18535MSGFMT="$ac_cv_path_MSGFMT"
18536if test "$MSGFMT" != ":"; then
18537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18538$as_echo "$MSGFMT" >&6; }
18539else
18540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18541$as_echo "no" >&6; }
18542fi
18543
18544  # Extract the first word of "gmsgfmt", so it can be a program name with args.
18545set dummy gmsgfmt; ac_word=$2
18546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18547$as_echo_n "checking for $ac_word... " >&6; }
18548if ${ac_cv_path_GMSGFMT+:} false; then :
18549  $as_echo_n "(cached) " >&6
18550else
18551  case $GMSGFMT in
18552  [\\/]* | ?:[\\/]*)
18553  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
18554  ;;
18555  *)
18556  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18557for as_dir in $PATH
18558do
18559  IFS=$as_save_IFS
18560  test -z "$as_dir" && as_dir=.
18561    for ac_exec_ext in '' $ac_executable_extensions; do
18562  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18563    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
18564    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18565    break 2
18566  fi
18567done
18568  done
18569IFS=$as_save_IFS
18570
18571  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
18572  ;;
18573esac
18574fi
18575GMSGFMT=$ac_cv_path_GMSGFMT
18576if test -n "$GMSGFMT"; then
18577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
18578$as_echo "$GMSGFMT" >&6; }
18579else
18580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18581$as_echo "no" >&6; }
18582fi
18583
18584
18585
18586
18587# Prepare PATH_SEPARATOR.
18588# The user is always right.
18589if test "${PATH_SEPARATOR+set}" != set; then
18590  echo "#! /bin/sh" >conf$$.sh
18591  echo  "exit 0"   >>conf$$.sh
18592  chmod +x conf$$.sh
18593  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18594    PATH_SEPARATOR=';'
18595  else
18596    PATH_SEPARATOR=:
18597  fi
18598  rm -f conf$$.sh
18599fi
18600
18601# Find out how to test for executable files. Don't use a zero-byte file,
18602# as systems may use methods other than mode bits to determine executability.
18603cat >conf$$.file <<_ASEOF
18604#! /bin/sh
18605exit 0
18606_ASEOF
18607chmod +x conf$$.file
18608if test -x conf$$.file >/dev/null 2>&1; then
18609  ac_executable_p="test -x"
18610else
18611  ac_executable_p="test -f"
18612fi
18613rm -f conf$$.file
18614
18615# Extract the first word of "xgettext", so it can be a program name with args.
18616set dummy xgettext; ac_word=$2
18617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18618$as_echo_n "checking for $ac_word... " >&6; }
18619if ${ac_cv_path_XGETTEXT+:} false; then :
18620  $as_echo_n "(cached) " >&6
18621else
18622  case "$XGETTEXT" in
18623  [\\/]* | ?:[\\/]*)
18624    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
18625    ;;
18626  *)
18627    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
18628    for ac_dir in $PATH; do
18629      IFS="$ac_save_IFS"
18630      test -z "$ac_dir" && ac_dir=.
18631      for ac_exec_ext in '' $ac_executable_extensions; do
18632        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18633          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
18634     (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
18635            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
18636            break 2
18637          fi
18638        fi
18639      done
18640    done
18641    IFS="$ac_save_IFS"
18642  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
18643    ;;
18644esac
18645fi
18646XGETTEXT="$ac_cv_path_XGETTEXT"
18647if test "$XGETTEXT" != ":"; then
18648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18649$as_echo "$XGETTEXT" >&6; }
18650else
18651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18652$as_echo "no" >&6; }
18653fi
18654
18655    rm -f messages.po
18656
18657
18658# Prepare PATH_SEPARATOR.
18659# The user is always right.
18660if test "${PATH_SEPARATOR+set}" != set; then
18661  echo "#! /bin/sh" >conf$$.sh
18662  echo  "exit 0"   >>conf$$.sh
18663  chmod +x conf$$.sh
18664  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18665    PATH_SEPARATOR=';'
18666  else
18667    PATH_SEPARATOR=:
18668  fi
18669  rm -f conf$$.sh
18670fi
18671
18672# Find out how to test for executable files. Don't use a zero-byte file,
18673# as systems may use methods other than mode bits to determine executability.
18674cat >conf$$.file <<_ASEOF
18675#! /bin/sh
18676exit 0
18677_ASEOF
18678chmod +x conf$$.file
18679if test -x conf$$.file >/dev/null 2>&1; then
18680  ac_executable_p="test -x"
18681else
18682  ac_executable_p="test -f"
18683fi
18684rm -f conf$$.file
18685
18686# Extract the first word of "msgmerge", so it can be a program name with args.
18687set dummy msgmerge; ac_word=$2
18688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18689$as_echo_n "checking for $ac_word... " >&6; }
18690if ${ac_cv_path_MSGMERGE+:} false; then :
18691  $as_echo_n "(cached) " >&6
18692else
18693  case "$MSGMERGE" in
18694  [\\/]* | ?:[\\/]*)
18695    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
18696    ;;
18697  *)
18698    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
18699    for ac_dir in $PATH; do
18700      IFS="$ac_save_IFS"
18701      test -z "$ac_dir" && ac_dir=.
18702      for ac_exec_ext in '' $ac_executable_extensions; do
18703        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18704          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
18705            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
18706            break 2
18707          fi
18708        fi
18709      done
18710    done
18711    IFS="$ac_save_IFS"
18712  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
18713    ;;
18714esac
18715fi
18716MSGMERGE="$ac_cv_path_MSGMERGE"
18717if test "$MSGMERGE" != ":"; then
18718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
18719$as_echo "$MSGMERGE" >&6; }
18720else
18721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18722$as_echo "no" >&6; }
18723fi
18724
18725
18726      if test "$GMSGFMT" != ":"; then
18727            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
18728       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
18729      : ;
18730    else
18731      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
18732      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
18733$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
18734      GMSGFMT=":"
18735    fi
18736  fi
18737
18738      if test "$XGETTEXT" != ":"; then
18739            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
18740       (if $XGETTEXT --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
18741      : ;
18742    else
18743      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
18744$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
18745      XGETTEXT=":"
18746    fi
18747        rm -f messages.po
18748  fi
18749
18750  ac_config_commands="$ac_config_commands default-1"
18751
18752
18753
18754      if test "X$prefix" = "XNONE"; then
18755    acl_final_prefix="$ac_default_prefix"
18756  else
18757    acl_final_prefix="$prefix"
18758  fi
18759  if test "X$exec_prefix" = "XNONE"; then
18760    acl_final_exec_prefix='${prefix}'
18761  else
18762    acl_final_exec_prefix="$exec_prefix"
18763  fi
18764  acl_save_prefix="$prefix"
18765  prefix="$acl_final_prefix"
18766  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
18767  prefix="$acl_save_prefix"
18768
18769
18770# Check whether --with-gnu-ld was given.
18771if test "${with_gnu_ld+set}" = set; then :
18772  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18773else
18774  with_gnu_ld=no
18775fi
18776
18777# Prepare PATH_SEPARATOR.
18778# The user is always right.
18779if test "${PATH_SEPARATOR+set}" != set; then
18780  echo "#! /bin/sh" >conf$$.sh
18781  echo  "exit 0"   >>conf$$.sh
18782  chmod +x conf$$.sh
18783  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18784    PATH_SEPARATOR=';'
18785  else
18786    PATH_SEPARATOR=:
18787  fi
18788  rm -f conf$$.sh
18789fi
18790ac_prog=ld
18791if test "$GCC" = yes; then
18792  # Check if gcc -print-prog-name=ld gives a path.
18793  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
18794$as_echo_n "checking for ld used by GCC... " >&6; }
18795  case $host in
18796  *-*-mingw*)
18797    # gcc leaves a trailing carriage return which upsets mingw
18798    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18799  *)
18800    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18801  esac
18802  case $ac_prog in
18803    # Accept absolute paths.
18804    [\\/]* | [A-Za-z]:[\\/]*)
18805      re_direlt='/[^/][^/]*/\.\./'
18806      # Canonicalize the path of ld
18807      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
18808      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18809	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
18810      done
18811      test -z "$LD" && LD="$ac_prog"
18812      ;;
18813  "")
18814    # If it fails, then pretend we aren't using GCC.
18815    ac_prog=ld
18816    ;;
18817  *)
18818    # If it is relative, then search for the first ld in PATH.
18819    with_gnu_ld=unknown
18820    ;;
18821  esac
18822elif test "$with_gnu_ld" = yes; then
18823  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18824$as_echo_n "checking for GNU ld... " >&6; }
18825else
18826  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18827$as_echo_n "checking for non-GNU ld... " >&6; }
18828fi
18829if ${acl_cv_path_LD+:} false; then :
18830  $as_echo_n "(cached) " >&6
18831else
18832  if test -z "$LD"; then
18833  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
18834  for ac_dir in $PATH; do
18835    test -z "$ac_dir" && ac_dir=.
18836    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18837      acl_cv_path_LD="$ac_dir/$ac_prog"
18838      # Check to see if the program is GNU ld.  I'd rather use --version,
18839      # but apparently some GNU ld's only accept -v.
18840      # Break only if it was the GNU/non-GNU ld that we prefer.
18841      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
18842      *GNU* | *'with BFD'*)
18843	test "$with_gnu_ld" != no && break ;;
18844      *)
18845	test "$with_gnu_ld" != yes && break ;;
18846      esac
18847    fi
18848  done
18849  IFS="$ac_save_ifs"
18850else
18851  acl_cv_path_LD="$LD" # Let the user override the test with a path.
18852fi
18853fi
18854
18855LD="$acl_cv_path_LD"
18856if test -n "$LD"; then
18857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18858$as_echo "$LD" >&6; }
18859else
18860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18861$as_echo "no" >&6; }
18862fi
18863test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
18864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18865$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18866if ${acl_cv_prog_gnu_ld+:} false; then :
18867  $as_echo_n "(cached) " >&6
18868else
18869  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
18870case `$LD -v 2>&1 </dev/null` in
18871*GNU* | *'with BFD'*)
18872  acl_cv_prog_gnu_ld=yes ;;
18873*)
18874  acl_cv_prog_gnu_ld=no ;;
18875esac
18876fi
18877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
18878$as_echo "$acl_cv_prog_gnu_ld" >&6; }
18879with_gnu_ld=$acl_cv_prog_gnu_ld
18880
18881
18882
18883                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
18884$as_echo_n "checking for shared library run path origin... " >&6; }
18885if ${acl_cv_rpath+:} false; then :
18886  $as_echo_n "(cached) " >&6
18887else
18888
18889    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
18890    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
18891    . ./conftest.sh
18892    rm -f ./conftest.sh
18893    acl_cv_rpath=done
18894
18895fi
18896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
18897$as_echo "$acl_cv_rpath" >&6; }
18898  wl="$acl_cv_wl"
18899  libext="$acl_cv_libext"
18900  shlibext="$acl_cv_shlibext"
18901  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
18902  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
18903  hardcode_direct="$acl_cv_hardcode_direct"
18904  hardcode_minus_L="$acl_cv_hardcode_minus_L"
18905    # Check whether --enable-rpath was given.
18906if test "${enable_rpath+set}" = set; then :
18907  enableval=$enable_rpath; :
18908else
18909  enable_rpath=yes
18910fi
18911
18912
18913
18914
18915
18916
18917
18918
18919    use_additional=yes
18920
18921  acl_save_prefix="$prefix"
18922  prefix="$acl_final_prefix"
18923  acl_save_exec_prefix="$exec_prefix"
18924  exec_prefix="$acl_final_exec_prefix"
18925
18926    eval additional_includedir=\"$includedir\"
18927    eval additional_libdir=\"$libdir\"
18928
18929  exec_prefix="$acl_save_exec_prefix"
18930  prefix="$acl_save_prefix"
18931
18932
18933# Check whether --with-libiconv-prefix was given.
18934if test "${with_libiconv_prefix+set}" = set; then :
18935  withval=$with_libiconv_prefix;
18936    if test "X$withval" = "Xno"; then
18937      use_additional=no
18938    else
18939      if test "X$withval" = "X"; then
18940
18941  acl_save_prefix="$prefix"
18942  prefix="$acl_final_prefix"
18943  acl_save_exec_prefix="$exec_prefix"
18944  exec_prefix="$acl_final_exec_prefix"
18945
18946          eval additional_includedir=\"$includedir\"
18947          eval additional_libdir=\"$libdir\"
18948
18949  exec_prefix="$acl_save_exec_prefix"
18950  prefix="$acl_save_prefix"
18951
18952      else
18953        additional_includedir="$withval/include"
18954        additional_libdir="$withval/lib"
18955      fi
18956    fi
18957
18958fi
18959
18960      LIBICONV=
18961  LTLIBICONV=
18962  INCICONV=
18963  rpathdirs=
18964  ltrpathdirs=
18965  names_already_handled=
18966  names_next_round='iconv '
18967  while test -n "$names_next_round"; do
18968    names_this_round="$names_next_round"
18969    names_next_round=
18970    for name in $names_this_round; do
18971      already_handled=
18972      for n in $names_already_handled; do
18973        if test "$n" = "$name"; then
18974          already_handled=yes
18975          break
18976        fi
18977      done
18978      if test -z "$already_handled"; then
18979        names_already_handled="$names_already_handled $name"
18980                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18981        eval value=\"\$HAVE_LIB$uppername\"
18982        if test -n "$value"; then
18983          if test "$value" = yes; then
18984            eval value=\"\$LIB$uppername\"
18985            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
18986            eval value=\"\$LTLIB$uppername\"
18987            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
18988          else
18989                                    :
18990          fi
18991        else
18992                              found_dir=
18993          found_la=
18994          found_so=
18995          found_a=
18996          if test $use_additional = yes; then
18997            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18998              found_dir="$additional_libdir"
18999              found_so="$additional_libdir/lib$name.$shlibext"
19000              if test -f "$additional_libdir/lib$name.la"; then
19001                found_la="$additional_libdir/lib$name.la"
19002              fi
19003            else
19004              if test -f "$additional_libdir/lib$name.$libext"; then
19005                found_dir="$additional_libdir"
19006                found_a="$additional_libdir/lib$name.$libext"
19007                if test -f "$additional_libdir/lib$name.la"; then
19008                  found_la="$additional_libdir/lib$name.la"
19009                fi
19010              fi
19011            fi
19012          fi
19013          if test "X$found_dir" = "X"; then
19014            for x in $LDFLAGS $LTLIBICONV; do
19015
19016  acl_save_prefix="$prefix"
19017  prefix="$acl_final_prefix"
19018  acl_save_exec_prefix="$exec_prefix"
19019  exec_prefix="$acl_final_exec_prefix"
19020  eval x=\"$x\"
19021  exec_prefix="$acl_save_exec_prefix"
19022  prefix="$acl_save_prefix"
19023
19024              case "$x" in
19025                -L*)
19026                  dir=`echo "X$x" | sed -e 's/^X-L//'`
19027                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
19028                    found_dir="$dir"
19029                    found_so="$dir/lib$name.$shlibext"
19030                    if test -f "$dir/lib$name.la"; then
19031                      found_la="$dir/lib$name.la"
19032                    fi
19033                  else
19034                    if test -f "$dir/lib$name.$libext"; then
19035                      found_dir="$dir"
19036                      found_a="$dir/lib$name.$libext"
19037                      if test -f "$dir/lib$name.la"; then
19038                        found_la="$dir/lib$name.la"
19039                      fi
19040                    fi
19041                  fi
19042                  ;;
19043              esac
19044              if test "X$found_dir" != "X"; then
19045                break
19046              fi
19047            done
19048          fi
19049          if test "X$found_dir" != "X"; then
19050                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
19051            if test "X$found_so" != "X"; then
19052                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
19053                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19054              else
19055                                                                                haveit=
19056                for x in $ltrpathdirs; do
19057                  if test "X$x" = "X$found_dir"; then
19058                    haveit=yes
19059                    break
19060                  fi
19061                done
19062                if test -z "$haveit"; then
19063                  ltrpathdirs="$ltrpathdirs $found_dir"
19064                fi
19065                                if test "$hardcode_direct" = yes; then
19066                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19067                else
19068                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
19069                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19070                                                            haveit=
19071                    for x in $rpathdirs; do
19072                      if test "X$x" = "X$found_dir"; then
19073                        haveit=yes
19074                        break
19075                      fi
19076                    done
19077                    if test -z "$haveit"; then
19078                      rpathdirs="$rpathdirs $found_dir"
19079                    fi
19080                  else
19081                                                                                haveit=
19082                    for x in $LDFLAGS $LIBICONV; do
19083
19084  acl_save_prefix="$prefix"
19085  prefix="$acl_final_prefix"
19086  acl_save_exec_prefix="$exec_prefix"
19087  exec_prefix="$acl_final_exec_prefix"
19088  eval x=\"$x\"
19089  exec_prefix="$acl_save_exec_prefix"
19090  prefix="$acl_save_prefix"
19091
19092                      if test "X$x" = "X-L$found_dir"; then
19093                        haveit=yes
19094                        break
19095                      fi
19096                    done
19097                    if test -z "$haveit"; then
19098                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
19099                    fi
19100                    if test "$hardcode_minus_L" != no; then
19101                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19102                    else
19103                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
19104                    fi
19105                  fi
19106                fi
19107              fi
19108            else
19109              if test "X$found_a" != "X"; then
19110                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
19111              else
19112                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
19113              fi
19114            fi
19115                        additional_includedir=
19116            case "$found_dir" in
19117              */lib | */lib/)
19118                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
19119                additional_includedir="$basedir/include"
19120                ;;
19121            esac
19122            if test "X$additional_includedir" != "X"; then
19123                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
19124                haveit=
19125                if test "X$additional_includedir" = "X/usr/local/include"; then
19126                  if test -n "$GCC"; then
19127                    case $host_os in
19128                      linux*) haveit=yes;;
19129                    esac
19130                  fi
19131                fi
19132                if test -z "$haveit"; then
19133                  for x in $CPPFLAGS $INCICONV; do
19134
19135  acl_save_prefix="$prefix"
19136  prefix="$acl_final_prefix"
19137  acl_save_exec_prefix="$exec_prefix"
19138  exec_prefix="$acl_final_exec_prefix"
19139  eval x=\"$x\"
19140  exec_prefix="$acl_save_exec_prefix"
19141  prefix="$acl_save_prefix"
19142
19143                    if test "X$x" = "X-I$additional_includedir"; then
19144                      haveit=yes
19145                      break
19146                    fi
19147                  done
19148                  if test -z "$haveit"; then
19149                    if test -d "$additional_includedir"; then
19150                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
19151                    fi
19152                  fi
19153                fi
19154              fi
19155            fi
19156                        if test -n "$found_la"; then
19157                                                        save_libdir="$libdir"
19158              case "$found_la" in
19159                */* | *\\*) . "$found_la" ;;
19160                *) . "./$found_la" ;;
19161              esac
19162              libdir="$save_libdir"
19163                            for dep in $dependency_libs; do
19164                case "$dep" in
19165                  -L*)
19166                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
19167                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
19168                      haveit=
19169                      if test "X$additional_libdir" = "X/usr/local/lib"; then
19170                        if test -n "$GCC"; then
19171                          case $host_os in
19172                            linux*) haveit=yes;;
19173                          esac
19174                        fi
19175                      fi
19176                      if test -z "$haveit"; then
19177                        haveit=
19178                        for x in $LDFLAGS $LIBICONV; do
19179
19180  acl_save_prefix="$prefix"
19181  prefix="$acl_final_prefix"
19182  acl_save_exec_prefix="$exec_prefix"
19183  exec_prefix="$acl_final_exec_prefix"
19184  eval x=\"$x\"
19185  exec_prefix="$acl_save_exec_prefix"
19186  prefix="$acl_save_prefix"
19187
19188                          if test "X$x" = "X-L$additional_libdir"; then
19189                            haveit=yes
19190                            break
19191                          fi
19192                        done
19193                        if test -z "$haveit"; then
19194                          if test -d "$additional_libdir"; then
19195                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
19196                          fi
19197                        fi
19198                        haveit=
19199                        for x in $LDFLAGS $LTLIBICONV; do
19200
19201  acl_save_prefix="$prefix"
19202  prefix="$acl_final_prefix"
19203  acl_save_exec_prefix="$exec_prefix"
19204  exec_prefix="$acl_final_exec_prefix"
19205  eval x=\"$x\"
19206  exec_prefix="$acl_save_exec_prefix"
19207  prefix="$acl_save_prefix"
19208
19209                          if test "X$x" = "X-L$additional_libdir"; then
19210                            haveit=yes
19211                            break
19212                          fi
19213                        done
19214                        if test -z "$haveit"; then
19215                          if test -d "$additional_libdir"; then
19216                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
19217                          fi
19218                        fi
19219                      fi
19220                    fi
19221                    ;;
19222                  -R*)
19223                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
19224                    if test "$enable_rpath" != no; then
19225                                                                  haveit=
19226                      for x in $rpathdirs; do
19227                        if test "X$x" = "X$dir"; then
19228                          haveit=yes
19229                          break
19230                        fi
19231                      done
19232                      if test -z "$haveit"; then
19233                        rpathdirs="$rpathdirs $dir"
19234                      fi
19235                                                                  haveit=
19236                      for x in $ltrpathdirs; do
19237                        if test "X$x" = "X$dir"; then
19238                          haveit=yes
19239                          break
19240                        fi
19241                      done
19242                      if test -z "$haveit"; then
19243                        ltrpathdirs="$ltrpathdirs $dir"
19244                      fi
19245                    fi
19246                    ;;
19247                  -l*)
19248                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19249                    ;;
19250                  *.la)
19251                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19252                    ;;
19253                  *)
19254                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
19255                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
19256                    ;;
19257                esac
19258              done
19259            fi
19260          else
19261                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
19262            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
19263          fi
19264        fi
19265      fi
19266    done
19267  done
19268  if test "X$rpathdirs" != "X"; then
19269    if test -n "$hardcode_libdir_separator"; then
19270                        alldirs=
19271      for found_dir in $rpathdirs; do
19272        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
19273      done
19274            acl_save_libdir="$libdir"
19275      libdir="$alldirs"
19276      eval flag=\"$hardcode_libdir_flag_spec\"
19277      libdir="$acl_save_libdir"
19278      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
19279    else
19280            for found_dir in $rpathdirs; do
19281        acl_save_libdir="$libdir"
19282        libdir="$found_dir"
19283        eval flag=\"$hardcode_libdir_flag_spec\"
19284        libdir="$acl_save_libdir"
19285        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
19286      done
19287    fi
19288  fi
19289  if test "X$ltrpathdirs" != "X"; then
19290            for found_dir in $ltrpathdirs; do
19291      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
19292    done
19293  fi
19294
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305
19306
19307
19308
19309
19310
19311
19312  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
19313$as_echo_n "checking whether NLS is requested... " >&6; }
19314    # Check whether --enable-nls was given.
19315if test "${enable_nls+set}" = set; then :
19316  enableval=$enable_nls; USE_NLS=$enableval
19317else
19318  USE_NLS=yes
19319fi
19320
19321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
19322$as_echo "$USE_NLS" >&6; }
19323
19324
19325
19326
19327  LIBINTL=
19328  LTLIBINTL=
19329  POSUB=
19330
19331    if test "$USE_NLS" = "yes"; then
19332    gt_use_preinstalled_gnugettext=no
19333
19334
19335
19336
19337
19338
19339        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
19340$as_echo_n "checking for GNU gettext in libc... " >&6; }
19341if ${gt_cv_func_gnugettext1_libc+:} false; then :
19342  $as_echo_n "(cached) " >&6
19343else
19344  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19345/* end confdefs.h.  */
19346#include <libintl.h>
19347extern int _nl_msg_cat_cntr;
19348extern int *_nl_domain_bindings;
19349int
19350main ()
19351{
19352bindtextdomain ("", "");
19353return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
19354  ;
19355  return 0;
19356}
19357_ACEOF
19358if ac_fn_c_try_link "$LINENO"; then :
19359  gt_cv_func_gnugettext1_libc=yes
19360else
19361  gt_cv_func_gnugettext1_libc=no
19362fi
19363rm -f core conftest.err conftest.$ac_objext \
19364    conftest$ac_exeext conftest.$ac_ext
19365fi
19366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
19367$as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
19368
19369        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
19370
19371
19372
19373
19374
19375          am_save_CPPFLAGS="$CPPFLAGS"
19376
19377  for element in $INCICONV; do
19378    haveit=
19379    for x in $CPPFLAGS; do
19380
19381  acl_save_prefix="$prefix"
19382  prefix="$acl_final_prefix"
19383  acl_save_exec_prefix="$exec_prefix"
19384  exec_prefix="$acl_final_exec_prefix"
19385  eval x=\"$x\"
19386  exec_prefix="$acl_save_exec_prefix"
19387  prefix="$acl_save_prefix"
19388
19389      if test "X$x" = "X$element"; then
19390        haveit=yes
19391        break
19392      fi
19393    done
19394    if test -z "$haveit"; then
19395      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19396    fi
19397  done
19398
19399
19400  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
19401$as_echo_n "checking for iconv... " >&6; }
19402if ${am_cv_func_iconv+:} false; then :
19403  $as_echo_n "(cached) " >&6
19404else
19405
19406    am_cv_func_iconv="no, consider installing GNU libiconv"
19407    am_cv_lib_iconv=no
19408    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19409/* end confdefs.h.  */
19410#include <stdlib.h>
19411#include <iconv.h>
19412int
19413main ()
19414{
19415iconv_t cd = iconv_open("","");
19416       iconv(cd,NULL,NULL,NULL,NULL);
19417       iconv_close(cd);
19418  ;
19419  return 0;
19420}
19421_ACEOF
19422if ac_fn_c_try_link "$LINENO"; then :
19423  am_cv_func_iconv=yes
19424fi
19425rm -f core conftest.err conftest.$ac_objext \
19426    conftest$ac_exeext conftest.$ac_ext
19427    if test "$am_cv_func_iconv" != yes; then
19428      am_save_LIBS="$LIBS"
19429      LIBS="$LIBS $LIBICONV"
19430      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19431/* end confdefs.h.  */
19432#include <stdlib.h>
19433#include <iconv.h>
19434int
19435main ()
19436{
19437iconv_t cd = iconv_open("","");
19438         iconv(cd,NULL,NULL,NULL,NULL);
19439         iconv_close(cd);
19440  ;
19441  return 0;
19442}
19443_ACEOF
19444if ac_fn_c_try_link "$LINENO"; then :
19445  am_cv_lib_iconv=yes
19446        am_cv_func_iconv=yes
19447fi
19448rm -f core conftest.err conftest.$ac_objext \
19449    conftest$ac_exeext conftest.$ac_ext
19450      LIBS="$am_save_LIBS"
19451    fi
19452
19453fi
19454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
19455$as_echo "$am_cv_func_iconv" >&6; }
19456  if test "$am_cv_func_iconv" = yes; then
19457
19458$as_echo "#define HAVE_ICONV 1" >>confdefs.h
19459
19460  fi
19461  if test "$am_cv_lib_iconv" = yes; then
19462    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
19463$as_echo_n "checking how to link with libiconv... " >&6; }
19464    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
19465$as_echo "$LIBICONV" >&6; }
19466  else
19467            CPPFLAGS="$am_save_CPPFLAGS"
19468    LIBICONV=
19469    LTLIBICONV=
19470  fi
19471
19472
19473
19474
19475
19476
19477    use_additional=yes
19478
19479  acl_save_prefix="$prefix"
19480  prefix="$acl_final_prefix"
19481  acl_save_exec_prefix="$exec_prefix"
19482  exec_prefix="$acl_final_exec_prefix"
19483
19484    eval additional_includedir=\"$includedir\"
19485    eval additional_libdir=\"$libdir\"
19486
19487  exec_prefix="$acl_save_exec_prefix"
19488  prefix="$acl_save_prefix"
19489
19490
19491# Check whether --with-libintl-prefix was given.
19492if test "${with_libintl_prefix+set}" = set; then :
19493  withval=$with_libintl_prefix;
19494    if test "X$withval" = "Xno"; then
19495      use_additional=no
19496    else
19497      if test "X$withval" = "X"; then
19498
19499  acl_save_prefix="$prefix"
19500  prefix="$acl_final_prefix"
19501  acl_save_exec_prefix="$exec_prefix"
19502  exec_prefix="$acl_final_exec_prefix"
19503
19504          eval additional_includedir=\"$includedir\"
19505          eval additional_libdir=\"$libdir\"
19506
19507  exec_prefix="$acl_save_exec_prefix"
19508  prefix="$acl_save_prefix"
19509
19510      else
19511        additional_includedir="$withval/include"
19512        additional_libdir="$withval/lib"
19513      fi
19514    fi
19515
19516fi
19517
19518      LIBINTL=
19519  LTLIBINTL=
19520  INCINTL=
19521  rpathdirs=
19522  ltrpathdirs=
19523  names_already_handled=
19524  names_next_round='intl '
19525  while test -n "$names_next_round"; do
19526    names_this_round="$names_next_round"
19527    names_next_round=
19528    for name in $names_this_round; do
19529      already_handled=
19530      for n in $names_already_handled; do
19531        if test "$n" = "$name"; then
19532          already_handled=yes
19533          break
19534        fi
19535      done
19536      if test -z "$already_handled"; then
19537        names_already_handled="$names_already_handled $name"
19538                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
19539        eval value=\"\$HAVE_LIB$uppername\"
19540        if test -n "$value"; then
19541          if test "$value" = yes; then
19542            eval value=\"\$LIB$uppername\"
19543            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
19544            eval value=\"\$LTLIB$uppername\"
19545            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
19546          else
19547                                    :
19548          fi
19549        else
19550                              found_dir=
19551          found_la=
19552          found_so=
19553          found_a=
19554          if test $use_additional = yes; then
19555            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
19556              found_dir="$additional_libdir"
19557              found_so="$additional_libdir/lib$name.$shlibext"
19558              if test -f "$additional_libdir/lib$name.la"; then
19559                found_la="$additional_libdir/lib$name.la"
19560              fi
19561            else
19562              if test -f "$additional_libdir/lib$name.$libext"; then
19563                found_dir="$additional_libdir"
19564                found_a="$additional_libdir/lib$name.$libext"
19565                if test -f "$additional_libdir/lib$name.la"; then
19566                  found_la="$additional_libdir/lib$name.la"
19567                fi
19568              fi
19569            fi
19570          fi
19571          if test "X$found_dir" = "X"; then
19572            for x in $LDFLAGS $LTLIBINTL; do
19573
19574  acl_save_prefix="$prefix"
19575  prefix="$acl_final_prefix"
19576  acl_save_exec_prefix="$exec_prefix"
19577  exec_prefix="$acl_final_exec_prefix"
19578  eval x=\"$x\"
19579  exec_prefix="$acl_save_exec_prefix"
19580  prefix="$acl_save_prefix"
19581
19582              case "$x" in
19583                -L*)
19584                  dir=`echo "X$x" | sed -e 's/^X-L//'`
19585                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
19586                    found_dir="$dir"
19587                    found_so="$dir/lib$name.$shlibext"
19588                    if test -f "$dir/lib$name.la"; then
19589                      found_la="$dir/lib$name.la"
19590                    fi
19591                  else
19592                    if test -f "$dir/lib$name.$libext"; then
19593                      found_dir="$dir"
19594                      found_a="$dir/lib$name.$libext"
19595                      if test -f "$dir/lib$name.la"; then
19596                        found_la="$dir/lib$name.la"
19597                      fi
19598                    fi
19599                  fi
19600                  ;;
19601              esac
19602              if test "X$found_dir" != "X"; then
19603                break
19604              fi
19605            done
19606          fi
19607          if test "X$found_dir" != "X"; then
19608                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
19609            if test "X$found_so" != "X"; then
19610                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
19611                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19612              else
19613                                                                                haveit=
19614                for x in $ltrpathdirs; do
19615                  if test "X$x" = "X$found_dir"; then
19616                    haveit=yes
19617                    break
19618                  fi
19619                done
19620                if test -z "$haveit"; then
19621                  ltrpathdirs="$ltrpathdirs $found_dir"
19622                fi
19623                                if test "$hardcode_direct" = yes; then
19624                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19625                else
19626                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
19627                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19628                                                            haveit=
19629                    for x in $rpathdirs; do
19630                      if test "X$x" = "X$found_dir"; then
19631                        haveit=yes
19632                        break
19633                      fi
19634                    done
19635                    if test -z "$haveit"; then
19636                      rpathdirs="$rpathdirs $found_dir"
19637                    fi
19638                  else
19639                                                                                haveit=
19640                    for x in $LDFLAGS $LIBINTL; do
19641
19642  acl_save_prefix="$prefix"
19643  prefix="$acl_final_prefix"
19644  acl_save_exec_prefix="$exec_prefix"
19645  exec_prefix="$acl_final_exec_prefix"
19646  eval x=\"$x\"
19647  exec_prefix="$acl_save_exec_prefix"
19648  prefix="$acl_save_prefix"
19649
19650                      if test "X$x" = "X-L$found_dir"; then
19651                        haveit=yes
19652                        break
19653                      fi
19654                    done
19655                    if test -z "$haveit"; then
19656                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
19657                    fi
19658                    if test "$hardcode_minus_L" != no; then
19659                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19660                    else
19661                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
19662                    fi
19663                  fi
19664                fi
19665              fi
19666            else
19667              if test "X$found_a" != "X"; then
19668                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
19669              else
19670                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
19671              fi
19672            fi
19673                        additional_includedir=
19674            case "$found_dir" in
19675              */lib | */lib/)
19676                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
19677                additional_includedir="$basedir/include"
19678                ;;
19679            esac
19680            if test "X$additional_includedir" != "X"; then
19681                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
19682                haveit=
19683                if test "X$additional_includedir" = "X/usr/local/include"; then
19684                  if test -n "$GCC"; then
19685                    case $host_os in
19686                      linux*) haveit=yes;;
19687                    esac
19688                  fi
19689                fi
19690                if test -z "$haveit"; then
19691                  for x in $CPPFLAGS $INCINTL; do
19692
19693  acl_save_prefix="$prefix"
19694  prefix="$acl_final_prefix"
19695  acl_save_exec_prefix="$exec_prefix"
19696  exec_prefix="$acl_final_exec_prefix"
19697  eval x=\"$x\"
19698  exec_prefix="$acl_save_exec_prefix"
19699  prefix="$acl_save_prefix"
19700
19701                    if test "X$x" = "X-I$additional_includedir"; then
19702                      haveit=yes
19703                      break
19704                    fi
19705                  done
19706                  if test -z "$haveit"; then
19707                    if test -d "$additional_includedir"; then
19708                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
19709                    fi
19710                  fi
19711                fi
19712              fi
19713            fi
19714                        if test -n "$found_la"; then
19715                                                        save_libdir="$libdir"
19716              case "$found_la" in
19717                */* | *\\*) . "$found_la" ;;
19718                *) . "./$found_la" ;;
19719              esac
19720              libdir="$save_libdir"
19721                            for dep in $dependency_libs; do
19722                case "$dep" in
19723                  -L*)
19724                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
19725                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
19726                      haveit=
19727                      if test "X$additional_libdir" = "X/usr/local/lib"; then
19728                        if test -n "$GCC"; then
19729                          case $host_os in
19730                            linux*) haveit=yes;;
19731                          esac
19732                        fi
19733                      fi
19734                      if test -z "$haveit"; then
19735                        haveit=
19736                        for x in $LDFLAGS $LIBINTL; do
19737
19738  acl_save_prefix="$prefix"
19739  prefix="$acl_final_prefix"
19740  acl_save_exec_prefix="$exec_prefix"
19741  exec_prefix="$acl_final_exec_prefix"
19742  eval x=\"$x\"
19743  exec_prefix="$acl_save_exec_prefix"
19744  prefix="$acl_save_prefix"
19745
19746                          if test "X$x" = "X-L$additional_libdir"; then
19747                            haveit=yes
19748                            break
19749                          fi
19750                        done
19751                        if test -z "$haveit"; then
19752                          if test -d "$additional_libdir"; then
19753                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
19754                          fi
19755                        fi
19756                        haveit=
19757                        for x in $LDFLAGS $LTLIBINTL; do
19758
19759  acl_save_prefix="$prefix"
19760  prefix="$acl_final_prefix"
19761  acl_save_exec_prefix="$exec_prefix"
19762  exec_prefix="$acl_final_exec_prefix"
19763  eval x=\"$x\"
19764  exec_prefix="$acl_save_exec_prefix"
19765  prefix="$acl_save_prefix"
19766
19767                          if test "X$x" = "X-L$additional_libdir"; then
19768                            haveit=yes
19769                            break
19770                          fi
19771                        done
19772                        if test -z "$haveit"; then
19773                          if test -d "$additional_libdir"; then
19774                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
19775                          fi
19776                        fi
19777                      fi
19778                    fi
19779                    ;;
19780                  -R*)
19781                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
19782                    if test "$enable_rpath" != no; then
19783                                                                  haveit=
19784                      for x in $rpathdirs; do
19785                        if test "X$x" = "X$dir"; then
19786                          haveit=yes
19787                          break
19788                        fi
19789                      done
19790                      if test -z "$haveit"; then
19791                        rpathdirs="$rpathdirs $dir"
19792                      fi
19793                                                                  haveit=
19794                      for x in $ltrpathdirs; do
19795                        if test "X$x" = "X$dir"; then
19796                          haveit=yes
19797                          break
19798                        fi
19799                      done
19800                      if test -z "$haveit"; then
19801                        ltrpathdirs="$ltrpathdirs $dir"
19802                      fi
19803                    fi
19804                    ;;
19805                  -l*)
19806                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19807                    ;;
19808                  *.la)
19809                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19810                    ;;
19811                  *)
19812                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
19813                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
19814                    ;;
19815                esac
19816              done
19817            fi
19818          else
19819                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
19820            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
19821          fi
19822        fi
19823      fi
19824    done
19825  done
19826  if test "X$rpathdirs" != "X"; then
19827    if test -n "$hardcode_libdir_separator"; then
19828                        alldirs=
19829      for found_dir in $rpathdirs; do
19830        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
19831      done
19832            acl_save_libdir="$libdir"
19833      libdir="$alldirs"
19834      eval flag=\"$hardcode_libdir_flag_spec\"
19835      libdir="$acl_save_libdir"
19836      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
19837    else
19838            for found_dir in $rpathdirs; do
19839        acl_save_libdir="$libdir"
19840        libdir="$found_dir"
19841        eval flag=\"$hardcode_libdir_flag_spec\"
19842        libdir="$acl_save_libdir"
19843        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
19844      done
19845    fi
19846  fi
19847  if test "X$ltrpathdirs" != "X"; then
19848            for found_dir in $ltrpathdirs; do
19849      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
19850    done
19851  fi
19852
19853          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
19854$as_echo_n "checking for GNU gettext in libintl... " >&6; }
19855if ${gt_cv_func_gnugettext1_libintl+:} false; then :
19856  $as_echo_n "(cached) " >&6
19857else
19858  gt_save_CPPFLAGS="$CPPFLAGS"
19859            CPPFLAGS="$CPPFLAGS $INCINTL"
19860            gt_save_LIBS="$LIBS"
19861            LIBS="$LIBS $LIBINTL"
19862                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19863/* end confdefs.h.  */
19864#include <libintl.h>
19865extern int _nl_msg_cat_cntr;
19866extern
19867#ifdef __cplusplus
19868"C"
19869#endif
19870const char *_nl_expand_alias ();
19871int
19872main ()
19873{
19874bindtextdomain ("", "");
19875return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
19876  ;
19877  return 0;
19878}
19879_ACEOF
19880if ac_fn_c_try_link "$LINENO"; then :
19881  gt_cv_func_gnugettext1_libintl=yes
19882else
19883  gt_cv_func_gnugettext1_libintl=no
19884fi
19885rm -f core conftest.err conftest.$ac_objext \
19886    conftest$ac_exeext conftest.$ac_ext
19887                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
19888              LIBS="$LIBS $LIBICONV"
19889              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19890/* end confdefs.h.  */
19891#include <libintl.h>
19892extern int _nl_msg_cat_cntr;
19893extern
19894#ifdef __cplusplus
19895"C"
19896#endif
19897const char *_nl_expand_alias ();
19898int
19899main ()
19900{
19901bindtextdomain ("", "");
19902return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
19903  ;
19904  return 0;
19905}
19906_ACEOF
19907if ac_fn_c_try_link "$LINENO"; then :
19908  LIBINTL="$LIBINTL $LIBICONV"
19909                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
19910                gt_cv_func_gnugettext1_libintl=yes
19911
19912fi
19913rm -f core conftest.err conftest.$ac_objext \
19914    conftest$ac_exeext conftest.$ac_ext
19915            fi
19916            CPPFLAGS="$gt_save_CPPFLAGS"
19917            LIBS="$gt_save_LIBS"
19918fi
19919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
19920$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
19921        fi
19922
19923                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
19924           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
19925                && test "$PACKAGE" != gettext-runtime \
19926                && test "$PACKAGE" != gettext-tools; }; then
19927          gt_use_preinstalled_gnugettext=yes
19928        else
19929                    LIBINTL=
19930          LTLIBINTL=
19931          INCINTL=
19932        fi
19933
19934
19935
19936    if test "$gt_use_preinstalled_gnugettext" = "yes" \
19937       || test "$nls_cv_use_gnu_gettext" = "yes"; then
19938
19939$as_echo "#define ENABLE_NLS 1" >>confdefs.h
19940
19941    else
19942      USE_NLS=no
19943    fi
19944  fi
19945
19946  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
19947$as_echo_n "checking whether to use NLS... " >&6; }
19948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
19949$as_echo "$USE_NLS" >&6; }
19950  if test "$USE_NLS" = "yes"; then
19951    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
19952$as_echo_n "checking where the gettext function comes from... " >&6; }
19953    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
19954      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
19955        gt_source="external libintl"
19956      else
19957        gt_source="libc"
19958      fi
19959    else
19960      gt_source="included intl directory"
19961    fi
19962    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
19963$as_echo "$gt_source" >&6; }
19964  fi
19965
19966  if test "$USE_NLS" = "yes"; then
19967
19968    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
19969      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
19970        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
19971$as_echo_n "checking how to link with libintl... " >&6; }
19972        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
19973$as_echo "$LIBINTL" >&6; }
19974
19975  for element in $INCINTL; do
19976    haveit=
19977    for x in $CPPFLAGS; do
19978
19979  acl_save_prefix="$prefix"
19980  prefix="$acl_final_prefix"
19981  acl_save_exec_prefix="$exec_prefix"
19982  exec_prefix="$acl_final_exec_prefix"
19983  eval x=\"$x\"
19984  exec_prefix="$acl_save_exec_prefix"
19985  prefix="$acl_save_prefix"
19986
19987      if test "X$x" = "X$element"; then
19988        haveit=yes
19989        break
19990      fi
19991    done
19992    if test -z "$haveit"; then
19993      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19994    fi
19995  done
19996
19997      fi
19998
19999
20000$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
20001
20002
20003$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
20004
20005    fi
20006
20007        POSUB=po
20008  fi
20009
20010
20011
20012    INTLLIBS="$LIBINTL"
20013
20014
20015
20016
20017
20018
20019
20020
20021
20022
20023# Prepare PATH_SEPARATOR.
20024# The user is always right.
20025if test "${PATH_SEPARATOR+set}" != set; then
20026  echo "#! /bin/sh" >conf$$.sh
20027  echo  "exit 0"   >>conf$$.sh
20028  chmod +x conf$$.sh
20029  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20030    PATH_SEPARATOR=';'
20031  else
20032    PATH_SEPARATOR=:
20033  fi
20034  rm -f conf$$.sh
20035fi
20036
20037# Find out how to test for executable files. Don't use a zero-byte file,
20038# as systems may use methods other than mode bits to determine executability.
20039cat >conf$$.file <<_ASEOF
20040#! /bin/sh
20041exit 0
20042_ASEOF
20043chmod +x conf$$.file
20044if test -x conf$$.file >/dev/null 2>&1; then
20045  ac_executable_p="test -x"
20046else
20047  ac_executable_p="test -f"
20048fi
20049rm -f conf$$.file
20050
20051# Extract the first word of "msgfmt", so it can be a program name with args.
20052set dummy msgfmt; ac_word=$2
20053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20054$as_echo_n "checking for $ac_word... " >&6; }
20055if ${ac_cv_path_MSGFMT+:} false; then :
20056  $as_echo_n "(cached) " >&6
20057else
20058  case "$MSGFMT" in
20059  [\\/]* | ?:[\\/]*)
20060    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
20061    ;;
20062  *)
20063    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
20064    for ac_dir in $PATH; do
20065      IFS="$ac_save_IFS"
20066      test -z "$ac_dir" && ac_dir=.
20067      for ac_exec_ext in '' $ac_executable_extensions; do
20068        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
20069          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
20070     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
20071            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
20072            break 2
20073          fi
20074        fi
20075      done
20076    done
20077    IFS="$ac_save_IFS"
20078  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
20079    ;;
20080esac
20081fi
20082MSGFMT="$ac_cv_path_MSGFMT"
20083if test "$MSGFMT" != ":"; then
20084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
20085$as_echo "$MSGFMT" >&6; }
20086else
20087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20088$as_echo "no" >&6; }
20089fi
20090
20091  # Extract the first word of "gmsgfmt", so it can be a program name with args.
20092set dummy gmsgfmt; ac_word=$2
20093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20094$as_echo_n "checking for $ac_word... " >&6; }
20095if ${ac_cv_path_GMSGFMT+:} false; then :
20096  $as_echo_n "(cached) " >&6
20097else
20098  case $GMSGFMT in
20099  [\\/]* | ?:[\\/]*)
20100  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
20101  ;;
20102  *)
20103  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20104for as_dir in $PATH
20105do
20106  IFS=$as_save_IFS
20107  test -z "$as_dir" && as_dir=.
20108    for ac_exec_ext in '' $ac_executable_extensions; do
20109  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20110    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
20111    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20112    break 2
20113  fi
20114done
20115  done
20116IFS=$as_save_IFS
20117
20118  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
20119  ;;
20120esac
20121fi
20122GMSGFMT=$ac_cv_path_GMSGFMT
20123if test -n "$GMSGFMT"; then
20124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
20125$as_echo "$GMSGFMT" >&6; }
20126else
20127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20128$as_echo "no" >&6; }
20129fi
20130
20131
20132
20133
20134# Prepare PATH_SEPARATOR.
20135# The user is always right.
20136if test "${PATH_SEPARATOR+set}" != set; then
20137  echo "#! /bin/sh" >conf$$.sh
20138  echo  "exit 0"   >>conf$$.sh
20139  chmod +x conf$$.sh
20140  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20141    PATH_SEPARATOR=';'
20142  else
20143    PATH_SEPARATOR=:
20144  fi
20145  rm -f conf$$.sh
20146fi
20147
20148# Find out how to test for executable files. Don't use a zero-byte file,
20149# as systems may use methods other than mode bits to determine executability.
20150cat >conf$$.file <<_ASEOF
20151#! /bin/sh
20152exit 0
20153_ASEOF
20154chmod +x conf$$.file
20155if test -x conf$$.file >/dev/null 2>&1; then
20156  ac_executable_p="test -x"
20157else
20158  ac_executable_p="test -f"
20159fi
20160rm -f conf$$.file
20161
20162# Extract the first word of "xgettext", so it can be a program name with args.
20163set dummy xgettext; ac_word=$2
20164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20165$as_echo_n "checking for $ac_word... " >&6; }
20166if ${ac_cv_path_XGETTEXT+:} false; then :
20167  $as_echo_n "(cached) " >&6
20168else
20169  case "$XGETTEXT" in
20170  [\\/]* | ?:[\\/]*)
20171    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
20172    ;;
20173  *)
20174    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
20175    for ac_dir in $PATH; do
20176      IFS="$ac_save_IFS"
20177      test -z "$ac_dir" && ac_dir=.
20178      for ac_exec_ext in '' $ac_executable_extensions; do
20179        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
20180          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
20181     (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
20182            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
20183            break 2
20184          fi
20185        fi
20186      done
20187    done
20188    IFS="$ac_save_IFS"
20189  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
20190    ;;
20191esac
20192fi
20193XGETTEXT="$ac_cv_path_XGETTEXT"
20194if test "$XGETTEXT" != ":"; then
20195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
20196$as_echo "$XGETTEXT" >&6; }
20197else
20198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20199$as_echo "no" >&6; }
20200fi
20201
20202    rm -f messages.po
20203
20204
20205# Prepare PATH_SEPARATOR.
20206# The user is always right.
20207if test "${PATH_SEPARATOR+set}" != set; then
20208  echo "#! /bin/sh" >conf$$.sh
20209  echo  "exit 0"   >>conf$$.sh
20210  chmod +x conf$$.sh
20211  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20212    PATH_SEPARATOR=';'
20213  else
20214    PATH_SEPARATOR=:
20215  fi
20216  rm -f conf$$.sh
20217fi
20218
20219# Find out how to test for executable files. Don't use a zero-byte file,
20220# as systems may use methods other than mode bits to determine executability.
20221cat >conf$$.file <<_ASEOF
20222#! /bin/sh
20223exit 0
20224_ASEOF
20225chmod +x conf$$.file
20226if test -x conf$$.file >/dev/null 2>&1; then
20227  ac_executable_p="test -x"
20228else
20229  ac_executable_p="test -f"
20230fi
20231rm -f conf$$.file
20232
20233# Extract the first word of "msgmerge", so it can be a program name with args.
20234set dummy msgmerge; ac_word=$2
20235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20236$as_echo_n "checking for $ac_word... " >&6; }
20237if ${ac_cv_path_MSGMERGE+:} false; then :
20238  $as_echo_n "(cached) " >&6
20239else
20240  case "$MSGMERGE" in
20241  [\\/]* | ?:[\\/]*)
20242    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
20243    ;;
20244  *)
20245    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
20246    for ac_dir in $PATH; do
20247      IFS="$ac_save_IFS"
20248      test -z "$ac_dir" && ac_dir=.
20249      for ac_exec_ext in '' $ac_executable_extensions; do
20250        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
20251          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
20252            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
20253            break 2
20254          fi
20255        fi
20256      done
20257    done
20258    IFS="$ac_save_IFS"
20259  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
20260    ;;
20261esac
20262fi
20263MSGMERGE="$ac_cv_path_MSGMERGE"
20264if test "$MSGMERGE" != ":"; then
20265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
20266$as_echo "$MSGMERGE" >&6; }
20267else
20268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20269$as_echo "no" >&6; }
20270fi
20271
20272
20273      if test "$GMSGFMT" != ":"; then
20274            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
20275       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
20276      : ;
20277    else
20278      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
20279      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
20280$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
20281      GMSGFMT=":"
20282    fi
20283  fi
20284
20285      if test "$XGETTEXT" != ":"; then
20286            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
20287       (if $XGETTEXT --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
20288      : ;
20289    else
20290      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
20291$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
20292      XGETTEXT=":"
20293    fi
20294        rm -f messages.po
20295  fi
20296
20297  ac_config_commands="$ac_config_commands default-2"
20298
20299
20300
20301
20302
20303
20304
20305          am_save_CPPFLAGS="$CPPFLAGS"
20306
20307  for element in $INCICONV; do
20308    haveit=
20309    for x in $CPPFLAGS; do
20310
20311  acl_save_prefix="$prefix"
20312  prefix="$acl_final_prefix"
20313  acl_save_exec_prefix="$exec_prefix"
20314  exec_prefix="$acl_final_exec_prefix"
20315  eval x=\"$x\"
20316  exec_prefix="$acl_save_exec_prefix"
20317  prefix="$acl_save_prefix"
20318
20319      if test "X$x" = "X$element"; then
20320        haveit=yes
20321        break
20322      fi
20323    done
20324    if test -z "$haveit"; then
20325      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20326    fi
20327  done
20328
20329
20330  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20331$as_echo_n "checking for iconv... " >&6; }
20332if ${am_cv_func_iconv+:} false; then :
20333  $as_echo_n "(cached) " >&6
20334else
20335
20336    am_cv_func_iconv="no, consider installing GNU libiconv"
20337    am_cv_lib_iconv=no
20338    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20339/* end confdefs.h.  */
20340#include <stdlib.h>
20341#include <iconv.h>
20342int
20343main ()
20344{
20345iconv_t cd = iconv_open("","");
20346       iconv(cd,NULL,NULL,NULL,NULL);
20347       iconv_close(cd);
20348  ;
20349  return 0;
20350}
20351_ACEOF
20352if ac_fn_c_try_link "$LINENO"; then :
20353  am_cv_func_iconv=yes
20354fi
20355rm -f core conftest.err conftest.$ac_objext \
20356    conftest$ac_exeext conftest.$ac_ext
20357    if test "$am_cv_func_iconv" != yes; then
20358      am_save_LIBS="$LIBS"
20359      LIBS="$LIBS $LIBICONV"
20360      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20361/* end confdefs.h.  */
20362#include <stdlib.h>
20363#include <iconv.h>
20364int
20365main ()
20366{
20367iconv_t cd = iconv_open("","");
20368         iconv(cd,NULL,NULL,NULL,NULL);
20369         iconv_close(cd);
20370  ;
20371  return 0;
20372}
20373_ACEOF
20374if ac_fn_c_try_link "$LINENO"; then :
20375  am_cv_lib_iconv=yes
20376        am_cv_func_iconv=yes
20377fi
20378rm -f core conftest.err conftest.$ac_objext \
20379    conftest$ac_exeext conftest.$ac_ext
20380      LIBS="$am_save_LIBS"
20381    fi
20382
20383fi
20384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20385$as_echo "$am_cv_func_iconv" >&6; }
20386  if test "$am_cv_func_iconv" = yes; then
20387
20388$as_echo "#define HAVE_ICONV 1" >>confdefs.h
20389
20390  fi
20391  if test "$am_cv_lib_iconv" = yes; then
20392    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20393$as_echo_n "checking how to link with libiconv... " >&6; }
20394    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20395$as_echo "$LIBICONV" >&6; }
20396  else
20397            CPPFLAGS="$am_save_CPPFLAGS"
20398    LIBICONV=
20399    LTLIBICONV=
20400  fi
20401
20402
20403
20404  if test "$am_cv_func_iconv" = yes; then
20405    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20406$as_echo_n "checking for iconv declaration... " >&6; }
20407    if ${am_cv_proto_iconv+:} false; then :
20408  $as_echo_n "(cached) " >&6
20409else
20410
20411      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20412/* end confdefs.h.  */
20413
20414#include <stdlib.h>
20415#include <iconv.h>
20416extern
20417#ifdef __cplusplus
20418"C"
20419#endif
20420#if defined(__STDC__) || defined(__cplusplus)
20421size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20422#else
20423size_t iconv();
20424#endif
20425
20426int
20427main ()
20428{
20429
20430  ;
20431  return 0;
20432}
20433_ACEOF
20434if ac_fn_c_try_compile "$LINENO"; then :
20435  am_cv_proto_iconv_arg1=""
20436else
20437  am_cv_proto_iconv_arg1="const"
20438fi
20439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20440      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
20441fi
20442
20443    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20444    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20445         }$am_cv_proto_iconv" >&5
20446$as_echo "${ac_t:-
20447         }$am_cv_proto_iconv" >&6; }
20448
20449cat >>confdefs.h <<_ACEOF
20450#define ICONV_CONST $am_cv_proto_iconv_arg1
20451_ACEOF
20452
20453  fi
20454
20455
20456
20457
20458if test "x${BUILD_INCLUDED_LIBINTL}" = "xyes"; then
20459   AM_CFLAGS="${AM_CFLAGS} -I\$(top_srcdir)/intl"
20460fi
20461
20462gp_config_msg_len="$(expr "Use translations" : '.*')"
20463if test "$gp_config_msg_len" -ge "$gp_config_len"; then
20464	gp_config_msg_lhs="$(expr "Use translations" : "\(.\{0,${gp_config_len3}\}\)")..:"
20465else
20466	gp_config_msg_lhs="$(expr "Use translations:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
20467fi
20468gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} ${USE_NLS}
20469"
20470
20471if test "x$USE_NLS" = "xyes" && test "${BUILD_INCLUDED_LIBINTL}"; then
20472
20473gp_config_msg_len="$(expr "Use included libintl" : '.*')"
20474if test "$gp_config_msg_len" -ge "$gp_config_len"; then
20475	gp_config_msg_lhs="$(expr "Use included libintl" : "\(.\{0,${gp_config_len3}\}\)")..:"
20476else
20477	gp_config_msg_lhs="$(expr "Use included libintl:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
20478fi
20479gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} ${BUILD_INCLUDED_LIBINTL}
20480"
20481
20482fi
20483
20484
20485# same trick as with libdl:
20486# if gettext() doesn't require linking against libintl,
20487# we don't have to check for gettext in libintl. Otherwise
20488# we may even require libintl.
20489
20490localedir="\$(datadir)/locale"
20491
20492AM_CPPFLAGS="$AM_CPPFLAGS -DLOCALEDIR=\\\"${localedir}\\\""
20493
20494# Check whether --enable-largefile was given.
20495if test "${enable_largefile+set}" = set; then :
20496  enableval=$enable_largefile;
20497fi
20498
20499if test "$enable_largefile" != no; then
20500
20501  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
20502$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
20503if ${ac_cv_sys_largefile_CC+:} false; then :
20504  $as_echo_n "(cached) " >&6
20505else
20506  ac_cv_sys_largefile_CC=no
20507     if test "$GCC" != yes; then
20508       ac_save_CC=$CC
20509       while :; do
20510	 # IRIX 6.2 and later do not support large files by default,
20511	 # so use the C compiler's -n32 option if that helps.
20512	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20513/* end confdefs.h.  */
20514#include <sys/types.h>
20515 /* Check that off_t can represent 2**63 - 1 correctly.
20516    We can't simply define LARGE_OFF_T to be 9223372036854775807,
20517    since some C++ compilers masquerading as C compilers
20518    incorrectly reject 9223372036854775807.  */
20519#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20520  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20521		       && LARGE_OFF_T % 2147483647 == 1)
20522		      ? 1 : -1];
20523int
20524main ()
20525{
20526
20527  ;
20528  return 0;
20529}
20530_ACEOF
20531	 if ac_fn_c_try_compile "$LINENO"; then :
20532  break
20533fi
20534rm -f core conftest.err conftest.$ac_objext
20535	 CC="$CC -n32"
20536	 if ac_fn_c_try_compile "$LINENO"; then :
20537  ac_cv_sys_largefile_CC=' -n32'; break
20538fi
20539rm -f core conftest.err conftest.$ac_objext
20540	 break
20541       done
20542       CC=$ac_save_CC
20543       rm -f conftest.$ac_ext
20544    fi
20545fi
20546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
20547$as_echo "$ac_cv_sys_largefile_CC" >&6; }
20548  if test "$ac_cv_sys_largefile_CC" != no; then
20549    CC=$CC$ac_cv_sys_largefile_CC
20550  fi
20551
20552  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
20553$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
20554if ${ac_cv_sys_file_offset_bits+:} false; then :
20555  $as_echo_n "(cached) " >&6
20556else
20557  while :; do
20558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20559/* end confdefs.h.  */
20560#include <sys/types.h>
20561 /* Check that off_t can represent 2**63 - 1 correctly.
20562    We can't simply define LARGE_OFF_T to be 9223372036854775807,
20563    since some C++ compilers masquerading as C compilers
20564    incorrectly reject 9223372036854775807.  */
20565#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20566  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20567		       && LARGE_OFF_T % 2147483647 == 1)
20568		      ? 1 : -1];
20569int
20570main ()
20571{
20572
20573  ;
20574  return 0;
20575}
20576_ACEOF
20577if ac_fn_c_try_compile "$LINENO"; then :
20578  ac_cv_sys_file_offset_bits=no; break
20579fi
20580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20582/* end confdefs.h.  */
20583#define _FILE_OFFSET_BITS 64
20584#include <sys/types.h>
20585 /* Check that off_t can represent 2**63 - 1 correctly.
20586    We can't simply define LARGE_OFF_T to be 9223372036854775807,
20587    since some C++ compilers masquerading as C compilers
20588    incorrectly reject 9223372036854775807.  */
20589#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20590  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20591		       && LARGE_OFF_T % 2147483647 == 1)
20592		      ? 1 : -1];
20593int
20594main ()
20595{
20596
20597  ;
20598  return 0;
20599}
20600_ACEOF
20601if ac_fn_c_try_compile "$LINENO"; then :
20602  ac_cv_sys_file_offset_bits=64; break
20603fi
20604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20605  ac_cv_sys_file_offset_bits=unknown
20606  break
20607done
20608fi
20609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
20610$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
20611case $ac_cv_sys_file_offset_bits in #(
20612  no | unknown) ;;
20613  *)
20614cat >>confdefs.h <<_ACEOF
20615#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
20616_ACEOF
20617;;
20618esac
20619rm -rf conftest*
20620  if test $ac_cv_sys_file_offset_bits = unknown; then
20621    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
20622$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
20623if ${ac_cv_sys_large_files+:} false; then :
20624  $as_echo_n "(cached) " >&6
20625else
20626  while :; do
20627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20628/* end confdefs.h.  */
20629#include <sys/types.h>
20630 /* Check that off_t can represent 2**63 - 1 correctly.
20631    We can't simply define LARGE_OFF_T to be 9223372036854775807,
20632    since some C++ compilers masquerading as C compilers
20633    incorrectly reject 9223372036854775807.  */
20634#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20635  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20636		       && LARGE_OFF_T % 2147483647 == 1)
20637		      ? 1 : -1];
20638int
20639main ()
20640{
20641
20642  ;
20643  return 0;
20644}
20645_ACEOF
20646if ac_fn_c_try_compile "$LINENO"; then :
20647  ac_cv_sys_large_files=no; break
20648fi
20649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20651/* end confdefs.h.  */
20652#define _LARGE_FILES 1
20653#include <sys/types.h>
20654 /* Check that off_t can represent 2**63 - 1 correctly.
20655    We can't simply define LARGE_OFF_T to be 9223372036854775807,
20656    since some C++ compilers masquerading as C compilers
20657    incorrectly reject 9223372036854775807.  */
20658#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20659  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20660		       && LARGE_OFF_T % 2147483647 == 1)
20661		      ? 1 : -1];
20662int
20663main ()
20664{
20665
20666  ;
20667  return 0;
20668}
20669_ACEOF
20670if ac_fn_c_try_compile "$LINENO"; then :
20671  ac_cv_sys_large_files=1; break
20672fi
20673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20674  ac_cv_sys_large_files=unknown
20675  break
20676done
20677fi
20678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
20679$as_echo "$ac_cv_sys_large_files" >&6; }
20680case $ac_cv_sys_large_files in #(
20681  no | unknown) ;;
20682  *)
20683cat >>confdefs.h <<_ACEOF
20684#define _LARGE_FILES $ac_cv_sys_large_files
20685_ACEOF
20686;;
20687esac
20688rm -rf conftest*
20689  fi
20690
20691
20692fi
20693
20694
20695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for asm .symver support" >&5
20696$as_echo_n "checking for asm .symver support... " >&6; }
20697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20698/* end confdefs.h.  */
20699
20700		void f1(void);
20701		void f1() {}
20702		void f2(void);
20703		void f2() {}
20704		asm(".symver f1, f@VER1");
20705		asm(".symver f2, f@@VER2");
20706
20707int
20708main ()
20709{
20710
20711  ;
20712  return 0;
20713}
20714_ACEOF
20715if ac_fn_c_try_compile "$LINENO"; then :
20716
20717
20718$as_echo "#define HAVE_ASM_SYMVERS 1" >>confdefs.h
20719
20720	VERSIONMAPLDFLAGS="-Wl,--version-script=\$(srcdir)/libgphoto2.ver"
20721	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20722$as_echo "yes" >&6; }
20723
20724else
20725
20726	VERSIONMAPLDFLAGS=""
20727	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20728$as_echo "no" >&6; }
20729
20730fi
20731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20732
20733
20734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -libs" >&5
20735$as_echo_n "checking for main in -libs... " >&6; }
20736if ${ac_cv_lib_ibs_main+:} false; then :
20737  $as_echo_n "(cached) " >&6
20738else
20739  ac_check_lib_save_LIBS=$LIBS
20740LIBS="-libs  $LIBS"
20741cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20742/* end confdefs.h.  */
20743
20744
20745int
20746main ()
20747{
20748return main ();
20749  ;
20750  return 0;
20751}
20752_ACEOF
20753if ac_fn_c_try_link "$LINENO"; then :
20754  ac_cv_lib_ibs_main=yes
20755else
20756  ac_cv_lib_ibs_main=no
20757fi
20758rm -f core conftest.err conftest.$ac_objext \
20759    conftest$ac_exeext conftest.$ac_ext
20760LIBS=$ac_check_lib_save_LIBS
20761fi
20762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibs_main" >&5
20763$as_echo "$ac_cv_lib_ibs_main" >&6; }
20764if test "x$ac_cv_lib_ibs_main" = xyes; then :
20765  cat >>confdefs.h <<_ACEOF
20766#define HAVE_LIBIBS 1
20767_ACEOF
20768
20769  LIBS="-libs $LIBS"
20770
20771fi
20772
20773
20774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
20775$as_echo_n "checking for sqrt in -lm... " >&6; }
20776if ${ac_cv_lib_m_sqrt+:} false; then :
20777  $as_echo_n "(cached) " >&6
20778else
20779  ac_check_lib_save_LIBS=$LIBS
20780LIBS="-lm  $LIBS"
20781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20782/* end confdefs.h.  */
20783
20784/* Override any GCC internal prototype to avoid an error.
20785   Use char because int might match the return type of a GCC
20786   builtin and then its argument prototype would still apply.  */
20787#ifdef __cplusplus
20788extern "C"
20789#endif
20790char sqrt ();
20791int
20792main ()
20793{
20794return sqrt ();
20795  ;
20796  return 0;
20797}
20798_ACEOF
20799if ac_fn_c_try_link "$LINENO"; then :
20800  ac_cv_lib_m_sqrt=yes
20801else
20802  ac_cv_lib_m_sqrt=no
20803fi
20804rm -f core conftest.err conftest.$ac_objext \
20805    conftest$ac_exeext conftest.$ac_ext
20806LIBS=$ac_check_lib_save_LIBS
20807fi
20808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
20809$as_echo "$ac_cv_lib_m_sqrt" >&6; }
20810if test "x$ac_cv_lib_m_sqrt" = xyes; then :
20811  cat >>confdefs.h <<_ACEOF
20812#define HAVE_LIBM 1
20813_ACEOF
20814
20815  LIBS="-lm $LIBS"
20816
20817fi
20818
20819
20820
20821
20822
20823LIBJPEG=""
20824libjpeg_msg="no"
20825
20826
20827# Check whether --with-jpeg was given.
20828if test "${with_jpeg+set}" = set; then :
20829  withval=$with_jpeg;
20830fi
20831
20832if test "x$with_jpeg" != "xno"; then :
20833
20834	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_start_decompress in -ljpeg" >&5
20835$as_echo_n "checking for jpeg_start_decompress in -ljpeg... " >&6; }
20836if ${ac_cv_lib_jpeg_jpeg_start_decompress+:} false; then :
20837  $as_echo_n "(cached) " >&6
20838else
20839  ac_check_lib_save_LIBS=$LIBS
20840LIBS="-ljpeg  $LIBS"
20841cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20842/* end confdefs.h.  */
20843
20844/* Override any GCC internal prototype to avoid an error.
20845   Use char because int might match the return type of a GCC
20846   builtin and then its argument prototype would still apply.  */
20847#ifdef __cplusplus
20848extern "C"
20849#endif
20850char jpeg_start_decompress ();
20851int
20852main ()
20853{
20854return jpeg_start_decompress ();
20855  ;
20856  return 0;
20857}
20858_ACEOF
20859if ac_fn_c_try_link "$LINENO"; then :
20860  ac_cv_lib_jpeg_jpeg_start_decompress=yes
20861else
20862  ac_cv_lib_jpeg_jpeg_start_decompress=no
20863fi
20864rm -f core conftest.err conftest.$ac_objext \
20865    conftest$ac_exeext conftest.$ac_ext
20866LIBS=$ac_check_lib_save_LIBS
20867fi
20868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
20869$as_echo "$ac_cv_lib_jpeg_jpeg_start_decompress" >&6; }
20870if test "x$ac_cv_lib_jpeg_jpeg_start_decompress" = xyes; then :
20871
20872		ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
20873if test "x$ac_cv_header_jpeglib_h" = xyes; then :
20874
20875
20876$as_echo "#define HAVE_LIBJPEG 1" >>confdefs.h
20877
20878			LIBJPEG="-ljpeg"
20879			libjpeg_msg="yes"
20880
20881fi
20882
20883
20884
20885fi
20886
20887
20888fi
20889
20890gp_config_msg_len="$(expr "JPEG mangling support" : '.*')"
20891if test "$gp_config_msg_len" -ge "$gp_config_len"; then
20892	gp_config_msg_lhs="$(expr "JPEG mangling support" : "\(.\{0,${gp_config_len3}\}\)")..:"
20893else
20894	gp_config_msg_lhs="$(expr "JPEG mangling support:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
20895fi
20896gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} ${libjpeg_msg}
20897"
20898
20899
20900
20901
20902
20903
20904
20905
20906
20907if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20908	if test -n "$ac_tool_prefix"; then
20909  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20910set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20912$as_echo_n "checking for $ac_word... " >&6; }
20913if ${ac_cv_path_PKG_CONFIG+:} false; then :
20914  $as_echo_n "(cached) " >&6
20915else
20916  case $PKG_CONFIG in
20917  [\\/]* | ?:[\\/]*)
20918  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20919  ;;
20920  *)
20921  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20922for as_dir in $PATH
20923do
20924  IFS=$as_save_IFS
20925  test -z "$as_dir" && as_dir=.
20926    for ac_exec_ext in '' $ac_executable_extensions; do
20927  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20928    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20929    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20930    break 2
20931  fi
20932done
20933  done
20934IFS=$as_save_IFS
20935
20936  ;;
20937esac
20938fi
20939PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20940if test -n "$PKG_CONFIG"; then
20941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20942$as_echo "$PKG_CONFIG" >&6; }
20943else
20944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20945$as_echo "no" >&6; }
20946fi
20947
20948
20949fi
20950if test -z "$ac_cv_path_PKG_CONFIG"; then
20951  ac_pt_PKG_CONFIG=$PKG_CONFIG
20952  # Extract the first word of "pkg-config", so it can be a program name with args.
20953set dummy pkg-config; ac_word=$2
20954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20955$as_echo_n "checking for $ac_word... " >&6; }
20956if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
20957  $as_echo_n "(cached) " >&6
20958else
20959  case $ac_pt_PKG_CONFIG in
20960  [\\/]* | ?:[\\/]*)
20961  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20962  ;;
20963  *)
20964  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20965for as_dir in $PATH
20966do
20967  IFS=$as_save_IFS
20968  test -z "$as_dir" && as_dir=.
20969    for ac_exec_ext in '' $ac_executable_extensions; do
20970  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20971    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20972    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20973    break 2
20974  fi
20975done
20976  done
20977IFS=$as_save_IFS
20978
20979  ;;
20980esac
20981fi
20982ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20983if test -n "$ac_pt_PKG_CONFIG"; then
20984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
20985$as_echo "$ac_pt_PKG_CONFIG" >&6; }
20986else
20987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20988$as_echo "no" >&6; }
20989fi
20990
20991  if test "x$ac_pt_PKG_CONFIG" = x; then
20992    PKG_CONFIG=""
20993  else
20994    case $cross_compiling:$ac_tool_warned in
20995yes:)
20996{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20997$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20998ac_tool_warned=yes ;;
20999esac
21000    PKG_CONFIG=$ac_pt_PKG_CONFIG
21001  fi
21002else
21003  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21004fi
21005
21006fi
21007if test -n "$PKG_CONFIG"; then
21008	_pkg_min_version=0.9.0
21009	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
21010$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21011	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21012		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21013$as_echo "yes" >&6; }
21014	else
21015		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21016$as_echo "no" >&6; }
21017		PKG_CONFIG=""
21018	fi
21019fi
21020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dynamic library extension" >&5
21021$as_echo_n "checking for dynamic library extension... " >&6; }
21022soext=""
21023case "$host" in
21024	*linux*)	soext=".so" ;;
21025	*sunos*)	soext=".so" ;;
21026	*solaris*)	soext=".so" ;;
21027	*bsd*)		soext=".so" ;;
21028	*darwin*)	soext=".dylib" ;;
21029	*w32*)		soext=".dll" ;;
21030esac
21031case "$host_os" in
21032	gnu*)		soext=".so" ;;
21033esac
21034if test "x$soext" = "x"; then
21035	soext=".so"
21036	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${soext}" >&5
21037$as_echo "${soext}" >&6; }
21038	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21039Host system \"${host}\" not recognized, defaulting to \"${soext}\".
21040" >&5
21041$as_echo "$as_me: WARNING:
21042Host system \"${host}\" not recognized, defaulting to \"${soext}\".
21043" >&2;}
21044else
21045	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${soext}" >&5
21046$as_echo "${soext}" >&6; }
21047fi
21048
21049
21050# ----------------------------------------------------------------------
21051# [GP_CHECK_LIBRARY]([LIBXML2],[libxml-2.0],[>= 2.0],
21052#                    [libxml/parser.h],[xmlFirstElementChild],
21053#                    [...],[...],[default-on])
21054# http://xmlsoft.org
21055
21056# ----------------------------------------------------------------------
21057# Use _CFLAGS and _LIBS given to configure.
21058# This makes it possible to set these vars in a configure script
21059# and AC_CONFIG_SUBDIRS this configure.
21060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 to use" >&5
21061$as_echo_n "checking for libxml-2.0 to use... " >&6; }
21062REQUIREMENTS_FOR_LIBXML2="libxml-2.0 >= 2.0"
21063userdef_LIBXML2=no
21064have_LIBXML2=no
21065if test "x${LIBXML2_LIBS}" = "x" && test "x${LIBXML2_CFLAGS}" = "x"; then
21066	# define --with/--without argument
21067				try_LIBXML2=auto
21068
21069# Check whether --with-libxml-2.0 was given.
21070if test "${with_libxml_2_0+set}" = set; then :
21071  withval=$with_libxml_2_0; try_LIBXML2="$withval"
21072fi
21073
21074	if test "x${try_LIBXML2}" = "xno"; then
21075              REQUIREMENTS_FOR_LIBXML2=
21076	fi
21077	if test "x${try_LIBXML2}" = "xauto"; then try_LIBXML2=autodetect; fi
21078	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${try_LIBXML2}" >&5
21079$as_echo "${try_LIBXML2}" >&6; }
21080		if test "x${try_LIBXML2}" = "xautodetect"; then
21081		# OK, we have to autodetect.
21082		# We start autodetection with the cleanest known method: pkg-config
21083		if test "x${have_LIBXML2}" = "xno"; then
21084			# we need that line break after the PKG_CHECK_MODULES
21085
21086pkg_failed=no
21087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML2" >&5
21088$as_echo_n "checking for LIBXML2... " >&6; }
21089
21090if test -n "$LIBXML2_CFLAGS"; then
21091    pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
21092 elif test -n "$PKG_CONFIG"; then
21093    if test -n "$PKG_CONFIG" && \
21094    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.0\""; } >&5
21095  ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.0") 2>&5
21096  ac_status=$?
21097  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21098  test $ac_status = 0; }; then
21099  pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.0" 2>/dev/null`
21100		      test "x$?" != "x0" && pkg_failed=yes
21101else
21102  pkg_failed=yes
21103fi
21104 else
21105    pkg_failed=untried
21106fi
21107if test -n "$LIBXML2_LIBS"; then
21108    pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
21109 elif test -n "$PKG_CONFIG"; then
21110    if test -n "$PKG_CONFIG" && \
21111    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.0\""; } >&5
21112  ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.0") 2>&5
21113  ac_status=$?
21114  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21115  test $ac_status = 0; }; then
21116  pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.0" 2>/dev/null`
21117		      test "x$?" != "x0" && pkg_failed=yes
21118else
21119  pkg_failed=yes
21120fi
21121 else
21122    pkg_failed=untried
21123fi
21124
21125
21126
21127if test $pkg_failed = yes; then
21128   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21129$as_echo "no" >&6; }
21130
21131if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21132        _pkg_short_errors_supported=yes
21133else
21134        _pkg_short_errors_supported=no
21135fi
21136        if test $_pkg_short_errors_supported = yes; then
21137	        LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.0" 2>&1`
21138        else
21139	        LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.0" 2>&1`
21140        fi
21141	# Put the nasty error message in config.log where it belongs
21142	echo "$LIBXML2_PKG_ERRORS" >&5
21143
21144	:
21145elif test $pkg_failed = untried; then
21146     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21147$as_echo "no" >&6; }
21148	:
21149else
21150	LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
21151	LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
21152        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21153$as_echo "yes" >&6; }
21154	have_LIBXML2=yes
21155fi
21156		fi
21157		# If pkg-config didn't find anything, try the libfoo-config program
21158		# certain known libraries ship with.
21159		if test "x${have_LIBXML2}" = "xno"; then
21160			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml-2.0 config program" >&5
21161$as_echo_n "checking libxml-2.0 config program... " >&6; }
21162						{ $as_echo "$as_me:${as_lineno-$LINENO}: result: xml2-config" >&5
21163$as_echo "xml2-config" >&6; }
21164			# Extract the first word of "gp_lib_config", so it can be a program name with args.
21165set dummy xml2-config; ac_word=$2
21166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21167$as_echo_n "checking for $ac_word... " >&6; }
21168if ${ac_cv_path_LIBXML2_CONFIG_PROG+:} false; then :
21169  $as_echo_n "(cached) " >&6
21170else
21171  case $LIBXML2_CONFIG_PROG in
21172  [\\/]* | ?:[\\/]*)
21173  ac_cv_path_LIBXML2_CONFIG_PROG="$LIBXML2_CONFIG_PROG" # Let the user override the test with a path.
21174  ;;
21175  *)
21176  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21177for as_dir in $PATH
21178do
21179  IFS=$as_save_IFS
21180  test -z "$as_dir" && as_dir=.
21181    for ac_exec_ext in '' $ac_executable_extensions; do
21182  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21183    ac_cv_path_LIBXML2_CONFIG_PROG="$as_dir/$ac_word$ac_exec_ext"
21184    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21185    break 2
21186  fi
21187done
21188  done
21189IFS=$as_save_IFS
21190
21191  ;;
21192esac
21193fi
21194LIBXML2_CONFIG_PROG=$ac_cv_path_LIBXML2_CONFIG_PROG
21195if test -n "$LIBXML2_CONFIG_PROG"; then
21196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CONFIG_PROG" >&5
21197$as_echo "$LIBXML2_CONFIG_PROG" >&6; }
21198else
21199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21200$as_echo "no" >&6; }
21201fi
21202
21203
21204			if test -n "${LIBXML2_CONFIG_PROG}" &&
21205				test "${LIBXML2_CONFIG_PROG}" != "none"; then
21206
21207				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 version according to xml2-config" >&5
21208$as_echo_n "checking for libxml-2.0 version according to xml2-config... " >&6; }
21209								_LIBXML2_COMPN="-lt"
21210								# split requested version number using m4 regexps
21211				_LIBXML2_REQ_1="2"
21212				_LIBXML2_REQ_2="0"
21213				_LIBXML2_REQ_3=""
21214				_LIBXML2_REQ_4=""
21215				# split installed version number via shell and sed
21216				_LIBXML2_VERSION="$("${LIBXML2_CONFIG_PROG}" --version | sed 's/^.* //')"
21217				_LIBXML2_VER_1="$(echo "${_LIBXML2_VERSION}" | sed 's/\([0-9]*\).*/\1/g')"
21218				_LIBXML2_VER_2="$(echo "${_LIBXML2_VERSION}" | sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/g')"
21219				_LIBXML2_VER_3="$(echo "${_LIBXML2_VERSION}" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/g')"
21220				_LIBXML2_VER_4="$(echo "${_LIBXML2_VERSION}" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)\(.*\)/\4/g')"
21221				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_LIBXML2_VERSION}" >&5
21222$as_echo "${_LIBXML2_VERSION}" >&6; }
21223				_tmp=false
21224				if   test "${_LIBXML2_VER_1}" "${_LIBXML2_COMPN}" "${_LIBXML2_REQ_1}"; then _tmp=true;
21225				elif test "${_LIBXML2_VER_2}" "${_LIBXML2_COMPN}" "${_LIBXML2_REQ_2}"; then _tmp=true;
21226				elif test "${_LIBXML2_VER_3}" "${_LIBXML2_COMPN}" "${_LIBXML2_REQ_3}"; then _tmp=true;
21227				elif test "x${_LIBXML2_VER_4}" = "x" && test "x${_LIBXML2_REQ_4}" != "x"; then _tmp=true;
21228				elif test "${_LIBXML2_VER_4}" "${_LIBXML2_COMPN}" "${_LIBXML2_REQ_4}"; then _tmp=true;
21229				fi
21230				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libxml-2.0 version is matching requirement >= 2.0" >&5
21231$as_echo_n "checking if libxml-2.0 version is matching requirement >= 2.0... " >&6; }
21232				if "${_tmp}"; then
21233				   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21234$as_echo "no" >&6; }
21235				   as_fn_error $? "Version requirement libxml-2.0 >= 2.0 not met. Found: ${_LIBXML2_VERSION}" "$LINENO" 5
21236				else
21237				   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21238$as_echo "yes" >&6; }
21239				fi
21240								{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 parameters from xml2-config" >&5
21241$as_echo_n "checking for libxml-2.0 parameters from xml2-config... " >&6; }
21242				LIBXML2_LIBS="$(${LIBXML2_CONFIG_PROG} --libs || echo "*error*")"
21243				LIBXML2_CFLAGS="$(${LIBXML2_CONFIG_PROG} --cflags || echo "*error*")"
21244				if test "x${LIBXML2_LIBS}" = "*error*" ||
21245					test "x${LIBXML2_CFLAGS}" = "*error*"; then
21246					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
21247$as_echo "error" >&6; }
21248				else
21249					have_LIBXML2=yes
21250					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
21251$as_echo "ok" >&6; }
21252				fi
21253			fi
21254					fi
21255		# Version requirement given, so we do not rely on probing.
21256	elif test "x${try_LIBXML2}" = "xno"; then
21257		:
21258	else
21259		# We've been given a prefix to look in for library libxml-2.0.
21260		# We start looking for libxml-2.0.la files first.
21261		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0.la file in ${try_LIBXML2}" >&5
21262$as_echo_n "checking for libxml-2.0.la file in ${try_LIBXML2}... " >&6; }
21263		if test -f "${try_LIBXML2}/lib/libxml-2.0.la"; then
21264			LIBXML2_LIBS="${try_LIBXML2}/lib/libxml-2.0.la"
21265			LIBXML2_CFLAGS="-I${try_LIBXML2}/include"
21266			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: libtool file $LIBXML2_LIBS (good)" >&5
21267$as_echo "libtool file $LIBXML2_LIBS (good)" >&6; }
21268			have_LIBXML2=yes
21269		elif test -f "${try_LIBXML2}/lib64/libxml-2.0.la"; then # HACK
21270			LIBXML2_LIBS="${try_LIBXML2}/lib64/libxml-2.0.la"
21271			LIBXML2_CFLAGS="-I${try_LIBXML2}/include"
21272			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: libtool file $LIBXML2_LIBS (good)" >&5
21273$as_echo "libtool file $LIBXML2_LIBS (good)" >&6; }
21274			have_LIBXML2=yes
21275		else
21276			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: wild guess that something is in $try_LIBXML2" >&5
21277$as_echo "wild guess that something is in $try_LIBXML2" >&6; }
21278			LIBXML2_LIBS="-L${try_LIBXML2}/lib -l$(echo "libxml-2.0" | sed 's/^lib//')"
21279			LIBXML2_CFLAGS="-I${try_LIBXML2}/include"
21280			have_LIBXML2=yes
21281			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21282* Warning:
21283*   libtool file libxml-2.0.la could not be found.
21284*   We may be linking against the WRONG library.
21285" >&5
21286$as_echo "$as_me: WARNING:
21287* Warning:
21288*   libtool file libxml-2.0.la could not be found.
21289*   We may be linking against the WRONG library.
21290" >&2;}
21291		fi
21292	fi
21293elif test "x${LIBXML2_LIBS}" != "x" && test "x${LIBXML2_CFLAGS}" != "x"; then
21294	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: user-defined" >&5
21295$as_echo "user-defined" >&6; }
21296	userdef_LIBXML2=yes
21297	have_LIBXML2=yes
21298else
21299	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: broken call" >&5
21300$as_echo "broken call" >&6; }
21301	as_fn_error $? "
21302* Fatal:
21303* When calling configure for ${PACKAGE_TARNAME}
21304*     ${PACKAGE_NAME}
21305* either set both LIBXML2_LIBS *and* LIBXML2_CFLAGS
21306* or neither.
21307" "$LINENO" 5
21308fi
21309
21310if test "x${have_LIBXML2}" = "xyes"; then
21311CPPFLAGS_save="$CPPFLAGS"
21312CPPFLAGS="${LIBXML2_CFLAGS}"
21313ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
21314if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
21315  have_LIBXML2=yes
21316else
21317  have_LIBXML2=no
21318fi
21319
21320
21321CPPFLAGS="$CPPFLAGS_save"
21322fi
21323if test "x${userdef_LIBXML2}" = "xno" && test "x${have_LIBXML2}" = "xyes"; then
21324	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function xmlFirstElementChild in libxml-2.0" >&5
21325$as_echo_n "checking for function xmlFirstElementChild in libxml-2.0... " >&6; }
21326	LIBS_save="$LIBS"
21327	LIBS="${LIBXML2_LIBS}"
21328	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21329/* end confdefs.h.  */
21330
21331/* Override any GCC internal prototype to avoid an error.
21332   Use char because int might match the return type of a GCC
21333   builtin and then its argument prototype would still apply.  */
21334#ifdef __cplusplus
21335extern "C"
21336#endif
21337char xmlFirstElementChild ();
21338int
21339main ()
21340{
21341return xmlFirstElementChild ();
21342  ;
21343  return 0;
21344}
21345_ACEOF
21346if ac_fn_c_try_link "$LINENO"; then :
21347
21348else
21349  have_LIBXML2=no
21350fi
21351rm -f core conftest.err conftest.$ac_objext \
21352    conftest$ac_exeext conftest.$ac_ext
21353	LIBS="$LIBS_save"
21354	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_LIBXML2}" >&5
21355$as_echo "${have_LIBXML2}" >&6; }
21356fi
21357 if test "x$have_LIBXML2" = "xyes"; then
21358  HAVE_LIBXML2_TRUE=
21359  HAVE_LIBXML2_FALSE='#'
21360else
21361  HAVE_LIBXML2_TRUE='#'
21362  HAVE_LIBXML2_FALSE=
21363fi
21364
21365if test "x$have_LIBXML2" = "xyes"; then
21366
21367$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
21368
21369
21370gp_config_msg_len="$(expr "libxml-2.0" : '.*')"
21371if test "$gp_config_msg_len" -ge "$gp_config_len"; then
21372	gp_config_msg_lhs="$(expr "libxml-2.0" : "\(.\{0,${gp_config_len3}\}\)")..:"
21373else
21374	gp_config_msg_lhs="$(expr "libxml-2.0:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
21375fi
21376gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} yes
21377"
21378	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml-2.0 library flags" >&5
21379$as_echo_n "checking libxml-2.0 library flags... " >&6; }
21380	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"${LIBXML2_LIBS}\"" >&5
21381$as_echo "\"${LIBXML2_LIBS}\"" >&6; }
21382	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml-2.0 cpp flags" >&5
21383$as_echo_n "checking libxml-2.0 cpp flags... " >&6; }
21384	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"${LIBXML2_CFLAGS}\"" >&5
21385$as_echo "\"${LIBXML2_CFLAGS}\"" >&6; }
21386else
21387	REQUIREMENTS_FOR_LIBXML2=
21388
21389gp_config_msg_len="$(expr "libxml-2.0" : '.*')"
21390if test "$gp_config_msg_len" -ge "$gp_config_len"; then
21391	gp_config_msg_lhs="$(expr "libxml-2.0" : "\(.\{0,${gp_config_len3}\}\)")..:"
21392else
21393	gp_config_msg_lhs="$(expr "libxml-2.0:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
21394fi
21395gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} no
21396"
21397fi
21398
21399
21400gp_config_msg_len="$(expr "XML support for Olympus E series" : '.*')"
21401if test "$gp_config_msg_len" -ge "$gp_config_len"; then
21402	gp_config_msg_lhs="$(expr "XML support for Olympus E series" : "\(.\{0,${gp_config_len3}\}\)")..:"
21403else
21404	gp_config_msg_lhs="$(expr "XML support for Olympus E series:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
21405fi
21406gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} ${have_LIBXML2}
21407"
21408
21409
21410
21411# ----------------------------------------------------------------------
21412# [GP_CHECK_LIBRARY]([LIBCURL],[libcurl],[>= 7.1],
21413#                    [curl/curl.h],[curl_easy_init],
21414#                    [...],[...],[default-on])
21415# https://www.curl.org
21416
21417# ----------------------------------------------------------------------
21418# Use _CFLAGS and _LIBS given to configure.
21419# This makes it possible to set these vars in a configure script
21420# and AC_CONFIG_SUBDIRS this configure.
21421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl to use" >&5
21422$as_echo_n "checking for libcurl to use... " >&6; }
21423REQUIREMENTS_FOR_LIBCURL="libcurl >= 7.1"
21424userdef_LIBCURL=no
21425have_LIBCURL=no
21426if test "x${LIBCURL_LIBS}" = "x" && test "x${LIBCURL_CFLAGS}" = "x"; then
21427	# define --with/--without argument
21428				try_LIBCURL=auto
21429
21430# Check whether --with-libcurl was given.
21431if test "${with_libcurl+set}" = set; then :
21432  withval=$with_libcurl; try_LIBCURL="$withval"
21433fi
21434
21435	if test "x${try_LIBCURL}" = "xno"; then
21436              REQUIREMENTS_FOR_LIBCURL=
21437	fi
21438	if test "x${try_LIBCURL}" = "xauto"; then try_LIBCURL=autodetect; fi
21439	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${try_LIBCURL}" >&5
21440$as_echo "${try_LIBCURL}" >&6; }
21441		if test "x${try_LIBCURL}" = "xautodetect"; then
21442		# OK, we have to autodetect.
21443		# We start autodetection with the cleanest known method: pkg-config
21444		if test "x${have_LIBCURL}" = "xno"; then
21445			# we need that line break after the PKG_CHECK_MODULES
21446
21447pkg_failed=no
21448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCURL" >&5
21449$as_echo_n "checking for LIBCURL... " >&6; }
21450
21451if test -n "$LIBCURL_CFLAGS"; then
21452    pkg_cv_LIBCURL_CFLAGS="$LIBCURL_CFLAGS"
21453 elif test -n "$PKG_CONFIG"; then
21454    if test -n "$PKG_CONFIG" && \
21455    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.1\""; } >&5
21456  ($PKG_CONFIG --exists --print-errors "libcurl >= 7.1") 2>&5
21457  ac_status=$?
21458  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21459  test $ac_status = 0; }; then
21460  pkg_cv_LIBCURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl >= 7.1" 2>/dev/null`
21461		      test "x$?" != "x0" && pkg_failed=yes
21462else
21463  pkg_failed=yes
21464fi
21465 else
21466    pkg_failed=untried
21467fi
21468if test -n "$LIBCURL_LIBS"; then
21469    pkg_cv_LIBCURL_LIBS="$LIBCURL_LIBS"
21470 elif test -n "$PKG_CONFIG"; then
21471    if test -n "$PKG_CONFIG" && \
21472    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.1\""; } >&5
21473  ($PKG_CONFIG --exists --print-errors "libcurl >= 7.1") 2>&5
21474  ac_status=$?
21475  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21476  test $ac_status = 0; }; then
21477  pkg_cv_LIBCURL_LIBS=`$PKG_CONFIG --libs "libcurl >= 7.1" 2>/dev/null`
21478		      test "x$?" != "x0" && pkg_failed=yes
21479else
21480  pkg_failed=yes
21481fi
21482 else
21483    pkg_failed=untried
21484fi
21485
21486
21487
21488if test $pkg_failed = yes; then
21489   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21490$as_echo "no" >&6; }
21491
21492if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21493        _pkg_short_errors_supported=yes
21494else
21495        _pkg_short_errors_supported=no
21496fi
21497        if test $_pkg_short_errors_supported = yes; then
21498	        LIBCURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl >= 7.1" 2>&1`
21499        else
21500	        LIBCURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl >= 7.1" 2>&1`
21501        fi
21502	# Put the nasty error message in config.log where it belongs
21503	echo "$LIBCURL_PKG_ERRORS" >&5
21504
21505	:
21506elif test $pkg_failed = untried; then
21507     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21508$as_echo "no" >&6; }
21509	:
21510else
21511	LIBCURL_CFLAGS=$pkg_cv_LIBCURL_CFLAGS
21512	LIBCURL_LIBS=$pkg_cv_LIBCURL_LIBS
21513        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21514$as_echo "yes" >&6; }
21515	have_LIBCURL=yes
21516fi
21517		fi
21518		# If pkg-config didn't find anything, try the libfoo-config program
21519		# certain known libraries ship with.
21520		if test "x${have_LIBCURL}" = "xno"; then
21521			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libcurl config program" >&5
21522$as_echo_n "checking libcurl config program... " >&6; }
21523						{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
21524$as_echo "none" >&6; }
21525			# Extract the first word of "gp_lib_config", so it can be a program name with args.
21526set dummy none; ac_word=$2
21527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21528$as_echo_n "checking for $ac_word... " >&6; }
21529if ${ac_cv_path_LIBCURL_CONFIG_PROG+:} false; then :
21530  $as_echo_n "(cached) " >&6
21531else
21532  case $LIBCURL_CONFIG_PROG in
21533  [\\/]* | ?:[\\/]*)
21534  ac_cv_path_LIBCURL_CONFIG_PROG="$LIBCURL_CONFIG_PROG" # Let the user override the test with a path.
21535  ;;
21536  *)
21537  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21538for as_dir in $PATH
21539do
21540  IFS=$as_save_IFS
21541  test -z "$as_dir" && as_dir=.
21542    for ac_exec_ext in '' $ac_executable_extensions; do
21543  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21544    ac_cv_path_LIBCURL_CONFIG_PROG="$as_dir/$ac_word$ac_exec_ext"
21545    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21546    break 2
21547  fi
21548done
21549  done
21550IFS=$as_save_IFS
21551
21552  ;;
21553esac
21554fi
21555LIBCURL_CONFIG_PROG=$ac_cv_path_LIBCURL_CONFIG_PROG
21556if test -n "$LIBCURL_CONFIG_PROG"; then
21557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBCURL_CONFIG_PROG" >&5
21558$as_echo "$LIBCURL_CONFIG_PROG" >&6; }
21559else
21560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21561$as_echo "no" >&6; }
21562fi
21563
21564
21565			if test -n "${LIBCURL_CONFIG_PROG}" &&
21566				test "${LIBCURL_CONFIG_PROG}" != "none"; then
21567
21568				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl version according to none" >&5
21569$as_echo_n "checking for libcurl version according to none... " >&6; }
21570								_LIBCURL_COMPN="-lt"
21571								# split requested version number using m4 regexps
21572				_LIBCURL_REQ_1="7"
21573				_LIBCURL_REQ_2="1"
21574				_LIBCURL_REQ_3=""
21575				_LIBCURL_REQ_4=""
21576				# split installed version number via shell and sed
21577				_LIBCURL_VERSION="$("${LIBCURL_CONFIG_PROG}" --version | sed 's/^.* //')"
21578				_LIBCURL_VER_1="$(echo "${_LIBCURL_VERSION}" | sed 's/\([0-9]*\).*/\1/g')"
21579				_LIBCURL_VER_2="$(echo "${_LIBCURL_VERSION}" | sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/g')"
21580				_LIBCURL_VER_3="$(echo "${_LIBCURL_VERSION}" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/g')"
21581				_LIBCURL_VER_4="$(echo "${_LIBCURL_VERSION}" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)\(.*\)/\4/g')"
21582				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_LIBCURL_VERSION}" >&5
21583$as_echo "${_LIBCURL_VERSION}" >&6; }
21584				_tmp=false
21585				if   test "${_LIBCURL_VER_1}" "${_LIBCURL_COMPN}" "${_LIBCURL_REQ_1}"; then _tmp=true;
21586				elif test "${_LIBCURL_VER_2}" "${_LIBCURL_COMPN}" "${_LIBCURL_REQ_2}"; then _tmp=true;
21587				elif test "${_LIBCURL_VER_3}" "${_LIBCURL_COMPN}" "${_LIBCURL_REQ_3}"; then _tmp=true;
21588				elif test "x${_LIBCURL_VER_4}" = "x" && test "x${_LIBCURL_REQ_4}" != "x"; then _tmp=true;
21589				elif test "${_LIBCURL_VER_4}" "${_LIBCURL_COMPN}" "${_LIBCURL_REQ_4}"; then _tmp=true;
21590				fi
21591				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libcurl version is matching requirement >= 7.1" >&5
21592$as_echo_n "checking if libcurl version is matching requirement >= 7.1... " >&6; }
21593				if "${_tmp}"; then
21594				   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21595$as_echo "no" >&6; }
21596				   as_fn_error $? "Version requirement libcurl >= 7.1 not met. Found: ${_LIBCURL_VERSION}" "$LINENO" 5
21597				else
21598				   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21599$as_echo "yes" >&6; }
21600				fi
21601								{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl parameters from none" >&5
21602$as_echo_n "checking for libcurl parameters from none... " >&6; }
21603				LIBCURL_LIBS="$(${LIBCURL_CONFIG_PROG} --libs || echo "*error*")"
21604				LIBCURL_CFLAGS="$(${LIBCURL_CONFIG_PROG} --cflags || echo "*error*")"
21605				if test "x${LIBCURL_LIBS}" = "*error*" ||
21606					test "x${LIBCURL_CFLAGS}" = "*error*"; then
21607					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
21608$as_echo "error" >&6; }
21609				else
21610					have_LIBCURL=yes
21611					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
21612$as_echo "ok" >&6; }
21613				fi
21614			fi
21615					fi
21616		# Version requirement given, so we do not rely on probing.
21617	elif test "x${try_LIBCURL}" = "xno"; then
21618		:
21619	else
21620		# We've been given a prefix to look in for library libcurl.
21621		# We start looking for libcurl.la files first.
21622		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl.la file in ${try_LIBCURL}" >&5
21623$as_echo_n "checking for libcurl.la file in ${try_LIBCURL}... " >&6; }
21624		if test -f "${try_LIBCURL}/lib/libcurl.la"; then
21625			LIBCURL_LIBS="${try_LIBCURL}/lib/libcurl.la"
21626			LIBCURL_CFLAGS="-I${try_LIBCURL}/include"
21627			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: libtool file $LIBCURL_LIBS (good)" >&5
21628$as_echo "libtool file $LIBCURL_LIBS (good)" >&6; }
21629			have_LIBCURL=yes
21630		elif test -f "${try_LIBCURL}/lib64/libcurl.la"; then # HACK
21631			LIBCURL_LIBS="${try_LIBCURL}/lib64/libcurl.la"
21632			LIBCURL_CFLAGS="-I${try_LIBCURL}/include"
21633			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: libtool file $LIBCURL_LIBS (good)" >&5
21634$as_echo "libtool file $LIBCURL_LIBS (good)" >&6; }
21635			have_LIBCURL=yes
21636		else
21637			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: wild guess that something is in $try_LIBCURL" >&5
21638$as_echo "wild guess that something is in $try_LIBCURL" >&6; }
21639			LIBCURL_LIBS="-L${try_LIBCURL}/lib -l$(echo "libcurl" | sed 's/^lib//')"
21640			LIBCURL_CFLAGS="-I${try_LIBCURL}/include"
21641			have_LIBCURL=yes
21642			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21643* Warning:
21644*   libtool file libcurl.la could not be found.
21645*   We may be linking against the WRONG library.
21646" >&5
21647$as_echo "$as_me: WARNING:
21648* Warning:
21649*   libtool file libcurl.la could not be found.
21650*   We may be linking against the WRONG library.
21651" >&2;}
21652		fi
21653	fi
21654elif test "x${LIBCURL_LIBS}" != "x" && test "x${LIBCURL_CFLAGS}" != "x"; then
21655	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: user-defined" >&5
21656$as_echo "user-defined" >&6; }
21657	userdef_LIBCURL=yes
21658	have_LIBCURL=yes
21659else
21660	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: broken call" >&5
21661$as_echo "broken call" >&6; }
21662	as_fn_error $? "
21663* Fatal:
21664* When calling configure for ${PACKAGE_TARNAME}
21665*     ${PACKAGE_NAME}
21666* either set both LIBCURL_LIBS *and* LIBCURL_CFLAGS
21667* or neither.
21668" "$LINENO" 5
21669fi
21670
21671if test "x${have_LIBCURL}" = "xyes"; then
21672CPPFLAGS_save="$CPPFLAGS"
21673CPPFLAGS="${LIBCURL_CFLAGS}"
21674ac_fn_c_check_header_mongrel "$LINENO" "curl/curl.h" "ac_cv_header_curl_curl_h" "$ac_includes_default"
21675if test "x$ac_cv_header_curl_curl_h" = xyes; then :
21676  have_LIBCURL=yes
21677else
21678  have_LIBCURL=no
21679fi
21680
21681
21682CPPFLAGS="$CPPFLAGS_save"
21683fi
21684if test "x${userdef_LIBCURL}" = "xno" && test "x${have_LIBCURL}" = "xyes"; then
21685	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function curl_easy_init in libcurl" >&5
21686$as_echo_n "checking for function curl_easy_init in libcurl... " >&6; }
21687	LIBS_save="$LIBS"
21688	LIBS="${LIBCURL_LIBS}"
21689	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21690/* end confdefs.h.  */
21691
21692/* Override any GCC internal prototype to avoid an error.
21693   Use char because int might match the return type of a GCC
21694   builtin and then its argument prototype would still apply.  */
21695#ifdef __cplusplus
21696extern "C"
21697#endif
21698char curl_easy_init ();
21699int
21700main ()
21701{
21702return curl_easy_init ();
21703  ;
21704  return 0;
21705}
21706_ACEOF
21707if ac_fn_c_try_link "$LINENO"; then :
21708
21709else
21710  have_LIBCURL=no
21711fi
21712rm -f core conftest.err conftest.$ac_objext \
21713    conftest$ac_exeext conftest.$ac_ext
21714	LIBS="$LIBS_save"
21715	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_LIBCURL}" >&5
21716$as_echo "${have_LIBCURL}" >&6; }
21717fi
21718 if test "x$have_LIBCURL" = "xyes"; then
21719  HAVE_LIBCURL_TRUE=
21720  HAVE_LIBCURL_FALSE='#'
21721else
21722  HAVE_LIBCURL_TRUE='#'
21723  HAVE_LIBCURL_FALSE=
21724fi
21725
21726if test "x$have_LIBCURL" = "xyes"; then
21727
21728$as_echo "#define HAVE_LIBCURL 1" >>confdefs.h
21729
21730
21731gp_config_msg_len="$(expr "libcurl" : '.*')"
21732if test "$gp_config_msg_len" -ge "$gp_config_len"; then
21733	gp_config_msg_lhs="$(expr "libcurl" : "\(.\{0,${gp_config_len3}\}\)")..:"
21734else
21735	gp_config_msg_lhs="$(expr "libcurl:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
21736fi
21737gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} yes
21738"
21739	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libcurl library flags" >&5
21740$as_echo_n "checking libcurl library flags... " >&6; }
21741	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"${LIBCURL_LIBS}\"" >&5
21742$as_echo "\"${LIBCURL_LIBS}\"" >&6; }
21743	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libcurl cpp flags" >&5
21744$as_echo_n "checking libcurl cpp flags... " >&6; }
21745	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"${LIBCURL_CFLAGS}\"" >&5
21746$as_echo "\"${LIBCURL_CFLAGS}\"" >&6; }
21747else
21748	REQUIREMENTS_FOR_LIBCURL=
21749
21750gp_config_msg_len="$(expr "libcurl" : '.*')"
21751if test "$gp_config_msg_len" -ge "$gp_config_len"; then
21752	gp_config_msg_lhs="$(expr "libcurl" : "\(.\{0,${gp_config_len3}\}\)")..:"
21753else
21754	gp_config_msg_lhs="$(expr "libcurl:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
21755fi
21756gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} no
21757"
21758fi
21759
21760
21761gp_config_msg_len="$(expr "CURL support for Lumix Wifi" : '.*')"
21762if test "$gp_config_msg_len" -ge "$gp_config_len"; then
21763	gp_config_msg_lhs="$(expr "CURL support for Lumix Wifi" : "\(.\{0,${gp_config_len3}\}\)")..:"
21764else
21765	gp_config_msg_lhs="$(expr "CURL support for Lumix Wifi:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
21766fi
21767gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} ${have_LIBCURL}
21768"
21769
21770
21771 if test -n "$have_LIBCURL" && test "X$have_LIBCURL" != "Xno"; then
21772  HAVE_LIBCURL_TRUE=
21773  HAVE_LIBCURL_FALSE='#'
21774else
21775  HAVE_LIBCURL_TRUE='#'
21776  HAVE_LIBCURL_FALSE=
21777fi
21778
21779 if test -n "$have_LIBXML2" && test "X$have_LIBXML2" != "Xno"; then
21780  HAVE_LIBXML2_TRUE=
21781  HAVE_LIBXML2_FALSE='#'
21782else
21783  HAVE_LIBXML2_TRUE='#'
21784  HAVE_LIBXML2_FALSE=
21785fi
21786
21787
21788
21789
21790# ----------------------------------------------------------------------
21791# [GP_CHECK_LIBRARY]([LIBGD],[gdlib],[>= 2.0],
21792#                    [gd.h],[gdImageCreateTrueColor],
21793#                    [...],[...],[default-on])
21794# http://www.libgd.org/
21795# ----------------------------------------------------------------------
21796# Use _CFLAGS and _LIBS given to configure.
21797# This makes it possible to set these vars in a configure script
21798# and AC_CONFIG_SUBDIRS this configure.
21799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib to use" >&5
21800$as_echo_n "checking for gdlib to use... " >&6; }
21801REQUIREMENTS_FOR_LIBGD="gdlib >= 2.0"
21802userdef_LIBGD=no
21803have_LIBGD=no
21804if test "x${LIBGD_LIBS}" = "x" && test "x${LIBGD_CFLAGS}" = "x"; then
21805	# define --with/--without argument
21806				try_LIBGD=auto
21807
21808# Check whether --with-gdlib was given.
21809if test "${with_gdlib+set}" = set; then :
21810  withval=$with_gdlib; try_LIBGD="$withval"
21811fi
21812
21813	if test "x${try_LIBGD}" = "xno"; then
21814              REQUIREMENTS_FOR_LIBGD=
21815	fi
21816	if test "x${try_LIBGD}" = "xauto"; then try_LIBGD=autodetect; fi
21817	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${try_LIBGD}" >&5
21818$as_echo "${try_LIBGD}" >&6; }
21819		if test "x${try_LIBGD}" = "xautodetect"; then
21820		# OK, we have to autodetect.
21821		# We start autodetection with the cleanest known method: pkg-config
21822		if test "x${have_LIBGD}" = "xno"; then
21823			# we need that line break after the PKG_CHECK_MODULES
21824
21825pkg_failed=no
21826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGD" >&5
21827$as_echo_n "checking for LIBGD... " >&6; }
21828
21829if test -n "$LIBGD_CFLAGS"; then
21830    pkg_cv_LIBGD_CFLAGS="$LIBGD_CFLAGS"
21831 elif test -n "$PKG_CONFIG"; then
21832    if test -n "$PKG_CONFIG" && \
21833    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdlib >= 2.0\""; } >&5
21834  ($PKG_CONFIG --exists --print-errors "gdlib >= 2.0") 2>&5
21835  ac_status=$?
21836  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21837  test $ac_status = 0; }; then
21838  pkg_cv_LIBGD_CFLAGS=`$PKG_CONFIG --cflags "gdlib >= 2.0" 2>/dev/null`
21839		      test "x$?" != "x0" && pkg_failed=yes
21840else
21841  pkg_failed=yes
21842fi
21843 else
21844    pkg_failed=untried
21845fi
21846if test -n "$LIBGD_LIBS"; then
21847    pkg_cv_LIBGD_LIBS="$LIBGD_LIBS"
21848 elif test -n "$PKG_CONFIG"; then
21849    if test -n "$PKG_CONFIG" && \
21850    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdlib >= 2.0\""; } >&5
21851  ($PKG_CONFIG --exists --print-errors "gdlib >= 2.0") 2>&5
21852  ac_status=$?
21853  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21854  test $ac_status = 0; }; then
21855  pkg_cv_LIBGD_LIBS=`$PKG_CONFIG --libs "gdlib >= 2.0" 2>/dev/null`
21856		      test "x$?" != "x0" && pkg_failed=yes
21857else
21858  pkg_failed=yes
21859fi
21860 else
21861    pkg_failed=untried
21862fi
21863
21864
21865
21866if test $pkg_failed = yes; then
21867   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21868$as_echo "no" >&6; }
21869
21870if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21871        _pkg_short_errors_supported=yes
21872else
21873        _pkg_short_errors_supported=no
21874fi
21875        if test $_pkg_short_errors_supported = yes; then
21876	        LIBGD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gdlib >= 2.0" 2>&1`
21877        else
21878	        LIBGD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gdlib >= 2.0" 2>&1`
21879        fi
21880	# Put the nasty error message in config.log where it belongs
21881	echo "$LIBGD_PKG_ERRORS" >&5
21882
21883	:
21884elif test $pkg_failed = untried; then
21885     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21886$as_echo "no" >&6; }
21887	:
21888else
21889	LIBGD_CFLAGS=$pkg_cv_LIBGD_CFLAGS
21890	LIBGD_LIBS=$pkg_cv_LIBGD_LIBS
21891        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21892$as_echo "yes" >&6; }
21893	have_LIBGD=yes
21894fi
21895		fi
21896		# If pkg-config didn't find anything, try the libfoo-config program
21897		# certain known libraries ship with.
21898		if test "x${have_LIBGD}" = "xno"; then
21899			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking gdlib config program" >&5
21900$as_echo_n "checking gdlib config program... " >&6; }
21901						{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gdlib-config" >&5
21902$as_echo "gdlib-config" >&6; }
21903			# Extract the first word of "gp_lib_config", so it can be a program name with args.
21904set dummy gdlib-config; ac_word=$2
21905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21906$as_echo_n "checking for $ac_word... " >&6; }
21907if ${ac_cv_path_LIBGD_CONFIG_PROG+:} false; then :
21908  $as_echo_n "(cached) " >&6
21909else
21910  case $LIBGD_CONFIG_PROG in
21911  [\\/]* | ?:[\\/]*)
21912  ac_cv_path_LIBGD_CONFIG_PROG="$LIBGD_CONFIG_PROG" # Let the user override the test with a path.
21913  ;;
21914  *)
21915  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21916for as_dir in $PATH
21917do
21918  IFS=$as_save_IFS
21919  test -z "$as_dir" && as_dir=.
21920    for ac_exec_ext in '' $ac_executable_extensions; do
21921  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21922    ac_cv_path_LIBGD_CONFIG_PROG="$as_dir/$ac_word$ac_exec_ext"
21923    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21924    break 2
21925  fi
21926done
21927  done
21928IFS=$as_save_IFS
21929
21930  ;;
21931esac
21932fi
21933LIBGD_CONFIG_PROG=$ac_cv_path_LIBGD_CONFIG_PROG
21934if test -n "$LIBGD_CONFIG_PROG"; then
21935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGD_CONFIG_PROG" >&5
21936$as_echo "$LIBGD_CONFIG_PROG" >&6; }
21937else
21938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21939$as_echo "no" >&6; }
21940fi
21941
21942
21943			if test -n "${LIBGD_CONFIG_PROG}" &&
21944				test "${LIBGD_CONFIG_PROG}" != "none"; then
21945
21946				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib version according to gdlib-config" >&5
21947$as_echo_n "checking for gdlib version according to gdlib-config... " >&6; }
21948								_LIBGD_COMPN="-lt"
21949								# split requested version number using m4 regexps
21950				_LIBGD_REQ_1="2"
21951				_LIBGD_REQ_2="0"
21952				_LIBGD_REQ_3=""
21953				_LIBGD_REQ_4=""
21954				# split installed version number via shell and sed
21955				_LIBGD_VERSION="$("${LIBGD_CONFIG_PROG}" --version | sed 's/^.* //')"
21956				_LIBGD_VER_1="$(echo "${_LIBGD_VERSION}" | sed 's/\([0-9]*\).*/\1/g')"
21957				_LIBGD_VER_2="$(echo "${_LIBGD_VERSION}" | sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/g')"
21958				_LIBGD_VER_3="$(echo "${_LIBGD_VERSION}" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/g')"
21959				_LIBGD_VER_4="$(echo "${_LIBGD_VERSION}" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)\(.*\)/\4/g')"
21960				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_LIBGD_VERSION}" >&5
21961$as_echo "${_LIBGD_VERSION}" >&6; }
21962				_tmp=false
21963				if   test "${_LIBGD_VER_1}" "${_LIBGD_COMPN}" "${_LIBGD_REQ_1}"; then _tmp=true;
21964				elif test "${_LIBGD_VER_2}" "${_LIBGD_COMPN}" "${_LIBGD_REQ_2}"; then _tmp=true;
21965				elif test "${_LIBGD_VER_3}" "${_LIBGD_COMPN}" "${_LIBGD_REQ_3}"; then _tmp=true;
21966				elif test "x${_LIBGD_VER_4}" = "x" && test "x${_LIBGD_REQ_4}" != "x"; then _tmp=true;
21967				elif test "${_LIBGD_VER_4}" "${_LIBGD_COMPN}" "${_LIBGD_REQ_4}"; then _tmp=true;
21968				fi
21969				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gdlib version is matching requirement >= 2.0" >&5
21970$as_echo_n "checking if gdlib version is matching requirement >= 2.0... " >&6; }
21971				if "${_tmp}"; then
21972				   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21973$as_echo "no" >&6; }
21974				   as_fn_error $? "Version requirement gdlib >= 2.0 not met. Found: ${_LIBGD_VERSION}" "$LINENO" 5
21975				else
21976				   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21977$as_echo "yes" >&6; }
21978				fi
21979								{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib parameters from gdlib-config" >&5
21980$as_echo_n "checking for gdlib parameters from gdlib-config... " >&6; }
21981				LIBGD_LIBS="$(${LIBGD_CONFIG_PROG} --libs || echo "*error*")"
21982				LIBGD_CFLAGS="$(${LIBGD_CONFIG_PROG} --cflags || echo "*error*")"
21983				if test "x${LIBGD_LIBS}" = "*error*" ||
21984					test "x${LIBGD_CFLAGS}" = "*error*"; then
21985					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
21986$as_echo "error" >&6; }
21987				else
21988					have_LIBGD=yes
21989					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
21990$as_echo "ok" >&6; }
21991				fi
21992			fi
21993					fi
21994		# Version requirement given, so we do not rely on probing.
21995	elif test "x${try_LIBGD}" = "xno"; then
21996		:
21997	else
21998		# We've been given a prefix to look in for library gdlib.
21999		# We start looking for gdlib.la files first.
22000		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib.la file in ${try_LIBGD}" >&5
22001$as_echo_n "checking for gdlib.la file in ${try_LIBGD}... " >&6; }
22002		if test -f "${try_LIBGD}/lib/gdlib.la"; then
22003			LIBGD_LIBS="${try_LIBGD}/lib/gdlib.la"
22004			LIBGD_CFLAGS="-I${try_LIBGD}/include"
22005			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: libtool file $LIBGD_LIBS (good)" >&5
22006$as_echo "libtool file $LIBGD_LIBS (good)" >&6; }
22007			have_LIBGD=yes
22008		elif test -f "${try_LIBGD}/lib64/gdlib.la"; then # HACK
22009			LIBGD_LIBS="${try_LIBGD}/lib64/gdlib.la"
22010			LIBGD_CFLAGS="-I${try_LIBGD}/include"
22011			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: libtool file $LIBGD_LIBS (good)" >&5
22012$as_echo "libtool file $LIBGD_LIBS (good)" >&6; }
22013			have_LIBGD=yes
22014		else
22015			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: wild guess that something is in $try_LIBGD" >&5
22016$as_echo "wild guess that something is in $try_LIBGD" >&6; }
22017			LIBGD_LIBS="-L${try_LIBGD}/lib -l$(echo "gdlib" | sed 's/^lib//')"
22018			LIBGD_CFLAGS="-I${try_LIBGD}/include"
22019			have_LIBGD=yes
22020			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
22021* Warning:
22022*   libtool file gdlib.la could not be found.
22023*   We may be linking against the WRONG library.
22024" >&5
22025$as_echo "$as_me: WARNING:
22026* Warning:
22027*   libtool file gdlib.la could not be found.
22028*   We may be linking against the WRONG library.
22029" >&2;}
22030		fi
22031	fi
22032elif test "x${LIBGD_LIBS}" != "x" && test "x${LIBGD_CFLAGS}" != "x"; then
22033	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: user-defined" >&5
22034$as_echo "user-defined" >&6; }
22035	userdef_LIBGD=yes
22036	have_LIBGD=yes
22037else
22038	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: broken call" >&5
22039$as_echo "broken call" >&6; }
22040	as_fn_error $? "
22041* Fatal:
22042* When calling configure for ${PACKAGE_TARNAME}
22043*     ${PACKAGE_NAME}
22044* either set both LIBGD_LIBS *and* LIBGD_CFLAGS
22045* or neither.
22046" "$LINENO" 5
22047fi
22048
22049if test "x${have_LIBGD}" = "xyes"; then
22050# ACTION-IF-FOUND
22051
22052	# gdlib-config --libs upstream does not include -lgd, but only the dependencies
22053	LIBGD_LIBS="-lgd $LIBGD_LIBS"
22054
22055
22056fi
22057if test "x${have_LIBGD}" = "xyes"; then
22058CPPFLAGS_save="$CPPFLAGS"
22059CPPFLAGS="${LIBGD_CFLAGS}"
22060ac_fn_c_check_header_mongrel "$LINENO" "gd.h" "ac_cv_header_gd_h" "$ac_includes_default"
22061if test "x$ac_cv_header_gd_h" = xyes; then :
22062  have_LIBGD=yes
22063else
22064  have_LIBGD=no
22065fi
22066
22067
22068CPPFLAGS="$CPPFLAGS_save"
22069fi
22070if test "x${userdef_LIBGD}" = "xno" && test "x${have_LIBGD}" = "xyes"; then
22071	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function gdImageCreateTrueColor in gdlib" >&5
22072$as_echo_n "checking for function gdImageCreateTrueColor in gdlib... " >&6; }
22073	LIBS_save="$LIBS"
22074	LIBS="${LIBGD_LIBS}"
22075	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22076/* end confdefs.h.  */
22077
22078/* Override any GCC internal prototype to avoid an error.
22079   Use char because int might match the return type of a GCC
22080   builtin and then its argument prototype would still apply.  */
22081#ifdef __cplusplus
22082extern "C"
22083#endif
22084char gdImageCreateTrueColor ();
22085int
22086main ()
22087{
22088return gdImageCreateTrueColor ();
22089  ;
22090  return 0;
22091}
22092_ACEOF
22093if ac_fn_c_try_link "$LINENO"; then :
22094
22095else
22096  have_LIBGD=no
22097fi
22098rm -f core conftest.err conftest.$ac_objext \
22099    conftest$ac_exeext conftest.$ac_ext
22100	LIBS="$LIBS_save"
22101	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_LIBGD}" >&5
22102$as_echo "${have_LIBGD}" >&6; }
22103fi
22104 if test "x$have_LIBGD" = "xyes"; then
22105  HAVE_LIBGD_TRUE=
22106  HAVE_LIBGD_FALSE='#'
22107else
22108  HAVE_LIBGD_TRUE='#'
22109  HAVE_LIBGD_FALSE=
22110fi
22111
22112if test "x$have_LIBGD" = "xyes"; then
22113
22114$as_echo "#define HAVE_LIBGD 1" >>confdefs.h
22115
22116
22117gp_config_msg_len="$(expr "gdlib" : '.*')"
22118if test "$gp_config_msg_len" -ge "$gp_config_len"; then
22119	gp_config_msg_lhs="$(expr "gdlib" : "\(.\{0,${gp_config_len3}\}\)")..:"
22120else
22121	gp_config_msg_lhs="$(expr "gdlib:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
22122fi
22123gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} yes
22124"
22125	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking gdlib library flags" >&5
22126$as_echo_n "checking gdlib library flags... " >&6; }
22127	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"${LIBGD_LIBS}\"" >&5
22128$as_echo "\"${LIBGD_LIBS}\"" >&6; }
22129	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking gdlib cpp flags" >&5
22130$as_echo_n "checking gdlib cpp flags... " >&6; }
22131	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"${LIBGD_CFLAGS}\"" >&5
22132$as_echo "\"${LIBGD_CFLAGS}\"" >&6; }
22133else
22134	REQUIREMENTS_FOR_LIBGD=
22135
22136gp_config_msg_len="$(expr "gdlib" : '.*')"
22137if test "$gp_config_msg_len" -ge "$gp_config_len"; then
22138	gp_config_msg_lhs="$(expr "gdlib" : "\(.\{0,${gp_config_len3}\}\)")..:"
22139else
22140	gp_config_msg_lhs="$(expr "gdlib:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
22141fi
22142gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} no
22143"
22144fi
22145
22146
22147gp_config_msg_len="$(expr "libGD conversion support" : '.*')"
22148if test "$gp_config_msg_len" -ge "$gp_config_len"; then
22149	gp_config_msg_lhs="$(expr "libGD conversion support" : "\(.\{0,${gp_config_len3}\}\)")..:"
22150else
22151	gp_config_msg_lhs="$(expr "libGD conversion support:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
22152fi
22153gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} ${have_LIBGD}
22154"
22155
22156
22157ac_header_dirent=no
22158for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22159  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22161$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22162if eval \${$as_ac_Header+:} false; then :
22163  $as_echo_n "(cached) " >&6
22164else
22165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22166/* end confdefs.h.  */
22167#include <sys/types.h>
22168#include <$ac_hdr>
22169
22170int
22171main ()
22172{
22173if ((DIR *) 0)
22174return 0;
22175  ;
22176  return 0;
22177}
22178_ACEOF
22179if ac_fn_c_try_compile "$LINENO"; then :
22180  eval "$as_ac_Header=yes"
22181else
22182  eval "$as_ac_Header=no"
22183fi
22184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22185fi
22186eval ac_res=\$$as_ac_Header
22187	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22188$as_echo "$ac_res" >&6; }
22189if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22190  cat >>confdefs.h <<_ACEOF
22191#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22192_ACEOF
22193
22194ac_header_dirent=$ac_hdr; break
22195fi
22196
22197done
22198# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22199if test $ac_header_dirent = dirent.h; then
22200  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22201$as_echo_n "checking for library containing opendir... " >&6; }
22202if ${ac_cv_search_opendir+:} false; then :
22203  $as_echo_n "(cached) " >&6
22204else
22205  ac_func_search_save_LIBS=$LIBS
22206cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22207/* end confdefs.h.  */
22208
22209/* Override any GCC internal prototype to avoid an error.
22210   Use char because int might match the return type of a GCC
22211   builtin and then its argument prototype would still apply.  */
22212#ifdef __cplusplus
22213extern "C"
22214#endif
22215char opendir ();
22216int
22217main ()
22218{
22219return opendir ();
22220  ;
22221  return 0;
22222}
22223_ACEOF
22224for ac_lib in '' dir; do
22225  if test -z "$ac_lib"; then
22226    ac_res="none required"
22227  else
22228    ac_res=-l$ac_lib
22229    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22230  fi
22231  if ac_fn_c_try_link "$LINENO"; then :
22232  ac_cv_search_opendir=$ac_res
22233fi
22234rm -f core conftest.err conftest.$ac_objext \
22235    conftest$ac_exeext
22236  if ${ac_cv_search_opendir+:} false; then :
22237  break
22238fi
22239done
22240if ${ac_cv_search_opendir+:} false; then :
22241
22242else
22243  ac_cv_search_opendir=no
22244fi
22245rm conftest.$ac_ext
22246LIBS=$ac_func_search_save_LIBS
22247fi
22248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22249$as_echo "$ac_cv_search_opendir" >&6; }
22250ac_res=$ac_cv_search_opendir
22251if test "$ac_res" != no; then :
22252  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22253
22254fi
22255
22256else
22257  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22258$as_echo_n "checking for library containing opendir... " >&6; }
22259if ${ac_cv_search_opendir+:} false; then :
22260  $as_echo_n "(cached) " >&6
22261else
22262  ac_func_search_save_LIBS=$LIBS
22263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22264/* end confdefs.h.  */
22265
22266/* Override any GCC internal prototype to avoid an error.
22267   Use char because int might match the return type of a GCC
22268   builtin and then its argument prototype would still apply.  */
22269#ifdef __cplusplus
22270extern "C"
22271#endif
22272char opendir ();
22273int
22274main ()
22275{
22276return opendir ();
22277  ;
22278  return 0;
22279}
22280_ACEOF
22281for ac_lib in '' x; do
22282  if test -z "$ac_lib"; then
22283    ac_res="none required"
22284  else
22285    ac_res=-l$ac_lib
22286    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22287  fi
22288  if ac_fn_c_try_link "$LINENO"; then :
22289  ac_cv_search_opendir=$ac_res
22290fi
22291rm -f core conftest.err conftest.$ac_objext \
22292    conftest$ac_exeext
22293  if ${ac_cv_search_opendir+:} false; then :
22294  break
22295fi
22296done
22297if ${ac_cv_search_opendir+:} false; then :
22298
22299else
22300  ac_cv_search_opendir=no
22301fi
22302rm conftest.$ac_ext
22303LIBS=$ac_func_search_save_LIBS
22304fi
22305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22306$as_echo "$ac_cv_search_opendir" >&6; }
22307ac_res=$ac_cv_search_opendir
22308if test "$ac_res" != no; then :
22309  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22310
22311fi
22312
22313fi
22314
22315# before _HEADER_STDC
22316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
22317$as_echo_n "checking for ANSI C header files... " >&6; }
22318if ${ac_cv_header_stdc+:} false; then :
22319  $as_echo_n "(cached) " >&6
22320else
22321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22322/* end confdefs.h.  */
22323#include <stdlib.h>
22324#include <stdarg.h>
22325#include <string.h>
22326#include <float.h>
22327
22328int
22329main ()
22330{
22331
22332  ;
22333  return 0;
22334}
22335_ACEOF
22336if ac_fn_c_try_compile "$LINENO"; then :
22337  ac_cv_header_stdc=yes
22338else
22339  ac_cv_header_stdc=no
22340fi
22341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22342
22343if test $ac_cv_header_stdc = yes; then
22344  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22346/* end confdefs.h.  */
22347#include <string.h>
22348
22349_ACEOF
22350if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22351  $EGREP "memchr" >/dev/null 2>&1; then :
22352
22353else
22354  ac_cv_header_stdc=no
22355fi
22356rm -f conftest*
22357
22358fi
22359
22360if test $ac_cv_header_stdc = yes; then
22361  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22363/* end confdefs.h.  */
22364#include <stdlib.h>
22365
22366_ACEOF
22367if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22368  $EGREP "free" >/dev/null 2>&1; then :
22369
22370else
22371  ac_cv_header_stdc=no
22372fi
22373rm -f conftest*
22374
22375fi
22376
22377if test $ac_cv_header_stdc = yes; then
22378  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22379  if test "$cross_compiling" = yes; then :
22380  :
22381else
22382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22383/* end confdefs.h.  */
22384#include <ctype.h>
22385#include <stdlib.h>
22386#if ((' ' & 0x0FF) == 0x020)
22387# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22388# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22389#else
22390# define ISLOWER(c) \
22391		   (('a' <= (c) && (c) <= 'i') \
22392		     || ('j' <= (c) && (c) <= 'r') \
22393		     || ('s' <= (c) && (c) <= 'z'))
22394# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22395#endif
22396
22397#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22398int
22399main ()
22400{
22401  int i;
22402  for (i = 0; i < 256; i++)
22403    if (XOR (islower (i), ISLOWER (i))
22404	|| toupper (i) != TOUPPER (i))
22405      return 2;
22406  return 0;
22407}
22408_ACEOF
22409if ac_fn_c_try_run "$LINENO"; then :
22410
22411else
22412  ac_cv_header_stdc=no
22413fi
22414rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22415  conftest.$ac_objext conftest.beam conftest.$ac_ext
22416fi
22417
22418fi
22419fi
22420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
22421$as_echo "$ac_cv_header_stdc" >&6; }
22422if test $ac_cv_header_stdc = yes; then
22423
22424$as_echo "#define STDC_HEADERS 1" >>confdefs.h
22425
22426fi
22427
22428# after _HEADER_STDC
22429for ac_header in sys/param.h sys/mman.h sys/select.h locale.h memory.h getopt.h unistd.h mcheck.h limits.h sys/time.h langinfo.h
22430do :
22431  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22432ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22433if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22434  cat >>confdefs.h <<_ACEOF
22435#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22436_ACEOF
22437
22438fi
22439
22440done
22441
22442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
22443$as_echo_n "checking for inline... " >&6; }
22444if ${ac_cv_c_inline+:} false; then :
22445  $as_echo_n "(cached) " >&6
22446else
22447  ac_cv_c_inline=no
22448for ac_kw in inline __inline__ __inline; do
22449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22450/* end confdefs.h.  */
22451#ifndef __cplusplus
22452typedef int foo_t;
22453static $ac_kw foo_t static_foo () {return 0; }
22454$ac_kw foo_t foo () {return 0; }
22455#endif
22456
22457_ACEOF
22458if ac_fn_c_try_compile "$LINENO"; then :
22459  ac_cv_c_inline=$ac_kw
22460fi
22461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22462  test "$ac_cv_c_inline" != no && break
22463done
22464
22465fi
22466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
22467$as_echo "$ac_cv_c_inline" >&6; }
22468
22469case $ac_cv_c_inline in
22470  inline | yes) ;;
22471  *)
22472    case $ac_cv_c_inline in
22473      no) ac_val=;;
22474      *) ac_val=$ac_cv_c_inline;;
22475    esac
22476    cat >>confdefs.h <<_ACEOF
22477#ifndef __cplusplus
22478#define inline $ac_val
22479#endif
22480_ACEOF
22481    ;;
22482esac
22483
22484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22485$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22486if ${ac_cv_c_const+:} false; then :
22487  $as_echo_n "(cached) " >&6
22488else
22489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22490/* end confdefs.h.  */
22491
22492int
22493main ()
22494{
22495
22496#ifndef __cplusplus
22497  /* Ultrix mips cc rejects this sort of thing.  */
22498  typedef int charset[2];
22499  const charset cs = { 0, 0 };
22500  /* SunOS 4.1.1 cc rejects this.  */
22501  char const *const *pcpcc;
22502  char **ppc;
22503  /* NEC SVR4.0.2 mips cc rejects this.  */
22504  struct point {int x, y;};
22505  static struct point const zero = {0,0};
22506  /* AIX XL C 1.02.0.0 rejects this.
22507     It does not let you subtract one const X* pointer from another in
22508     an arm of an if-expression whose if-part is not a constant
22509     expression */
22510  const char *g = "string";
22511  pcpcc = &g + (g ? g-g : 0);
22512  /* HPUX 7.0 cc rejects these. */
22513  ++pcpcc;
22514  ppc = (char**) pcpcc;
22515  pcpcc = (char const *const *) ppc;
22516  { /* SCO 3.2v4 cc rejects this sort of thing.  */
22517    char tx;
22518    char *t = &tx;
22519    char const *s = 0 ? (char *) 0 : (char const *) 0;
22520
22521    *t++ = 0;
22522    if (s) return 0;
22523  }
22524  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22525    int x[] = {25, 17};
22526    const int *foo = &x[0];
22527    ++foo;
22528  }
22529  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22530    typedef const int *iptr;
22531    iptr p = 0;
22532    ++p;
22533  }
22534  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22535       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22536    struct s { int j; const int *ap[3]; } bx;
22537    struct s *b = &bx; b->j = 5;
22538  }
22539  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22540    const int foo = 10;
22541    if (!foo) return 0;
22542  }
22543  return !cs[0] && !zero.x;
22544#endif
22545
22546  ;
22547  return 0;
22548}
22549_ACEOF
22550if ac_fn_c_try_compile "$LINENO"; then :
22551  ac_cv_c_const=yes
22552else
22553  ac_cv_c_const=no
22554fi
22555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22556fi
22557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22558$as_echo "$ac_cv_c_const" >&6; }
22559if test $ac_cv_c_const = no; then
22560
22561$as_echo "#define const /**/" >>confdefs.h
22562
22563fi
22564
22565
22566
22567
22568ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22569if test "x$ac_cv_type_size_t" = xyes; then :
22570
22571else
22572
22573cat >>confdefs.h <<_ACEOF
22574#define size_t unsigned int
22575_ACEOF
22576
22577fi
22578
22579
22580for ac_func in getenv getopt getopt_long mkdir setenv strdup strncpy strcpy snprintf sprintf vsnprintf gmtime_r statfs localtime_r lstat inet_aton rand_r
22581do :
22582  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22583ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22584if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22585  cat >>confdefs.h <<_ACEOF
22586#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22587_ACEOF
22588
22589fi
22590done
22591
22592
22593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
22594$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
22595if ${ac_cv_struct_tm+:} false; then :
22596  $as_echo_n "(cached) " >&6
22597else
22598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22599/* end confdefs.h.  */
22600#include <sys/types.h>
22601#include <time.h>
22602
22603int
22604main ()
22605{
22606struct tm tm;
22607				     int *p = &tm.tm_sec;
22608				     return !p;
22609  ;
22610  return 0;
22611}
22612_ACEOF
22613if ac_fn_c_try_compile "$LINENO"; then :
22614  ac_cv_struct_tm=time.h
22615else
22616  ac_cv_struct_tm=sys/time.h
22617fi
22618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22619fi
22620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
22621$as_echo "$ac_cv_struct_tm" >&6; }
22622if test $ac_cv_struct_tm = sys/time.h; then
22623
22624$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
22625
22626fi
22627
22628
22629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
22630$as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
22631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22632/* end confdefs.h.  */
22633
22634#include <sys/types.h>
22635#include <$ac_cv_struct_tm>
22636
22637int
22638main ()
22639{
22640
22641struct tm tm;
22642tm.tm_gmtoff;
22643
22644  ;
22645  return 0;
22646}
22647_ACEOF
22648if ac_fn_c_try_compile "$LINENO"; then :
22649
22650
22651$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
22652
22653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22654$as_echo "yes" >&6; }
22655
22656else
22657
22658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22659$as_echo "no" >&6; }
22660
22661fi
22662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22663
22664for ac_header in sys/mount.h sys/statfs.h sys/user.h sys/vfs.h
22665do :
22666  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22667ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
22668#include <sys/types.h>
22669#if HAVE_SYS_PARAM_H
22670# include <sys/param.h>
22671#endif
22672
22673"
22674if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22675  cat >>confdefs.h <<_ACEOF
22676#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22677_ACEOF
22678
22679fi
22680
22681done
22682
22683
22684ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "
22685#include <sys/types.h>
22686#ifdef HAVE_SYS_PARAM_H
22687# include <sys/param.h>
22688#endif
22689#ifdef HAVE_SYS_MOUNT_H
22690# include <sys/mount.h>
22691#endif
22692#ifdef HAVE_SYS_VFS_H
22693# include <sys/vfs.h>
22694#endif
22695#ifdef HAVE_SYS_STATFS_H
22696# include <sys/statfs.h>
22697#endif
22698
22699"
22700if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
22701
22702cat >>confdefs.h <<_ACEOF
22703#define HAVE_STRUCT_STATFS_F_BFREE 1
22704_ACEOF
22705
22706
22707fi
22708ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "
22709#include <sys/types.h>
22710#ifdef HAVE_SYS_PARAM_H
22711# include <sys/param.h>
22712#endif
22713#ifdef HAVE_SYS_MOUNT_H
22714# include <sys/mount.h>
22715#endif
22716#ifdef HAVE_SYS_VFS_H
22717# include <sys/vfs.h>
22718#endif
22719#ifdef HAVE_SYS_STATFS_H
22720# include <sys/statfs.h>
22721#endif
22722
22723"
22724if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
22725
22726cat >>confdefs.h <<_ACEOF
22727#define HAVE_STRUCT_STATFS_F_BAVAIL 1
22728_ACEOF
22729
22730
22731fi
22732ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "
22733#include <sys/types.h>
22734#ifdef HAVE_SYS_PARAM_H
22735# include <sys/param.h>
22736#endif
22737#ifdef HAVE_SYS_MOUNT_H
22738# include <sys/mount.h>
22739#endif
22740#ifdef HAVE_SYS_VFS_H
22741# include <sys/vfs.h>
22742#endif
22743#ifdef HAVE_SYS_STATFS_H
22744# include <sys/statfs.h>
22745#endif
22746
22747"
22748if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
22749
22750cat >>confdefs.h <<_ACEOF
22751#define HAVE_STRUCT_STATFS_F_FAVAIL 1
22752_ACEOF
22753
22754
22755fi
22756
22757
22758ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "
22759#ifdef HAVE_SYS_STATVFS_H
22760# include <sys/statvfs.h>
22761#endif
22762
22763"
22764if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
22765
22766cat >>confdefs.h <<_ACEOF
22767#define HAVE_STRUCT_STATVFS_F_BLOCKS 1
22768_ACEOF
22769
22770
22771fi
22772
22773
22774
22775
22776
22777
22778ac_dir=`$as_dirname -- "libgphoto2/_stdint.h" ||
22779$as_expr X"libgphoto2/_stdint.h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22780	 X"libgphoto2/_stdint.h" : 'X\(//\)[^/]' \| \
22781	 X"libgphoto2/_stdint.h" : 'X\(//\)$' \| \
22782	 X"libgphoto2/_stdint.h" : 'X\(/\)' \| . 2>/dev/null ||
22783$as_echo X"libgphoto2/_stdint.h" |
22784    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22785	    s//\1/
22786	    q
22787	  }
22788	  /^X\(\/\/\)[^/].*/{
22789	    s//\1/
22790	    q
22791	  }
22792	  /^X\(\/\/\)$/{
22793	    s//\1/
22794	    q
22795	  }
22796	  /^X\(\/\).*/{
22797	    s//\1/
22798	    q
22799	  }
22800	  s/.*/./; q'`
22801if test "$ac_dir" != "libgphoto2/_stdint.h" && test "$ac_dir" != .; then
22802  # The file is in a subdirectory.
22803  test ! -d "$ac_dir" && as_dir="$ac_dir"; as_fn_mkdir_p
22804fi
22805
22806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t in stdint.h" >&5
22807$as_echo_n "checking for uint8_t in stdint.h... " >&6; }
22808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22809/* end confdefs.h.  */
22810#include <stdint.h>
22811_ACEOF
22812if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22813  $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
22814  ac_cv_type_uint8_t=yes
22815else
22816  ac_cv_type_uint8_t=no
22817fi
22818rm -f conftest*
22819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
22820$as_echo "$ac_cv_type_uint8_t" >&6; }
22821if test $ac_cv_type_uint8_t = yes; then
22822
22823cat > "libgphoto2/_stdint.h" <<EOF
22824/* This file is generated automatically by configure */
22825#include <stdint.h>
22826EOF
22827else
22828  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t in inttypes.h" >&5
22829$as_echo_n "checking for uint8_t in inttypes.h... " >&6; }
22830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22831/* end confdefs.h.  */
22832#include <inttypes.h>
22833_ACEOF
22834if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22835  $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
22836  ac_cv_type_uint8_t=yes
22837else
22838  ac_cv_type_uint8_t=no
22839fi
22840rm -f conftest*
22841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
22842$as_echo "$ac_cv_type_uint8_t" >&6; }
22843if test $ac_cv_type_uint8_t = yes; then
22844  cat > "libgphoto2/_stdint.h" <<EOF
22845/* This file is generated automatically by configure */
22846#include <inttypes.h>
22847EOF
22848else
22849  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t in sys/types.h" >&5
22850$as_echo_n "checking for uint8_t in sys/types.h... " >&6; }
22851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22852/* end confdefs.h.  */
22853#include <sys/types.h>
22854_ACEOF
22855if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22856  $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
22857  ac_cv_type_uint8_t=yes
22858else
22859  ac_cv_type_uint8_t=no
22860fi
22861rm -f conftest*
22862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
22863$as_echo "$ac_cv_type_uint8_t" >&6; }
22864if test $ac_cv_type_uint8_t = yes; then
22865  cat > "libgphoto2/_stdint.h" <<EOF
22866/* This file is generated automatically by configure */
22867#include <sys/types.h>
22868EOF
22869else
22870  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int8_t in sys/types.h" >&5
22871$as_echo_n "checking for u_int8_t in sys/types.h... " >&6; }
22872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22873/* end confdefs.h.  */
22874#include <sys/types.h>
22875_ACEOF
22876if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22877  $EGREP "(^|[^a-zA-Z_0-9])u_int8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
22878  ac_cv_type_u_int8_t=yes
22879else
22880  ac_cv_type_u_int8_t=no
22881fi
22882rm -f conftest*
22883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_u_int8_t" >&5
22884$as_echo "$ac_cv_type_u_int8_t" >&6; }
22885if test $ac_cv_type_u_int8_t = yes; then
22886  cat > "libgphoto2/_stdint.h" <<EOF
22887/* This file is generated automatically by configure */
22888#ifndef __STDINT_H
22889#define __STDINT_H
22890#include <sys/types.h>
22891typedef u_int8_t uint8_t;
22892typedef u_int16_t uint16_t;
22893typedef u_int32_t uint32_t;
22894EOF
22895
22896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t in sys/types.h" >&5
22897$as_echo_n "checking for u_int64_t in sys/types.h... " >&6; }
22898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22899/* end confdefs.h.  */
22900#include <sys/types.h>
22901_ACEOF
22902if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22903  $EGREP "(^|[^a-zA-Z_0-9])u_int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
22904  ac_cv_type_u_int64_t=yes
22905else
22906  ac_cv_type_u_int64_t=no
22907fi
22908rm -f conftest*
22909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_u_int64_t" >&5
22910$as_echo "$ac_cv_type_u_int64_t" >&6; }
22911if test $ac_cv_type_u_int64_t = yes; then
22912  cat >> "libgphoto2/_stdint.h" <<EOF
22913typedef u_int64_t uint64_t;
22914#endif /*!__STDINT_H*/
22915EOF
22916else
22917  cat >> "libgphoto2/_stdint.h" <<EOF
22918/* 64-bit types are not available on this system */
22919/* typedef u_int64_t uint64_t; */
22920#endif /*!__STDINT_H*/
22921EOF
22922fi
22923
22924
22925
22926else
22927  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I can't find size-specific integer definitions on this system" >&5
22928$as_echo "$as_me: WARNING: I can't find size-specific integer definitions on this system" >&2;}
22929if test -e "libgphoto2/_stdint.h" ; then
22930	rm -f "libgphoto2/_stdint.h"
22931fi
22932
22933fi
22934
22935fi
22936
22937fi
22938
22939fi
22940
22941
22942
22943ac_dir=`$as_dirname -- "libgphoto2/gphoto2-endian.h" ||
22944$as_expr X"libgphoto2/gphoto2-endian.h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22945	 X"libgphoto2/gphoto2-endian.h" : 'X\(//\)[^/]' \| \
22946	 X"libgphoto2/gphoto2-endian.h" : 'X\(//\)$' \| \
22947	 X"libgphoto2/gphoto2-endian.h" : 'X\(/\)' \| . 2>/dev/null ||
22948$as_echo X"libgphoto2/gphoto2-endian.h" |
22949    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22950	    s//\1/
22951	    q
22952	  }
22953	  /^X\(\/\/\)[^/].*/{
22954	    s//\1/
22955	    q
22956	  }
22957	  /^X\(\/\/\)$/{
22958	    s//\1/
22959	    q
22960	  }
22961	  /^X\(\/\).*/{
22962	    s//\1/
22963	    q
22964	  }
22965	  s/.*/./; q'`
22966if test "$ac_dir" != "libgphoto2/gphoto2-endian.h" && test "$ac_dir" != .; then
22967  # The file is in a subdirectory.
22968  test ! -d "$ac_dir" && as_dir="$ac_dir"; as_fn_mkdir_p
22969fi
22970
22971# We're only interested in the target CPU, but it's not always set
22972effective_target="$target"
22973if test "x$effective_target" = xNONE -o "x$effective_target" = x ; then
22974	effective_target="$host"
22975fi
22976
22977
22978cat > "libgphoto2/gphoto2-endian.h" << EOF
22979/* This file is generated automatically by configure */
22980/* It is valid only for the system type ${effective_target} */
22981
22982#ifndef __BYTEORDER_H
22983#define __BYTEORDER_H
22984
22985EOF
22986
22987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
22988$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
22989if ${ac_cv_c_bigendian+:} false; then :
22990  $as_echo_n "(cached) " >&6
22991else
22992  ac_cv_c_bigendian=unknown
22993    # See if we're dealing with a universal compiler.
22994    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22995/* end confdefs.h.  */
22996#ifndef __APPLE_CC__
22997	       not a universal capable compiler
22998	     #endif
22999	     typedef int dummy;
23000
23001_ACEOF
23002if ac_fn_c_try_compile "$LINENO"; then :
23003
23004	# Check for potential -arch flags.  It is not universal unless
23005	# there are at least two -arch flags with different values.
23006	ac_arch=
23007	ac_prev=
23008	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23009	 if test -n "$ac_prev"; then
23010	   case $ac_word in
23011	     i?86 | x86_64 | ppc | ppc64)
23012	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23013		 ac_arch=$ac_word
23014	       else
23015		 ac_cv_c_bigendian=universal
23016		 break
23017	       fi
23018	       ;;
23019	   esac
23020	   ac_prev=
23021	 elif test "x$ac_word" = "x-arch"; then
23022	   ac_prev=arch
23023	 fi
23024       done
23025fi
23026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23027    if test $ac_cv_c_bigendian = unknown; then
23028      # See if sys/param.h defines the BYTE_ORDER macro.
23029      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23030/* end confdefs.h.  */
23031#include <sys/types.h>
23032	     #include <sys/param.h>
23033
23034int
23035main ()
23036{
23037#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23038		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23039		     && LITTLE_ENDIAN)
23040	      bogus endian macros
23041	     #endif
23042
23043  ;
23044  return 0;
23045}
23046_ACEOF
23047if ac_fn_c_try_compile "$LINENO"; then :
23048  # It does; now see whether it defined to BIG_ENDIAN or not.
23049	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23050/* end confdefs.h.  */
23051#include <sys/types.h>
23052		#include <sys/param.h>
23053
23054int
23055main ()
23056{
23057#if BYTE_ORDER != BIG_ENDIAN
23058		 not big endian
23059		#endif
23060
23061  ;
23062  return 0;
23063}
23064_ACEOF
23065if ac_fn_c_try_compile "$LINENO"; then :
23066  ac_cv_c_bigendian=yes
23067else
23068  ac_cv_c_bigendian=no
23069fi
23070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23071fi
23072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23073    fi
23074    if test $ac_cv_c_bigendian = unknown; then
23075      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23076      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23077/* end confdefs.h.  */
23078#include <limits.h>
23079
23080int
23081main ()
23082{
23083#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23084	      bogus endian macros
23085	     #endif
23086
23087  ;
23088  return 0;
23089}
23090_ACEOF
23091if ac_fn_c_try_compile "$LINENO"; then :
23092  # It does; now see whether it defined to _BIG_ENDIAN or not.
23093	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23094/* end confdefs.h.  */
23095#include <limits.h>
23096
23097int
23098main ()
23099{
23100#ifndef _BIG_ENDIAN
23101		 not big endian
23102		#endif
23103
23104  ;
23105  return 0;
23106}
23107_ACEOF
23108if ac_fn_c_try_compile "$LINENO"; then :
23109  ac_cv_c_bigendian=yes
23110else
23111  ac_cv_c_bigendian=no
23112fi
23113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23114fi
23115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23116    fi
23117    if test $ac_cv_c_bigendian = unknown; then
23118      # Compile a test program.
23119      if test "$cross_compiling" = yes; then :
23120  # Try to guess by grepping values from an object file.
23121	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23122/* end confdefs.h.  */
23123short int ascii_mm[] =
23124		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23125		short int ascii_ii[] =
23126		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23127		int use_ascii (int i) {
23128		  return ascii_mm[i] + ascii_ii[i];
23129		}
23130		short int ebcdic_ii[] =
23131		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23132		short int ebcdic_mm[] =
23133		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23134		int use_ebcdic (int i) {
23135		  return ebcdic_mm[i] + ebcdic_ii[i];
23136		}
23137		extern int foo;
23138
23139int
23140main ()
23141{
23142return use_ascii (foo) == use_ebcdic (foo);
23143  ;
23144  return 0;
23145}
23146_ACEOF
23147if ac_fn_c_try_compile "$LINENO"; then :
23148  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23149	      ac_cv_c_bigendian=yes
23150	    fi
23151	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23152	      if test "$ac_cv_c_bigendian" = unknown; then
23153		ac_cv_c_bigendian=no
23154	      else
23155		# finding both strings is unlikely to happen, but who knows?
23156		ac_cv_c_bigendian=unknown
23157	      fi
23158	    fi
23159fi
23160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23161else
23162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23163/* end confdefs.h.  */
23164$ac_includes_default
23165int
23166main ()
23167{
23168
23169	     /* Are we little or big endian?  From Harbison&Steele.  */
23170	     union
23171	     {
23172	       long int l;
23173	       char c[sizeof (long int)];
23174	     } u;
23175	     u.l = 1;
23176	     return u.c[sizeof (long int) - 1] == 1;
23177
23178  ;
23179  return 0;
23180}
23181_ACEOF
23182if ac_fn_c_try_run "$LINENO"; then :
23183  ac_cv_c_bigendian=no
23184else
23185  ac_cv_c_bigendian=yes
23186fi
23187rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23188  conftest.$ac_objext conftest.beam conftest.$ac_ext
23189fi
23190
23191    fi
23192fi
23193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23194$as_echo "$ac_cv_c_bigendian" >&6; }
23195 case $ac_cv_c_bigendian in #(
23196   yes)
23197     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23198;; #(
23199   no)
23200      ;; #(
23201   universal)
23202
23203$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23204
23205     ;; #(
23206   *)
23207     as_fn_error $? "unknown endianness
23208 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23209 esac
23210
23211
23212
23213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for le32toh in sys/endian.h" >&5
23214$as_echo_n "checking for le32toh in sys/endian.h... " >&6; }
23215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23216/* end confdefs.h.  */
23217
23218#include <sys/endian.h>
23219#ifdef le32toh
23220 	symbol is present
23221#endif
23222
23223_ACEOF
23224if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23225  $EGREP "symbol is present|\<le32toh\>" >/dev/null 2>&1; then :
23226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23227$as_echo "yes" >&6; }
23228HAVE_LE32TOH=1
23229 cat >> "libgphoto2/gphoto2-endian.h" << EOF
23230/* extended byte swapping macros are already available */
23231#include <sys/endian.h>
23232
23233EOF
23234
23235else
23236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23237$as_echo "no" >&6; }
23238
23239
23240
23241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ntohl in arpa/inet.h" >&5
23242$as_echo_n "checking for ntohl in arpa/inet.h... " >&6; }
23243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23244/* end confdefs.h.  */
23245
23246#include <arpa/inet.h>
23247#ifdef ntohl
23248 	symbol is present
23249#endif
23250
23251_ACEOF
23252if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23253  $EGREP "symbol is present|\<ntohl\>" >/dev/null 2>&1; then :
23254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23255$as_echo "yes" >&6; }
23256cat >> "libgphoto2/gphoto2-endian.h" << EOF
23257/* ntohl and relatives live here */
23258#include <arpa/inet.h>
23259#define __HAVE_NTOHL
23260
23261EOF
23262
23263else
23264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23265$as_echo "no" >&6; }
23266
23267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ntohl in netinet/in.h" >&5
23268$as_echo_n "checking for ntohl in netinet/in.h... " >&6; }
23269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23270/* end confdefs.h.  */
23271
23272#include <netinet/in.h>
23273#ifdef ntohl
23274 	symbol is present
23275#endif
23276
23277_ACEOF
23278if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23279  $EGREP "symbol is present|\<ntohl\>" >/dev/null 2>&1; then :
23280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23281$as_echo "yes" >&6; }
23282cat >> "libgphoto2/gphoto2-endian.h" << EOF
23283/* ntohl and relatives live here */
23284#include <netinet/in.h>
23285#define __HAVE_NTOHL
23286
23287EOF
23288
23289else
23290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23291$as_echo "no" >&6; }
23292true
23293
23294fi
23295rm -f conftest*
23296
23297
23298fi
23299rm -f conftest*
23300
23301
23302
23303fi
23304rm -f conftest*
23305
23306
23307
23308
23309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for swap32 in sys/endian.h" >&5
23310$as_echo_n "checking for swap32 in sys/endian.h... " >&6; }
23311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23312/* end confdefs.h.  */
23313
23314#include <sys/endian.h>
23315#ifdef swap32
23316 	symbol is present
23317#endif
23318
23319_ACEOF
23320if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23321  $EGREP "symbol is present|\<swap32\>" >/dev/null 2>&1; then :
23322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23323$as_echo "yes" >&6; }
23324cat >> "libgphoto2/gphoto2-endian.h" << EOF
23325/* swap32 and swap16 are defined in sys/endian.h */
23326
23327EOF
23328
23329else
23330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23331$as_echo "no" >&6; }
23332
23333
23334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap_32 in byteswap.h" >&5
23335$as_echo_n "checking for bswap_32 in byteswap.h... " >&6; }
23336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23337/* end confdefs.h.  */
23338
23339#include <byteswap.h>
23340#ifdef bswap_32
23341 	symbol is present
23342#endif
23343
23344_ACEOF
23345if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23346  $EGREP "symbol is present|\<bswap_32\>" >/dev/null 2>&1; then :
23347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23348$as_echo "yes" >&6; }
23349cat >> "libgphoto2/gphoto2-endian.h" << EOF
23350/* Define generic byte swapping functions */
23351#include <byteswap.h>
23352#define swap16(x) bswap_16(x)
23353#define swap32(x) bswap_32(x)
23354#define swap64(x) bswap_64(x)
23355
23356EOF
23357
23358else
23359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23360$as_echo "no" >&6; }
23361
23362
23363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap32 in sys/endian.h" >&5
23364$as_echo_n "checking for bswap32 in sys/endian.h... " >&6; }
23365cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23366/* end confdefs.h.  */
23367
23368#include <sys/endian.h>
23369#ifdef bswap32
23370 	symbol is present
23371#endif
23372
23373_ACEOF
23374if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23375  $EGREP "symbol is present|\<bswap32\>" >/dev/null 2>&1; then :
23376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23377$as_echo "yes" >&6; }
23378  	 cat >> "libgphoto2/gphoto2-endian.h" << EOF
23379/* Define generic byte swapping functions */
23380EOF
23381	if test "$HAVE_LE32TOH" != "1"; then
23382		echo '#include <sys/endian.h>'>> "libgphoto2/gphoto2-endian.h"
23383	fi
23384cat >> "libgphoto2/gphoto2-endian.h" << EOF
23385#define swap16(x) bswap16(x)
23386#define swap32(x) bswap32(x)
23387#define swap64(x) bswap64(x)
23388
23389EOF
23390
23391else
23392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23393$as_echo "no" >&6; }
23394
23395
23396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __byte_swap_long in sys/types.h" >&5
23397$as_echo_n "checking for __byte_swap_long in sys/types.h... " >&6; }
23398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23399/* end confdefs.h.  */
23400
23401#include <sys/types.h>
23402#ifdef __byte_swap_long
23403 	symbol is present
23404#endif
23405
23406_ACEOF
23407if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23408  $EGREP "symbol is present|\<__byte_swap_long\>" >/dev/null 2>&1; then :
23409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23410$as_echo "yes" >&6; }
23411cat >> "libgphoto2/gphoto2-endian.h" << EOF
23412/* Define generic byte swapping functions */
23413#include <sys/types.h>
23414#define swap16(x) __byte_swap_word(x)
23415#define swap32(x) __byte_swap_long(x)
23416/* No optimized 64 bit byte swapping macro is available */
23417#define swap64(x) ((uint64_t)(((uint64_t)(x) << 56) & 0xff00000000000000ULL | \\
23418			      ((uint64_t)(x) << 40) & 0x00ff000000000000ULL | \\
23419			      ((uint64_t)(x) << 24) & 0x0000ff0000000000ULL | \\
23420			      ((uint64_t)(x) << 8)  & 0x000000ff00000000ULL | \\
23421			      ((x) >> 8)  & 0x00000000ff000000ULL | \\
23422			      ((x) >> 24) & 0x0000000000ff0000ULL | \\
23423			      ((x) >> 40) & 0x000000000000ff00ULL | \\
23424			      ((x) >> 56) & 0x00000000000000ffULL))
23425
23426EOF
23427
23428else
23429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23430$as_echo "no" >&6; }
23431
23432
23433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NXSwapLong in machine/byte_order.h" >&5
23434$as_echo_n "checking for NXSwapLong in machine/byte_order.h... " >&6; }
23435cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23436/* end confdefs.h.  */
23437
23438#include <machine/byte_order.h>
23439#ifdef NXSwapLong
23440 	symbol is present
23441#endif
23442
23443_ACEOF
23444if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23445  $EGREP "symbol is present|\<NXSwapLong\>" >/dev/null 2>&1; then :
23446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23447$as_echo "yes" >&6; }
23448cat >> "libgphoto2/gphoto2-endian.h" << EOF
23449/* Define generic byte swapping functions */
23450#include <machine/byte_order.h>
23451#define swap16(x) NXSwapShort(x)
23452#define swap32(x) NXSwapLong(x)
23453#define swap64(x) NXSwapLongLong(x)
23454
23455EOF
23456
23457else
23458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23459$as_echo "no" >&6; }
23460
23461	if test $ac_cv_c_bigendian = yes; then
23462		cat >> "libgphoto2/gphoto2-endian.h" << EOF
23463/* No other byte swapping functions are available on this big-endian system */
23464#define swap16(x)	((uint16_t)(((x) << 8) | ((uint16_t)(x) >> 8)))
23465#define swap32(x)	((uint32_t)(((uint32_t)(x) << 24) & 0xff000000UL | \\
23466				    ((uint32_t)(x) << 8)  & 0x00ff0000UL | \\
23467				    ((x) >> 8)  & 0x0000ff00UL | \\
23468				    ((x) >> 24) & 0x000000ffUL))
23469#define swap64(x) ((uint64_t)(((uint64_t)(x) << 56) & 0xff00000000000000ULL | \\
23470			      ((uint64_t)(x) << 40) & 0x00ff000000000000ULL | \\
23471			      ((uint64_t)(x) << 24) & 0x0000ff0000000000ULL | \\
23472			      ((uint64_t)(x) << 8)  & 0x000000ff00000000ULL | \\
23473			      ((x) >> 8)  & 0x00000000ff000000ULL | \\
23474			      ((x) >> 24) & 0x0000000000ff0000ULL | \\
23475			      ((x) >> 40) & 0x000000000000ff00ULL | \\
23476			      ((x) >> 56) & 0x00000000000000ffULL))
23477
23478EOF
23479	else
23480 cat >> "libgphoto2/gphoto2-endian.h" << EOF
23481/* Use these as generic byteswapping macros on this little endian system */
23482/* on windows we might not have ntohs / ntohl without including winsock.dll,
23483 * so use generic macros */
23484#ifdef __HAVE_NTOHL
23485# define swap16(x)	htons(x)
23486# define swap32(x)	htonl(x)
23487#else
23488# define swap16(x)	((uint16_t)(((x) << 8) | ((uint16_t)(x) >> 8)))
23489# define swap32(x)	((uint32_t)((((uint32_t)(x) << 24) & 0xff000000UL) | \\
23490				    (((uint32_t)(x) << 8)  & 0x00ff0000UL) | \\
23491				    (((x) >> 8)  & 0x0000ff00UL) | \\
23492				    (((x) >> 24) & 0x000000ffUL)))
23493#endif
23494/* No optimized 64 bit byte swapping macro is available */
23495#define swap64(x) ((uint64_t)((((uint64_t)(x) << 56) & 0xff00000000000000ULL) | \\
23496			      (((uint64_t)(x) << 40) & 0x00ff000000000000ULL) | \\
23497			      (((uint64_t)(x) << 24) & 0x0000ff0000000000ULL) | \\
23498			      (((uint64_t)(x) << 8)  & 0x000000ff00000000ULL) | \\
23499			      (((x) >> 8)  & 0x00000000ff000000ULL) | \\
23500			      (((x) >> 24) & 0x0000000000ff0000ULL) | \\
23501			      (((x) >> 40) & 0x000000000000ff00ULL) | \\
23502			      (((x) >> 56) & 0x00000000000000ffULL)))
23503
23504EOF
23505	fi
23506
23507
23508fi
23509rm -f conftest*
23510
23511
23512
23513fi
23514rm -f conftest*
23515
23516
23517
23518fi
23519rm -f conftest*
23520
23521
23522
23523fi
23524rm -f conftest*
23525
23526
23527
23528fi
23529rm -f conftest*
23530
23531
23532
23533
23534if test "$HAVE_LE32TOH" != "1"; then
23535 cat >> "libgphoto2/gphoto2-endian.h" << EOF
23536/* The byte swapping macros have the form: */
23537/*   EENN[a]toh or htoEENN[a] where EE is be (big endian) or */
23538/* le (little-endian), NN is 16 or 32 (number of bits) and a, */
23539/* if present, indicates that the endian side is a pointer to an */
23540/* array of uint8_t bytes instead of an integer of the specified length. */
23541/* h refers to the host's ordering method. */
23542
23543/* So, to convert a 32-bit integer stored in a buffer in little-endian */
23544/* format into a uint32_t usable on this machine, you could use: */
23545/*   uint32_t value = le32atoh(&buf[3]); */
23546/* To put that value back into the buffer, you could use: */
23547/*   htole32a(&buf[3], value); */
23548
23549/* Define aliases for the standard byte swapping macros */
23550/* Arguments to these macros must be properly aligned on natural word */
23551/* boundaries in order to work properly on all architectures */
23552#ifndef htobe16
23553# ifdef __HAVE_NTOHL
23554#  define htobe16(x) htons(x)
23555# else
23556#  ifdef WORDS_BIGENDIAN
23557#   define htobe16(x) (x)
23558#  else
23559#   define htobe16(x) swap16(x)
23560#  endif
23561# endif
23562#endif
23563#ifndef htobe32
23564# ifdef __HAVE_NTOHL
23565#  define htobe32(x) htonl(x)
23566# else
23567#  ifdef WORDS_BIGENDIAN
23568#   define htobe32(x) (x)
23569#  else
23570#   define htobe32(x) swap32(x)
23571#  endif
23572# endif
23573#endif
23574#ifndef be16toh
23575# define be16toh(x) htobe16(x)
23576#endif
23577#ifndef be32toh
23578# define be32toh(x) htobe32(x)
23579#endif
23580
23581#define HTOBE16(x) (x) = htobe16(x)
23582#define HTOBE32(x) (x) = htobe32(x)
23583#define BE32TOH(x) (x) = be32toh(x)
23584#define BE16TOH(x) (x) = be16toh(x)
23585
23586EOF
23587
23588 if test $ac_cv_c_bigendian = yes; then
23589  cat >> "libgphoto2/gphoto2-endian.h" << EOF
23590/* Define our own extended byte swapping macros for big-endian machines */
23591#ifndef htole16
23592# define htole16(x)      swap16(x)
23593#endif
23594#ifndef htole32
23595# define htole32(x)      swap32(x)
23596#endif
23597#ifndef htole64
23598# define htole64(x)      swap64(x)
23599#endif
23600#ifndef le16toh
23601# define le16toh(x)      swap16(x)
23602#endif
23603#ifndef le32toh
23604# define le32toh(x)      swap32(x)
23605#endif
23606#ifndef le64toh
23607# define le64toh(x)      swap64(x)
23608#endif
23609
23610#ifndef htobe64
23611# define htobe64(x)      (x)
23612#endif
23613#ifndef be64toh
23614# define be64toh(x)      (x)
23615#endif
23616
23617#define HTOLE16(x)      (x) = htole16(x)
23618#define HTOLE32(x)      (x) = htole32(x)
23619#define HTOLE64(x)      (x) = htole64(x)
23620#define LE16TOH(x)      (x) = le16toh(x)
23621#define LE32TOH(x)      (x) = le32toh(x)
23622#define LE64TOH(x)      (x) = le64toh(x)
23623
23624#define HTOBE64(x)      (void) (x)
23625#define BE64TOH(x)      (void) (x)
23626
23627EOF
23628 else
23629  cat >> "libgphoto2/gphoto2-endian.h" << EOF
23630/* On little endian machines, these macros are null */
23631#ifndef htole16
23632# define htole16(x)      (x)
23633#endif
23634#ifndef htole32
23635# define htole32(x)      (x)
23636#endif
23637#ifndef htole64
23638# define htole64(x)      (x)
23639#endif
23640#ifndef le16toh
23641# define le16toh(x)      (x)
23642#endif
23643#ifndef le32toh
23644# define le32toh(x)      (x)
23645#endif
23646#ifndef le64toh
23647# define le64toh(x)      (x)
23648#endif
23649
23650#define HTOLE16(x)      (void) (x)
23651#define HTOLE32(x)      (void) (x)
23652#define HTOLE64(x)      (void) (x)
23653#define LE16TOH(x)      (void) (x)
23654#define LE32TOH(x)      (void) (x)
23655#define LE64TOH(x)      (void) (x)
23656
23657/* These don't have standard aliases */
23658#ifndef htobe64
23659# define htobe64(x)      swap64(x)
23660#endif
23661#ifndef be64toh
23662# define be64toh(x)      swap64(x)
23663#endif
23664
23665#define HTOBE64(x)      (x) = htobe64(x)
23666#define BE64TOH(x)      (x) = be64toh(x)
23667
23668EOF
23669 fi
23670fi
23671
23672cat >> "libgphoto2/gphoto2-endian.h" << EOF
23673/* Define the C99 standard length-specific integer types */
23674#include <_stdint.h>
23675
23676EOF
23677
23678case "${effective_target}" in
23679 i[3456]86-*)
23680  cat >> "libgphoto2/gphoto2-endian.h" << EOF
23681/* Here are some macros to create integers from a byte array */
23682/* These are used to get and put integers from/into a uint8_t array */
23683/* with a specific endianness.  This is the most portable way to generate */
23684/* and read messages to a network or serial device.  Each member of a */
23685/* packet structure must be handled separately. */
23686
23687/* The i386 and compatibles can handle unaligned memory access, */
23688/* so use the optimized macros above to do this job */
23689#ifndef be16atoh
23690# define be16atoh(x)     be16toh(*(uint16_t*)(x))
23691#endif
23692#ifndef be32atoh
23693# define be32atoh(x)     be32toh(*(uint32_t*)(x))
23694#endif
23695#ifndef be64atoh
23696# define be64atoh(x)     be64toh(*(uint64_t*)(x))
23697#endif
23698#ifndef le16atoh
23699# define le16atoh(x)     le16toh(*(uint16_t*)(x))
23700#endif
23701#ifndef le32atoh
23702# define le32atoh(x)     le32toh(*(uint32_t*)(x))
23703#endif
23704#ifndef le64atoh
23705# define le64atoh(x)     le64toh(*(uint64_t*)(x))
23706#endif
23707
23708#ifndef htob16a
23709# define htobe16a(a,x)   *(uint16_t*)(a) = htobe16(x)
23710#endif
23711#ifndef htobe32a
23712# define htobe32a(a,x)   *(uint32_t*)(a) = htobe32(x)
23713#endif
23714#ifndef htobe64a
23715# define htobe64a(a,x)   *(uint64_t*)(a) = htobe64(x)
23716#endif
23717#ifndef htole16a
23718# define htole16a(a,x)   *(uint16_t*)(a) = htole16(x)
23719#endif
23720#ifndef htole32a
23721# define htole32a(a,x)   *(uint32_t*)(a) = htole32(x)
23722#endif
23723#ifndef htole64a
23724# define htole64a(a,x)   *(uint64_t*)(a) = htole64(x)
23725#endif
23726
23727EOF
23728  ;;
23729
23730 *)
23731  cat >> "libgphoto2/gphoto2-endian.h" << EOF
23732/* Here are some macros to create integers from a byte array */
23733/* These are used to get and put integers from/into a uint8_t array */
23734/* with a specific endianness.  This is the most portable way to generate */
23735/* and read messages to a network or serial device.  Each member of a */
23736/* packet structure must be handled separately. */
23737
23738/* Non-optimized but portable macros */
23739#define be16atoh(x)     ((uint16_t)(((x)[0]<<8)|(x)[1]))
23740#define be32atoh(x)     ((uint32_t)(((x)[0]<<24)|((x)[1]<<16)|((x)[2]<<8)|(x)[3]))
23741#define be64atoh_x(x,off,shift) 	(((uint64_t)((x)[off]))<<shift)
23742#define be64atoh(x)     ((uint64_t)(be64atoh_x(x,0,56)|be64atoh_x(x,1,48)|be64atoh_x(x,2,40)| \\
23743        be64atoh_x(x,3,32)|be64atoh_x(x,4,24)|be64atoh_x(x,5,16)|be64atoh_x(x,6,8)|((x)[7])))
23744#define le16atoh(x)     ((uint16_t)(((x)[1]<<8)|(x)[0]))
23745#define le32atoh(x)     ((uint32_t)(((x)[3]<<24)|((x)[2]<<16)|((x)[1]<<8)|(x)[0]))
23746#define le64atoh_x(x,off,shift) (((uint64_t)(x)[off])<<shift)
23747#define le64atoh(x)     ((uint64_t)(le64atoh_x(x,7,56)|le64atoh_x(x,6,48)|le64atoh_x(x,5,40)| \\
23748        le64atoh_x(x,4,32)|le64atoh_x(x,3,24)|le64atoh_x(x,2,16)|le64atoh_x(x,1,8)|((x)[0])))
23749
23750#define htobe16a(a,x)   (a)[0]=(uint8_t)((x)>>8), (a)[1]=(uint8_t)(x)
23751#define htobe32a(a,x)   (a)[0]=(uint8_t)((x)>>24), (a)[1]=(uint8_t)((x)>>16), \\
23752        (a)[2]=(uint8_t)((x)>>8), (a)[3]=(uint8_t)(x)
23753#define htobe64a(a,x)   (a)[0]=(uint8_t)((x)>>56), (a)[1]=(uint8_t)((x)>>48), \\
23754        (a)[2]=(uint8_t)((x)>>40), (a)[3]=(uint8_t)((x)>>32), \\
23755        (a)[4]=(uint8_t)((x)>>24), (a)[5]=(uint8_t)((x)>>16), \\
23756        (a)[6]=(uint8_t)((x)>>8), (a)[7]=(uint8_t)(x)
23757#define htole16a(a,x)   (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x)
23758#define htole32a(a,x)   (a)[3]=(uint8_t)((x)>>24), (a)[2]=(uint8_t)((x)>>16), \\
23759        (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x)
23760#define htole64a(a,x)   (a)[7]=(uint8_t)((x)>>56), (a)[6]=(uint8_t)((x)>>48), \\
23761        (a)[5]=(uint8_t)((x)>>40), (a)[4]=(uint8_t)((x)>>32), \\
23762        (a)[3]=(uint8_t)((x)>>24), (a)[2]=(uint8_t)((x)>>16), \\
23763        (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x)
23764
23765EOF
23766  ;;
23767esac
23768
23769
23770cat >> "libgphoto2/gphoto2-endian.h" << EOF
23771#endif /*__BYTEORDER_H*/
23772EOF
23773
23774
23775
23776
23777
23778
23779
23780
23781
23782if test "x${utilsdir}" = "x"; then utilsdir="\${libdir}/\${PACKAGE_TARNAME}"; fi
23783
23784
23785
23786if test "x${udevscriptdir}" = "x"; then	udevscriptdir="\${libdir}/udev"; fi
23787
23788
23789 if if echo "$host"|grep -i linux >/dev/null ; then true; else false; fi ; then
23790  HAVE_UDEV_TRUE=
23791  HAVE_UDEV_FALSE='#'
23792else
23793  HAVE_UDEV_TRUE='#'
23794  HAVE_UDEV_FALSE=
23795fi
23796
23797
23798
23799
23800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install camlibs" >&5
23801$as_echo_n "checking where to install camlibs... " >&6; }
23802
23803# Check whether --with-camlibdir was given.
23804if test "${with_camlibdir+set}" = set; then :
23805  withval=$with_camlibdir;
23806	camlibdir="$withval"
23807
23808else
23809
23810	camlibdir="\${libdir}/${PACKAGE_TARNAME}/${PACKAGE_VERSION}"
23811
23812fi
23813
23814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${camlibdir}" >&5
23815$as_echo "${camlibdir}" >&6; }
23816
23817AM_CPPFLAGS="$AM_CPPFLAGS -DCAMLIBS=\\\"\$(camlibdir)\\\""
23818
23819
23820# Extract the first word of "cmp", so it can be a program name with args.
23821set dummy cmp; ac_word=$2
23822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23823$as_echo_n "checking for $ac_word... " >&6; }
23824if ${ac_cv_path_CMP+:} false; then :
23825  $as_echo_n "(cached) " >&6
23826else
23827  case $CMP in
23828  [\\/]* | ?:[\\/]*)
23829  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
23830  ;;
23831  *)
23832  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23833for as_dir in $PATH
23834do
23835  IFS=$as_save_IFS
23836  test -z "$as_dir" && as_dir=.
23837    for ac_exec_ext in '' $ac_executable_extensions; do
23838  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23839    ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
23840    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23841    break 2
23842  fi
23843done
23844  done
23845IFS=$as_save_IFS
23846
23847  ;;
23848esac
23849fi
23850CMP=$ac_cv_path_CMP
23851if test -n "$CMP"; then
23852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
23853$as_echo "$CMP" >&6; }
23854else
23855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23856$as_echo "no" >&6; }
23857fi
23858
23859
23860# Extract the first word of "sort", so it can be a program name with args.
23861set dummy sort; ac_word=$2
23862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23863$as_echo_n "checking for $ac_word... " >&6; }
23864if ${ac_cv_path_SORT+:} false; then :
23865  $as_echo_n "(cached) " >&6
23866else
23867  case $SORT in
23868  [\\/]* | ?:[\\/]*)
23869  ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
23870  ;;
23871  *)
23872  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23873for as_dir in $PATH
23874do
23875  IFS=$as_save_IFS
23876  test -z "$as_dir" && as_dir=.
23877    for ac_exec_ext in '' $ac_executable_extensions; do
23878  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23879    ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
23880    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23881    break 2
23882  fi
23883done
23884  done
23885IFS=$as_save_IFS
23886
23887  ;;
23888esac
23889fi
23890SORT=$ac_cv_path_SORT
23891if test -n "$SORT"; then
23892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
23893$as_echo "$SORT" >&6; }
23894else
23895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23896$as_echo "no" >&6; }
23897fi
23898
23899
23900# Extract the first word of "tr", so it can be a program name with args.
23901set dummy tr; ac_word=$2
23902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23903$as_echo_n "checking for $ac_word... " >&6; }
23904if ${ac_cv_path_TR+:} false; then :
23905  $as_echo_n "(cached) " >&6
23906else
23907  case $TR in
23908  [\\/]* | ?:[\\/]*)
23909  ac_cv_path_TR="$TR" # Let the user override the test with a path.
23910  ;;
23911  *)
23912  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23913for as_dir in $PATH
23914do
23915  IFS=$as_save_IFS
23916  test -z "$as_dir" && as_dir=.
23917    for ac_exec_ext in '' $ac_executable_extensions; do
23918  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23919    ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
23920    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23921    break 2
23922  fi
23923done
23924  done
23925IFS=$as_save_IFS
23926
23927  ;;
23928esac
23929fi
23930TR=$ac_cv_path_TR
23931if test -n "$TR"; then
23932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
23933$as_echo "$TR" >&6; }
23934else
23935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23936$as_echo "no" >&6; }
23937fi
23938
23939
23940# Extract the first word of "uniq", so it can be a program name with args.
23941set dummy uniq; ac_word=$2
23942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23943$as_echo_n "checking for $ac_word... " >&6; }
23944if ${ac_cv_path_UNIQ+:} false; then :
23945  $as_echo_n "(cached) " >&6
23946else
23947  case $UNIQ in
23948  [\\/]* | ?:[\\/]*)
23949  ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
23950  ;;
23951  *)
23952  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23953for as_dir in $PATH
23954do
23955  IFS=$as_save_IFS
23956  test -z "$as_dir" && as_dir=.
23957    for ac_exec_ext in '' $ac_executable_extensions; do
23958  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23959    ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
23960    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23961    break 2
23962  fi
23963done
23964  done
23965IFS=$as_save_IFS
23966
23967  ;;
23968esac
23969fi
23970UNIQ=$ac_cv_path_UNIQ
23971if test -n "$UNIQ"; then
23972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
23973$as_echo "$UNIQ" >&6; }
23974else
23975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23976$as_echo "no" >&6; }
23977fi
23978
23979
23980
23981        : > "gp-set-file--camlib-set-standard"
23982: > "gp-set-file--camlib-set-unlisted"
23983: > "gp-set-file--camlib-set-outdated"
23984
23985gp_set_shfn_check ()
23986{
23987  if test -f "$1"; then :; else
23988    as_fn_error $? "\"Error: set $1 has not been defined yet\"" "$LINENO" 5
23989  fi
23990} # gp_set_shfn_check
23991
23992gp_set_shfn_set_add ()
23993{
23994  gp_set_shfn_check "$1"
23995  $as_echo "$2" >> "$1"
23996} # gp_set_shfn_set_add
23997
23998      gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "adc65"
23999
24000            gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "agfa_cl20"
24001
24002            gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "aox"
24003
24004        gp_set_shfn_set_add "gp-set-file--camlib-set-standard" "ax203"
24005
24006        gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "barbie"
24007
24008        gp_set_shfn_set_add "gp-set-file--camlib-set-standard" "canon"
24009
24010        gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "casio_qv"
24011
24012            gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "clicksmart310"
24013
24014        gp_set_shfn_set_add "gp-set-file--camlib-set-standard" "digigr8"
24015
24016        gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "digita"
24017
24018            gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "dimera3500"
24019
24020        gp_set_shfn_set_add "gp-set-file--camlib-set-standard" "directory"
24021
24022  if test -z "$HAVE_LIBGD_TRUE"; then :
24023    gp_set_shfn_set_add "gp-set-file--camlib-set-standard" "docupen"
24024
24025
24026fi
24027      gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "enigma13"
24028
24029            gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "fuji"
24030
24031            gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "gsmart300"
24032
24033            gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "hp215"
24034
24035            gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "iclick"
24036
24037            gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "jamcam"
24038
24039            gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "jd11"
24040
24041        gp_set_shfn_set_add "gp-set-file--camlib-set-standard" "jl2005a"
24042
24043    gp_set_shfn_set_add "gp-set-file--camlib-set-standard" "jl2005c"
24044
24045        gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "kodak_dc120"
24046
24047            gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "kodak_dc210"
24048
24049        gp_set_shfn_set_add "gp-set-file--camlib-set-standard" "kodak_dc240"
24050
24051        gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "kodak_dc3200"
24052
24053            gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "kodak_ez200"
24054
24055            gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "konica"
24056
24057            gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "konica_qm150"
24058
24059            gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "largan"
24060
24061            gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "lg_gsm"
24062
24063      if test -z "$HAVE_LIBCURL_TRUE"; then :
24064  if test -z "$HAVE_LIBXML2_TRUE"; then :
24065    gp_set_shfn_set_add "gp-set-file--camlib-set-standard" "lumix"
24066
24067
24068fi
24069
24070fi
24071  gp_set_shfn_set_add "gp-set-file--camlib-set-standard" "mars"
24072
24073    gp_set_shfn_set_add "gp-set-file--camlib-set-standard" "dimagev"
24074
24075        gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "mustek"
24076
24077            gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "panasonic_coolshot"
24078
24079            gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "panasonic_l859"
24080
24081            gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "panasonic_dc1000"
24082
24083            gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "panasonic_dc1580"
24084
24085            gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "pccam300"
24086
24087            gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "pccam600"
24088
24089        gp_set_shfn_set_add "gp-set-file--camlib-set-standard" "pentax"
24090
24091        gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "polaroid_pdc320"
24092
24093            gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "polaroid_pdc640"
24094
24095            gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "polaroid_pdc700"
24096
24097        gp_set_shfn_set_add "gp-set-file--camlib-set-standard" "ptp2"
24098
24099        gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "ricoh"
24100
24101        gp_set_shfn_set_add "gp-set-file--camlib-set-standard" "ricoh_g3"
24102
24103        gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "samsung"
24104
24105        gp_set_shfn_set_add "gp-set-file--camlib-set-standard" "sierra"
24106
24107        gp_set_shfn_set_add "gp-set-file--camlib-set-unlisted" "sipix_blink"
24108
24109            gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "sipix_blink2"
24110
24111            gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "sipix_web2"
24112
24113            gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "smal"
24114
24115        gp_set_shfn_set_add "gp-set-file--camlib-set-standard" "sonix"
24116
24117        gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "sony_dscf1"
24118
24119            gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "sony_dscf55"
24120
24121            gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "soundvision"
24122
24123            gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "spca50x"
24124
24125        gp_set_shfn_set_add "gp-set-file--camlib-set-standard" "sq905"
24126
24127    gp_set_shfn_set_add "gp-set-file--camlib-set-standard" "st2205"
24128
24129        gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "stv0674"
24130
24131            gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "stv0680"
24132
24133            gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "sx330z"
24134
24135            gp_set_shfn_set_add "gp-set-file--camlib-set-unlisted" "template"
24136
24137        gp_set_shfn_set_add "gp-set-file--camlib-set-standard" "topfield"
24138
24139        gp_set_shfn_set_add "gp-set-file--camlib-set-outdated" "toshiba_pdrm11"
24140
24141        gp_set_shfn_set_add "gp-set-file--camlib-set-standard" "tp6801"
24142
24143  # Extract the first word of "expr", so it can be a program name with args.
24144set dummy expr; ac_word=$2
24145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24146$as_echo_n "checking for $ac_word... " >&6; }
24147if ${ac_cv_path_EXPR+:} false; then :
24148  $as_echo_n "(cached) " >&6
24149else
24150  case $EXPR in
24151  [\\/]* | ?:[\\/]*)
24152  ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
24153  ;;
24154  *)
24155  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24156for as_dir in $PATH
24157do
24158  IFS=$as_save_IFS
24159  test -z "$as_dir" && as_dir=.
24160    for ac_exec_ext in '' $ac_executable_extensions; do
24161  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24162    ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
24163    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24164    break 2
24165  fi
24166done
24167  done
24168IFS=$as_save_IFS
24169
24170  ;;
24171esac
24172fi
24173EXPR=$ac_cv_path_EXPR
24174if test -n "$EXPR"; then
24175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
24176$as_echo "$EXPR" >&6; }
24177else
24178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24179$as_echo "no" >&6; }
24180fi
24181
24182
24183gp_set_shfn_union ()
24184{
24185  local result_fname="$1"
24186  gp_set_shfn_check "$result_fname"
24187  if shift; then
24188    cat "$@" > "${result_fname}.tmp"
24189    mv -f "${result_fname}.tmp" "${result_fname}"
24190  fi
24191} # gp_set_shfn_union
24192
24193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to sleep" >&5
24194$as_echo_n "checking whether to sleep... " >&6; }
24195if test "x$SLEEP" = xno; then :
24196    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24197$as_echo "no" >&6; }
24198
24199else
24200    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24201$as_echo "yes" >&6; }
24202  # Extract the first word of "sleep", so it can be a program name with args.
24203set dummy sleep; ac_word=$2
24204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24205$as_echo_n "checking for $ac_word... " >&6; }
24206if ${ac_cv_path_SLEEP+:} false; then :
24207  $as_echo_n "(cached) " >&6
24208else
24209  case $SLEEP in
24210  [\\/]* | ?:[\\/]*)
24211  ac_cv_path_SLEEP="$SLEEP" # Let the user override the test with a path.
24212  ;;
24213  *)
24214  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24215for as_dir in $PATH
24216do
24217  IFS=$as_save_IFS
24218  test -z "$as_dir" && as_dir=.
24219    for ac_exec_ext in '' $ac_executable_extensions; do
24220  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24221    ac_cv_path_SLEEP="$as_dir/$ac_word$ac_exec_ext"
24222    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24223    break 2
24224  fi
24225done
24226  done
24227IFS=$as_save_IFS
24228
24229  ;;
24230esac
24231fi
24232SLEEP=$ac_cv_path_SLEEP
24233if test -n "$SLEEP"; then
24234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SLEEP" >&5
24235$as_echo "$SLEEP" >&6; }
24236else
24237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24238$as_echo "no" >&6; }
24239fi
24240
24241
24242fi
24243if test "x$SLEEP" != "x" && test "x$SLEEP" != "xno"; then :
24244  gp_sleep=$SLEEP
24245
24246else
24247  gp_sleep=:
24248
24249fi
24250
24251gp_set_shfn_canonicalize ()
24252{
24253  gp_set_shfn_check "$1"
24254  ( set -e
24255    ${SORT} < "$1" | ${UNIQ} > "$1.tmp"
24256    mv -f "$1.tmp" "$1"; )
24257} # gp_set_shfn_canonicalize
24258
24259# Extract the first word of "comm", so it can be a program name with args.
24260set dummy comm; ac_word=$2
24261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24262$as_echo_n "checking for $ac_word... " >&6; }
24263if ${ac_cv_path_COMM+:} false; then :
24264  $as_echo_n "(cached) " >&6
24265else
24266  case $COMM in
24267  [\\/]* | ?:[\\/]*)
24268  ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
24269  ;;
24270  *)
24271  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24272for as_dir in $PATH
24273do
24274  IFS=$as_save_IFS
24275  test -z "$as_dir" && as_dir=.
24276    for ac_exec_ext in '' $ac_executable_extensions; do
24277  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24278    ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
24279    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24280    break 2
24281  fi
24282done
24283  done
24284IFS=$as_save_IFS
24285
24286  ;;
24287esac
24288fi
24289COMM=$ac_cv_path_COMM
24290if test -n "$COMM"; then
24291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
24292$as_echo "$COMM" >&6; }
24293else
24294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24295$as_echo "no" >&6; }
24296fi
24297
24298
24299cat>confset_a.txt<<GP_EOF
24300x
24301y
24302GP_EOF
24303cat>confset_b.txt<<GP_EOF
24304y
24305z
24306GP_EOF
24307cat>confset_res_23.txt<<GP_EOF
24308x
24309GP_EOF
24310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether comm -23 works" >&5
24311$as_echo_n "checking whether comm -23 works... " >&6; }
24312if ${COMM} -23 confset_a.txt confset_b.txt > confset_diff_23.txt; then :
24313    if ${CMP} confset_diff_23.txt confset_res_23.txt > /dev/null 2>&1; then :
24314      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24315$as_echo "yes" >&6; }
24316    rm -f confset_a.txt confset_b.txt confset_diff_23.txt confset_res_23.txt
24317
24318else
24319      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (wrong result)" >&5
24320$as_echo "no (wrong result)" >&6; }
24321    as_fn_error $? "comm -23 must work for GP_SET difference calculations" "$LINENO" 5
24322
24323fi
24324
24325else
24326    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (does not run)" >&5
24327$as_echo "no (does not run)" >&6; }
24328  as_fn_error $? "comm -23 must work for GP_SET difference calculations" "$LINENO" 5
24329
24330fi
24331gp_set_shfn_difference ()
24332{
24333  local result_fname="$1"
24334  gp_set_shfn_check "$result_fname"
24335  if shift; then
24336    gp_set_shfn_canonicalize "$1"
24337    cat "$1" > "$result_fname"
24338    if shift; then
24339      for gp_s
24340      do
24341        gp_set_shfn_canonicalize "$gp_s"
24342        ${COMM} -23 "${result_fname}" "$gp_s" > "${result_fname}.tmp"
24343        mv -f "${result_fname}.tmp" "${result_fname}"
24344      done
24345    fi
24346  fi
24347} # gp_set_shfn_difference
24348
24349gp_set_shfn_remove ()
24350{
24351  gp_set_shfn_check "$1"
24352  ${GREP} -v "^$2$" < "$1" > "$1.tmp"
24353  mv -f "$1.tmp" "$1"
24354} # gp_set_shfn_remove
24355
24356gp_set_shfn_debug_var ()
24357{
24358  gp_set_shfn_check "$1"
24359  gp_set_shfn_canonicalize "$1"
24360  local element
24361  local gp_set_is_first=:
24362  local gp_set_saved_ifs="$IFS"
24363  IFS=""
24364  while read element
24365  do
24366    if "$gp_set_is_first"
24367    then
24368      eval "$2=\"{ \""
24369      gp_set_is_first=false
24370    else
24371      eval "$2=\"\${$2}, \""
24372    fi
24373    if test "x$element" = "x"
24374    then
24375      eval "$2=\"\${$2}''\""
24376    else
24377      eval "$2=\"\${$2}'\$element'\""
24378    fi
24379  done < "$1"
24380  IFS="$gp_set_saved_ifs"
24381  if "$gp_set_is_first"
24382  then
24383    eval "$2=\"{ }\""
24384  else
24385    eval "$2=\"\${$2} }\""
24386  fi
24387} # gp_set_shfn_debug_var
24388
24389# BEGIN GP_CAMLIBS_DEFINE([])
24390
24391
24392: > "gp-set-file--m4-camlib-set-everything"
24393
24394gp_set_shfn_check "gp-set-file--m4-camlib-set-everything"
24395cat>>"gp-set-file--m4-camlib-set-everything"<<_GP_EOF
24396adc65
24397agfa_cl20
24398aox
24399ax203
24400barbie
24401canon
24402casio_qv
24403clicksmart310
24404digigr8
24405digita
24406dimera3500
24407directory
24408docupen
24409enigma13
24410fuji
24411gsmart300
24412hp215
24413iclick
24414jamcam
24415jd11
24416jl2005a
24417jl2005c
24418kodak_dc120
24419kodak_dc210
24420kodak_dc240
24421kodak_dc3200
24422kodak_ez200
24423konica
24424konica_qm150
24425largan
24426lg_gsm
24427lumix
24428mars
24429dimagev
24430mustek
24431panasonic_coolshot
24432panasonic_l859
24433panasonic_dc1000
24434panasonic_dc1580
24435pccam300
24436pccam600
24437pentax
24438polaroid_pdc320
24439polaroid_pdc640
24440polaroid_pdc700
24441ptp2
24442ricoh
24443ricoh_g3
24444samsung
24445sierra
24446sipix_blink
24447sipix_blink2
24448sipix_web2
24449smal
24450sonix
24451sony_dscf1
24452sony_dscf55
24453soundvision
24454spca50x
24455sq905
24456st2205
24457stv0674
24458stv0680
24459sx330z
24460template
24461topfield
24462toshiba_pdrm11
24463tp6801
24464_GP_EOF
24465
24466: > "gp-set-file--m4-camlib-set-standard"
24467
24468gp_set_shfn_check "gp-set-file--m4-camlib-set-standard"
24469cat>>"gp-set-file--m4-camlib-set-standard"<<_GP_EOF
24470ax203
24471canon
24472digigr8
24473directory
24474docupen
24475jl2005a
24476jl2005c
24477kodak_dc240
24478lumix
24479mars
24480dimagev
24481pentax
24482ptp2
24483ricoh_g3
24484sierra
24485sonix
24486sq905
24487st2205
24488topfield
24489tp6801
24490_GP_EOF
24491
24492: > "gp-set-file--m4-camlib-set-outdated"
24493
24494gp_set_shfn_check "gp-set-file--m4-camlib-set-outdated"
24495cat>>"gp-set-file--m4-camlib-set-outdated"<<_GP_EOF
24496adc65
24497agfa_cl20
24498aox
24499barbie
24500casio_qv
24501clicksmart310
24502digita
24503dimera3500
24504enigma13
24505fuji
24506gsmart300
24507hp215
24508iclick
24509jamcam
24510jd11
24511kodak_dc120
24512kodak_dc210
24513kodak_dc3200
24514kodak_ez200
24515konica
24516konica_qm150
24517largan
24518lg_gsm
24519mustek
24520panasonic_coolshot
24521panasonic_l859
24522panasonic_dc1000
24523panasonic_dc1580
24524pccam300
24525pccam600
24526polaroid_pdc320
24527polaroid_pdc640
24528polaroid_pdc700
24529ricoh
24530samsung
24531sipix_blink2
24532sipix_web2
24533smal
24534sony_dscf1
24535sony_dscf55
24536soundvision
24537spca50x
24538stv0674
24539stv0680
24540sx330z
24541toshiba_pdrm11
24542_GP_EOF
24543
24544: > "gp-set-file--m4-camlib-set-unlisted"
24545
24546gp_set_shfn_check "gp-set-file--m4-camlib-set-unlisted"
24547cat>>"gp-set-file--m4-camlib-set-unlisted"<<_GP_EOF
24548sipix_blink
24549template
24550_GP_EOF
24551
24552
24553
24554: > "gp-set-file--camlib-set-everything"
24555gp_set_shfn_union  "gp-set-file--camlib-set-everything" "gp-set-file--camlib-set-standard" "gp-set-file--camlib-set-outdated" "gp-set-file--camlib-set-unlisted"
24556
24557
24558
24559
24560# Check whether --with-camlibs was given.
24561if test "${with_camlibs+set}" = set; then :
24562  withval=$with_camlibs; gp_sh_with_camlibs="${withval}"
24563else
24564  gp_sh_with_camlibs="standard"
24565fi
24566
24567if test "x$gp_sh_with_camlibs" = xall; then :
24568    gp_sh_with_camlibs="standard"
24569
24570fi
24571if test "x$gp_sh_with_camlibs" = xcanon; then :
24572  	gp_sh_with_camlibs="${gp_sh_with_camlibs} ptp2"
24573	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
24574
24575    #==============================================================#
24576    # You have selected only the old 'canon' driver. However, most #
24577    # current Canon camera models require the 'ptp2' driver.       #
24578    #                                                              #
24579    # Autoselecting the 'ptp2' driver in addition to the 'canon'   #
24580    # driver to prevent unnecessary support requests.              #
24581    #==============================================================#
24582  $gp_sleep 5
24583
24584" >&5
24585$as_echo "$as_me: WARNING:
24586
24587    #==============================================================#
24588    # You have selected only the old 'canon' driver. However, most #
24589    # current Canon camera models require the 'ptp2' driver.       #
24590    #                                                              #
24591    # Autoselecting the 'ptp2' driver in addition to the 'canon'   #
24592    # driver to prevent unnecessary support requests.              #
24593    #==============================================================#
24594  $gp_sleep 5
24595
24596" >&2;}
24597fi
24598
24599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking with-camlibs requested" >&5
24600$as_echo_n "checking with-camlibs requested... " >&6; }
24601if test "x$gp_sh_with_camlibs" = xstandard; then :
24602  	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: standard set" >&5
24603$as_echo "standard set" >&6; }
24604
24605else
24606  	gp_sh_with_camlibs="$($as_echo "${gp_sh_with_camlibs}" | ${TR} ',' ' ')"
24607	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gp_sh_with_camlibs}" >&5
24608$as_echo "${gp_sh_with_camlibs}" >&6; }
24609
24610fi
24611
24612
24613: > "gp-set-file--m4-camlib-set"
24614
24615: > "gp-set-file--camlib-set"
24616
24617for gp_camlib in ${gp_sh_with_camlibs}
24618do
24619    case "X$gp_camlib" in #(
24620    X-*)
24621	operator=remove
24622	gp_camlib="$($as_echo "Y${gp_camlib}" | ${SED} 's/^Y.//')"
24623	;; #(
24624    X+*)
24625	operator=add
24626	gp_camlib="$($as_echo "Y${gp_camlib}" | ${SED} 's/^Y.//')"
24627	;; #(
24628    X[A-Za-z0-9]*)
24629	operator=add
24630	;; #(
24631    *)
24632	as_fn_error $? "Invalid name given for camlib set or camlib: '${gp_camlib}'" "$LINENO" 5
24633	;;
24634    esac
24635
24636        case "$gp_camlib" in #(
24637    all)
24638	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
24639
24640    #=============================================================#
24641    # You have used 'all' in the argument to the configure script #
24642    # --with-camlibs= parameter.  'all' is a deprecated name for  #
24643    # the 'standard' camlib set.                                  #
24644    #                                                             #
24645    # Please change your call to the configure script to use      #
24646    # 'standard' instead.                                         #
24647    #=============================================================#
24648" >&5
24649$as_echo "$as_me: WARNING:
24650
24651    #=============================================================#
24652    # You have used 'all' in the argument to the configure script #
24653    # --with-camlibs= parameter.  'all' is a deprecated name for  #
24654    # the 'standard' camlib set.                                  #
24655    #                                                             #
24656    # Please change your call to the configure script to use      #
24657    # 'standard' instead.                                         #
24658    #=============================================================#
24659" >&2;}
24660	$gp_sleep 5
24661
24662	gp_camlib="standard"
24663	;;
24664    esac
24665
24666        case "$operator" in #(
24667    add)
24668        case "$gp_camlib" in #(
24669        standard)
24670            gp_set_shfn_union  "gp-set-file--m4-camlib-set" "gp-set-file--m4-camlib-set" "gp-set-file--m4-camlib-set-standard"
24671
24672            gp_set_shfn_union  "gp-set-file--camlib-set" "gp-set-file--camlib-set" "gp-set-file--camlib-set-standard"
24673
24674            ;; #(
24675        outdated)
24676            gp_set_shfn_union  "gp-set-file--m4-camlib-set" "gp-set-file--m4-camlib-set" "gp-set-file--m4-camlib-set-outdated"
24677
24678            gp_set_shfn_union  "gp-set-file--camlib-set" "gp-set-file--camlib-set" "gp-set-file--camlib-set-outdated"
24679
24680            ;; #(
24681        unlisted)
24682            gp_set_shfn_union  "gp-set-file--m4-camlib-set" "gp-set-file--m4-camlib-set" "gp-set-file--m4-camlib-set-unlisted"
24683
24684            gp_set_shfn_union  "gp-set-file--camlib-set" "gp-set-file--camlib-set" "gp-set-file--camlib-set-unlisted"
24685
24686            ;; #(
24687        everything)
24688            gp_set_shfn_union  "gp-set-file--m4-camlib-set" "gp-set-file--m4-camlib-set" "gp-set-file--m4-camlib-set-everything"
24689
24690            gp_set_shfn_union  "gp-set-file--camlib-set" "gp-set-file--camlib-set" "gp-set-file--camlib-set-everything"
24691
24692            ;; #(
24693        *)
24694	    gp_set_shfn_check "gp-set-file--m4-camlib-set-everything"
24695if test "0" -lt "$(${GREP} -c "^"${gp_camlib}"\$" < "gp-set-file--m4-camlib-set-everything")"; then :
24696                  gp_set_shfn_set_add "gp-set-file--m4-camlib-set" ""$gp_camlib""
24697
24698                gp_set_shfn_set_add "gp-set-file--camlib-set" ""$gp_camlib""
24699
24700
24701else
24702                  as_fn_error $? "Unknown camlib found in --with-camlibs: '${gp_camlib}'" "$LINENO" 5
24703
24704fi
24705
24706            ;;
24707        esac
24708	;; #(
24709    remove)
24710        case "$gp_camlib" in #(
24711        standard)
24712            gp_set_shfn_difference  "gp-set-file--camlib-set" "gp-set-file--camlib-set" "gp-set-file--camlib-set-standard"
24713
24714            gp_set_shfn_difference  "gp-set-file--m4-camlib-set" "gp-set-file--m4-camlib-set" "gp-set-file--m4-camlib-set-standard"
24715
24716            ;; #(
24717        outdated)
24718            gp_set_shfn_difference  "gp-set-file--camlib-set" "gp-set-file--camlib-set" "gp-set-file--camlib-set-outdated"
24719
24720            gp_set_shfn_difference  "gp-set-file--m4-camlib-set" "gp-set-file--m4-camlib-set" "gp-set-file--m4-camlib-set-outdated"
24721
24722            ;; #(
24723        unlisted)
24724            gp_set_shfn_difference  "gp-set-file--camlib-set" "gp-set-file--camlib-set" "gp-set-file--camlib-set-unlisted"
24725
24726            gp_set_shfn_difference  "gp-set-file--m4-camlib-set" "gp-set-file--m4-camlib-set" "gp-set-file--m4-camlib-set-unlisted"
24727
24728            ;; #(
24729        everything)
24730            gp_set_shfn_difference  "gp-set-file--camlib-set" "gp-set-file--camlib-set" "gp-set-file--camlib-set-everything"
24731
24732            gp_set_shfn_difference  "gp-set-file--m4-camlib-set" "gp-set-file--m4-camlib-set" "gp-set-file--m4-camlib-set-everything"
24733
24734            ;; #(
24735        *)
24736	    gp_set_shfn_check "gp-set-file--m4-camlib-set-everything"
24737if test "0" -lt "$(${GREP} -c "^"${gp_camlib}"\$" < "gp-set-file--m4-camlib-set-everything")"; then :
24738                  gp_set_shfn_remove "gp-set-file--camlib-set" ""$gp_camlib""
24739
24740	        gp_set_shfn_check "gp-set-file--m4-camlib-set"
24741if test "0" -lt "$(${GREP} -c "^"$gp_camlib"\$" < "gp-set-file--m4-camlib-set")"; then :
24742                      gp_set_shfn_remove "gp-set-file--m4-camlib-set" ""$gp_camlib""
24743
24744
24745else
24746  		    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Removing camlib ${gp_camlib} from m4-camlib-set which does not contain ${gp_camlib}" >&5
24747$as_echo "$as_me: WARNING: Removing camlib ${gp_camlib} from m4-camlib-set which does not contain ${gp_camlib}" >&2;}
24748
24749fi
24750
24751
24752else
24753                  as_fn_error $? "Unknown camlib found in --with-camlibs: '${gp_camlib}'" "$LINENO" 5
24754
24755fi
24756
24757            ;;
24758        esac
24759	;;
24760    esac
24761done
24762{ gp_camlib=; unset gp_camlib;}
24763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking with-camlibs parsing" >&5
24764$as_echo_n "checking with-camlibs parsing... " >&6; }
24765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: finished" >&5
24766$as_echo "finished" >&6; }
24767
24768
24769: > "gp-set-file--camlib-set-diff-skipping"
24770
24771gp_set_shfn_difference  "gp-set-file--camlib-set-diff-skipping" "gp-set-file--m4-camlib-set" "gp-set-file--camlib-set"
24772
24773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking value of set camlib-set-diff-skipping" >&5
24774$as_echo_n "checking value of set camlib-set-diff-skipping... " >&6; }
24775gp_set_msg_result_var=""
24776gp_set_shfn_check "gp-set-file--camlib-set-diff-skipping"
24777gp_set_saved_ifs="$IFS"
24778IFS=""
24779while read element
24780do
24781  IFS="$gp_set_saved_ifs"
24782  if test "x$gp_set_msg_result_var" = "x"; then :
24783    gp_set_msg_result_var="$element"
24784
24785else
24786    gp_set_msg_result_var="$gp_set_msg_result_var $element"
24787
24788fi
24789
24790done < "gp-set-file--camlib-set-diff-skipping"
24791IFS="$gp_set_saved_ifs"
24792
24793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gp_set_msg_result_var}" >&5
24794$as_echo "${gp_set_msg_result_var}" >&6; }
24795
24796
24797
24798: > "gp-set-file--camlib-set-diff-over-standard"
24799
24800gp_set_shfn_difference  "gp-set-file--camlib-set-diff-over-standard" "gp-set-file--camlib-set" "gp-set-file--camlib-set-standard"
24801
24802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking value of set camlib-set-diff-over-standard" >&5
24803$as_echo_n "checking value of set camlib-set-diff-over-standard... " >&6; }
24804gp_set_msg_result_var=""
24805gp_set_shfn_check "gp-set-file--camlib-set-diff-over-standard"
24806gp_set_saved_ifs="$IFS"
24807IFS=""
24808while read element
24809do
24810  IFS="$gp_set_saved_ifs"
24811  if test "x$gp_set_msg_result_var" = "x"; then :
24812    gp_set_msg_result_var="$element"
24813
24814else
24815    gp_set_msg_result_var="$gp_set_msg_result_var $element"
24816
24817fi
24818
24819done < "gp-set-file--camlib-set-diff-over-standard"
24820IFS="$gp_set_saved_ifs"
24821
24822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gp_set_msg_result_var}" >&5
24823$as_echo "${gp_set_msg_result_var}" >&6; }
24824
24825
24826
24827: > "gp-set-file--camlib-set-diff-from-standard"
24828
24829gp_set_shfn_difference  "gp-set-file--camlib-set-diff-from-standard" "gp-set-file--camlib-set-standard" "gp-set-file--camlib-set"
24830
24831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking value of set camlib-set-diff-from-standard" >&5
24832$as_echo_n "checking value of set camlib-set-diff-from-standard... " >&6; }
24833gp_set_msg_result_var=""
24834gp_set_shfn_check "gp-set-file--camlib-set-diff-from-standard"
24835gp_set_saved_ifs="$IFS"
24836IFS=""
24837while read element
24838do
24839  IFS="$gp_set_saved_ifs"
24840  if test "x$gp_set_msg_result_var" = "x"; then :
24841    gp_set_msg_result_var="$element"
24842
24843else
24844    gp_set_msg_result_var="$gp_set_msg_result_var $element"
24845
24846fi
24847
24848done < "gp-set-file--camlib-set-diff-from-standard"
24849IFS="$gp_set_saved_ifs"
24850
24851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gp_set_msg_result_var}" >&5
24852$as_echo "${gp_set_msg_result_var}" >&6; }
24853
24854
24855
24856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking value of set camlib-set-diff-skipping" >&5
24857$as_echo_n "checking value of set camlib-set-diff-skipping... " >&6; }
24858gp_set_shfn_debug_var "gp-set-file--camlib-set-diff-skipping" "gp_set_msg_result_var"
24859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gp_set_msg_result_var}" >&5
24860$as_echo "${gp_set_msg_result_var}" >&6; }
24861
24862
24863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking value of set camlib-set-diff-from-standard" >&5
24864$as_echo_n "checking value of set camlib-set-diff-from-standard... " >&6; }
24865gp_set_shfn_debug_var "gp-set-file--camlib-set-diff-from-standard" "gp_set_msg_result_var"
24866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gp_set_msg_result_var}" >&5
24867$as_echo "${gp_set_msg_result_var}" >&6; }
24868
24869
24870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking value of set camlib-set-diff-over-standard" >&5
24871$as_echo_n "checking value of set camlib-set-diff-over-standard... " >&6; }
24872gp_set_shfn_debug_var "gp-set-file--camlib-set-diff-over-standard" "gp_set_msg_result_var"
24873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gp_set_msg_result_var}" >&5
24874$as_echo "${gp_set_msg_result_var}" >&6; }
24875
24876
24877
24878gp_camlib_set_skipping=""
24879gp_set_shfn_check "gp-set-file--camlib-set-diff-skipping"
24880gp_set_saved_ifs="$IFS"
24881IFS=""
24882while read element
24883do
24884  IFS="$gp_set_saved_ifs"
24885  if test "x$gp_camlib_set_skipping" = "x"; then :
24886    gp_camlib_set_skipping="$element"
24887
24888else
24889    gp_camlib_set_skipping="$gp_camlib_set_skipping $element"
24890
24891fi
24892
24893done < "gp-set-file--camlib-set-diff-skipping"
24894IFS="$gp_set_saved_ifs"
24895
24896
24897
24898
24899
24900
24901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether skipping some requested camlibs" >&5
24902$as_echo_n "checking whether skipping some requested camlibs... " >&6; }
24903if test "x$gp_camlib_set_skipping" = "x"; then :
24904      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24905$as_echo "no" >&6; }
24906
24907else
24908      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (${gp_camlib_set_skipping})" >&5
24909$as_echo "yes (${gp_camlib_set_skipping})" >&6; }
24910
24911cat >>confdefs.h <<_ACEOF
24912#define GP_CAMLIB_SET_SKIPPING "${gp_camlib_set_skipping}"
24913_ACEOF
24914
24915    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
24916
24917    #=========================================================#
24918    # We are skipping building one or more camlibs, probably  #
24919    # due to missing dependencies.  Check the dependencies if #
24920    # you insist on building these camlibs.                   #
24921    #=========================================================#
24922" >&5
24923$as_echo "$as_me: WARNING:
24924
24925    #=========================================================#
24926    # We are skipping building one or more camlibs, probably  #
24927    # due to missing dependencies.  Check the dependencies if #
24928    # you insist on building these camlibs.                   #
24929    #=========================================================#
24930" >&2;}
24931    $gp_sleep 5
24932
24933
24934fi
24935
24936gp_camlib_set=""
24937gp_set_shfn_check "gp-set-file--camlib-set"
24938gp_set_saved_ifs="$IFS"
24939IFS=""
24940while read element
24941do
24942  IFS="$gp_set_saved_ifs"
24943  if test "x$gp_camlib_set" = "x"; then :
24944    gp_camlib_set="$element"
24945
24946else
24947    gp_camlib_set="$gp_camlib_set $element"
24948
24949fi
24950
24951done < "gp-set-file--camlib-set"
24952IFS="$gp_set_saved_ifs"
24953
24954
24955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking camlib set to build in detail" >&5
24956$as_echo_n "checking camlib set to build in detail... " >&6; }
24957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gp_camlib_set}" >&5
24958$as_echo "${gp_camlib_set}" >&6; }
24959
24960if test "x$gp_sh_with_camlibs" = xstandard; then :
24961
24962else
24963  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
24964
24965  #=====================================================================#
24966  # Caution: You have chosen to build a non-standard set of camlibs.    #
24967  #          You may have disabled the camlib required for your camera, #
24968  #          or enabled a camlib which does *not* work and overrides    #
24969  #          the camlib which *does* work. Consequently,                #
24970  #          YOUR CAMERA MAY NOT WORK!                                  #
24971  #                                                                     #
24972  # Many cameras of several brands are supported by a camlib with a     #
24973  # name different from the name of the camera brand or model. If you   #
24974  # are unsure, please                                                  #
24975  #   * enable at least the 'ptp2' camlib                               #
24976  #   * or even better, just build the standard set of camlibs.         #
24977  #=====================================================================#
24978" >&5
24979$as_echo "$as_me: WARNING:
24980
24981  #=====================================================================#
24982  # Caution: You have chosen to build a non-standard set of camlibs.    #
24983  #          You may have disabled the camlib required for your camera, #
24984  #          or enabled a camlib which does *not* work and overrides    #
24985  #          the camlib which *does* work. Consequently,                #
24986  #          YOUR CAMERA MAY NOT WORK!                                  #
24987  #                                                                     #
24988  # Many cameras of several brands are supported by a camlib with a     #
24989  # name different from the name of the camera brand or model. If you   #
24990  # are unsure, please                                                  #
24991  #   * enable at least the 'ptp2' camlib                               #
24992  #   * or even better, just build the standard set of camlibs.         #
24993  #=====================================================================#
24994" >&2;}
24995$gp_sleep 5
24996
24997
24998
24999fi
25000
25001
25002gp_set_shfn_canonicalize "gp-set-file--camlib-set"
25003gp_set_shfn_canonicalize "gp-set-file--camlib-set-standard"
25004if ${CMP} "gp-set-file--camlib-set" "gp-set-file--camlib-set-standard" > /dev/null 2>&1; then :
25005      if test "x$gp_camlib_set_skipping" = "x"; then :
25006
25007gp_config_msg_len="$(expr "Camlibs" : '.*')"
25008if test "$gp_config_msg_len" -ge "$gp_config_len"; then
25009	gp_config_msg_lhs="$(expr "Camlibs" : "\(.\{0,${gp_config_len3}\}\)")..:"
25010else
25011	gp_config_msg_lhs="$(expr "Camlibs:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
25012fi
25013gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} standard set (${gp_camlib_set})
25014"
25015
25016
25017else
25018
25019gp_config_msg_len="$(expr "Camlibs" : '.*')"
25020if test "$gp_config_msg_len" -ge "$gp_config_len"; then
25021	gp_config_msg_lhs="$(expr "Camlibs" : "\(.\{0,${gp_config_len3}\}\)")..:"
25022else
25023	gp_config_msg_lhs="$(expr "Camlibs:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
25024fi
25025gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} standard set (${gp_camlib_set} SKIPPING ${gp_camlib_set_skipping})
25026"
25027
25028
25029fi
25030
25031else
25032      if test "x$gp_camlib_set_skipping" = "x"; then :
25033
25034gp_config_msg_len="$(expr "Camlibs" : '.*')"
25035if test "$gp_config_msg_len" -ge "$gp_config_len"; then
25036	gp_config_msg_lhs="$(expr "Camlibs" : "\(.\{0,${gp_config_len3}\}\)")..:"
25037else
25038	gp_config_msg_lhs="$(expr "Camlibs:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
25039fi
25040gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} non-standard set (${gp_camlib_set})
25041"
25042
25043
25044else
25045
25046gp_config_msg_len="$(expr "Camlibs" : '.*')"
25047if test "$gp_config_msg_len" -ge "$gp_config_len"; then
25048	gp_config_msg_lhs="$(expr "Camlibs" : "\(.\{0,${gp_config_len3}\}\)")..:"
25049else
25050	gp_config_msg_lhs="$(expr "Camlibs:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
25051fi
25052gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} non-standard set (${gp_camlib_set} SKIPPING ${gp_camlib_set_skipping})
25053"
25054
25055
25056fi
25057
25058cat >>confdefs.h <<_ACEOF
25059#define GP_CAMLIB_SET_IS_NONSTANDARD 1
25060_ACEOF
25061
25062
25063fi
25064
25065
25066cat >>confdefs.h <<_ACEOF
25067#define GP_CAMLIB_SET "${gp_camlib_set}"
25068_ACEOF
25069
25070
25071{ GP_CAMLIB_SET=; unset GP_CAMLIB_SET;}
25072for f in ${gp_camlib_set}
25073do
25074    GP_CAMLIB_SET="${GP_CAMLIB_SET}${GP_CAMLIB_SET+ }${f}.la"
25075done
25076{ f=; unset f;}
25077
25078
25079GP_CAMLIB_SET_EVERYTHING="adc65 agfa_cl20 aox ax203 barbie canon casio_qv clicksmart310 digigr8 digita dimera3500 directory docupen enigma13 fuji gsmart300 hp215 iclick jamcam jd11 jl2005a jl2005c kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150 largan lg_gsm lumix mars dimagev mustek panasonic_coolshot panasonic_l859 panasonic_dc1000 panasonic_dc1580 pccam300 pccam600 pentax polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ptp2 ricoh ricoh_g3 samsung sierra sipix_blink sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 st2205 stv0674 stv0680 sx330z template topfield toshiba_pdrm11 tp6801"
25080
25081
25082# END GP_CAMLIBS_DEFINE([])
25083
25084
25085
25086
25087
25088# Check whether --with-doc-dir was given.
25089if test "${with_doc_dir+set}" = set; then :
25090  withval=$with_doc_dir;
25091fi
25092
25093
25094# check for the main ("root") documentation directory
25095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking main docdir" >&5
25096$as_echo_n "checking main docdir... " >&6; }
25097
25098if test "x${with_doc_dir}" != "x"
25099then # docdir is given as parameter
25100    docdir="${with_doc_dir}"
25101    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${docdir} (from parameter)" >&5
25102$as_echo "${docdir} (from parameter)" >&6; }
25103else # otherwise invent a docdir hopefully compatible with system policy
25104    if test -d "/usr/share/doc"
25105    then
25106        maindocdir='${prefix}/share/doc'
25107        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${maindocdir} (FHS style)" >&5
25108$as_echo "${maindocdir} (FHS style)" >&6; }
25109    elif test -d "/usr/doc"
25110    then
25111        maindocdir='${prefix}/doc'
25112        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${maindocdir} (old style)" >&5
25113$as_echo "${maindocdir} (old style)" >&6; }
25114    else
25115        maindocdir='${datadir}/doc'
25116        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${maindocdir} (default value)" >&5
25117$as_echo "${maindocdir} (default value)" >&6; }
25118    fi
25119    { $as_echo "$as_me:${as_lineno-$LINENO}: checking package docdir" >&5
25120$as_echo_n "checking package docdir... " >&6; }
25121    # check whether to include package version into documentation path
25122    # FIXME: doesn't work properly.
25123    if ls -d /usr/{share/,}doc/make-0-9* > /dev/null 2>&1
25124    then
25125        docdir="${maindocdir}/${PACKAGE}-${VERSION}"
25126        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${docdir} (redhat style)" >&5
25127$as_echo "${docdir} (redhat style)" >&6; }
25128    else
25129        docdir="${maindocdir}/${PACKAGE}"
25130        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${docdir} (default style)" >&5
25131$as_echo "${docdir} (default style)" >&6; }
25132    fi
25133fi
25134
25135
25136# Extract the first word of "dot", so it can be a program name with args.
25137set dummy dot; ac_word=$2
25138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25139$as_echo_n "checking for $ac_word... " >&6; }
25140if ${ac_cv_path_DOT+:} false; then :
25141  $as_echo_n "(cached) " >&6
25142else
25143  case $DOT in
25144  [\\/]* | ?:[\\/]*)
25145  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
25146  ;;
25147  *)
25148  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25149for as_dir in $PATH
25150do
25151  IFS=$as_save_IFS
25152  test -z "$as_dir" && as_dir=.
25153    for ac_exec_ext in '' $ac_executable_extensions; do
25154  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25155    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
25156    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25157    break 2
25158  fi
25159done
25160  done
25161IFS=$as_save_IFS
25162
25163  test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
25164  ;;
25165esac
25166fi
25167DOT=$ac_cv_path_DOT
25168if test -n "$DOT"; then
25169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
25170$as_echo "$DOT" >&6; }
25171else
25172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25173$as_echo "no" >&6; }
25174fi
25175
25176
25177# Extract the first word of "doxygen", so it can be a program name with args.
25178set dummy doxygen; ac_word=$2
25179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25180$as_echo_n "checking for $ac_word... " >&6; }
25181if ${ac_cv_path_DOXYGEN+:} false; then :
25182  $as_echo_n "(cached) " >&6
25183else
25184  case $DOXYGEN in
25185  [\\/]* | ?:[\\/]*)
25186  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
25187  ;;
25188  *)
25189  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25190for as_dir in $PATH
25191do
25192  IFS=$as_save_IFS
25193  test -z "$as_dir" && as_dir=.
25194    for ac_exec_ext in '' $ac_executable_extensions; do
25195  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25196    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
25197    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25198    break 2
25199  fi
25200done
25201  done
25202IFS=$as_save_IFS
25203
25204  test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="false"
25205  ;;
25206esac
25207fi
25208DOXYGEN=$ac_cv_path_DOXYGEN
25209if test -n "$DOXYGEN"; then
25210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
25211$as_echo "$DOXYGEN" >&6; }
25212else
25213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25214$as_echo "no" >&6; }
25215fi
25216
25217
25218 if test "x$DOXYGEN" != "xfalse"; then
25219  HAVE_DOXYGEN_TRUE=
25220  HAVE_DOXYGEN_FALSE='#'
25221else
25222  HAVE_DOXYGEN_TRUE='#'
25223  HAVE_DOXYGEN_FALSE=
25224fi
25225
25226 if test "x$DOT" != "xfalse"; then
25227  HAVE_DOT_TRUE=
25228  HAVE_DOT_FALSE='#'
25229else
25230  HAVE_DOT_TRUE='#'
25231  HAVE_DOT_FALSE=
25232fi
25233
25234if test "x$DOT" != "xfalse"; then
25235	HAVE_DOT=YES
25236
25237else
25238	HAVE_DOT=NO
25239
25240fi
25241HTML_APIDOC_DIR="${PACKAGE_TARNAME}-api.html"
25242
25243DOXYGEN_OUTPUT_DIR=doxygen-output
25244
25245HTML_APIDOC_INTERNALS_DIR="${PACKAGE_TARNAME}-internals.html"
25246
25247# Whether to enable the internal docs build.
25248#
25249# This takes quite some time due to the generation of lots of call
25250# graphs, so it is disabled by default.
25251set_enable_internal_docs=no
25252# Check whether --enable-internal-docs was given.
25253if test "${enable_internal_docs+set}" = set; then :
25254  enableval=$enable_internal_docs;   if   test "x$enableval" = xno \
25255    || test "x$enableval" = xoff \
25256    || test "x$enableval" = xfalse;
25257  then
25258    set_enable_internal_docs=no
25259  elif test "x$enableval" = xyes \
25260    || test "x$enableval" = xon \
25261    || test "x$enableval" = xtrue
25262  then
25263    set_enable_internal_docs=yes
25264  fi
25265
25266fi
25267
25268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to create internal code docs" >&5
25269$as_echo_n "checking whether to create internal code docs... " >&6; }
25270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${set_enable_internal_docs}" >&5
25271$as_echo "${set_enable_internal_docs}" >&6; }
25272 if test "x${set_enable_internal_docs}" = "xyes"; then
25273  ENABLE_INTERNAL_DOCS_TRUE=
25274  ENABLE_INTERNAL_DOCS_FALSE='#'
25275else
25276  ENABLE_INTERNAL_DOCS_TRUE='#'
25277  ENABLE_INTERNAL_DOCS_FALSE=
25278fi
25279
25280
25281# docdir has to be determined in advance
25282
25283
25284# ---------------------------------------------------------------------------
25285# gtk-doc: We use gtk-doc for building our documentation. However, we
25286#          require the user to explicitly request the build.
25287# ---------------------------------------------------------------------------
25288try_gtkdoc=false
25289gtkdoc_msg="no (not requested)"
25290have_gtkdoc=false
25291# Check whether --enable-docs was given.
25292if test "${enable_docs+set}" = set; then :
25293  enableval=$enable_docs;
25294	if test x$enableval = xyes; then
25295		try_gtkdoc=true
25296	fi
25297
25298fi
25299
25300if $try_gtkdoc; then
25301	# Extract the first word of "gtkdoc-mkdb", so it can be a program name with args.
25302set dummy gtkdoc-mkdb; ac_word=$2
25303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25304$as_echo_n "checking for $ac_word... " >&6; }
25305if ${ac_cv_path_GTKDOC+:} false; then :
25306  $as_echo_n "(cached) " >&6
25307else
25308  case $GTKDOC in
25309  [\\/]* | ?:[\\/]*)
25310  ac_cv_path_GTKDOC="$GTKDOC" # Let the user override the test with a path.
25311  ;;
25312  *)
25313  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25314for as_dir in $PATH
25315do
25316  IFS=$as_save_IFS
25317  test -z "$as_dir" && as_dir=.
25318    for ac_exec_ext in '' $ac_executable_extensions; do
25319  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25320    ac_cv_path_GTKDOC="$as_dir/$ac_word$ac_exec_ext"
25321    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25322    break 2
25323  fi
25324done
25325  done
25326IFS=$as_save_IFS
25327
25328  ;;
25329esac
25330fi
25331GTKDOC=$ac_cv_path_GTKDOC
25332if test -n "$GTKDOC"; then
25333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC" >&5
25334$as_echo "$GTKDOC" >&6; }
25335else
25336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25337$as_echo "no" >&6; }
25338fi
25339
25340
25341	if test -n "${GTKDOC}"; then
25342		have_gtkdoc=true
25343		gtkdoc_msg="yes"
25344	else
25345		gtkdoc_msg="no (http://www.gtk.org/rdp/download.html)"
25346	fi
25347fi
25348 if $have_gtkdoc; then
25349  ENABLE_GTK_DOC_TRUE=
25350  ENABLE_GTK_DOC_FALSE='#'
25351else
25352  ENABLE_GTK_DOC_TRUE='#'
25353  ENABLE_GTK_DOC_FALSE=
25354fi
25355
25356
25357gp_config_msg_len="$(expr "build API docs with gtk-doc" : '.*')"
25358if test "$gp_config_msg_len" -ge "$gp_config_len"; then
25359	gp_config_msg_lhs="$(expr "build API docs with gtk-doc" : "\(.\{0,${gp_config_len3}\}\)")..:"
25360else
25361	gp_config_msg_lhs="$(expr "build API docs with gtk-doc:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
25362fi
25363gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} $gtkdoc_msg
25364"
25365
25366
25367
25368# ---------------------------------------------------------------------------
25369# Give the user the possibility to install html documentation in a
25370# user-defined location.
25371# ---------------------------------------------------------------------------
25372
25373# Check whether --with-html-dir was given.
25374if test "${with_html_dir+set}" = set; then :
25375  withval=$with_html_dir;
25376fi
25377
25378
25379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for html dir" >&5
25380$as_echo_n "checking for html dir... " >&6; }
25381if test "x${with_html_dir}" = "x" ; then
25382    htmldir="${docdir}/html"
25383    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${htmldir} (default)" >&5
25384$as_echo "${htmldir} (default)" >&6; }
25385else
25386    htmldir="${with_html_dir}"
25387    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${htmldir} (from parameter)" >&5
25388$as_echo "${htmldir} (from parameter)" >&6; }
25389fi
25390
25391apidocdir="${htmldir}/api"
25392
25393
25394camlibdocdir='${docdir}/camlibs'
25395
25396
25397
25398
25399
25400# Check whether --with-rpmbuild was given.
25401if test "${with_rpmbuild+set}" = set; then :
25402  withval=$with_rpmbuild;
25403fi
25404
25405
25406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmbuild or rpm" >&5
25407$as_echo_n "checking for rpmbuild or rpm... " >&6; }
25408if test -x "${with_rpmbuild}"
25409then
25410    RPMBUILD="${with_rpmbuild}"
25411    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${RPMBUILD} (from parameter)" >&5
25412$as_echo "${RPMBUILD} (from parameter)" >&6; }
25413else
25414    { $as_echo "$as_me:${as_lineno-$LINENO}: result: using autodetection" >&5
25415$as_echo "using autodetection" >&6; }
25416    for ac_prog in rpmbuild rpm
25417do
25418  # Extract the first word of "$ac_prog", so it can be a program name with args.
25419set dummy $ac_prog; ac_word=$2
25420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25421$as_echo_n "checking for $ac_word... " >&6; }
25422if ${ac_cv_prog_RPMBUILD+:} false; then :
25423  $as_echo_n "(cached) " >&6
25424else
25425  if test -n "$RPMBUILD"; then
25426  ac_cv_prog_RPMBUILD="$RPMBUILD" # Let the user override the test.
25427else
25428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25429for as_dir in $PATH
25430do
25431  IFS=$as_save_IFS
25432  test -z "$as_dir" && as_dir=.
25433    for ac_exec_ext in '' $ac_executable_extensions; do
25434  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25435    ac_cv_prog_RPMBUILD="$ac_prog"
25436    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25437    break 2
25438  fi
25439done
25440  done
25441IFS=$as_save_IFS
25442
25443fi
25444fi
25445RPMBUILD=$ac_cv_prog_RPMBUILD
25446if test -n "$RPMBUILD"; then
25447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPMBUILD" >&5
25448$as_echo "$RPMBUILD" >&6; }
25449else
25450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25451$as_echo "no" >&6; }
25452fi
25453
25454
25455  test -n "$RPMBUILD" && break
25456done
25457test -n "$RPMBUILD" || RPMBUILD="false"
25458
25459    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmbuild or rpm" >&5
25460$as_echo_n "checking for rpmbuild or rpm... " >&6; }
25461    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${RPMBUILD} (autodetected)" >&5
25462$as_echo "${RPMBUILD} (autodetected)" >&6; }
25463fi
25464
25465 if test "$RPMBUILD" != "false"; then
25466  ENABLE_RPM_TRUE=
25467  ENABLE_RPM_FALSE='#'
25468else
25469  ENABLE_RPM_TRUE='#'
25470  ENABLE_RPM_FALSE=
25471fi
25472
25473
25474
25475	# effective_target has to be determined in advance
25476
25477
25478	is_linux=false
25479	case "$effective_target" in
25480		*linux*)
25481			is_linux=true
25482			;;
25483	esac
25484	 if "$is_linux"; then
25485  HAVE_LINUX_TRUE=
25486  HAVE_LINUX_FALSE='#'
25487else
25488  HAVE_LINUX_TRUE='#'
25489  HAVE_LINUX_FALSE=
25490fi
25491
25492
25493	# required for docdir
25494	# FIXME: Implicit dependency
25495	# AC_REQUIRE(GP_CHECK_DOC_DIR)
25496
25497
25498# Check whether --with-hotplug-doc-dir was given.
25499if test "${with_hotplug_doc_dir+set}" = set; then :
25500  withval=$with_hotplug_doc_dir;
25501fi
25502
25503
25504	if "$is_linux"; then
25505		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hotplug doc dir" >&5
25506$as_echo_n "checking for hotplug doc dir... " >&6; }
25507		if test "x${with_hotplug_doc_dir}" != "x"
25508		then # given as parameter
25509		    hotplugdocdir="${with_hotplug_doc_dir}"
25510		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${hotplugdocdir} (from parameter)" >&5
25511$as_echo "${hotplugdocdir} (from parameter)" >&6; }
25512		else # start at docdir
25513		    hotplugdocdir="${docdir}/linux-hotplug"
25514		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${hotplugdocdir} (default)" >&5
25515$as_echo "${hotplugdocdir} (default)" >&6; }
25516		fi
25517	else
25518		hotplugdocdir=""
25519	fi
25520
25521
25522# Check whether --with-hotplug-usermap-dir was given.
25523if test "${with_hotplug_usermap_dir+set}" = set; then :
25524  withval=$with_hotplug_usermap_dir;
25525fi
25526
25527
25528	if "$is_linux"; then
25529		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hotplug usermap dir" >&5
25530$as_echo_n "checking for hotplug usermap dir... " >&6; }
25531		if test "x${with_hotplug_usermap_dir}" != "x"
25532		then # given as parameter
25533		    hotplugusermapdir="${with_hotplug_usermap_dir}"
25534		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${hotplugusermapdir} (from parameter)" >&5
25535$as_echo "${hotplugusermapdir} (from parameter)" >&6; }
25536		else # start at docdir
25537		    hotplugusermapdir="${docdir}/linux-hotplug"
25538		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${hotplugusermapdir} (default)" >&5
25539$as_echo "${hotplugusermapdir} (default)" >&6; }
25540		fi
25541	else
25542		hotplugusermapdir=""
25543	fi
25544
25545	# Let us hope that automake does not create "" directories
25546	# on non-Linux systems now.
25547
25548
25549
25550
25551pkgconfigdir='$(prefix)/libdata/pkgconfig'
25552
25553
25554
25555
25556# ----------------------------------------------------------------------
25557# [GP_CHECK_LIBRARY]([LIBEXIF],[libexif],[>= 0.6.13],
25558#                    [libexif/exif-data.h],[exif_data_new],
25559#                    [...],[...],[default-on])
25560# http://www.sourceforge.net/projects/libexif
25561# ----------------------------------------------------------------------
25562# Use _CFLAGS and _LIBS given to configure.
25563# This makes it possible to set these vars in a configure script
25564# and AC_CONFIG_SUBDIRS this configure.
25565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexif to use" >&5
25566$as_echo_n "checking for libexif to use... " >&6; }
25567REQUIREMENTS_FOR_LIBEXIF="libexif >= 0.6.13"
25568userdef_LIBEXIF=no
25569have_LIBEXIF=no
25570if test "x${LIBEXIF_LIBS}" = "x" && test "x${LIBEXIF_CFLAGS}" = "x"; then
25571	# define --with/--without argument
25572				try_LIBEXIF=auto
25573
25574# Check whether --with-libexif was given.
25575if test "${with_libexif+set}" = set; then :
25576  withval=$with_libexif; try_LIBEXIF="$withval"
25577fi
25578
25579	if test "x${try_LIBEXIF}" = "xno"; then
25580              REQUIREMENTS_FOR_LIBEXIF=
25581	fi
25582	if test "x${try_LIBEXIF}" = "xauto"; then try_LIBEXIF=autodetect; fi
25583	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${try_LIBEXIF}" >&5
25584$as_echo "${try_LIBEXIF}" >&6; }
25585		if test "x${try_LIBEXIF}" = "xautodetect"; then
25586		# OK, we have to autodetect.
25587		# We start autodetection with the cleanest known method: pkg-config
25588		if test "x${have_LIBEXIF}" = "xno"; then
25589			# we need that line break after the PKG_CHECK_MODULES
25590
25591pkg_failed=no
25592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBEXIF" >&5
25593$as_echo_n "checking for LIBEXIF... " >&6; }
25594
25595if test -n "$LIBEXIF_CFLAGS"; then
25596    pkg_cv_LIBEXIF_CFLAGS="$LIBEXIF_CFLAGS"
25597 elif test -n "$PKG_CONFIG"; then
25598    if test -n "$PKG_CONFIG" && \
25599    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libexif >= 0.6.13\""; } >&5
25600  ($PKG_CONFIG --exists --print-errors "libexif >= 0.6.13") 2>&5
25601  ac_status=$?
25602  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25603  test $ac_status = 0; }; then
25604  pkg_cv_LIBEXIF_CFLAGS=`$PKG_CONFIG --cflags "libexif >= 0.6.13" 2>/dev/null`
25605		      test "x$?" != "x0" && pkg_failed=yes
25606else
25607  pkg_failed=yes
25608fi
25609 else
25610    pkg_failed=untried
25611fi
25612if test -n "$LIBEXIF_LIBS"; then
25613    pkg_cv_LIBEXIF_LIBS="$LIBEXIF_LIBS"
25614 elif test -n "$PKG_CONFIG"; then
25615    if test -n "$PKG_CONFIG" && \
25616    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libexif >= 0.6.13\""; } >&5
25617  ($PKG_CONFIG --exists --print-errors "libexif >= 0.6.13") 2>&5
25618  ac_status=$?
25619  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25620  test $ac_status = 0; }; then
25621  pkg_cv_LIBEXIF_LIBS=`$PKG_CONFIG --libs "libexif >= 0.6.13" 2>/dev/null`
25622		      test "x$?" != "x0" && pkg_failed=yes
25623else
25624  pkg_failed=yes
25625fi
25626 else
25627    pkg_failed=untried
25628fi
25629
25630
25631
25632if test $pkg_failed = yes; then
25633   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25634$as_echo "no" >&6; }
25635
25636if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25637        _pkg_short_errors_supported=yes
25638else
25639        _pkg_short_errors_supported=no
25640fi
25641        if test $_pkg_short_errors_supported = yes; then
25642	        LIBEXIF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libexif >= 0.6.13" 2>&1`
25643        else
25644	        LIBEXIF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libexif >= 0.6.13" 2>&1`
25645        fi
25646	# Put the nasty error message in config.log where it belongs
25647	echo "$LIBEXIF_PKG_ERRORS" >&5
25648
25649	:
25650elif test $pkg_failed = untried; then
25651     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25652$as_echo "no" >&6; }
25653	:
25654else
25655	LIBEXIF_CFLAGS=$pkg_cv_LIBEXIF_CFLAGS
25656	LIBEXIF_LIBS=$pkg_cv_LIBEXIF_LIBS
25657        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25658$as_echo "yes" >&6; }
25659	have_LIBEXIF=yes
25660fi
25661		fi
25662		# If pkg-config didn't find anything, try the libfoo-config program
25663		# certain known libraries ship with.
25664		if test "x${have_LIBEXIF}" = "xno"; then
25665			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libexif config program" >&5
25666$as_echo_n "checking libexif config program... " >&6; }
25667						{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
25668$as_echo "none" >&6; }
25669			# Extract the first word of "gp_lib_config", so it can be a program name with args.
25670set dummy none; ac_word=$2
25671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25672$as_echo_n "checking for $ac_word... " >&6; }
25673if ${ac_cv_path_LIBEXIF_CONFIG_PROG+:} false; then :
25674  $as_echo_n "(cached) " >&6
25675else
25676  case $LIBEXIF_CONFIG_PROG in
25677  [\\/]* | ?:[\\/]*)
25678  ac_cv_path_LIBEXIF_CONFIG_PROG="$LIBEXIF_CONFIG_PROG" # Let the user override the test with a path.
25679  ;;
25680  *)
25681  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25682for as_dir in $PATH
25683do
25684  IFS=$as_save_IFS
25685  test -z "$as_dir" && as_dir=.
25686    for ac_exec_ext in '' $ac_executable_extensions; do
25687  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25688    ac_cv_path_LIBEXIF_CONFIG_PROG="$as_dir/$ac_word$ac_exec_ext"
25689    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25690    break 2
25691  fi
25692done
25693  done
25694IFS=$as_save_IFS
25695
25696  ;;
25697esac
25698fi
25699LIBEXIF_CONFIG_PROG=$ac_cv_path_LIBEXIF_CONFIG_PROG
25700if test -n "$LIBEXIF_CONFIG_PROG"; then
25701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXIF_CONFIG_PROG" >&5
25702$as_echo "$LIBEXIF_CONFIG_PROG" >&6; }
25703else
25704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25705$as_echo "no" >&6; }
25706fi
25707
25708
25709			if test -n "${LIBEXIF_CONFIG_PROG}" &&
25710				test "${LIBEXIF_CONFIG_PROG}" != "none"; then
25711
25712				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexif version according to none" >&5
25713$as_echo_n "checking for libexif version according to none... " >&6; }
25714								_LIBEXIF_COMPN="-lt"
25715								# split requested version number using m4 regexps
25716				_LIBEXIF_REQ_1="0"
25717				_LIBEXIF_REQ_2="6"
25718				_LIBEXIF_REQ_3="13"
25719				_LIBEXIF_REQ_4=""
25720				# split installed version number via shell and sed
25721				_LIBEXIF_VERSION="$("${LIBEXIF_CONFIG_PROG}" --version | sed 's/^.* //')"
25722				_LIBEXIF_VER_1="$(echo "${_LIBEXIF_VERSION}" | sed 's/\([0-9]*\).*/\1/g')"
25723				_LIBEXIF_VER_2="$(echo "${_LIBEXIF_VERSION}" | sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/g')"
25724				_LIBEXIF_VER_3="$(echo "${_LIBEXIF_VERSION}" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/g')"
25725				_LIBEXIF_VER_4="$(echo "${_LIBEXIF_VERSION}" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)\(.*\)/\4/g')"
25726				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_LIBEXIF_VERSION}" >&5
25727$as_echo "${_LIBEXIF_VERSION}" >&6; }
25728				_tmp=false
25729				if   test "${_LIBEXIF_VER_1}" "${_LIBEXIF_COMPN}" "${_LIBEXIF_REQ_1}"; then _tmp=true;
25730				elif test "${_LIBEXIF_VER_2}" "${_LIBEXIF_COMPN}" "${_LIBEXIF_REQ_2}"; then _tmp=true;
25731				elif test "${_LIBEXIF_VER_3}" "${_LIBEXIF_COMPN}" "${_LIBEXIF_REQ_3}"; then _tmp=true;
25732				elif test "x${_LIBEXIF_VER_4}" = "x" && test "x${_LIBEXIF_REQ_4}" != "x"; then _tmp=true;
25733				elif test "${_LIBEXIF_VER_4}" "${_LIBEXIF_COMPN}" "${_LIBEXIF_REQ_4}"; then _tmp=true;
25734				fi
25735				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libexif version is matching requirement >= 0.6.13" >&5
25736$as_echo_n "checking if libexif version is matching requirement >= 0.6.13... " >&6; }
25737				if "${_tmp}"; then
25738				   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25739$as_echo "no" >&6; }
25740				   as_fn_error $? "Version requirement libexif >= 0.6.13 not met. Found: ${_LIBEXIF_VERSION}" "$LINENO" 5
25741				else
25742				   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25743$as_echo "yes" >&6; }
25744				fi
25745								{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexif parameters from none" >&5
25746$as_echo_n "checking for libexif parameters from none... " >&6; }
25747				LIBEXIF_LIBS="$(${LIBEXIF_CONFIG_PROG} --libs || echo "*error*")"
25748				LIBEXIF_CFLAGS="$(${LIBEXIF_CONFIG_PROG} --cflags || echo "*error*")"
25749				if test "x${LIBEXIF_LIBS}" = "*error*" ||
25750					test "x${LIBEXIF_CFLAGS}" = "*error*"; then
25751					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
25752$as_echo "error" >&6; }
25753				else
25754					have_LIBEXIF=yes
25755					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
25756$as_echo "ok" >&6; }
25757				fi
25758			fi
25759					fi
25760		# Version requirement given, so we do not rely on probing.
25761	elif test "x${try_LIBEXIF}" = "xno"; then
25762		:
25763	else
25764		# We've been given a prefix to look in for library libexif.
25765		# We start looking for libexif.la files first.
25766		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexif.la file in ${try_LIBEXIF}" >&5
25767$as_echo_n "checking for libexif.la file in ${try_LIBEXIF}... " >&6; }
25768		if test -f "${try_LIBEXIF}/lib/libexif.la"; then
25769			LIBEXIF_LIBS="${try_LIBEXIF}/lib/libexif.la"
25770			LIBEXIF_CFLAGS="-I${try_LIBEXIF}/include"
25771			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: libtool file $LIBEXIF_LIBS (good)" >&5
25772$as_echo "libtool file $LIBEXIF_LIBS (good)" >&6; }
25773			have_LIBEXIF=yes
25774		elif test -f "${try_LIBEXIF}/lib64/libexif.la"; then # HACK
25775			LIBEXIF_LIBS="${try_LIBEXIF}/lib64/libexif.la"
25776			LIBEXIF_CFLAGS="-I${try_LIBEXIF}/include"
25777			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: libtool file $LIBEXIF_LIBS (good)" >&5
25778$as_echo "libtool file $LIBEXIF_LIBS (good)" >&6; }
25779			have_LIBEXIF=yes
25780		else
25781			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: wild guess that something is in $try_LIBEXIF" >&5
25782$as_echo "wild guess that something is in $try_LIBEXIF" >&6; }
25783			LIBEXIF_LIBS="-L${try_LIBEXIF}/lib -l$(echo "libexif" | sed 's/^lib//')"
25784			LIBEXIF_CFLAGS="-I${try_LIBEXIF}/include"
25785			have_LIBEXIF=yes
25786			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
25787* Warning:
25788*   libtool file libexif.la could not be found.
25789*   We may be linking against the WRONG library.
25790" >&5
25791$as_echo "$as_me: WARNING:
25792* Warning:
25793*   libtool file libexif.la could not be found.
25794*   We may be linking against the WRONG library.
25795" >&2;}
25796		fi
25797	fi
25798elif test "x${LIBEXIF_LIBS}" != "x" && test "x${LIBEXIF_CFLAGS}" != "x"; then
25799	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: user-defined" >&5
25800$as_echo "user-defined" >&6; }
25801	userdef_LIBEXIF=yes
25802	have_LIBEXIF=yes
25803else
25804	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: broken call" >&5
25805$as_echo "broken call" >&6; }
25806	as_fn_error $? "
25807* Fatal:
25808* When calling configure for ${PACKAGE_TARNAME}
25809*     ${PACKAGE_NAME}
25810* either set both LIBEXIF_LIBS *and* LIBEXIF_CFLAGS
25811* or neither.
25812" "$LINENO" 5
25813fi
25814
25815if test "x${have_LIBEXIF}" = "xyes"; then
25816# ACTION-IF-FOUND
25817
25818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we use a version of libexif with ExifData.ifd[]" >&5
25819$as_echo_n "checking whether we use a version of libexif with ExifData.ifd[]... " >&6; }
25820# Check for libexif version
25821CPPFLAGS_save="$CPPFLAGS"
25822CPPFLAGS="$LIBEXIF_CFLAGS"
25823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25824/* end confdefs.h.  */
25825
25826/* CC=$CC */
25827/* CPPFLAGS=${CPPFLAGS} */
25828/* LDFLAGS=${LDFLAGS} */
25829#include <libexif/exif-data.h>
25830#include <libexif/exif-content.h>
25831
25832_ACEOF
25833if ac_fn_c_try_compile "$LINENO"; then :
25834
25835
25836$as_echo "#define HAVE_LIBEXIF_IFD 1" >>confdefs.h
25837
25838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25839$as_echo "yes" >&6; }
25840
25841else
25842
25843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25844$as_echo "no" >&6; }
25845
25846fi
25847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25848CPPFLAGS="$CPPFLAGS_save"
25849
25850fi
25851if test "x${have_LIBEXIF}" = "xyes"; then
25852CPPFLAGS_save="$CPPFLAGS"
25853CPPFLAGS="${LIBEXIF_CFLAGS}"
25854ac_fn_c_check_header_mongrel "$LINENO" "libexif/exif-data.h" "ac_cv_header_libexif_exif_data_h" "$ac_includes_default"
25855if test "x$ac_cv_header_libexif_exif_data_h" = xyes; then :
25856  have_LIBEXIF=yes
25857else
25858  have_LIBEXIF=no
25859fi
25860
25861
25862CPPFLAGS="$CPPFLAGS_save"
25863fi
25864if test "x${userdef_LIBEXIF}" = "xno" && test "x${have_LIBEXIF}" = "xyes"; then
25865	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function exif_data_new in libexif" >&5
25866$as_echo_n "checking for function exif_data_new in libexif... " >&6; }
25867	LIBS_save="$LIBS"
25868	LIBS="${LIBEXIF_LIBS}"
25869	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25870/* end confdefs.h.  */
25871
25872/* Override any GCC internal prototype to avoid an error.
25873   Use char because int might match the return type of a GCC
25874   builtin and then its argument prototype would still apply.  */
25875#ifdef __cplusplus
25876extern "C"
25877#endif
25878char exif_data_new ();
25879int
25880main ()
25881{
25882return exif_data_new ();
25883  ;
25884  return 0;
25885}
25886_ACEOF
25887if ac_fn_c_try_link "$LINENO"; then :
25888
25889else
25890  have_LIBEXIF=no
25891fi
25892rm -f core conftest.err conftest.$ac_objext \
25893    conftest$ac_exeext conftest.$ac_ext
25894	LIBS="$LIBS_save"
25895	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_LIBEXIF}" >&5
25896$as_echo "${have_LIBEXIF}" >&6; }
25897fi
25898 if test "x$have_LIBEXIF" = "xyes"; then
25899  HAVE_LIBEXIF_TRUE=
25900  HAVE_LIBEXIF_FALSE='#'
25901else
25902  HAVE_LIBEXIF_TRUE='#'
25903  HAVE_LIBEXIF_FALSE=
25904fi
25905
25906if test "x$have_LIBEXIF" = "xyes"; then
25907
25908$as_echo "#define HAVE_LIBEXIF 1" >>confdefs.h
25909
25910
25911gp_config_msg_len="$(expr "libexif" : '.*')"
25912if test "$gp_config_msg_len" -ge "$gp_config_len"; then
25913	gp_config_msg_lhs="$(expr "libexif" : "\(.\{0,${gp_config_len3}\}\)")..:"
25914else
25915	gp_config_msg_lhs="$(expr "libexif:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
25916fi
25917gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} yes
25918"
25919	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libexif library flags" >&5
25920$as_echo_n "checking libexif library flags... " >&6; }
25921	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"${LIBEXIF_LIBS}\"" >&5
25922$as_echo "\"${LIBEXIF_LIBS}\"" >&6; }
25923	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libexif cpp flags" >&5
25924$as_echo_n "checking libexif cpp flags... " >&6; }
25925	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"${LIBEXIF_CFLAGS}\"" >&5
25926$as_echo "\"${LIBEXIF_CFLAGS}\"" >&6; }
25927else
25928	REQUIREMENTS_FOR_LIBEXIF=
25929
25930gp_config_msg_len="$(expr "libexif" : '.*')"
25931if test "$gp_config_msg_len" -ge "$gp_config_len"; then
25932	gp_config_msg_lhs="$(expr "libexif" : "\(.\{0,${gp_config_len3}\}\)")..:"
25933else
25934	gp_config_msg_lhs="$(expr "libexif:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
25935fi
25936gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} no
25937"
25938fi
25939
25940
25941if test -d "$srcdir/libgphoto2_port"; then
25942
25943
25944subdirs="$subdirs libgphoto2_port"
25945
25946else
25947	as_fn_error $? "
25948******************************************************
25949*** Hey, where have you hidden my libgphoto2_port? ***
25950*** I needed that!                                 ***
25951******************************************************
25952" "$LINENO" 5
25953fi
25954
25955
25956# ---------------------------------------------------------------------------
25957# clean up
25958# ---------------------------------------------------------------------------
25959rm -f "gp-set-file--camlib-set-standard" "gp-set-file--camlib-set-unlisted" "gp-set-file--camlib-set-outdated" "gp-set-file--m4-camlib-set-everything" "gp-set-file--m4-camlib-set-standard" "gp-set-file--m4-camlib-set-outdated" "gp-set-file--m4-camlib-set-unlisted" "gp-set-file--camlib-set-everything" "gp-set-file--m4-camlib-set" "gp-set-file--camlib-set" "gp-set-file--camlib-set-diff-skipping" "gp-set-file--camlib-set-diff-over-standard" "gp-set-file--camlib-set-diff-from-standard"
25960
25961
25962# ---------------------------------------------------------------------------
25963# Create output files
25964# ---------------------------------------------------------------------------
25965ac_config_files="$ac_config_files Makefile gphoto2-config camlibs/Makefile camlibs/canon/doc/Makefile camlibs/konica/localization/Makefile gphoto-m4/Makefile libgphoto2/Makefile libgphoto2.pc libgphoto2-uninstalled.pc examples/Makefile tests/Makefile tests/ddb/Makefile tests/ddb/check-ddb.sh packaging/Makefile packaging/linux-hotplug/Makefile packaging/generic/Makefile packaging/rpm/Makefile packaging/rpm/package.spec po/Makefile.in doc/Makefile doc/Doxyfile doc/Doxyfile-internals doc/api/Makefile"
25966
25967cat >confcache <<\_ACEOF
25968# This file is a shell script that caches the results of configure
25969# tests run on this system so they can be shared between configure
25970# scripts and configure runs, see configure's option --config-cache.
25971# It is not useful on other systems.  If it contains results you don't
25972# want to keep, you may remove or edit it.
25973#
25974# config.status only pays attention to the cache file if you give it
25975# the --recheck option to rerun configure.
25976#
25977# `ac_cv_env_foo' variables (set or unset) will be overridden when
25978# loading this file, other *unset* `ac_cv_foo' will be assigned the
25979# following values.
25980
25981_ACEOF
25982
25983# The following way of writing the cache mishandles newlines in values,
25984# but we know of no workaround that is simple, portable, and efficient.
25985# So, we kill variables containing newlines.
25986# Ultrix sh set writes to stderr and can't be redirected directly,
25987# and sets the high bit in the cache file unless we assign to the vars.
25988(
25989  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25990    eval ac_val=\$$ac_var
25991    case $ac_val in #(
25992    *${as_nl}*)
25993      case $ac_var in #(
25994      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25995$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25996      esac
25997      case $ac_var in #(
25998      _ | IFS | as_nl) ;; #(
25999      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26000      *) { eval $ac_var=; unset $ac_var;} ;;
26001      esac ;;
26002    esac
26003  done
26004
26005  (set) 2>&1 |
26006    case $as_nl`(ac_space=' '; set) 2>&1` in #(
26007    *${as_nl}ac_space=\ *)
26008      # `set' does not quote correctly, so add quotes: double-quote
26009      # substitution turns \\\\ into \\, and sed turns \\ into \.
26010      sed -n \
26011	"s/'/'\\\\''/g;
26012	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26013      ;; #(
26014    *)
26015      # `set' quotes correctly as required by POSIX, so do not add quotes.
26016      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26017      ;;
26018    esac |
26019    sort
26020) |
26021  sed '
26022     /^ac_cv_env_/b end
26023     t clear
26024     :clear
26025     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26026     t end
26027     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26028     :end' >>confcache
26029if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26030  if test -w "$cache_file"; then
26031    if test "x$cache_file" != "x/dev/null"; then
26032      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26033$as_echo "$as_me: updating cache $cache_file" >&6;}
26034      if test ! -f "$cache_file" || test -h "$cache_file"; then
26035	cat confcache >"$cache_file"
26036      else
26037        case $cache_file in #(
26038        */* | ?:*)
26039	  mv -f confcache "$cache_file"$$ &&
26040	  mv -f "$cache_file"$$ "$cache_file" ;; #(
26041        *)
26042	  mv -f confcache "$cache_file" ;;
26043	esac
26044      fi
26045    fi
26046  else
26047    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26048$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26049  fi
26050fi
26051rm -f confcache
26052
26053test "x$prefix" = xNONE && prefix=$ac_default_prefix
26054# Let make expand exec_prefix.
26055test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26056
26057DEFS=-DHAVE_CONFIG_H
26058
26059ac_libobjs=
26060ac_ltlibobjs=
26061U=
26062for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26063  # 1. Remove the extension, and $U if already installed.
26064  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26065  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26066  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26067  #    will be set to the directory where LIBOBJS objects are built.
26068  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26069  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26070done
26071LIBOBJS=$ac_libobjs
26072
26073LTLIBOBJS=$ac_ltlibobjs
26074
26075
26076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
26077$as_echo_n "checking that generated files are newer than configure... " >&6; }
26078   if test -n "$am_sleep_pid"; then
26079     # Hide warnings about reused PIDs.
26080     wait $am_sleep_pid 2>/dev/null
26081   fi
26082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
26083$as_echo "done" >&6; }
26084 if test -n "$EXEEXT"; then
26085  am__EXEEXT_TRUE=
26086  am__EXEEXT_FALSE='#'
26087else
26088  am__EXEEXT_TRUE='#'
26089  am__EXEEXT_FALSE=
26090fi
26091
26092if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26093  as_fn_error $? "conditional \"AMDEP\" was never defined.
26094Usually this means the macro was only invoked conditionally." "$LINENO" 5
26095fi
26096if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26097  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26098Usually this means the macro was only invoked conditionally." "$LINENO" 5
26099fi
26100if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26101  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
26102Usually this means the macro was only invoked conditionally." "$LINENO" 5
26103fi
26104if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then
26105  as_fn_error $? "conditional \"HAVE_CXX\" was never defined.
26106Usually this means the macro was only invoked conditionally." "$LINENO" 5
26107fi
26108if test -z "${GP_HAVE_PEDANTIC_FLAGS_C90_TRUE}" && test -z "${GP_HAVE_PEDANTIC_FLAGS_C90_FALSE}"; then
26109  as_fn_error $? "conditional \"GP_HAVE_PEDANTIC_FLAGS_C90\" was never defined.
26110Usually this means the macro was only invoked conditionally." "$LINENO" 5
26111fi
26112if test -z "${GP_HAVE_PEDANTIC_FLAGS_C99_TRUE}" && test -z "${GP_HAVE_PEDANTIC_FLAGS_C99_FALSE}"; then
26113  as_fn_error $? "conditional \"GP_HAVE_PEDANTIC_FLAGS_C99\" was never defined.
26114Usually this means the macro was only invoked conditionally." "$LINENO" 5
26115fi
26116if test -z "${GP_HAVE_PEDANTIC_FLAGS_C11_TRUE}" && test -z "${GP_HAVE_PEDANTIC_FLAGS_C11_FALSE}"; then
26117  as_fn_error $? "conditional \"GP_HAVE_PEDANTIC_FLAGS_C11\" was never defined.
26118Usually this means the macro was only invoked conditionally." "$LINENO" 5
26119fi
26120if test -z "${GP_HAVE_PEDANTIC_FLAGS_CXX98_TRUE}" && test -z "${GP_HAVE_PEDANTIC_FLAGS_CXX98_FALSE}"; then
26121  as_fn_error $? "conditional \"GP_HAVE_PEDANTIC_FLAGS_CXX98\" was never defined.
26122Usually this means the macro was only invoked conditionally." "$LINENO" 5
26123fi
26124if test -z "${GP_HAVE_PEDANTIC_FLAGS_CXX11_TRUE}" && test -z "${GP_HAVE_PEDANTIC_FLAGS_CXX11_FALSE}"; then
26125  as_fn_error $? "conditional \"GP_HAVE_PEDANTIC_FLAGS_CXX11\" was never defined.
26126Usually this means the macro was only invoked conditionally." "$LINENO" 5
26127fi
26128if test -z "${GP_HAVE_PEDANTIC_FLAGS_CXX14_TRUE}" && test -z "${GP_HAVE_PEDANTIC_FLAGS_CXX14_FALSE}"; then
26129  as_fn_error $? "conditional \"GP_HAVE_PEDANTIC_FLAGS_CXX14\" was never defined.
26130Usually this means the macro was only invoked conditionally." "$LINENO" 5
26131fi
26132if test -z "${GP_HAVE_PEDANTIC_FLAGS_CXX17_TRUE}" && test -z "${GP_HAVE_PEDANTIC_FLAGS_CXX17_FALSE}"; then
26133  as_fn_error $? "conditional \"GP_HAVE_PEDANTIC_FLAGS_CXX17\" was never defined.
26134Usually this means the macro was only invoked conditionally." "$LINENO" 5
26135fi
26136if test -z "${HAVE_GCC_TRUE}" && test -z "${HAVE_GCC_FALSE}"; then
26137  as_fn_error $? "conditional \"HAVE_GCC\" was never defined.
26138Usually this means the macro was only invoked conditionally." "$LINENO" 5
26139fi
26140if test -z "${ENABLED_GP2DDB_TRUE}" && test -z "${ENABLED_GP2DDB_FALSE}"; then
26141  as_fn_error $? "conditional \"ENABLED_GP2DDB\" was never defined.
26142Usually this means the macro was only invoked conditionally." "$LINENO" 5
26143fi
26144if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
26145  as_fn_error $? "conditional \"HAVE_LIBXML2\" was never defined.
26146Usually this means the macro was only invoked conditionally." "$LINENO" 5
26147fi
26148if test -z "${HAVE_LIBCURL_TRUE}" && test -z "${HAVE_LIBCURL_FALSE}"; then
26149  as_fn_error $? "conditional \"HAVE_LIBCURL\" was never defined.
26150Usually this means the macro was only invoked conditionally." "$LINENO" 5
26151fi
26152if test -z "${HAVE_LIBCURL_TRUE}" && test -z "${HAVE_LIBCURL_FALSE}"; then
26153  as_fn_error $? "conditional \"HAVE_LIBCURL\" was never defined.
26154Usually this means the macro was only invoked conditionally." "$LINENO" 5
26155fi
26156if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
26157  as_fn_error $? "conditional \"HAVE_LIBXML2\" was never defined.
26158Usually this means the macro was only invoked conditionally." "$LINENO" 5
26159fi
26160if test -z "${HAVE_LIBGD_TRUE}" && test -z "${HAVE_LIBGD_FALSE}"; then
26161  as_fn_error $? "conditional \"HAVE_LIBGD\" was never defined.
26162Usually this means the macro was only invoked conditionally." "$LINENO" 5
26163fi
26164
26165if test -z "${HAVE_UDEV_TRUE}" && test -z "${HAVE_UDEV_FALSE}"; then
26166  as_fn_error $? "conditional \"HAVE_UDEV\" was never defined.
26167Usually this means the macro was only invoked conditionally." "$LINENO" 5
26168fi
26169if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
26170  as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
26171Usually this means the macro was only invoked conditionally." "$LINENO" 5
26172fi
26173if test -z "${HAVE_DOT_TRUE}" && test -z "${HAVE_DOT_FALSE}"; then
26174  as_fn_error $? "conditional \"HAVE_DOT\" was never defined.
26175Usually this means the macro was only invoked conditionally." "$LINENO" 5
26176fi
26177if test -z "${ENABLE_INTERNAL_DOCS_TRUE}" && test -z "${ENABLE_INTERNAL_DOCS_FALSE}"; then
26178  as_fn_error $? "conditional \"ENABLE_INTERNAL_DOCS\" was never defined.
26179Usually this means the macro was only invoked conditionally." "$LINENO" 5
26180fi
26181if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
26182  as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
26183Usually this means the macro was only invoked conditionally." "$LINENO" 5
26184fi
26185if test -z "${ENABLE_RPM_TRUE}" && test -z "${ENABLE_RPM_FALSE}"; then
26186  as_fn_error $? "conditional \"ENABLE_RPM\" was never defined.
26187Usually this means the macro was only invoked conditionally." "$LINENO" 5
26188fi
26189if test -z "${HAVE_LINUX_TRUE}" && test -z "${HAVE_LINUX_FALSE}"; then
26190  as_fn_error $? "conditional \"HAVE_LINUX\" was never defined.
26191Usually this means the macro was only invoked conditionally." "$LINENO" 5
26192fi
26193if test -z "${HAVE_LIBEXIF_TRUE}" && test -z "${HAVE_LIBEXIF_FALSE}"; then
26194  as_fn_error $? "conditional \"HAVE_LIBEXIF\" was never defined.
26195Usually this means the macro was only invoked conditionally." "$LINENO" 5
26196fi
26197
26198: "${CONFIG_STATUS=./config.status}"
26199ac_write_fail=0
26200ac_clean_files_save=$ac_clean_files
26201ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26202{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26203$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26204as_write_fail=0
26205cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26206#! $SHELL
26207# Generated by $as_me.
26208# Run this file to recreate the current configuration.
26209# Compiler output produced by configure, useful for debugging
26210# configure, is in config.log if it exists.
26211
26212debug=false
26213ac_cs_recheck=false
26214ac_cs_silent=false
26215
26216SHELL=\${CONFIG_SHELL-$SHELL}
26217export SHELL
26218_ASEOF
26219cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26220## -------------------- ##
26221## M4sh Initialization. ##
26222## -------------------- ##
26223
26224# Be more Bourne compatible
26225DUALCASE=1; export DUALCASE # for MKS sh
26226if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26227  emulate sh
26228  NULLCMD=:
26229  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26230  # is contrary to our usage.  Disable this feature.
26231  alias -g '${1+"$@"}'='"$@"'
26232  setopt NO_GLOB_SUBST
26233else
26234  case `(set -o) 2>/dev/null` in #(
26235  *posix*) :
26236    set -o posix ;; #(
26237  *) :
26238     ;;
26239esac
26240fi
26241
26242
26243as_nl='
26244'
26245export as_nl
26246# Printing a long string crashes Solaris 7 /usr/bin/printf.
26247as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26248as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26249as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26250# Prefer a ksh shell builtin over an external printf program on Solaris,
26251# but without wasting forks for bash or zsh.
26252if test -z "$BASH_VERSION$ZSH_VERSION" \
26253    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26254  as_echo='print -r --'
26255  as_echo_n='print -rn --'
26256elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26257  as_echo='printf %s\n'
26258  as_echo_n='printf %s'
26259else
26260  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26261    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26262    as_echo_n='/usr/ucb/echo -n'
26263  else
26264    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26265    as_echo_n_body='eval
26266      arg=$1;
26267      case $arg in #(
26268      *"$as_nl"*)
26269	expr "X$arg" : "X\\(.*\\)$as_nl";
26270	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26271      esac;
26272      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26273    '
26274    export as_echo_n_body
26275    as_echo_n='sh -c $as_echo_n_body as_echo'
26276  fi
26277  export as_echo_body
26278  as_echo='sh -c $as_echo_body as_echo'
26279fi
26280
26281# The user is always right.
26282if test "${PATH_SEPARATOR+set}" != set; then
26283  PATH_SEPARATOR=:
26284  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26285    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26286      PATH_SEPARATOR=';'
26287  }
26288fi
26289
26290
26291# IFS
26292# We need space, tab and new line, in precisely that order.  Quoting is
26293# there to prevent editors from complaining about space-tab.
26294# (If _AS_PATH_WALK were called with IFS unset, it would disable word
26295# splitting by setting IFS to empty value.)
26296IFS=" ""	$as_nl"
26297
26298# Find who we are.  Look in the path if we contain no directory separator.
26299as_myself=
26300case $0 in #((
26301  *[\\/]* ) as_myself=$0 ;;
26302  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26303for as_dir in $PATH
26304do
26305  IFS=$as_save_IFS
26306  test -z "$as_dir" && as_dir=.
26307    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26308  done
26309IFS=$as_save_IFS
26310
26311     ;;
26312esac
26313# We did not find ourselves, most probably we were run as `sh COMMAND'
26314# in which case we are not to be found in the path.
26315if test "x$as_myself" = x; then
26316  as_myself=$0
26317fi
26318if test ! -f "$as_myself"; then
26319  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26320  exit 1
26321fi
26322
26323# Unset variables that we do not need and which cause bugs (e.g. in
26324# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
26325# suppresses any "Segmentation fault" message there.  '((' could
26326# trigger a bug in pdksh 5.2.14.
26327for as_var in BASH_ENV ENV MAIL MAILPATH
26328do eval test x\${$as_var+set} = xset \
26329  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26330done
26331PS1='$ '
26332PS2='> '
26333PS4='+ '
26334
26335# NLS nuisances.
26336LC_ALL=C
26337export LC_ALL
26338LANGUAGE=C
26339export LANGUAGE
26340
26341# CDPATH.
26342(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26343
26344
26345# as_fn_error STATUS ERROR [LINENO LOG_FD]
26346# ----------------------------------------
26347# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26348# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26349# script with STATUS, using 1 if that was 0.
26350as_fn_error ()
26351{
26352  as_status=$1; test $as_status -eq 0 && as_status=1
26353  if test "$4"; then
26354    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26355    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26356  fi
26357  $as_echo "$as_me: error: $2" >&2
26358  as_fn_exit $as_status
26359} # as_fn_error
26360
26361
26362# as_fn_set_status STATUS
26363# -----------------------
26364# Set $? to STATUS, without forking.
26365as_fn_set_status ()
26366{
26367  return $1
26368} # as_fn_set_status
26369
26370# as_fn_exit STATUS
26371# -----------------
26372# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26373as_fn_exit ()
26374{
26375  set +e
26376  as_fn_set_status $1
26377  exit $1
26378} # as_fn_exit
26379
26380# as_fn_unset VAR
26381# ---------------
26382# Portably unset VAR.
26383as_fn_unset ()
26384{
26385  { eval $1=; unset $1;}
26386}
26387as_unset=as_fn_unset
26388# as_fn_append VAR VALUE
26389# ----------------------
26390# Append the text in VALUE to the end of the definition contained in VAR. Take
26391# advantage of any shell optimizations that allow amortized linear growth over
26392# repeated appends, instead of the typical quadratic growth present in naive
26393# implementations.
26394if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26395  eval 'as_fn_append ()
26396  {
26397    eval $1+=\$2
26398  }'
26399else
26400  as_fn_append ()
26401  {
26402    eval $1=\$$1\$2
26403  }
26404fi # as_fn_append
26405
26406# as_fn_arith ARG...
26407# ------------------
26408# Perform arithmetic evaluation on the ARGs, and store the result in the
26409# global $as_val. Take advantage of shells that can avoid forks. The arguments
26410# must be portable across $(()) and expr.
26411if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26412  eval 'as_fn_arith ()
26413  {
26414    as_val=$(( $* ))
26415  }'
26416else
26417  as_fn_arith ()
26418  {
26419    as_val=`expr "$@" || test $? -eq 1`
26420  }
26421fi # as_fn_arith
26422
26423
26424if expr a : '\(a\)' >/dev/null 2>&1 &&
26425   test "X`expr 00001 : '.*\(...\)'`" = X001; then
26426  as_expr=expr
26427else
26428  as_expr=false
26429fi
26430
26431if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26432  as_basename=basename
26433else
26434  as_basename=false
26435fi
26436
26437if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26438  as_dirname=dirname
26439else
26440  as_dirname=false
26441fi
26442
26443as_me=`$as_basename -- "$0" ||
26444$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26445	 X"$0" : 'X\(//\)$' \| \
26446	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26447$as_echo X/"$0" |
26448    sed '/^.*\/\([^/][^/]*\)\/*$/{
26449	    s//\1/
26450	    q
26451	  }
26452	  /^X\/\(\/\/\)$/{
26453	    s//\1/
26454	    q
26455	  }
26456	  /^X\/\(\/\).*/{
26457	    s//\1/
26458	    q
26459	  }
26460	  s/.*/./; q'`
26461
26462# Avoid depending upon Character Ranges.
26463as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26464as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26465as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26466as_cr_digits='0123456789'
26467as_cr_alnum=$as_cr_Letters$as_cr_digits
26468
26469ECHO_C= ECHO_N= ECHO_T=
26470case `echo -n x` in #(((((
26471-n*)
26472  case `echo 'xy\c'` in
26473  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
26474  xy)  ECHO_C='\c';;
26475  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
26476       ECHO_T='	';;
26477  esac;;
26478*)
26479  ECHO_N='-n';;
26480esac
26481
26482rm -f conf$$ conf$$.exe conf$$.file
26483if test -d conf$$.dir; then
26484  rm -f conf$$.dir/conf$$.file
26485else
26486  rm -f conf$$.dir
26487  mkdir conf$$.dir 2>/dev/null
26488fi
26489if (echo >conf$$.file) 2>/dev/null; then
26490  if ln -s conf$$.file conf$$ 2>/dev/null; then
26491    as_ln_s='ln -s'
26492    # ... but there are two gotchas:
26493    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26494    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26495    # In both cases, we have to default to `cp -pR'.
26496    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26497      as_ln_s='cp -pR'
26498  elif ln conf$$.file conf$$ 2>/dev/null; then
26499    as_ln_s=ln
26500  else
26501    as_ln_s='cp -pR'
26502  fi
26503else
26504  as_ln_s='cp -pR'
26505fi
26506rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26507rmdir conf$$.dir 2>/dev/null
26508
26509
26510# as_fn_mkdir_p
26511# -------------
26512# Create "$as_dir" as a directory, including parents if necessary.
26513as_fn_mkdir_p ()
26514{
26515
26516  case $as_dir in #(
26517  -*) as_dir=./$as_dir;;
26518  esac
26519  test -d "$as_dir" || eval $as_mkdir_p || {
26520    as_dirs=
26521    while :; do
26522      case $as_dir in #(
26523      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26524      *) as_qdir=$as_dir;;
26525      esac
26526      as_dirs="'$as_qdir' $as_dirs"
26527      as_dir=`$as_dirname -- "$as_dir" ||
26528$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26529	 X"$as_dir" : 'X\(//\)[^/]' \| \
26530	 X"$as_dir" : 'X\(//\)$' \| \
26531	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26532$as_echo X"$as_dir" |
26533    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26534	    s//\1/
26535	    q
26536	  }
26537	  /^X\(\/\/\)[^/].*/{
26538	    s//\1/
26539	    q
26540	  }
26541	  /^X\(\/\/\)$/{
26542	    s//\1/
26543	    q
26544	  }
26545	  /^X\(\/\).*/{
26546	    s//\1/
26547	    q
26548	  }
26549	  s/.*/./; q'`
26550      test -d "$as_dir" && break
26551    done
26552    test -z "$as_dirs" || eval "mkdir $as_dirs"
26553  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
26554
26555
26556} # as_fn_mkdir_p
26557if mkdir -p . 2>/dev/null; then
26558  as_mkdir_p='mkdir -p "$as_dir"'
26559else
26560  test -d ./-p && rmdir ./-p
26561  as_mkdir_p=false
26562fi
26563
26564
26565# as_fn_executable_p FILE
26566# -----------------------
26567# Test if FILE is an executable regular file.
26568as_fn_executable_p ()
26569{
26570  test -f "$1" && test -x "$1"
26571} # as_fn_executable_p
26572as_test_x='test -x'
26573as_executable_p=as_fn_executable_p
26574
26575# Sed expression to map a string onto a valid CPP name.
26576as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26577
26578# Sed expression to map a string onto a valid variable name.
26579as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26580
26581
26582exec 6>&1
26583## ----------------------------------- ##
26584## Main body of $CONFIG_STATUS script. ##
26585## ----------------------------------- ##
26586_ASEOF
26587test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26588
26589cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26590# Save the log message, to keep $0 and so on meaningful, and to
26591# report actual input values of CONFIG_FILES etc. instead of their
26592# values after options handling.
26593ac_log="
26594This file was extended by libgphoto2 photo camera library $as_me 2.5.26, which was
26595generated by GNU Autoconf 2.69.  Invocation command line was
26596
26597  CONFIG_FILES    = $CONFIG_FILES
26598  CONFIG_HEADERS  = $CONFIG_HEADERS
26599  CONFIG_LINKS    = $CONFIG_LINKS
26600  CONFIG_COMMANDS = $CONFIG_COMMANDS
26601  $ $0 $@
26602
26603on `(hostname || uname -n) 2>/dev/null | sed 1q`
26604"
26605
26606_ACEOF
26607
26608case $ac_config_files in *"
26609"*) set x $ac_config_files; shift; ac_config_files=$*;;
26610esac
26611
26612case $ac_config_headers in *"
26613"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26614esac
26615
26616
26617cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26618# Files that config.status was made for.
26619config_files="$ac_config_files"
26620config_headers="$ac_config_headers"
26621config_commands="$ac_config_commands"
26622
26623_ACEOF
26624
26625cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26626ac_cs_usage="\
26627\`$as_me' instantiates files and other configuration actions
26628from templates according to the current configuration.  Unless the files
26629and actions are specified as TAGs, all are instantiated by default.
26630
26631Usage: $0 [OPTION]... [TAG]...
26632
26633  -h, --help       print this help, then exit
26634  -V, --version    print version number and configuration settings, then exit
26635      --config     print configuration, then exit
26636  -q, --quiet, --silent
26637                   do not print progress messages
26638  -d, --debug      don't remove temporary files
26639      --recheck    update $as_me by reconfiguring in the same conditions
26640      --file=FILE[:TEMPLATE]
26641                   instantiate the configuration file FILE
26642      --header=FILE[:TEMPLATE]
26643                   instantiate the configuration header FILE
26644
26645Configuration files:
26646$config_files
26647
26648Configuration headers:
26649$config_headers
26650
26651Configuration commands:
26652$config_commands
26653
26654Report bugs to <gphoto-devel@lists.sourceforge.net>."
26655
26656_ACEOF
26657cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26658ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26659ac_cs_version="\\
26660libgphoto2 photo camera library config.status 2.5.26
26661configured by $0, generated by GNU Autoconf 2.69,
26662  with options \\"\$ac_cs_config\\"
26663
26664Copyright (C) 2012 Free Software Foundation, Inc.
26665This config.status script is free software; the Free Software Foundation
26666gives unlimited permission to copy, distribute and modify it."
26667
26668ac_pwd='$ac_pwd'
26669srcdir='$srcdir'
26670INSTALL='$INSTALL'
26671MKDIR_P='$MKDIR_P'
26672AWK='$AWK'
26673test -n "\$AWK" || AWK=awk
26674_ACEOF
26675
26676cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26677# The default lists apply if the user does not specify any file.
26678ac_need_defaults=:
26679while test $# != 0
26680do
26681  case $1 in
26682  --*=?*)
26683    ac_option=`expr "X$1" : 'X\([^=]*\)='`
26684    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26685    ac_shift=:
26686    ;;
26687  --*=)
26688    ac_option=`expr "X$1" : 'X\([^=]*\)='`
26689    ac_optarg=
26690    ac_shift=:
26691    ;;
26692  *)
26693    ac_option=$1
26694    ac_optarg=$2
26695    ac_shift=shift
26696    ;;
26697  esac
26698
26699  case $ac_option in
26700  # Handling of the options.
26701  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26702    ac_cs_recheck=: ;;
26703  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26704    $as_echo "$ac_cs_version"; exit ;;
26705  --config | --confi | --conf | --con | --co | --c )
26706    $as_echo "$ac_cs_config"; exit ;;
26707  --debug | --debu | --deb | --de | --d | -d )
26708    debug=: ;;
26709  --file | --fil | --fi | --f )
26710    $ac_shift
26711    case $ac_optarg in
26712    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26713    '') as_fn_error $? "missing file argument" ;;
26714    esac
26715    as_fn_append CONFIG_FILES " '$ac_optarg'"
26716    ac_need_defaults=false;;
26717  --header | --heade | --head | --hea )
26718    $ac_shift
26719    case $ac_optarg in
26720    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26721    esac
26722    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26723    ac_need_defaults=false;;
26724  --he | --h)
26725    # Conflict between --help and --header
26726    as_fn_error $? "ambiguous option: \`$1'
26727Try \`$0 --help' for more information.";;
26728  --help | --hel | -h )
26729    $as_echo "$ac_cs_usage"; exit ;;
26730  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26731  | -silent | --silent | --silen | --sile | --sil | --si | --s)
26732    ac_cs_silent=: ;;
26733
26734  # This is an error.
26735  -*) as_fn_error $? "unrecognized option: \`$1'
26736Try \`$0 --help' for more information." ;;
26737
26738  *) as_fn_append ac_config_targets " $1"
26739     ac_need_defaults=false ;;
26740
26741  esac
26742  shift
26743done
26744
26745ac_configure_extra_args=
26746
26747if $ac_cs_silent; then
26748  exec 6>/dev/null
26749  ac_configure_extra_args="$ac_configure_extra_args --silent"
26750fi
26751
26752_ACEOF
26753cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26754if \$ac_cs_recheck; then
26755  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26756  shift
26757  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26758  CONFIG_SHELL='$SHELL'
26759  export CONFIG_SHELL
26760  exec "\$@"
26761fi
26762
26763_ACEOF
26764cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26765exec 5>>config.log
26766{
26767  echo
26768  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26769## Running $as_me. ##
26770_ASBOX
26771  $as_echo "$ac_log"
26772} >&5
26773
26774_ACEOF
26775cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26776#
26777# INIT-COMMANDS
26778#
26779AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
26780
26781
26782# The HP-UX ksh and POSIX shell print the target directory to stdout
26783# if CDPATH is set.
26784(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26785
26786sed_quote_subst='$sed_quote_subst'
26787double_quote_subst='$double_quote_subst'
26788delay_variable_subst='$delay_variable_subst'
26789enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
26790AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
26791DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
26792OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
26793macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
26794macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
26795enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
26796pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
26797enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
26798shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
26799SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
26800ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
26801PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
26802host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
26803host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
26804host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
26805build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
26806build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
26807build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
26808SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
26809Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
26810GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
26811EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
26812FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
26813LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
26814NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
26815LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
26816max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
26817ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
26818exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
26819lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
26820lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
26821lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
26822lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
26823lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
26824reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
26825reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
26826deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
26827file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
26828file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
26829want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
26830sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
26831AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
26832AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
26833archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
26834STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
26835RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
26836old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26837old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26838old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
26839lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
26840CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
26841CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
26842compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
26843GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
26844lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
26845lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
26846lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
26847lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
26848lt_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"`'
26849lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
26850nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
26851lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
26852lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
26853objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
26854MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
26855lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
26856lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
26857lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
26858lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
26859lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
26860need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
26861MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
26862DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
26863NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
26864LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
26865OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
26866OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
26867libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
26868shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
26869extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26870archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
26871enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
26872export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
26873whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
26874compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
26875old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
26876old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26877archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
26878archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26879module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
26880module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26881with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
26882allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
26883no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
26884hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
26885hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
26886hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
26887hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
26888hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
26889hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
26890hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
26891inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
26892link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
26893always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
26894export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
26895exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
26896include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
26897prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
26898postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
26899file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
26900variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
26901need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
26902need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
26903version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
26904runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
26905shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
26906shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
26907libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
26908library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
26909soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
26910install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
26911postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26912postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26913finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
26914finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
26915hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
26916sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
26917configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
26918configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
26919hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
26920enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
26921enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
26922enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
26923old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
26924striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
26925compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
26926predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
26927postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
26928predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
26929postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
26930compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
26931LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
26932reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
26933reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26934old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26935compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
26936GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
26937lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
26938lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
26939lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
26940lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
26941lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
26942archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
26943enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
26944export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26945whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26946compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
26947old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26948old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26949archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26950archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26951module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26952module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26953with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
26954allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26955no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26956hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26957hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
26958hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
26959hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
26960hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
26961hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
26962hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
26963inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
26964link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
26965always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
26966export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26967exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26968include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26969prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26970postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26971file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
26972hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
26973compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
26974predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26975postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26976predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
26977postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
26978compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
26979
26980LTCC='$LTCC'
26981LTCFLAGS='$LTCFLAGS'
26982compiler='$compiler_DEFAULT'
26983
26984# A function that is used when there is no print builtin or printf.
26985func_fallback_echo ()
26986{
26987  eval 'cat <<_LTECHO_EOF
26988\$1
26989_LTECHO_EOF'
26990}
26991
26992# Quote evaled strings.
26993for var in AS \
26994DLLTOOL \
26995OBJDUMP \
26996SHELL \
26997ECHO \
26998PATH_SEPARATOR \
26999SED \
27000GREP \
27001EGREP \
27002FGREP \
27003LD \
27004NM \
27005LN_S \
27006lt_SP2NL \
27007lt_NL2SP \
27008reload_flag \
27009deplibs_check_method \
27010file_magic_cmd \
27011file_magic_glob \
27012want_nocaseglob \
27013sharedlib_from_linklib_cmd \
27014AR \
27015AR_FLAGS \
27016archiver_list_spec \
27017STRIP \
27018RANLIB \
27019CC \
27020CFLAGS \
27021compiler \
27022lt_cv_sys_global_symbol_pipe \
27023lt_cv_sys_global_symbol_to_cdecl \
27024lt_cv_sys_global_symbol_to_import \
27025lt_cv_sys_global_symbol_to_c_name_address \
27026lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27027lt_cv_nm_interface \
27028nm_file_list_spec \
27029lt_cv_truncate_bin \
27030lt_prog_compiler_no_builtin_flag \
27031lt_prog_compiler_pic \
27032lt_prog_compiler_wl \
27033lt_prog_compiler_static \
27034lt_cv_prog_compiler_c_o \
27035need_locks \
27036MANIFEST_TOOL \
27037DSYMUTIL \
27038NMEDIT \
27039LIPO \
27040OTOOL \
27041OTOOL64 \
27042shrext_cmds \
27043export_dynamic_flag_spec \
27044whole_archive_flag_spec \
27045compiler_needs_object \
27046with_gnu_ld \
27047allow_undefined_flag \
27048no_undefined_flag \
27049hardcode_libdir_flag_spec \
27050hardcode_libdir_separator \
27051exclude_expsyms \
27052include_expsyms \
27053file_list_spec \
27054variables_saved_for_relink \
27055libname_spec \
27056library_names_spec \
27057soname_spec \
27058install_override_mode \
27059finish_eval \
27060old_striplib \
27061striplib \
27062compiler_lib_search_dirs \
27063predep_objects \
27064postdep_objects \
27065predeps \
27066postdeps \
27067compiler_lib_search_path \
27068LD_CXX \
27069reload_flag_CXX \
27070compiler_CXX \
27071lt_prog_compiler_no_builtin_flag_CXX \
27072lt_prog_compiler_pic_CXX \
27073lt_prog_compiler_wl_CXX \
27074lt_prog_compiler_static_CXX \
27075lt_cv_prog_compiler_c_o_CXX \
27076export_dynamic_flag_spec_CXX \
27077whole_archive_flag_spec_CXX \
27078compiler_needs_object_CXX \
27079with_gnu_ld_CXX \
27080allow_undefined_flag_CXX \
27081no_undefined_flag_CXX \
27082hardcode_libdir_flag_spec_CXX \
27083hardcode_libdir_separator_CXX \
27084exclude_expsyms_CXX \
27085include_expsyms_CXX \
27086file_list_spec_CXX \
27087compiler_lib_search_dirs_CXX \
27088predep_objects_CXX \
27089postdep_objects_CXX \
27090predeps_CXX \
27091postdeps_CXX \
27092compiler_lib_search_path_CXX; do
27093    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27094    *[\\\\\\\`\\"\\\$]*)
27095      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27096      ;;
27097    *)
27098      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27099      ;;
27100    esac
27101done
27102
27103# Double-quote double-evaled strings.
27104for var in reload_cmds \
27105old_postinstall_cmds \
27106old_postuninstall_cmds \
27107old_archive_cmds \
27108extract_expsyms_cmds \
27109old_archive_from_new_cmds \
27110old_archive_from_expsyms_cmds \
27111archive_cmds \
27112archive_expsym_cmds \
27113module_cmds \
27114module_expsym_cmds \
27115export_symbols_cmds \
27116prelink_cmds \
27117postlink_cmds \
27118postinstall_cmds \
27119postuninstall_cmds \
27120finish_cmds \
27121sys_lib_search_path_spec \
27122configure_time_dlsearch_path \
27123configure_time_lt_sys_library_path \
27124reload_cmds_CXX \
27125old_archive_cmds_CXX \
27126old_archive_from_new_cmds_CXX \
27127old_archive_from_expsyms_cmds_CXX \
27128archive_cmds_CXX \
27129archive_expsym_cmds_CXX \
27130module_cmds_CXX \
27131module_expsym_cmds_CXX \
27132export_symbols_cmds_CXX \
27133prelink_cmds_CXX \
27134postlink_cmds_CXX; do
27135    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27136    *[\\\\\\\`\\"\\\$]*)
27137      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27138      ;;
27139    *)
27140      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27141      ;;
27142    esac
27143done
27144
27145ac_aux_dir='$ac_aux_dir'
27146
27147# See if we are running on zsh, and set the options that allow our
27148# commands through without removal of \ escapes INIT.
27149if test -n "\${ZSH_VERSION+set}"; then
27150   setopt NO_GLOB_SUBST
27151fi
27152
27153
27154    PACKAGE='$PACKAGE'
27155    VERSION='$VERSION'
27156    RM='$RM'
27157    ofile='$ofile'
27158
27159
27160
27161
27162
27163# Capture the value of obsolete ALL_LINGUAS because we need it to compute
27164    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
27165    # from automake.
27166    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
27167    # Capture the value of LINGUAS because we need it to compute CATALOGS.
27168    LINGUAS="${LINGUAS-%UNSET%}"
27169
27170# Capture the value of obsolete ALL_LINGUAS because we need it to compute
27171    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
27172    # from automake.
27173    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
27174    # Capture the value of LINGUAS because we need it to compute CATALOGS.
27175    LINGUAS="${LINGUAS-%UNSET%}"
27176
27177
27178_ACEOF
27179
27180cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27181
27182# Handling of arguments.
27183for ac_config_target in $ac_config_targets
27184do
27185  case $ac_config_target in
27186    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27187    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27188    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27189    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
27190    "default-2") CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
27191    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27192    "gphoto2-config") CONFIG_FILES="$CONFIG_FILES gphoto2-config" ;;
27193    "camlibs/Makefile") CONFIG_FILES="$CONFIG_FILES camlibs/Makefile" ;;
27194    "camlibs/canon/doc/Makefile") CONFIG_FILES="$CONFIG_FILES camlibs/canon/doc/Makefile" ;;
27195    "camlibs/konica/localization/Makefile") CONFIG_FILES="$CONFIG_FILES camlibs/konica/localization/Makefile" ;;
27196    "gphoto-m4/Makefile") CONFIG_FILES="$CONFIG_FILES gphoto-m4/Makefile" ;;
27197    "libgphoto2/Makefile") CONFIG_FILES="$CONFIG_FILES libgphoto2/Makefile" ;;
27198    "libgphoto2.pc") CONFIG_FILES="$CONFIG_FILES libgphoto2.pc" ;;
27199    "libgphoto2-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES libgphoto2-uninstalled.pc" ;;
27200    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
27201    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
27202    "tests/ddb/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ddb/Makefile" ;;
27203    "tests/ddb/check-ddb.sh") CONFIG_FILES="$CONFIG_FILES tests/ddb/check-ddb.sh" ;;
27204    "packaging/Makefile") CONFIG_FILES="$CONFIG_FILES packaging/Makefile" ;;
27205    "packaging/linux-hotplug/Makefile") CONFIG_FILES="$CONFIG_FILES packaging/linux-hotplug/Makefile" ;;
27206    "packaging/generic/Makefile") CONFIG_FILES="$CONFIG_FILES packaging/generic/Makefile" ;;
27207    "packaging/rpm/Makefile") CONFIG_FILES="$CONFIG_FILES packaging/rpm/Makefile" ;;
27208    "packaging/rpm/package.spec") CONFIG_FILES="$CONFIG_FILES packaging/rpm/package.spec" ;;
27209    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
27210    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27211    "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
27212    "doc/Doxyfile-internals") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile-internals" ;;
27213    "doc/api/Makefile") CONFIG_FILES="$CONFIG_FILES doc/api/Makefile" ;;
27214
27215  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27216  esac
27217done
27218
27219
27220# If the user did not use the arguments to specify the items to instantiate,
27221# then the envvar interface is used.  Set only those that are not.
27222# We use the long form for the default assignment because of an extremely
27223# bizarre bug on SunOS 4.1.3.
27224if $ac_need_defaults; then
27225  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27226  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27227  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27228fi
27229
27230# Have a temporary directory for convenience.  Make it in the build tree
27231# simply because there is no reason against having it here, and in addition,
27232# creating and moving files from /tmp can sometimes cause problems.
27233# Hook for its removal unless debugging.
27234# Note that there is a small window in which the directory will not be cleaned:
27235# after its creation but before its name has been assigned to `$tmp'.
27236$debug ||
27237{
27238  tmp= ac_tmp=
27239  trap 'exit_status=$?
27240  : "${ac_tmp:=$tmp}"
27241  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
27242' 0
27243  trap 'as_fn_exit 1' 1 2 13 15
27244}
27245# Create a (secure) tmp directory for tmp files.
27246
27247{
27248  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27249  test -d "$tmp"
27250}  ||
27251{
27252  tmp=./conf$$-$RANDOM
27253  (umask 077 && mkdir "$tmp")
27254} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
27255ac_tmp=$tmp
27256
27257# Set up the scripts for CONFIG_FILES section.
27258# No need to generate them if there are no CONFIG_FILES.
27259# This happens for instance with `./config.status config.h'.
27260if test -n "$CONFIG_FILES"; then
27261
27262
27263ac_cr=`echo X | tr X '\015'`
27264# On cygwin, bash can eat \r inside `` if the user requested igncr.
27265# But we know of no other shell where ac_cr would be empty at this
27266# point, so we can use a bashism as a fallback.
27267if test "x$ac_cr" = x; then
27268  eval ac_cr=\$\'\\r\'
27269fi
27270ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27271if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27272  ac_cs_awk_cr='\\r'
27273else
27274  ac_cs_awk_cr=$ac_cr
27275fi
27276
27277echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27278_ACEOF
27279
27280
27281{
27282  echo "cat >conf$$subs.awk <<_ACEOF" &&
27283  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27284  echo "_ACEOF"
27285} >conf$$subs.sh ||
27286  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27287ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27288ac_delim='%!_!# '
27289for ac_last_try in false false false false false :; do
27290  . ./conf$$subs.sh ||
27291    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27292
27293  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27294  if test $ac_delim_n = $ac_delim_num; then
27295    break
27296  elif $ac_last_try; then
27297    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27298  else
27299    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27300  fi
27301done
27302rm -f conf$$subs.sh
27303
27304cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27305cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
27306_ACEOF
27307sed -n '
27308h
27309s/^/S["/; s/!.*/"]=/
27310p
27311g
27312s/^[^!]*!//
27313:repl
27314t repl
27315s/'"$ac_delim"'$//
27316t delim
27317:nl
27318h
27319s/\(.\{148\}\)..*/\1/
27320t more1
27321s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27322p
27323n
27324b repl
27325:more1
27326s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27327p
27328g
27329s/.\{148\}//
27330t nl
27331:delim
27332h
27333s/\(.\{148\}\)..*/\1/
27334t more2
27335s/["\\]/\\&/g; s/^/"/; s/$/"/
27336p
27337b
27338:more2
27339s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27340p
27341g
27342s/.\{148\}//
27343t delim
27344' <conf$$subs.awk | sed '
27345/^[^""]/{
27346  N
27347  s/\n//
27348}
27349' >>$CONFIG_STATUS || ac_write_fail=1
27350rm -f conf$$subs.awk
27351cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27352_ACAWK
27353cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
27354  for (key in S) S_is_set[key] = 1
27355  FS = ""
27356
27357}
27358{
27359  line = $ 0
27360  nfields = split(line, field, "@")
27361  substed = 0
27362  len = length(field[1])
27363  for (i = 2; i < nfields; i++) {
27364    key = field[i]
27365    keylen = length(key)
27366    if (S_is_set[key]) {
27367      value = S[key]
27368      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27369      len += length(value) + length(field[++i])
27370      substed = 1
27371    } else
27372      len += 1 + keylen
27373  }
27374
27375  print line
27376}
27377
27378_ACAWK
27379_ACEOF
27380cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27381if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27382  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27383else
27384  cat
27385fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
27386  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
27387_ACEOF
27388
27389# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
27390# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
27391# trailing colons and then remove the whole line if VPATH becomes empty
27392# (actually we leave an empty line to preserve line numbers).
27393if test "x$srcdir" = x.; then
27394  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
27395h
27396s///
27397s/^/:/
27398s/[	 ]*$/:/
27399s/:\$(srcdir):/:/g
27400s/:\${srcdir}:/:/g
27401s/:@srcdir@:/:/g
27402s/^:*//
27403s/:*$//
27404x
27405s/\(=[	 ]*\).*/\1/
27406G
27407s/\n//
27408s/^[^=]*=[	 ]*$//
27409}'
27410fi
27411
27412cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27413fi # test -n "$CONFIG_FILES"
27414
27415# Set up the scripts for CONFIG_HEADERS section.
27416# No need to generate them if there are no CONFIG_HEADERS.
27417# This happens for instance with `./config.status Makefile'.
27418if test -n "$CONFIG_HEADERS"; then
27419cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
27420BEGIN {
27421_ACEOF
27422
27423# Transform confdefs.h into an awk script `defines.awk', embedded as
27424# here-document in config.status, that substitutes the proper values into
27425# config.h.in to produce config.h.
27426
27427# Create a delimiter string that does not exist in confdefs.h, to ease
27428# handling of long lines.
27429ac_delim='%!_!# '
27430for ac_last_try in false false :; do
27431  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
27432  if test -z "$ac_tt"; then
27433    break
27434  elif $ac_last_try; then
27435    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
27436  else
27437    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27438  fi
27439done
27440
27441# For the awk script, D is an array of macro values keyed by name,
27442# likewise P contains macro parameters if any.  Preserve backslash
27443# newline sequences.
27444
27445ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27446sed -n '
27447s/.\{148\}/&'"$ac_delim"'/g
27448t rset
27449:rset
27450s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
27451t def
27452d
27453:def
27454s/\\$//
27455t bsnl
27456s/["\\]/\\&/g
27457s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
27458D["\1"]=" \3"/p
27459s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
27460d
27461:bsnl
27462s/["\\]/\\&/g
27463s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
27464D["\1"]=" \3\\\\\\n"\\/p
27465t cont
27466s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27467t cont
27468d
27469:cont
27470n
27471s/.\{148\}/&'"$ac_delim"'/g
27472t clear
27473:clear
27474s/\\$//
27475t bsnlc
27476s/["\\]/\\&/g; s/^/"/; s/$/"/p
27477d
27478:bsnlc
27479s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27480b cont
27481' <confdefs.h | sed '
27482s/'"$ac_delim"'/"\\\
27483"/g' >>$CONFIG_STATUS || ac_write_fail=1
27484
27485cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27486  for (key in D) D_is_set[key] = 1
27487  FS = ""
27488}
27489/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27490  line = \$ 0
27491  split(line, arg, " ")
27492  if (arg[1] == "#") {
27493    defundef = arg[2]
27494    mac1 = arg[3]
27495  } else {
27496    defundef = substr(arg[1], 2)
27497    mac1 = arg[2]
27498  }
27499  split(mac1, mac2, "(") #)
27500  macro = mac2[1]
27501  prefix = substr(line, 1, index(line, defundef) - 1)
27502  if (D_is_set[macro]) {
27503    # Preserve the white space surrounding the "#".
27504    print prefix "define", macro P[macro] D[macro]
27505    next
27506  } else {
27507    # Replace #undef with comments.  This is necessary, for example,
27508    # in the case of _POSIX_SOURCE, which is predefined and required
27509    # on some systems where configure will not decide to define it.
27510    if (defundef == "undef") {
27511      print "/*", prefix defundef, macro, "*/"
27512      next
27513    }
27514  }
27515}
27516{ print }
27517_ACAWK
27518_ACEOF
27519cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27520  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
27521fi # test -n "$CONFIG_HEADERS"
27522
27523
27524eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
27525shift
27526for ac_tag
27527do
27528  case $ac_tag in
27529  :[FHLC]) ac_mode=$ac_tag; continue;;
27530  esac
27531  case $ac_mode$ac_tag in
27532  :[FHL]*:*);;
27533  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
27534  :[FH]-) ac_tag=-:-;;
27535  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27536  esac
27537  ac_save_IFS=$IFS
27538  IFS=:
27539  set x $ac_tag
27540  IFS=$ac_save_IFS
27541  shift
27542  ac_file=$1
27543  shift
27544
27545  case $ac_mode in
27546  :L) ac_source=$1;;
27547  :[FH])
27548    ac_file_inputs=
27549    for ac_f
27550    do
27551      case $ac_f in
27552      -) ac_f="$ac_tmp/stdin";;
27553      *) # Look for the file first in the build tree, then in the source tree
27554	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
27555	 # because $ac_f cannot contain `:'.
27556	 test -f "$ac_f" ||
27557	   case $ac_f in
27558	   [\\/$]*) false;;
27559	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27560	   esac ||
27561	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27562      esac
27563      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27564      as_fn_append ac_file_inputs " '$ac_f'"
27565    done
27566
27567    # Let's still pretend it is `configure' which instantiates (i.e., don't
27568    # use $as_me), people would be surprised to read:
27569    #    /* config.h.  Generated by config.status.  */
27570    configure_input='Generated from '`
27571	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27572	`' by configure.'
27573    if test x"$ac_file" != x-; then
27574      configure_input="$ac_file.  $configure_input"
27575      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27576$as_echo "$as_me: creating $ac_file" >&6;}
27577    fi
27578    # Neutralize special characters interpreted by sed in replacement strings.
27579    case $configure_input in #(
27580    *\&* | *\|* | *\\* )
27581       ac_sed_conf_input=`$as_echo "$configure_input" |
27582       sed 's/[\\\\&|]/\\\\&/g'`;; #(
27583    *) ac_sed_conf_input=$configure_input;;
27584    esac
27585
27586    case $ac_tag in
27587    *:-:* | *:-) cat >"$ac_tmp/stdin" \
27588      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
27589    esac
27590    ;;
27591  esac
27592
27593  ac_dir=`$as_dirname -- "$ac_file" ||
27594$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27595	 X"$ac_file" : 'X\(//\)[^/]' \| \
27596	 X"$ac_file" : 'X\(//\)$' \| \
27597	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27598$as_echo X"$ac_file" |
27599    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27600	    s//\1/
27601	    q
27602	  }
27603	  /^X\(\/\/\)[^/].*/{
27604	    s//\1/
27605	    q
27606	  }
27607	  /^X\(\/\/\)$/{
27608	    s//\1/
27609	    q
27610	  }
27611	  /^X\(\/\).*/{
27612	    s//\1/
27613	    q
27614	  }
27615	  s/.*/./; q'`
27616  as_dir="$ac_dir"; as_fn_mkdir_p
27617  ac_builddir=.
27618
27619case "$ac_dir" in
27620.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27621*)
27622  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27623  # A ".." for each directory in $ac_dir_suffix.
27624  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27625  case $ac_top_builddir_sub in
27626  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27627  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27628  esac ;;
27629esac
27630ac_abs_top_builddir=$ac_pwd
27631ac_abs_builddir=$ac_pwd$ac_dir_suffix
27632# for backward compatibility:
27633ac_top_builddir=$ac_top_build_prefix
27634
27635case $srcdir in
27636  .)  # We are building in place.
27637    ac_srcdir=.
27638    ac_top_srcdir=$ac_top_builddir_sub
27639    ac_abs_top_srcdir=$ac_pwd ;;
27640  [\\/]* | ?:[\\/]* )  # Absolute name.
27641    ac_srcdir=$srcdir$ac_dir_suffix;
27642    ac_top_srcdir=$srcdir
27643    ac_abs_top_srcdir=$srcdir ;;
27644  *) # Relative name.
27645    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27646    ac_top_srcdir=$ac_top_build_prefix$srcdir
27647    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27648esac
27649ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27650
27651
27652  case $ac_mode in
27653  :F)
27654  #
27655  # CONFIG_FILE
27656  #
27657
27658  case $INSTALL in
27659  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27660  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27661  esac
27662  ac_MKDIR_P=$MKDIR_P
27663  case $MKDIR_P in
27664  [\\/$]* | ?:[\\/]* ) ;;
27665  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27666  esac
27667_ACEOF
27668
27669cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27670# If the template does not know about datarootdir, expand it.
27671# FIXME: This hack should be removed a few years after 2.60.
27672ac_datarootdir_hack=; ac_datarootdir_seen=
27673ac_sed_dataroot='
27674/datarootdir/ {
27675  p
27676  q
27677}
27678/@datadir@/p
27679/@docdir@/p
27680/@infodir@/p
27681/@localedir@/p
27682/@mandir@/p'
27683case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27684*datarootdir*) ac_datarootdir_seen=yes;;
27685*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27686  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27687$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27688_ACEOF
27689cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27690  ac_datarootdir_hack='
27691  s&@datadir@&$datadir&g
27692  s&@docdir@&$docdir&g
27693  s&@infodir@&$infodir&g
27694  s&@localedir@&$localedir&g
27695  s&@mandir@&$mandir&g
27696  s&\\\${datarootdir}&$datarootdir&g' ;;
27697esac
27698_ACEOF
27699
27700# Neutralize VPATH when `$srcdir' = `.'.
27701# Shell code in configure.ac might set extrasub.
27702# FIXME: do we really want to maintain this feature?
27703cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27704ac_sed_extra="$ac_vpsub
27705$extrasub
27706_ACEOF
27707cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27708:t
27709/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27710s|@configure_input@|$ac_sed_conf_input|;t t
27711s&@top_builddir@&$ac_top_builddir_sub&;t t
27712s&@top_build_prefix@&$ac_top_build_prefix&;t t
27713s&@srcdir@&$ac_srcdir&;t t
27714s&@abs_srcdir@&$ac_abs_srcdir&;t t
27715s&@top_srcdir@&$ac_top_srcdir&;t t
27716s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27717s&@builddir@&$ac_builddir&;t t
27718s&@abs_builddir@&$ac_abs_builddir&;t t
27719s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27720s&@INSTALL@&$ac_INSTALL&;t t
27721s&@MKDIR_P@&$ac_MKDIR_P&;t t
27722$ac_datarootdir_hack
27723"
27724eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
27725  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27726
27727test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27728  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
27729  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
27730      "$ac_tmp/out"`; test -z "$ac_out"; } &&
27731  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27732which seems to be undefined.  Please make sure it is defined" >&5
27733$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27734which seems to be undefined.  Please make sure it is defined" >&2;}
27735
27736  rm -f "$ac_tmp/stdin"
27737  case $ac_file in
27738  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
27739  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
27740  esac \
27741  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27742 ;;
27743  :H)
27744  #
27745  # CONFIG_HEADER
27746  #
27747  if test x"$ac_file" != x-; then
27748    {
27749      $as_echo "/* $configure_input  */" \
27750      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
27751    } >"$ac_tmp/config.h" \
27752      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27753    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
27754      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27755$as_echo "$as_me: $ac_file is unchanged" >&6;}
27756    else
27757      rm -f "$ac_file"
27758      mv "$ac_tmp/config.h" "$ac_file" \
27759	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
27760    fi
27761  else
27762    $as_echo "/* $configure_input  */" \
27763      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
27764      || as_fn_error $? "could not create -" "$LINENO" 5
27765  fi
27766# Compute "$ac_file"'s index in $config_headers.
27767_am_arg="$ac_file"
27768_am_stamp_count=1
27769for _am_header in $config_headers :; do
27770  case $_am_header in
27771    $_am_arg | $_am_arg:* )
27772      break ;;
27773    * )
27774      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27775  esac
27776done
27777echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27778$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27779	 X"$_am_arg" : 'X\(//\)[^/]' \| \
27780	 X"$_am_arg" : 'X\(//\)$' \| \
27781	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27782$as_echo X"$_am_arg" |
27783    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27784	    s//\1/
27785	    q
27786	  }
27787	  /^X\(\/\/\)[^/].*/{
27788	    s//\1/
27789	    q
27790	  }
27791	  /^X\(\/\/\)$/{
27792	    s//\1/
27793	    q
27794	  }
27795	  /^X\(\/\).*/{
27796	    s//\1/
27797	    q
27798	  }
27799	  s/.*/./; q'`/stamp-h$_am_stamp_count
27800 ;;
27801
27802  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27803$as_echo "$as_me: executing $ac_file commands" >&6;}
27804 ;;
27805  esac
27806
27807
27808  case $ac_file$ac_mode in
27809    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
27810  # Older Autoconf quotes --file arguments for eval, but not when files
27811  # are listed without --file.  Let's play safe and only enable the eval
27812  # if we detect the quoting.
27813  # TODO: see whether this extra hack can be removed once we start
27814  # requiring Autoconf 2.70 or later.
27815  case $CONFIG_FILES in #(
27816  *\'*) :
27817    eval set x "$CONFIG_FILES" ;; #(
27818  *) :
27819    set x $CONFIG_FILES ;; #(
27820  *) :
27821     ;;
27822esac
27823  shift
27824  # Used to flag and report bootstrapping failures.
27825  am_rc=0
27826  for am_mf
27827  do
27828    # Strip MF so we end up with the name of the file.
27829    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
27830    # Check whether this is an Automake generated Makefile which includes
27831    # dependency-tracking related rules and includes.
27832    # Grep'ing the whole file directly is not great: AIX grep has a line
27833    # limit of 2048, but all sed's we know have understand at least 4000.
27834    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
27835      || continue
27836    am_dirpart=`$as_dirname -- "$am_mf" ||
27837$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27838	 X"$am_mf" : 'X\(//\)[^/]' \| \
27839	 X"$am_mf" : 'X\(//\)$' \| \
27840	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
27841$as_echo X"$am_mf" |
27842    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27843	    s//\1/
27844	    q
27845	  }
27846	  /^X\(\/\/\)[^/].*/{
27847	    s//\1/
27848	    q
27849	  }
27850	  /^X\(\/\/\)$/{
27851	    s//\1/
27852	    q
27853	  }
27854	  /^X\(\/\).*/{
27855	    s//\1/
27856	    q
27857	  }
27858	  s/.*/./; q'`
27859    am_filepart=`$as_basename -- "$am_mf" ||
27860$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
27861	 X"$am_mf" : 'X\(//\)$' \| \
27862	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
27863$as_echo X/"$am_mf" |
27864    sed '/^.*\/\([^/][^/]*\)\/*$/{
27865	    s//\1/
27866	    q
27867	  }
27868	  /^X\/\(\/\/\)$/{
27869	    s//\1/
27870	    q
27871	  }
27872	  /^X\/\(\/\).*/{
27873	    s//\1/
27874	    q
27875	  }
27876	  s/.*/./; q'`
27877    { echo "$as_me:$LINENO: cd "$am_dirpart" \
27878      && sed -e '/# am--include-marker/d' "$am_filepart" \
27879        | $MAKE -f - am--depfiles" >&5
27880   (cd "$am_dirpart" \
27881      && sed -e '/# am--include-marker/d' "$am_filepart" \
27882        | $MAKE -f - am--depfiles) >&5 2>&5
27883   ac_status=$?
27884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27885   (exit $ac_status); } || am_rc=$?
27886  done
27887  if test $am_rc -ne 0; then
27888    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27889$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27890as_fn_error $? "Something went wrong bootstrapping makefile fragments
27891    for automatic dependency tracking.  If GNU make was not used, consider
27892    re-running the configure script with MAKE=\"gmake\" (or whatever is
27893    necessary).  You can also try re-running configure with the
27894    '--disable-dependency-tracking' option to at least be able to build
27895    the package (albeit without support for automatic dependency tracking).
27896See \`config.log' for more details" "$LINENO" 5; }
27897  fi
27898  { am_dirpart=; unset am_dirpart;}
27899  { am_filepart=; unset am_filepart;}
27900  { am_mf=; unset am_mf;}
27901  { am_rc=; unset am_rc;}
27902  rm -f conftest-deps.mk
27903}
27904 ;;
27905    "libtool":C)
27906
27907    # See if we are running on zsh, and set the options that allow our
27908    # commands through without removal of \ escapes.
27909    if test -n "${ZSH_VERSION+set}"; then
27910      setopt NO_GLOB_SUBST
27911    fi
27912
27913    cfgfile=${ofile}T
27914    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27915    $RM "$cfgfile"
27916
27917    cat <<_LT_EOF >> "$cfgfile"
27918#! $SHELL
27919# Generated automatically by $as_me ($PACKAGE) $VERSION
27920# NOTE: Changes made to this file will be lost: look at ltmain.sh.
27921
27922# Provide generalized library-building support services.
27923# Written by Gordon Matzigkeit, 1996
27924
27925# Copyright (C) 2014 Free Software Foundation, Inc.
27926# This is free software; see the source for copying conditions.  There is NO
27927# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
27928
27929# GNU Libtool is free software; you can redistribute it and/or modify
27930# it under the terms of the GNU General Public License as published by
27931# the Free Software Foundation; either version 2 of of the License, or
27932# (at your option) any later version.
27933#
27934# As a special exception to the GNU General Public License, if you
27935# distribute this file as part of a program or library that is built
27936# using GNU Libtool, you may include this file under the  same
27937# distribution terms that you use for the rest of that program.
27938#
27939# GNU Libtool is distributed in the hope that it will be useful, but
27940# WITHOUT ANY WARRANTY; without even the implied warranty of
27941# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
27942# GNU General Public License for more details.
27943#
27944# You should have received a copy of the GNU General Public License
27945# along with this program.  If not, see <http://www.gnu.org/licenses/>.
27946
27947
27948# The names of the tagged configurations supported by this script.
27949available_tags='CXX '
27950
27951# Configured defaults for sys_lib_dlsearch_path munging.
27952: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
27953
27954# ### BEGIN LIBTOOL CONFIG
27955
27956# Whether or not to build static libraries.
27957build_old_libs=$enable_static
27958
27959# Assembler program.
27960AS=$lt_AS
27961
27962# DLL creation program.
27963DLLTOOL=$lt_DLLTOOL
27964
27965# Object dumper program.
27966OBJDUMP=$lt_OBJDUMP
27967
27968# Which release of libtool.m4 was used?
27969macro_version=$macro_version
27970macro_revision=$macro_revision
27971
27972# Whether or not to build shared libraries.
27973build_libtool_libs=$enable_shared
27974
27975# What type of objects to build.
27976pic_mode=$pic_mode
27977
27978# Whether or not to optimize for fast installation.
27979fast_install=$enable_fast_install
27980
27981# Shared archive member basename,for filename based shared library versioning on AIX.
27982shared_archive_member_spec=$shared_archive_member_spec
27983
27984# Shell to use when invoking shell scripts.
27985SHELL=$lt_SHELL
27986
27987# An echo program that protects backslashes.
27988ECHO=$lt_ECHO
27989
27990# The PATH separator for the build system.
27991PATH_SEPARATOR=$lt_PATH_SEPARATOR
27992
27993# The host system.
27994host_alias=$host_alias
27995host=$host
27996host_os=$host_os
27997
27998# The build system.
27999build_alias=$build_alias
28000build=$build
28001build_os=$build_os
28002
28003# A sed program that does not truncate output.
28004SED=$lt_SED
28005
28006# Sed that helps us avoid accidentally triggering echo(1) options like -n.
28007Xsed="\$SED -e 1s/^X//"
28008
28009# A grep program that handles long lines.
28010GREP=$lt_GREP
28011
28012# An ERE matcher.
28013EGREP=$lt_EGREP
28014
28015# A literal string matcher.
28016FGREP=$lt_FGREP
28017
28018# A BSD- or MS-compatible name lister.
28019NM=$lt_NM
28020
28021# Whether we need soft or hard links.
28022LN_S=$lt_LN_S
28023
28024# What is the maximum length of a command?
28025max_cmd_len=$max_cmd_len
28026
28027# Object file suffix (normally "o").
28028objext=$ac_objext
28029
28030# Executable file suffix (normally "").
28031exeext=$exeext
28032
28033# whether the shell understands "unset".
28034lt_unset=$lt_unset
28035
28036# turn spaces into newlines.
28037SP2NL=$lt_lt_SP2NL
28038
28039# turn newlines into spaces.
28040NL2SP=$lt_lt_NL2SP
28041
28042# convert \$build file names to \$host format.
28043to_host_file_cmd=$lt_cv_to_host_file_cmd
28044
28045# convert \$build files to toolchain format.
28046to_tool_file_cmd=$lt_cv_to_tool_file_cmd
28047
28048# Method to check whether dependent libraries are shared objects.
28049deplibs_check_method=$lt_deplibs_check_method
28050
28051# Command to use when deplibs_check_method = "file_magic".
28052file_magic_cmd=$lt_file_magic_cmd
28053
28054# How to find potential files when deplibs_check_method = "file_magic".
28055file_magic_glob=$lt_file_magic_glob
28056
28057# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
28058want_nocaseglob=$lt_want_nocaseglob
28059
28060# Command to associate shared and link libraries.
28061sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
28062
28063# The archiver.
28064AR=$lt_AR
28065
28066# Flags to create an archive.
28067AR_FLAGS=$lt_AR_FLAGS
28068
28069# How to feed a file listing to the archiver.
28070archiver_list_spec=$lt_archiver_list_spec
28071
28072# A symbol stripping program.
28073STRIP=$lt_STRIP
28074
28075# Commands used to install an old-style archive.
28076RANLIB=$lt_RANLIB
28077old_postinstall_cmds=$lt_old_postinstall_cmds
28078old_postuninstall_cmds=$lt_old_postuninstall_cmds
28079
28080# Whether to use a lock for old archive extraction.
28081lock_old_archive_extraction=$lock_old_archive_extraction
28082
28083# A C compiler.
28084LTCC=$lt_CC
28085
28086# LTCC compiler flags.
28087LTCFLAGS=$lt_CFLAGS
28088
28089# Take the output of nm and produce a listing of raw symbols and C names.
28090global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28091
28092# Transform the output of nm in a proper C declaration.
28093global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28094
28095# Transform the output of nm into a list of symbols to manually relocate.
28096global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
28097
28098# Transform the output of nm in a C name address pair.
28099global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28100
28101# Transform the output of nm in a C name address pair when lib prefix is needed.
28102global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28103
28104# The name lister interface.
28105nm_interface=$lt_lt_cv_nm_interface
28106
28107# Specify filename containing input files for \$NM.
28108nm_file_list_spec=$lt_nm_file_list_spec
28109
28110# The root where to search for dependent libraries,and where our libraries should be installed.
28111lt_sysroot=$lt_sysroot
28112
28113# Command to truncate a binary pipe.
28114lt_truncate_bin=$lt_lt_cv_truncate_bin
28115
28116# The name of the directory that contains temporary libtool files.
28117objdir=$objdir
28118
28119# Used to examine libraries when file_magic_cmd begins with "file".
28120MAGIC_CMD=$MAGIC_CMD
28121
28122# Must we lock files when doing compilation?
28123need_locks=$lt_need_locks
28124
28125# Manifest tool.
28126MANIFEST_TOOL=$lt_MANIFEST_TOOL
28127
28128# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28129DSYMUTIL=$lt_DSYMUTIL
28130
28131# Tool to change global to local symbols on Mac OS X.
28132NMEDIT=$lt_NMEDIT
28133
28134# Tool to manipulate fat objects and archives on Mac OS X.
28135LIPO=$lt_LIPO
28136
28137# ldd/readelf like tool for Mach-O binaries on Mac OS X.
28138OTOOL=$lt_OTOOL
28139
28140# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28141OTOOL64=$lt_OTOOL64
28142
28143# Old archive suffix (normally "a").
28144libext=$libext
28145
28146# Shared library suffix (normally ".so").
28147shrext_cmds=$lt_shrext_cmds
28148
28149# The commands to extract the exported symbol list from a shared archive.
28150extract_expsyms_cmds=$lt_extract_expsyms_cmds
28151
28152# Variables whose values should be saved in libtool wrapper scripts and
28153# restored at link time.
28154variables_saved_for_relink=$lt_variables_saved_for_relink
28155
28156# Do we need the "lib" prefix for modules?
28157need_lib_prefix=$need_lib_prefix
28158
28159# Do we need a version for libraries?
28160need_version=$need_version
28161
28162# Library versioning type.
28163version_type=$version_type
28164
28165# Shared library runtime path variable.
28166runpath_var=$runpath_var
28167
28168# Shared library path variable.
28169shlibpath_var=$shlibpath_var
28170
28171# Is shlibpath searched before the hard-coded library search path?
28172shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28173
28174# Format of library name prefix.
28175libname_spec=$lt_libname_spec
28176
28177# List of archive names.  First name is the real one, the rest are links.
28178# The last name is the one that the linker finds with -lNAME
28179library_names_spec=$lt_library_names_spec
28180
28181# The coded name of the library, if different from the real name.
28182soname_spec=$lt_soname_spec
28183
28184# Permission mode override for installation of shared libraries.
28185install_override_mode=$lt_install_override_mode
28186
28187# Command to use after installation of a shared archive.
28188postinstall_cmds=$lt_postinstall_cmds
28189
28190# Command to use after uninstallation of a shared archive.
28191postuninstall_cmds=$lt_postuninstall_cmds
28192
28193# Commands used to finish a libtool library installation in a directory.
28194finish_cmds=$lt_finish_cmds
28195
28196# As "finish_cmds", except a single script fragment to be evaled but
28197# not shown.
28198finish_eval=$lt_finish_eval
28199
28200# Whether we should hardcode library paths into libraries.
28201hardcode_into_libs=$hardcode_into_libs
28202
28203# Compile-time system search path for libraries.
28204sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28205
28206# Detected run-time system search path for libraries.
28207sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
28208
28209# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
28210configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
28211
28212# Whether dlopen is supported.
28213dlopen_support=$enable_dlopen
28214
28215# Whether dlopen of programs is supported.
28216dlopen_self=$enable_dlopen_self
28217
28218# Whether dlopen of statically linked programs is supported.
28219dlopen_self_static=$enable_dlopen_self_static
28220
28221# Commands to strip libraries.
28222old_striplib=$lt_old_striplib
28223striplib=$lt_striplib
28224
28225
28226# The linker used to build libraries.
28227LD=$lt_LD
28228
28229# How to create reloadable object files.
28230reload_flag=$lt_reload_flag
28231reload_cmds=$lt_reload_cmds
28232
28233# Commands used to build an old-style archive.
28234old_archive_cmds=$lt_old_archive_cmds
28235
28236# A language specific compiler.
28237CC=$lt_compiler
28238
28239# Is the compiler the GNU compiler?
28240with_gcc=$GCC
28241
28242# Compiler flag to turn off builtin functions.
28243no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28244
28245# Additional compiler flags for building library objects.
28246pic_flag=$lt_lt_prog_compiler_pic
28247
28248# How to pass a linker flag through the compiler.
28249wl=$lt_lt_prog_compiler_wl
28250
28251# Compiler flag to prevent dynamic linking.
28252link_static_flag=$lt_lt_prog_compiler_static
28253
28254# Does compiler simultaneously support -c and -o options?
28255compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28256
28257# Whether or not to add -lc for building shared libraries.
28258build_libtool_need_lc=$archive_cmds_need_lc
28259
28260# Whether or not to disallow shared libs when runtime libs are static.
28261allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28262
28263# Compiler flag to allow reflexive dlopens.
28264export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28265
28266# Compiler flag to generate shared objects directly from archives.
28267whole_archive_flag_spec=$lt_whole_archive_flag_spec
28268
28269# Whether the compiler copes with passing no objects directly.
28270compiler_needs_object=$lt_compiler_needs_object
28271
28272# Create an old-style archive from a shared archive.
28273old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28274
28275# Create a temporary old-style archive to link instead of a shared archive.
28276old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28277
28278# Commands used to build a shared archive.
28279archive_cmds=$lt_archive_cmds
28280archive_expsym_cmds=$lt_archive_expsym_cmds
28281
28282# Commands used to build a loadable module if different from building
28283# a shared archive.
28284module_cmds=$lt_module_cmds
28285module_expsym_cmds=$lt_module_expsym_cmds
28286
28287# Whether we are building with GNU ld or not.
28288with_gnu_ld=$lt_with_gnu_ld
28289
28290# Flag that allows shared libraries with undefined symbols to be built.
28291allow_undefined_flag=$lt_allow_undefined_flag
28292
28293# Flag that enforces no undefined symbols.
28294no_undefined_flag=$lt_no_undefined_flag
28295
28296# Flag to hardcode \$libdir into a binary during linking.
28297# This must work even if \$libdir does not exist
28298hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28299
28300# Whether we need a single "-rpath" flag with a separated argument.
28301hardcode_libdir_separator=$lt_hardcode_libdir_separator
28302
28303# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28304# DIR into the resulting binary.
28305hardcode_direct=$hardcode_direct
28306
28307# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28308# DIR into the resulting binary and the resulting library dependency is
28309# "absolute",i.e impossible to change by setting \$shlibpath_var if the
28310# library is relocated.
28311hardcode_direct_absolute=$hardcode_direct_absolute
28312
28313# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28314# into the resulting binary.
28315hardcode_minus_L=$hardcode_minus_L
28316
28317# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28318# into the resulting binary.
28319hardcode_shlibpath_var=$hardcode_shlibpath_var
28320
28321# Set to "yes" if building a shared library automatically hardcodes DIR
28322# into the library and all subsequent libraries and executables linked
28323# against it.
28324hardcode_automatic=$hardcode_automatic
28325
28326# Set to yes if linker adds runtime paths of dependent libraries
28327# to runtime path list.
28328inherit_rpath=$inherit_rpath
28329
28330# Whether libtool must link a program against all its dependency libraries.
28331link_all_deplibs=$link_all_deplibs
28332
28333# Set to "yes" if exported symbols are required.
28334always_export_symbols=$always_export_symbols
28335
28336# The commands to list exported symbols.
28337export_symbols_cmds=$lt_export_symbols_cmds
28338
28339# Symbols that should not be listed in the preloaded symbols.
28340exclude_expsyms=$lt_exclude_expsyms
28341
28342# Symbols that must always be exported.
28343include_expsyms=$lt_include_expsyms
28344
28345# Commands necessary for linking programs (against libraries) with templates.
28346prelink_cmds=$lt_prelink_cmds
28347
28348# Commands necessary for finishing linking programs.
28349postlink_cmds=$lt_postlink_cmds
28350
28351# Specify filename containing input files.
28352file_list_spec=$lt_file_list_spec
28353
28354# How to hardcode a shared library path into an executable.
28355hardcode_action=$hardcode_action
28356
28357# The directories searched by this compiler when creating a shared library.
28358compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28359
28360# Dependencies to place before and after the objects being linked to
28361# create a shared library.
28362predep_objects=$lt_predep_objects
28363postdep_objects=$lt_postdep_objects
28364predeps=$lt_predeps
28365postdeps=$lt_postdeps
28366
28367# The library search path used internally by the compiler when linking
28368# a shared library.
28369compiler_lib_search_path=$lt_compiler_lib_search_path
28370
28371# ### END LIBTOOL CONFIG
28372
28373_LT_EOF
28374
28375    cat <<'_LT_EOF' >> "$cfgfile"
28376
28377# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
28378
28379# func_munge_path_list VARIABLE PATH
28380# -----------------------------------
28381# VARIABLE is name of variable containing _space_ separated list of
28382# directories to be munged by the contents of PATH, which is string
28383# having a format:
28384# "DIR[:DIR]:"
28385#       string "DIR[ DIR]" will be prepended to VARIABLE
28386# ":DIR[:DIR]"
28387#       string "DIR[ DIR]" will be appended to VARIABLE
28388# "DIRP[:DIRP]::[DIRA:]DIRA"
28389#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
28390#       "DIRA[ DIRA]" will be appended to VARIABLE
28391# "DIR[:DIR]"
28392#       VARIABLE will be replaced by "DIR[ DIR]"
28393func_munge_path_list ()
28394{
28395    case x$2 in
28396    x)
28397        ;;
28398    *:)
28399        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
28400        ;;
28401    x:*)
28402        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
28403        ;;
28404    *::*)
28405        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
28406        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
28407        ;;
28408    *)
28409        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
28410        ;;
28411    esac
28412}
28413
28414
28415# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
28416func_cc_basename ()
28417{
28418    for cc_temp in $*""; do
28419      case $cc_temp in
28420        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
28421        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
28422        \-*) ;;
28423        *) break;;
28424      esac
28425    done
28426    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
28427}
28428
28429
28430# ### END FUNCTIONS SHARED WITH CONFIGURE
28431
28432_LT_EOF
28433
28434  case $host_os in
28435  aix3*)
28436    cat <<\_LT_EOF >> "$cfgfile"
28437# AIX sometimes has problems with the GCC collect2 program.  For some
28438# reason, if we set the COLLECT_NAMES environment variable, the problems
28439# vanish in a puff of smoke.
28440if test set != "${COLLECT_NAMES+set}"; then
28441  COLLECT_NAMES=
28442  export COLLECT_NAMES
28443fi
28444_LT_EOF
28445    ;;
28446  esac
28447
28448
28449ltmain=$ac_aux_dir/ltmain.sh
28450
28451
28452  # We use sed instead of cat because bash on DJGPP gets confused if
28453  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
28454  # text mode, it properly converts lines to CR/LF.  This bash problem
28455  # is reportedly fixed, but why not run on old versions too?
28456  sed '$q' "$ltmain" >> "$cfgfile" \
28457     || (rm -f "$cfgfile"; exit 1)
28458
28459   mv -f "$cfgfile" "$ofile" ||
28460    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28461  chmod +x "$ofile"
28462
28463
28464    cat <<_LT_EOF >> "$ofile"
28465
28466# ### BEGIN LIBTOOL TAG CONFIG: CXX
28467
28468# The linker used to build libraries.
28469LD=$lt_LD_CXX
28470
28471# How to create reloadable object files.
28472reload_flag=$lt_reload_flag_CXX
28473reload_cmds=$lt_reload_cmds_CXX
28474
28475# Commands used to build an old-style archive.
28476old_archive_cmds=$lt_old_archive_cmds_CXX
28477
28478# A language specific compiler.
28479CC=$lt_compiler_CXX
28480
28481# Is the compiler the GNU compiler?
28482with_gcc=$GCC_CXX
28483
28484# Compiler flag to turn off builtin functions.
28485no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
28486
28487# Additional compiler flags for building library objects.
28488pic_flag=$lt_lt_prog_compiler_pic_CXX
28489
28490# How to pass a linker flag through the compiler.
28491wl=$lt_lt_prog_compiler_wl_CXX
28492
28493# Compiler flag to prevent dynamic linking.
28494link_static_flag=$lt_lt_prog_compiler_static_CXX
28495
28496# Does compiler simultaneously support -c and -o options?
28497compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
28498
28499# Whether or not to add -lc for building shared libraries.
28500build_libtool_need_lc=$archive_cmds_need_lc_CXX
28501
28502# Whether or not to disallow shared libs when runtime libs are static.
28503allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
28504
28505# Compiler flag to allow reflexive dlopens.
28506export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
28507
28508# Compiler flag to generate shared objects directly from archives.
28509whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
28510
28511# Whether the compiler copes with passing no objects directly.
28512compiler_needs_object=$lt_compiler_needs_object_CXX
28513
28514# Create an old-style archive from a shared archive.
28515old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
28516
28517# Create a temporary old-style archive to link instead of a shared archive.
28518old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
28519
28520# Commands used to build a shared archive.
28521archive_cmds=$lt_archive_cmds_CXX
28522archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
28523
28524# Commands used to build a loadable module if different from building
28525# a shared archive.
28526module_cmds=$lt_module_cmds_CXX
28527module_expsym_cmds=$lt_module_expsym_cmds_CXX
28528
28529# Whether we are building with GNU ld or not.
28530with_gnu_ld=$lt_with_gnu_ld_CXX
28531
28532# Flag that allows shared libraries with undefined symbols to be built.
28533allow_undefined_flag=$lt_allow_undefined_flag_CXX
28534
28535# Flag that enforces no undefined symbols.
28536no_undefined_flag=$lt_no_undefined_flag_CXX
28537
28538# Flag to hardcode \$libdir into a binary during linking.
28539# This must work even if \$libdir does not exist
28540hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
28541
28542# Whether we need a single "-rpath" flag with a separated argument.
28543hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
28544
28545# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28546# DIR into the resulting binary.
28547hardcode_direct=$hardcode_direct_CXX
28548
28549# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28550# DIR into the resulting binary and the resulting library dependency is
28551# "absolute",i.e impossible to change by setting \$shlibpath_var if the
28552# library is relocated.
28553hardcode_direct_absolute=$hardcode_direct_absolute_CXX
28554
28555# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28556# into the resulting binary.
28557hardcode_minus_L=$hardcode_minus_L_CXX
28558
28559# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28560# into the resulting binary.
28561hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
28562
28563# Set to "yes" if building a shared library automatically hardcodes DIR
28564# into the library and all subsequent libraries and executables linked
28565# against it.
28566hardcode_automatic=$hardcode_automatic_CXX
28567
28568# Set to yes if linker adds runtime paths of dependent libraries
28569# to runtime path list.
28570inherit_rpath=$inherit_rpath_CXX
28571
28572# Whether libtool must link a program against all its dependency libraries.
28573link_all_deplibs=$link_all_deplibs_CXX
28574
28575# Set to "yes" if exported symbols are required.
28576always_export_symbols=$always_export_symbols_CXX
28577
28578# The commands to list exported symbols.
28579export_symbols_cmds=$lt_export_symbols_cmds_CXX
28580
28581# Symbols that should not be listed in the preloaded symbols.
28582exclude_expsyms=$lt_exclude_expsyms_CXX
28583
28584# Symbols that must always be exported.
28585include_expsyms=$lt_include_expsyms_CXX
28586
28587# Commands necessary for linking programs (against libraries) with templates.
28588prelink_cmds=$lt_prelink_cmds_CXX
28589
28590# Commands necessary for finishing linking programs.
28591postlink_cmds=$lt_postlink_cmds_CXX
28592
28593# Specify filename containing input files.
28594file_list_spec=$lt_file_list_spec_CXX
28595
28596# How to hardcode a shared library path into an executable.
28597hardcode_action=$hardcode_action_CXX
28598
28599# The directories searched by this compiler when creating a shared library.
28600compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
28601
28602# Dependencies to place before and after the objects being linked to
28603# create a shared library.
28604predep_objects=$lt_predep_objects_CXX
28605postdep_objects=$lt_postdep_objects_CXX
28606predeps=$lt_predeps_CXX
28607postdeps=$lt_postdeps_CXX
28608
28609# The library search path used internally by the compiler when linking
28610# a shared library.
28611compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
28612
28613# ### END LIBTOOL TAG CONFIG: CXX
28614_LT_EOF
28615
28616 ;;
28617    "default-1":C)
28618    for ac_file in $CONFIG_FILES; do
28619      # Support "outfile[:infile[:infile...]]"
28620      case "$ac_file" in
28621        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
28622      esac
28623      # PO directories have a Makefile.in generated from Makefile.in.in.
28624      case "$ac_file" in */Makefile.in)
28625        # Adjust a relative srcdir.
28626        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
28627        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
28628        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
28629        # In autoconf-2.13 it is called $ac_given_srcdir.
28630        # In autoconf-2.50 it is called $srcdir.
28631        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
28632        case "$ac_given_srcdir" in
28633          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
28634          /*) top_srcdir="$ac_given_srcdir" ;;
28635          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
28636        esac
28637        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
28638          rm -f "$ac_dir/POTFILES"
28639          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
28640          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
28641          POMAKEFILEDEPS="POTFILES.in"
28642          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
28643          # on $ac_dir but don't depend on user-specified configuration
28644          # parameters.
28645          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
28646            # The LINGUAS file contains the set of available languages.
28647            if test -n "$OBSOLETE_ALL_LINGUAS"; then
28648              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
28649            fi
28650            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
28651            # Hide the ALL_LINGUAS assigment from automake.
28652            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
28653            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
28654          else
28655            # The set of available languages was given in configure.in.
28656            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
28657          fi
28658          # Compute POFILES
28659          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
28660          # Compute UPDATEPOFILES
28661          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
28662          # Compute DUMMYPOFILES
28663          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
28664          # Compute GMOFILES
28665          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
28666          case "$ac_given_srcdir" in
28667            .) srcdirpre= ;;
28668            *) srcdirpre='$(srcdir)/' ;;
28669          esac
28670          POFILES=
28671          UPDATEPOFILES=
28672          DUMMYPOFILES=
28673          GMOFILES=
28674          for lang in $ALL_LINGUAS; do
28675            POFILES="$POFILES $srcdirpre$lang.po"
28676            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
28677            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
28678            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
28679          done
28680          # CATALOGS depends on both $ac_dir and the user's LINGUAS
28681          # environment variable.
28682          INST_LINGUAS=
28683          if test -n "$ALL_LINGUAS"; then
28684            for presentlang in $ALL_LINGUAS; do
28685              useit=no
28686              if test "%UNSET%" != "$LINGUAS"; then
28687                desiredlanguages="$LINGUAS"
28688              else
28689                desiredlanguages="$ALL_LINGUAS"
28690              fi
28691              for desiredlang in $desiredlanguages; do
28692                # Use the presentlang catalog if desiredlang is
28693                #   a. equal to presentlang, or
28694                #   b. a variant of presentlang (because in this case,
28695                #      presentlang can be used as a fallback for messages
28696                #      which are not translated in the desiredlang catalog).
28697                case "$desiredlang" in
28698                  "$presentlang"*) useit=yes;;
28699                esac
28700              done
28701              if test $useit = yes; then
28702                INST_LINGUAS="$INST_LINGUAS $presentlang"
28703              fi
28704            done
28705          fi
28706          CATALOGS=
28707          if test -n "$INST_LINGUAS"; then
28708            for lang in $INST_LINGUAS; do
28709              CATALOGS="$CATALOGS $lang.gmo"
28710            done
28711          fi
28712          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
28713          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"
28714          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
28715            if test -f "$f"; then
28716              case "$f" in
28717                *.orig | *.bak | *~) ;;
28718                *) cat "$f" >> "$ac_dir/Makefile" ;;
28719              esac
28720            fi
28721          done
28722        fi
28723        ;;
28724      esac
28725    done ;;
28726    "default-2":C)
28727    for ac_file in $CONFIG_FILES; do
28728      # Support "outfile[:infile[:infile...]]"
28729      case "$ac_file" in
28730        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
28731      esac
28732      # PO directories have a Makefile.in generated from Makefile.in.in.
28733      case "$ac_file" in */Makefile.in)
28734        # Adjust a relative srcdir.
28735        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
28736        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
28737        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
28738        # In autoconf-2.13 it is called $ac_given_srcdir.
28739        # In autoconf-2.50 it is called $srcdir.
28740        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
28741        case "$ac_given_srcdir" in
28742          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
28743          /*) top_srcdir="$ac_given_srcdir" ;;
28744          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
28745        esac
28746        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
28747          rm -f "$ac_dir/POTFILES"
28748          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
28749          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
28750          POMAKEFILEDEPS="POTFILES.in"
28751          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
28752          # on $ac_dir but don't depend on user-specified configuration
28753          # parameters.
28754          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
28755            # The LINGUAS file contains the set of available languages.
28756            if test -n "$OBSOLETE_ALL_LINGUAS"; then
28757              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
28758            fi
28759            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
28760            # Hide the ALL_LINGUAS assigment from automake.
28761            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
28762            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
28763          else
28764            # The set of available languages was given in configure.in.
28765            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
28766          fi
28767          # Compute POFILES
28768          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
28769          # Compute UPDATEPOFILES
28770          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
28771          # Compute DUMMYPOFILES
28772          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
28773          # Compute GMOFILES
28774          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
28775          case "$ac_given_srcdir" in
28776            .) srcdirpre= ;;
28777            *) srcdirpre='$(srcdir)/' ;;
28778          esac
28779          POFILES=
28780          UPDATEPOFILES=
28781          DUMMYPOFILES=
28782          GMOFILES=
28783          for lang in $ALL_LINGUAS; do
28784            POFILES="$POFILES $srcdirpre$lang.po"
28785            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
28786            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
28787            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
28788          done
28789          # CATALOGS depends on both $ac_dir and the user's LINGUAS
28790          # environment variable.
28791          INST_LINGUAS=
28792          if test -n "$ALL_LINGUAS"; then
28793            for presentlang in $ALL_LINGUAS; do
28794              useit=no
28795              if test "%UNSET%" != "$LINGUAS"; then
28796                desiredlanguages="$LINGUAS"
28797              else
28798                desiredlanguages="$ALL_LINGUAS"
28799              fi
28800              for desiredlang in $desiredlanguages; do
28801                # Use the presentlang catalog if desiredlang is
28802                #   a. equal to presentlang, or
28803                #   b. a variant of presentlang (because in this case,
28804                #      presentlang can be used as a fallback for messages
28805                #      which are not translated in the desiredlang catalog).
28806                case "$desiredlang" in
28807                  "$presentlang"*) useit=yes;;
28808                esac
28809              done
28810              if test $useit = yes; then
28811                INST_LINGUAS="$INST_LINGUAS $presentlang"
28812              fi
28813            done
28814          fi
28815          CATALOGS=
28816          if test -n "$INST_LINGUAS"; then
28817            for lang in $INST_LINGUAS; do
28818              CATALOGS="$CATALOGS $lang.gmo"
28819            done
28820          fi
28821          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
28822          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"
28823          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
28824            if test -f "$f"; then
28825              case "$f" in
28826                *.orig | *.bak | *~) ;;
28827                *) cat "$f" >> "$ac_dir/Makefile" ;;
28828              esac
28829            fi
28830          done
28831        fi
28832        ;;
28833      esac
28834    done ;;
28835    "Makefile":F)
28836case "$ac_file" in #(
28837*.sh)
28838	if test -f "$ac_file"; then
28839		chmod +x "$ac_file"
28840	fi
28841	;;
28842esac
28843 ;;
28844    "gphoto2-config":F)
28845case "$ac_file" in #(
28846*.sh)
28847	if test -f "$ac_file"; then
28848		chmod +x "$ac_file"
28849	fi
28850	;;
28851esac
28852 ;;
28853    "camlibs/Makefile":F)
28854case "$ac_file" in #(
28855*.sh)
28856	if test -f "$ac_file"; then
28857		chmod +x "$ac_file"
28858	fi
28859	;;
28860esac
28861 ;;
28862    "camlibs/canon/doc/Makefile":F)
28863case "$ac_file" in #(
28864*.sh)
28865	if test -f "$ac_file"; then
28866		chmod +x "$ac_file"
28867	fi
28868	;;
28869esac
28870 ;;
28871    "camlibs/konica/localization/Makefile":F)
28872case "$ac_file" in #(
28873*.sh)
28874	if test -f "$ac_file"; then
28875		chmod +x "$ac_file"
28876	fi
28877	;;
28878esac
28879 ;;
28880    "gphoto-m4/Makefile":F)
28881case "$ac_file" in #(
28882*.sh)
28883	if test -f "$ac_file"; then
28884		chmod +x "$ac_file"
28885	fi
28886	;;
28887esac
28888 ;;
28889    "libgphoto2/Makefile":F)
28890case "$ac_file" in #(
28891*.sh)
28892	if test -f "$ac_file"; then
28893		chmod +x "$ac_file"
28894	fi
28895	;;
28896esac
28897 ;;
28898    "libgphoto2.pc":F)
28899case "$ac_file" in #(
28900*.sh)
28901	if test -f "$ac_file"; then
28902		chmod +x "$ac_file"
28903	fi
28904	;;
28905esac
28906 ;;
28907    "libgphoto2-uninstalled.pc":F)
28908case "$ac_file" in #(
28909*.sh)
28910	if test -f "$ac_file"; then
28911		chmod +x "$ac_file"
28912	fi
28913	;;
28914esac
28915 ;;
28916    "examples/Makefile":F)
28917case "$ac_file" in #(
28918*.sh)
28919	if test -f "$ac_file"; then
28920		chmod +x "$ac_file"
28921	fi
28922	;;
28923esac
28924 ;;
28925    "tests/Makefile":F)
28926case "$ac_file" in #(
28927*.sh)
28928	if test -f "$ac_file"; then
28929		chmod +x "$ac_file"
28930	fi
28931	;;
28932esac
28933 ;;
28934    "tests/ddb/Makefile":F)
28935case "$ac_file" in #(
28936*.sh)
28937	if test -f "$ac_file"; then
28938		chmod +x "$ac_file"
28939	fi
28940	;;
28941esac
28942 ;;
28943    "tests/ddb/check-ddb.sh":F)
28944case "$ac_file" in #(
28945*.sh)
28946	if test -f "$ac_file"; then
28947		chmod +x "$ac_file"
28948	fi
28949	;;
28950esac
28951 ;;
28952    "packaging/Makefile":F)
28953case "$ac_file" in #(
28954*.sh)
28955	if test -f "$ac_file"; then
28956		chmod +x "$ac_file"
28957	fi
28958	;;
28959esac
28960 ;;
28961    "packaging/linux-hotplug/Makefile":F)
28962case "$ac_file" in #(
28963*.sh)
28964	if test -f "$ac_file"; then
28965		chmod +x "$ac_file"
28966	fi
28967	;;
28968esac
28969 ;;
28970    "packaging/generic/Makefile":F)
28971case "$ac_file" in #(
28972*.sh)
28973	if test -f "$ac_file"; then
28974		chmod +x "$ac_file"
28975	fi
28976	;;
28977esac
28978 ;;
28979    "packaging/rpm/Makefile":F)
28980case "$ac_file" in #(
28981*.sh)
28982	if test -f "$ac_file"; then
28983		chmod +x "$ac_file"
28984	fi
28985	;;
28986esac
28987 ;;
28988    "packaging/rpm/package.spec":F)
28989case "$ac_file" in #(
28990*.sh)
28991	if test -f "$ac_file"; then
28992		chmod +x "$ac_file"
28993	fi
28994	;;
28995esac
28996 ;;
28997    "po/Makefile.in":F)
28998case "$ac_file" in #(
28999*.sh)
29000	if test -f "$ac_file"; then
29001		chmod +x "$ac_file"
29002	fi
29003	;;
29004esac
29005 ;;
29006    "doc/Makefile":F)
29007case "$ac_file" in #(
29008*.sh)
29009	if test -f "$ac_file"; then
29010		chmod +x "$ac_file"
29011	fi
29012	;;
29013esac
29014 ;;
29015    "doc/Doxyfile":F)
29016case "$ac_file" in #(
29017*.sh)
29018	if test -f "$ac_file"; then
29019		chmod +x "$ac_file"
29020	fi
29021	;;
29022esac
29023 ;;
29024    "doc/Doxyfile-internals":F)
29025case "$ac_file" in #(
29026*.sh)
29027	if test -f "$ac_file"; then
29028		chmod +x "$ac_file"
29029	fi
29030	;;
29031esac
29032 ;;
29033    "doc/api/Makefile":F)
29034case "$ac_file" in #(
29035*.sh)
29036	if test -f "$ac_file"; then
29037		chmod +x "$ac_file"
29038	fi
29039	;;
29040esac
29041 ;;
29042
29043  esac
29044done # for ac_tag
29045
29046
29047as_fn_exit 0
29048_ACEOF
29049ac_clean_files=$ac_clean_files_save
29050
29051test $ac_write_fail = 0 ||
29052  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
29053
29054
29055# configure is writing to config.log, and then calls config.status.
29056# config.status does its own redirection, appending to config.log.
29057# Unfortunately, on DOS this fails, as config.log is still kept open
29058# by configure, so config.status won't be able to write to it; its
29059# output is simply discarded.  So we exec the FD to /dev/null,
29060# effectively closing config.log, so it can be properly (re)opened and
29061# appended to by config.status.  When coming back to configure, we
29062# need to make the FD available again.
29063if test "$no_create" != yes; then
29064  ac_cs_success=:
29065  ac_config_status_args=
29066  test "$silent" = yes &&
29067    ac_config_status_args="$ac_config_status_args --quiet"
29068  exec 5>/dev/null
29069  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29070  exec 5>>config.log
29071  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29072  # would make configure fail if this is the last instruction.
29073  $ac_cs_success || as_fn_exit 1
29074fi
29075
29076#
29077# CONFIG_SUBDIRS section.
29078#
29079if test "$no_recursion" != yes; then
29080
29081  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
29082  # so they do not pile up.
29083  ac_sub_configure_args=
29084  ac_prev=
29085  eval "set x $ac_configure_args"
29086  shift
29087  for ac_arg
29088  do
29089    if test -n "$ac_prev"; then
29090      ac_prev=
29091      continue
29092    fi
29093    case $ac_arg in
29094    -cache-file | --cache-file | --cache-fil | --cache-fi \
29095    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
29096      ac_prev=cache_file ;;
29097    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
29098    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
29099    | --c=*)
29100      ;;
29101    --config-cache | -C)
29102      ;;
29103    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
29104      ac_prev=srcdir ;;
29105    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
29106      ;;
29107    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
29108      ac_prev=prefix ;;
29109    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
29110      ;;
29111    --disable-option-checking)
29112      ;;
29113    *)
29114      case $ac_arg in
29115      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
29116      esac
29117      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
29118    esac
29119  done
29120
29121  # Always prepend --prefix to ensure using the same prefix
29122  # in subdir configurations.
29123  ac_arg="--prefix=$prefix"
29124  case $ac_arg in
29125  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
29126  esac
29127  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
29128
29129  # Pass --silent
29130  if test "$silent" = yes; then
29131    ac_sub_configure_args="--silent $ac_sub_configure_args"
29132  fi
29133
29134  # Always prepend --disable-option-checking to silence warnings, since
29135  # different subdirs can have different --enable and --with options.
29136  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
29137
29138  ac_popdir=`pwd`
29139  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
29140
29141    # Do not complain, so a configure script can configure whichever
29142    # parts of a large source tree are present.
29143    test -d "$srcdir/$ac_dir" || continue
29144
29145    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
29146    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
29147    $as_echo "$ac_msg" >&6
29148    as_dir="$ac_dir"; as_fn_mkdir_p
29149    ac_builddir=.
29150
29151case "$ac_dir" in
29152.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29153*)
29154  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29155  # A ".." for each directory in $ac_dir_suffix.
29156  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29157  case $ac_top_builddir_sub in
29158  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29159  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29160  esac ;;
29161esac
29162ac_abs_top_builddir=$ac_pwd
29163ac_abs_builddir=$ac_pwd$ac_dir_suffix
29164# for backward compatibility:
29165ac_top_builddir=$ac_top_build_prefix
29166
29167case $srcdir in
29168  .)  # We are building in place.
29169    ac_srcdir=.
29170    ac_top_srcdir=$ac_top_builddir_sub
29171    ac_abs_top_srcdir=$ac_pwd ;;
29172  [\\/]* | ?:[\\/]* )  # Absolute name.
29173    ac_srcdir=$srcdir$ac_dir_suffix;
29174    ac_top_srcdir=$srcdir
29175    ac_abs_top_srcdir=$srcdir ;;
29176  *) # Relative name.
29177    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29178    ac_top_srcdir=$ac_top_build_prefix$srcdir
29179    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29180esac
29181ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29182
29183
29184    cd "$ac_dir"
29185
29186    # Check for guested configure; otherwise get Cygnus style configure.
29187    if test -f "$ac_srcdir/configure.gnu"; then
29188      ac_sub_configure=$ac_srcdir/configure.gnu
29189    elif test -f "$ac_srcdir/configure"; then
29190      ac_sub_configure=$ac_srcdir/configure
29191    elif test -f "$ac_srcdir/configure.in"; then
29192      # This should be Cygnus configure.
29193      ac_sub_configure=$ac_aux_dir/configure
29194    else
29195      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
29196$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
29197      ac_sub_configure=
29198    fi
29199
29200    # The recursion is here.
29201    if test -n "$ac_sub_configure"; then
29202      # Make the cache file name correct relative to the subdirectory.
29203      case $cache_file in
29204      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
29205      *) # Relative name.
29206	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
29207      esac
29208
29209      { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
29210$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
29211      # The eval makes quoting arguments work.
29212      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
29213	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
29214	as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
29215    fi
29216
29217    cd "$ac_popdir"
29218  done
29219fi
29220if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29221  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29222$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29223fi
29224
29225
29226if test "x$CDPATH" != "x"; then :
29227    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
29228
29229    #=========================================================#
29230    # You have CDPATH set. You may have to run \"unset CDPATH\" #
29231    # before running \"make dist\" or \"make rpm\".               #
29232    #=========================================================#
29233" >&5
29234$as_echo "$as_me: WARNING:
29235
29236    #=========================================================#
29237    # You have CDPATH set. You may have to run \"unset CDPATH\" #
29238    # before running \"make dist\" or \"make rpm\".               #
29239    #=========================================================#
29240" >&2;}
29241
29242fi
29243# Message about configured subprojects
29244if test "x$subdirs" != "x"; then
29245
29246gp_config_msg="${gp_config_msg}
29247"
29248	_subdirs=""
29249	for sd in $subdirs; do
29250		ssd="$(basename "$sd")"
29251		if test "x$_subdirs" = "x"; then
29252			_subdirs="$ssd";
29253		else
29254			_subdirs="$_subdirs $ssd"
29255		fi
29256	done
29257
29258gp_config_msg_len="$(expr "Subprojects" : '.*')"
29259if test "$gp_config_msg_len" -ge "$gp_config_len"; then
29260	gp_config_msg_lhs="$(expr "Subprojects" : "\(.\{0,${gp_config_len3}\}\)")..:"
29261else
29262	gp_config_msg_lhs="$(expr "Subprojects:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
29263fi
29264gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} ${_subdirs}
29265"
29266fi
29267
29268echo "${gp_config_msg}
29269You may run \"make\" and \"make install\" now."
29270
29271
29272if test "x$gp_sh_with_camlibs" = xstandard; then :
29273
29274else
29275  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
29276
29277  #=====================================================================#
29278  # Caution: You have chosen to build a non-standard set of camlibs.    #
29279  #          You may have disabled the camlib required for your camera, #
29280  #          or enabled a camlib which does *not* work and overrides    #
29281  #          the camlib which *does* work. Consequently,                #
29282  #          YOUR CAMERA MAY NOT WORK!                                  #
29283  #                                                                     #
29284  # Many cameras of several brands are supported by a camlib with a     #
29285  # name different from the name of the camera brand or model. If you   #
29286  # are unsure, please                                                  #
29287  #   * enable at least the 'ptp2' camlib                               #
29288  #   * or even better, just build the standard set of camlibs.         #
29289  #=====================================================================#
29290" >&5
29291$as_echo "$as_me: WARNING:
29292
29293  #=====================================================================#
29294  # Caution: You have chosen to build a non-standard set of camlibs.    #
29295  #          You may have disabled the camlib required for your camera, #
29296  #          or enabled a camlib which does *not* work and overrides    #
29297  #          the camlib which *does* work. Consequently,                #
29298  #          YOUR CAMERA MAY NOT WORK!                                  #
29299  #                                                                     #
29300  # Many cameras of several brands are supported by a camlib with a     #
29301  # name different from the name of the camera brand or model. If you   #
29302  # are unsure, please                                                  #
29303  #   * enable at least the 'ptp2' camlib                               #
29304  #   * or even better, just build the standard set of camlibs.         #
29305  #=====================================================================#
29306" >&2;}
29307$gp_sleep 5
29308
29309
29310
29311fi
29312
29313
29314cat<<_GP_EOF
29315Please check whether the configuration I have detected matches what
29316you would like to have. E.g. make sure that USB support is there if
29317you intend to use USB cameras with ${PACKAGE_NAME}.
29318
29319Please also check that PKG_CONFIG_PATH contains
29320    ${pkgconfigdir}
29321before compiling any libgphoto2 frontend.
29322_GP_EOF
29323