1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for gphoto filesystem 0.5.
4#
5# Report bugs to <gphoto-devel@lists.sourceforge.net>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178  if (eval "$as_required") 2>/dev/null; then :
179  as_have_required=yes
180else
181  as_have_required=no
182fi
183  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190  IFS=$as_save_IFS
191  test -z "$as_dir" && as_dir=.
192  as_found=:
193  case $as_dir in #(
194	 /*)
195	   for as_base in sh bash ksh sh5; do
196	     # Try only shells that exist, to save several forks.
197	     as_shell=$as_dir/$as_base
198	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200  CONFIG_SHELL=$as_shell as_have_required=yes
201		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202  break 2
203fi
204fi
205	   done;;
206       esac
207  as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211  CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216      if test "x$CONFIG_SHELL" != x; then :
217  # We cannot yet assume a decent shell, so we have to provide a
218	# neutralization value for shells without unset; and this also
219	# works around shells that cannot unset nonexistent variables.
220	# Preserve -v and -x to the replacement shell.
221	BASH_ENV=/dev/null
222	ENV=/dev/null
223	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224	export CONFIG_SHELL
225	case $- in # ((((
226	  *v*x* | *x*v* ) as_opts=-vx ;;
227	  *v* ) as_opts=-v ;;
228	  *x* ) as_opts=-x ;;
229	  * ) as_opts= ;;
230	esac
231	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232fi
233
234    if test x$as_have_required = xno; then :
235  $as_echo "$0: This script requires a shell more modern than all"
236  $as_echo "$0: the shells that I found on your system."
237  if test x${ZSH_VERSION+set} = xset ; then
238    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240  else
241    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: gphoto-devel@lists.sourceforge.net about your system,
243$0: including any error possibly output before this
244$0: message. Then install a modern shell, or manually run
245$0: the script under such a shell if you do have one."
246  fi
247  exit 1
248fi
249fi
250fi
251SHELL=${CONFIG_SHELL-/bin/sh}
252export SHELL
253# Unset more variables known to interfere with behavior of common tools.
254CLICOLOR_FORCE= GREP_OPTIONS=
255unset CLICOLOR_FORCE GREP_OPTIONS
256
257## --------------------- ##
258## M4sh Shell Functions. ##
259## --------------------- ##
260# as_fn_unset VAR
261# ---------------
262# Portably unset VAR.
263as_fn_unset ()
264{
265  { eval $1=; unset $1;}
266}
267as_unset=as_fn_unset
268
269# as_fn_set_status STATUS
270# -----------------------
271# Set $? to STATUS, without forking.
272as_fn_set_status ()
273{
274  return $1
275} # as_fn_set_status
276
277# as_fn_exit STATUS
278# -----------------
279# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280as_fn_exit ()
281{
282  set +e
283  as_fn_set_status $1
284  exit $1
285} # as_fn_exit
286
287# as_fn_mkdir_p
288# -------------
289# Create "$as_dir" as a directory, including parents if necessary.
290as_fn_mkdir_p ()
291{
292
293  case $as_dir in #(
294  -*) as_dir=./$as_dir;;
295  esac
296  test -d "$as_dir" || eval $as_mkdir_p || {
297    as_dirs=
298    while :; do
299      case $as_dir in #(
300      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301      *) as_qdir=$as_dir;;
302      esac
303      as_dirs="'$as_qdir' $as_dirs"
304      as_dir=`$as_dirname -- "$as_dir" ||
305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306	 X"$as_dir" : 'X\(//\)[^/]' \| \
307	 X"$as_dir" : 'X\(//\)$' \| \
308	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309$as_echo X"$as_dir" |
310    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311	    s//\1/
312	    q
313	  }
314	  /^X\(\/\/\)[^/].*/{
315	    s//\1/
316	    q
317	  }
318	  /^X\(\/\/\)$/{
319	    s//\1/
320	    q
321	  }
322	  /^X\(\/\).*/{
323	    s//\1/
324	    q
325	  }
326	  s/.*/./; q'`
327      test -d "$as_dir" && break
328    done
329    test -z "$as_dirs" || eval "mkdir $as_dirs"
330  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331
332
333} # as_fn_mkdir_p
334# as_fn_append VAR VALUE
335# ----------------------
336# Append the text in VALUE to the end of the definition contained in VAR. Take
337# advantage of any shell optimizations that allow amortized linear growth over
338# repeated appends, instead of the typical quadratic growth present in naive
339# implementations.
340if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341  eval 'as_fn_append ()
342  {
343    eval $1+=\$2
344  }'
345else
346  as_fn_append ()
347  {
348    eval $1=\$$1\$2
349  }
350fi # as_fn_append
351
352# as_fn_arith ARG...
353# ------------------
354# Perform arithmetic evaluation on the ARGs, and store the result in the
355# global $as_val. Take advantage of shells that can avoid forks. The arguments
356# must be portable across $(()) and expr.
357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358  eval 'as_fn_arith ()
359  {
360    as_val=$(( $* ))
361  }'
362else
363  as_fn_arith ()
364  {
365    as_val=`expr "$@" || test $? -eq 1`
366  }
367fi # as_fn_arith
368
369
370# as_fn_error STATUS ERROR [LINENO LOG_FD]
371# ----------------------------------------
372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374# script with STATUS, using 1 if that was 0.
375as_fn_error ()
376{
377  as_status=$1; test $as_status -eq 0 && as_status=1
378  if test "$4"; then
379    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381  fi
382  $as_echo "$as_me: error: $2" >&2
383  as_fn_exit $as_status
384} # as_fn_error
385
386if expr a : '\(a\)' >/dev/null 2>&1 &&
387   test "X`expr 00001 : '.*\(...\)'`" = X001; then
388  as_expr=expr
389else
390  as_expr=false
391fi
392
393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394  as_basename=basename
395else
396  as_basename=false
397fi
398
399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400  as_dirname=dirname
401else
402  as_dirname=false
403fi
404
405as_me=`$as_basename -- "$0" ||
406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407	 X"$0" : 'X\(//\)$' \| \
408	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409$as_echo X/"$0" |
410    sed '/^.*\/\([^/][^/]*\)\/*$/{
411	    s//\1/
412	    q
413	  }
414	  /^X\/\(\/\/\)$/{
415	    s//\1/
416	    q
417	  }
418	  /^X\/\(\/\).*/{
419	    s//\1/
420	    q
421	  }
422	  s/.*/./; q'`
423
424# Avoid depending upon Character Ranges.
425as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428as_cr_digits='0123456789'
429as_cr_alnum=$as_cr_Letters$as_cr_digits
430
431
432  as_lineno_1=$LINENO as_lineno_1a=$LINENO
433  as_lineno_2=$LINENO as_lineno_2a=$LINENO
434  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
437  sed -n '
438    p
439    /[$]LINENO/=
440  ' <$as_myself |
441    sed '
442      s/[$]LINENO.*/&-/
443      t lineno
444      b
445      :lineno
446      N
447      :loop
448      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449      t loop
450      s/-\n.*//
451    ' >$as_me.lineno &&
452  chmod +x "$as_me.lineno" ||
453    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
455  # Don't try to exec as it changes $[0], causing all sort of problems
456  # (the dirname of $[0] is not the place where we might find the
457  # original and so on.  Autoconf is especially sensitive to this).
458  . "./$as_me.lineno"
459  # Exit status is that of the last command.
460  exit
461}
462
463ECHO_C= ECHO_N= ECHO_T=
464case `echo -n x` in #(((((
465-n*)
466  case `echo 'xy\c'` in
467  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
468  xy)  ECHO_C='\c';;
469  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
470       ECHO_T='	';;
471  esac;;
472*)
473  ECHO_N='-n';;
474esac
475
476rm -f conf$$ conf$$.exe conf$$.file
477if test -d conf$$.dir; then
478  rm -f conf$$.dir/conf$$.file
479else
480  rm -f conf$$.dir
481  mkdir conf$$.dir 2>/dev/null
482fi
483if (echo >conf$$.file) 2>/dev/null; then
484  if ln -s conf$$.file conf$$ 2>/dev/null; then
485    as_ln_s='ln -s'
486    # ... but there are two gotchas:
487    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489    # In both cases, we have to default to `cp -p'.
490    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491      as_ln_s='cp -p'
492  elif ln conf$$.file conf$$ 2>/dev/null; then
493    as_ln_s=ln
494  else
495    as_ln_s='cp -p'
496  fi
497else
498  as_ln_s='cp -p'
499fi
500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501rmdir conf$$.dir 2>/dev/null
502
503if mkdir -p . 2>/dev/null; then
504  as_mkdir_p='mkdir -p "$as_dir"'
505else
506  test -d ./-p && rmdir ./-p
507  as_mkdir_p=false
508fi
509
510if test -x / >/dev/null 2>&1; then
511  as_test_x='test -x'
512else
513  if ls -dL / >/dev/null 2>&1; then
514    as_ls_L_option=L
515  else
516    as_ls_L_option=
517  fi
518  as_test_x='
519    eval sh -c '\''
520      if test -d "$1"; then
521	test -d "$1/.";
522      else
523	case $1 in #(
524	-*)set "./$1";;
525	esac;
526	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527	???[sx]*):;;*)false;;esac;fi
528    '\'' sh
529  '
530fi
531as_executable_p=$as_test_x
532
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541# Check that we are running under the correct shell.
542SHELL=${CONFIG_SHELL-/bin/sh}
543
544case X$lt_ECHO in
545X*--fallback-echo)
546  # Remove one level of quotation (which was required for Make).
547  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
548  ;;
549esac
550
551ECHO=${lt_ECHO-echo}
552if test "X$1" = X--no-reexec; then
553  # Discard the --no-reexec flag, and continue.
554  shift
555elif test "X$1" = X--fallback-echo; then
556  # Avoid inline document here, it may be left over
557  :
558elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
559  # Yippee, $ECHO works!
560  :
561else
562  # Restart under the correct shell.
563  exec $SHELL "$0" --no-reexec ${1+"$@"}
564fi
565
566if test "X$1" = X--fallback-echo; then
567  # used as fallback echo
568  shift
569  cat <<_LT_EOF
570$*
571_LT_EOF
572  exit 0
573fi
574
575# The HP-UX ksh and POSIX shell print the target directory to stdout
576# if CDPATH is set.
577(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
578
579if test -z "$lt_ECHO"; then
580  if test "X${echo_test_string+set}" != Xset; then
581    # find a string as large as possible, as long as the shell can cope with it
582    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
583      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
584      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
585	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
586      then
587        break
588      fi
589    done
590  fi
591
592  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
593     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
594     test "X$echo_testing_string" = "X$echo_test_string"; then
595    :
596  else
597    # The Solaris, AIX, and Digital Unix default echo programs unquote
598    # backslashes.  This makes it impossible to quote backslashes using
599    #   echo "$something" | sed 's/\\/\\\\/g'
600    #
601    # So, first we look for a working echo in the user's PATH.
602
603    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
604    for dir in $PATH /usr/ucb; do
605      IFS="$lt_save_ifs"
606      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
607         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
608         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
609         test "X$echo_testing_string" = "X$echo_test_string"; then
610        ECHO="$dir/echo"
611        break
612      fi
613    done
614    IFS="$lt_save_ifs"
615
616    if test "X$ECHO" = Xecho; then
617      # We didn't find a better echo, so look for alternatives.
618      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
619         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
620         test "X$echo_testing_string" = "X$echo_test_string"; then
621        # This shell has a builtin print -r that does the trick.
622        ECHO='print -r'
623      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
624	   test "X$CONFIG_SHELL" != X/bin/ksh; then
625        # If we have ksh, try running configure again with it.
626        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
627        export ORIGINAL_CONFIG_SHELL
628        CONFIG_SHELL=/bin/ksh
629        export CONFIG_SHELL
630        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
631      else
632        # Try using printf.
633        ECHO='printf %s\n'
634        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
635	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
636	   test "X$echo_testing_string" = "X$echo_test_string"; then
637	  # Cool, printf works
638	  :
639        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640	     test "X$echo_testing_string" = 'X\t' &&
641	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642	     test "X$echo_testing_string" = "X$echo_test_string"; then
643	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
644	  export CONFIG_SHELL
645	  SHELL="$CONFIG_SHELL"
646	  export SHELL
647	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
648        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
649	     test "X$echo_testing_string" = 'X\t' &&
650	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
651	     test "X$echo_testing_string" = "X$echo_test_string"; then
652	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
653        else
654	  # maybe with a smaller string...
655	  prev=:
656
657	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
658	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
659	    then
660	      break
661	    fi
662	    prev="$cmd"
663	  done
664
665	  if test "$prev" != 'sed 50q "$0"'; then
666	    echo_test_string=`eval $prev`
667	    export echo_test_string
668	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
669	  else
670	    # Oops.  We lost completely, so just stick with echo.
671	    ECHO=echo
672	  fi
673        fi
674      fi
675    fi
676  fi
677fi
678
679# Copy echo and quote the copy suitably for passing to libtool from
680# the Makefile, instead of quoting the original, which is used later.
681lt_ECHO=$ECHO
682if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
683   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
684fi
685
686
687
688
689test -n "$DJDIR" || exec 7<&0 </dev/null
690exec 6>&1
691
692# Name of the host.
693# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
694# so uname gets run too.
695ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
696
697#
698# Initializations.
699#
700ac_default_prefix=/usr/local
701ac_clean_files=
702ac_config_libobj_dir=.
703LIBOBJS=
704cross_compiling=no
705subdirs=
706MFLAGS=
707MAKEFLAGS=
708
709# Identity of this package.
710PACKAGE_NAME='gphoto filesystem'
711PACKAGE_TARNAME='gphotofs'
712PACKAGE_VERSION='0.5'
713PACKAGE_STRING='gphoto filesystem 0.5'
714PACKAGE_BUGREPORT='gphoto-devel@lists.sourceforge.net'
715PACKAGE_URL=''
716
717ac_unique_file="gphotofs.c"
718# Factoring default headers for most tests.
719ac_includes_default="\
720#include <stdio.h>
721#ifdef HAVE_SYS_TYPES_H
722# include <sys/types.h>
723#endif
724#ifdef HAVE_SYS_STAT_H
725# include <sys/stat.h>
726#endif
727#ifdef STDC_HEADERS
728# include <stdlib.h>
729# include <stddef.h>
730#else
731# ifdef HAVE_STDLIB_H
732#  include <stdlib.h>
733# endif
734#endif
735#ifdef HAVE_STRING_H
736# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
737#  include <memory.h>
738# endif
739# include <string.h>
740#endif
741#ifdef HAVE_STRINGS_H
742# include <strings.h>
743#endif
744#ifdef HAVE_INTTYPES_H
745# include <inttypes.h>
746#endif
747#ifdef HAVE_STDINT_H
748# include <stdint.h>
749#endif
750#ifdef HAVE_UNISTD_H
751# include <unistd.h>
752#endif"
753
754ac_subst_vars='am__EXEEXT_FALSE
755am__EXEEXT_TRUE
756LTLIBOBJS
757LIBOBJS
758MKINSTALLDIRS
759POSUB
760POFILES
761PO_IN_DATADIR_FALSE
762PO_IN_DATADIR_TRUE
763INTLLIBS
764INSTOBJEXT
765GMOFILES
766DATADIRNAME
767CATOBJEXT
768CATALOGS
769XGETTEXT
770GMSGFMT
771MSGFMT_OPTS
772MSGFMT
773USE_NLS
774GETTEXT_PACKAGE
775HAVE_LIBGPHOTO2_FALSE
776HAVE_LIBGPHOTO2_TRUE
777REQUIREMENTS_FOR_LIBGPHOTO2
778LIBGPHOTO2_CONFIG_PROG
779LIBGPHOTO2_LIBS
780LIBGPHOTO2_CFLAGS
781GLIB_LIBS
782GLIB_CFLAGS
783FUSE_LIBS
784FUSE_CFLAGS
785PKG_CONFIG_LIBDIR
786PKG_CONFIG_PATH
787PKG_CONFIG
788OTOOL64
789OTOOL
790LIPO
791NMEDIT
792DSYMUTIL
793lt_ECHO
794RANLIB
795AR
796OBJDUMP
797LN_S
798NM
799ac_ct_DUMPBIN
800DUMPBIN
801LD
802FGREP
803EGREP
804GREP
805SED
806host_os
807host_vendor
808host_cpu
809host
810build_os
811build_vendor
812build_cpu
813build
814LIBTOOL
815CPP
816am__fastdepCC_FALSE
817am__fastdepCC_TRUE
818CCDEPMODE
819AMDEPBACKSLASH
820AMDEP_FALSE
821AMDEP_TRUE
822am__quote
823am__include
824DEPDIR
825OBJEXT
826EXEEXT
827ac_ct_CC
828CPPFLAGS
829LDFLAGS
830CFLAGS
831CC
832am__untar
833am__tar
834AMTAR
835am__leading_dot
836SET_MAKE
837AWK
838mkdir_p
839MKDIR_P
840INSTALL_STRIP_PROGRAM
841STRIP
842install_sh
843MAKEINFO
844AUTOHEADER
845AUTOMAKE
846AUTOCONF
847ACLOCAL
848VERSION
849PACKAGE
850CYGPATH_W
851am__isrc
852INSTALL_DATA
853INSTALL_SCRIPT
854INSTALL_PROGRAM
855target_alias
856host_alias
857build_alias
858LIBS
859ECHO_T
860ECHO_N
861ECHO_C
862DEFS
863mandir
864localedir
865libdir
866psdir
867pdfdir
868dvidir
869htmldir
870infodir
871docdir
872oldincludedir
873includedir
874localstatedir
875sharedstatedir
876sysconfdir
877datadir
878datarootdir
879libexecdir
880sbindir
881bindir
882program_transform_name
883prefix
884exec_prefix
885PACKAGE_URL
886PACKAGE_BUGREPORT
887PACKAGE_STRING
888PACKAGE_VERSION
889PACKAGE_TARNAME
890PACKAGE_NAME
891PATH_SEPARATOR
892SHELL'
893ac_subst_files=''
894ac_user_opts='
895enable_option_checking
896enable_dependency_tracking
897enable_shared
898enable_static
899with_pic
900enable_fast_install
901with_gnu_ld
902enable_libtool_lock
903with_libgphoto2
904'
905      ac_precious_vars='build_alias
906host_alias
907target_alias
908CC
909CFLAGS
910LDFLAGS
911LIBS
912CPPFLAGS
913CPP
914PKG_CONFIG
915PKG_CONFIG_PATH
916PKG_CONFIG_LIBDIR
917FUSE_CFLAGS
918FUSE_LIBS
919GLIB_CFLAGS
920GLIB_LIBS
921LIBGPHOTO2_CFLAGS
922LIBGPHOTO2_LIBS'
923
924
925# Initialize some variables set by options.
926ac_init_help=
927ac_init_version=false
928ac_unrecognized_opts=
929ac_unrecognized_sep=
930# The variables have the same names as the options, with
931# dashes changed to underlines.
932cache_file=/dev/null
933exec_prefix=NONE
934no_create=
935no_recursion=
936prefix=NONE
937program_prefix=NONE
938program_suffix=NONE
939program_transform_name=s,x,x,
940silent=
941site=
942srcdir=
943verbose=
944x_includes=NONE
945x_libraries=NONE
946
947# Installation directory options.
948# These are left unexpanded so users can "make install exec_prefix=/foo"
949# and all the variables that are supposed to be based on exec_prefix
950# by default will actually change.
951# Use braces instead of parens because sh, perl, etc. also accept them.
952# (The list follows the same order as the GNU Coding Standards.)
953bindir='${exec_prefix}/bin'
954sbindir='${exec_prefix}/sbin'
955libexecdir='${exec_prefix}/libexec'
956datarootdir='${prefix}/share'
957datadir='${datarootdir}'
958sysconfdir='${prefix}/etc'
959sharedstatedir='${prefix}/com'
960localstatedir='${prefix}/var'
961includedir='${prefix}/include'
962oldincludedir='/usr/include'
963docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
964infodir='${datarootdir}/info'
965htmldir='${docdir}'
966dvidir='${docdir}'
967pdfdir='${docdir}'
968psdir='${docdir}'
969libdir='${exec_prefix}/lib'
970localedir='${datarootdir}/locale'
971mandir='${datarootdir}/man'
972
973ac_prev=
974ac_dashdash=
975for ac_option
976do
977  # If the previous option needs an argument, assign it.
978  if test -n "$ac_prev"; then
979    eval $ac_prev=\$ac_option
980    ac_prev=
981    continue
982  fi
983
984  case $ac_option in
985  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
986  *=)   ac_optarg= ;;
987  *)    ac_optarg=yes ;;
988  esac
989
990  # Accept the important Cygnus configure options, so we can diagnose typos.
991
992  case $ac_dashdash$ac_option in
993  --)
994    ac_dashdash=yes ;;
995
996  -bindir | --bindir | --bindi | --bind | --bin | --bi)
997    ac_prev=bindir ;;
998  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
999    bindir=$ac_optarg ;;
1000
1001  -build | --build | --buil | --bui | --bu)
1002    ac_prev=build_alias ;;
1003  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1004    build_alias=$ac_optarg ;;
1005
1006  -cache-file | --cache-file | --cache-fil | --cache-fi \
1007  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1008    ac_prev=cache_file ;;
1009  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1010  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1011    cache_file=$ac_optarg ;;
1012
1013  --config-cache | -C)
1014    cache_file=config.cache ;;
1015
1016  -datadir | --datadir | --datadi | --datad)
1017    ac_prev=datadir ;;
1018  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1019    datadir=$ac_optarg ;;
1020
1021  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1022  | --dataroo | --dataro | --datar)
1023    ac_prev=datarootdir ;;
1024  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1025  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1026    datarootdir=$ac_optarg ;;
1027
1028  -disable-* | --disable-*)
1029    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1030    # Reject names that are not valid shell variable names.
1031    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1032      as_fn_error $? "invalid feature name: $ac_useropt"
1033    ac_useropt_orig=$ac_useropt
1034    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1035    case $ac_user_opts in
1036      *"
1037"enable_$ac_useropt"
1038"*) ;;
1039      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1040	 ac_unrecognized_sep=', ';;
1041    esac
1042    eval enable_$ac_useropt=no ;;
1043
1044  -docdir | --docdir | --docdi | --doc | --do)
1045    ac_prev=docdir ;;
1046  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1047    docdir=$ac_optarg ;;
1048
1049  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1050    ac_prev=dvidir ;;
1051  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1052    dvidir=$ac_optarg ;;
1053
1054  -enable-* | --enable-*)
1055    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1056    # Reject names that are not valid shell variable names.
1057    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1058      as_fn_error $? "invalid feature name: $ac_useropt"
1059    ac_useropt_orig=$ac_useropt
1060    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1061    case $ac_user_opts in
1062      *"
1063"enable_$ac_useropt"
1064"*) ;;
1065      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1066	 ac_unrecognized_sep=', ';;
1067    esac
1068    eval enable_$ac_useropt=\$ac_optarg ;;
1069
1070  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1071  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1072  | --exec | --exe | --ex)
1073    ac_prev=exec_prefix ;;
1074  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1075  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1076  | --exec=* | --exe=* | --ex=*)
1077    exec_prefix=$ac_optarg ;;
1078
1079  -gas | --gas | --ga | --g)
1080    # Obsolete; use --with-gas.
1081    with_gas=yes ;;
1082
1083  -help | --help | --hel | --he | -h)
1084    ac_init_help=long ;;
1085  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1086    ac_init_help=recursive ;;
1087  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1088    ac_init_help=short ;;
1089
1090  -host | --host | --hos | --ho)
1091    ac_prev=host_alias ;;
1092  -host=* | --host=* | --hos=* | --ho=*)
1093    host_alias=$ac_optarg ;;
1094
1095  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1096    ac_prev=htmldir ;;
1097  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1098  | --ht=*)
1099    htmldir=$ac_optarg ;;
1100
1101  -includedir | --includedir | --includedi | --included | --include \
1102  | --includ | --inclu | --incl | --inc)
1103    ac_prev=includedir ;;
1104  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1105  | --includ=* | --inclu=* | --incl=* | --inc=*)
1106    includedir=$ac_optarg ;;
1107
1108  -infodir | --infodir | --infodi | --infod | --info | --inf)
1109    ac_prev=infodir ;;
1110  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1111    infodir=$ac_optarg ;;
1112
1113  -libdir | --libdir | --libdi | --libd)
1114    ac_prev=libdir ;;
1115  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1116    libdir=$ac_optarg ;;
1117
1118  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1119  | --libexe | --libex | --libe)
1120    ac_prev=libexecdir ;;
1121  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1122  | --libexe=* | --libex=* | --libe=*)
1123    libexecdir=$ac_optarg ;;
1124
1125  -localedir | --localedir | --localedi | --localed | --locale)
1126    ac_prev=localedir ;;
1127  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1128    localedir=$ac_optarg ;;
1129
1130  -localstatedir | --localstatedir | --localstatedi | --localstated \
1131  | --localstate | --localstat | --localsta | --localst | --locals)
1132    ac_prev=localstatedir ;;
1133  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1134  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1135    localstatedir=$ac_optarg ;;
1136
1137  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1138    ac_prev=mandir ;;
1139  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1140    mandir=$ac_optarg ;;
1141
1142  -nfp | --nfp | --nf)
1143    # Obsolete; use --without-fp.
1144    with_fp=no ;;
1145
1146  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1147  | --no-cr | --no-c | -n)
1148    no_create=yes ;;
1149
1150  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1151  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1152    no_recursion=yes ;;
1153
1154  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1155  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1156  | --oldin | --oldi | --old | --ol | --o)
1157    ac_prev=oldincludedir ;;
1158  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1159  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1160  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1161    oldincludedir=$ac_optarg ;;
1162
1163  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1164    ac_prev=prefix ;;
1165  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1166    prefix=$ac_optarg ;;
1167
1168  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1169  | --program-pre | --program-pr | --program-p)
1170    ac_prev=program_prefix ;;
1171  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1172  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1173    program_prefix=$ac_optarg ;;
1174
1175  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1176  | --program-suf | --program-su | --program-s)
1177    ac_prev=program_suffix ;;
1178  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1179  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1180    program_suffix=$ac_optarg ;;
1181
1182  -program-transform-name | --program-transform-name \
1183  | --program-transform-nam | --program-transform-na \
1184  | --program-transform-n | --program-transform- \
1185  | --program-transform | --program-transfor \
1186  | --program-transfo | --program-transf \
1187  | --program-trans | --program-tran \
1188  | --progr-tra | --program-tr | --program-t)
1189    ac_prev=program_transform_name ;;
1190  -program-transform-name=* | --program-transform-name=* \
1191  | --program-transform-nam=* | --program-transform-na=* \
1192  | --program-transform-n=* | --program-transform-=* \
1193  | --program-transform=* | --program-transfor=* \
1194  | --program-transfo=* | --program-transf=* \
1195  | --program-trans=* | --program-tran=* \
1196  | --progr-tra=* | --program-tr=* | --program-t=*)
1197    program_transform_name=$ac_optarg ;;
1198
1199  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1200    ac_prev=pdfdir ;;
1201  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1202    pdfdir=$ac_optarg ;;
1203
1204  -psdir | --psdir | --psdi | --psd | --ps)
1205    ac_prev=psdir ;;
1206  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1207    psdir=$ac_optarg ;;
1208
1209  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1210  | -silent | --silent | --silen | --sile | --sil)
1211    silent=yes ;;
1212
1213  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1214    ac_prev=sbindir ;;
1215  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1216  | --sbi=* | --sb=*)
1217    sbindir=$ac_optarg ;;
1218
1219  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1220  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1221  | --sharedst | --shareds | --shared | --share | --shar \
1222  | --sha | --sh)
1223    ac_prev=sharedstatedir ;;
1224  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1225  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1226  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1227  | --sha=* | --sh=*)
1228    sharedstatedir=$ac_optarg ;;
1229
1230  -site | --site | --sit)
1231    ac_prev=site ;;
1232  -site=* | --site=* | --sit=*)
1233    site=$ac_optarg ;;
1234
1235  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1236    ac_prev=srcdir ;;
1237  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1238    srcdir=$ac_optarg ;;
1239
1240  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1241  | --syscon | --sysco | --sysc | --sys | --sy)
1242    ac_prev=sysconfdir ;;
1243  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1244  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1245    sysconfdir=$ac_optarg ;;
1246
1247  -target | --target | --targe | --targ | --tar | --ta | --t)
1248    ac_prev=target_alias ;;
1249  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1250    target_alias=$ac_optarg ;;
1251
1252  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1253    verbose=yes ;;
1254
1255  -version | --version | --versio | --versi | --vers | -V)
1256    ac_init_version=: ;;
1257
1258  -with-* | --with-*)
1259    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1260    # Reject names that are not valid shell variable names.
1261    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1262      as_fn_error $? "invalid package name: $ac_useropt"
1263    ac_useropt_orig=$ac_useropt
1264    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1265    case $ac_user_opts in
1266      *"
1267"with_$ac_useropt"
1268"*) ;;
1269      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1270	 ac_unrecognized_sep=', ';;
1271    esac
1272    eval with_$ac_useropt=\$ac_optarg ;;
1273
1274  -without-* | --without-*)
1275    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1276    # Reject names that are not valid shell variable names.
1277    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1278      as_fn_error $? "invalid package name: $ac_useropt"
1279    ac_useropt_orig=$ac_useropt
1280    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1281    case $ac_user_opts in
1282      *"
1283"with_$ac_useropt"
1284"*) ;;
1285      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1286	 ac_unrecognized_sep=', ';;
1287    esac
1288    eval with_$ac_useropt=no ;;
1289
1290  --x)
1291    # Obsolete; use --with-x.
1292    with_x=yes ;;
1293
1294  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1295  | --x-incl | --x-inc | --x-in | --x-i)
1296    ac_prev=x_includes ;;
1297  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1298  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1299    x_includes=$ac_optarg ;;
1300
1301  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1302  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1303    ac_prev=x_libraries ;;
1304  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1305  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1306    x_libraries=$ac_optarg ;;
1307
1308  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1309Try \`$0 --help' for more information"
1310    ;;
1311
1312  *=*)
1313    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1314    # Reject names that are not valid shell variable names.
1315    case $ac_envvar in #(
1316      '' | [0-9]* | *[!_$as_cr_alnum]* )
1317      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1318    esac
1319    eval $ac_envvar=\$ac_optarg
1320    export $ac_envvar ;;
1321
1322  *)
1323    # FIXME: should be removed in autoconf 3.0.
1324    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1325    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1326      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1327    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1328    ;;
1329
1330  esac
1331done
1332
1333if test -n "$ac_prev"; then
1334  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1335  as_fn_error $? "missing argument to $ac_option"
1336fi
1337
1338if test -n "$ac_unrecognized_opts"; then
1339  case $enable_option_checking in
1340    no) ;;
1341    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1342    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1343  esac
1344fi
1345
1346# Check all directory arguments for consistency.
1347for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1348		datadir sysconfdir sharedstatedir localstatedir includedir \
1349		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1350		libdir localedir mandir
1351do
1352  eval ac_val=\$$ac_var
1353  # Remove trailing slashes.
1354  case $ac_val in
1355    */ )
1356      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1357      eval $ac_var=\$ac_val;;
1358  esac
1359  # Be sure to have absolute directory names.
1360  case $ac_val in
1361    [\\/$]* | ?:[\\/]* )  continue;;
1362    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1363  esac
1364  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1365done
1366
1367# There might be people who depend on the old broken behavior: `$host'
1368# used to hold the argument of --host etc.
1369# FIXME: To remove some day.
1370build=$build_alias
1371host=$host_alias
1372target=$target_alias
1373
1374# FIXME: To remove some day.
1375if test "x$host_alias" != x; then
1376  if test "x$build_alias" = x; then
1377    cross_compiling=maybe
1378    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1379    If a cross compiler is detected then cross compile mode will be used" >&2
1380  elif test "x$build_alias" != "x$host_alias"; then
1381    cross_compiling=yes
1382  fi
1383fi
1384
1385ac_tool_prefix=
1386test -n "$host_alias" && ac_tool_prefix=$host_alias-
1387
1388test "$silent" = yes && exec 6>/dev/null
1389
1390
1391ac_pwd=`pwd` && test -n "$ac_pwd" &&
1392ac_ls_di=`ls -di .` &&
1393ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1394  as_fn_error $? "working directory cannot be determined"
1395test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1396  as_fn_error $? "pwd does not report name of working directory"
1397
1398
1399# Find the source files, if location was not specified.
1400if test -z "$srcdir"; then
1401  ac_srcdir_defaulted=yes
1402  # Try the directory containing this script, then the parent directory.
1403  ac_confdir=`$as_dirname -- "$as_myself" ||
1404$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1405	 X"$as_myself" : 'X\(//\)[^/]' \| \
1406	 X"$as_myself" : 'X\(//\)$' \| \
1407	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1408$as_echo X"$as_myself" |
1409    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1410	    s//\1/
1411	    q
1412	  }
1413	  /^X\(\/\/\)[^/].*/{
1414	    s//\1/
1415	    q
1416	  }
1417	  /^X\(\/\/\)$/{
1418	    s//\1/
1419	    q
1420	  }
1421	  /^X\(\/\).*/{
1422	    s//\1/
1423	    q
1424	  }
1425	  s/.*/./; q'`
1426  srcdir=$ac_confdir
1427  if test ! -r "$srcdir/$ac_unique_file"; then
1428    srcdir=..
1429  fi
1430else
1431  ac_srcdir_defaulted=no
1432fi
1433if test ! -r "$srcdir/$ac_unique_file"; then
1434  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1435  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1436fi
1437ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1438ac_abs_confdir=`(
1439	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1440	pwd)`
1441# When building in place, set srcdir=.
1442if test "$ac_abs_confdir" = "$ac_pwd"; then
1443  srcdir=.
1444fi
1445# Remove unnecessary trailing slashes from srcdir.
1446# Double slashes in file names in object file debugging info
1447# mess up M-x gdb in Emacs.
1448case $srcdir in
1449*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1450esac
1451for ac_var in $ac_precious_vars; do
1452  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1453  eval ac_env_${ac_var}_value=\$${ac_var}
1454  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1455  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1456done
1457
1458#
1459# Report the --help message.
1460#
1461if test "$ac_init_help" = "long"; then
1462  # Omit some internal or obsolete options to make the list less imposing.
1463  # This message is too long to be a string in the A/UX 3.1 sh.
1464  cat <<_ACEOF
1465\`configure' configures gphoto filesystem 0.5 to adapt to many kinds of systems.
1466
1467Usage: $0 [OPTION]... [VAR=VALUE]...
1468
1469To assign environment variables (e.g., CC, CFLAGS...), specify them as
1470VAR=VALUE.  See below for descriptions of some of the useful variables.
1471
1472Defaults for the options are specified in brackets.
1473
1474Configuration:
1475  -h, --help              display this help and exit
1476      --help=short        display options specific to this package
1477      --help=recursive    display the short help of all the included packages
1478  -V, --version           display version information and exit
1479  -q, --quiet, --silent   do not print \`checking ...' messages
1480      --cache-file=FILE   cache test results in FILE [disabled]
1481  -C, --config-cache      alias for \`--cache-file=config.cache'
1482  -n, --no-create         do not create output files
1483      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1484
1485Installation directories:
1486  --prefix=PREFIX         install architecture-independent files in PREFIX
1487                          [$ac_default_prefix]
1488  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1489                          [PREFIX]
1490
1491By default, \`make install' will install all the files in
1492\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1493an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1494for instance \`--prefix=\$HOME'.
1495
1496For better control, use the options below.
1497
1498Fine tuning of the installation directories:
1499  --bindir=DIR            user executables [EPREFIX/bin]
1500  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1501  --libexecdir=DIR        program executables [EPREFIX/libexec]
1502  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1503  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1504  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1505  --libdir=DIR            object code libraries [EPREFIX/lib]
1506  --includedir=DIR        C header files [PREFIX/include]
1507  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1508  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1509  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1510  --infodir=DIR           info documentation [DATAROOTDIR/info]
1511  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1512  --mandir=DIR            man documentation [DATAROOTDIR/man]
1513  --docdir=DIR            documentation root [DATAROOTDIR/doc/gphotofs]
1514  --htmldir=DIR           html documentation [DOCDIR]
1515  --dvidir=DIR            dvi documentation [DOCDIR]
1516  --pdfdir=DIR            pdf documentation [DOCDIR]
1517  --psdir=DIR             ps documentation [DOCDIR]
1518_ACEOF
1519
1520  cat <<\_ACEOF
1521
1522Program names:
1523  --program-prefix=PREFIX            prepend PREFIX to installed program names
1524  --program-suffix=SUFFIX            append SUFFIX to installed program names
1525  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1526
1527System types:
1528  --build=BUILD     configure for building on BUILD [guessed]
1529  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1530_ACEOF
1531fi
1532
1533if test -n "$ac_init_help"; then
1534  case $ac_init_help in
1535     short | recursive ) echo "Configuration of gphoto filesystem 0.5:";;
1536   esac
1537  cat <<\_ACEOF
1538
1539Optional Features:
1540  --disable-option-checking  ignore unrecognized --enable/--with options
1541  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1542  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1543  --disable-dependency-tracking  speeds up one-time build
1544  --enable-dependency-tracking   do not reject slow dependency extractors
1545  --enable-shared[=PKGS]  build shared libraries [default=yes]
1546  --enable-static[=PKGS]  build static libraries [default=yes]
1547  --enable-fast-install[=PKGS]
1548                          optimize for fast installation [default=yes]
1549  --disable-libtool-lock  avoid locking (might break parallel builds)
1550
1551Optional Packages:
1552  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1553  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1554  --with-pic              try to use only PIC/non-PIC objects [default=use
1555                          both]
1556  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1557  --with-libgphoto2=PREFIX
1558                          where to find libgphoto2, "no" or "auto"
1559
1560Some influential environment variables:
1561  CC          C compiler command
1562  CFLAGS      C compiler flags
1563  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1564              nonstandard directory <lib dir>
1565  LIBS        libraries to pass to the linker, e.g. -l<library>
1566  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1567              you have headers in a nonstandard directory <include dir>
1568  CPP         C preprocessor
1569  PKG_CONFIG  pkg-config package config utility
1570  PKG_CONFIG_PATH
1571              directory where pkg-config looks for *.pc files
1572  PKG_CONFIG_LIBDIR
1573              path overriding pkg-config's built-in search path
1574  FUSE_CFLAGS C compiler flags for FUSE, overriding pkg-config
1575  FUSE_LIBS   linker flags for FUSE, overriding pkg-config
1576  GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1577  GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1578  LIBGPHOTO2_CFLAGS
1579              CFLAGS for compiling with libgphoto2
1580  LIBGPHOTO2_LIBS
1581              LIBS to add for linking against libgphoto2
1582
1583Use these variables to override the choices made by `configure' or to help
1584it to find libraries and programs with nonstandard names/locations.
1585
1586Report bugs to <gphoto-devel@lists.sourceforge.net>.
1587_ACEOF
1588ac_status=$?
1589fi
1590
1591if test "$ac_init_help" = "recursive"; then
1592  # If there are subdirs, report their specific --help.
1593  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1594    test -d "$ac_dir" ||
1595      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1596      continue
1597    ac_builddir=.
1598
1599case "$ac_dir" in
1600.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1601*)
1602  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1603  # A ".." for each directory in $ac_dir_suffix.
1604  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1605  case $ac_top_builddir_sub in
1606  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1607  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1608  esac ;;
1609esac
1610ac_abs_top_builddir=$ac_pwd
1611ac_abs_builddir=$ac_pwd$ac_dir_suffix
1612# for backward compatibility:
1613ac_top_builddir=$ac_top_build_prefix
1614
1615case $srcdir in
1616  .)  # We are building in place.
1617    ac_srcdir=.
1618    ac_top_srcdir=$ac_top_builddir_sub
1619    ac_abs_top_srcdir=$ac_pwd ;;
1620  [\\/]* | ?:[\\/]* )  # Absolute name.
1621    ac_srcdir=$srcdir$ac_dir_suffix;
1622    ac_top_srcdir=$srcdir
1623    ac_abs_top_srcdir=$srcdir ;;
1624  *) # Relative name.
1625    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1626    ac_top_srcdir=$ac_top_build_prefix$srcdir
1627    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1628esac
1629ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1630
1631    cd "$ac_dir" || { ac_status=$?; continue; }
1632    # Check for guested configure.
1633    if test -f "$ac_srcdir/configure.gnu"; then
1634      echo &&
1635      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1636    elif test -f "$ac_srcdir/configure"; then
1637      echo &&
1638      $SHELL "$ac_srcdir/configure" --help=recursive
1639    else
1640      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1641    fi || ac_status=$?
1642    cd "$ac_pwd" || { ac_status=$?; break; }
1643  done
1644fi
1645
1646test -n "$ac_init_help" && exit $ac_status
1647if $ac_init_version; then
1648  cat <<\_ACEOF
1649gphoto filesystem configure 0.5
1650generated by GNU Autoconf 2.68
1651
1652Copyright (C) 2010 Free Software Foundation, Inc.
1653This configure script is free software; the Free Software Foundation
1654gives unlimited permission to copy, distribute and modify it.
1655_ACEOF
1656  exit
1657fi
1658
1659## ------------------------ ##
1660## Autoconf initialization. ##
1661## ------------------------ ##
1662
1663# ac_fn_c_try_compile LINENO
1664# --------------------------
1665# Try to compile conftest.$ac_ext, and return whether this succeeded.
1666ac_fn_c_try_compile ()
1667{
1668  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669  rm -f conftest.$ac_objext
1670  if { { ac_try="$ac_compile"
1671case "(($ac_try" in
1672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673  *) ac_try_echo=$ac_try;;
1674esac
1675eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676$as_echo "$ac_try_echo"; } >&5
1677  (eval "$ac_compile") 2>conftest.err
1678  ac_status=$?
1679  if test -s conftest.err; then
1680    grep -v '^ *+' conftest.err >conftest.er1
1681    cat conftest.er1 >&5
1682    mv -f conftest.er1 conftest.err
1683  fi
1684  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685  test $ac_status = 0; } && {
1686	 test -z "$ac_c_werror_flag" ||
1687	 test ! -s conftest.err
1688       } && test -s conftest.$ac_objext; then :
1689  ac_retval=0
1690else
1691  $as_echo "$as_me: failed program was:" >&5
1692sed 's/^/| /' conftest.$ac_ext >&5
1693
1694	ac_retval=1
1695fi
1696  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697  as_fn_set_status $ac_retval
1698
1699} # ac_fn_c_try_compile
1700
1701# ac_fn_c_try_cpp LINENO
1702# ----------------------
1703# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1704ac_fn_c_try_cpp ()
1705{
1706  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707  if { { ac_try="$ac_cpp conftest.$ac_ext"
1708case "(($ac_try" in
1709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710  *) ac_try_echo=$ac_try;;
1711esac
1712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713$as_echo "$ac_try_echo"; } >&5
1714  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1715  ac_status=$?
1716  if test -s conftest.err; then
1717    grep -v '^ *+' conftest.err >conftest.er1
1718    cat conftest.er1 >&5
1719    mv -f conftest.er1 conftest.err
1720  fi
1721  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722  test $ac_status = 0; } > conftest.i && {
1723	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1724	 test ! -s conftest.err
1725       }; then :
1726  ac_retval=0
1727else
1728  $as_echo "$as_me: failed program was:" >&5
1729sed 's/^/| /' conftest.$ac_ext >&5
1730
1731    ac_retval=1
1732fi
1733  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734  as_fn_set_status $ac_retval
1735
1736} # ac_fn_c_try_cpp
1737
1738# ac_fn_c_try_link LINENO
1739# -----------------------
1740# Try to link conftest.$ac_ext, and return whether this succeeded.
1741ac_fn_c_try_link ()
1742{
1743  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744  rm -f conftest.$ac_objext conftest$ac_exeext
1745  if { { ac_try="$ac_link"
1746case "(($ac_try" in
1747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748  *) ac_try_echo=$ac_try;;
1749esac
1750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751$as_echo "$ac_try_echo"; } >&5
1752  (eval "$ac_link") 2>conftest.err
1753  ac_status=$?
1754  if test -s conftest.err; then
1755    grep -v '^ *+' conftest.err >conftest.er1
1756    cat conftest.er1 >&5
1757    mv -f conftest.er1 conftest.err
1758  fi
1759  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760  test $ac_status = 0; } && {
1761	 test -z "$ac_c_werror_flag" ||
1762	 test ! -s conftest.err
1763       } && test -s conftest$ac_exeext && {
1764	 test "$cross_compiling" = yes ||
1765	 $as_test_x conftest$ac_exeext
1766       }; then :
1767  ac_retval=0
1768else
1769  $as_echo "$as_me: failed program was:" >&5
1770sed 's/^/| /' conftest.$ac_ext >&5
1771
1772	ac_retval=1
1773fi
1774  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1775  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1776  # interfere with the next link command; also delete a directory that is
1777  # left behind by Apple's compiler.  We do this before executing the actions.
1778  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1779  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780  as_fn_set_status $ac_retval
1781
1782} # ac_fn_c_try_link
1783
1784# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1785# -------------------------------------------------------
1786# Tests whether HEADER exists and can be compiled using the include files in
1787# INCLUDES, setting the cache variable VAR accordingly.
1788ac_fn_c_check_header_compile ()
1789{
1790  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792$as_echo_n "checking for $2... " >&6; }
1793if eval \${$3+:} false; then :
1794  $as_echo_n "(cached) " >&6
1795else
1796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797/* end confdefs.h.  */
1798$4
1799#include <$2>
1800_ACEOF
1801if ac_fn_c_try_compile "$LINENO"; then :
1802  eval "$3=yes"
1803else
1804  eval "$3=no"
1805fi
1806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1807fi
1808eval ac_res=\$$3
1809	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810$as_echo "$ac_res" >&6; }
1811  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812
1813} # ac_fn_c_check_header_compile
1814
1815# ac_fn_c_try_run LINENO
1816# ----------------------
1817# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1818# that executables *can* be run.
1819ac_fn_c_try_run ()
1820{
1821  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822  if { { ac_try="$ac_link"
1823case "(($ac_try" in
1824  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825  *) ac_try_echo=$ac_try;;
1826esac
1827eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828$as_echo "$ac_try_echo"; } >&5
1829  (eval "$ac_link") 2>&5
1830  ac_status=$?
1831  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1833  { { case "(($ac_try" in
1834  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835  *) ac_try_echo=$ac_try;;
1836esac
1837eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838$as_echo "$ac_try_echo"; } >&5
1839  (eval "$ac_try") 2>&5
1840  ac_status=$?
1841  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842  test $ac_status = 0; }; }; then :
1843  ac_retval=0
1844else
1845  $as_echo "$as_me: program exited with status $ac_status" >&5
1846       $as_echo "$as_me: failed program was:" >&5
1847sed 's/^/| /' conftest.$ac_ext >&5
1848
1849       ac_retval=$ac_status
1850fi
1851  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1852  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853  as_fn_set_status $ac_retval
1854
1855} # ac_fn_c_try_run
1856
1857# ac_fn_c_check_func LINENO FUNC VAR
1858# ----------------------------------
1859# Tests whether FUNC exists, setting the cache variable VAR accordingly
1860ac_fn_c_check_func ()
1861{
1862  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1864$as_echo_n "checking for $2... " >&6; }
1865if eval \${$3+:} false; then :
1866  $as_echo_n "(cached) " >&6
1867else
1868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869/* end confdefs.h.  */
1870/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1871   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1872#define $2 innocuous_$2
1873
1874/* System header to define __stub macros and hopefully few prototypes,
1875    which can conflict with char $2 (); below.
1876    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1877    <limits.h> exists even on freestanding compilers.  */
1878
1879#ifdef __STDC__
1880# include <limits.h>
1881#else
1882# include <assert.h>
1883#endif
1884
1885#undef $2
1886
1887/* Override any GCC internal prototype to avoid an error.
1888   Use char because int might match the return type of a GCC
1889   builtin and then its argument prototype would still apply.  */
1890#ifdef __cplusplus
1891extern "C"
1892#endif
1893char $2 ();
1894/* The GNU C library defines this for functions which it implements
1895    to always fail with ENOSYS.  Some functions are actually named
1896    something starting with __ and the normal name is an alias.  */
1897#if defined __stub_$2 || defined __stub___$2
1898choke me
1899#endif
1900
1901int
1902main ()
1903{
1904return $2 ();
1905  ;
1906  return 0;
1907}
1908_ACEOF
1909if ac_fn_c_try_link "$LINENO"; then :
1910  eval "$3=yes"
1911else
1912  eval "$3=no"
1913fi
1914rm -f core conftest.err conftest.$ac_objext \
1915    conftest$ac_exeext conftest.$ac_ext
1916fi
1917eval ac_res=\$$3
1918	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919$as_echo "$ac_res" >&6; }
1920  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921
1922} # ac_fn_c_check_func
1923
1924# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1925# -------------------------------------------------------
1926# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1927# the include files in INCLUDES and setting the cache variable VAR
1928# accordingly.
1929ac_fn_c_check_header_mongrel ()
1930{
1931  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932  if eval \${$3+:} false; then :
1933  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1934$as_echo_n "checking for $2... " >&6; }
1935if eval \${$3+:} false; then :
1936  $as_echo_n "(cached) " >&6
1937fi
1938eval ac_res=\$$3
1939	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940$as_echo "$ac_res" >&6; }
1941else
1942  # Is the header compilable?
1943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1944$as_echo_n "checking $2 usability... " >&6; }
1945cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946/* end confdefs.h.  */
1947$4
1948#include <$2>
1949_ACEOF
1950if ac_fn_c_try_compile "$LINENO"; then :
1951  ac_header_compiler=yes
1952else
1953  ac_header_compiler=no
1954fi
1955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1957$as_echo "$ac_header_compiler" >&6; }
1958
1959# Is the header present?
1960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1961$as_echo_n "checking $2 presence... " >&6; }
1962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963/* end confdefs.h.  */
1964#include <$2>
1965_ACEOF
1966if ac_fn_c_try_cpp "$LINENO"; then :
1967  ac_header_preproc=yes
1968else
1969  ac_header_preproc=no
1970fi
1971rm -f conftest.err conftest.i conftest.$ac_ext
1972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1973$as_echo "$ac_header_preproc" >&6; }
1974
1975# So?  What about this header?
1976case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1977  yes:no: )
1978    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1979$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1980    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1981$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1982    ;;
1983  no:yes:* )
1984    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1985$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1986    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1987$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1988    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1989$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1990    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1991$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1992    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1993$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1994( $as_echo "## ------------------------------------------------- ##
1995## Report this to gphoto-devel@lists.sourceforge.net ##
1996## ------------------------------------------------- ##"
1997     ) | sed "s/^/$as_me: WARNING:     /" >&2
1998    ;;
1999esac
2000  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2001$as_echo_n "checking for $2... " >&6; }
2002if eval \${$3+:} false; then :
2003  $as_echo_n "(cached) " >&6
2004else
2005  eval "$3=\$ac_header_compiler"
2006fi
2007eval ac_res=\$$3
2008	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009$as_echo "$ac_res" >&6; }
2010fi
2011  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012
2013} # ac_fn_c_check_header_mongrel
2014cat >config.log <<_ACEOF
2015This file contains any messages produced by compilers while
2016running configure, to aid debugging if configure makes a mistake.
2017
2018It was created by gphoto filesystem $as_me 0.5, which was
2019generated by GNU Autoconf 2.68.  Invocation command line was
2020
2021  $ $0 $@
2022
2023_ACEOF
2024exec 5>>config.log
2025{
2026cat <<_ASUNAME
2027## --------- ##
2028## Platform. ##
2029## --------- ##
2030
2031hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2032uname -m = `(uname -m) 2>/dev/null || echo unknown`
2033uname -r = `(uname -r) 2>/dev/null || echo unknown`
2034uname -s = `(uname -s) 2>/dev/null || echo unknown`
2035uname -v = `(uname -v) 2>/dev/null || echo unknown`
2036
2037/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2038/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2039
2040/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2041/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2042/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2043/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2044/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2045/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2046/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2047
2048_ASUNAME
2049
2050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051for as_dir in $PATH
2052do
2053  IFS=$as_save_IFS
2054  test -z "$as_dir" && as_dir=.
2055    $as_echo "PATH: $as_dir"
2056  done
2057IFS=$as_save_IFS
2058
2059} >&5
2060
2061cat >&5 <<_ACEOF
2062
2063
2064## ----------- ##
2065## Core tests. ##
2066## ----------- ##
2067
2068_ACEOF
2069
2070
2071# Keep a trace of the command line.
2072# Strip out --no-create and --no-recursion so they do not pile up.
2073# Strip out --silent because we don't want to record it for future runs.
2074# Also quote any args containing shell meta-characters.
2075# Make two passes to allow for proper duplicate-argument suppression.
2076ac_configure_args=
2077ac_configure_args0=
2078ac_configure_args1=
2079ac_must_keep_next=false
2080for ac_pass in 1 2
2081do
2082  for ac_arg
2083  do
2084    case $ac_arg in
2085    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2086    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2087    | -silent | --silent | --silen | --sile | --sil)
2088      continue ;;
2089    *\'*)
2090      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2091    esac
2092    case $ac_pass in
2093    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2094    2)
2095      as_fn_append ac_configure_args1 " '$ac_arg'"
2096      if test $ac_must_keep_next = true; then
2097	ac_must_keep_next=false # Got value, back to normal.
2098      else
2099	case $ac_arg in
2100	  *=* | --config-cache | -C | -disable-* | --disable-* \
2101	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2102	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2103	  | -with-* | --with-* | -without-* | --without-* | --x)
2104	    case "$ac_configure_args0 " in
2105	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2106	    esac
2107	    ;;
2108	  -* ) ac_must_keep_next=true ;;
2109	esac
2110      fi
2111      as_fn_append ac_configure_args " '$ac_arg'"
2112      ;;
2113    esac
2114  done
2115done
2116{ ac_configure_args0=; unset ac_configure_args0;}
2117{ ac_configure_args1=; unset ac_configure_args1;}
2118
2119# When interrupted or exit'd, cleanup temporary files, and complete
2120# config.log.  We remove comments because anyway the quotes in there
2121# would cause problems or look ugly.
2122# WARNING: Use '\'' to represent an apostrophe within the trap.
2123# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2124trap 'exit_status=$?
2125  # Save into config.log some information that might help in debugging.
2126  {
2127    echo
2128
2129    $as_echo "## ---------------- ##
2130## Cache variables. ##
2131## ---------------- ##"
2132    echo
2133    # The following way of writing the cache mishandles newlines in values,
2134(
2135  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2136    eval ac_val=\$$ac_var
2137    case $ac_val in #(
2138    *${as_nl}*)
2139      case $ac_var in #(
2140      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2141$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2142      esac
2143      case $ac_var in #(
2144      _ | IFS | as_nl) ;; #(
2145      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2146      *) { eval $ac_var=; unset $ac_var;} ;;
2147      esac ;;
2148    esac
2149  done
2150  (set) 2>&1 |
2151    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2152    *${as_nl}ac_space=\ *)
2153      sed -n \
2154	"s/'\''/'\''\\\\'\'''\''/g;
2155	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2156      ;; #(
2157    *)
2158      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2159      ;;
2160    esac |
2161    sort
2162)
2163    echo
2164
2165    $as_echo "## ----------------- ##
2166## Output variables. ##
2167## ----------------- ##"
2168    echo
2169    for ac_var in $ac_subst_vars
2170    do
2171      eval ac_val=\$$ac_var
2172      case $ac_val in
2173      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2174      esac
2175      $as_echo "$ac_var='\''$ac_val'\''"
2176    done | sort
2177    echo
2178
2179    if test -n "$ac_subst_files"; then
2180      $as_echo "## ------------------- ##
2181## File substitutions. ##
2182## ------------------- ##"
2183      echo
2184      for ac_var in $ac_subst_files
2185      do
2186	eval ac_val=\$$ac_var
2187	case $ac_val in
2188	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2189	esac
2190	$as_echo "$ac_var='\''$ac_val'\''"
2191      done | sort
2192      echo
2193    fi
2194
2195    if test -s confdefs.h; then
2196      $as_echo "## ----------- ##
2197## confdefs.h. ##
2198## ----------- ##"
2199      echo
2200      cat confdefs.h
2201      echo
2202    fi
2203    test "$ac_signal" != 0 &&
2204      $as_echo "$as_me: caught signal $ac_signal"
2205    $as_echo "$as_me: exit $exit_status"
2206  } >&5
2207  rm -f core *.core core.conftest.* &&
2208    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2209    exit $exit_status
2210' 0
2211for ac_signal in 1 2 13 15; do
2212  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2213done
2214ac_signal=0
2215
2216# confdefs.h avoids OS command line length limits that DEFS can exceed.
2217rm -f -r conftest* confdefs.h
2218
2219$as_echo "/* confdefs.h */" > confdefs.h
2220
2221# Predefined preprocessor variables.
2222
2223cat >>confdefs.h <<_ACEOF
2224#define PACKAGE_NAME "$PACKAGE_NAME"
2225_ACEOF
2226
2227cat >>confdefs.h <<_ACEOF
2228#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2229_ACEOF
2230
2231cat >>confdefs.h <<_ACEOF
2232#define PACKAGE_VERSION "$PACKAGE_VERSION"
2233_ACEOF
2234
2235cat >>confdefs.h <<_ACEOF
2236#define PACKAGE_STRING "$PACKAGE_STRING"
2237_ACEOF
2238
2239cat >>confdefs.h <<_ACEOF
2240#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2241_ACEOF
2242
2243cat >>confdefs.h <<_ACEOF
2244#define PACKAGE_URL "$PACKAGE_URL"
2245_ACEOF
2246
2247
2248# Let the site file select an alternate cache file if it wants to.
2249# Prefer an explicitly selected file to automatically selected ones.
2250ac_site_file1=NONE
2251ac_site_file2=NONE
2252if test -n "$CONFIG_SITE"; then
2253  # We do not want a PATH search for config.site.
2254  case $CONFIG_SITE in #((
2255    -*)  ac_site_file1=./$CONFIG_SITE;;
2256    */*) ac_site_file1=$CONFIG_SITE;;
2257    *)   ac_site_file1=./$CONFIG_SITE;;
2258  esac
2259elif test "x$prefix" != xNONE; then
2260  ac_site_file1=$prefix/share/config.site
2261  ac_site_file2=$prefix/etc/config.site
2262else
2263  ac_site_file1=$ac_default_prefix/share/config.site
2264  ac_site_file2=$ac_default_prefix/etc/config.site
2265fi
2266for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2267do
2268  test "x$ac_site_file" = xNONE && continue
2269  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2270    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2271$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2272    sed 's/^/| /' "$ac_site_file" >&5
2273    . "$ac_site_file" \
2274      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2276as_fn_error $? "failed to load site script $ac_site_file
2277See \`config.log' for more details" "$LINENO" 5; }
2278  fi
2279done
2280
2281if test -r "$cache_file"; then
2282  # Some versions of bash will fail to source /dev/null (special files
2283  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2284  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2285    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2286$as_echo "$as_me: loading cache $cache_file" >&6;}
2287    case $cache_file in
2288      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2289      *)                      . "./$cache_file";;
2290    esac
2291  fi
2292else
2293  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2294$as_echo "$as_me: creating cache $cache_file" >&6;}
2295  >$cache_file
2296fi
2297
2298# Check that the precious variables saved in the cache have kept the same
2299# value.
2300ac_cache_corrupted=false
2301for ac_var in $ac_precious_vars; do
2302  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2303  eval ac_new_set=\$ac_env_${ac_var}_set
2304  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2305  eval ac_new_val=\$ac_env_${ac_var}_value
2306  case $ac_old_set,$ac_new_set in
2307    set,)
2308      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2309$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2310      ac_cache_corrupted=: ;;
2311    ,set)
2312      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2313$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2314      ac_cache_corrupted=: ;;
2315    ,);;
2316    *)
2317      if test "x$ac_old_val" != "x$ac_new_val"; then
2318	# differences in whitespace do not lead to failure.
2319	ac_old_val_w=`echo x $ac_old_val`
2320	ac_new_val_w=`echo x $ac_new_val`
2321	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2322	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2323$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2324	  ac_cache_corrupted=:
2325	else
2326	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2327$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2328	  eval $ac_var=\$ac_old_val
2329	fi
2330	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2331$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2332	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2333$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2334      fi;;
2335  esac
2336  # Pass precious variables to config.status.
2337  if test "$ac_new_set" = set; then
2338    case $ac_new_val in
2339    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2340    *) ac_arg=$ac_var=$ac_new_val ;;
2341    esac
2342    case " $ac_configure_args " in
2343      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2344      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2345    esac
2346  fi
2347done
2348if $ac_cache_corrupted; then
2349  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2350$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2351  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2352$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2353  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2354fi
2355## -------------------- ##
2356## Main body of script. ##
2357## -------------------- ##
2358
2359ac_ext=c
2360ac_cpp='$CPP $CPPFLAGS'
2361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2363ac_compiler_gnu=$ac_cv_c_compiler_gnu
2364
2365
2366
2367ac_config_headers="$ac_config_headers config.h"
2368
2369ac_aux_dir=
2370for ac_dir in auto-aux "$srcdir"/auto-aux; do
2371  if test -f "$ac_dir/install-sh"; then
2372    ac_aux_dir=$ac_dir
2373    ac_install_sh="$ac_aux_dir/install-sh -c"
2374    break
2375  elif test -f "$ac_dir/install.sh"; then
2376    ac_aux_dir=$ac_dir
2377    ac_install_sh="$ac_aux_dir/install.sh -c"
2378    break
2379  elif test -f "$ac_dir/shtool"; then
2380    ac_aux_dir=$ac_dir
2381    ac_install_sh="$ac_aux_dir/shtool install -c"
2382    break
2383  fi
2384done
2385if test -z "$ac_aux_dir"; then
2386  as_fn_error $? "cannot find install-sh, install.sh, or shtool in auto-aux \"$srcdir\"/auto-aux" "$LINENO" 5
2387fi
2388
2389# These three variables are undocumented and unsupported,
2390# and are intended to be withdrawn in a future Autoconf release.
2391# They can cause serious problems if a builder's source tree is in a directory
2392# whose full name contains unusual characters.
2393ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2394ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2395ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2396
2397
2398am__api_version='1.11'
2399
2400# Find a good install program.  We prefer a C program (faster),
2401# so one script is as good as another.  But avoid the broken or
2402# incompatible versions:
2403# SysV /etc/install, /usr/sbin/install
2404# SunOS /usr/etc/install
2405# IRIX /sbin/install
2406# AIX /bin/install
2407# AmigaOS /C/install, which installs bootblocks on floppy discs
2408# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2409# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2410# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2411# OS/2's system install, which has a completely different semantic
2412# ./install, which can be erroneously created by make from ./install.sh.
2413# Reject install programs that cannot install multiple files.
2414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2415$as_echo_n "checking for a BSD-compatible install... " >&6; }
2416if test -z "$INSTALL"; then
2417if ${ac_cv_path_install+:} false; then :
2418  $as_echo_n "(cached) " >&6
2419else
2420  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421for as_dir in $PATH
2422do
2423  IFS=$as_save_IFS
2424  test -z "$as_dir" && as_dir=.
2425    # Account for people who put trailing slashes in PATH elements.
2426case $as_dir/ in #((
2427  ./ | .// | /[cC]/* | \
2428  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2429  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2430  /usr/ucb/* ) ;;
2431  *)
2432    # OSF1 and SCO ODT 3.0 have their own names for install.
2433    # Don't use installbsd from OSF since it installs stuff as root
2434    # by default.
2435    for ac_prog in ginstall scoinst install; do
2436      for ac_exec_ext in '' $ac_executable_extensions; do
2437	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2438	  if test $ac_prog = install &&
2439	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2440	    # AIX install.  It has an incompatible calling convention.
2441	    :
2442	  elif test $ac_prog = install &&
2443	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2444	    # program-specific install script used by HP pwplus--don't use.
2445	    :
2446	  else
2447	    rm -rf conftest.one conftest.two conftest.dir
2448	    echo one > conftest.one
2449	    echo two > conftest.two
2450	    mkdir conftest.dir
2451	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2452	      test -s conftest.one && test -s conftest.two &&
2453	      test -s conftest.dir/conftest.one &&
2454	      test -s conftest.dir/conftest.two
2455	    then
2456	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2457	      break 3
2458	    fi
2459	  fi
2460	fi
2461      done
2462    done
2463    ;;
2464esac
2465
2466  done
2467IFS=$as_save_IFS
2468
2469rm -rf conftest.one conftest.two conftest.dir
2470
2471fi
2472  if test "${ac_cv_path_install+set}" = set; then
2473    INSTALL=$ac_cv_path_install
2474  else
2475    # As a last resort, use the slow shell script.  Don't cache a
2476    # value for INSTALL within a source directory, because that will
2477    # break other packages using the cache if that directory is
2478    # removed, or if the value is a relative name.
2479    INSTALL=$ac_install_sh
2480  fi
2481fi
2482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2483$as_echo "$INSTALL" >&6; }
2484
2485# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2486# It thinks the first close brace ends the variable substitution.
2487test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2488
2489test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2490
2491test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2492
2493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2494$as_echo_n "checking whether build environment is sane... " >&6; }
2495# Just in case
2496sleep 1
2497echo timestamp > conftest.file
2498# Reject unsafe characters in $srcdir or the absolute working directory
2499# name.  Accept space and tab only in the latter.
2500am_lf='
2501'
2502case `pwd` in
2503  *[\\\"\#\$\&\'\`$am_lf]*)
2504    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2505esac
2506case $srcdir in
2507  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2508    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2509esac
2510
2511# Do `set' in a subshell so we don't clobber the current shell's
2512# arguments.  Must try -L first in case configure is actually a
2513# symlink; some systems play weird games with the mod time of symlinks
2514# (eg FreeBSD returns the mod time of the symlink's containing
2515# directory).
2516if (
2517   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2518   if test "$*" = "X"; then
2519      # -L didn't work.
2520      set X `ls -t "$srcdir/configure" conftest.file`
2521   fi
2522   rm -f conftest.file
2523   if test "$*" != "X $srcdir/configure conftest.file" \
2524      && test "$*" != "X conftest.file $srcdir/configure"; then
2525
2526      # If neither matched, then we have a broken ls.  This can happen
2527      # if, for instance, CONFIG_SHELL is bash and it inherits a
2528      # broken ls alias from the environment.  This has actually
2529      # happened.  Such a system could not be considered "sane".
2530      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2531alias in your environment" "$LINENO" 5
2532   fi
2533
2534   test "$2" = conftest.file
2535   )
2536then
2537   # Ok.
2538   :
2539else
2540   as_fn_error $? "newly created file is older than distributed files!
2541Check your system clock" "$LINENO" 5
2542fi
2543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2544$as_echo "yes" >&6; }
2545test "$program_prefix" != NONE &&
2546  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2547# Use a double $ so make ignores it.
2548test "$program_suffix" != NONE &&
2549  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2550# Double any \ or $.
2551# By default was `s,x,x', remove it if useless.
2552ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2553program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2554
2555# expand $ac_aux_dir to an absolute path
2556am_aux_dir=`cd $ac_aux_dir && pwd`
2557
2558if test x"${MISSING+set}" != xset; then
2559  case $am_aux_dir in
2560  *\ * | *\	*)
2561    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2562  *)
2563    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2564  esac
2565fi
2566# Use eval to expand $SHELL
2567if eval "$MISSING --run true"; then
2568  am_missing_run="$MISSING --run "
2569else
2570  am_missing_run=
2571  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2572$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2573fi
2574
2575if test x"${install_sh}" != xset; then
2576  case $am_aux_dir in
2577  *\ * | *\	*)
2578    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2579  *)
2580    install_sh="\${SHELL} $am_aux_dir/install-sh"
2581  esac
2582fi
2583
2584# Installed binaries are usually stripped using `strip' when the user
2585# run `make install-strip'.  However `strip' might not be the right
2586# tool to use in cross-compilation environments, therefore Automake
2587# will honor the `STRIP' environment variable to overrule this program.
2588if test "$cross_compiling" != no; then
2589  if test -n "$ac_tool_prefix"; then
2590  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2591set dummy ${ac_tool_prefix}strip; ac_word=$2
2592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2593$as_echo_n "checking for $ac_word... " >&6; }
2594if ${ac_cv_prog_STRIP+:} false; then :
2595  $as_echo_n "(cached) " >&6
2596else
2597  if test -n "$STRIP"; then
2598  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2599else
2600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2601for as_dir in $PATH
2602do
2603  IFS=$as_save_IFS
2604  test -z "$as_dir" && as_dir=.
2605    for ac_exec_ext in '' $ac_executable_extensions; do
2606  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2607    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2608    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2609    break 2
2610  fi
2611done
2612  done
2613IFS=$as_save_IFS
2614
2615fi
2616fi
2617STRIP=$ac_cv_prog_STRIP
2618if test -n "$STRIP"; then
2619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2620$as_echo "$STRIP" >&6; }
2621else
2622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2623$as_echo "no" >&6; }
2624fi
2625
2626
2627fi
2628if test -z "$ac_cv_prog_STRIP"; then
2629  ac_ct_STRIP=$STRIP
2630  # Extract the first word of "strip", so it can be a program name with args.
2631set dummy strip; ac_word=$2
2632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2633$as_echo_n "checking for $ac_word... " >&6; }
2634if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2635  $as_echo_n "(cached) " >&6
2636else
2637  if test -n "$ac_ct_STRIP"; then
2638  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2639else
2640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641for as_dir in $PATH
2642do
2643  IFS=$as_save_IFS
2644  test -z "$as_dir" && as_dir=.
2645    for ac_exec_ext in '' $ac_executable_extensions; do
2646  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2647    ac_cv_prog_ac_ct_STRIP="strip"
2648    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2649    break 2
2650  fi
2651done
2652  done
2653IFS=$as_save_IFS
2654
2655fi
2656fi
2657ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2658if test -n "$ac_ct_STRIP"; then
2659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2660$as_echo "$ac_ct_STRIP" >&6; }
2661else
2662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2663$as_echo "no" >&6; }
2664fi
2665
2666  if test "x$ac_ct_STRIP" = x; then
2667    STRIP=":"
2668  else
2669    case $cross_compiling:$ac_tool_warned in
2670yes:)
2671{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2672$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2673ac_tool_warned=yes ;;
2674esac
2675    STRIP=$ac_ct_STRIP
2676  fi
2677else
2678  STRIP="$ac_cv_prog_STRIP"
2679fi
2680
2681fi
2682INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2683
2684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2685$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2686if test -z "$MKDIR_P"; then
2687  if ${ac_cv_path_mkdir+:} false; then :
2688  $as_echo_n "(cached) " >&6
2689else
2690  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2692do
2693  IFS=$as_save_IFS
2694  test -z "$as_dir" && as_dir=.
2695    for ac_prog in mkdir gmkdir; do
2696	 for ac_exec_ext in '' $ac_executable_extensions; do
2697	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2698	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2699	     'mkdir (GNU coreutils) '* | \
2700	     'mkdir (coreutils) '* | \
2701	     'mkdir (fileutils) '4.1*)
2702	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2703	       break 3;;
2704	   esac
2705	 done
2706       done
2707  done
2708IFS=$as_save_IFS
2709
2710fi
2711
2712  test -d ./--version && rmdir ./--version
2713  if test "${ac_cv_path_mkdir+set}" = set; then
2714    MKDIR_P="$ac_cv_path_mkdir -p"
2715  else
2716    # As a last resort, use the slow shell script.  Don't cache a
2717    # value for MKDIR_P within a source directory, because that will
2718    # break other packages using the cache if that directory is
2719    # removed, or if the value is a relative name.
2720    MKDIR_P="$ac_install_sh -d"
2721  fi
2722fi
2723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2724$as_echo "$MKDIR_P" >&6; }
2725
2726mkdir_p="$MKDIR_P"
2727case $mkdir_p in
2728  [\\/$]* | ?:[\\/]*) ;;
2729  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2730esac
2731
2732for ac_prog in gawk mawk nawk awk
2733do
2734  # Extract the first word of "$ac_prog", so it can be a program name with args.
2735set dummy $ac_prog; ac_word=$2
2736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2737$as_echo_n "checking for $ac_word... " >&6; }
2738if ${ac_cv_prog_AWK+:} false; then :
2739  $as_echo_n "(cached) " >&6
2740else
2741  if test -n "$AWK"; then
2742  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2743else
2744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745for as_dir in $PATH
2746do
2747  IFS=$as_save_IFS
2748  test -z "$as_dir" && as_dir=.
2749    for ac_exec_ext in '' $ac_executable_extensions; do
2750  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2751    ac_cv_prog_AWK="$ac_prog"
2752    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2753    break 2
2754  fi
2755done
2756  done
2757IFS=$as_save_IFS
2758
2759fi
2760fi
2761AWK=$ac_cv_prog_AWK
2762if test -n "$AWK"; then
2763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2764$as_echo "$AWK" >&6; }
2765else
2766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2767$as_echo "no" >&6; }
2768fi
2769
2770
2771  test -n "$AWK" && break
2772done
2773
2774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2775$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2776set x ${MAKE-make}
2777ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2778if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2779  $as_echo_n "(cached) " >&6
2780else
2781  cat >conftest.make <<\_ACEOF
2782SHELL = /bin/sh
2783all:
2784	@echo '@@@%%%=$(MAKE)=@@@%%%'
2785_ACEOF
2786# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2787case `${MAKE-make} -f conftest.make 2>/dev/null` in
2788  *@@@%%%=?*=@@@%%%*)
2789    eval ac_cv_prog_make_${ac_make}_set=yes;;
2790  *)
2791    eval ac_cv_prog_make_${ac_make}_set=no;;
2792esac
2793rm -f conftest.make
2794fi
2795if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2797$as_echo "yes" >&6; }
2798  SET_MAKE=
2799else
2800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801$as_echo "no" >&6; }
2802  SET_MAKE="MAKE=${MAKE-make}"
2803fi
2804
2805rm -rf .tst 2>/dev/null
2806mkdir .tst 2>/dev/null
2807if test -d .tst; then
2808  am__leading_dot=.
2809else
2810  am__leading_dot=_
2811fi
2812rmdir .tst 2>/dev/null
2813
2814if test "`cd $srcdir && pwd`" != "`pwd`"; then
2815  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2816  # is not polluted with repeated "-I."
2817  am__isrc=' -I$(srcdir)'
2818  # test to see if srcdir already configured
2819  if test -f $srcdir/config.status; then
2820    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2821  fi
2822fi
2823
2824# test whether we have cygpath
2825if test -z "$CYGPATH_W"; then
2826  if (cygpath --version) >/dev/null 2>/dev/null; then
2827    CYGPATH_W='cygpath -w'
2828  else
2829    CYGPATH_W=echo
2830  fi
2831fi
2832
2833
2834# Define the identity of the package.
2835 PACKAGE='gphotofs'
2836 VERSION='0.5'
2837
2838
2839cat >>confdefs.h <<_ACEOF
2840#define PACKAGE "$PACKAGE"
2841_ACEOF
2842
2843
2844cat >>confdefs.h <<_ACEOF
2845#define VERSION "$VERSION"
2846_ACEOF
2847
2848# Some tools Automake needs.
2849
2850ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2851
2852
2853AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2854
2855
2856AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2857
2858
2859AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2860
2861
2862MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2863
2864# We need awk for the "check" target.  The system "awk" is bad on
2865# some platforms.
2866# Always define AMTAR for backward compatibility.
2867
2868AMTAR=${AMTAR-"${am_missing_run}tar"}
2869
2870am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2871
2872
2873
2874
2875
2876
2877if test ! -d "$srcdir/m4m"; then
2878as_fn_error $? "
2879You are missing the m4m/ directory in your top
2880$PACKAGE_TARNAME source directory.
2881
2882You are probably using an ill-maintained SVN tree.
2883Running
2884
2885    cd $srcdir
2886    svn up
2887
2888and re-running autogen.sh might help.
2889" "$LINENO" 5
2890fi
2891
2892
2893# make sure "cd" doesn't print anything on stdout
2894if test x"${CDPATH+set}" = xset
2895then
2896	CDPATH=:
2897	export CDPATH
2898fi
2899
2900# make sure $() command substitution works
2901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX sh \$() command substitution" >&5
2902$as_echo_n "checking for POSIX sh \$() command substitution... " >&6; }
2903if test "x$(pwd)" = "x`pwd`" && test "y$(echo "foobar")" = "y`echo foobar`" # ''''
2904then
2905	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2906$as_echo "yes" >&6; }
2907else
2908	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2909$as_echo "no" >&6; }
2910	uname=`uname 2>&1` # ''
2911	uname_a=`uname -a 2>&1` # ''
2912	as_fn_error $? "
2913
2914* POSIX sh \$() command substition does not work with this shell.
2915*
2916* You are running a very rare species of shell. Please report this
2917* sighting to <${PACKAGE_BUGREPORT}>:
2918* SHELL=${SHELL}
2919* uname=${uname}
2920* uname-a=${uname_a}
2921* Please also include your OS and version.
2922*
2923* Run this configure script using a better (i.e. POSIX compliant) shell.
2924" "$LINENO" 5
2925fi
2926
2927
2928
2929ac_ext=c
2930ac_cpp='$CPP $CPPFLAGS'
2931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2933ac_compiler_gnu=$ac_cv_c_compiler_gnu
2934if test -n "$ac_tool_prefix"; then
2935  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2936set dummy ${ac_tool_prefix}gcc; ac_word=$2
2937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2938$as_echo_n "checking for $ac_word... " >&6; }
2939if ${ac_cv_prog_CC+:} false; then :
2940  $as_echo_n "(cached) " >&6
2941else
2942  if test -n "$CC"; then
2943  ac_cv_prog_CC="$CC" # Let the user override the test.
2944else
2945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946for as_dir in $PATH
2947do
2948  IFS=$as_save_IFS
2949  test -z "$as_dir" && as_dir=.
2950    for ac_exec_ext in '' $ac_executable_extensions; do
2951  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2952    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2953    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2954    break 2
2955  fi
2956done
2957  done
2958IFS=$as_save_IFS
2959
2960fi
2961fi
2962CC=$ac_cv_prog_CC
2963if test -n "$CC"; then
2964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2965$as_echo "$CC" >&6; }
2966else
2967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2968$as_echo "no" >&6; }
2969fi
2970
2971
2972fi
2973if test -z "$ac_cv_prog_CC"; then
2974  ac_ct_CC=$CC
2975  # Extract the first word of "gcc", so it can be a program name with args.
2976set dummy gcc; ac_word=$2
2977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2978$as_echo_n "checking for $ac_word... " >&6; }
2979if ${ac_cv_prog_ac_ct_CC+:} false; then :
2980  $as_echo_n "(cached) " >&6
2981else
2982  if test -n "$ac_ct_CC"; then
2983  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2984else
2985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986for as_dir in $PATH
2987do
2988  IFS=$as_save_IFS
2989  test -z "$as_dir" && as_dir=.
2990    for ac_exec_ext in '' $ac_executable_extensions; do
2991  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2992    ac_cv_prog_ac_ct_CC="gcc"
2993    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994    break 2
2995  fi
2996done
2997  done
2998IFS=$as_save_IFS
2999
3000fi
3001fi
3002ac_ct_CC=$ac_cv_prog_ac_ct_CC
3003if test -n "$ac_ct_CC"; then
3004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3005$as_echo "$ac_ct_CC" >&6; }
3006else
3007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3008$as_echo "no" >&6; }
3009fi
3010
3011  if test "x$ac_ct_CC" = x; then
3012    CC=""
3013  else
3014    case $cross_compiling:$ac_tool_warned in
3015yes:)
3016{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3017$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3018ac_tool_warned=yes ;;
3019esac
3020    CC=$ac_ct_CC
3021  fi
3022else
3023  CC="$ac_cv_prog_CC"
3024fi
3025
3026if test -z "$CC"; then
3027          if test -n "$ac_tool_prefix"; then
3028    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3029set dummy ${ac_tool_prefix}cc; ac_word=$2
3030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3031$as_echo_n "checking for $ac_word... " >&6; }
3032if ${ac_cv_prog_CC+:} false; then :
3033  $as_echo_n "(cached) " >&6
3034else
3035  if test -n "$CC"; then
3036  ac_cv_prog_CC="$CC" # Let the user override the test.
3037else
3038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039for as_dir in $PATH
3040do
3041  IFS=$as_save_IFS
3042  test -z "$as_dir" && as_dir=.
3043    for ac_exec_ext in '' $ac_executable_extensions; do
3044  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3045    ac_cv_prog_CC="${ac_tool_prefix}cc"
3046    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3047    break 2
3048  fi
3049done
3050  done
3051IFS=$as_save_IFS
3052
3053fi
3054fi
3055CC=$ac_cv_prog_CC
3056if test -n "$CC"; then
3057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3058$as_echo "$CC" >&6; }
3059else
3060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3061$as_echo "no" >&6; }
3062fi
3063
3064
3065  fi
3066fi
3067if test -z "$CC"; then
3068  # Extract the first word of "cc", so it can be a program name with args.
3069set dummy cc; ac_word=$2
3070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3071$as_echo_n "checking for $ac_word... " >&6; }
3072if ${ac_cv_prog_CC+:} false; then :
3073  $as_echo_n "(cached) " >&6
3074else
3075  if test -n "$CC"; then
3076  ac_cv_prog_CC="$CC" # Let the user override the test.
3077else
3078  ac_prog_rejected=no
3079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080for as_dir in $PATH
3081do
3082  IFS=$as_save_IFS
3083  test -z "$as_dir" && as_dir=.
3084    for ac_exec_ext in '' $ac_executable_extensions; do
3085  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3086    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3087       ac_prog_rejected=yes
3088       continue
3089     fi
3090    ac_cv_prog_CC="cc"
3091    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3092    break 2
3093  fi
3094done
3095  done
3096IFS=$as_save_IFS
3097
3098if test $ac_prog_rejected = yes; then
3099  # We found a bogon in the path, so make sure we never use it.
3100  set dummy $ac_cv_prog_CC
3101  shift
3102  if test $# != 0; then
3103    # We chose a different compiler from the bogus one.
3104    # However, it has the same basename, so the bogon will be chosen
3105    # first if we set CC to just the basename; use the full file name.
3106    shift
3107    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3108  fi
3109fi
3110fi
3111fi
3112CC=$ac_cv_prog_CC
3113if test -n "$CC"; then
3114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3115$as_echo "$CC" >&6; }
3116else
3117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118$as_echo "no" >&6; }
3119fi
3120
3121
3122fi
3123if test -z "$CC"; then
3124  if test -n "$ac_tool_prefix"; then
3125  for ac_prog in cl.exe
3126  do
3127    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3128set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3130$as_echo_n "checking for $ac_word... " >&6; }
3131if ${ac_cv_prog_CC+:} false; then :
3132  $as_echo_n "(cached) " >&6
3133else
3134  if test -n "$CC"; then
3135  ac_cv_prog_CC="$CC" # Let the user override the test.
3136else
3137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138for as_dir in $PATH
3139do
3140  IFS=$as_save_IFS
3141  test -z "$as_dir" && as_dir=.
3142    for ac_exec_ext in '' $ac_executable_extensions; do
3143  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3144    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3145    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3146    break 2
3147  fi
3148done
3149  done
3150IFS=$as_save_IFS
3151
3152fi
3153fi
3154CC=$ac_cv_prog_CC
3155if test -n "$CC"; then
3156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3157$as_echo "$CC" >&6; }
3158else
3159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3160$as_echo "no" >&6; }
3161fi
3162
3163
3164    test -n "$CC" && break
3165  done
3166fi
3167if test -z "$CC"; then
3168  ac_ct_CC=$CC
3169  for ac_prog in cl.exe
3170do
3171  # Extract the first word of "$ac_prog", so it can be a program name with args.
3172set dummy $ac_prog; ac_word=$2
3173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174$as_echo_n "checking for $ac_word... " >&6; }
3175if ${ac_cv_prog_ac_ct_CC+:} false; then :
3176  $as_echo_n "(cached) " >&6
3177else
3178  if test -n "$ac_ct_CC"; then
3179  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3180else
3181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182for as_dir in $PATH
3183do
3184  IFS=$as_save_IFS
3185  test -z "$as_dir" && as_dir=.
3186    for ac_exec_ext in '' $ac_executable_extensions; do
3187  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3188    ac_cv_prog_ac_ct_CC="$ac_prog"
3189    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3190    break 2
3191  fi
3192done
3193  done
3194IFS=$as_save_IFS
3195
3196fi
3197fi
3198ac_ct_CC=$ac_cv_prog_ac_ct_CC
3199if test -n "$ac_ct_CC"; then
3200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3201$as_echo "$ac_ct_CC" >&6; }
3202else
3203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204$as_echo "no" >&6; }
3205fi
3206
3207
3208  test -n "$ac_ct_CC" && break
3209done
3210
3211  if test "x$ac_ct_CC" = x; then
3212    CC=""
3213  else
3214    case $cross_compiling:$ac_tool_warned in
3215yes:)
3216{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3218ac_tool_warned=yes ;;
3219esac
3220    CC=$ac_ct_CC
3221  fi
3222fi
3223
3224fi
3225
3226
3227test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3228$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3229as_fn_error $? "no acceptable C compiler found in \$PATH
3230See \`config.log' for more details" "$LINENO" 5; }
3231
3232# Provide some information about the compiler.
3233$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3234set X $ac_compile
3235ac_compiler=$2
3236for ac_option in --version -v -V -qversion; do
3237  { { ac_try="$ac_compiler $ac_option >&5"
3238case "(($ac_try" in
3239  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240  *) ac_try_echo=$ac_try;;
3241esac
3242eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3243$as_echo "$ac_try_echo"; } >&5
3244  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3245  ac_status=$?
3246  if test -s conftest.err; then
3247    sed '10a\
3248... rest of stderr output deleted ...
3249         10q' conftest.err >conftest.er1
3250    cat conftest.er1 >&5
3251  fi
3252  rm -f conftest.er1 conftest.err
3253  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3254  test $ac_status = 0; }
3255done
3256
3257cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3258/* end confdefs.h.  */
3259
3260int
3261main ()
3262{
3263
3264  ;
3265  return 0;
3266}
3267_ACEOF
3268ac_clean_files_save=$ac_clean_files
3269ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3270# Try to create an executable without -o first, disregard a.out.
3271# It will help us diagnose broken compilers, and finding out an intuition
3272# of exeext.
3273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3274$as_echo_n "checking whether the C compiler works... " >&6; }
3275ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3276
3277# The possible output files:
3278ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3279
3280ac_rmfiles=
3281for ac_file in $ac_files
3282do
3283  case $ac_file in
3284    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3285    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3286  esac
3287done
3288rm -f $ac_rmfiles
3289
3290if { { ac_try="$ac_link_default"
3291case "(($ac_try" in
3292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293  *) ac_try_echo=$ac_try;;
3294esac
3295eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3296$as_echo "$ac_try_echo"; } >&5
3297  (eval "$ac_link_default") 2>&5
3298  ac_status=$?
3299  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3300  test $ac_status = 0; }; then :
3301  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3302# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3303# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3304# so that the user can short-circuit this test for compilers unknown to
3305# Autoconf.
3306for ac_file in $ac_files ''
3307do
3308  test -f "$ac_file" || continue
3309  case $ac_file in
3310    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3311	;;
3312    [ab].out )
3313	# We found the default executable, but exeext='' is most
3314	# certainly right.
3315	break;;
3316    *.* )
3317	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3318	then :; else
3319	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3320	fi
3321	# We set ac_cv_exeext here because the later test for it is not
3322	# safe: cross compilers may not add the suffix if given an `-o'
3323	# argument, so we may need to know it at that point already.
3324	# Even if this section looks crufty: it has the advantage of
3325	# actually working.
3326	break;;
3327    * )
3328	break;;
3329  esac
3330done
3331test "$ac_cv_exeext" = no && ac_cv_exeext=
3332
3333else
3334  ac_file=''
3335fi
3336if test -z "$ac_file"; then :
3337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3338$as_echo "no" >&6; }
3339$as_echo "$as_me: failed program was:" >&5
3340sed 's/^/| /' conftest.$ac_ext >&5
3341
3342{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3343$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3344as_fn_error 77 "C compiler cannot create executables
3345See \`config.log' for more details" "$LINENO" 5; }
3346else
3347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3348$as_echo "yes" >&6; }
3349fi
3350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3351$as_echo_n "checking for C compiler default output file name... " >&6; }
3352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3353$as_echo "$ac_file" >&6; }
3354ac_exeext=$ac_cv_exeext
3355
3356rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3357ac_clean_files=$ac_clean_files_save
3358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3359$as_echo_n "checking for suffix of executables... " >&6; }
3360if { { ac_try="$ac_link"
3361case "(($ac_try" in
3362  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363  *) ac_try_echo=$ac_try;;
3364esac
3365eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3366$as_echo "$ac_try_echo"; } >&5
3367  (eval "$ac_link") 2>&5
3368  ac_status=$?
3369  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3370  test $ac_status = 0; }; then :
3371  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3372# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3373# work properly (i.e., refer to `conftest.exe'), while it won't with
3374# `rm'.
3375for ac_file in conftest.exe conftest conftest.*; do
3376  test -f "$ac_file" || continue
3377  case $ac_file in
3378    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3379    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3380	  break;;
3381    * ) break;;
3382  esac
3383done
3384else
3385  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3386$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3387as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3388See \`config.log' for more details" "$LINENO" 5; }
3389fi
3390rm -f conftest conftest$ac_cv_exeext
3391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3392$as_echo "$ac_cv_exeext" >&6; }
3393
3394rm -f conftest.$ac_ext
3395EXEEXT=$ac_cv_exeext
3396ac_exeext=$EXEEXT
3397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3398/* end confdefs.h.  */
3399#include <stdio.h>
3400int
3401main ()
3402{
3403FILE *f = fopen ("conftest.out", "w");
3404 return ferror (f) || fclose (f) != 0;
3405
3406  ;
3407  return 0;
3408}
3409_ACEOF
3410ac_clean_files="$ac_clean_files conftest.out"
3411# Check that the compiler produces executables we can run.  If not, either
3412# the compiler is broken, or we cross compile.
3413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3414$as_echo_n "checking whether we are cross compiling... " >&6; }
3415if test "$cross_compiling" != yes; then
3416  { { ac_try="$ac_link"
3417case "(($ac_try" in
3418  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419  *) ac_try_echo=$ac_try;;
3420esac
3421eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3422$as_echo "$ac_try_echo"; } >&5
3423  (eval "$ac_link") 2>&5
3424  ac_status=$?
3425  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3426  test $ac_status = 0; }
3427  if { ac_try='./conftest$ac_cv_exeext'
3428  { { case "(($ac_try" in
3429  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430  *) ac_try_echo=$ac_try;;
3431esac
3432eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3433$as_echo "$ac_try_echo"; } >&5
3434  (eval "$ac_try") 2>&5
3435  ac_status=$?
3436  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3437  test $ac_status = 0; }; }; then
3438    cross_compiling=no
3439  else
3440    if test "$cross_compiling" = maybe; then
3441	cross_compiling=yes
3442    else
3443	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3444$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3445as_fn_error $? "cannot run C compiled programs.
3446If you meant to cross compile, use \`--host'.
3447See \`config.log' for more details" "$LINENO" 5; }
3448    fi
3449  fi
3450fi
3451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3452$as_echo "$cross_compiling" >&6; }
3453
3454rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3455ac_clean_files=$ac_clean_files_save
3456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3457$as_echo_n "checking for suffix of object files... " >&6; }
3458if ${ac_cv_objext+:} false; then :
3459  $as_echo_n "(cached) " >&6
3460else
3461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462/* end confdefs.h.  */
3463
3464int
3465main ()
3466{
3467
3468  ;
3469  return 0;
3470}
3471_ACEOF
3472rm -f conftest.o conftest.obj
3473if { { ac_try="$ac_compile"
3474case "(($ac_try" in
3475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476  *) ac_try_echo=$ac_try;;
3477esac
3478eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3479$as_echo "$ac_try_echo"; } >&5
3480  (eval "$ac_compile") 2>&5
3481  ac_status=$?
3482  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3483  test $ac_status = 0; }; then :
3484  for ac_file in conftest.o conftest.obj conftest.*; do
3485  test -f "$ac_file" || continue;
3486  case $ac_file in
3487    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3488    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3489       break;;
3490  esac
3491done
3492else
3493  $as_echo "$as_me: failed program was:" >&5
3494sed 's/^/| /' conftest.$ac_ext >&5
3495
3496{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3497$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3498as_fn_error $? "cannot compute suffix of object files: cannot compile
3499See \`config.log' for more details" "$LINENO" 5; }
3500fi
3501rm -f conftest.$ac_cv_objext conftest.$ac_ext
3502fi
3503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3504$as_echo "$ac_cv_objext" >&6; }
3505OBJEXT=$ac_cv_objext
3506ac_objext=$OBJEXT
3507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3508$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3509if ${ac_cv_c_compiler_gnu+:} false; then :
3510  $as_echo_n "(cached) " >&6
3511else
3512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513/* end confdefs.h.  */
3514
3515int
3516main ()
3517{
3518#ifndef __GNUC__
3519       choke me
3520#endif
3521
3522  ;
3523  return 0;
3524}
3525_ACEOF
3526if ac_fn_c_try_compile "$LINENO"; then :
3527  ac_compiler_gnu=yes
3528else
3529  ac_compiler_gnu=no
3530fi
3531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3532ac_cv_c_compiler_gnu=$ac_compiler_gnu
3533
3534fi
3535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3536$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3537if test $ac_compiler_gnu = yes; then
3538  GCC=yes
3539else
3540  GCC=
3541fi
3542ac_test_CFLAGS=${CFLAGS+set}
3543ac_save_CFLAGS=$CFLAGS
3544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3545$as_echo_n "checking whether $CC accepts -g... " >&6; }
3546if ${ac_cv_prog_cc_g+:} false; then :
3547  $as_echo_n "(cached) " >&6
3548else
3549  ac_save_c_werror_flag=$ac_c_werror_flag
3550   ac_c_werror_flag=yes
3551   ac_cv_prog_cc_g=no
3552   CFLAGS="-g"
3553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554/* end confdefs.h.  */
3555
3556int
3557main ()
3558{
3559
3560  ;
3561  return 0;
3562}
3563_ACEOF
3564if ac_fn_c_try_compile "$LINENO"; then :
3565  ac_cv_prog_cc_g=yes
3566else
3567  CFLAGS=""
3568      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3569/* end confdefs.h.  */
3570
3571int
3572main ()
3573{
3574
3575  ;
3576  return 0;
3577}
3578_ACEOF
3579if ac_fn_c_try_compile "$LINENO"; then :
3580
3581else
3582  ac_c_werror_flag=$ac_save_c_werror_flag
3583	 CFLAGS="-g"
3584	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585/* end confdefs.h.  */
3586
3587int
3588main ()
3589{
3590
3591  ;
3592  return 0;
3593}
3594_ACEOF
3595if ac_fn_c_try_compile "$LINENO"; then :
3596  ac_cv_prog_cc_g=yes
3597fi
3598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3599fi
3600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3601fi
3602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3603   ac_c_werror_flag=$ac_save_c_werror_flag
3604fi
3605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3606$as_echo "$ac_cv_prog_cc_g" >&6; }
3607if test "$ac_test_CFLAGS" = set; then
3608  CFLAGS=$ac_save_CFLAGS
3609elif test $ac_cv_prog_cc_g = yes; then
3610  if test "$GCC" = yes; then
3611    CFLAGS="-g -O2"
3612  else
3613    CFLAGS="-g"
3614  fi
3615else
3616  if test "$GCC" = yes; then
3617    CFLAGS="-O2"
3618  else
3619    CFLAGS=
3620  fi
3621fi
3622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3623$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3624if ${ac_cv_prog_cc_c89+:} false; then :
3625  $as_echo_n "(cached) " >&6
3626else
3627  ac_cv_prog_cc_c89=no
3628ac_save_CC=$CC
3629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3630/* end confdefs.h.  */
3631#include <stdarg.h>
3632#include <stdio.h>
3633#include <sys/types.h>
3634#include <sys/stat.h>
3635/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3636struct buf { int x; };
3637FILE * (*rcsopen) (struct buf *, struct stat *, int);
3638static char *e (p, i)
3639     char **p;
3640     int i;
3641{
3642  return p[i];
3643}
3644static char *f (char * (*g) (char **, int), char **p, ...)
3645{
3646  char *s;
3647  va_list v;
3648  va_start (v,p);
3649  s = g (p, va_arg (v,int));
3650  va_end (v);
3651  return s;
3652}
3653
3654/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3655   function prototypes and stuff, but not '\xHH' hex character constants.
3656   These don't provoke an error unfortunately, instead are silently treated
3657   as 'x'.  The following induces an error, until -std is added to get
3658   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3659   array size at least.  It's necessary to write '\x00'==0 to get something
3660   that's true only with -std.  */
3661int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3662
3663/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3664   inside strings and character constants.  */
3665#define FOO(x) 'x'
3666int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3667
3668int test (int i, double x);
3669struct s1 {int (*f) (int a);};
3670struct s2 {int (*f) (double a);};
3671int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3672int argc;
3673char **argv;
3674int
3675main ()
3676{
3677return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3678  ;
3679  return 0;
3680}
3681_ACEOF
3682for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3683	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3684do
3685  CC="$ac_save_CC $ac_arg"
3686  if ac_fn_c_try_compile "$LINENO"; then :
3687  ac_cv_prog_cc_c89=$ac_arg
3688fi
3689rm -f core conftest.err conftest.$ac_objext
3690  test "x$ac_cv_prog_cc_c89" != "xno" && break
3691done
3692rm -f conftest.$ac_ext
3693CC=$ac_save_CC
3694
3695fi
3696# AC_CACHE_VAL
3697case "x$ac_cv_prog_cc_c89" in
3698  x)
3699    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3700$as_echo "none needed" >&6; } ;;
3701  xno)
3702    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3703$as_echo "unsupported" >&6; } ;;
3704  *)
3705    CC="$CC $ac_cv_prog_cc_c89"
3706    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3707$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3708esac
3709if test "x$ac_cv_prog_cc_c89" != xno; then :
3710
3711fi
3712
3713ac_ext=c
3714ac_cpp='$CPP $CPPFLAGS'
3715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3717ac_compiler_gnu=$ac_cv_c_compiler_gnu
3718DEPDIR="${am__leading_dot}deps"
3719
3720ac_config_commands="$ac_config_commands depfiles"
3721
3722
3723am_make=${MAKE-make}
3724cat > confinc << 'END'
3725am__doit:
3726	@echo this is the am__doit target
3727.PHONY: am__doit
3728END
3729# If we don't find an include directive, just comment out the code.
3730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3731$as_echo_n "checking for style of include used by $am_make... " >&6; }
3732am__include="#"
3733am__quote=
3734_am_result=none
3735# First try GNU make style include.
3736echo "include confinc" > confmf
3737# Ignore all kinds of additional output from `make'.
3738case `$am_make -s -f confmf 2> /dev/null` in #(
3739*the\ am__doit\ target*)
3740  am__include=include
3741  am__quote=
3742  _am_result=GNU
3743  ;;
3744esac
3745# Now try BSD make style include.
3746if test "$am__include" = "#"; then
3747   echo '.include "confinc"' > confmf
3748   case `$am_make -s -f confmf 2> /dev/null` in #(
3749   *the\ am__doit\ target*)
3750     am__include=.include
3751     am__quote="\""
3752     _am_result=BSD
3753     ;;
3754   esac
3755fi
3756
3757
3758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3759$as_echo "$_am_result" >&6; }
3760rm -f confinc confmf
3761
3762# Check whether --enable-dependency-tracking was given.
3763if test "${enable_dependency_tracking+set}" = set; then :
3764  enableval=$enable_dependency_tracking;
3765fi
3766
3767if test "x$enable_dependency_tracking" != xno; then
3768  am_depcomp="$ac_aux_dir/depcomp"
3769  AMDEPBACKSLASH='\'
3770fi
3771 if test "x$enable_dependency_tracking" != xno; then
3772  AMDEP_TRUE=
3773  AMDEP_FALSE='#'
3774else
3775  AMDEP_TRUE='#'
3776  AMDEP_FALSE=
3777fi
3778
3779
3780
3781depcc="$CC"   am_compiler_list=
3782
3783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3784$as_echo_n "checking dependency style of $depcc... " >&6; }
3785if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3786  $as_echo_n "(cached) " >&6
3787else
3788  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3789  # We make a subdir and do the tests there.  Otherwise we can end up
3790  # making bogus files that we don't know about and never remove.  For
3791  # instance it was reported that on HP-UX the gcc test will end up
3792  # making a dummy file named `D' -- because `-MD' means `put the output
3793  # in D'.
3794  mkdir conftest.dir
3795  # Copy depcomp to subdir because otherwise we won't find it if we're
3796  # using a relative directory.
3797  cp "$am_depcomp" conftest.dir
3798  cd conftest.dir
3799  # We will build objects and dependencies in a subdirectory because
3800  # it helps to detect inapplicable dependency modes.  For instance
3801  # both Tru64's cc and ICC support -MD to output dependencies as a
3802  # side effect of compilation, but ICC will put the dependencies in
3803  # the current directory while Tru64 will put them in the object
3804  # directory.
3805  mkdir sub
3806
3807  am_cv_CC_dependencies_compiler_type=none
3808  if test "$am_compiler_list" = ""; then
3809     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3810  fi
3811  am__universal=false
3812  case " $depcc " in #(
3813     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3814     esac
3815
3816  for depmode in $am_compiler_list; do
3817    # Setup a source with many dependencies, because some compilers
3818    # like to wrap large dependency lists on column 80 (with \), and
3819    # we should not choose a depcomp mode which is confused by this.
3820    #
3821    # We need to recreate these files for each test, as the compiler may
3822    # overwrite some of them when testing with obscure command lines.
3823    # This happens at least with the AIX C compiler.
3824    : > sub/conftest.c
3825    for i in 1 2 3 4 5 6; do
3826      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3827      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3828      # Solaris 8's {/usr,}/bin/sh.
3829      touch sub/conftst$i.h
3830    done
3831    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3832
3833    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3834    # mode.  It turns out that the SunPro C++ compiler does not properly
3835    # handle `-M -o', and we need to detect this.  Also, some Intel
3836    # versions had trouble with output in subdirs
3837    am__obj=sub/conftest.${OBJEXT-o}
3838    am__minus_obj="-o $am__obj"
3839    case $depmode in
3840    gcc)
3841      # This depmode causes a compiler race in universal mode.
3842      test "$am__universal" = false || continue
3843      ;;
3844    nosideeffect)
3845      # after this tag, mechanisms are not by side-effect, so they'll
3846      # only be used when explicitly requested
3847      if test "x$enable_dependency_tracking" = xyes; then
3848	continue
3849      else
3850	break
3851      fi
3852      ;;
3853    msvisualcpp | msvcmsys)
3854      # This compiler won't grok `-c -o', but also, the minuso test has
3855      # not run yet.  These depmodes are late enough in the game, and
3856      # so weak that their functioning should not be impacted.
3857      am__obj=conftest.${OBJEXT-o}
3858      am__minus_obj=
3859      ;;
3860    none) break ;;
3861    esac
3862    if depmode=$depmode \
3863       source=sub/conftest.c object=$am__obj \
3864       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3865       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3866         >/dev/null 2>conftest.err &&
3867       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3868       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3869       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3870       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3871      # icc doesn't choke on unknown options, it will just issue warnings
3872      # or remarks (even with -Werror).  So we grep stderr for any message
3873      # that says an option was ignored or not supported.
3874      # When given -MP, icc 7.0 and 7.1 complain thusly:
3875      #   icc: Command line warning: ignoring option '-M'; no argument required
3876      # The diagnosis changed in icc 8.0:
3877      #   icc: Command line remark: option '-MP' not supported
3878      if (grep 'ignoring option' conftest.err ||
3879          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3880        am_cv_CC_dependencies_compiler_type=$depmode
3881        break
3882      fi
3883    fi
3884  done
3885
3886  cd ..
3887  rm -rf conftest.dir
3888else
3889  am_cv_CC_dependencies_compiler_type=none
3890fi
3891
3892fi
3893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3894$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3895CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3896
3897 if
3898  test "x$enable_dependency_tracking" != xno \
3899  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3900  am__fastdepCC_TRUE=
3901  am__fastdepCC_FALSE='#'
3902else
3903  am__fastdepCC_TRUE='#'
3904  am__fastdepCC_FALSE=
3905fi
3906
3907
3908ac_ext=c
3909ac_cpp='$CPP $CPPFLAGS'
3910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3912ac_compiler_gnu=$ac_cv_c_compiler_gnu
3913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3914$as_echo_n "checking how to run the C preprocessor... " >&6; }
3915# On Suns, sometimes $CPP names a directory.
3916if test -n "$CPP" && test -d "$CPP"; then
3917  CPP=
3918fi
3919if test -z "$CPP"; then
3920  if ${ac_cv_prog_CPP+:} false; then :
3921  $as_echo_n "(cached) " >&6
3922else
3923      # Double quotes because CPP needs to be expanded
3924    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3925    do
3926      ac_preproc_ok=false
3927for ac_c_preproc_warn_flag in '' yes
3928do
3929  # Use a header file that comes with gcc, so configuring glibc
3930  # with a fresh cross-compiler works.
3931  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3932  # <limits.h> exists even on freestanding compilers.
3933  # On the NeXT, cc -E runs the code through the compiler's parser,
3934  # not just through cpp. "Syntax error" is here to catch this case.
3935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936/* end confdefs.h.  */
3937#ifdef __STDC__
3938# include <limits.h>
3939#else
3940# include <assert.h>
3941#endif
3942		     Syntax error
3943_ACEOF
3944if ac_fn_c_try_cpp "$LINENO"; then :
3945
3946else
3947  # Broken: fails on valid input.
3948continue
3949fi
3950rm -f conftest.err conftest.i conftest.$ac_ext
3951
3952  # OK, works on sane cases.  Now check whether nonexistent headers
3953  # can be detected and how.
3954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955/* end confdefs.h.  */
3956#include <ac_nonexistent.h>
3957_ACEOF
3958if ac_fn_c_try_cpp "$LINENO"; then :
3959  # Broken: success on invalid input.
3960continue
3961else
3962  # Passes both tests.
3963ac_preproc_ok=:
3964break
3965fi
3966rm -f conftest.err conftest.i conftest.$ac_ext
3967
3968done
3969# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3970rm -f conftest.i conftest.err conftest.$ac_ext
3971if $ac_preproc_ok; then :
3972  break
3973fi
3974
3975    done
3976    ac_cv_prog_CPP=$CPP
3977
3978fi
3979  CPP=$ac_cv_prog_CPP
3980else
3981  ac_cv_prog_CPP=$CPP
3982fi
3983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3984$as_echo "$CPP" >&6; }
3985ac_preproc_ok=false
3986for ac_c_preproc_warn_flag in '' yes
3987do
3988  # Use a header file that comes with gcc, so configuring glibc
3989  # with a fresh cross-compiler works.
3990  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3991  # <limits.h> exists even on freestanding compilers.
3992  # On the NeXT, cc -E runs the code through the compiler's parser,
3993  # not just through cpp. "Syntax error" is here to catch this case.
3994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995/* end confdefs.h.  */
3996#ifdef __STDC__
3997# include <limits.h>
3998#else
3999# include <assert.h>
4000#endif
4001		     Syntax error
4002_ACEOF
4003if ac_fn_c_try_cpp "$LINENO"; then :
4004
4005else
4006  # Broken: fails on valid input.
4007continue
4008fi
4009rm -f conftest.err conftest.i conftest.$ac_ext
4010
4011  # OK, works on sane cases.  Now check whether nonexistent headers
4012  # can be detected and how.
4013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4014/* end confdefs.h.  */
4015#include <ac_nonexistent.h>
4016_ACEOF
4017if ac_fn_c_try_cpp "$LINENO"; then :
4018  # Broken: success on invalid input.
4019continue
4020else
4021  # Passes both tests.
4022ac_preproc_ok=:
4023break
4024fi
4025rm -f conftest.err conftest.i conftest.$ac_ext
4026
4027done
4028# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4029rm -f conftest.i conftest.err conftest.$ac_ext
4030if $ac_preproc_ok; then :
4031
4032else
4033  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4034$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4035as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4036See \`config.log' for more details" "$LINENO" 5; }
4037fi
4038
4039ac_ext=c
4040ac_cpp='$CPP $CPPFLAGS'
4041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4043ac_compiler_gnu=$ac_cv_c_compiler_gnu
4044
4045case `pwd` in
4046  *\ * | *\	*)
4047    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4048$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4049esac
4050
4051
4052
4053macro_version='2.2.6b'
4054macro_revision='1.3018'
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068ltmain="$ac_aux_dir/ltmain.sh"
4069
4070# Make sure we can run config.sub.
4071$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4072  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4073
4074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4075$as_echo_n "checking build system type... " >&6; }
4076if ${ac_cv_build+:} false; then :
4077  $as_echo_n "(cached) " >&6
4078else
4079  ac_build_alias=$build_alias
4080test "x$ac_build_alias" = x &&
4081  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4082test "x$ac_build_alias" = x &&
4083  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4084ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4085  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4086
4087fi
4088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4089$as_echo "$ac_cv_build" >&6; }
4090case $ac_cv_build in
4091*-*-*) ;;
4092*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4093esac
4094build=$ac_cv_build
4095ac_save_IFS=$IFS; IFS='-'
4096set x $ac_cv_build
4097shift
4098build_cpu=$1
4099build_vendor=$2
4100shift; shift
4101# Remember, the first character of IFS is used to create $*,
4102# except with old shells:
4103build_os=$*
4104IFS=$ac_save_IFS
4105case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4106
4107
4108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4109$as_echo_n "checking host system type... " >&6; }
4110if ${ac_cv_host+:} false; then :
4111  $as_echo_n "(cached) " >&6
4112else
4113  if test "x$host_alias" = x; then
4114  ac_cv_host=$ac_cv_build
4115else
4116  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4117    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4118fi
4119
4120fi
4121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4122$as_echo "$ac_cv_host" >&6; }
4123case $ac_cv_host in
4124*-*-*) ;;
4125*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4126esac
4127host=$ac_cv_host
4128ac_save_IFS=$IFS; IFS='-'
4129set x $ac_cv_host
4130shift
4131host_cpu=$1
4132host_vendor=$2
4133shift; shift
4134# Remember, the first character of IFS is used to create $*,
4135# except with old shells:
4136host_os=$*
4137IFS=$ac_save_IFS
4138case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4139
4140
4141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4142$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4143if ${ac_cv_path_SED+:} false; then :
4144  $as_echo_n "(cached) " >&6
4145else
4146            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4147     for ac_i in 1 2 3 4 5 6 7; do
4148       ac_script="$ac_script$as_nl$ac_script"
4149     done
4150     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4151     { ac_script=; unset ac_script;}
4152     if test -z "$SED"; then
4153  ac_path_SED_found=false
4154  # Loop through the user's path and test for each of PROGNAME-LIST
4155  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156for as_dir in $PATH
4157do
4158  IFS=$as_save_IFS
4159  test -z "$as_dir" && as_dir=.
4160    for ac_prog in sed gsed; do
4161    for ac_exec_ext in '' $ac_executable_extensions; do
4162      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4163      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4164# Check for GNU ac_path_SED and select it if it is found.
4165  # Check for GNU $ac_path_SED
4166case `"$ac_path_SED" --version 2>&1` in
4167*GNU*)
4168  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4169*)
4170  ac_count=0
4171  $as_echo_n 0123456789 >"conftest.in"
4172  while :
4173  do
4174    cat "conftest.in" "conftest.in" >"conftest.tmp"
4175    mv "conftest.tmp" "conftest.in"
4176    cp "conftest.in" "conftest.nl"
4177    $as_echo '' >> "conftest.nl"
4178    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4179    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4180    as_fn_arith $ac_count + 1 && ac_count=$as_val
4181    if test $ac_count -gt ${ac_path_SED_max-0}; then
4182      # Best one so far, save it but keep looking for a better one
4183      ac_cv_path_SED="$ac_path_SED"
4184      ac_path_SED_max=$ac_count
4185    fi
4186    # 10*(2^10) chars as input seems more than enough
4187    test $ac_count -gt 10 && break
4188  done
4189  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4190esac
4191
4192      $ac_path_SED_found && break 3
4193    done
4194  done
4195  done
4196IFS=$as_save_IFS
4197  if test -z "$ac_cv_path_SED"; then
4198    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4199  fi
4200else
4201  ac_cv_path_SED=$SED
4202fi
4203
4204fi
4205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4206$as_echo "$ac_cv_path_SED" >&6; }
4207 SED="$ac_cv_path_SED"
4208  rm -f conftest.sed
4209
4210test -z "$SED" && SED=sed
4211Xsed="$SED -e 1s/^X//"
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4224$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4225if ${ac_cv_path_GREP+:} false; then :
4226  $as_echo_n "(cached) " >&6
4227else
4228  if test -z "$GREP"; then
4229  ac_path_GREP_found=false
4230  # Loop through the user's path and test for each of PROGNAME-LIST
4231  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4233do
4234  IFS=$as_save_IFS
4235  test -z "$as_dir" && as_dir=.
4236    for ac_prog in grep ggrep; do
4237    for ac_exec_ext in '' $ac_executable_extensions; do
4238      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4239      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4240# Check for GNU ac_path_GREP and select it if it is found.
4241  # Check for GNU $ac_path_GREP
4242case `"$ac_path_GREP" --version 2>&1` in
4243*GNU*)
4244  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4245*)
4246  ac_count=0
4247  $as_echo_n 0123456789 >"conftest.in"
4248  while :
4249  do
4250    cat "conftest.in" "conftest.in" >"conftest.tmp"
4251    mv "conftest.tmp" "conftest.in"
4252    cp "conftest.in" "conftest.nl"
4253    $as_echo 'GREP' >> "conftest.nl"
4254    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4255    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4256    as_fn_arith $ac_count + 1 && ac_count=$as_val
4257    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4258      # Best one so far, save it but keep looking for a better one
4259      ac_cv_path_GREP="$ac_path_GREP"
4260      ac_path_GREP_max=$ac_count
4261    fi
4262    # 10*(2^10) chars as input seems more than enough
4263    test $ac_count -gt 10 && break
4264  done
4265  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4266esac
4267
4268      $ac_path_GREP_found && break 3
4269    done
4270  done
4271  done
4272IFS=$as_save_IFS
4273  if test -z "$ac_cv_path_GREP"; then
4274    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4275  fi
4276else
4277  ac_cv_path_GREP=$GREP
4278fi
4279
4280fi
4281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4282$as_echo "$ac_cv_path_GREP" >&6; }
4283 GREP="$ac_cv_path_GREP"
4284
4285
4286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4287$as_echo_n "checking for egrep... " >&6; }
4288if ${ac_cv_path_EGREP+:} false; then :
4289  $as_echo_n "(cached) " >&6
4290else
4291  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4292   then ac_cv_path_EGREP="$GREP -E"
4293   else
4294     if test -z "$EGREP"; then
4295  ac_path_EGREP_found=false
4296  # Loop through the user's path and test for each of PROGNAME-LIST
4297  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4299do
4300  IFS=$as_save_IFS
4301  test -z "$as_dir" && as_dir=.
4302    for ac_prog in egrep; do
4303    for ac_exec_ext in '' $ac_executable_extensions; do
4304      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4305      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4306# Check for GNU ac_path_EGREP and select it if it is found.
4307  # Check for GNU $ac_path_EGREP
4308case `"$ac_path_EGREP" --version 2>&1` in
4309*GNU*)
4310  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4311*)
4312  ac_count=0
4313  $as_echo_n 0123456789 >"conftest.in"
4314  while :
4315  do
4316    cat "conftest.in" "conftest.in" >"conftest.tmp"
4317    mv "conftest.tmp" "conftest.in"
4318    cp "conftest.in" "conftest.nl"
4319    $as_echo 'EGREP' >> "conftest.nl"
4320    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4321    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4322    as_fn_arith $ac_count + 1 && ac_count=$as_val
4323    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4324      # Best one so far, save it but keep looking for a better one
4325      ac_cv_path_EGREP="$ac_path_EGREP"
4326      ac_path_EGREP_max=$ac_count
4327    fi
4328    # 10*(2^10) chars as input seems more than enough
4329    test $ac_count -gt 10 && break
4330  done
4331  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4332esac
4333
4334      $ac_path_EGREP_found && break 3
4335    done
4336  done
4337  done
4338IFS=$as_save_IFS
4339  if test -z "$ac_cv_path_EGREP"; then
4340    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4341  fi
4342else
4343  ac_cv_path_EGREP=$EGREP
4344fi
4345
4346   fi
4347fi
4348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4349$as_echo "$ac_cv_path_EGREP" >&6; }
4350 EGREP="$ac_cv_path_EGREP"
4351
4352
4353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4354$as_echo_n "checking for fgrep... " >&6; }
4355if ${ac_cv_path_FGREP+:} false; then :
4356  $as_echo_n "(cached) " >&6
4357else
4358  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4359   then ac_cv_path_FGREP="$GREP -F"
4360   else
4361     if test -z "$FGREP"; then
4362  ac_path_FGREP_found=false
4363  # Loop through the user's path and test for each of PROGNAME-LIST
4364  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4366do
4367  IFS=$as_save_IFS
4368  test -z "$as_dir" && as_dir=.
4369    for ac_prog in fgrep; do
4370    for ac_exec_ext in '' $ac_executable_extensions; do
4371      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4372      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4373# Check for GNU ac_path_FGREP and select it if it is found.
4374  # Check for GNU $ac_path_FGREP
4375case `"$ac_path_FGREP" --version 2>&1` in
4376*GNU*)
4377  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4378*)
4379  ac_count=0
4380  $as_echo_n 0123456789 >"conftest.in"
4381  while :
4382  do
4383    cat "conftest.in" "conftest.in" >"conftest.tmp"
4384    mv "conftest.tmp" "conftest.in"
4385    cp "conftest.in" "conftest.nl"
4386    $as_echo 'FGREP' >> "conftest.nl"
4387    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4388    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4389    as_fn_arith $ac_count + 1 && ac_count=$as_val
4390    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4391      # Best one so far, save it but keep looking for a better one
4392      ac_cv_path_FGREP="$ac_path_FGREP"
4393      ac_path_FGREP_max=$ac_count
4394    fi
4395    # 10*(2^10) chars as input seems more than enough
4396    test $ac_count -gt 10 && break
4397  done
4398  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4399esac
4400
4401      $ac_path_FGREP_found && break 3
4402    done
4403  done
4404  done
4405IFS=$as_save_IFS
4406  if test -z "$ac_cv_path_FGREP"; then
4407    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4408  fi
4409else
4410  ac_cv_path_FGREP=$FGREP
4411fi
4412
4413   fi
4414fi
4415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4416$as_echo "$ac_cv_path_FGREP" >&6; }
4417 FGREP="$ac_cv_path_FGREP"
4418
4419
4420test -z "$GREP" && GREP=grep
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440# Check whether --with-gnu-ld was given.
4441if test "${with_gnu_ld+set}" = set; then :
4442  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4443else
4444  with_gnu_ld=no
4445fi
4446
4447ac_prog=ld
4448if test "$GCC" = yes; then
4449  # Check if gcc -print-prog-name=ld gives a path.
4450  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4451$as_echo_n "checking for ld used by $CC... " >&6; }
4452  case $host in
4453  *-*-mingw*)
4454    # gcc leaves a trailing carriage return which upsets mingw
4455    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4456  *)
4457    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4458  esac
4459  case $ac_prog in
4460    # Accept absolute paths.
4461    [\\/]* | ?:[\\/]*)
4462      re_direlt='/[^/][^/]*/\.\./'
4463      # Canonicalize the pathname of ld
4464      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4465      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4466	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4467      done
4468      test -z "$LD" && LD="$ac_prog"
4469      ;;
4470  "")
4471    # If it fails, then pretend we aren't using GCC.
4472    ac_prog=ld
4473    ;;
4474  *)
4475    # If it is relative, then search for the first ld in PATH.
4476    with_gnu_ld=unknown
4477    ;;
4478  esac
4479elif test "$with_gnu_ld" = yes; then
4480  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4481$as_echo_n "checking for GNU ld... " >&6; }
4482else
4483  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4484$as_echo_n "checking for non-GNU ld... " >&6; }
4485fi
4486if ${lt_cv_path_LD+:} false; then :
4487  $as_echo_n "(cached) " >&6
4488else
4489  if test -z "$LD"; then
4490  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4491  for ac_dir in $PATH; do
4492    IFS="$lt_save_ifs"
4493    test -z "$ac_dir" && ac_dir=.
4494    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4495      lt_cv_path_LD="$ac_dir/$ac_prog"
4496      # Check to see if the program is GNU ld.  I'd rather use --version,
4497      # but apparently some variants of GNU ld only accept -v.
4498      # Break only if it was the GNU/non-GNU ld that we prefer.
4499      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4500      *GNU* | *'with BFD'*)
4501	test "$with_gnu_ld" != no && break
4502	;;
4503      *)
4504	test "$with_gnu_ld" != yes && break
4505	;;
4506      esac
4507    fi
4508  done
4509  IFS="$lt_save_ifs"
4510else
4511  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4512fi
4513fi
4514
4515LD="$lt_cv_path_LD"
4516if test -n "$LD"; then
4517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4518$as_echo "$LD" >&6; }
4519else
4520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4521$as_echo "no" >&6; }
4522fi
4523test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4525$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4526if ${lt_cv_prog_gnu_ld+:} false; then :
4527  $as_echo_n "(cached) " >&6
4528else
4529  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4530case `$LD -v 2>&1 </dev/null` in
4531*GNU* | *'with BFD'*)
4532  lt_cv_prog_gnu_ld=yes
4533  ;;
4534*)
4535  lt_cv_prog_gnu_ld=no
4536  ;;
4537esac
4538fi
4539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4540$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4541with_gnu_ld=$lt_cv_prog_gnu_ld
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4552$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4553if ${lt_cv_path_NM+:} false; then :
4554  $as_echo_n "(cached) " >&6
4555else
4556  if test -n "$NM"; then
4557  # Let the user override the test.
4558  lt_cv_path_NM="$NM"
4559else
4560  lt_nm_to_check="${ac_tool_prefix}nm"
4561  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4562    lt_nm_to_check="$lt_nm_to_check nm"
4563  fi
4564  for lt_tmp_nm in $lt_nm_to_check; do
4565    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4566    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4567      IFS="$lt_save_ifs"
4568      test -z "$ac_dir" && ac_dir=.
4569      tmp_nm="$ac_dir/$lt_tmp_nm"
4570      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4571	# Check to see if the nm accepts a BSD-compat flag.
4572	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4573	#   nm: unknown option "B" ignored
4574	# Tru64's nm complains that /dev/null is an invalid object file
4575	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4576	*/dev/null* | *'Invalid file or object type'*)
4577	  lt_cv_path_NM="$tmp_nm -B"
4578	  break
4579	  ;;
4580	*)
4581	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4582	  */dev/null*)
4583	    lt_cv_path_NM="$tmp_nm -p"
4584	    break
4585	    ;;
4586	  *)
4587	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4588	    continue # so that we can try to find one that supports BSD flags
4589	    ;;
4590	  esac
4591	  ;;
4592	esac
4593      fi
4594    done
4595    IFS="$lt_save_ifs"
4596  done
4597  : ${lt_cv_path_NM=no}
4598fi
4599fi
4600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4601$as_echo "$lt_cv_path_NM" >&6; }
4602if test "$lt_cv_path_NM" != "no"; then
4603  NM="$lt_cv_path_NM"
4604else
4605  # Didn't find any BSD compatible name lister, look for dumpbin.
4606  if test -n "$ac_tool_prefix"; then
4607  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4608  do
4609    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4610set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4612$as_echo_n "checking for $ac_word... " >&6; }
4613if ${ac_cv_prog_DUMPBIN+:} false; then :
4614  $as_echo_n "(cached) " >&6
4615else
4616  if test -n "$DUMPBIN"; then
4617  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4618else
4619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620for as_dir in $PATH
4621do
4622  IFS=$as_save_IFS
4623  test -z "$as_dir" && as_dir=.
4624    for ac_exec_ext in '' $ac_executable_extensions; do
4625  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4626    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4627    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4628    break 2
4629  fi
4630done
4631  done
4632IFS=$as_save_IFS
4633
4634fi
4635fi
4636DUMPBIN=$ac_cv_prog_DUMPBIN
4637if test -n "$DUMPBIN"; then
4638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4639$as_echo "$DUMPBIN" >&6; }
4640else
4641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4642$as_echo "no" >&6; }
4643fi
4644
4645
4646    test -n "$DUMPBIN" && break
4647  done
4648fi
4649if test -z "$DUMPBIN"; then
4650  ac_ct_DUMPBIN=$DUMPBIN
4651  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4652do
4653  # Extract the first word of "$ac_prog", so it can be a program name with args.
4654set dummy $ac_prog; ac_word=$2
4655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4656$as_echo_n "checking for $ac_word... " >&6; }
4657if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4658  $as_echo_n "(cached) " >&6
4659else
4660  if test -n "$ac_ct_DUMPBIN"; then
4661  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4662else
4663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664for as_dir in $PATH
4665do
4666  IFS=$as_save_IFS
4667  test -z "$as_dir" && as_dir=.
4668    for ac_exec_ext in '' $ac_executable_extensions; do
4669  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4670    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4671    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4672    break 2
4673  fi
4674done
4675  done
4676IFS=$as_save_IFS
4677
4678fi
4679fi
4680ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4681if test -n "$ac_ct_DUMPBIN"; then
4682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4683$as_echo "$ac_ct_DUMPBIN" >&6; }
4684else
4685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4686$as_echo "no" >&6; }
4687fi
4688
4689
4690  test -n "$ac_ct_DUMPBIN" && break
4691done
4692
4693  if test "x$ac_ct_DUMPBIN" = x; then
4694    DUMPBIN=":"
4695  else
4696    case $cross_compiling:$ac_tool_warned in
4697yes:)
4698{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4699$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4700ac_tool_warned=yes ;;
4701esac
4702    DUMPBIN=$ac_ct_DUMPBIN
4703  fi
4704fi
4705
4706
4707  if test "$DUMPBIN" != ":"; then
4708    NM="$DUMPBIN"
4709  fi
4710fi
4711test -z "$NM" && NM=nm
4712
4713
4714
4715
4716
4717
4718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4719$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4720if ${lt_cv_nm_interface+:} false; then :
4721  $as_echo_n "(cached) " >&6
4722else
4723  lt_cv_nm_interface="BSD nm"
4724  echo "int some_variable = 0;" > conftest.$ac_ext
4725  (eval echo "\"\$as_me:4725: $ac_compile\"" >&5)
4726  (eval "$ac_compile" 2>conftest.err)
4727  cat conftest.err >&5
4728  (eval echo "\"\$as_me:4728: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4729  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4730  cat conftest.err >&5
4731  (eval echo "\"\$as_me:4731: output\"" >&5)
4732  cat conftest.out >&5
4733  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4734    lt_cv_nm_interface="MS dumpbin"
4735  fi
4736  rm -f conftest*
4737fi
4738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4739$as_echo "$lt_cv_nm_interface" >&6; }
4740
4741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4742$as_echo_n "checking whether ln -s works... " >&6; }
4743LN_S=$as_ln_s
4744if test "$LN_S" = "ln -s"; then
4745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4746$as_echo "yes" >&6; }
4747else
4748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4749$as_echo "no, using $LN_S" >&6; }
4750fi
4751
4752# find the maximum length of command line arguments
4753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4754$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4755if ${lt_cv_sys_max_cmd_len+:} false; then :
4756  $as_echo_n "(cached) " >&6
4757else
4758    i=0
4759  teststring="ABCD"
4760
4761  case $build_os in
4762  msdosdjgpp*)
4763    # On DJGPP, this test can blow up pretty badly due to problems in libc
4764    # (any single argument exceeding 2000 bytes causes a buffer overrun
4765    # during glob expansion).  Even if it were fixed, the result of this
4766    # check would be larger than it should be.
4767    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4768    ;;
4769
4770  gnu*)
4771    # Under GNU Hurd, this test is not required because there is
4772    # no limit to the length of command line arguments.
4773    # Libtool will interpret -1 as no limit whatsoever
4774    lt_cv_sys_max_cmd_len=-1;
4775    ;;
4776
4777  cygwin* | mingw* | cegcc*)
4778    # On Win9x/ME, this test blows up -- it succeeds, but takes
4779    # about 5 minutes as the teststring grows exponentially.
4780    # Worse, since 9x/ME are not pre-emptively multitasking,
4781    # you end up with a "frozen" computer, even though with patience
4782    # the test eventually succeeds (with a max line length of 256k).
4783    # Instead, let's just punt: use the minimum linelength reported by
4784    # all of the supported platforms: 8192 (on NT/2K/XP).
4785    lt_cv_sys_max_cmd_len=8192;
4786    ;;
4787
4788  amigaos*)
4789    # On AmigaOS with pdksh, this test takes hours, literally.
4790    # So we just punt and use a minimum line length of 8192.
4791    lt_cv_sys_max_cmd_len=8192;
4792    ;;
4793
4794  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4795    # This has been around since 386BSD, at least.  Likely further.
4796    if test -x /sbin/sysctl; then
4797      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4798    elif test -x /usr/sbin/sysctl; then
4799      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4800    else
4801      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4802    fi
4803    # And add a safety zone
4804    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4805    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4806    ;;
4807
4808  interix*)
4809    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4810    lt_cv_sys_max_cmd_len=196608
4811    ;;
4812
4813  osf*)
4814    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4815    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4816    # nice to cause kernel panics so lets avoid the loop below.
4817    # First set a reasonable default.
4818    lt_cv_sys_max_cmd_len=16384
4819    #
4820    if test -x /sbin/sysconfig; then
4821      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4822        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4823      esac
4824    fi
4825    ;;
4826  sco3.2v5*)
4827    lt_cv_sys_max_cmd_len=102400
4828    ;;
4829  sysv5* | sco5v6* | sysv4.2uw2*)
4830    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4831    if test -n "$kargmax"; then
4832      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4833    else
4834      lt_cv_sys_max_cmd_len=32768
4835    fi
4836    ;;
4837  *)
4838    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4839    if test -n "$lt_cv_sys_max_cmd_len"; then
4840      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4841      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4842    else
4843      # Make teststring a little bigger before we do anything with it.
4844      # a 1K string should be a reasonable start.
4845      for i in 1 2 3 4 5 6 7 8 ; do
4846        teststring=$teststring$teststring
4847      done
4848      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4849      # If test is not a shell built-in, we'll probably end up computing a
4850      # maximum length that is only half of the actual maximum length, but
4851      # we can't tell.
4852      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4853	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4854	      test $i != 17 # 1/2 MB should be enough
4855      do
4856        i=`expr $i + 1`
4857        teststring=$teststring$teststring
4858      done
4859      # Only check the string length outside the loop.
4860      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4861      teststring=
4862      # Add a significant safety factor because C++ compilers can tack on
4863      # massive amounts of additional arguments before passing them to the
4864      # linker.  It appears as though 1/2 is a usable value.
4865      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4866    fi
4867    ;;
4868  esac
4869
4870fi
4871
4872if test -n $lt_cv_sys_max_cmd_len ; then
4873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4874$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4875else
4876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4877$as_echo "none" >&6; }
4878fi
4879max_cmd_len=$lt_cv_sys_max_cmd_len
4880
4881
4882
4883
4884
4885
4886: ${CP="cp -f"}
4887: ${MV="mv -f"}
4888: ${RM="rm -f"}
4889
4890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4891$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4892# Try some XSI features
4893xsi_shell=no
4894( _lt_dummy="a/b/c"
4895  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4896      = c,a/b,, \
4897    && eval 'test $(( 1 + 1 )) -eq 2 \
4898    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4899  && xsi_shell=yes
4900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4901$as_echo "$xsi_shell" >&6; }
4902
4903
4904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4905$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4906lt_shell_append=no
4907( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4908    >/dev/null 2>&1 \
4909  && lt_shell_append=yes
4910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4911$as_echo "$lt_shell_append" >&6; }
4912
4913
4914if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4915  lt_unset=unset
4916else
4917  lt_unset=false
4918fi
4919
4920
4921
4922
4923
4924# test EBCDIC or ASCII
4925case `echo X|tr X '\101'` in
4926 A) # ASCII based system
4927    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4928  lt_SP2NL='tr \040 \012'
4929  lt_NL2SP='tr \015\012 \040\040'
4930  ;;
4931 *) # EBCDIC based system
4932  lt_SP2NL='tr \100 \n'
4933  lt_NL2SP='tr \r\n \100\100'
4934  ;;
4935esac
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4946$as_echo_n "checking for $LD option to reload object files... " >&6; }
4947if ${lt_cv_ld_reload_flag+:} false; then :
4948  $as_echo_n "(cached) " >&6
4949else
4950  lt_cv_ld_reload_flag='-r'
4951fi
4952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4953$as_echo "$lt_cv_ld_reload_flag" >&6; }
4954reload_flag=$lt_cv_ld_reload_flag
4955case $reload_flag in
4956"" | " "*) ;;
4957*) reload_flag=" $reload_flag" ;;
4958esac
4959reload_cmds='$LD$reload_flag -o $output$reload_objs'
4960case $host_os in
4961  darwin*)
4962    if test "$GCC" = yes; then
4963      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4964    else
4965      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4966    fi
4967    ;;
4968esac
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978if test -n "$ac_tool_prefix"; then
4979  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4980set dummy ${ac_tool_prefix}objdump; ac_word=$2
4981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4982$as_echo_n "checking for $ac_word... " >&6; }
4983if ${ac_cv_prog_OBJDUMP+:} false; then :
4984  $as_echo_n "(cached) " >&6
4985else
4986  if test -n "$OBJDUMP"; then
4987  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4988else
4989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990for as_dir in $PATH
4991do
4992  IFS=$as_save_IFS
4993  test -z "$as_dir" && as_dir=.
4994    for ac_exec_ext in '' $ac_executable_extensions; do
4995  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4996    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4997    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4998    break 2
4999  fi
5000done
5001  done
5002IFS=$as_save_IFS
5003
5004fi
5005fi
5006OBJDUMP=$ac_cv_prog_OBJDUMP
5007if test -n "$OBJDUMP"; then
5008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5009$as_echo "$OBJDUMP" >&6; }
5010else
5011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5012$as_echo "no" >&6; }
5013fi
5014
5015
5016fi
5017if test -z "$ac_cv_prog_OBJDUMP"; then
5018  ac_ct_OBJDUMP=$OBJDUMP
5019  # Extract the first word of "objdump", so it can be a program name with args.
5020set dummy objdump; ac_word=$2
5021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5022$as_echo_n "checking for $ac_word... " >&6; }
5023if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5024  $as_echo_n "(cached) " >&6
5025else
5026  if test -n "$ac_ct_OBJDUMP"; then
5027  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5028else
5029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030for as_dir in $PATH
5031do
5032  IFS=$as_save_IFS
5033  test -z "$as_dir" && as_dir=.
5034    for ac_exec_ext in '' $ac_executable_extensions; do
5035  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5036    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5037    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5038    break 2
5039  fi
5040done
5041  done
5042IFS=$as_save_IFS
5043
5044fi
5045fi
5046ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5047if test -n "$ac_ct_OBJDUMP"; then
5048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5049$as_echo "$ac_ct_OBJDUMP" >&6; }
5050else
5051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5052$as_echo "no" >&6; }
5053fi
5054
5055  if test "x$ac_ct_OBJDUMP" = x; then
5056    OBJDUMP="false"
5057  else
5058    case $cross_compiling:$ac_tool_warned in
5059yes:)
5060{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5061$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5062ac_tool_warned=yes ;;
5063esac
5064    OBJDUMP=$ac_ct_OBJDUMP
5065  fi
5066else
5067  OBJDUMP="$ac_cv_prog_OBJDUMP"
5068fi
5069
5070test -z "$OBJDUMP" && OBJDUMP=objdump
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5081$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5082if ${lt_cv_deplibs_check_method+:} false; then :
5083  $as_echo_n "(cached) " >&6
5084else
5085  lt_cv_file_magic_cmd='$MAGIC_CMD'
5086lt_cv_file_magic_test_file=
5087lt_cv_deplibs_check_method='unknown'
5088# Need to set the preceding variable on all platforms that support
5089# interlibrary dependencies.
5090# 'none' -- dependencies not supported.
5091# `unknown' -- same as none, but documents that we really don't know.
5092# 'pass_all' -- all dependencies passed with no checks.
5093# 'test_compile' -- check by making test program.
5094# 'file_magic [[regex]]' -- check by looking for files in library path
5095# which responds to the $file_magic_cmd with a given extended regex.
5096# If you have `file' or equivalent on your system and you're not sure
5097# whether `pass_all' will *always* work, you probably want this one.
5098
5099case $host_os in
5100aix[4-9]*)
5101  lt_cv_deplibs_check_method=pass_all
5102  ;;
5103
5104beos*)
5105  lt_cv_deplibs_check_method=pass_all
5106  ;;
5107
5108bsdi[45]*)
5109  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5110  lt_cv_file_magic_cmd='/usr/bin/file -L'
5111  lt_cv_file_magic_test_file=/shlib/libc.so
5112  ;;
5113
5114cygwin*)
5115  # func_win32_libid is a shell function defined in ltmain.sh
5116  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5117  lt_cv_file_magic_cmd='func_win32_libid'
5118  ;;
5119
5120mingw* | pw32*)
5121  # Base MSYS/MinGW do not provide the 'file' command needed by
5122  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5123  # unless we find 'file', for example because we are cross-compiling.
5124  if ( file / ) >/dev/null 2>&1; then
5125    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5126    lt_cv_file_magic_cmd='func_win32_libid'
5127  else
5128    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5129    lt_cv_file_magic_cmd='$OBJDUMP -f'
5130  fi
5131  ;;
5132
5133cegcc)
5134  # use the weaker test based on 'objdump'. See mingw*.
5135  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5136  lt_cv_file_magic_cmd='$OBJDUMP -f'
5137  ;;
5138
5139darwin* | rhapsody*)
5140  lt_cv_deplibs_check_method=pass_all
5141  ;;
5142
5143freebsd* | dragonfly*)
5144  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5145    case $host_cpu in
5146    i*86 )
5147      # Not sure whether the presence of OpenBSD here was a mistake.
5148      # Let's accept both of them until this is cleared up.
5149      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5150      lt_cv_file_magic_cmd=/usr/bin/file
5151      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5152      ;;
5153    esac
5154  else
5155    lt_cv_deplibs_check_method=pass_all
5156  fi
5157  ;;
5158
5159gnu*)
5160  lt_cv_deplibs_check_method=pass_all
5161  ;;
5162
5163hpux10.20* | hpux11*)
5164  lt_cv_file_magic_cmd=/usr/bin/file
5165  case $host_cpu in
5166  ia64*)
5167    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5168    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5169    ;;
5170  hppa*64*)
5171    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5172    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5173    ;;
5174  *)
5175    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5176    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5177    ;;
5178  esac
5179  ;;
5180
5181interix[3-9]*)
5182  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5183  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5184  ;;
5185
5186irix5* | irix6* | nonstopux*)
5187  case $LD in
5188  *-32|*"-32 ") libmagic=32-bit;;
5189  *-n32|*"-n32 ") libmagic=N32;;
5190  *-64|*"-64 ") libmagic=64-bit;;
5191  *) libmagic=never-match;;
5192  esac
5193  lt_cv_deplibs_check_method=pass_all
5194  ;;
5195
5196# This must be Linux ELF.
5197linux* | k*bsd*-gnu)
5198  lt_cv_deplibs_check_method=pass_all
5199  ;;
5200
5201netbsd*)
5202  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5203    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5204  else
5205    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5206  fi
5207  ;;
5208
5209newos6*)
5210  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5211  lt_cv_file_magic_cmd=/usr/bin/file
5212  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5213  ;;
5214
5215*nto* | *qnx*)
5216  lt_cv_deplibs_check_method=pass_all
5217  ;;
5218
5219openbsd*)
5220  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5221    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5222  else
5223    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5224  fi
5225  ;;
5226
5227osf3* | osf4* | osf5*)
5228  lt_cv_deplibs_check_method=pass_all
5229  ;;
5230
5231rdos*)
5232  lt_cv_deplibs_check_method=pass_all
5233  ;;
5234
5235solaris*)
5236  lt_cv_deplibs_check_method=pass_all
5237  ;;
5238
5239sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5240  lt_cv_deplibs_check_method=pass_all
5241  ;;
5242
5243sysv4 | sysv4.3*)
5244  case $host_vendor in
5245  motorola)
5246    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]'
5247    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5248    ;;
5249  ncr)
5250    lt_cv_deplibs_check_method=pass_all
5251    ;;
5252  sequent)
5253    lt_cv_file_magic_cmd='/bin/file'
5254    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5255    ;;
5256  sni)
5257    lt_cv_file_magic_cmd='/bin/file'
5258    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5259    lt_cv_file_magic_test_file=/lib/libc.so
5260    ;;
5261  siemens)
5262    lt_cv_deplibs_check_method=pass_all
5263    ;;
5264  pc)
5265    lt_cv_deplibs_check_method=pass_all
5266    ;;
5267  esac
5268  ;;
5269
5270tpf*)
5271  lt_cv_deplibs_check_method=pass_all
5272  ;;
5273esac
5274
5275fi
5276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5277$as_echo "$lt_cv_deplibs_check_method" >&6; }
5278file_magic_cmd=$lt_cv_file_magic_cmd
5279deplibs_check_method=$lt_cv_deplibs_check_method
5280test -z "$deplibs_check_method" && deplibs_check_method=unknown
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293if test -n "$ac_tool_prefix"; then
5294  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5295set dummy ${ac_tool_prefix}ar; ac_word=$2
5296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5297$as_echo_n "checking for $ac_word... " >&6; }
5298if ${ac_cv_prog_AR+:} false; then :
5299  $as_echo_n "(cached) " >&6
5300else
5301  if test -n "$AR"; then
5302  ac_cv_prog_AR="$AR" # Let the user override the test.
5303else
5304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305for as_dir in $PATH
5306do
5307  IFS=$as_save_IFS
5308  test -z "$as_dir" && as_dir=.
5309    for ac_exec_ext in '' $ac_executable_extensions; do
5310  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5311    ac_cv_prog_AR="${ac_tool_prefix}ar"
5312    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5313    break 2
5314  fi
5315done
5316  done
5317IFS=$as_save_IFS
5318
5319fi
5320fi
5321AR=$ac_cv_prog_AR
5322if test -n "$AR"; then
5323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5324$as_echo "$AR" >&6; }
5325else
5326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5327$as_echo "no" >&6; }
5328fi
5329
5330
5331fi
5332if test -z "$ac_cv_prog_AR"; then
5333  ac_ct_AR=$AR
5334  # Extract the first word of "ar", so it can be a program name with args.
5335set dummy ar; ac_word=$2
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5337$as_echo_n "checking for $ac_word... " >&6; }
5338if ${ac_cv_prog_ac_ct_AR+:} false; then :
5339  $as_echo_n "(cached) " >&6
5340else
5341  if test -n "$ac_ct_AR"; then
5342  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5343else
5344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345for as_dir in $PATH
5346do
5347  IFS=$as_save_IFS
5348  test -z "$as_dir" && as_dir=.
5349    for ac_exec_ext in '' $ac_executable_extensions; do
5350  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5351    ac_cv_prog_ac_ct_AR="ar"
5352    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5353    break 2
5354  fi
5355done
5356  done
5357IFS=$as_save_IFS
5358
5359fi
5360fi
5361ac_ct_AR=$ac_cv_prog_ac_ct_AR
5362if test -n "$ac_ct_AR"; then
5363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5364$as_echo "$ac_ct_AR" >&6; }
5365else
5366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367$as_echo "no" >&6; }
5368fi
5369
5370  if test "x$ac_ct_AR" = x; then
5371    AR="false"
5372  else
5373    case $cross_compiling:$ac_tool_warned in
5374yes:)
5375{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5376$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5377ac_tool_warned=yes ;;
5378esac
5379    AR=$ac_ct_AR
5380  fi
5381else
5382  AR="$ac_cv_prog_AR"
5383fi
5384
5385test -z "$AR" && AR=ar
5386test -z "$AR_FLAGS" && AR_FLAGS=cru
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398if test -n "$ac_tool_prefix"; then
5399  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5400set dummy ${ac_tool_prefix}strip; ac_word=$2
5401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5402$as_echo_n "checking for $ac_word... " >&6; }
5403if ${ac_cv_prog_STRIP+:} false; then :
5404  $as_echo_n "(cached) " >&6
5405else
5406  if test -n "$STRIP"; then
5407  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5408else
5409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410for as_dir in $PATH
5411do
5412  IFS=$as_save_IFS
5413  test -z "$as_dir" && as_dir=.
5414    for ac_exec_ext in '' $ac_executable_extensions; do
5415  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5416    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5417    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5418    break 2
5419  fi
5420done
5421  done
5422IFS=$as_save_IFS
5423
5424fi
5425fi
5426STRIP=$ac_cv_prog_STRIP
5427if test -n "$STRIP"; then
5428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5429$as_echo "$STRIP" >&6; }
5430else
5431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5432$as_echo "no" >&6; }
5433fi
5434
5435
5436fi
5437if test -z "$ac_cv_prog_STRIP"; then
5438  ac_ct_STRIP=$STRIP
5439  # Extract the first word of "strip", so it can be a program name with args.
5440set dummy strip; ac_word=$2
5441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5442$as_echo_n "checking for $ac_word... " >&6; }
5443if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5444  $as_echo_n "(cached) " >&6
5445else
5446  if test -n "$ac_ct_STRIP"; then
5447  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5448else
5449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5450for as_dir in $PATH
5451do
5452  IFS=$as_save_IFS
5453  test -z "$as_dir" && as_dir=.
5454    for ac_exec_ext in '' $ac_executable_extensions; do
5455  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5456    ac_cv_prog_ac_ct_STRIP="strip"
5457    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5458    break 2
5459  fi
5460done
5461  done
5462IFS=$as_save_IFS
5463
5464fi
5465fi
5466ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5467if test -n "$ac_ct_STRIP"; then
5468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5469$as_echo "$ac_ct_STRIP" >&6; }
5470else
5471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5472$as_echo "no" >&6; }
5473fi
5474
5475  if test "x$ac_ct_STRIP" = x; then
5476    STRIP=":"
5477  else
5478    case $cross_compiling:$ac_tool_warned in
5479yes:)
5480{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5481$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5482ac_tool_warned=yes ;;
5483esac
5484    STRIP=$ac_ct_STRIP
5485  fi
5486else
5487  STRIP="$ac_cv_prog_STRIP"
5488fi
5489
5490test -z "$STRIP" && STRIP=:
5491
5492
5493
5494
5495
5496
5497if test -n "$ac_tool_prefix"; then
5498  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5499set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5501$as_echo_n "checking for $ac_word... " >&6; }
5502if ${ac_cv_prog_RANLIB+:} false; then :
5503  $as_echo_n "(cached) " >&6
5504else
5505  if test -n "$RANLIB"; then
5506  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5507else
5508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509for as_dir in $PATH
5510do
5511  IFS=$as_save_IFS
5512  test -z "$as_dir" && as_dir=.
5513    for ac_exec_ext in '' $ac_executable_extensions; do
5514  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5515    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5516    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5517    break 2
5518  fi
5519done
5520  done
5521IFS=$as_save_IFS
5522
5523fi
5524fi
5525RANLIB=$ac_cv_prog_RANLIB
5526if test -n "$RANLIB"; then
5527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5528$as_echo "$RANLIB" >&6; }
5529else
5530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5531$as_echo "no" >&6; }
5532fi
5533
5534
5535fi
5536if test -z "$ac_cv_prog_RANLIB"; then
5537  ac_ct_RANLIB=$RANLIB
5538  # Extract the first word of "ranlib", so it can be a program name with args.
5539set dummy ranlib; ac_word=$2
5540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5541$as_echo_n "checking for $ac_word... " >&6; }
5542if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5543  $as_echo_n "(cached) " >&6
5544else
5545  if test -n "$ac_ct_RANLIB"; then
5546  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5547else
5548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549for as_dir in $PATH
5550do
5551  IFS=$as_save_IFS
5552  test -z "$as_dir" && as_dir=.
5553    for ac_exec_ext in '' $ac_executable_extensions; do
5554  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5555    ac_cv_prog_ac_ct_RANLIB="ranlib"
5556    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5557    break 2
5558  fi
5559done
5560  done
5561IFS=$as_save_IFS
5562
5563fi
5564fi
5565ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5566if test -n "$ac_ct_RANLIB"; then
5567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5568$as_echo "$ac_ct_RANLIB" >&6; }
5569else
5570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571$as_echo "no" >&6; }
5572fi
5573
5574  if test "x$ac_ct_RANLIB" = x; then
5575    RANLIB=":"
5576  else
5577    case $cross_compiling:$ac_tool_warned in
5578yes:)
5579{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5580$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5581ac_tool_warned=yes ;;
5582esac
5583    RANLIB=$ac_ct_RANLIB
5584  fi
5585else
5586  RANLIB="$ac_cv_prog_RANLIB"
5587fi
5588
5589test -z "$RANLIB" && RANLIB=:
5590
5591
5592
5593
5594
5595
5596# Determine commands to create old-style static archives.
5597old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5598old_postinstall_cmds='chmod 644 $oldlib'
5599old_postuninstall_cmds=
5600
5601if test -n "$RANLIB"; then
5602  case $host_os in
5603  openbsd*)
5604    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5605    ;;
5606  *)
5607    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5608    ;;
5609  esac
5610  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5611fi
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646# If no C compiler was specified, use CC.
5647LTCC=${LTCC-"$CC"}
5648
5649# If no C compiler flags were specified, use CFLAGS.
5650LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5651
5652# Allow CC to be a program name with arguments.
5653compiler=$CC
5654
5655
5656# Check for command to grab the raw symbol name followed by C symbol from nm.
5657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5658$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5659if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5660  $as_echo_n "(cached) " >&6
5661else
5662
5663# These are sane defaults that work on at least a few old systems.
5664# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5665
5666# Character class describing NM global symbol codes.
5667symcode='[BCDEGRST]'
5668
5669# Regexp to match symbols that can be accessed directly from C.
5670sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5671
5672# Define system-specific variables.
5673case $host_os in
5674aix*)
5675  symcode='[BCDT]'
5676  ;;
5677cygwin* | mingw* | pw32* | cegcc*)
5678  symcode='[ABCDGISTW]'
5679  ;;
5680hpux*)
5681  if test "$host_cpu" = ia64; then
5682    symcode='[ABCDEGRST]'
5683  fi
5684  ;;
5685irix* | nonstopux*)
5686  symcode='[BCDEGRST]'
5687  ;;
5688osf*)
5689  symcode='[BCDEGQRST]'
5690  ;;
5691solaris*)
5692  symcode='[BDRT]'
5693  ;;
5694sco3.2v5*)
5695  symcode='[DT]'
5696  ;;
5697sysv4.2uw2*)
5698  symcode='[DT]'
5699  ;;
5700sysv5* | sco5v6* | unixware* | OpenUNIX*)
5701  symcode='[ABDT]'
5702  ;;
5703sysv4)
5704  symcode='[DFNSTU]'
5705  ;;
5706esac
5707
5708# If we're using GNU nm, then use its standard symbol codes.
5709case `$NM -V 2>&1` in
5710*GNU* | *'with BFD'*)
5711  symcode='[ABCDGIRSTW]' ;;
5712esac
5713
5714# Transform an extracted symbol line into a proper C declaration.
5715# Some systems (esp. on ia64) link data and code symbols differently,
5716# so use this general approach.
5717lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5718
5719# Transform an extracted symbol line into symbol name and symbol address
5720lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5721lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5722
5723# Handle CRLF in mingw tool chain
5724opt_cr=
5725case $build_os in
5726mingw*)
5727  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5728  ;;
5729esac
5730
5731# Try without a prefix underscore, then with it.
5732for ac_symprfx in "" "_"; do
5733
5734  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5735  symxfrm="\\1 $ac_symprfx\\2 \\2"
5736
5737  # Write the raw and C identifiers.
5738  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5739    # Fake it for dumpbin and say T for any non-static function
5740    # and D for any global variable.
5741    # Also find C++ and __fastcall symbols from MSVC++,
5742    # which start with @ or ?.
5743    lt_cv_sys_global_symbol_pipe="$AWK '"\
5744"     {last_section=section; section=\$ 3};"\
5745"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5746"     \$ 0!~/External *\|/{next};"\
5747"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5748"     {if(hide[section]) next};"\
5749"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5750"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5751"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5752"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5753"     ' prfx=^$ac_symprfx"
5754  else
5755    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5756  fi
5757
5758  # Check to see that the pipe works correctly.
5759  pipe_works=no
5760
5761  rm -f conftest*
5762  cat > conftest.$ac_ext <<_LT_EOF
5763#ifdef __cplusplus
5764extern "C" {
5765#endif
5766char nm_test_var;
5767void nm_test_func(void);
5768void nm_test_func(void){}
5769#ifdef __cplusplus
5770}
5771#endif
5772int main(){nm_test_var='a';nm_test_func();return(0);}
5773_LT_EOF
5774
5775  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5776  (eval $ac_compile) 2>&5
5777  ac_status=$?
5778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5779  test $ac_status = 0; }; then
5780    # Now try to grab the symbols.
5781    nlist=conftest.nm
5782    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5783  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5784  ac_status=$?
5785  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5786  test $ac_status = 0; } && test -s "$nlist"; then
5787      # Try sorting and uniquifying the output.
5788      if sort "$nlist" | uniq > "$nlist"T; then
5789	mv -f "$nlist"T "$nlist"
5790      else
5791	rm -f "$nlist"T
5792      fi
5793
5794      # Make sure that we snagged all the symbols we need.
5795      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5796	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5797	  cat <<_LT_EOF > conftest.$ac_ext
5798#ifdef __cplusplus
5799extern "C" {
5800#endif
5801
5802_LT_EOF
5803	  # Now generate the symbol file.
5804	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5805
5806	  cat <<_LT_EOF >> conftest.$ac_ext
5807
5808/* The mapping between symbol names and symbols.  */
5809const struct {
5810  const char *name;
5811  void       *address;
5812}
5813lt__PROGRAM__LTX_preloaded_symbols[] =
5814{
5815  { "@PROGRAM@", (void *) 0 },
5816_LT_EOF
5817	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5818	  cat <<\_LT_EOF >> conftest.$ac_ext
5819  {0, (void *) 0}
5820};
5821
5822/* This works around a problem in FreeBSD linker */
5823#ifdef FREEBSD_WORKAROUND
5824static const void *lt_preloaded_setup() {
5825  return lt__PROGRAM__LTX_preloaded_symbols;
5826}
5827#endif
5828
5829#ifdef __cplusplus
5830}
5831#endif
5832_LT_EOF
5833	  # Now try linking the two files.
5834	  mv conftest.$ac_objext conftstm.$ac_objext
5835	  lt_save_LIBS="$LIBS"
5836	  lt_save_CFLAGS="$CFLAGS"
5837	  LIBS="conftstm.$ac_objext"
5838	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5839	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5840  (eval $ac_link) 2>&5
5841  ac_status=$?
5842  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5843  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5844	    pipe_works=yes
5845	  fi
5846	  LIBS="$lt_save_LIBS"
5847	  CFLAGS="$lt_save_CFLAGS"
5848	else
5849	  echo "cannot find nm_test_func in $nlist" >&5
5850	fi
5851      else
5852	echo "cannot find nm_test_var in $nlist" >&5
5853      fi
5854    else
5855      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5856    fi
5857  else
5858    echo "$progname: failed program was:" >&5
5859    cat conftest.$ac_ext >&5
5860  fi
5861  rm -rf conftest* conftst*
5862
5863  # Do not use the global_symbol_pipe unless it works.
5864  if test "$pipe_works" = yes; then
5865    break
5866  else
5867    lt_cv_sys_global_symbol_pipe=
5868  fi
5869done
5870
5871fi
5872
5873if test -z "$lt_cv_sys_global_symbol_pipe"; then
5874  lt_cv_sys_global_symbol_to_cdecl=
5875fi
5876if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5878$as_echo "failed" >&6; }
5879else
5880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5881$as_echo "ok" >&6; }
5882fi
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906# Check whether --enable-libtool-lock was given.
5907if test "${enable_libtool_lock+set}" = set; then :
5908  enableval=$enable_libtool_lock;
5909fi
5910
5911test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5912
5913# Some flags need to be propagated to the compiler or linker for good
5914# libtool support.
5915case $host in
5916ia64-*-hpux*)
5917  # Find out which ABI we are using.
5918  echo 'int i;' > conftest.$ac_ext
5919  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5920  (eval $ac_compile) 2>&5
5921  ac_status=$?
5922  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5923  test $ac_status = 0; }; then
5924    case `/usr/bin/file conftest.$ac_objext` in
5925      *ELF-32*)
5926	HPUX_IA64_MODE="32"
5927	;;
5928      *ELF-64*)
5929	HPUX_IA64_MODE="64"
5930	;;
5931    esac
5932  fi
5933  rm -rf conftest*
5934  ;;
5935*-*-irix6*)
5936  # Find out which ABI we are using.
5937  echo '#line 5937 "configure"' > conftest.$ac_ext
5938  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5939  (eval $ac_compile) 2>&5
5940  ac_status=$?
5941  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5942  test $ac_status = 0; }; then
5943    if test "$lt_cv_prog_gnu_ld" = yes; then
5944      case `/usr/bin/file conftest.$ac_objext` in
5945	*32-bit*)
5946	  LD="${LD-ld} -melf32bsmip"
5947	  ;;
5948	*N32*)
5949	  LD="${LD-ld} -melf32bmipn32"
5950	  ;;
5951	*64-bit*)
5952	  LD="${LD-ld} -melf64bmip"
5953	;;
5954      esac
5955    else
5956      case `/usr/bin/file conftest.$ac_objext` in
5957	*32-bit*)
5958	  LD="${LD-ld} -32"
5959	  ;;
5960	*N32*)
5961	  LD="${LD-ld} -n32"
5962	  ;;
5963	*64-bit*)
5964	  LD="${LD-ld} -64"
5965	  ;;
5966      esac
5967    fi
5968  fi
5969  rm -rf conftest*
5970  ;;
5971
5972x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5973s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5974  # Find out which ABI we are using.
5975  echo 'int i;' > conftest.$ac_ext
5976  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5977  (eval $ac_compile) 2>&5
5978  ac_status=$?
5979  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5980  test $ac_status = 0; }; then
5981    case `/usr/bin/file conftest.o` in
5982      *32-bit*)
5983	case $host in
5984	  x86_64-*kfreebsd*-gnu)
5985	    LD="${LD-ld} -m elf_i386_fbsd"
5986	    ;;
5987	  x86_64-*linux*)
5988	    LD="${LD-ld} -m elf_i386"
5989	    ;;
5990	  ppc64-*linux*|powerpc64-*linux*)
5991	    LD="${LD-ld} -m elf32ppclinux"
5992	    ;;
5993	  s390x-*linux*)
5994	    LD="${LD-ld} -m elf_s390"
5995	    ;;
5996	  sparc64-*linux*)
5997	    LD="${LD-ld} -m elf32_sparc"
5998	    ;;
5999	esac
6000	;;
6001      *64-bit*)
6002	case $host in
6003	  x86_64-*kfreebsd*-gnu)
6004	    LD="${LD-ld} -m elf_x86_64_fbsd"
6005	    ;;
6006	  x86_64-*linux*)
6007	    LD="${LD-ld} -m elf_x86_64"
6008	    ;;
6009	  ppc*-*linux*|powerpc*-*linux*)
6010	    LD="${LD-ld} -m elf64ppc"
6011	    ;;
6012	  s390*-*linux*|s390*-*tpf*)
6013	    LD="${LD-ld} -m elf64_s390"
6014	    ;;
6015	  sparc*-*linux*)
6016	    LD="${LD-ld} -m elf64_sparc"
6017	    ;;
6018	esac
6019	;;
6020    esac
6021  fi
6022  rm -rf conftest*
6023  ;;
6024
6025*-*-sco3.2v5*)
6026  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6027  SAVE_CFLAGS="$CFLAGS"
6028  CFLAGS="$CFLAGS -belf"
6029  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6030$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6031if ${lt_cv_cc_needs_belf+:} false; then :
6032  $as_echo_n "(cached) " >&6
6033else
6034  ac_ext=c
6035ac_cpp='$CPP $CPPFLAGS'
6036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6038ac_compiler_gnu=$ac_cv_c_compiler_gnu
6039
6040     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6041/* end confdefs.h.  */
6042
6043int
6044main ()
6045{
6046
6047  ;
6048  return 0;
6049}
6050_ACEOF
6051if ac_fn_c_try_link "$LINENO"; then :
6052  lt_cv_cc_needs_belf=yes
6053else
6054  lt_cv_cc_needs_belf=no
6055fi
6056rm -f core conftest.err conftest.$ac_objext \
6057    conftest$ac_exeext conftest.$ac_ext
6058     ac_ext=c
6059ac_cpp='$CPP $CPPFLAGS'
6060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6062ac_compiler_gnu=$ac_cv_c_compiler_gnu
6063
6064fi
6065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6066$as_echo "$lt_cv_cc_needs_belf" >&6; }
6067  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6068    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6069    CFLAGS="$SAVE_CFLAGS"
6070  fi
6071  ;;
6072sparc*-*solaris*)
6073  # Find out which ABI we are using.
6074  echo 'int i;' > conftest.$ac_ext
6075  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6076  (eval $ac_compile) 2>&5
6077  ac_status=$?
6078  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6079  test $ac_status = 0; }; then
6080    case `/usr/bin/file conftest.o` in
6081    *64-bit*)
6082      case $lt_cv_prog_gnu_ld in
6083      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6084      *)
6085	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6086	  LD="${LD-ld} -64"
6087	fi
6088	;;
6089      esac
6090      ;;
6091    esac
6092  fi
6093  rm -rf conftest*
6094  ;;
6095esac
6096
6097need_locks="$enable_libtool_lock"
6098
6099
6100  case $host_os in
6101    rhapsody* | darwin*)
6102    if test -n "$ac_tool_prefix"; then
6103  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6104set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6106$as_echo_n "checking for $ac_word... " >&6; }
6107if ${ac_cv_prog_DSYMUTIL+:} false; then :
6108  $as_echo_n "(cached) " >&6
6109else
6110  if test -n "$DSYMUTIL"; then
6111  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6112else
6113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114for as_dir in $PATH
6115do
6116  IFS=$as_save_IFS
6117  test -z "$as_dir" && as_dir=.
6118    for ac_exec_ext in '' $ac_executable_extensions; do
6119  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6120    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6121    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6122    break 2
6123  fi
6124done
6125  done
6126IFS=$as_save_IFS
6127
6128fi
6129fi
6130DSYMUTIL=$ac_cv_prog_DSYMUTIL
6131if test -n "$DSYMUTIL"; then
6132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6133$as_echo "$DSYMUTIL" >&6; }
6134else
6135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6136$as_echo "no" >&6; }
6137fi
6138
6139
6140fi
6141if test -z "$ac_cv_prog_DSYMUTIL"; then
6142  ac_ct_DSYMUTIL=$DSYMUTIL
6143  # Extract the first word of "dsymutil", so it can be a program name with args.
6144set dummy dsymutil; ac_word=$2
6145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6146$as_echo_n "checking for $ac_word... " >&6; }
6147if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6148  $as_echo_n "(cached) " >&6
6149else
6150  if test -n "$ac_ct_DSYMUTIL"; then
6151  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6152else
6153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154for as_dir in $PATH
6155do
6156  IFS=$as_save_IFS
6157  test -z "$as_dir" && as_dir=.
6158    for ac_exec_ext in '' $ac_executable_extensions; do
6159  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6160    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6161    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6162    break 2
6163  fi
6164done
6165  done
6166IFS=$as_save_IFS
6167
6168fi
6169fi
6170ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6171if test -n "$ac_ct_DSYMUTIL"; then
6172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6173$as_echo "$ac_ct_DSYMUTIL" >&6; }
6174else
6175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6176$as_echo "no" >&6; }
6177fi
6178
6179  if test "x$ac_ct_DSYMUTIL" = x; then
6180    DSYMUTIL=":"
6181  else
6182    case $cross_compiling:$ac_tool_warned in
6183yes:)
6184{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6185$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6186ac_tool_warned=yes ;;
6187esac
6188    DSYMUTIL=$ac_ct_DSYMUTIL
6189  fi
6190else
6191  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6192fi
6193
6194    if test -n "$ac_tool_prefix"; then
6195  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6196set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6198$as_echo_n "checking for $ac_word... " >&6; }
6199if ${ac_cv_prog_NMEDIT+:} false; then :
6200  $as_echo_n "(cached) " >&6
6201else
6202  if test -n "$NMEDIT"; then
6203  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6204else
6205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206for as_dir in $PATH
6207do
6208  IFS=$as_save_IFS
6209  test -z "$as_dir" && as_dir=.
6210    for ac_exec_ext in '' $ac_executable_extensions; do
6211  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6212    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6213    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6214    break 2
6215  fi
6216done
6217  done
6218IFS=$as_save_IFS
6219
6220fi
6221fi
6222NMEDIT=$ac_cv_prog_NMEDIT
6223if test -n "$NMEDIT"; then
6224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6225$as_echo "$NMEDIT" >&6; }
6226else
6227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6228$as_echo "no" >&6; }
6229fi
6230
6231
6232fi
6233if test -z "$ac_cv_prog_NMEDIT"; then
6234  ac_ct_NMEDIT=$NMEDIT
6235  # Extract the first word of "nmedit", so it can be a program name with args.
6236set dummy nmedit; ac_word=$2
6237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6238$as_echo_n "checking for $ac_word... " >&6; }
6239if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6240  $as_echo_n "(cached) " >&6
6241else
6242  if test -n "$ac_ct_NMEDIT"; then
6243  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6244else
6245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246for as_dir in $PATH
6247do
6248  IFS=$as_save_IFS
6249  test -z "$as_dir" && as_dir=.
6250    for ac_exec_ext in '' $ac_executable_extensions; do
6251  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6252    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6253    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6254    break 2
6255  fi
6256done
6257  done
6258IFS=$as_save_IFS
6259
6260fi
6261fi
6262ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6263if test -n "$ac_ct_NMEDIT"; then
6264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6265$as_echo "$ac_ct_NMEDIT" >&6; }
6266else
6267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6268$as_echo "no" >&6; }
6269fi
6270
6271  if test "x$ac_ct_NMEDIT" = x; then
6272    NMEDIT=":"
6273  else
6274    case $cross_compiling:$ac_tool_warned in
6275yes:)
6276{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6277$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6278ac_tool_warned=yes ;;
6279esac
6280    NMEDIT=$ac_ct_NMEDIT
6281  fi
6282else
6283  NMEDIT="$ac_cv_prog_NMEDIT"
6284fi
6285
6286    if test -n "$ac_tool_prefix"; then
6287  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6288set dummy ${ac_tool_prefix}lipo; ac_word=$2
6289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6290$as_echo_n "checking for $ac_word... " >&6; }
6291if ${ac_cv_prog_LIPO+:} false; then :
6292  $as_echo_n "(cached) " >&6
6293else
6294  if test -n "$LIPO"; then
6295  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6296else
6297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298for as_dir in $PATH
6299do
6300  IFS=$as_save_IFS
6301  test -z "$as_dir" && as_dir=.
6302    for ac_exec_ext in '' $ac_executable_extensions; do
6303  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6304    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6305    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6306    break 2
6307  fi
6308done
6309  done
6310IFS=$as_save_IFS
6311
6312fi
6313fi
6314LIPO=$ac_cv_prog_LIPO
6315if test -n "$LIPO"; then
6316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6317$as_echo "$LIPO" >&6; }
6318else
6319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6320$as_echo "no" >&6; }
6321fi
6322
6323
6324fi
6325if test -z "$ac_cv_prog_LIPO"; then
6326  ac_ct_LIPO=$LIPO
6327  # Extract the first word of "lipo", so it can be a program name with args.
6328set dummy lipo; ac_word=$2
6329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6330$as_echo_n "checking for $ac_word... " >&6; }
6331if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6332  $as_echo_n "(cached) " >&6
6333else
6334  if test -n "$ac_ct_LIPO"; then
6335  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6336else
6337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338for as_dir in $PATH
6339do
6340  IFS=$as_save_IFS
6341  test -z "$as_dir" && as_dir=.
6342    for ac_exec_ext in '' $ac_executable_extensions; do
6343  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6344    ac_cv_prog_ac_ct_LIPO="lipo"
6345    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6346    break 2
6347  fi
6348done
6349  done
6350IFS=$as_save_IFS
6351
6352fi
6353fi
6354ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6355if test -n "$ac_ct_LIPO"; then
6356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6357$as_echo "$ac_ct_LIPO" >&6; }
6358else
6359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6360$as_echo "no" >&6; }
6361fi
6362
6363  if test "x$ac_ct_LIPO" = x; then
6364    LIPO=":"
6365  else
6366    case $cross_compiling:$ac_tool_warned in
6367yes:)
6368{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6369$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6370ac_tool_warned=yes ;;
6371esac
6372    LIPO=$ac_ct_LIPO
6373  fi
6374else
6375  LIPO="$ac_cv_prog_LIPO"
6376fi
6377
6378    if test -n "$ac_tool_prefix"; then
6379  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6380set dummy ${ac_tool_prefix}otool; ac_word=$2
6381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6382$as_echo_n "checking for $ac_word... " >&6; }
6383if ${ac_cv_prog_OTOOL+:} false; then :
6384  $as_echo_n "(cached) " >&6
6385else
6386  if test -n "$OTOOL"; then
6387  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6388else
6389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390for as_dir in $PATH
6391do
6392  IFS=$as_save_IFS
6393  test -z "$as_dir" && as_dir=.
6394    for ac_exec_ext in '' $ac_executable_extensions; do
6395  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6396    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6397    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6398    break 2
6399  fi
6400done
6401  done
6402IFS=$as_save_IFS
6403
6404fi
6405fi
6406OTOOL=$ac_cv_prog_OTOOL
6407if test -n "$OTOOL"; then
6408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6409$as_echo "$OTOOL" >&6; }
6410else
6411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6412$as_echo "no" >&6; }
6413fi
6414
6415
6416fi
6417if test -z "$ac_cv_prog_OTOOL"; then
6418  ac_ct_OTOOL=$OTOOL
6419  # Extract the first word of "otool", so it can be a program name with args.
6420set dummy otool; ac_word=$2
6421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6422$as_echo_n "checking for $ac_word... " >&6; }
6423if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6424  $as_echo_n "(cached) " >&6
6425else
6426  if test -n "$ac_ct_OTOOL"; then
6427  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6428else
6429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430for as_dir in $PATH
6431do
6432  IFS=$as_save_IFS
6433  test -z "$as_dir" && as_dir=.
6434    for ac_exec_ext in '' $ac_executable_extensions; do
6435  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6436    ac_cv_prog_ac_ct_OTOOL="otool"
6437    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6438    break 2
6439  fi
6440done
6441  done
6442IFS=$as_save_IFS
6443
6444fi
6445fi
6446ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6447if test -n "$ac_ct_OTOOL"; then
6448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6449$as_echo "$ac_ct_OTOOL" >&6; }
6450else
6451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452$as_echo "no" >&6; }
6453fi
6454
6455  if test "x$ac_ct_OTOOL" = x; then
6456    OTOOL=":"
6457  else
6458    case $cross_compiling:$ac_tool_warned in
6459yes:)
6460{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6461$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6462ac_tool_warned=yes ;;
6463esac
6464    OTOOL=$ac_ct_OTOOL
6465  fi
6466else
6467  OTOOL="$ac_cv_prog_OTOOL"
6468fi
6469
6470    if test -n "$ac_tool_prefix"; then
6471  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6472set dummy ${ac_tool_prefix}otool64; ac_word=$2
6473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6474$as_echo_n "checking for $ac_word... " >&6; }
6475if ${ac_cv_prog_OTOOL64+:} false; then :
6476  $as_echo_n "(cached) " >&6
6477else
6478  if test -n "$OTOOL64"; then
6479  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6480else
6481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482for as_dir in $PATH
6483do
6484  IFS=$as_save_IFS
6485  test -z "$as_dir" && as_dir=.
6486    for ac_exec_ext in '' $ac_executable_extensions; do
6487  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6488    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6489    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6490    break 2
6491  fi
6492done
6493  done
6494IFS=$as_save_IFS
6495
6496fi
6497fi
6498OTOOL64=$ac_cv_prog_OTOOL64
6499if test -n "$OTOOL64"; then
6500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6501$as_echo "$OTOOL64" >&6; }
6502else
6503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6504$as_echo "no" >&6; }
6505fi
6506
6507
6508fi
6509if test -z "$ac_cv_prog_OTOOL64"; then
6510  ac_ct_OTOOL64=$OTOOL64
6511  # Extract the first word of "otool64", so it can be a program name with args.
6512set dummy otool64; ac_word=$2
6513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6514$as_echo_n "checking for $ac_word... " >&6; }
6515if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6516  $as_echo_n "(cached) " >&6
6517else
6518  if test -n "$ac_ct_OTOOL64"; then
6519  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6520else
6521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522for as_dir in $PATH
6523do
6524  IFS=$as_save_IFS
6525  test -z "$as_dir" && as_dir=.
6526    for ac_exec_ext in '' $ac_executable_extensions; do
6527  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6528    ac_cv_prog_ac_ct_OTOOL64="otool64"
6529    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6530    break 2
6531  fi
6532done
6533  done
6534IFS=$as_save_IFS
6535
6536fi
6537fi
6538ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6539if test -n "$ac_ct_OTOOL64"; then
6540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6541$as_echo "$ac_ct_OTOOL64" >&6; }
6542else
6543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6544$as_echo "no" >&6; }
6545fi
6546
6547  if test "x$ac_ct_OTOOL64" = x; then
6548    OTOOL64=":"
6549  else
6550    case $cross_compiling:$ac_tool_warned in
6551yes:)
6552{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6553$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6554ac_tool_warned=yes ;;
6555esac
6556    OTOOL64=$ac_ct_OTOOL64
6557  fi
6558else
6559  OTOOL64="$ac_cv_prog_OTOOL64"
6560fi
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6589$as_echo_n "checking for -single_module linker flag... " >&6; }
6590if ${lt_cv_apple_cc_single_mod+:} false; then :
6591  $as_echo_n "(cached) " >&6
6592else
6593  lt_cv_apple_cc_single_mod=no
6594      if test -z "${LT_MULTI_MODULE}"; then
6595	# By default we will add the -single_module flag. You can override
6596	# by either setting the environment variable LT_MULTI_MODULE
6597	# non-empty at configure time, or by adding -multi_module to the
6598	# link flags.
6599	rm -rf libconftest.dylib*
6600	echo "int foo(void){return 1;}" > conftest.c
6601	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6602-dynamiclib -Wl,-single_module conftest.c" >&5
6603	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6604	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6605        _lt_result=$?
6606	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6607	  lt_cv_apple_cc_single_mod=yes
6608	else
6609	  cat conftest.err >&5
6610	fi
6611	rm -rf libconftest.dylib*
6612	rm -f conftest.*
6613      fi
6614fi
6615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6616$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6617    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6618$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6619if ${lt_cv_ld_exported_symbols_list+:} false; then :
6620  $as_echo_n "(cached) " >&6
6621else
6622  lt_cv_ld_exported_symbols_list=no
6623      save_LDFLAGS=$LDFLAGS
6624      echo "_main" > conftest.sym
6625      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6626      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6627/* end confdefs.h.  */
6628
6629int
6630main ()
6631{
6632
6633  ;
6634  return 0;
6635}
6636_ACEOF
6637if ac_fn_c_try_link "$LINENO"; then :
6638  lt_cv_ld_exported_symbols_list=yes
6639else
6640  lt_cv_ld_exported_symbols_list=no
6641fi
6642rm -f core conftest.err conftest.$ac_objext \
6643    conftest$ac_exeext conftest.$ac_ext
6644	LDFLAGS="$save_LDFLAGS"
6645
6646fi
6647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6648$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6649    case $host_os in
6650    rhapsody* | darwin1.[012])
6651      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6652    darwin1.*)
6653      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6654    darwin*) # darwin 5.x on
6655      # if running on 10.5 or later, the deployment target defaults
6656      # to the OS version, if on x86, and 10.4, the deployment
6657      # target defaults to 10.4. Don't you love it?
6658      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6659	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6660	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6661	10.[012]*)
6662	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6663	10.*)
6664	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6665      esac
6666    ;;
6667  esac
6668    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6669      _lt_dar_single_mod='$single_module'
6670    fi
6671    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6672      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6673    else
6674      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6675    fi
6676    if test "$DSYMUTIL" != ":"; then
6677      _lt_dsymutil='~$DSYMUTIL $lib || :'
6678    else
6679      _lt_dsymutil=
6680    fi
6681    ;;
6682  esac
6683
6684
6685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6686$as_echo_n "checking for ANSI C header files... " >&6; }
6687if ${ac_cv_header_stdc+:} false; then :
6688  $as_echo_n "(cached) " >&6
6689else
6690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691/* end confdefs.h.  */
6692#include <stdlib.h>
6693#include <stdarg.h>
6694#include <string.h>
6695#include <float.h>
6696
6697int
6698main ()
6699{
6700
6701  ;
6702  return 0;
6703}
6704_ACEOF
6705if ac_fn_c_try_compile "$LINENO"; then :
6706  ac_cv_header_stdc=yes
6707else
6708  ac_cv_header_stdc=no
6709fi
6710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6711
6712if test $ac_cv_header_stdc = yes; then
6713  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6715/* end confdefs.h.  */
6716#include <string.h>
6717
6718_ACEOF
6719if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6720  $EGREP "memchr" >/dev/null 2>&1; then :
6721
6722else
6723  ac_cv_header_stdc=no
6724fi
6725rm -f conftest*
6726
6727fi
6728
6729if test $ac_cv_header_stdc = yes; then
6730  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6732/* end confdefs.h.  */
6733#include <stdlib.h>
6734
6735_ACEOF
6736if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6737  $EGREP "free" >/dev/null 2>&1; then :
6738
6739else
6740  ac_cv_header_stdc=no
6741fi
6742rm -f conftest*
6743
6744fi
6745
6746if test $ac_cv_header_stdc = yes; then
6747  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6748  if test "$cross_compiling" = yes; then :
6749  :
6750else
6751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6752/* end confdefs.h.  */
6753#include <ctype.h>
6754#include <stdlib.h>
6755#if ((' ' & 0x0FF) == 0x020)
6756# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6757# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6758#else
6759# define ISLOWER(c) \
6760		   (('a' <= (c) && (c) <= 'i') \
6761		     || ('j' <= (c) && (c) <= 'r') \
6762		     || ('s' <= (c) && (c) <= 'z'))
6763# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6764#endif
6765
6766#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6767int
6768main ()
6769{
6770  int i;
6771  for (i = 0; i < 256; i++)
6772    if (XOR (islower (i), ISLOWER (i))
6773	|| toupper (i) != TOUPPER (i))
6774      return 2;
6775  return 0;
6776}
6777_ACEOF
6778if ac_fn_c_try_run "$LINENO"; then :
6779
6780else
6781  ac_cv_header_stdc=no
6782fi
6783rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6784  conftest.$ac_objext conftest.beam conftest.$ac_ext
6785fi
6786
6787fi
6788fi
6789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6790$as_echo "$ac_cv_header_stdc" >&6; }
6791if test $ac_cv_header_stdc = yes; then
6792
6793$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6794
6795fi
6796
6797# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6798for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6799		  inttypes.h stdint.h unistd.h
6800do :
6801  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6802ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6803"
6804if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6805  cat >>confdefs.h <<_ACEOF
6806#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6807_ACEOF
6808
6809fi
6810
6811done
6812
6813
6814for ac_header in dlfcn.h
6815do :
6816  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6817"
6818if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6819  cat >>confdefs.h <<_ACEOF
6820#define HAVE_DLFCN_H 1
6821_ACEOF
6822
6823fi
6824
6825done
6826
6827
6828
6829# Set options
6830
6831
6832
6833        enable_dlopen=no
6834
6835
6836  enable_win32_dll=no
6837
6838
6839            # Check whether --enable-shared was given.
6840if test "${enable_shared+set}" = set; then :
6841  enableval=$enable_shared; p=${PACKAGE-default}
6842    case $enableval in
6843    yes) enable_shared=yes ;;
6844    no) enable_shared=no ;;
6845    *)
6846      enable_shared=no
6847      # Look at the argument we got.  We use all the common list separators.
6848      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6849      for pkg in $enableval; do
6850	IFS="$lt_save_ifs"
6851	if test "X$pkg" = "X$p"; then
6852	  enable_shared=yes
6853	fi
6854      done
6855      IFS="$lt_save_ifs"
6856      ;;
6857    esac
6858else
6859  enable_shared=yes
6860fi
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870  # Check whether --enable-static was given.
6871if test "${enable_static+set}" = set; then :
6872  enableval=$enable_static; p=${PACKAGE-default}
6873    case $enableval in
6874    yes) enable_static=yes ;;
6875    no) enable_static=no ;;
6876    *)
6877     enable_static=no
6878      # Look at the argument we got.  We use all the common list separators.
6879      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6880      for pkg in $enableval; do
6881	IFS="$lt_save_ifs"
6882	if test "X$pkg" = "X$p"; then
6883	  enable_static=yes
6884	fi
6885      done
6886      IFS="$lt_save_ifs"
6887      ;;
6888    esac
6889else
6890  enable_static=yes
6891fi
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902# Check whether --with-pic was given.
6903if test "${with_pic+set}" = set; then :
6904  withval=$with_pic; pic_mode="$withval"
6905else
6906  pic_mode=default
6907fi
6908
6909
6910test -z "$pic_mode" && pic_mode=default
6911
6912
6913
6914
6915
6916
6917
6918  # Check whether --enable-fast-install was given.
6919if test "${enable_fast_install+set}" = set; then :
6920  enableval=$enable_fast_install; p=${PACKAGE-default}
6921    case $enableval in
6922    yes) enable_fast_install=yes ;;
6923    no) enable_fast_install=no ;;
6924    *)
6925      enable_fast_install=no
6926      # Look at the argument we got.  We use all the common list separators.
6927      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6928      for pkg in $enableval; do
6929	IFS="$lt_save_ifs"
6930	if test "X$pkg" = "X$p"; then
6931	  enable_fast_install=yes
6932	fi
6933      done
6934      IFS="$lt_save_ifs"
6935      ;;
6936    esac
6937else
6938  enable_fast_install=yes
6939fi
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951# This can be used to rebuild libtool when needed
6952LIBTOOL_DEPS="$ltmain"
6953
6954# Always use our own libtool.
6955LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981test -z "$LN_S" && LN_S="ln -s"
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996if test -n "${ZSH_VERSION+set}" ; then
6997   setopt NO_GLOB_SUBST
6998fi
6999
7000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7001$as_echo_n "checking for objdir... " >&6; }
7002if ${lt_cv_objdir+:} false; then :
7003  $as_echo_n "(cached) " >&6
7004else
7005  rm -f .libs 2>/dev/null
7006mkdir .libs 2>/dev/null
7007if test -d .libs; then
7008  lt_cv_objdir=.libs
7009else
7010  # MS-DOS does not allow filenames that begin with a dot.
7011  lt_cv_objdir=_libs
7012fi
7013rmdir .libs 2>/dev/null
7014fi
7015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7016$as_echo "$lt_cv_objdir" >&6; }
7017objdir=$lt_cv_objdir
7018
7019
7020
7021
7022
7023cat >>confdefs.h <<_ACEOF
7024#define LT_OBJDIR "$lt_cv_objdir/"
7025_ACEOF
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043case $host_os in
7044aix3*)
7045  # AIX sometimes has problems with the GCC collect2 program.  For some
7046  # reason, if we set the COLLECT_NAMES environment variable, the problems
7047  # vanish in a puff of smoke.
7048  if test "X${COLLECT_NAMES+set}" != Xset; then
7049    COLLECT_NAMES=
7050    export COLLECT_NAMES
7051  fi
7052  ;;
7053esac
7054
7055# Sed substitution that helps us do robust quoting.  It backslashifies
7056# metacharacters that are still active within double-quoted strings.
7057sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7058
7059# Same as above, but do not quote variable references.
7060double_quote_subst='s/\(["`\\]\)/\\\1/g'
7061
7062# Sed substitution to delay expansion of an escaped shell variable in a
7063# double_quote_subst'ed string.
7064delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7065
7066# Sed substitution to delay expansion of an escaped single quote.
7067delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7068
7069# Sed substitution to avoid accidental globbing in evaled expressions
7070no_glob_subst='s/\*/\\\*/g'
7071
7072# Global variables:
7073ofile=libtool
7074can_build_shared=yes
7075
7076# All known linkers require a `.a' archive for static linking (except MSVC,
7077# which needs '.lib').
7078libext=a
7079
7080with_gnu_ld="$lt_cv_prog_gnu_ld"
7081
7082old_CC="$CC"
7083old_CFLAGS="$CFLAGS"
7084
7085# Set sane defaults for various variables
7086test -z "$CC" && CC=cc
7087test -z "$LTCC" && LTCC=$CC
7088test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7089test -z "$LD" && LD=ld
7090test -z "$ac_objext" && ac_objext=o
7091
7092for cc_temp in $compiler""; do
7093  case $cc_temp in
7094    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7095    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7096    \-*) ;;
7097    *) break;;
7098  esac
7099done
7100cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7101
7102
7103# Only perform the check for file, if the check method requires it
7104test -z "$MAGIC_CMD" && MAGIC_CMD=file
7105case $deplibs_check_method in
7106file_magic*)
7107  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7108    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7109$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7110if ${lt_cv_path_MAGIC_CMD+:} false; then :
7111  $as_echo_n "(cached) " >&6
7112else
7113  case $MAGIC_CMD in
7114[\\/*] |  ?:[\\/]*)
7115  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7116  ;;
7117*)
7118  lt_save_MAGIC_CMD="$MAGIC_CMD"
7119  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7120  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7121  for ac_dir in $ac_dummy; do
7122    IFS="$lt_save_ifs"
7123    test -z "$ac_dir" && ac_dir=.
7124    if test -f $ac_dir/${ac_tool_prefix}file; then
7125      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7126      if test -n "$file_magic_test_file"; then
7127	case $deplibs_check_method in
7128	"file_magic "*)
7129	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7130	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7131	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7132	    $EGREP "$file_magic_regex" > /dev/null; then
7133	    :
7134	  else
7135	    cat <<_LT_EOF 1>&2
7136
7137*** Warning: the command libtool uses to detect shared libraries,
7138*** $file_magic_cmd, produces output that libtool cannot recognize.
7139*** The result is that libtool may fail to recognize shared libraries
7140*** as such.  This will affect the creation of libtool libraries that
7141*** depend on shared libraries, but programs linked with such libtool
7142*** libraries will work regardless of this problem.  Nevertheless, you
7143*** may want to report the problem to your system manager and/or to
7144*** bug-libtool@gnu.org
7145
7146_LT_EOF
7147	  fi ;;
7148	esac
7149      fi
7150      break
7151    fi
7152  done
7153  IFS="$lt_save_ifs"
7154  MAGIC_CMD="$lt_save_MAGIC_CMD"
7155  ;;
7156esac
7157fi
7158
7159MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7160if test -n "$MAGIC_CMD"; then
7161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7162$as_echo "$MAGIC_CMD" >&6; }
7163else
7164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7165$as_echo "no" >&6; }
7166fi
7167
7168
7169
7170
7171
7172if test -z "$lt_cv_path_MAGIC_CMD"; then
7173  if test -n "$ac_tool_prefix"; then
7174    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7175$as_echo_n "checking for file... " >&6; }
7176if ${lt_cv_path_MAGIC_CMD+:} false; then :
7177  $as_echo_n "(cached) " >&6
7178else
7179  case $MAGIC_CMD in
7180[\\/*] |  ?:[\\/]*)
7181  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7182  ;;
7183*)
7184  lt_save_MAGIC_CMD="$MAGIC_CMD"
7185  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7186  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7187  for ac_dir in $ac_dummy; do
7188    IFS="$lt_save_ifs"
7189    test -z "$ac_dir" && ac_dir=.
7190    if test -f $ac_dir/file; then
7191      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7192      if test -n "$file_magic_test_file"; then
7193	case $deplibs_check_method in
7194	"file_magic "*)
7195	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7196	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7197	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7198	    $EGREP "$file_magic_regex" > /dev/null; then
7199	    :
7200	  else
7201	    cat <<_LT_EOF 1>&2
7202
7203*** Warning: the command libtool uses to detect shared libraries,
7204*** $file_magic_cmd, produces output that libtool cannot recognize.
7205*** The result is that libtool may fail to recognize shared libraries
7206*** as such.  This will affect the creation of libtool libraries that
7207*** depend on shared libraries, but programs linked with such libtool
7208*** libraries will work regardless of this problem.  Nevertheless, you
7209*** may want to report the problem to your system manager and/or to
7210*** bug-libtool@gnu.org
7211
7212_LT_EOF
7213	  fi ;;
7214	esac
7215      fi
7216      break
7217    fi
7218  done
7219  IFS="$lt_save_ifs"
7220  MAGIC_CMD="$lt_save_MAGIC_CMD"
7221  ;;
7222esac
7223fi
7224
7225MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7226if test -n "$MAGIC_CMD"; then
7227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7228$as_echo "$MAGIC_CMD" >&6; }
7229else
7230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7231$as_echo "no" >&6; }
7232fi
7233
7234
7235  else
7236    MAGIC_CMD=:
7237  fi
7238fi
7239
7240  fi
7241  ;;
7242esac
7243
7244# Use C for the default configuration in the libtool script
7245
7246lt_save_CC="$CC"
7247ac_ext=c
7248ac_cpp='$CPP $CPPFLAGS'
7249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7251ac_compiler_gnu=$ac_cv_c_compiler_gnu
7252
7253
7254# Source file extension for C test sources.
7255ac_ext=c
7256
7257# Object file extension for compiled C test sources.
7258objext=o
7259objext=$objext
7260
7261# Code to be used in simple compile tests
7262lt_simple_compile_test_code="int some_variable = 0;"
7263
7264# Code to be used in simple link tests
7265lt_simple_link_test_code='int main(){return(0);}'
7266
7267
7268
7269
7270
7271
7272
7273# If no C compiler was specified, use CC.
7274LTCC=${LTCC-"$CC"}
7275
7276# If no C compiler flags were specified, use CFLAGS.
7277LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7278
7279# Allow CC to be a program name with arguments.
7280compiler=$CC
7281
7282# Save the default compiler, since it gets overwritten when the other
7283# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7284compiler_DEFAULT=$CC
7285
7286# save warnings/boilerplate of simple test code
7287ac_outfile=conftest.$ac_objext
7288echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7289eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7290_lt_compiler_boilerplate=`cat conftest.err`
7291$RM conftest*
7292
7293ac_outfile=conftest.$ac_objext
7294echo "$lt_simple_link_test_code" >conftest.$ac_ext
7295eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7296_lt_linker_boilerplate=`cat conftest.err`
7297$RM -r conftest*
7298
7299
7300## CAVEAT EMPTOR:
7301## There is no encapsulation within the following macros, do not change
7302## the running order or otherwise move them around unless you know exactly
7303## what you are doing...
7304if test -n "$compiler"; then
7305
7306lt_prog_compiler_no_builtin_flag=
7307
7308if test "$GCC" = yes; then
7309  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7310
7311  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7312$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7313if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7314  $as_echo_n "(cached) " >&6
7315else
7316  lt_cv_prog_compiler_rtti_exceptions=no
7317   ac_outfile=conftest.$ac_objext
7318   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7319   lt_compiler_flag="-fno-rtti -fno-exceptions"
7320   # Insert the option either (1) after the last *FLAGS variable, or
7321   # (2) before a word containing "conftest.", or (3) at the end.
7322   # Note that $ac_compile itself does not contain backslashes and begins
7323   # with a dollar sign (not a hyphen), so the echo should work correctly.
7324   # The option is referenced via a variable to avoid confusing sed.
7325   lt_compile=`echo "$ac_compile" | $SED \
7326   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7327   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7328   -e 's:$: $lt_compiler_flag:'`
7329   (eval echo "\"\$as_me:7329: $lt_compile\"" >&5)
7330   (eval "$lt_compile" 2>conftest.err)
7331   ac_status=$?
7332   cat conftest.err >&5
7333   echo "$as_me:7333: \$? = $ac_status" >&5
7334   if (exit $ac_status) && test -s "$ac_outfile"; then
7335     # The compiler can only warn and ignore the option if not recognized
7336     # So say no if there are warnings other than the usual output.
7337     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7338     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7339     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7340       lt_cv_prog_compiler_rtti_exceptions=yes
7341     fi
7342   fi
7343   $RM conftest*
7344
7345fi
7346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7347$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7348
7349if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7350    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7351else
7352    :
7353fi
7354
7355fi
7356
7357
7358
7359
7360
7361
7362  lt_prog_compiler_wl=
7363lt_prog_compiler_pic=
7364lt_prog_compiler_static=
7365
7366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7367$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7368
7369  if test "$GCC" = yes; then
7370    lt_prog_compiler_wl='-Wl,'
7371    lt_prog_compiler_static='-static'
7372
7373    case $host_os in
7374      aix*)
7375      # All AIX code is PIC.
7376      if test "$host_cpu" = ia64; then
7377	# AIX 5 now supports IA64 processor
7378	lt_prog_compiler_static='-Bstatic'
7379      fi
7380      ;;
7381
7382    amigaos*)
7383      case $host_cpu in
7384      powerpc)
7385            # see comment about AmigaOS4 .so support
7386            lt_prog_compiler_pic='-fPIC'
7387        ;;
7388      m68k)
7389            # FIXME: we need at least 68020 code to build shared libraries, but
7390            # adding the `-m68020' flag to GCC prevents building anything better,
7391            # like `-m68040'.
7392            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7393        ;;
7394      esac
7395      ;;
7396
7397    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7398      # PIC is the default for these OSes.
7399      ;;
7400
7401    mingw* | cygwin* | pw32* | os2* | cegcc*)
7402      # This hack is so that the source file can tell whether it is being
7403      # built for inclusion in a dll (and should export symbols for example).
7404      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7405      # (--disable-auto-import) libraries
7406      lt_prog_compiler_pic='-DDLL_EXPORT'
7407      ;;
7408
7409    darwin* | rhapsody*)
7410      # PIC is the default on this platform
7411      # Common symbols not allowed in MH_DYLIB files
7412      lt_prog_compiler_pic='-fno-common'
7413      ;;
7414
7415    hpux*)
7416      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7417      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7418      # sets the default TLS model and affects inlining.
7419      case $host_cpu in
7420      hppa*64*)
7421	# +Z the default
7422	;;
7423      *)
7424	lt_prog_compiler_pic='-fPIC'
7425	;;
7426      esac
7427      ;;
7428
7429    interix[3-9]*)
7430      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7431      # Instead, we relocate shared libraries at runtime.
7432      ;;
7433
7434    msdosdjgpp*)
7435      # Just because we use GCC doesn't mean we suddenly get shared libraries
7436      # on systems that don't support them.
7437      lt_prog_compiler_can_build_shared=no
7438      enable_shared=no
7439      ;;
7440
7441    *nto* | *qnx*)
7442      # QNX uses GNU C++, but need to define -shared option too, otherwise
7443      # it will coredump.
7444      lt_prog_compiler_pic='-fPIC -shared'
7445      ;;
7446
7447    sysv4*MP*)
7448      if test -d /usr/nec; then
7449	lt_prog_compiler_pic=-Kconform_pic
7450      fi
7451      ;;
7452
7453    *)
7454      lt_prog_compiler_pic='-fPIC'
7455      ;;
7456    esac
7457  else
7458    # PORTME Check for flag to pass linker flags through the system compiler.
7459    case $host_os in
7460    aix*)
7461      lt_prog_compiler_wl='-Wl,'
7462      if test "$host_cpu" = ia64; then
7463	# AIX 5 now supports IA64 processor
7464	lt_prog_compiler_static='-Bstatic'
7465      else
7466	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7467      fi
7468      ;;
7469
7470    mingw* | cygwin* | pw32* | os2* | cegcc*)
7471      # This hack is so that the source file can tell whether it is being
7472      # built for inclusion in a dll (and should export symbols for example).
7473      lt_prog_compiler_pic='-DDLL_EXPORT'
7474      ;;
7475
7476    hpux9* | hpux10* | hpux11*)
7477      lt_prog_compiler_wl='-Wl,'
7478      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7479      # not for PA HP-UX.
7480      case $host_cpu in
7481      hppa*64*|ia64*)
7482	# +Z the default
7483	;;
7484      *)
7485	lt_prog_compiler_pic='+Z'
7486	;;
7487      esac
7488      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7489      lt_prog_compiler_static='${wl}-a ${wl}archive'
7490      ;;
7491
7492    irix5* | irix6* | nonstopux*)
7493      lt_prog_compiler_wl='-Wl,'
7494      # PIC (with -KPIC) is the default.
7495      lt_prog_compiler_static='-non_shared'
7496      ;;
7497
7498    linux* | k*bsd*-gnu)
7499      case $cc_basename in
7500      # old Intel for x86_64 which still supported -KPIC.
7501      ecc*)
7502	lt_prog_compiler_wl='-Wl,'
7503	lt_prog_compiler_pic='-KPIC'
7504	lt_prog_compiler_static='-static'
7505        ;;
7506      # icc used to be incompatible with GCC.
7507      # ICC 10 doesn't accept -KPIC any more.
7508      icc* | ifort*)
7509	lt_prog_compiler_wl='-Wl,'
7510	lt_prog_compiler_pic='-fPIC'
7511	lt_prog_compiler_static='-static'
7512        ;;
7513      # Lahey Fortran 8.1.
7514      lf95*)
7515	lt_prog_compiler_wl='-Wl,'
7516	lt_prog_compiler_pic='--shared'
7517	lt_prog_compiler_static='--static'
7518	;;
7519      pgcc* | pgf77* | pgf90* | pgf95*)
7520        # Portland Group compilers (*not* the Pentium gcc compiler,
7521	# which looks to be a dead project)
7522	lt_prog_compiler_wl='-Wl,'
7523	lt_prog_compiler_pic='-fpic'
7524	lt_prog_compiler_static='-Bstatic'
7525        ;;
7526      ccc*)
7527        lt_prog_compiler_wl='-Wl,'
7528        # All Alpha code is PIC.
7529        lt_prog_compiler_static='-non_shared'
7530        ;;
7531      xl*)
7532	# IBM XL C 8.0/Fortran 10.1 on PPC
7533	lt_prog_compiler_wl='-Wl,'
7534	lt_prog_compiler_pic='-qpic'
7535	lt_prog_compiler_static='-qstaticlink'
7536	;;
7537      *)
7538	case `$CC -V 2>&1 | sed 5q` in
7539	*Sun\ C*)
7540	  # Sun C 5.9
7541	  lt_prog_compiler_pic='-KPIC'
7542	  lt_prog_compiler_static='-Bstatic'
7543	  lt_prog_compiler_wl='-Wl,'
7544	  ;;
7545	*Sun\ F*)
7546	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7547	  lt_prog_compiler_pic='-KPIC'
7548	  lt_prog_compiler_static='-Bstatic'
7549	  lt_prog_compiler_wl=''
7550	  ;;
7551	esac
7552	;;
7553      esac
7554      ;;
7555
7556    newsos6)
7557      lt_prog_compiler_pic='-KPIC'
7558      lt_prog_compiler_static='-Bstatic'
7559      ;;
7560
7561    *nto* | *qnx*)
7562      # QNX uses GNU C++, but need to define -shared option too, otherwise
7563      # it will coredump.
7564      lt_prog_compiler_pic='-fPIC -shared'
7565      ;;
7566
7567    osf3* | osf4* | osf5*)
7568      lt_prog_compiler_wl='-Wl,'
7569      # All OSF/1 code is PIC.
7570      lt_prog_compiler_static='-non_shared'
7571      ;;
7572
7573    rdos*)
7574      lt_prog_compiler_static='-non_shared'
7575      ;;
7576
7577    solaris*)
7578      lt_prog_compiler_pic='-KPIC'
7579      lt_prog_compiler_static='-Bstatic'
7580      case $cc_basename in
7581      f77* | f90* | f95*)
7582	lt_prog_compiler_wl='-Qoption ld ';;
7583      *)
7584	lt_prog_compiler_wl='-Wl,';;
7585      esac
7586      ;;
7587
7588    sunos4*)
7589      lt_prog_compiler_wl='-Qoption ld '
7590      lt_prog_compiler_pic='-PIC'
7591      lt_prog_compiler_static='-Bstatic'
7592      ;;
7593
7594    sysv4 | sysv4.2uw2* | sysv4.3*)
7595      lt_prog_compiler_wl='-Wl,'
7596      lt_prog_compiler_pic='-KPIC'
7597      lt_prog_compiler_static='-Bstatic'
7598      ;;
7599
7600    sysv4*MP*)
7601      if test -d /usr/nec ;then
7602	lt_prog_compiler_pic='-Kconform_pic'
7603	lt_prog_compiler_static='-Bstatic'
7604      fi
7605      ;;
7606
7607    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7608      lt_prog_compiler_wl='-Wl,'
7609      lt_prog_compiler_pic='-KPIC'
7610      lt_prog_compiler_static='-Bstatic'
7611      ;;
7612
7613    unicos*)
7614      lt_prog_compiler_wl='-Wl,'
7615      lt_prog_compiler_can_build_shared=no
7616      ;;
7617
7618    uts4*)
7619      lt_prog_compiler_pic='-pic'
7620      lt_prog_compiler_static='-Bstatic'
7621      ;;
7622
7623    *)
7624      lt_prog_compiler_can_build_shared=no
7625      ;;
7626    esac
7627  fi
7628
7629case $host_os in
7630  # For platforms which do not support PIC, -DPIC is meaningless:
7631  *djgpp*)
7632    lt_prog_compiler_pic=
7633    ;;
7634  *)
7635    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7636    ;;
7637esac
7638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7639$as_echo "$lt_prog_compiler_pic" >&6; }
7640
7641
7642
7643
7644
7645
7646#
7647# Check to make sure the PIC flag actually works.
7648#
7649if test -n "$lt_prog_compiler_pic"; then
7650  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7651$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7652if ${lt_cv_prog_compiler_pic_works+:} false; then :
7653  $as_echo_n "(cached) " >&6
7654else
7655  lt_cv_prog_compiler_pic_works=no
7656   ac_outfile=conftest.$ac_objext
7657   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7658   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7659   # Insert the option either (1) after the last *FLAGS variable, or
7660   # (2) before a word containing "conftest.", or (3) at the end.
7661   # Note that $ac_compile itself does not contain backslashes and begins
7662   # with a dollar sign (not a hyphen), so the echo should work correctly.
7663   # The option is referenced via a variable to avoid confusing sed.
7664   lt_compile=`echo "$ac_compile" | $SED \
7665   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7666   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7667   -e 's:$: $lt_compiler_flag:'`
7668   (eval echo "\"\$as_me:7668: $lt_compile\"" >&5)
7669   (eval "$lt_compile" 2>conftest.err)
7670   ac_status=$?
7671   cat conftest.err >&5
7672   echo "$as_me:7672: \$? = $ac_status" >&5
7673   if (exit $ac_status) && test -s "$ac_outfile"; then
7674     # The compiler can only warn and ignore the option if not recognized
7675     # So say no if there are warnings other than the usual output.
7676     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7677     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7678     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7679       lt_cv_prog_compiler_pic_works=yes
7680     fi
7681   fi
7682   $RM conftest*
7683
7684fi
7685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7686$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7687
7688if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7689    case $lt_prog_compiler_pic in
7690     "" | " "*) ;;
7691     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7692     esac
7693else
7694    lt_prog_compiler_pic=
7695     lt_prog_compiler_can_build_shared=no
7696fi
7697
7698fi
7699
7700
7701
7702
7703
7704
7705#
7706# Check to make sure the static flag actually works.
7707#
7708wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7710$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7711if ${lt_cv_prog_compiler_static_works+:} false; then :
7712  $as_echo_n "(cached) " >&6
7713else
7714  lt_cv_prog_compiler_static_works=no
7715   save_LDFLAGS="$LDFLAGS"
7716   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7717   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7718   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7719     # The linker can only warn and ignore the option if not recognized
7720     # So say no if there are warnings
7721     if test -s conftest.err; then
7722       # Append any errors to the config.log.
7723       cat conftest.err 1>&5
7724       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7725       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7726       if diff conftest.exp conftest.er2 >/dev/null; then
7727         lt_cv_prog_compiler_static_works=yes
7728       fi
7729     else
7730       lt_cv_prog_compiler_static_works=yes
7731     fi
7732   fi
7733   $RM -r conftest*
7734   LDFLAGS="$save_LDFLAGS"
7735
7736fi
7737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7738$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7739
7740if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7741    :
7742else
7743    lt_prog_compiler_static=
7744fi
7745
7746
7747
7748
7749
7750
7751
7752  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7753$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7754if ${lt_cv_prog_compiler_c_o+:} false; then :
7755  $as_echo_n "(cached) " >&6
7756else
7757  lt_cv_prog_compiler_c_o=no
7758   $RM -r conftest 2>/dev/null
7759   mkdir conftest
7760   cd conftest
7761   mkdir out
7762   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7763
7764   lt_compiler_flag="-o out/conftest2.$ac_objext"
7765   # Insert the option either (1) after the last *FLAGS variable, or
7766   # (2) before a word containing "conftest.", or (3) at the end.
7767   # Note that $ac_compile itself does not contain backslashes and begins
7768   # with a dollar sign (not a hyphen), so the echo should work correctly.
7769   lt_compile=`echo "$ac_compile" | $SED \
7770   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7771   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7772   -e 's:$: $lt_compiler_flag:'`
7773   (eval echo "\"\$as_me:7773: $lt_compile\"" >&5)
7774   (eval "$lt_compile" 2>out/conftest.err)
7775   ac_status=$?
7776   cat out/conftest.err >&5
7777   echo "$as_me:7777: \$? = $ac_status" >&5
7778   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7779   then
7780     # The compiler can only warn and ignore the option if not recognized
7781     # So say no if there are warnings
7782     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7783     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7784     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7785       lt_cv_prog_compiler_c_o=yes
7786     fi
7787   fi
7788   chmod u+w . 2>&5
7789   $RM conftest*
7790   # SGI C++ compiler will create directory out/ii_files/ for
7791   # template instantiation
7792   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7793   $RM out/* && rmdir out
7794   cd ..
7795   $RM -r conftest
7796   $RM conftest*
7797
7798fi
7799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7800$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7801
7802
7803
7804
7805
7806
7807  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7808$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7809if ${lt_cv_prog_compiler_c_o+:} false; then :
7810  $as_echo_n "(cached) " >&6
7811else
7812  lt_cv_prog_compiler_c_o=no
7813   $RM -r conftest 2>/dev/null
7814   mkdir conftest
7815   cd conftest
7816   mkdir out
7817   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7818
7819   lt_compiler_flag="-o out/conftest2.$ac_objext"
7820   # Insert the option either (1) after the last *FLAGS variable, or
7821   # (2) before a word containing "conftest.", or (3) at the end.
7822   # Note that $ac_compile itself does not contain backslashes and begins
7823   # with a dollar sign (not a hyphen), so the echo should work correctly.
7824   lt_compile=`echo "$ac_compile" | $SED \
7825   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7826   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7827   -e 's:$: $lt_compiler_flag:'`
7828   (eval echo "\"\$as_me:7828: $lt_compile\"" >&5)
7829   (eval "$lt_compile" 2>out/conftest.err)
7830   ac_status=$?
7831   cat out/conftest.err >&5
7832   echo "$as_me:7832: \$? = $ac_status" >&5
7833   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7834   then
7835     # The compiler can only warn and ignore the option if not recognized
7836     # So say no if there are warnings
7837     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7838     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7839     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7840       lt_cv_prog_compiler_c_o=yes
7841     fi
7842   fi
7843   chmod u+w . 2>&5
7844   $RM conftest*
7845   # SGI C++ compiler will create directory out/ii_files/ for
7846   # template instantiation
7847   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7848   $RM out/* && rmdir out
7849   cd ..
7850   $RM -r conftest
7851   $RM conftest*
7852
7853fi
7854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7855$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7856
7857
7858
7859
7860hard_links="nottested"
7861if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7862  # do not overwrite the value of need_locks provided by the user
7863  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7864$as_echo_n "checking if we can lock with hard links... " >&6; }
7865  hard_links=yes
7866  $RM conftest*
7867  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7868  touch conftest.a
7869  ln conftest.a conftest.b 2>&5 || hard_links=no
7870  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7872$as_echo "$hard_links" >&6; }
7873  if test "$hard_links" = no; then
7874    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7875$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7876    need_locks=warn
7877  fi
7878else
7879  need_locks=no
7880fi
7881
7882
7883
7884
7885
7886
7887  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7888$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7889
7890  runpath_var=
7891  allow_undefined_flag=
7892  always_export_symbols=no
7893  archive_cmds=
7894  archive_expsym_cmds=
7895  compiler_needs_object=no
7896  enable_shared_with_static_runtimes=no
7897  export_dynamic_flag_spec=
7898  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7899  hardcode_automatic=no
7900  hardcode_direct=no
7901  hardcode_direct_absolute=no
7902  hardcode_libdir_flag_spec=
7903  hardcode_libdir_flag_spec_ld=
7904  hardcode_libdir_separator=
7905  hardcode_minus_L=no
7906  hardcode_shlibpath_var=unsupported
7907  inherit_rpath=no
7908  link_all_deplibs=unknown
7909  module_cmds=
7910  module_expsym_cmds=
7911  old_archive_from_new_cmds=
7912  old_archive_from_expsyms_cmds=
7913  thread_safe_flag_spec=
7914  whole_archive_flag_spec=
7915  # include_expsyms should be a list of space-separated symbols to be *always*
7916  # included in the symbol list
7917  include_expsyms=
7918  # exclude_expsyms can be an extended regexp of symbols to exclude
7919  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7920  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7921  # as well as any symbol that contains `d'.
7922  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7923  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7924  # platforms (ab)use it in PIC code, but their linkers get confused if
7925  # the symbol is explicitly referenced.  Since portable code cannot
7926  # rely on this symbol name, it's probably fine to never include it in
7927  # preloaded symbol tables.
7928  # Exclude shared library initialization/finalization symbols.
7929  extract_expsyms_cmds=
7930
7931  case $host_os in
7932  cygwin* | mingw* | pw32* | cegcc*)
7933    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7934    # When not using gcc, we currently assume that we are using
7935    # Microsoft Visual C++.
7936    if test "$GCC" != yes; then
7937      with_gnu_ld=no
7938    fi
7939    ;;
7940  interix*)
7941    # we just hope/assume this is gcc and not c89 (= MSVC++)
7942    with_gnu_ld=yes
7943    ;;
7944  openbsd*)
7945    with_gnu_ld=no
7946    ;;
7947  esac
7948
7949  ld_shlibs=yes
7950  if test "$with_gnu_ld" = yes; then
7951    # If archive_cmds runs LD, not CC, wlarc should be empty
7952    wlarc='${wl}'
7953
7954    # Set some defaults for GNU ld with shared library support. These
7955    # are reset later if shared libraries are not supported. Putting them
7956    # here allows them to be overridden if necessary.
7957    runpath_var=LD_RUN_PATH
7958    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7959    export_dynamic_flag_spec='${wl}--export-dynamic'
7960    # ancient GNU ld didn't support --whole-archive et. al.
7961    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7962      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7963    else
7964      whole_archive_flag_spec=
7965    fi
7966    supports_anon_versioning=no
7967    case `$LD -v 2>&1` in
7968      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7969      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7970      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7971      *\ 2.11.*) ;; # other 2.11 versions
7972      *) supports_anon_versioning=yes ;;
7973    esac
7974
7975    # See if GNU ld supports shared libraries.
7976    case $host_os in
7977    aix[3-9]*)
7978      # On AIX/PPC, the GNU linker is very broken
7979      if test "$host_cpu" != ia64; then
7980	ld_shlibs=no
7981	cat <<_LT_EOF 1>&2
7982
7983*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7984*** to be unable to reliably create shared libraries on AIX.
7985*** Therefore, libtool is disabling shared libraries support.  If you
7986*** really care for shared libraries, you may want to modify your PATH
7987*** so that a non-GNU linker is found, and then restart.
7988
7989_LT_EOF
7990      fi
7991      ;;
7992
7993    amigaos*)
7994      case $host_cpu in
7995      powerpc)
7996            # see comment about AmigaOS4 .so support
7997            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7998            archive_expsym_cmds=''
7999        ;;
8000      m68k)
8001            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)'
8002            hardcode_libdir_flag_spec='-L$libdir'
8003            hardcode_minus_L=yes
8004        ;;
8005      esac
8006      ;;
8007
8008    beos*)
8009      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8010	allow_undefined_flag=unsupported
8011	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8012	# support --undefined.  This deserves some investigation.  FIXME
8013	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8014      else
8015	ld_shlibs=no
8016      fi
8017      ;;
8018
8019    cygwin* | mingw* | pw32* | cegcc*)
8020      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8021      # as there is no search path for DLLs.
8022      hardcode_libdir_flag_spec='-L$libdir'
8023      allow_undefined_flag=unsupported
8024      always_export_symbols=no
8025      enable_shared_with_static_runtimes=yes
8026      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8027
8028      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8029        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8030	# If the export-symbols file already is a .def file (1st line
8031	# is EXPORTS), use it as is; otherwise, prepend...
8032	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8033	  cp $export_symbols $output_objdir/$soname.def;
8034	else
8035	  echo EXPORTS > $output_objdir/$soname.def;
8036	  cat $export_symbols >> $output_objdir/$soname.def;
8037	fi~
8038	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8039      else
8040	ld_shlibs=no
8041      fi
8042      ;;
8043
8044    interix[3-9]*)
8045      hardcode_direct=no
8046      hardcode_shlibpath_var=no
8047      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8048      export_dynamic_flag_spec='${wl}-E'
8049      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8050      # Instead, shared libraries are loaded at an image base (0x10000000 by
8051      # default) and relocated if they conflict, which is a slow very memory
8052      # consuming and fragmenting process.  To avoid this, we pick a random,
8053      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8054      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8055      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8056      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'
8057      ;;
8058
8059    gnu* | linux* | tpf* | k*bsd*-gnu)
8060      tmp_diet=no
8061      if test "$host_os" = linux-dietlibc; then
8062	case $cc_basename in
8063	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8064	esac
8065      fi
8066      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8067	 && test "$tmp_diet" = no
8068      then
8069	tmp_addflag=
8070	tmp_sharedflag='-shared'
8071	case $cc_basename,$host_cpu in
8072        pgcc*)				# Portland Group C compiler
8073	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8074	  tmp_addflag=' $pic_flag'
8075	  ;;
8076	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8077	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8078	  tmp_addflag=' $pic_flag -Mnomain' ;;
8079	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8080	  tmp_addflag=' -i_dynamic' ;;
8081	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8082	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8083	ifc* | ifort*)			# Intel Fortran compiler
8084	  tmp_addflag=' -nofor_main' ;;
8085	lf95*)				# Lahey Fortran 8.1
8086	  whole_archive_flag_spec=
8087	  tmp_sharedflag='--shared' ;;
8088	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8089	  tmp_sharedflag='-qmkshrobj'
8090	  tmp_addflag= ;;
8091	esac
8092	case `$CC -V 2>&1 | sed 5q` in
8093	*Sun\ C*)			# Sun C 5.9
8094	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8095	  compiler_needs_object=yes
8096	  tmp_sharedflag='-G' ;;
8097	*Sun\ F*)			# Sun Fortran 8.3
8098	  tmp_sharedflag='-G' ;;
8099	esac
8100	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8101
8102        if test "x$supports_anon_versioning" = xyes; then
8103          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8104	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8105	    echo "local: *; };" >> $output_objdir/$libname.ver~
8106	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8107        fi
8108
8109	case $cc_basename in
8110	xlf*)
8111	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8112	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8113	  hardcode_libdir_flag_spec=
8114	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8115	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8116	  if test "x$supports_anon_versioning" = xyes; then
8117	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8118	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8119	      echo "local: *; };" >> $output_objdir/$libname.ver~
8120	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8121	  fi
8122	  ;;
8123	esac
8124      else
8125        ld_shlibs=no
8126      fi
8127      ;;
8128
8129    netbsd*)
8130      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8131	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8132	wlarc=
8133      else
8134	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8135	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8136      fi
8137      ;;
8138
8139    solaris*)
8140      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8141	ld_shlibs=no
8142	cat <<_LT_EOF 1>&2
8143
8144*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8145*** create shared libraries on Solaris systems.  Therefore, libtool
8146*** is disabling shared libraries support.  We urge you to upgrade GNU
8147*** binutils to release 2.9.1 or newer.  Another option is to modify
8148*** your PATH or compiler configuration so that the native linker is
8149*** used, and then restart.
8150
8151_LT_EOF
8152      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8153	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8154	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8155      else
8156	ld_shlibs=no
8157      fi
8158      ;;
8159
8160    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8161      case `$LD -v 2>&1` in
8162        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8163	ld_shlibs=no
8164	cat <<_LT_EOF 1>&2
8165
8166*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8167*** reliably create shared libraries on SCO systems.  Therefore, libtool
8168*** is disabling shared libraries support.  We urge you to upgrade GNU
8169*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8170*** your PATH or compiler configuration so that the native linker is
8171*** used, and then restart.
8172
8173_LT_EOF
8174	;;
8175	*)
8176	  # For security reasons, it is highly recommended that you always
8177	  # use absolute paths for naming shared libraries, and exclude the
8178	  # DT_RUNPATH tag from executables and libraries.  But doing so
8179	  # requires that you compile everything twice, which is a pain.
8180	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8181	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8182	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8183	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8184	  else
8185	    ld_shlibs=no
8186	  fi
8187	;;
8188      esac
8189      ;;
8190
8191    sunos4*)
8192      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8193      wlarc=
8194      hardcode_direct=yes
8195      hardcode_shlibpath_var=no
8196      ;;
8197
8198    *)
8199      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8200	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8201	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8202      else
8203	ld_shlibs=no
8204      fi
8205      ;;
8206    esac
8207
8208    if test "$ld_shlibs" = no; then
8209      runpath_var=
8210      hardcode_libdir_flag_spec=
8211      export_dynamic_flag_spec=
8212      whole_archive_flag_spec=
8213    fi
8214  else
8215    # PORTME fill in a description of your system's linker (not GNU ld)
8216    case $host_os in
8217    aix3*)
8218      allow_undefined_flag=unsupported
8219      always_export_symbols=yes
8220      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'
8221      # Note: this linker hardcodes the directories in LIBPATH if there
8222      # are no directories specified by -L.
8223      hardcode_minus_L=yes
8224      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8225	# Neither direct hardcoding nor static linking is supported with a
8226	# broken collect2.
8227	hardcode_direct=unsupported
8228      fi
8229      ;;
8230
8231    aix[4-9]*)
8232      if test "$host_cpu" = ia64; then
8233	# On IA64, the linker does run time linking by default, so we don't
8234	# have to do anything special.
8235	aix_use_runtimelinking=no
8236	exp_sym_flag='-Bexport'
8237	no_entry_flag=""
8238      else
8239	# If we're using GNU nm, then we don't want the "-C" option.
8240	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8241	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8242	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8243	else
8244	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8245	fi
8246	aix_use_runtimelinking=no
8247
8248	# Test if we are trying to use run time linking or normal
8249	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8250	# need to do runtime linking.
8251	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8252	  for ld_flag in $LDFLAGS; do
8253	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8254	    aix_use_runtimelinking=yes
8255	    break
8256	  fi
8257	  done
8258	  ;;
8259	esac
8260
8261	exp_sym_flag='-bexport'
8262	no_entry_flag='-bnoentry'
8263      fi
8264
8265      # When large executables or shared objects are built, AIX ld can
8266      # have problems creating the table of contents.  If linking a library
8267      # or program results in "error TOC overflow" add -mminimal-toc to
8268      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8269      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8270
8271      archive_cmds=''
8272      hardcode_direct=yes
8273      hardcode_direct_absolute=yes
8274      hardcode_libdir_separator=':'
8275      link_all_deplibs=yes
8276      file_list_spec='${wl}-f,'
8277
8278      if test "$GCC" = yes; then
8279	case $host_os in aix4.[012]|aix4.[012].*)
8280	# We only want to do this on AIX 4.2 and lower, the check
8281	# below for broken collect2 doesn't work under 4.3+
8282	  collect2name=`${CC} -print-prog-name=collect2`
8283	  if test -f "$collect2name" &&
8284	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8285	  then
8286	  # We have reworked collect2
8287	  :
8288	  else
8289	  # We have old collect2
8290	  hardcode_direct=unsupported
8291	  # It fails to find uninstalled libraries when the uninstalled
8292	  # path is not listed in the libpath.  Setting hardcode_minus_L
8293	  # to unsupported forces relinking
8294	  hardcode_minus_L=yes
8295	  hardcode_libdir_flag_spec='-L$libdir'
8296	  hardcode_libdir_separator=
8297	  fi
8298	  ;;
8299	esac
8300	shared_flag='-shared'
8301	if test "$aix_use_runtimelinking" = yes; then
8302	  shared_flag="$shared_flag "'${wl}-G'
8303	fi
8304      else
8305	# not using gcc
8306	if test "$host_cpu" = ia64; then
8307	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8308	# chokes on -Wl,-G. The following line is correct:
8309	  shared_flag='-G'
8310	else
8311	  if test "$aix_use_runtimelinking" = yes; then
8312	    shared_flag='${wl}-G'
8313	  else
8314	    shared_flag='${wl}-bM:SRE'
8315	  fi
8316	fi
8317      fi
8318
8319      export_dynamic_flag_spec='${wl}-bexpall'
8320      # It seems that -bexpall does not export symbols beginning with
8321      # underscore (_), so it is better to generate a list of symbols to export.
8322      always_export_symbols=yes
8323      if test "$aix_use_runtimelinking" = yes; then
8324	# Warning - without using the other runtime loading flags (-brtl),
8325	# -berok will link without error, but may produce a broken library.
8326	allow_undefined_flag='-berok'
8327        # Determine the default libpath from the value encoded in an
8328        # empty executable.
8329        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8330/* end confdefs.h.  */
8331
8332int
8333main ()
8334{
8335
8336  ;
8337  return 0;
8338}
8339_ACEOF
8340if ac_fn_c_try_link "$LINENO"; then :
8341
8342lt_aix_libpath_sed='
8343    /Import File Strings/,/^$/ {
8344	/^0/ {
8345	    s/^0  *\(.*\)$/\1/
8346	    p
8347	}
8348    }'
8349aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8350# Check for a 64-bit object if we didn't find anything.
8351if test -z "$aix_libpath"; then
8352  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8353fi
8354fi
8355rm -f core conftest.err conftest.$ac_objext \
8356    conftest$ac_exeext conftest.$ac_ext
8357if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8358
8359        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8360        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8361      else
8362	if test "$host_cpu" = ia64; then
8363	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8364	  allow_undefined_flag="-z nodefs"
8365	  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"
8366	else
8367	 # Determine the default libpath from the value encoded in an
8368	 # empty executable.
8369	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8370/* end confdefs.h.  */
8371
8372int
8373main ()
8374{
8375
8376  ;
8377  return 0;
8378}
8379_ACEOF
8380if ac_fn_c_try_link "$LINENO"; then :
8381
8382lt_aix_libpath_sed='
8383    /Import File Strings/,/^$/ {
8384	/^0/ {
8385	    s/^0  *\(.*\)$/\1/
8386	    p
8387	}
8388    }'
8389aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8390# Check for a 64-bit object if we didn't find anything.
8391if test -z "$aix_libpath"; then
8392  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8393fi
8394fi
8395rm -f core conftest.err conftest.$ac_objext \
8396    conftest$ac_exeext conftest.$ac_ext
8397if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8398
8399	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8400	  # Warning - without using the other run time loading flags,
8401	  # -berok will link without error, but may produce a broken library.
8402	  no_undefined_flag=' ${wl}-bernotok'
8403	  allow_undefined_flag=' ${wl}-berok'
8404	  # Exported symbols can be pulled into shared objects from archives
8405	  whole_archive_flag_spec='$convenience'
8406	  archive_cmds_need_lc=yes
8407	  # This is similar to how AIX traditionally builds its shared libraries.
8408	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8409	fi
8410      fi
8411      ;;
8412
8413    amigaos*)
8414      case $host_cpu in
8415      powerpc)
8416            # see comment about AmigaOS4 .so support
8417            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8418            archive_expsym_cmds=''
8419        ;;
8420      m68k)
8421            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)'
8422            hardcode_libdir_flag_spec='-L$libdir'
8423            hardcode_minus_L=yes
8424        ;;
8425      esac
8426      ;;
8427
8428    bsdi[45]*)
8429      export_dynamic_flag_spec=-rdynamic
8430      ;;
8431
8432    cygwin* | mingw* | pw32* | cegcc*)
8433      # When not using gcc, we currently assume that we are using
8434      # Microsoft Visual C++.
8435      # hardcode_libdir_flag_spec is actually meaningless, as there is
8436      # no search path for DLLs.
8437      hardcode_libdir_flag_spec=' '
8438      allow_undefined_flag=unsupported
8439      # Tell ltmain to make .lib files, not .a files.
8440      libext=lib
8441      # Tell ltmain to make .dll files, not .so files.
8442      shrext_cmds=".dll"
8443      # FIXME: Setting linknames here is a bad hack.
8444      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8445      # The linker will automatically build a .lib file if we build a DLL.
8446      old_archive_from_new_cmds='true'
8447      # FIXME: Should let the user specify the lib program.
8448      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8449      fix_srcfile_path='`cygpath -w "$srcfile"`'
8450      enable_shared_with_static_runtimes=yes
8451      ;;
8452
8453    darwin* | rhapsody*)
8454
8455
8456  archive_cmds_need_lc=no
8457  hardcode_direct=no
8458  hardcode_automatic=yes
8459  hardcode_shlibpath_var=unsupported
8460  whole_archive_flag_spec=''
8461  link_all_deplibs=yes
8462  allow_undefined_flag="$_lt_dar_allow_undefined"
8463  case $cc_basename in
8464     ifort*) _lt_dar_can_shared=yes ;;
8465     *) _lt_dar_can_shared=$GCC ;;
8466  esac
8467  if test "$_lt_dar_can_shared" = "yes"; then
8468    output_verbose_link_cmd=echo
8469    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8470    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8471    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}"
8472    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}"
8473
8474  else
8475  ld_shlibs=no
8476  fi
8477
8478      ;;
8479
8480    dgux*)
8481      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8482      hardcode_libdir_flag_spec='-L$libdir'
8483      hardcode_shlibpath_var=no
8484      ;;
8485
8486    freebsd1*)
8487      ld_shlibs=no
8488      ;;
8489
8490    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8491    # support.  Future versions do this automatically, but an explicit c++rt0.o
8492    # does not break anything, and helps significantly (at the cost of a little
8493    # extra space).
8494    freebsd2.2*)
8495      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8496      hardcode_libdir_flag_spec='-R$libdir'
8497      hardcode_direct=yes
8498      hardcode_shlibpath_var=no
8499      ;;
8500
8501    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8502    freebsd2*)
8503      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8504      hardcode_direct=yes
8505      hardcode_minus_L=yes
8506      hardcode_shlibpath_var=no
8507      ;;
8508
8509    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8510    freebsd* | dragonfly*)
8511      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8512      hardcode_libdir_flag_spec='-R$libdir'
8513      hardcode_direct=yes
8514      hardcode_shlibpath_var=no
8515      ;;
8516
8517    hpux9*)
8518      if test "$GCC" = yes; then
8519	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8520      else
8521	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8522      fi
8523      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8524      hardcode_libdir_separator=:
8525      hardcode_direct=yes
8526
8527      # hardcode_minus_L: Not really in the search PATH,
8528      # but as the default location of the library.
8529      hardcode_minus_L=yes
8530      export_dynamic_flag_spec='${wl}-E'
8531      ;;
8532
8533    hpux10*)
8534      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8535	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8536      else
8537	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8538      fi
8539      if test "$with_gnu_ld" = no; then
8540	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8541	hardcode_libdir_flag_spec_ld='+b $libdir'
8542	hardcode_libdir_separator=:
8543	hardcode_direct=yes
8544	hardcode_direct_absolute=yes
8545	export_dynamic_flag_spec='${wl}-E'
8546	# hardcode_minus_L: Not really in the search PATH,
8547	# but as the default location of the library.
8548	hardcode_minus_L=yes
8549      fi
8550      ;;
8551
8552    hpux11*)
8553      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8554	case $host_cpu in
8555	hppa*64*)
8556	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8557	  ;;
8558	ia64*)
8559	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8560	  ;;
8561	*)
8562	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8563	  ;;
8564	esac
8565      else
8566	case $host_cpu in
8567	hppa*64*)
8568	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8569	  ;;
8570	ia64*)
8571	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8572	  ;;
8573	*)
8574	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8575	  ;;
8576	esac
8577      fi
8578      if test "$with_gnu_ld" = no; then
8579	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8580	hardcode_libdir_separator=:
8581
8582	case $host_cpu in
8583	hppa*64*|ia64*)
8584	  hardcode_direct=no
8585	  hardcode_shlibpath_var=no
8586	  ;;
8587	*)
8588	  hardcode_direct=yes
8589	  hardcode_direct_absolute=yes
8590	  export_dynamic_flag_spec='${wl}-E'
8591
8592	  # hardcode_minus_L: Not really in the search PATH,
8593	  # but as the default location of the library.
8594	  hardcode_minus_L=yes
8595	  ;;
8596	esac
8597      fi
8598      ;;
8599
8600    irix5* | irix6* | nonstopux*)
8601      if test "$GCC" = yes; then
8602	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8603	# Try to use the -exported_symbol ld option, if it does not
8604	# work, assume that -exports_file does not work either and
8605	# implicitly export all symbols.
8606        save_LDFLAGS="$LDFLAGS"
8607        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8608        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8609/* end confdefs.h.  */
8610int foo (void) { return 0; }
8611_ACEOF
8612if ac_fn_c_try_link "$LINENO"; then :
8613
8614          archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8615
8616fi
8617rm -f core conftest.err conftest.$ac_objext \
8618    conftest$ac_exeext conftest.$ac_ext
8619        LDFLAGS="$save_LDFLAGS"
8620      else
8621	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8622	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8623      fi
8624      archive_cmds_need_lc='no'
8625      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8626      hardcode_libdir_separator=:
8627      inherit_rpath=yes
8628      link_all_deplibs=yes
8629      ;;
8630
8631    netbsd*)
8632      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8633	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8634      else
8635	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8636      fi
8637      hardcode_libdir_flag_spec='-R$libdir'
8638      hardcode_direct=yes
8639      hardcode_shlibpath_var=no
8640      ;;
8641
8642    newsos6)
8643      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8644      hardcode_direct=yes
8645      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8646      hardcode_libdir_separator=:
8647      hardcode_shlibpath_var=no
8648      ;;
8649
8650    *nto* | *qnx*)
8651      ;;
8652
8653    openbsd*)
8654      if test -f /usr/libexec/ld.so; then
8655	hardcode_direct=yes
8656	hardcode_shlibpath_var=no
8657	hardcode_direct_absolute=yes
8658	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8659	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8660	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8661	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8662	  export_dynamic_flag_spec='${wl}-E'
8663	else
8664	  case $host_os in
8665	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8666	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8667	     hardcode_libdir_flag_spec='-R$libdir'
8668	     ;;
8669	   *)
8670	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8671	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8672	     ;;
8673	  esac
8674	fi
8675      else
8676	ld_shlibs=no
8677      fi
8678      ;;
8679
8680    os2*)
8681      hardcode_libdir_flag_spec='-L$libdir'
8682      hardcode_minus_L=yes
8683      allow_undefined_flag=unsupported
8684      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8685      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8686      ;;
8687
8688    osf3*)
8689      if test "$GCC" = yes; then
8690	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8691	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8692      else
8693	allow_undefined_flag=' -expect_unresolved \*'
8694	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8695      fi
8696      archive_cmds_need_lc='no'
8697      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8698      hardcode_libdir_separator=:
8699      ;;
8700
8701    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8702      if test "$GCC" = yes; then
8703	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8704	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8705	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8706      else
8707	allow_undefined_flag=' -expect_unresolved \*'
8708	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8709	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~
8710	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8711
8712	# Both c and cxx compiler support -rpath directly
8713	hardcode_libdir_flag_spec='-rpath $libdir'
8714      fi
8715      archive_cmds_need_lc='no'
8716      hardcode_libdir_separator=:
8717      ;;
8718
8719    solaris*)
8720      no_undefined_flag=' -z defs'
8721      if test "$GCC" = yes; then
8722	wlarc='${wl}'
8723	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8724	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8725	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8726      else
8727	case `$CC -V 2>&1` in
8728	*"Compilers 5.0"*)
8729	  wlarc=''
8730	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8731	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8732	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8733	  ;;
8734	*)
8735	  wlarc='${wl}'
8736	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8737	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8738	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8739	  ;;
8740	esac
8741      fi
8742      hardcode_libdir_flag_spec='-R$libdir'
8743      hardcode_shlibpath_var=no
8744      case $host_os in
8745      solaris2.[0-5] | solaris2.[0-5].*) ;;
8746      *)
8747	# The compiler driver will combine and reorder linker options,
8748	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8749	# but is careful enough not to reorder.
8750	# Supported since Solaris 2.6 (maybe 2.5.1?)
8751	if test "$GCC" = yes; then
8752	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8753	else
8754	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8755	fi
8756	;;
8757      esac
8758      link_all_deplibs=yes
8759      ;;
8760
8761    sunos4*)
8762      if test "x$host_vendor" = xsequent; then
8763	# Use $CC to link under sequent, because it throws in some extra .o
8764	# files that make .init and .fini sections work.
8765	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8766      else
8767	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8768      fi
8769      hardcode_libdir_flag_spec='-L$libdir'
8770      hardcode_direct=yes
8771      hardcode_minus_L=yes
8772      hardcode_shlibpath_var=no
8773      ;;
8774
8775    sysv4)
8776      case $host_vendor in
8777	sni)
8778	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8779	  hardcode_direct=yes # is this really true???
8780	;;
8781	siemens)
8782	  ## LD is ld it makes a PLAMLIB
8783	  ## CC just makes a GrossModule.
8784	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8785	  reload_cmds='$CC -r -o $output$reload_objs'
8786	  hardcode_direct=no
8787        ;;
8788	motorola)
8789	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8790	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8791	;;
8792      esac
8793      runpath_var='LD_RUN_PATH'
8794      hardcode_shlibpath_var=no
8795      ;;
8796
8797    sysv4.3*)
8798      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8799      hardcode_shlibpath_var=no
8800      export_dynamic_flag_spec='-Bexport'
8801      ;;
8802
8803    sysv4*MP*)
8804      if test -d /usr/nec; then
8805	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8806	hardcode_shlibpath_var=no
8807	runpath_var=LD_RUN_PATH
8808	hardcode_runpath_var=yes
8809	ld_shlibs=yes
8810      fi
8811      ;;
8812
8813    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8814      no_undefined_flag='${wl}-z,text'
8815      archive_cmds_need_lc=no
8816      hardcode_shlibpath_var=no
8817      runpath_var='LD_RUN_PATH'
8818
8819      if test "$GCC" = yes; then
8820	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8821	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8822      else
8823	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8824	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8825      fi
8826      ;;
8827
8828    sysv5* | sco3.2v5* | sco5v6*)
8829      # Note: We can NOT use -z defs as we might desire, because we do not
8830      # link with -lc, and that would cause any symbols used from libc to
8831      # always be unresolved, which means just about no library would
8832      # ever link correctly.  If we're not using GNU ld we use -z text
8833      # though, which does catch some bad symbols but isn't as heavy-handed
8834      # as -z defs.
8835      no_undefined_flag='${wl}-z,text'
8836      allow_undefined_flag='${wl}-z,nodefs'
8837      archive_cmds_need_lc=no
8838      hardcode_shlibpath_var=no
8839      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8840      hardcode_libdir_separator=':'
8841      link_all_deplibs=yes
8842      export_dynamic_flag_spec='${wl}-Bexport'
8843      runpath_var='LD_RUN_PATH'
8844
8845      if test "$GCC" = yes; then
8846	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8847	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8848      else
8849	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8850	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8851      fi
8852      ;;
8853
8854    uts4*)
8855      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8856      hardcode_libdir_flag_spec='-L$libdir'
8857      hardcode_shlibpath_var=no
8858      ;;
8859
8860    *)
8861      ld_shlibs=no
8862      ;;
8863    esac
8864
8865    if test x$host_vendor = xsni; then
8866      case $host in
8867      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8868	export_dynamic_flag_spec='${wl}-Blargedynsym'
8869	;;
8870      esac
8871    fi
8872  fi
8873
8874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8875$as_echo "$ld_shlibs" >&6; }
8876test "$ld_shlibs" = no && can_build_shared=no
8877
8878with_gnu_ld=$with_gnu_ld
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894#
8895# Do we need to explicitly link libc?
8896#
8897case "x$archive_cmds_need_lc" in
8898x|xyes)
8899  # Assume -lc should be added
8900  archive_cmds_need_lc=yes
8901
8902  if test "$enable_shared" = yes && test "$GCC" = yes; then
8903    case $archive_cmds in
8904    *'~'*)
8905      # FIXME: we may have to deal with multi-command sequences.
8906      ;;
8907    '$CC '*)
8908      # Test whether the compiler implicitly links with -lc since on some
8909      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8910      # to ld, don't add -lc before -lgcc.
8911      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8912$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8913      $RM conftest*
8914      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8915
8916      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8917  (eval $ac_compile) 2>&5
8918  ac_status=$?
8919  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8920  test $ac_status = 0; } 2>conftest.err; then
8921        soname=conftest
8922        lib=conftest
8923        libobjs=conftest.$ac_objext
8924        deplibs=
8925        wl=$lt_prog_compiler_wl
8926	pic_flag=$lt_prog_compiler_pic
8927        compiler_flags=-v
8928        linker_flags=-v
8929        verstring=
8930        output_objdir=.
8931        libname=conftest
8932        lt_save_allow_undefined_flag=$allow_undefined_flag
8933        allow_undefined_flag=
8934        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8935  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8936  ac_status=$?
8937  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8938  test $ac_status = 0; }
8939        then
8940	  archive_cmds_need_lc=no
8941        else
8942	  archive_cmds_need_lc=yes
8943        fi
8944        allow_undefined_flag=$lt_save_allow_undefined_flag
8945      else
8946        cat conftest.err 1>&5
8947      fi
8948      $RM conftest*
8949      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8950$as_echo "$archive_cmds_need_lc" >&6; }
8951      ;;
8952    esac
8953  fi
8954  ;;
8955esac
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
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
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9114$as_echo_n "checking dynamic linker characteristics... " >&6; }
9115
9116if test "$GCC" = yes; then
9117  case $host_os in
9118    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9119    *) lt_awk_arg="/^libraries:/" ;;
9120  esac
9121  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9122  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9123    # if the path contains ";" then we assume it to be the separator
9124    # otherwise default to the standard path separator (i.e. ":") - it is
9125    # assumed that no part of a normal pathname contains ";" but that should
9126    # okay in the real world where ";" in dirpaths is itself problematic.
9127    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9128  else
9129    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9130  fi
9131  # Ok, now we have the path, separated by spaces, we can step through it
9132  # and add multilib dir if necessary.
9133  lt_tmp_lt_search_path_spec=
9134  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9135  for lt_sys_path in $lt_search_path_spec; do
9136    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9137      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9138    else
9139      test -d "$lt_sys_path" && \
9140	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9141    fi
9142  done
9143  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9144BEGIN {RS=" "; FS="/|\n";} {
9145  lt_foo="";
9146  lt_count=0;
9147  for (lt_i = NF; lt_i > 0; lt_i--) {
9148    if ($lt_i != "" && $lt_i != ".") {
9149      if ($lt_i == "..") {
9150        lt_count++;
9151      } else {
9152        if (lt_count == 0) {
9153          lt_foo="/" $lt_i lt_foo;
9154        } else {
9155          lt_count--;
9156        }
9157      }
9158    }
9159  }
9160  if (lt_foo != "") { lt_freq[lt_foo]++; }
9161  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9162}'`
9163  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9164else
9165  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9166fi
9167library_names_spec=
9168libname_spec='lib$name'
9169soname_spec=
9170shrext_cmds=".so"
9171postinstall_cmds=
9172postuninstall_cmds=
9173finish_cmds=
9174finish_eval=
9175shlibpath_var=
9176shlibpath_overrides_runpath=unknown
9177version_type=none
9178dynamic_linker="$host_os ld.so"
9179sys_lib_dlsearch_path_spec="/lib /usr/lib"
9180need_lib_prefix=unknown
9181hardcode_into_libs=no
9182
9183# when you set need_version to no, make sure it does not cause -set_version
9184# flags to be left without arguments
9185need_version=unknown
9186
9187case $host_os in
9188aix3*)
9189  version_type=linux
9190  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9191  shlibpath_var=LIBPATH
9192
9193  # AIX 3 has no versioning support, so we append a major version to the name.
9194  soname_spec='${libname}${release}${shared_ext}$major'
9195  ;;
9196
9197aix[4-9]*)
9198  version_type=linux
9199  need_lib_prefix=no
9200  need_version=no
9201  hardcode_into_libs=yes
9202  if test "$host_cpu" = ia64; then
9203    # AIX 5 supports IA64
9204    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9205    shlibpath_var=LD_LIBRARY_PATH
9206  else
9207    # With GCC up to 2.95.x, collect2 would create an import file
9208    # for dependence libraries.  The import file would start with
9209    # the line `#! .'.  This would cause the generated library to
9210    # depend on `.', always an invalid library.  This was fixed in
9211    # development snapshots of GCC prior to 3.0.
9212    case $host_os in
9213      aix4 | aix4.[01] | aix4.[01].*)
9214      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9215	   echo ' yes '
9216	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9217	:
9218      else
9219	can_build_shared=no
9220      fi
9221      ;;
9222    esac
9223    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9224    # soname into executable. Probably we can add versioning support to
9225    # collect2, so additional links can be useful in future.
9226    if test "$aix_use_runtimelinking" = yes; then
9227      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9228      # instead of lib<name>.a to let people know that these are not
9229      # typical AIX shared libraries.
9230      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9231    else
9232      # We preserve .a as extension for shared libraries through AIX4.2
9233      # and later when we are not doing run time linking.
9234      library_names_spec='${libname}${release}.a $libname.a'
9235      soname_spec='${libname}${release}${shared_ext}$major'
9236    fi
9237    shlibpath_var=LIBPATH
9238  fi
9239  ;;
9240
9241amigaos*)
9242  case $host_cpu in
9243  powerpc)
9244    # Since July 2007 AmigaOS4 officially supports .so libraries.
9245    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9246    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9247    ;;
9248  m68k)
9249    library_names_spec='$libname.ixlibrary $libname.a'
9250    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9251    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9252    ;;
9253  esac
9254  ;;
9255
9256beos*)
9257  library_names_spec='${libname}${shared_ext}'
9258  dynamic_linker="$host_os ld.so"
9259  shlibpath_var=LIBRARY_PATH
9260  ;;
9261
9262bsdi[45]*)
9263  version_type=linux
9264  need_version=no
9265  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9266  soname_spec='${libname}${release}${shared_ext}$major'
9267  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9268  shlibpath_var=LD_LIBRARY_PATH
9269  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9270  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9271  # the default ld.so.conf also contains /usr/contrib/lib and
9272  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9273  # libtool to hard-code these into programs
9274  ;;
9275
9276cygwin* | mingw* | pw32* | cegcc*)
9277  version_type=windows
9278  shrext_cmds=".dll"
9279  need_version=no
9280  need_lib_prefix=no
9281
9282  case $GCC,$host_os in
9283  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9284    library_names_spec='$libname.dll.a'
9285    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9286    postinstall_cmds='base_file=`basename \${file}`~
9287      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9288      dldir=$destdir/`dirname \$dlpath`~
9289      test -d \$dldir || mkdir -p \$dldir~
9290      $install_prog $dir/$dlname \$dldir/$dlname~
9291      chmod a+x \$dldir/$dlname~
9292      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9293        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9294      fi'
9295    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9296      dlpath=$dir/\$dldll~
9297       $RM \$dlpath'
9298    shlibpath_overrides_runpath=yes
9299
9300    case $host_os in
9301    cygwin*)
9302      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9303      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9304      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9305      ;;
9306    mingw* | cegcc*)
9307      # MinGW DLLs use traditional 'lib' prefix
9308      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9309      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9310      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9311        # It is most probably a Windows format PATH printed by
9312        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9313        # path with ; separators, and with drive letters. We can handle the
9314        # drive letters (cygwin fileutils understands them), so leave them,
9315        # especially as we might pass files found there to a mingw objdump,
9316        # which wouldn't understand a cygwinified path. Ahh.
9317        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9318      else
9319        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9320      fi
9321      ;;
9322    pw32*)
9323      # pw32 DLLs use 'pw' prefix rather than 'lib'
9324      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9325      ;;
9326    esac
9327    ;;
9328
9329  *)
9330    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9331    ;;
9332  esac
9333  dynamic_linker='Win32 ld.exe'
9334  # FIXME: first we should search . and the directory the executable is in
9335  shlibpath_var=PATH
9336  ;;
9337
9338darwin* | rhapsody*)
9339  dynamic_linker="$host_os dyld"
9340  version_type=darwin
9341  need_lib_prefix=no
9342  need_version=no
9343  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9344  soname_spec='${libname}${release}${major}$shared_ext'
9345  shlibpath_overrides_runpath=yes
9346  shlibpath_var=DYLD_LIBRARY_PATH
9347  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9348
9349  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9350  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9351  ;;
9352
9353dgux*)
9354  version_type=linux
9355  need_lib_prefix=no
9356  need_version=no
9357  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9358  soname_spec='${libname}${release}${shared_ext}$major'
9359  shlibpath_var=LD_LIBRARY_PATH
9360  ;;
9361
9362freebsd1*)
9363  dynamic_linker=no
9364  ;;
9365
9366freebsd* | dragonfly*)
9367  # DragonFly does not have aout.  When/if they implement a new
9368  # versioning mechanism, adjust this.
9369  if test -x /usr/bin/objformat; then
9370    objformat=`/usr/bin/objformat`
9371  else
9372    case $host_os in
9373    freebsd[123]*) objformat=aout ;;
9374    *) objformat=elf ;;
9375    esac
9376  fi
9377  version_type=freebsd-$objformat
9378  case $version_type in
9379    freebsd-elf*)
9380      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9381      need_version=no
9382      need_lib_prefix=no
9383      ;;
9384    freebsd-*)
9385      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9386      need_version=yes
9387      ;;
9388  esac
9389  shlibpath_var=LD_LIBRARY_PATH
9390  case $host_os in
9391  freebsd2*)
9392    shlibpath_overrides_runpath=yes
9393    ;;
9394  freebsd3.[01]* | freebsdelf3.[01]*)
9395    shlibpath_overrides_runpath=yes
9396    hardcode_into_libs=yes
9397    ;;
9398  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9399  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9400    shlibpath_overrides_runpath=no
9401    hardcode_into_libs=yes
9402    ;;
9403  *) # from 4.6 on, and DragonFly
9404    shlibpath_overrides_runpath=yes
9405    hardcode_into_libs=yes
9406    ;;
9407  esac
9408  ;;
9409
9410gnu*)
9411  version_type=linux
9412  need_lib_prefix=no
9413  need_version=no
9414  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9415  soname_spec='${libname}${release}${shared_ext}$major'
9416  shlibpath_var=LD_LIBRARY_PATH
9417  hardcode_into_libs=yes
9418  ;;
9419
9420hpux9* | hpux10* | hpux11*)
9421  # Give a soname corresponding to the major version so that dld.sl refuses to
9422  # link against other versions.
9423  version_type=sunos
9424  need_lib_prefix=no
9425  need_version=no
9426  case $host_cpu in
9427  ia64*)
9428    shrext_cmds='.so'
9429    hardcode_into_libs=yes
9430    dynamic_linker="$host_os dld.so"
9431    shlibpath_var=LD_LIBRARY_PATH
9432    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9433    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9434    soname_spec='${libname}${release}${shared_ext}$major'
9435    if test "X$HPUX_IA64_MODE" = X32; then
9436      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9437    else
9438      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9439    fi
9440    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9441    ;;
9442  hppa*64*)
9443    shrext_cmds='.sl'
9444    hardcode_into_libs=yes
9445    dynamic_linker="$host_os dld.sl"
9446    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9447    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9448    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9449    soname_spec='${libname}${release}${shared_ext}$major'
9450    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9451    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9452    ;;
9453  *)
9454    shrext_cmds='.sl'
9455    dynamic_linker="$host_os dld.sl"
9456    shlibpath_var=SHLIB_PATH
9457    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9458    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9459    soname_spec='${libname}${release}${shared_ext}$major'
9460    ;;
9461  esac
9462  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9463  postinstall_cmds='chmod 555 $lib'
9464  ;;
9465
9466interix[3-9]*)
9467  version_type=linux
9468  need_lib_prefix=no
9469  need_version=no
9470  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9471  soname_spec='${libname}${release}${shared_ext}$major'
9472  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9473  shlibpath_var=LD_LIBRARY_PATH
9474  shlibpath_overrides_runpath=no
9475  hardcode_into_libs=yes
9476  ;;
9477
9478irix5* | irix6* | nonstopux*)
9479  case $host_os in
9480    nonstopux*) version_type=nonstopux ;;
9481    *)
9482	if test "$lt_cv_prog_gnu_ld" = yes; then
9483		version_type=linux
9484	else
9485		version_type=irix
9486	fi ;;
9487  esac
9488  need_lib_prefix=no
9489  need_version=no
9490  soname_spec='${libname}${release}${shared_ext}$major'
9491  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9492  case $host_os in
9493  irix5* | nonstopux*)
9494    libsuff= shlibsuff=
9495    ;;
9496  *)
9497    case $LD in # libtool.m4 will add one of these switches to LD
9498    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9499      libsuff= shlibsuff= libmagic=32-bit;;
9500    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9501      libsuff=32 shlibsuff=N32 libmagic=N32;;
9502    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9503      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9504    *) libsuff= shlibsuff= libmagic=never-match;;
9505    esac
9506    ;;
9507  esac
9508  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9509  shlibpath_overrides_runpath=no
9510  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9511  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9512  hardcode_into_libs=yes
9513  ;;
9514
9515# No shared lib support for Linux oldld, aout, or coff.
9516linux*oldld* | linux*aout* | linux*coff*)
9517  dynamic_linker=no
9518  ;;
9519
9520# This must be Linux ELF.
9521linux* | k*bsd*-gnu)
9522  version_type=linux
9523  need_lib_prefix=no
9524  need_version=no
9525  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9526  soname_spec='${libname}${release}${shared_ext}$major'
9527  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9528  shlibpath_var=LD_LIBRARY_PATH
9529  shlibpath_overrides_runpath=no
9530  # Some binutils ld are patched to set DT_RUNPATH
9531  save_LDFLAGS=$LDFLAGS
9532  save_libdir=$libdir
9533  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9534       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9536/* end confdefs.h.  */
9537
9538int
9539main ()
9540{
9541
9542  ;
9543  return 0;
9544}
9545_ACEOF
9546if ac_fn_c_try_link "$LINENO"; then :
9547  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9548  shlibpath_overrides_runpath=yes
9549fi
9550fi
9551rm -f core conftest.err conftest.$ac_objext \
9552    conftest$ac_exeext conftest.$ac_ext
9553  LDFLAGS=$save_LDFLAGS
9554  libdir=$save_libdir
9555
9556  # This implies no fast_install, which is unacceptable.
9557  # Some rework will be needed to allow for fast_install
9558  # before this can be enabled.
9559  hardcode_into_libs=yes
9560
9561  # Append ld.so.conf contents to the search path
9562  if test -f /etc/ld.so.conf; then
9563    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9564    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9565  fi
9566
9567  # We used to test for /lib/ld.so.1 and disable shared libraries on
9568  # powerpc, because MkLinux only supported shared libraries with the
9569  # GNU dynamic linker.  Since this was broken with cross compilers,
9570  # most powerpc-linux boxes support dynamic linking these days and
9571  # people can always --disable-shared, the test was removed, and we
9572  # assume the GNU/Linux dynamic linker is in use.
9573  dynamic_linker='GNU/Linux ld.so'
9574  ;;
9575
9576netbsd*)
9577  version_type=sunos
9578  need_lib_prefix=no
9579  need_version=no
9580  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9581    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9582    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9583    dynamic_linker='NetBSD (a.out) ld.so'
9584  else
9585    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9586    soname_spec='${libname}${release}${shared_ext}$major'
9587    dynamic_linker='NetBSD ld.elf_so'
9588  fi
9589  shlibpath_var=LD_LIBRARY_PATH
9590  shlibpath_overrides_runpath=yes
9591  hardcode_into_libs=yes
9592  ;;
9593
9594newsos6)
9595  version_type=linux
9596  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9597  shlibpath_var=LD_LIBRARY_PATH
9598  shlibpath_overrides_runpath=yes
9599  ;;
9600
9601*nto* | *qnx*)
9602  version_type=qnx
9603  need_lib_prefix=no
9604  need_version=no
9605  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9606  soname_spec='${libname}${release}${shared_ext}$major'
9607  shlibpath_var=LD_LIBRARY_PATH
9608  shlibpath_overrides_runpath=no
9609  hardcode_into_libs=yes
9610  dynamic_linker='ldqnx.so'
9611  ;;
9612
9613openbsd*)
9614  version_type=sunos
9615  sys_lib_dlsearch_path_spec="/usr/lib"
9616  need_lib_prefix=no
9617  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9618  case $host_os in
9619    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9620    *)				need_version=no  ;;
9621  esac
9622  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9623  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9624  shlibpath_var=LD_LIBRARY_PATH
9625  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9626    case $host_os in
9627      openbsd2.[89] | openbsd2.[89].*)
9628	shlibpath_overrides_runpath=no
9629	;;
9630      *)
9631	shlibpath_overrides_runpath=yes
9632	;;
9633      esac
9634  else
9635    shlibpath_overrides_runpath=yes
9636  fi
9637  ;;
9638
9639os2*)
9640  libname_spec='$name'
9641  shrext_cmds=".dll"
9642  need_lib_prefix=no
9643  library_names_spec='$libname${shared_ext} $libname.a'
9644  dynamic_linker='OS/2 ld.exe'
9645  shlibpath_var=LIBPATH
9646  ;;
9647
9648osf3* | osf4* | osf5*)
9649  version_type=osf
9650  need_lib_prefix=no
9651  need_version=no
9652  soname_spec='${libname}${release}${shared_ext}$major'
9653  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9654  shlibpath_var=LD_LIBRARY_PATH
9655  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9656  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9657  ;;
9658
9659rdos*)
9660  dynamic_linker=no
9661  ;;
9662
9663solaris*)
9664  version_type=linux
9665  need_lib_prefix=no
9666  need_version=no
9667  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9668  soname_spec='${libname}${release}${shared_ext}$major'
9669  shlibpath_var=LD_LIBRARY_PATH
9670  shlibpath_overrides_runpath=yes
9671  hardcode_into_libs=yes
9672  # ldd complains unless libraries are executable
9673  postinstall_cmds='chmod +x $lib'
9674  ;;
9675
9676sunos4*)
9677  version_type=sunos
9678  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9679  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9680  shlibpath_var=LD_LIBRARY_PATH
9681  shlibpath_overrides_runpath=yes
9682  if test "$with_gnu_ld" = yes; then
9683    need_lib_prefix=no
9684  fi
9685  need_version=yes
9686  ;;
9687
9688sysv4 | sysv4.3*)
9689  version_type=linux
9690  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9691  soname_spec='${libname}${release}${shared_ext}$major'
9692  shlibpath_var=LD_LIBRARY_PATH
9693  case $host_vendor in
9694    sni)
9695      shlibpath_overrides_runpath=no
9696      need_lib_prefix=no
9697      runpath_var=LD_RUN_PATH
9698      ;;
9699    siemens)
9700      need_lib_prefix=no
9701      ;;
9702    motorola)
9703      need_lib_prefix=no
9704      need_version=no
9705      shlibpath_overrides_runpath=no
9706      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9707      ;;
9708  esac
9709  ;;
9710
9711sysv4*MP*)
9712  if test -d /usr/nec ;then
9713    version_type=linux
9714    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9715    soname_spec='$libname${shared_ext}.$major'
9716    shlibpath_var=LD_LIBRARY_PATH
9717  fi
9718  ;;
9719
9720sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9721  version_type=freebsd-elf
9722  need_lib_prefix=no
9723  need_version=no
9724  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9725  soname_spec='${libname}${release}${shared_ext}$major'
9726  shlibpath_var=LD_LIBRARY_PATH
9727  shlibpath_overrides_runpath=yes
9728  hardcode_into_libs=yes
9729  if test "$with_gnu_ld" = yes; then
9730    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9731  else
9732    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9733    case $host_os in
9734      sco3.2v5*)
9735        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9736	;;
9737    esac
9738  fi
9739  sys_lib_dlsearch_path_spec='/usr/lib'
9740  ;;
9741
9742tpf*)
9743  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9744  version_type=linux
9745  need_lib_prefix=no
9746  need_version=no
9747  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9748  shlibpath_var=LD_LIBRARY_PATH
9749  shlibpath_overrides_runpath=no
9750  hardcode_into_libs=yes
9751  ;;
9752
9753uts4*)
9754  version_type=linux
9755  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9756  soname_spec='${libname}${release}${shared_ext}$major'
9757  shlibpath_var=LD_LIBRARY_PATH
9758  ;;
9759
9760*)
9761  dynamic_linker=no
9762  ;;
9763esac
9764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9765$as_echo "$dynamic_linker" >&6; }
9766test "$dynamic_linker" = no && can_build_shared=no
9767
9768variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9769if test "$GCC" = yes; then
9770  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9771fi
9772
9773if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9774  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9775fi
9776if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9777  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9778fi
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9867$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9868hardcode_action=
9869if test -n "$hardcode_libdir_flag_spec" ||
9870   test -n "$runpath_var" ||
9871   test "X$hardcode_automatic" = "Xyes" ; then
9872
9873  # We can hardcode non-existent directories.
9874  if test "$hardcode_direct" != no &&
9875     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9876     # have to relink, otherwise we might link with an installed library
9877     # when we should be linking with a yet-to-be-installed one
9878     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9879     test "$hardcode_minus_L" != no; then
9880    # Linking always hardcodes the temporary library directory.
9881    hardcode_action=relink
9882  else
9883    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9884    hardcode_action=immediate
9885  fi
9886else
9887  # We cannot hardcode anything, or else we can only hardcode existing
9888  # directories.
9889  hardcode_action=unsupported
9890fi
9891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9892$as_echo "$hardcode_action" >&6; }
9893
9894if test "$hardcode_action" = relink ||
9895   test "$inherit_rpath" = yes; then
9896  # Fast installation is not supported
9897  enable_fast_install=no
9898elif test "$shlibpath_overrides_runpath" = yes ||
9899     test "$enable_shared" = no; then
9900  # Fast installation is not necessary
9901  enable_fast_install=needless
9902fi
9903
9904
9905
9906
9907
9908
9909  if test "x$enable_dlopen" != xyes; then
9910  enable_dlopen=unknown
9911  enable_dlopen_self=unknown
9912  enable_dlopen_self_static=unknown
9913else
9914  lt_cv_dlopen=no
9915  lt_cv_dlopen_libs=
9916
9917  case $host_os in
9918  beos*)
9919    lt_cv_dlopen="load_add_on"
9920    lt_cv_dlopen_libs=
9921    lt_cv_dlopen_self=yes
9922    ;;
9923
9924  mingw* | pw32* | cegcc*)
9925    lt_cv_dlopen="LoadLibrary"
9926    lt_cv_dlopen_libs=
9927    ;;
9928
9929  cygwin*)
9930    lt_cv_dlopen="dlopen"
9931    lt_cv_dlopen_libs=
9932    ;;
9933
9934  darwin*)
9935  # if libdl is installed we need to link against it
9936    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9937$as_echo_n "checking for dlopen in -ldl... " >&6; }
9938if ${ac_cv_lib_dl_dlopen+:} false; then :
9939  $as_echo_n "(cached) " >&6
9940else
9941  ac_check_lib_save_LIBS=$LIBS
9942LIBS="-ldl  $LIBS"
9943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9944/* end confdefs.h.  */
9945
9946/* Override any GCC internal prototype to avoid an error.
9947   Use char because int might match the return type of a GCC
9948   builtin and then its argument prototype would still apply.  */
9949#ifdef __cplusplus
9950extern "C"
9951#endif
9952char dlopen ();
9953int
9954main ()
9955{
9956return dlopen ();
9957  ;
9958  return 0;
9959}
9960_ACEOF
9961if ac_fn_c_try_link "$LINENO"; then :
9962  ac_cv_lib_dl_dlopen=yes
9963else
9964  ac_cv_lib_dl_dlopen=no
9965fi
9966rm -f core conftest.err conftest.$ac_objext \
9967    conftest$ac_exeext conftest.$ac_ext
9968LIBS=$ac_check_lib_save_LIBS
9969fi
9970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9971$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9972if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9973  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9974else
9975
9976    lt_cv_dlopen="dyld"
9977    lt_cv_dlopen_libs=
9978    lt_cv_dlopen_self=yes
9979
9980fi
9981
9982    ;;
9983
9984  *)
9985    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9986if test "x$ac_cv_func_shl_load" = xyes; then :
9987  lt_cv_dlopen="shl_load"
9988else
9989  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9990$as_echo_n "checking for shl_load in -ldld... " >&6; }
9991if ${ac_cv_lib_dld_shl_load+:} false; then :
9992  $as_echo_n "(cached) " >&6
9993else
9994  ac_check_lib_save_LIBS=$LIBS
9995LIBS="-ldld  $LIBS"
9996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9997/* end confdefs.h.  */
9998
9999/* Override any GCC internal prototype to avoid an error.
10000   Use char because int might match the return type of a GCC
10001   builtin and then its argument prototype would still apply.  */
10002#ifdef __cplusplus
10003extern "C"
10004#endif
10005char shl_load ();
10006int
10007main ()
10008{
10009return shl_load ();
10010  ;
10011  return 0;
10012}
10013_ACEOF
10014if ac_fn_c_try_link "$LINENO"; then :
10015  ac_cv_lib_dld_shl_load=yes
10016else
10017  ac_cv_lib_dld_shl_load=no
10018fi
10019rm -f core conftest.err conftest.$ac_objext \
10020    conftest$ac_exeext conftest.$ac_ext
10021LIBS=$ac_check_lib_save_LIBS
10022fi
10023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10024$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10025if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10026  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10027else
10028  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10029if test "x$ac_cv_func_dlopen" = xyes; then :
10030  lt_cv_dlopen="dlopen"
10031else
10032  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10033$as_echo_n "checking for dlopen in -ldl... " >&6; }
10034if ${ac_cv_lib_dl_dlopen+:} false; then :
10035  $as_echo_n "(cached) " >&6
10036else
10037  ac_check_lib_save_LIBS=$LIBS
10038LIBS="-ldl  $LIBS"
10039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10040/* end confdefs.h.  */
10041
10042/* Override any GCC internal prototype to avoid an error.
10043   Use char because int might match the return type of a GCC
10044   builtin and then its argument prototype would still apply.  */
10045#ifdef __cplusplus
10046extern "C"
10047#endif
10048char dlopen ();
10049int
10050main ()
10051{
10052return dlopen ();
10053  ;
10054  return 0;
10055}
10056_ACEOF
10057if ac_fn_c_try_link "$LINENO"; then :
10058  ac_cv_lib_dl_dlopen=yes
10059else
10060  ac_cv_lib_dl_dlopen=no
10061fi
10062rm -f core conftest.err conftest.$ac_objext \
10063    conftest$ac_exeext conftest.$ac_ext
10064LIBS=$ac_check_lib_save_LIBS
10065fi
10066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10067$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10068if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10069  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10070else
10071  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10072$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10073if ${ac_cv_lib_svld_dlopen+:} false; then :
10074  $as_echo_n "(cached) " >&6
10075else
10076  ac_check_lib_save_LIBS=$LIBS
10077LIBS="-lsvld  $LIBS"
10078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10079/* end confdefs.h.  */
10080
10081/* Override any GCC internal prototype to avoid an error.
10082   Use char because int might match the return type of a GCC
10083   builtin and then its argument prototype would still apply.  */
10084#ifdef __cplusplus
10085extern "C"
10086#endif
10087char dlopen ();
10088int
10089main ()
10090{
10091return dlopen ();
10092  ;
10093  return 0;
10094}
10095_ACEOF
10096if ac_fn_c_try_link "$LINENO"; then :
10097  ac_cv_lib_svld_dlopen=yes
10098else
10099  ac_cv_lib_svld_dlopen=no
10100fi
10101rm -f core conftest.err conftest.$ac_objext \
10102    conftest$ac_exeext conftest.$ac_ext
10103LIBS=$ac_check_lib_save_LIBS
10104fi
10105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10106$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10107if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10108  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10109else
10110  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10111$as_echo_n "checking for dld_link in -ldld... " >&6; }
10112if ${ac_cv_lib_dld_dld_link+:} false; then :
10113  $as_echo_n "(cached) " >&6
10114else
10115  ac_check_lib_save_LIBS=$LIBS
10116LIBS="-ldld  $LIBS"
10117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10118/* end confdefs.h.  */
10119
10120/* Override any GCC internal prototype to avoid an error.
10121   Use char because int might match the return type of a GCC
10122   builtin and then its argument prototype would still apply.  */
10123#ifdef __cplusplus
10124extern "C"
10125#endif
10126char dld_link ();
10127int
10128main ()
10129{
10130return dld_link ();
10131  ;
10132  return 0;
10133}
10134_ACEOF
10135if ac_fn_c_try_link "$LINENO"; then :
10136  ac_cv_lib_dld_dld_link=yes
10137else
10138  ac_cv_lib_dld_dld_link=no
10139fi
10140rm -f core conftest.err conftest.$ac_objext \
10141    conftest$ac_exeext conftest.$ac_ext
10142LIBS=$ac_check_lib_save_LIBS
10143fi
10144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10145$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10146if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10147  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10148fi
10149
10150
10151fi
10152
10153
10154fi
10155
10156
10157fi
10158
10159
10160fi
10161
10162
10163fi
10164
10165    ;;
10166  esac
10167
10168  if test "x$lt_cv_dlopen" != xno; then
10169    enable_dlopen=yes
10170  else
10171    enable_dlopen=no
10172  fi
10173
10174  case $lt_cv_dlopen in
10175  dlopen)
10176    save_CPPFLAGS="$CPPFLAGS"
10177    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10178
10179    save_LDFLAGS="$LDFLAGS"
10180    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10181
10182    save_LIBS="$LIBS"
10183    LIBS="$lt_cv_dlopen_libs $LIBS"
10184
10185    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10186$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10187if ${lt_cv_dlopen_self+:} false; then :
10188  $as_echo_n "(cached) " >&6
10189else
10190  	  if test "$cross_compiling" = yes; then :
10191  lt_cv_dlopen_self=cross
10192else
10193  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10194  lt_status=$lt_dlunknown
10195  cat > conftest.$ac_ext <<_LT_EOF
10196#line 10196 "configure"
10197#include "confdefs.h"
10198
10199#if HAVE_DLFCN_H
10200#include <dlfcn.h>
10201#endif
10202
10203#include <stdio.h>
10204
10205#ifdef RTLD_GLOBAL
10206#  define LT_DLGLOBAL		RTLD_GLOBAL
10207#else
10208#  ifdef DL_GLOBAL
10209#    define LT_DLGLOBAL		DL_GLOBAL
10210#  else
10211#    define LT_DLGLOBAL		0
10212#  endif
10213#endif
10214
10215/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10216   find out it does not work in some platform. */
10217#ifndef LT_DLLAZY_OR_NOW
10218#  ifdef RTLD_LAZY
10219#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10220#  else
10221#    ifdef DL_LAZY
10222#      define LT_DLLAZY_OR_NOW		DL_LAZY
10223#    else
10224#      ifdef RTLD_NOW
10225#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10226#      else
10227#        ifdef DL_NOW
10228#          define LT_DLLAZY_OR_NOW	DL_NOW
10229#        else
10230#          define LT_DLLAZY_OR_NOW	0
10231#        endif
10232#      endif
10233#    endif
10234#  endif
10235#endif
10236
10237void fnord() { int i=42;}
10238int main ()
10239{
10240  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10241  int status = $lt_dlunknown;
10242
10243  if (self)
10244    {
10245      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10246      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10247      /* dlclose (self); */
10248    }
10249  else
10250    puts (dlerror ());
10251
10252  return status;
10253}
10254_LT_EOF
10255  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10256  (eval $ac_link) 2>&5
10257  ac_status=$?
10258  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10259  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10260    (./conftest; exit; ) >&5 2>/dev/null
10261    lt_status=$?
10262    case x$lt_status in
10263      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10264      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10265      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10266    esac
10267  else :
10268    # compilation failed
10269    lt_cv_dlopen_self=no
10270  fi
10271fi
10272rm -fr conftest*
10273
10274
10275fi
10276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10277$as_echo "$lt_cv_dlopen_self" >&6; }
10278
10279    if test "x$lt_cv_dlopen_self" = xyes; then
10280      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10281      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10282$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10283if ${lt_cv_dlopen_self_static+:} false; then :
10284  $as_echo_n "(cached) " >&6
10285else
10286  	  if test "$cross_compiling" = yes; then :
10287  lt_cv_dlopen_self_static=cross
10288else
10289  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10290  lt_status=$lt_dlunknown
10291  cat > conftest.$ac_ext <<_LT_EOF
10292#line 10292 "configure"
10293#include "confdefs.h"
10294
10295#if HAVE_DLFCN_H
10296#include <dlfcn.h>
10297#endif
10298
10299#include <stdio.h>
10300
10301#ifdef RTLD_GLOBAL
10302#  define LT_DLGLOBAL		RTLD_GLOBAL
10303#else
10304#  ifdef DL_GLOBAL
10305#    define LT_DLGLOBAL		DL_GLOBAL
10306#  else
10307#    define LT_DLGLOBAL		0
10308#  endif
10309#endif
10310
10311/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10312   find out it does not work in some platform. */
10313#ifndef LT_DLLAZY_OR_NOW
10314#  ifdef RTLD_LAZY
10315#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10316#  else
10317#    ifdef DL_LAZY
10318#      define LT_DLLAZY_OR_NOW		DL_LAZY
10319#    else
10320#      ifdef RTLD_NOW
10321#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10322#      else
10323#        ifdef DL_NOW
10324#          define LT_DLLAZY_OR_NOW	DL_NOW
10325#        else
10326#          define LT_DLLAZY_OR_NOW	0
10327#        endif
10328#      endif
10329#    endif
10330#  endif
10331#endif
10332
10333void fnord() { int i=42;}
10334int main ()
10335{
10336  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10337  int status = $lt_dlunknown;
10338
10339  if (self)
10340    {
10341      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10342      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10343      /* dlclose (self); */
10344    }
10345  else
10346    puts (dlerror ());
10347
10348  return status;
10349}
10350_LT_EOF
10351  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10352  (eval $ac_link) 2>&5
10353  ac_status=$?
10354  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10355  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10356    (./conftest; exit; ) >&5 2>/dev/null
10357    lt_status=$?
10358    case x$lt_status in
10359      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10360      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10361      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10362    esac
10363  else :
10364    # compilation failed
10365    lt_cv_dlopen_self_static=no
10366  fi
10367fi
10368rm -fr conftest*
10369
10370
10371fi
10372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10373$as_echo "$lt_cv_dlopen_self_static" >&6; }
10374    fi
10375
10376    CPPFLAGS="$save_CPPFLAGS"
10377    LDFLAGS="$save_LDFLAGS"
10378    LIBS="$save_LIBS"
10379    ;;
10380  esac
10381
10382  case $lt_cv_dlopen_self in
10383  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10384  *) enable_dlopen_self=unknown ;;
10385  esac
10386
10387  case $lt_cv_dlopen_self_static in
10388  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10389  *) enable_dlopen_self_static=unknown ;;
10390  esac
10391fi
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409striplib=
10410old_striplib=
10411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10412$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10413if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10414  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10415  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10417$as_echo "yes" >&6; }
10418else
10419# FIXME - insert some real tests, host_os isn't really good enough
10420  case $host_os in
10421  darwin*)
10422    if test -n "$STRIP" ; then
10423      striplib="$STRIP -x"
10424      old_striplib="$STRIP -S"
10425      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10426$as_echo "yes" >&6; }
10427    else
10428      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10429$as_echo "no" >&6; }
10430    fi
10431    ;;
10432  *)
10433    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10434$as_echo "no" >&6; }
10435    ;;
10436  esac
10437fi
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450  # Report which library types will actually be built
10451  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10452$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10454$as_echo "$can_build_shared" >&6; }
10455
10456  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10457$as_echo_n "checking whether to build shared libraries... " >&6; }
10458  test "$can_build_shared" = "no" && enable_shared=no
10459
10460  # On AIX, shared libraries and static libraries use the same namespace, and
10461  # are all built from PIC.
10462  case $host_os in
10463  aix3*)
10464    test "$enable_shared" = yes && enable_static=no
10465    if test -n "$RANLIB"; then
10466      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10467      postinstall_cmds='$RANLIB $lib'
10468    fi
10469    ;;
10470
10471  aix[4-9]*)
10472    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10473      test "$enable_shared" = yes && enable_static=no
10474    fi
10475    ;;
10476  esac
10477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10478$as_echo "$enable_shared" >&6; }
10479
10480  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10481$as_echo_n "checking whether to build static libraries... " >&6; }
10482  # Make sure either enable_shared or enable_static is yes.
10483  test "$enable_shared" = yes || enable_static=yes
10484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10485$as_echo "$enable_static" >&6; }
10486
10487
10488
10489
10490fi
10491ac_ext=c
10492ac_cpp='$CPP $CPPFLAGS'
10493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10495ac_compiler_gnu=$ac_cv_c_compiler_gnu
10496
10497CC="$lt_save_CC"
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511        ac_config_commands="$ac_config_commands libtool"
10512
10513
10514
10515
10516# Only expand once:
10517
10518
10519
10520if test "x$CC" != xcc; then
10521  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
10522$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
10523else
10524  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
10525$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
10526fi
10527set dummy $CC; ac_cc=`$as_echo "$2" |
10528		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
10529if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
10530  $as_echo_n "(cached) " >&6
10531else
10532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10533/* end confdefs.h.  */
10534
10535int
10536main ()
10537{
10538
10539  ;
10540  return 0;
10541}
10542_ACEOF
10543# Make sure it works both with $CC and with simple cc.
10544# We do the test twice because some compilers refuse to overwrite an
10545# existing .o file with -o, though they will create one.
10546ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
10547rm -f conftest2.*
10548if { { case "(($ac_try" in
10549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10550  *) ac_try_echo=$ac_try;;
10551esac
10552eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10553$as_echo "$ac_try_echo"; } >&5
10554  (eval "$ac_try") 2>&5
10555  ac_status=$?
10556  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10557  test $ac_status = 0; } &&
10558   test -f conftest2.$ac_objext && { { case "(($ac_try" in
10559  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10560  *) ac_try_echo=$ac_try;;
10561esac
10562eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10563$as_echo "$ac_try_echo"; } >&5
10564  (eval "$ac_try") 2>&5
10565  ac_status=$?
10566  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10567  test $ac_status = 0; };
10568then
10569  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
10570  if test "x$CC" != xcc; then
10571    # Test first that cc exists at all.
10572    if { ac_try='cc -c conftest.$ac_ext >&5'
10573  { { case "(($ac_try" in
10574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10575  *) ac_try_echo=$ac_try;;
10576esac
10577eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10578$as_echo "$ac_try_echo"; } >&5
10579  (eval "$ac_try") 2>&5
10580  ac_status=$?
10581  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10582  test $ac_status = 0; }; }; then
10583      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
10584      rm -f conftest2.*
10585      if { { case "(($ac_try" in
10586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10587  *) ac_try_echo=$ac_try;;
10588esac
10589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10590$as_echo "$ac_try_echo"; } >&5
10591  (eval "$ac_try") 2>&5
10592  ac_status=$?
10593  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10594  test $ac_status = 0; } &&
10595	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
10596  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10597  *) ac_try_echo=$ac_try;;
10598esac
10599eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10600$as_echo "$ac_try_echo"; } >&5
10601  (eval "$ac_try") 2>&5
10602  ac_status=$?
10603  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10604  test $ac_status = 0; };
10605      then
10606	# cc works too.
10607	:
10608      else
10609	# cc exists but doesn't like -o.
10610	eval ac_cv_prog_cc_${ac_cc}_c_o=no
10611      fi
10612    fi
10613  fi
10614else
10615  eval ac_cv_prog_cc_${ac_cc}_c_o=no
10616fi
10617rm -f core conftest*
10618
10619fi
10620if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
10621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10622$as_echo "yes" >&6; }
10623else
10624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10625$as_echo "no" >&6; }
10626
10627$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
10628
10629fi
10630
10631# FIXME: we rely on the cache variable name because
10632# there is no other way.
10633set dummy $CC
10634am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
10635eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
10636if test "$am_t" != yes; then
10637   # Losing compiler, so override with the script.
10638   # FIXME: It is wrong to rewrite CC.
10639   # But if we don't then we get into trouble of one sort or another.
10640   # A longer-term fix would be to have automake use am__CC in this case,
10641   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
10642   CC="$am_aux_dir/compile $CC"
10643fi
10644
10645
10646
10647
10648#
10649# [GP_PKG_CONFIG]
10650#
10651
10652export PKG_CONFIG
10653
10654export PKG_CONFIG_PATH
10655
10656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PKG_CONFIG_PATH" >&5
10657$as_echo_n "checking PKG_CONFIG_PATH... " >&6; }
10658if test "x${PKG_CONFIG_PATH}" = "x"; then
10659	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: empty" >&5
10660$as_echo "empty" >&6; }
10661else
10662	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PKG_CONFIG_PATH}" >&5
10663$as_echo "${PKG_CONFIG_PATH}" >&6; }
10664fi
10665
10666# Extract the first word of "pkg-config", so it can be a program name with args.
10667set dummy pkg-config; ac_word=$2
10668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10669$as_echo_n "checking for $ac_word... " >&6; }
10670if ${ac_cv_path_PKG_CONFIG+:} false; then :
10671  $as_echo_n "(cached) " >&6
10672else
10673  case $PKG_CONFIG in
10674  [\\/]* | ?:[\\/]*)
10675  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10676  ;;
10677  *)
10678  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10679for as_dir in $PATH
10680do
10681  IFS=$as_save_IFS
10682  test -z "$as_dir" && as_dir=.
10683    for ac_exec_ext in '' $ac_executable_extensions; do
10684  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10685    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10686    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10687    break 2
10688  fi
10689done
10690  done
10691IFS=$as_save_IFS
10692
10693  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="false"
10694  ;;
10695esac
10696fi
10697PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10698if test -n "$PKG_CONFIG"; then
10699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10700$as_echo "$PKG_CONFIG" >&6; }
10701else
10702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10703$as_echo "no" >&6; }
10704fi
10705
10706
10707if test "$PKG_CONFIG" = "false"; then
10708as_fn_error $? "
10709*** Build requires pkg-config
10710***
10711*** Possible solutions:
10712***   - set PKG_CONFIG to where your pkg-config is located
10713***   - set PATH to include the directory where pkg-config is installed
10714***   - get it from http://freedesktop.org/software/pkgconfig/ and install it
10715" "$LINENO" 5
10716fi
10717
10718
10719
10720
10721
10722
10723
10724
10725if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10726	if test -n "$ac_tool_prefix"; then
10727  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10728set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10730$as_echo_n "checking for $ac_word... " >&6; }
10731if ${ac_cv_path_PKG_CONFIG+:} false; then :
10732  $as_echo_n "(cached) " >&6
10733else
10734  case $PKG_CONFIG in
10735  [\\/]* | ?:[\\/]*)
10736  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10737  ;;
10738  *)
10739  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10740for as_dir in $PATH
10741do
10742  IFS=$as_save_IFS
10743  test -z "$as_dir" && as_dir=.
10744    for ac_exec_ext in '' $ac_executable_extensions; do
10745  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10746    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10747    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10748    break 2
10749  fi
10750done
10751  done
10752IFS=$as_save_IFS
10753
10754  ;;
10755esac
10756fi
10757PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10758if test -n "$PKG_CONFIG"; then
10759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10760$as_echo "$PKG_CONFIG" >&6; }
10761else
10762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10763$as_echo "no" >&6; }
10764fi
10765
10766
10767fi
10768if test -z "$ac_cv_path_PKG_CONFIG"; then
10769  ac_pt_PKG_CONFIG=$PKG_CONFIG
10770  # Extract the first word of "pkg-config", so it can be a program name with args.
10771set dummy pkg-config; ac_word=$2
10772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10773$as_echo_n "checking for $ac_word... " >&6; }
10774if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
10775  $as_echo_n "(cached) " >&6
10776else
10777  case $ac_pt_PKG_CONFIG in
10778  [\\/]* | ?:[\\/]*)
10779  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10780  ;;
10781  *)
10782  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10783for as_dir in $PATH
10784do
10785  IFS=$as_save_IFS
10786  test -z "$as_dir" && as_dir=.
10787    for ac_exec_ext in '' $ac_executable_extensions; do
10788  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10789    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10790    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10791    break 2
10792  fi
10793done
10794  done
10795IFS=$as_save_IFS
10796
10797  ;;
10798esac
10799fi
10800ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10801if test -n "$ac_pt_PKG_CONFIG"; then
10802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10803$as_echo "$ac_pt_PKG_CONFIG" >&6; }
10804else
10805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10806$as_echo "no" >&6; }
10807fi
10808
10809  if test "x$ac_pt_PKG_CONFIG" = x; then
10810    PKG_CONFIG=""
10811  else
10812    case $cross_compiling:$ac_tool_warned in
10813yes:)
10814{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10815$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10816ac_tool_warned=yes ;;
10817esac
10818    PKG_CONFIG=$ac_pt_PKG_CONFIG
10819  fi
10820else
10821  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10822fi
10823
10824fi
10825if test -n "$PKG_CONFIG"; then
10826	_pkg_min_version=0.9.0
10827	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10828$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10829	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10830		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10831$as_echo "yes" >&6; }
10832	else
10833		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10834$as_echo "no" >&6; }
10835		PKG_CONFIG=""
10836	fi
10837fi
10838
10839pkg_failed=no
10840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FUSE" >&5
10841$as_echo_n "checking for FUSE... " >&6; }
10842
10843if test -n "$FUSE_CFLAGS"; then
10844    pkg_cv_FUSE_CFLAGS="$FUSE_CFLAGS"
10845 elif test -n "$PKG_CONFIG"; then
10846    if test -n "$PKG_CONFIG" && \
10847    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse >= 2.5\""; } >&5
10848  ($PKG_CONFIG --exists --print-errors "fuse >= 2.5") 2>&5
10849  ac_status=$?
10850  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10851  test $ac_status = 0; }; then
10852  pkg_cv_FUSE_CFLAGS=`$PKG_CONFIG --cflags "fuse >= 2.5" 2>/dev/null`
10853else
10854  pkg_failed=yes
10855fi
10856 else
10857    pkg_failed=untried
10858fi
10859if test -n "$FUSE_LIBS"; then
10860    pkg_cv_FUSE_LIBS="$FUSE_LIBS"
10861 elif test -n "$PKG_CONFIG"; then
10862    if test -n "$PKG_CONFIG" && \
10863    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse >= 2.5\""; } >&5
10864  ($PKG_CONFIG --exists --print-errors "fuse >= 2.5") 2>&5
10865  ac_status=$?
10866  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10867  test $ac_status = 0; }; then
10868  pkg_cv_FUSE_LIBS=`$PKG_CONFIG --libs "fuse >= 2.5" 2>/dev/null`
10869else
10870  pkg_failed=yes
10871fi
10872 else
10873    pkg_failed=untried
10874fi
10875
10876
10877
10878if test $pkg_failed = yes; then
10879   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10880$as_echo "no" >&6; }
10881
10882if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10883        _pkg_short_errors_supported=yes
10884else
10885        _pkg_short_errors_supported=no
10886fi
10887        if test $_pkg_short_errors_supported = yes; then
10888	        FUSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fuse >= 2.5" 2>&1`
10889        else
10890	        FUSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "fuse >= 2.5" 2>&1`
10891        fi
10892	# Put the nasty error message in config.log where it belongs
10893	echo "$FUSE_PKG_ERRORS" >&5
10894
10895	as_fn_error $? "Package requirements (fuse >= 2.5) were not met:
10896
10897$FUSE_PKG_ERRORS
10898
10899Consider adjusting the PKG_CONFIG_PATH environment variable if you
10900installed software in a non-standard prefix.
10901
10902Alternatively, you may set the environment variables FUSE_CFLAGS
10903and FUSE_LIBS to avoid the need to call pkg-config.
10904See the pkg-config man page for more details." "$LINENO" 5
10905elif test $pkg_failed = untried; then
10906     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10907$as_echo "no" >&6; }
10908	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10909$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10910as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10911is in your PATH or set the PKG_CONFIG environment variable to the full
10912path to pkg-config.
10913
10914Alternatively, you may set the environment variables FUSE_CFLAGS
10915and FUSE_LIBS to avoid the need to call pkg-config.
10916See the pkg-config man page for more details.
10917
10918To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10919See \`config.log' for more details" "$LINENO" 5; }
10920else
10921	FUSE_CFLAGS=$pkg_cv_FUSE_CFLAGS
10922	FUSE_LIBS=$pkg_cv_FUSE_LIBS
10923        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10924$as_echo "yes" >&6; }
10925
10926fi
10927
10928
10929
10930
10931pkg_failed=no
10932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
10933$as_echo_n "checking for GLIB... " >&6; }
10934
10935if test -n "$GLIB_CFLAGS"; then
10936    pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
10937 elif test -n "$PKG_CONFIG"; then
10938    if test -n "$PKG_CONFIG" && \
10939    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.6\""; } >&5
10940  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.6") 2>&5
10941  ac_status=$?
10942  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10943  test $ac_status = 0; }; then
10944  pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.6" 2>/dev/null`
10945else
10946  pkg_failed=yes
10947fi
10948 else
10949    pkg_failed=untried
10950fi
10951if test -n "$GLIB_LIBS"; then
10952    pkg_cv_GLIB_LIBS="$GLIB_LIBS"
10953 elif test -n "$PKG_CONFIG"; then
10954    if test -n "$PKG_CONFIG" && \
10955    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.6\""; } >&5
10956  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.6") 2>&5
10957  ac_status=$?
10958  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10959  test $ac_status = 0; }; then
10960  pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.6" 2>/dev/null`
10961else
10962  pkg_failed=yes
10963fi
10964 else
10965    pkg_failed=untried
10966fi
10967
10968
10969
10970if test $pkg_failed = yes; then
10971   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10972$as_echo "no" >&6; }
10973
10974if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10975        _pkg_short_errors_supported=yes
10976else
10977        _pkg_short_errors_supported=no
10978fi
10979        if test $_pkg_short_errors_supported = yes; then
10980	        GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= 2.6" 2>&1`
10981        else
10982	        GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= 2.6" 2>&1`
10983        fi
10984	# Put the nasty error message in config.log where it belongs
10985	echo "$GLIB_PKG_ERRORS" >&5
10986
10987	as_fn_error $? "Package requirements (glib-2.0 >= 2.6) were not met:
10988
10989$GLIB_PKG_ERRORS
10990
10991Consider adjusting the PKG_CONFIG_PATH environment variable if you
10992installed software in a non-standard prefix.
10993
10994Alternatively, you may set the environment variables GLIB_CFLAGS
10995and GLIB_LIBS to avoid the need to call pkg-config.
10996See the pkg-config man page for more details." "$LINENO" 5
10997elif test $pkg_failed = untried; then
10998     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10999$as_echo "no" >&6; }
11000	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11001$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11002as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11003is in your PATH or set the PKG_CONFIG environment variable to the full
11004path to pkg-config.
11005
11006Alternatively, you may set the environment variables GLIB_CFLAGS
11007and GLIB_LIBS to avoid the need to call pkg-config.
11008See the pkg-config man page for more details.
11009
11010To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11011See \`config.log' for more details" "$LINENO" 5; }
11012else
11013	GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
11014	GLIB_LIBS=$pkg_cv_GLIB_LIBS
11015        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11016$as_echo "yes" >&6; }
11017
11018fi
11019
11020
11021
11022
11023gp_config_len="30"
11024gp_config_empty=""
11025gp_config_len3="$(expr "$gp_config_len" - 3)"
11026n="$gp_config_len"
11027while test "$n" -gt 0; do
11028      gp_config_empty="${gp_config_empty} "
11029      n="$(expr "$n" - 1)"
11030done
11031gp_config_msg="
11032Configuration (${PACKAGE_TARNAME} ${PACKAGE_VERSION}):
11033"
11034
11035
11036gp_config_msg="${gp_config_msg}
11037"
11038
11039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dynamic library extension" >&5
11040$as_echo_n "checking for dynamic library extension... " >&6; }
11041soext=""
11042case "$host" in
11043	*linux*)	soext=".so" ;;
11044	*sunos*)	soext=".so" ;;
11045	*solaris*)	soext=".so" ;;
11046	*bsd*)		soext=".so" ;;
11047	*darwin*)	soext=".dylib" ;;
11048	*w32*)		soext=".dll" ;;
11049esac
11050if test "x$soext" = "x"; then
11051	soext=".so"
11052	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${soext}" >&5
11053$as_echo "${soext}" >&6; }
11054	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11055Host system \"${host}\" not recognized, defaulting to \"${soext}\".
11056" >&5
11057$as_echo "$as_me: WARNING:
11058Host system \"${host}\" not recognized, defaulting to \"${soext}\".
11059" >&2;}
11060else
11061	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${soext}" >&5
11062$as_echo "${soext}" >&6; }
11063fi
11064
11065
11066# ----------------------------------------------------------------------
11067# [GP_CHECK_LIBRARY]([LIBGPHOTO2],[libgphoto2],[>= 2.5],
11068#                    [],[],
11069#                    [...],[...],[mandatory])
11070# ----------------------------------------------------------------------
11071# Use _CFLAGS and _LIBS given to configure.
11072# This makes it possible to set these vars in a configure script
11073# and AC_CONFIG_SUBDIRS this configure.
11074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgphoto2 to use" >&5
11075$as_echo_n "checking for libgphoto2 to use... " >&6; }
11076REQUIREMENTS_FOR_LIBGPHOTO2="libgphoto2 >= 2.5"
11077userdef_LIBGPHOTO2=no
11078have_LIBGPHOTO2=no
11079if test "x${LIBGPHOTO2_LIBS}" = "x" && test "x${LIBGPHOTO2_CFLAGS}" = "x"; then
11080	# define --with/--without argument
11081				try_LIBGPHOTO2=auto
11082
11083# Check whether --with-libgphoto2 was given.
11084if test "${with_libgphoto2+set}" = set; then :
11085  withval=$with_libgphoto2; try_LIBGPHOTO2="$withval"
11086fi
11087
11088	if test "x${try_LIBGPHOTO2}" = "xno"; then
11089              REQUIREMENTS_FOR_LIBGPHOTO2=
11090	fi
11091	if test "x${try_LIBGPHOTO2}" = "xauto"; then try_LIBGPHOTO2=autodetect; fi
11092	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${try_LIBGPHOTO2}" >&5
11093$as_echo "${try_LIBGPHOTO2}" >&6; }
11094		if test "x${try_LIBGPHOTO2}" = "xautodetect"; then
11095		# OK, we have to autodetect.
11096		# We start autodetection with the cleanest known method: pkg-config
11097		if test "x${have_LIBGPHOTO2}" = "xno"; then
11098			# we need that line break after the PKG_CHECK_MODULES
11099
11100pkg_failed=no
11101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGPHOTO2" >&5
11102$as_echo_n "checking for LIBGPHOTO2... " >&6; }
11103
11104if test -n "$LIBGPHOTO2_CFLAGS"; then
11105    pkg_cv_LIBGPHOTO2_CFLAGS="$LIBGPHOTO2_CFLAGS"
11106 elif test -n "$PKG_CONFIG"; then
11107    if test -n "$PKG_CONFIG" && \
11108    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgphoto2 >= 2.5\""; } >&5
11109  ($PKG_CONFIG --exists --print-errors "libgphoto2 >= 2.5") 2>&5
11110  ac_status=$?
11111  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11112  test $ac_status = 0; }; then
11113  pkg_cv_LIBGPHOTO2_CFLAGS=`$PKG_CONFIG --cflags "libgphoto2 >= 2.5" 2>/dev/null`
11114else
11115  pkg_failed=yes
11116fi
11117 else
11118    pkg_failed=untried
11119fi
11120if test -n "$LIBGPHOTO2_LIBS"; then
11121    pkg_cv_LIBGPHOTO2_LIBS="$LIBGPHOTO2_LIBS"
11122 elif test -n "$PKG_CONFIG"; then
11123    if test -n "$PKG_CONFIG" && \
11124    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgphoto2 >= 2.5\""; } >&5
11125  ($PKG_CONFIG --exists --print-errors "libgphoto2 >= 2.5") 2>&5
11126  ac_status=$?
11127  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11128  test $ac_status = 0; }; then
11129  pkg_cv_LIBGPHOTO2_LIBS=`$PKG_CONFIG --libs "libgphoto2 >= 2.5" 2>/dev/null`
11130else
11131  pkg_failed=yes
11132fi
11133 else
11134    pkg_failed=untried
11135fi
11136
11137
11138
11139if test $pkg_failed = yes; then
11140   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11141$as_echo "no" >&6; }
11142
11143if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11144        _pkg_short_errors_supported=yes
11145else
11146        _pkg_short_errors_supported=no
11147fi
11148        if test $_pkg_short_errors_supported = yes; then
11149	        LIBGPHOTO2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgphoto2 >= 2.5" 2>&1`
11150        else
11151	        LIBGPHOTO2_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgphoto2 >= 2.5" 2>&1`
11152        fi
11153	# Put the nasty error message in config.log where it belongs
11154	echo "$LIBGPHOTO2_PKG_ERRORS" >&5
11155
11156	:
11157elif test $pkg_failed = untried; then
11158     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11159$as_echo "no" >&6; }
11160	:
11161else
11162	LIBGPHOTO2_CFLAGS=$pkg_cv_LIBGPHOTO2_CFLAGS
11163	LIBGPHOTO2_LIBS=$pkg_cv_LIBGPHOTO2_LIBS
11164        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11165$as_echo "yes" >&6; }
11166	have_LIBGPHOTO2=yes
11167fi
11168		fi
11169		# If pkg-config didn't find anything, try the libfoo-config program
11170		# certain known libraries ship with.
11171		if test "x${have_LIBGPHOTO2}" = "xno"; then
11172			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libgphoto2 config program" >&5
11173$as_echo_n "checking libgphoto2 config program... " >&6; }
11174						{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gphoto2-config" >&5
11175$as_echo "gphoto2-config" >&6; }
11176			# Extract the first word of "gp_lib_config", so it can be a program name with args.
11177set dummy gphoto2-config; ac_word=$2
11178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11179$as_echo_n "checking for $ac_word... " >&6; }
11180if ${ac_cv_path_LIBGPHOTO2_CONFIG_PROG+:} false; then :
11181  $as_echo_n "(cached) " >&6
11182else
11183  case $LIBGPHOTO2_CONFIG_PROG in
11184  [\\/]* | ?:[\\/]*)
11185  ac_cv_path_LIBGPHOTO2_CONFIG_PROG="$LIBGPHOTO2_CONFIG_PROG" # Let the user override the test with a path.
11186  ;;
11187  *)
11188  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11189for as_dir in $PATH
11190do
11191  IFS=$as_save_IFS
11192  test -z "$as_dir" && as_dir=.
11193    for ac_exec_ext in '' $ac_executable_extensions; do
11194  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11195    ac_cv_path_LIBGPHOTO2_CONFIG_PROG="$as_dir/$ac_word$ac_exec_ext"
11196    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11197    break 2
11198  fi
11199done
11200  done
11201IFS=$as_save_IFS
11202
11203  ;;
11204esac
11205fi
11206LIBGPHOTO2_CONFIG_PROG=$ac_cv_path_LIBGPHOTO2_CONFIG_PROG
11207if test -n "$LIBGPHOTO2_CONFIG_PROG"; then
11208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGPHOTO2_CONFIG_PROG" >&5
11209$as_echo "$LIBGPHOTO2_CONFIG_PROG" >&6; }
11210else
11211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11212$as_echo "no" >&6; }
11213fi
11214
11215
11216			if test -n "${LIBGPHOTO2_CONFIG_PROG}" &&
11217				test "${LIBGPHOTO2_CONFIG_PROG}" != "none"; then
11218
11219				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgphoto2 version according to gphoto2-config" >&5
11220$as_echo_n "checking for libgphoto2 version according to gphoto2-config... " >&6; }
11221								_LIBGPHOTO2_COMPN="-lt"
11222								# split requested version number using m4 regexps
11223				_LIBGPHOTO2_REQ_1="2"
11224				_LIBGPHOTO2_REQ_2="5"
11225				_LIBGPHOTO2_REQ_3=""
11226				_LIBGPHOTO2_REQ_4=""
11227				# split installed version number via shell and sed
11228				_LIBGPHOTO2_VERSION="$("${LIBGPHOTO2_CONFIG_PROG}" --version | sed 's/^.* //')"
11229				_LIBGPHOTO2_VER_1="$(echo "${_LIBGPHOTO2_VERSION}" | sed 's/\([0-9]*\).*/\1/g')"
11230				_LIBGPHOTO2_VER_2="$(echo "${_LIBGPHOTO2_VERSION}" | sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/g')"
11231				_LIBGPHOTO2_VER_3="$(echo "${_LIBGPHOTO2_VERSION}" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/g')"
11232				_LIBGPHOTO2_VER_4="$(echo "${_LIBGPHOTO2_VERSION}" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)\(.*\)/\4/g')"
11233				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_LIBGPHOTO2_VERSION}" >&5
11234$as_echo "${_LIBGPHOTO2_VERSION}" >&6; }
11235				_tmp=false
11236				if   test "${_LIBGPHOTO2_VER_1}" "${_LIBGPHOTO2_COMPN}" "${_LIBGPHOTO2_REQ_1}"; then _tmp=true;
11237				elif test "${_LIBGPHOTO2_VER_2}" "${_LIBGPHOTO2_COMPN}" "${_LIBGPHOTO2_REQ_2}"; then _tmp=true;
11238				elif test "${_LIBGPHOTO2_VER_3}" "${_LIBGPHOTO2_COMPN}" "${_LIBGPHOTO2_REQ_3}"; then _tmp=true;
11239				elif test "x${_LIBGPHOTO2_VER_4}" = "x" && test "x${_LIBGPHOTO2_REQ_4}" != "x"; then _tmp=true;
11240				elif test "${_LIBGPHOTO2_VER_4}" "${_LIBGPHOTO2_COMPN}" "${_LIBGPHOTO2_REQ_4}"; then _tmp=true;
11241				fi
11242				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libgphoto2 version is matching requirement >= 2.5" >&5
11243$as_echo_n "checking if libgphoto2 version is matching requirement >= 2.5... " >&6; }
11244				if "${_tmp}"; then
11245				   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11246$as_echo "no" >&6; }
11247				   as_fn_error $? "Version requirement libgphoto2 >= 2.5 not met. Found: ${_LIBGPHOTO2_VERSION}" "$LINENO" 5
11248				else
11249				   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11250$as_echo "yes" >&6; }
11251				fi
11252								{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgphoto2 parameters from gphoto2-config" >&5
11253$as_echo_n "checking for libgphoto2 parameters from gphoto2-config... " >&6; }
11254				LIBGPHOTO2_LIBS="$(${LIBGPHOTO2_CONFIG_PROG} --libs || echo "*error*")"
11255				LIBGPHOTO2_CFLAGS="$(${LIBGPHOTO2_CONFIG_PROG} --cflags || echo "*error*")"
11256				if test "x${LIBGPHOTO2_LIBS}" = "*error*" ||
11257					test "x${LIBGPHOTO2_CFLAGS}" = "*error*"; then
11258					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
11259$as_echo "error" >&6; }
11260				else
11261					have_LIBGPHOTO2=yes
11262					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11263$as_echo "ok" >&6; }
11264				fi
11265			fi
11266					fi
11267		# Version requirement given, so we do not rely on probing.
11268	elif test "x${try_LIBGPHOTO2}" = "xno"; then
11269		:
11270	else
11271		# We've been given a prefix to look in for library libgphoto2.
11272		# We start looking for libgphoto2.la files first.
11273		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgphoto2.la file in ${try_LIBGPHOTO2}" >&5
11274$as_echo_n "checking for libgphoto2.la file in ${try_LIBGPHOTO2}... " >&6; }
11275		if test -f "${try_LIBGPHOTO2}/lib/libgphoto2.la"; then
11276			LIBGPHOTO2_LIBS="${try_LIBGPHOTO2}/lib/libgphoto2.la"
11277			LIBGPHOTO2_CFLAGS="-I${try_LIBGPHOTO2}/include"
11278			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: libtool file $LIBGPHOTO2_LIBS (good)" >&5
11279$as_echo "libtool file $LIBGPHOTO2_LIBS (good)" >&6; }
11280			have_LIBGPHOTO2=yes
11281		elif test -f "${try_LIBGPHOTO2}/lib64/libgphoto2.la"; then # HACK
11282			LIBGPHOTO2_LIBS="${try_LIBGPHOTO2}/lib64/libgphoto2.la"
11283			LIBGPHOTO2_CFLAGS="-I${try_LIBGPHOTO2}/include"
11284			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: libtool file $LIBGPHOTO2_LIBS (good)" >&5
11285$as_echo "libtool file $LIBGPHOTO2_LIBS (good)" >&6; }
11286			have_LIBGPHOTO2=yes
11287		else
11288			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: wild guess that something is in $try_LIBGPHOTO2" >&5
11289$as_echo "wild guess that something is in $try_LIBGPHOTO2" >&6; }
11290			LIBGPHOTO2_LIBS="-L${try_LIBGPHOTO2}/lib -l$(echo "libgphoto2" | sed 's/^lib//')"
11291			LIBGPHOTO2_CFLAGS="-I${try_LIBGPHOTO2}/include"
11292			have_LIBGPHOTO2=yes
11293			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11294* Warning:
11295*   libtool file libgphoto2.la could not be found.
11296*   We may be linking against the WRONG library.
11297" >&5
11298$as_echo "$as_me: WARNING:
11299* Warning:
11300*   libtool file libgphoto2.la could not be found.
11301*   We may be linking against the WRONG library.
11302" >&2;}
11303		fi
11304	fi
11305elif test "x${LIBGPHOTO2_LIBS}" != "x" && test "x${LIBGPHOTO2_CFLAGS}" != "x"; then
11306	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: user-defined" >&5
11307$as_echo "user-defined" >&6; }
11308	userdef_LIBGPHOTO2=yes
11309	have_LIBGPHOTO2=yes
11310else
11311	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: broken call" >&5
11312$as_echo "broken call" >&6; }
11313	as_fn_error $? "
11314* Fatal:
11315* When calling configure for ${PACKAGE_TARNAME}
11316*     ${PACKAGE_NAME}
11317* either set both LIBGPHOTO2_LIBS *and* LIBGPHOTO2_CFLAGS
11318* or neither.
11319" "$LINENO" 5
11320fi
11321
11322
11323if test "x${have_LIBGPHOTO2}" = "xno"; then
11324	as_fn_error $? "
11325PKG_CONFIG_PATH=${PKG_CONFIG_PATH}
11326LIBGPHOTO2_LIBS=${LIBGPHOTO2_LIBS}
11327LIBGPHOTO2_CFLAGS=${LIBGPHOTO2_CFLAGS}
11328
11329* Fatal: ${PACKAGE_NAME} requires libgphoto2 >= 2.5 to build.
11330*
11331* Possible solutions:
11332*   - set PKG_CONFIG_PATH to adequate value
11333*   - call configure with LIBGPHOTO2_LIBS=.. and LIBGPHOTO2_CFLAGS=..
11334*   - call configure with one of the --with-libgphoto2 parameters
11335*   - get libgphoto2 and install it" "$LINENO" 5
11336fi
11337 if test "x$have_LIBGPHOTO2" = "xyes"; then
11338  HAVE_LIBGPHOTO2_TRUE=
11339  HAVE_LIBGPHOTO2_FALSE='#'
11340else
11341  HAVE_LIBGPHOTO2_TRUE='#'
11342  HAVE_LIBGPHOTO2_FALSE=
11343fi
11344
11345if test "x$have_LIBGPHOTO2" = "xyes"; then
11346
11347$as_echo "#define HAVE_LIBGPHOTO2 1" >>confdefs.h
11348
11349
11350gp_config_msg_len="$(expr "libgphoto2" : '.*')"
11351if test "$gp_config_msg_len" -ge "$gp_config_len"; then
11352	gp_config_msg_lhs="$(expr "libgphoto2" : "\(.\{0,${gp_config_len3}\}\)")..:"
11353else
11354	gp_config_msg_lhs="$(expr "libgphoto2:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
11355fi
11356gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} yes
11357"
11358	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libgphoto2 library flags" >&5
11359$as_echo_n "checking libgphoto2 library flags... " >&6; }
11360	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"${LIBGPHOTO2_LIBS}\"" >&5
11361$as_echo "\"${LIBGPHOTO2_LIBS}\"" >&6; }
11362	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libgphoto2 cpp flags" >&5
11363$as_echo_n "checking libgphoto2 cpp flags... " >&6; }
11364	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"${LIBGPHOTO2_CFLAGS}\"" >&5
11365$as_echo "\"${LIBGPHOTO2_CFLAGS}\"" >&6; }
11366else
11367
11368gp_config_msg_len="$(expr "libgphoto2" : '.*')"
11369if test "$gp_config_msg_len" -ge "$gp_config_len"; then
11370	gp_config_msg_lhs="$(expr "libgphoto2" : "\(.\{0,${gp_config_len3}\}\)")..:"
11371else
11372	gp_config_msg_lhs="$(expr "libgphoto2:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
11373fi
11374gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} no
11375"
11376fi
11377
11378
11379ALL_LINGUAS=""
11380GETTEXT_PACKAGE="gphotofs"
11381
11382
11383cat >>confdefs.h <<_ACEOF
11384#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
11385_ACEOF
11386
11387
11388   for ac_header in locale.h
11389do :
11390  ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
11391if test "x$ac_cv_header_locale_h" = xyes; then :
11392  cat >>confdefs.h <<_ACEOF
11393#define HAVE_LOCALE_H 1
11394_ACEOF
11395
11396fi
11397
11398done
11399
11400    if test $ac_cv_header_locale_h = yes; then
11401    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11402$as_echo_n "checking for LC_MESSAGES... " >&6; }
11403if ${am_cv_val_LC_MESSAGES+:} false; then :
11404  $as_echo_n "(cached) " >&6
11405else
11406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11407/* end confdefs.h.  */
11408#include <locale.h>
11409int
11410main ()
11411{
11412return LC_MESSAGES
11413  ;
11414  return 0;
11415}
11416_ACEOF
11417if ac_fn_c_try_link "$LINENO"; then :
11418  am_cv_val_LC_MESSAGES=yes
11419else
11420  am_cv_val_LC_MESSAGES=no
11421fi
11422rm -f core conftest.err conftest.$ac_objext \
11423    conftest$ac_exeext conftest.$ac_ext
11424fi
11425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11426$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11427    if test $am_cv_val_LC_MESSAGES = yes; then
11428
11429$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11430
11431    fi
11432  fi
11433     USE_NLS=yes
11434
11435
11436    gt_cv_have_gettext=no
11437
11438    CATOBJEXT=NONE
11439    XGETTEXT=:
11440    INTLLIBS=
11441
11442    ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
11443if test "x$ac_cv_header_libintl_h" = xyes; then :
11444  gt_cv_func_dgettext_libintl="no"
11445      libintl_extra_libs=""
11446
11447      #
11448      # First check in libc
11449      #
11450      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
11451$as_echo_n "checking for ngettext in libc... " >&6; }
11452if ${gt_cv_func_ngettext_libc+:} false; then :
11453  $as_echo_n "(cached) " >&6
11454else
11455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11456/* end confdefs.h.  */
11457
11458#include <libintl.h>
11459
11460int
11461main ()
11462{
11463return !ngettext ("","", 1)
11464  ;
11465  return 0;
11466}
11467_ACEOF
11468if ac_fn_c_try_link "$LINENO"; then :
11469  gt_cv_func_ngettext_libc=yes
11470else
11471  gt_cv_func_ngettext_libc=no
11472fi
11473rm -f core conftest.err conftest.$ac_objext \
11474    conftest$ac_exeext conftest.$ac_ext
11475
11476fi
11477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
11478$as_echo "$gt_cv_func_ngettext_libc" >&6; }
11479
11480      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
11481	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
11482$as_echo_n "checking for dgettext in libc... " >&6; }
11483if ${gt_cv_func_dgettext_libc+:} false; then :
11484  $as_echo_n "(cached) " >&6
11485else
11486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11487/* end confdefs.h.  */
11488
11489#include <libintl.h>
11490
11491int
11492main ()
11493{
11494return !dgettext ("","")
11495  ;
11496  return 0;
11497}
11498_ACEOF
11499if ac_fn_c_try_link "$LINENO"; then :
11500  gt_cv_func_dgettext_libc=yes
11501else
11502  gt_cv_func_dgettext_libc=no
11503fi
11504rm -f core conftest.err conftest.$ac_objext \
11505    conftest$ac_exeext conftest.$ac_ext
11506
11507fi
11508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
11509$as_echo "$gt_cv_func_dgettext_libc" >&6; }
11510      fi
11511
11512      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
11513        for ac_func in bind_textdomain_codeset
11514do :
11515  ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
11516if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
11517  cat >>confdefs.h <<_ACEOF
11518#define HAVE_BIND_TEXTDOMAIN_CODESET 1
11519_ACEOF
11520
11521fi
11522done
11523
11524      fi
11525
11526      #
11527      # If we don't have everything we want, check in libintl
11528      #
11529      if test "$gt_cv_func_dgettext_libc" != "yes" \
11530	 || test "$gt_cv_func_ngettext_libc" != "yes" \
11531         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
11532
11533        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
11534$as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
11535if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
11536  $as_echo_n "(cached) " >&6
11537else
11538  ac_check_lib_save_LIBS=$LIBS
11539LIBS="-lintl  $LIBS"
11540cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11541/* end confdefs.h.  */
11542
11543/* Override any GCC internal prototype to avoid an error.
11544   Use char because int might match the return type of a GCC
11545   builtin and then its argument prototype would still apply.  */
11546#ifdef __cplusplus
11547extern "C"
11548#endif
11549char bindtextdomain ();
11550int
11551main ()
11552{
11553return bindtextdomain ();
11554  ;
11555  return 0;
11556}
11557_ACEOF
11558if ac_fn_c_try_link "$LINENO"; then :
11559  ac_cv_lib_intl_bindtextdomain=yes
11560else
11561  ac_cv_lib_intl_bindtextdomain=no
11562fi
11563rm -f core conftest.err conftest.$ac_objext \
11564    conftest$ac_exeext conftest.$ac_ext
11565LIBS=$ac_check_lib_save_LIBS
11566fi
11567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
11568$as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
11569if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
11570  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
11571$as_echo_n "checking for ngettext in -lintl... " >&6; }
11572if ${ac_cv_lib_intl_ngettext+:} false; then :
11573  $as_echo_n "(cached) " >&6
11574else
11575  ac_check_lib_save_LIBS=$LIBS
11576LIBS="-lintl  $LIBS"
11577cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11578/* end confdefs.h.  */
11579
11580/* Override any GCC internal prototype to avoid an error.
11581   Use char because int might match the return type of a GCC
11582   builtin and then its argument prototype would still apply.  */
11583#ifdef __cplusplus
11584extern "C"
11585#endif
11586char ngettext ();
11587int
11588main ()
11589{
11590return ngettext ();
11591  ;
11592  return 0;
11593}
11594_ACEOF
11595if ac_fn_c_try_link "$LINENO"; then :
11596  ac_cv_lib_intl_ngettext=yes
11597else
11598  ac_cv_lib_intl_ngettext=no
11599fi
11600rm -f core conftest.err conftest.$ac_objext \
11601    conftest$ac_exeext conftest.$ac_ext
11602LIBS=$ac_check_lib_save_LIBS
11603fi
11604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
11605$as_echo "$ac_cv_lib_intl_ngettext" >&6; }
11606if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
11607  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
11608$as_echo_n "checking for dgettext in -lintl... " >&6; }
11609if ${ac_cv_lib_intl_dgettext+:} false; then :
11610  $as_echo_n "(cached) " >&6
11611else
11612  ac_check_lib_save_LIBS=$LIBS
11613LIBS="-lintl  $LIBS"
11614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11615/* end confdefs.h.  */
11616
11617/* Override any GCC internal prototype to avoid an error.
11618   Use char because int might match the return type of a GCC
11619   builtin and then its argument prototype would still apply.  */
11620#ifdef __cplusplus
11621extern "C"
11622#endif
11623char dgettext ();
11624int
11625main ()
11626{
11627return dgettext ();
11628  ;
11629  return 0;
11630}
11631_ACEOF
11632if ac_fn_c_try_link "$LINENO"; then :
11633  ac_cv_lib_intl_dgettext=yes
11634else
11635  ac_cv_lib_intl_dgettext=no
11636fi
11637rm -f core conftest.err conftest.$ac_objext \
11638    conftest$ac_exeext conftest.$ac_ext
11639LIBS=$ac_check_lib_save_LIBS
11640fi
11641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
11642$as_echo "$ac_cv_lib_intl_dgettext" >&6; }
11643if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
11644  gt_cv_func_dgettext_libintl=yes
11645fi
11646
11647fi
11648
11649fi
11650
11651
11652	if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
11653	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
11654$as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
11655	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
11656$as_echo "" >&6; }
11657  	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
11658$as_echo_n "checking for ngettext in -lintl... " >&6; }
11659if ${ac_cv_lib_intl_ngettext+:} false; then :
11660  $as_echo_n "(cached) " >&6
11661else
11662  ac_check_lib_save_LIBS=$LIBS
11663LIBS="-lintl -liconv $LIBS"
11664cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11665/* end confdefs.h.  */
11666
11667/* Override any GCC internal prototype to avoid an error.
11668   Use char because int might match the return type of a GCC
11669   builtin and then its argument prototype would still apply.  */
11670#ifdef __cplusplus
11671extern "C"
11672#endif
11673char ngettext ();
11674int
11675main ()
11676{
11677return ngettext ();
11678  ;
11679  return 0;
11680}
11681_ACEOF
11682if ac_fn_c_try_link "$LINENO"; then :
11683  ac_cv_lib_intl_ngettext=yes
11684else
11685  ac_cv_lib_intl_ngettext=no
11686fi
11687rm -f core conftest.err conftest.$ac_objext \
11688    conftest$ac_exeext conftest.$ac_ext
11689LIBS=$ac_check_lib_save_LIBS
11690fi
11691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
11692$as_echo "$ac_cv_lib_intl_ngettext" >&6; }
11693if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
11694  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
11695$as_echo_n "checking for dcgettext in -lintl... " >&6; }
11696if ${ac_cv_lib_intl_dcgettext+:} false; then :
11697  $as_echo_n "(cached) " >&6
11698else
11699  ac_check_lib_save_LIBS=$LIBS
11700LIBS="-lintl -liconv $LIBS"
11701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11702/* end confdefs.h.  */
11703
11704/* Override any GCC internal prototype to avoid an error.
11705   Use char because int might match the return type of a GCC
11706   builtin and then its argument prototype would still apply.  */
11707#ifdef __cplusplus
11708extern "C"
11709#endif
11710char dcgettext ();
11711int
11712main ()
11713{
11714return dcgettext ();
11715  ;
11716  return 0;
11717}
11718_ACEOF
11719if ac_fn_c_try_link "$LINENO"; then :
11720  ac_cv_lib_intl_dcgettext=yes
11721else
11722  ac_cv_lib_intl_dcgettext=no
11723fi
11724rm -f core conftest.err conftest.$ac_objext \
11725    conftest$ac_exeext conftest.$ac_ext
11726LIBS=$ac_check_lib_save_LIBS
11727fi
11728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
11729$as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
11730if test "x$ac_cv_lib_intl_dcgettext" = xyes; then :
11731  gt_cv_func_dgettext_libintl=yes
11732			libintl_extra_libs=-liconv
11733else
11734  :
11735fi
11736
11737else
11738  :
11739fi
11740
11741        fi
11742
11743        #
11744        # If we found libintl, then check in it for bind_textdomain_codeset();
11745        # we'll prefer libc if neither have bind_textdomain_codeset(),
11746        # and both have dgettext and ngettext
11747        #
11748        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
11749          glib_save_LIBS="$LIBS"
11750          LIBS="$LIBS -lintl $libintl_extra_libs"
11751          unset ac_cv_func_bind_textdomain_codeset
11752          for ac_func in bind_textdomain_codeset
11753do :
11754  ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
11755if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
11756  cat >>confdefs.h <<_ACEOF
11757#define HAVE_BIND_TEXTDOMAIN_CODESET 1
11758_ACEOF
11759
11760fi
11761done
11762
11763          LIBS="$glib_save_LIBS"
11764
11765          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
11766            gt_cv_func_dgettext_libc=no
11767          else
11768            if test "$gt_cv_func_dgettext_libc" = "yes" \
11769		&& test "$gt_cv_func_ngettext_libc" = "yes"; then
11770              gt_cv_func_dgettext_libintl=no
11771            fi
11772          fi
11773        fi
11774      fi
11775
11776      if test "$gt_cv_func_dgettext_libc" = "yes" \
11777	|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
11778        gt_cv_have_gettext=yes
11779      fi
11780
11781      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
11782        INTLLIBS="-lintl $libintl_extra_libs"
11783      fi
11784
11785      if test "$gt_cv_have_gettext" = "yes"; then
11786
11787$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11788
11789	# Extract the first word of "msgfmt", so it can be a program name with args.
11790set dummy msgfmt; ac_word=$2
11791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11792$as_echo_n "checking for $ac_word... " >&6; }
11793if ${ac_cv_path_MSGFMT+:} false; then :
11794  $as_echo_n "(cached) " >&6
11795else
11796  case "$MSGFMT" in
11797  /*)
11798  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11799  ;;
11800  *)
11801  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11802  for ac_dir in $PATH; do
11803    test -z "$ac_dir" && ac_dir=.
11804    if test -f $ac_dir/$ac_word; then
11805      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
11806	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
11807	break
11808      fi
11809    fi
11810  done
11811  IFS="$ac_save_ifs"
11812  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
11813  ;;
11814esac
11815fi
11816MSGFMT="$ac_cv_path_MSGFMT"
11817if test "$MSGFMT" != "no"; then
11818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11819$as_echo "$MSGFMT" >&6; }
11820else
11821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11822$as_echo "no" >&6; }
11823fi
11824	if test "$MSGFMT" != "no"; then
11825          glib_save_LIBS="$LIBS"
11826          LIBS="$LIBS $INTLLIBS"
11827	  for ac_func in dcgettext
11828do :
11829  ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
11830if test "x$ac_cv_func_dcgettext" = xyes; then :
11831  cat >>confdefs.h <<_ACEOF
11832#define HAVE_DCGETTEXT 1
11833_ACEOF
11834
11835fi
11836done
11837
11838	  MSGFMT_OPTS=
11839	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
11840$as_echo_n "checking if msgfmt accepts -c... " >&6; }
11841	  cat >conftest.foo <<_ACEOF
11842
11843msgid ""
11844msgstr ""
11845"Content-Type: text/plain; charset=UTF-8\n"
11846"Project-Id-Version: test 1.0\n"
11847"PO-Revision-Date: 2007-02-15 12:01+0100\n"
11848"Last-Translator: test <foo@bar.xx>\n"
11849"Language-Team: C <LL@li.org>\n"
11850"MIME-Version: 1.0\n"
11851"Content-Transfer-Encoding: 8bit\n"
11852
11853_ACEOF
11854if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
11855  ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
11856  ac_status=$?
11857  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11858  test $ac_status = 0; }; then
11859  MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11860$as_echo "yes" >&6; }
11861else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11862$as_echo "no" >&6; }
11863echo "$as_me: failed input was:" >&5
11864sed 's/^/| /' conftest.foo >&5
11865fi
11866
11867	  # Extract the first word of "gmsgfmt", so it can be a program name with args.
11868set dummy gmsgfmt; ac_word=$2
11869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11870$as_echo_n "checking for $ac_word... " >&6; }
11871if ${ac_cv_path_GMSGFMT+:} false; then :
11872  $as_echo_n "(cached) " >&6
11873else
11874  case $GMSGFMT in
11875  [\\/]* | ?:[\\/]*)
11876  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11877  ;;
11878  *)
11879  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11880for as_dir in $PATH
11881do
11882  IFS=$as_save_IFS
11883  test -z "$as_dir" && as_dir=.
11884    for ac_exec_ext in '' $ac_executable_extensions; do
11885  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11886    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11887    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11888    break 2
11889  fi
11890done
11891  done
11892IFS=$as_save_IFS
11893
11894  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11895  ;;
11896esac
11897fi
11898GMSGFMT=$ac_cv_path_GMSGFMT
11899if test -n "$GMSGFMT"; then
11900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11901$as_echo "$GMSGFMT" >&6; }
11902else
11903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11904$as_echo "no" >&6; }
11905fi
11906
11907
11908	  # Extract the first word of "xgettext", so it can be a program name with args.
11909set dummy xgettext; ac_word=$2
11910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11911$as_echo_n "checking for $ac_word... " >&6; }
11912if ${ac_cv_path_XGETTEXT+:} false; then :
11913  $as_echo_n "(cached) " >&6
11914else
11915  case "$XGETTEXT" in
11916  /*)
11917  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11918  ;;
11919  *)
11920  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11921  for ac_dir in $PATH; do
11922    test -z "$ac_dir" && ac_dir=.
11923    if test -f $ac_dir/$ac_word; then
11924      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
11925	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
11926	break
11927      fi
11928    fi
11929  done
11930  IFS="$ac_save_ifs"
11931  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11932  ;;
11933esac
11934fi
11935XGETTEXT="$ac_cv_path_XGETTEXT"
11936if test "$XGETTEXT" != ":"; then
11937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11938$as_echo "$XGETTEXT" >&6; }
11939else
11940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11941$as_echo "no" >&6; }
11942fi
11943
11944	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11945/* end confdefs.h.  */
11946
11947int
11948main ()
11949{
11950extern int _nl_msg_cat_cntr;
11951			 return _nl_msg_cat_cntr
11952  ;
11953  return 0;
11954}
11955_ACEOF
11956if ac_fn_c_try_link "$LINENO"; then :
11957  CATOBJEXT=.gmo
11958             DATADIRNAME=share
11959else
11960  case $host in
11961	    *-*-solaris*)
11962	    	                	    	                ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
11963if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
11964  CATOBJEXT=.gmo
11965               DATADIRNAME=share
11966else
11967  CATOBJEXT=.mo
11968               DATADIRNAME=lib
11969fi
11970
11971	    ;;
11972	    *)
11973	    CATOBJEXT=.mo
11974            DATADIRNAME=lib
11975	    ;;
11976	    esac
11977fi
11978rm -f core conftest.err conftest.$ac_objext \
11979    conftest$ac_exeext conftest.$ac_ext
11980          LIBS="$glib_save_LIBS"
11981	  INSTOBJEXT=.mo
11982	else
11983	  gt_cv_have_gettext=no
11984	fi
11985      fi
11986
11987fi
11988
11989
11990
11991    if test "$gt_cv_have_gettext" = "yes" ; then
11992
11993$as_echo "#define ENABLE_NLS 1" >>confdefs.h
11994
11995    fi
11996
11997        if test "$XGETTEXT" != ":"; then
11998                  if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
11999        : ;
12000      else
12001        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12002$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12003        XGETTEXT=":"
12004      fi
12005    fi
12006
12007    # We need to process the po/ directory.
12008    POSUB=po
12009
12010    ac_config_commands="$ac_config_commands default-1"
12011
12012
12013                for lang in $ALL_LINGUAS; do
12014      GMOFILES="$GMOFILES $lang.gmo"
12015      POFILES="$POFILES $lang.po"
12016    done
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030   if test "$gt_cv_have_gettext" = "yes"; then
12031     if test "x$ALL_LINGUAS" = "x"; then
12032       LINGUAS=
12033     else
12034       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12035$as_echo_n "checking for catalogs to be installed... " >&6; }
12036       NEW_LINGUAS=
12037       for presentlang in $ALL_LINGUAS; do
12038         useit=no
12039         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
12040           desiredlanguages="$LINGUAS"
12041         else
12042           desiredlanguages="$ALL_LINGUAS"
12043         fi
12044         for desiredlang in $desiredlanguages; do
12045 	   # Use the presentlang catalog if desiredlang is
12046           #   a. equal to presentlang, or
12047           #   b. a variant of presentlang (because in this case,
12048           #      presentlang can be used as a fallback for messages
12049           #      which are not translated in the desiredlang catalog).
12050           case "$desiredlang" in
12051             "$presentlang"*) useit=yes;;
12052           esac
12053         done
12054         if test $useit = yes; then
12055           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
12056         fi
12057       done
12058       LINGUAS=$NEW_LINGUAS
12059       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12060$as_echo "$LINGUAS" >&6; }
12061     fi
12062
12063          if test -n "$LINGUAS"; then
12064       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
12065     fi
12066   fi
12067
12068            MKINSTALLDIRS=
12069   if test -n "$ac_aux_dir"; then
12070     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
12071   fi
12072   if test -z "$MKINSTALLDIRS"; then
12073     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12074   fi
12075
12076
12077         test -d po || mkdir po
12078   if test "x$srcdir" != "x."; then
12079     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
12080       posrcprefix="$srcdir/"
12081     else
12082       posrcprefix="../$srcdir/"
12083     fi
12084   else
12085     posrcprefix="../"
12086   fi
12087   rm -f po/POTFILES
12088   sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
12089	< $srcdir/po/POTFILES.in > po/POTFILES
12090
12091
12092ac_config_files="$ac_config_files Makefile m4m/Makefile"
12093
12094cat >confcache <<\_ACEOF
12095# This file is a shell script that caches the results of configure
12096# tests run on this system so they can be shared between configure
12097# scripts and configure runs, see configure's option --config-cache.
12098# It is not useful on other systems.  If it contains results you don't
12099# want to keep, you may remove or edit it.
12100#
12101# config.status only pays attention to the cache file if you give it
12102# the --recheck option to rerun configure.
12103#
12104# `ac_cv_env_foo' variables (set or unset) will be overridden when
12105# loading this file, other *unset* `ac_cv_foo' will be assigned the
12106# following values.
12107
12108_ACEOF
12109
12110# The following way of writing the cache mishandles newlines in values,
12111# but we know of no workaround that is simple, portable, and efficient.
12112# So, we kill variables containing newlines.
12113# Ultrix sh set writes to stderr and can't be redirected directly,
12114# and sets the high bit in the cache file unless we assign to the vars.
12115(
12116  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12117    eval ac_val=\$$ac_var
12118    case $ac_val in #(
12119    *${as_nl}*)
12120      case $ac_var in #(
12121      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12122$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12123      esac
12124      case $ac_var in #(
12125      _ | IFS | as_nl) ;; #(
12126      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12127      *) { eval $ac_var=; unset $ac_var;} ;;
12128      esac ;;
12129    esac
12130  done
12131
12132  (set) 2>&1 |
12133    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12134    *${as_nl}ac_space=\ *)
12135      # `set' does not quote correctly, so add quotes: double-quote
12136      # substitution turns \\\\ into \\, and sed turns \\ into \.
12137      sed -n \
12138	"s/'/'\\\\''/g;
12139	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12140      ;; #(
12141    *)
12142      # `set' quotes correctly as required by POSIX, so do not add quotes.
12143      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12144      ;;
12145    esac |
12146    sort
12147) |
12148  sed '
12149     /^ac_cv_env_/b end
12150     t clear
12151     :clear
12152     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12153     t end
12154     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12155     :end' >>confcache
12156if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12157  if test -w "$cache_file"; then
12158    if test "x$cache_file" != "x/dev/null"; then
12159      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12160$as_echo "$as_me: updating cache $cache_file" >&6;}
12161      if test ! -f "$cache_file" || test -h "$cache_file"; then
12162	cat confcache >"$cache_file"
12163      else
12164        case $cache_file in #(
12165        */* | ?:*)
12166	  mv -f confcache "$cache_file"$$ &&
12167	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12168        *)
12169	  mv -f confcache "$cache_file" ;;
12170	esac
12171      fi
12172    fi
12173  else
12174    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12175$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12176  fi
12177fi
12178rm -f confcache
12179
12180test "x$prefix" = xNONE && prefix=$ac_default_prefix
12181# Let make expand exec_prefix.
12182test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12183
12184DEFS=-DHAVE_CONFIG_H
12185
12186ac_libobjs=
12187ac_ltlibobjs=
12188U=
12189for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12190  # 1. Remove the extension, and $U if already installed.
12191  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12192  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12193  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12194  #    will be set to the directory where LIBOBJS objects are built.
12195  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12196  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12197done
12198LIBOBJS=$ac_libobjs
12199
12200LTLIBOBJS=$ac_ltlibobjs
12201
12202
12203 if test -n "$EXEEXT"; then
12204  am__EXEEXT_TRUE=
12205  am__EXEEXT_FALSE='#'
12206else
12207  am__EXEEXT_TRUE='#'
12208  am__EXEEXT_FALSE=
12209fi
12210
12211if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12212  as_fn_error $? "conditional \"AMDEP\" was never defined.
12213Usually this means the macro was only invoked conditionally." "$LINENO" 5
12214fi
12215if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12216  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12217Usually this means the macro was only invoked conditionally." "$LINENO" 5
12218fi
12219if test -z "${HAVE_LIBGPHOTO2_TRUE}" && test -z "${HAVE_LIBGPHOTO2_FALSE}"; then
12220  as_fn_error $? "conditional \"HAVE_LIBGPHOTO2\" was never defined.
12221Usually this means the macro was only invoked conditionally." "$LINENO" 5
12222fi
12223
12224: "${CONFIG_STATUS=./config.status}"
12225ac_write_fail=0
12226ac_clean_files_save=$ac_clean_files
12227ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12228{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12229$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12230as_write_fail=0
12231cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12232#! $SHELL
12233# Generated by $as_me.
12234# Run this file to recreate the current configuration.
12235# Compiler output produced by configure, useful for debugging
12236# configure, is in config.log if it exists.
12237
12238debug=false
12239ac_cs_recheck=false
12240ac_cs_silent=false
12241
12242SHELL=\${CONFIG_SHELL-$SHELL}
12243export SHELL
12244_ASEOF
12245cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12246## -------------------- ##
12247## M4sh Initialization. ##
12248## -------------------- ##
12249
12250# Be more Bourne compatible
12251DUALCASE=1; export DUALCASE # for MKS sh
12252if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12253  emulate sh
12254  NULLCMD=:
12255  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12256  # is contrary to our usage.  Disable this feature.
12257  alias -g '${1+"$@"}'='"$@"'
12258  setopt NO_GLOB_SUBST
12259else
12260  case `(set -o) 2>/dev/null` in #(
12261  *posix*) :
12262    set -o posix ;; #(
12263  *) :
12264     ;;
12265esac
12266fi
12267
12268
12269as_nl='
12270'
12271export as_nl
12272# Printing a long string crashes Solaris 7 /usr/bin/printf.
12273as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12274as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12275as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12276# Prefer a ksh shell builtin over an external printf program on Solaris,
12277# but without wasting forks for bash or zsh.
12278if test -z "$BASH_VERSION$ZSH_VERSION" \
12279    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12280  as_echo='print -r --'
12281  as_echo_n='print -rn --'
12282elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12283  as_echo='printf %s\n'
12284  as_echo_n='printf %s'
12285else
12286  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12287    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12288    as_echo_n='/usr/ucb/echo -n'
12289  else
12290    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12291    as_echo_n_body='eval
12292      arg=$1;
12293      case $arg in #(
12294      *"$as_nl"*)
12295	expr "X$arg" : "X\\(.*\\)$as_nl";
12296	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12297      esac;
12298      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12299    '
12300    export as_echo_n_body
12301    as_echo_n='sh -c $as_echo_n_body as_echo'
12302  fi
12303  export as_echo_body
12304  as_echo='sh -c $as_echo_body as_echo'
12305fi
12306
12307# The user is always right.
12308if test "${PATH_SEPARATOR+set}" != set; then
12309  PATH_SEPARATOR=:
12310  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12311    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12312      PATH_SEPARATOR=';'
12313  }
12314fi
12315
12316
12317# IFS
12318# We need space, tab and new line, in precisely that order.  Quoting is
12319# there to prevent editors from complaining about space-tab.
12320# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12321# splitting by setting IFS to empty value.)
12322IFS=" ""	$as_nl"
12323
12324# Find who we are.  Look in the path if we contain no directory separator.
12325as_myself=
12326case $0 in #((
12327  *[\\/]* ) as_myself=$0 ;;
12328  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12329for as_dir in $PATH
12330do
12331  IFS=$as_save_IFS
12332  test -z "$as_dir" && as_dir=.
12333    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12334  done
12335IFS=$as_save_IFS
12336
12337     ;;
12338esac
12339# We did not find ourselves, most probably we were run as `sh COMMAND'
12340# in which case we are not to be found in the path.
12341if test "x$as_myself" = x; then
12342  as_myself=$0
12343fi
12344if test ! -f "$as_myself"; then
12345  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12346  exit 1
12347fi
12348
12349# Unset variables that we do not need and which cause bugs (e.g. in
12350# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12351# suppresses any "Segmentation fault" message there.  '((' could
12352# trigger a bug in pdksh 5.2.14.
12353for as_var in BASH_ENV ENV MAIL MAILPATH
12354do eval test x\${$as_var+set} = xset \
12355  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12356done
12357PS1='$ '
12358PS2='> '
12359PS4='+ '
12360
12361# NLS nuisances.
12362LC_ALL=C
12363export LC_ALL
12364LANGUAGE=C
12365export LANGUAGE
12366
12367# CDPATH.
12368(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12369
12370
12371# as_fn_error STATUS ERROR [LINENO LOG_FD]
12372# ----------------------------------------
12373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12375# script with STATUS, using 1 if that was 0.
12376as_fn_error ()
12377{
12378  as_status=$1; test $as_status -eq 0 && as_status=1
12379  if test "$4"; then
12380    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12381    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12382  fi
12383  $as_echo "$as_me: error: $2" >&2
12384  as_fn_exit $as_status
12385} # as_fn_error
12386
12387
12388# as_fn_set_status STATUS
12389# -----------------------
12390# Set $? to STATUS, without forking.
12391as_fn_set_status ()
12392{
12393  return $1
12394} # as_fn_set_status
12395
12396# as_fn_exit STATUS
12397# -----------------
12398# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12399as_fn_exit ()
12400{
12401  set +e
12402  as_fn_set_status $1
12403  exit $1
12404} # as_fn_exit
12405
12406# as_fn_unset VAR
12407# ---------------
12408# Portably unset VAR.
12409as_fn_unset ()
12410{
12411  { eval $1=; unset $1;}
12412}
12413as_unset=as_fn_unset
12414# as_fn_append VAR VALUE
12415# ----------------------
12416# Append the text in VALUE to the end of the definition contained in VAR. Take
12417# advantage of any shell optimizations that allow amortized linear growth over
12418# repeated appends, instead of the typical quadratic growth present in naive
12419# implementations.
12420if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12421  eval 'as_fn_append ()
12422  {
12423    eval $1+=\$2
12424  }'
12425else
12426  as_fn_append ()
12427  {
12428    eval $1=\$$1\$2
12429  }
12430fi # as_fn_append
12431
12432# as_fn_arith ARG...
12433# ------------------
12434# Perform arithmetic evaluation on the ARGs, and store the result in the
12435# global $as_val. Take advantage of shells that can avoid forks. The arguments
12436# must be portable across $(()) and expr.
12437if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12438  eval 'as_fn_arith ()
12439  {
12440    as_val=$(( $* ))
12441  }'
12442else
12443  as_fn_arith ()
12444  {
12445    as_val=`expr "$@" || test $? -eq 1`
12446  }
12447fi # as_fn_arith
12448
12449
12450if expr a : '\(a\)' >/dev/null 2>&1 &&
12451   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12452  as_expr=expr
12453else
12454  as_expr=false
12455fi
12456
12457if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12458  as_basename=basename
12459else
12460  as_basename=false
12461fi
12462
12463if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12464  as_dirname=dirname
12465else
12466  as_dirname=false
12467fi
12468
12469as_me=`$as_basename -- "$0" ||
12470$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12471	 X"$0" : 'X\(//\)$' \| \
12472	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12473$as_echo X/"$0" |
12474    sed '/^.*\/\([^/][^/]*\)\/*$/{
12475	    s//\1/
12476	    q
12477	  }
12478	  /^X\/\(\/\/\)$/{
12479	    s//\1/
12480	    q
12481	  }
12482	  /^X\/\(\/\).*/{
12483	    s//\1/
12484	    q
12485	  }
12486	  s/.*/./; q'`
12487
12488# Avoid depending upon Character Ranges.
12489as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12490as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12491as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12492as_cr_digits='0123456789'
12493as_cr_alnum=$as_cr_Letters$as_cr_digits
12494
12495ECHO_C= ECHO_N= ECHO_T=
12496case `echo -n x` in #(((((
12497-n*)
12498  case `echo 'xy\c'` in
12499  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12500  xy)  ECHO_C='\c';;
12501  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12502       ECHO_T='	';;
12503  esac;;
12504*)
12505  ECHO_N='-n';;
12506esac
12507
12508rm -f conf$$ conf$$.exe conf$$.file
12509if test -d conf$$.dir; then
12510  rm -f conf$$.dir/conf$$.file
12511else
12512  rm -f conf$$.dir
12513  mkdir conf$$.dir 2>/dev/null
12514fi
12515if (echo >conf$$.file) 2>/dev/null; then
12516  if ln -s conf$$.file conf$$ 2>/dev/null; then
12517    as_ln_s='ln -s'
12518    # ... but there are two gotchas:
12519    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12520    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12521    # In both cases, we have to default to `cp -p'.
12522    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12523      as_ln_s='cp -p'
12524  elif ln conf$$.file conf$$ 2>/dev/null; then
12525    as_ln_s=ln
12526  else
12527    as_ln_s='cp -p'
12528  fi
12529else
12530  as_ln_s='cp -p'
12531fi
12532rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12533rmdir conf$$.dir 2>/dev/null
12534
12535
12536# as_fn_mkdir_p
12537# -------------
12538# Create "$as_dir" as a directory, including parents if necessary.
12539as_fn_mkdir_p ()
12540{
12541
12542  case $as_dir in #(
12543  -*) as_dir=./$as_dir;;
12544  esac
12545  test -d "$as_dir" || eval $as_mkdir_p || {
12546    as_dirs=
12547    while :; do
12548      case $as_dir in #(
12549      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12550      *) as_qdir=$as_dir;;
12551      esac
12552      as_dirs="'$as_qdir' $as_dirs"
12553      as_dir=`$as_dirname -- "$as_dir" ||
12554$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12555	 X"$as_dir" : 'X\(//\)[^/]' \| \
12556	 X"$as_dir" : 'X\(//\)$' \| \
12557	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12558$as_echo X"$as_dir" |
12559    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12560	    s//\1/
12561	    q
12562	  }
12563	  /^X\(\/\/\)[^/].*/{
12564	    s//\1/
12565	    q
12566	  }
12567	  /^X\(\/\/\)$/{
12568	    s//\1/
12569	    q
12570	  }
12571	  /^X\(\/\).*/{
12572	    s//\1/
12573	    q
12574	  }
12575	  s/.*/./; q'`
12576      test -d "$as_dir" && break
12577    done
12578    test -z "$as_dirs" || eval "mkdir $as_dirs"
12579  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12580
12581
12582} # as_fn_mkdir_p
12583if mkdir -p . 2>/dev/null; then
12584  as_mkdir_p='mkdir -p "$as_dir"'
12585else
12586  test -d ./-p && rmdir ./-p
12587  as_mkdir_p=false
12588fi
12589
12590if test -x / >/dev/null 2>&1; then
12591  as_test_x='test -x'
12592else
12593  if ls -dL / >/dev/null 2>&1; then
12594    as_ls_L_option=L
12595  else
12596    as_ls_L_option=
12597  fi
12598  as_test_x='
12599    eval sh -c '\''
12600      if test -d "$1"; then
12601	test -d "$1/.";
12602      else
12603	case $1 in #(
12604	-*)set "./$1";;
12605	esac;
12606	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12607	???[sx]*):;;*)false;;esac;fi
12608    '\'' sh
12609  '
12610fi
12611as_executable_p=$as_test_x
12612
12613# Sed expression to map a string onto a valid CPP name.
12614as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12615
12616# Sed expression to map a string onto a valid variable name.
12617as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12618
12619
12620exec 6>&1
12621## ----------------------------------- ##
12622## Main body of $CONFIG_STATUS script. ##
12623## ----------------------------------- ##
12624_ASEOF
12625test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12626
12627cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12628# Save the log message, to keep $0 and so on meaningful, and to
12629# report actual input values of CONFIG_FILES etc. instead of their
12630# values after options handling.
12631ac_log="
12632This file was extended by gphoto filesystem $as_me 0.5, which was
12633generated by GNU Autoconf 2.68.  Invocation command line was
12634
12635  CONFIG_FILES    = $CONFIG_FILES
12636  CONFIG_HEADERS  = $CONFIG_HEADERS
12637  CONFIG_LINKS    = $CONFIG_LINKS
12638  CONFIG_COMMANDS = $CONFIG_COMMANDS
12639  $ $0 $@
12640
12641on `(hostname || uname -n) 2>/dev/null | sed 1q`
12642"
12643
12644_ACEOF
12645
12646case $ac_config_files in *"
12647"*) set x $ac_config_files; shift; ac_config_files=$*;;
12648esac
12649
12650case $ac_config_headers in *"
12651"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12652esac
12653
12654
12655cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12656# Files that config.status was made for.
12657config_files="$ac_config_files"
12658config_headers="$ac_config_headers"
12659config_commands="$ac_config_commands"
12660
12661_ACEOF
12662
12663cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12664ac_cs_usage="\
12665\`$as_me' instantiates files and other configuration actions
12666from templates according to the current configuration.  Unless the files
12667and actions are specified as TAGs, all are instantiated by default.
12668
12669Usage: $0 [OPTION]... [TAG]...
12670
12671  -h, --help       print this help, then exit
12672  -V, --version    print version number and configuration settings, then exit
12673      --config     print configuration, then exit
12674  -q, --quiet, --silent
12675                   do not print progress messages
12676  -d, --debug      don't remove temporary files
12677      --recheck    update $as_me by reconfiguring in the same conditions
12678      --file=FILE[:TEMPLATE]
12679                   instantiate the configuration file FILE
12680      --header=FILE[:TEMPLATE]
12681                   instantiate the configuration header FILE
12682
12683Configuration files:
12684$config_files
12685
12686Configuration headers:
12687$config_headers
12688
12689Configuration commands:
12690$config_commands
12691
12692Report bugs to <gphoto-devel@lists.sourceforge.net>."
12693
12694_ACEOF
12695cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12696ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12697ac_cs_version="\\
12698gphoto filesystem config.status 0.5
12699configured by $0, generated by GNU Autoconf 2.68,
12700  with options \\"\$ac_cs_config\\"
12701
12702Copyright (C) 2010 Free Software Foundation, Inc.
12703This config.status script is free software; the Free Software Foundation
12704gives unlimited permission to copy, distribute and modify it."
12705
12706ac_pwd='$ac_pwd'
12707srcdir='$srcdir'
12708INSTALL='$INSTALL'
12709MKDIR_P='$MKDIR_P'
12710AWK='$AWK'
12711test -n "\$AWK" || AWK=awk
12712_ACEOF
12713
12714cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12715# The default lists apply if the user does not specify any file.
12716ac_need_defaults=:
12717while test $# != 0
12718do
12719  case $1 in
12720  --*=?*)
12721    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12722    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12723    ac_shift=:
12724    ;;
12725  --*=)
12726    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12727    ac_optarg=
12728    ac_shift=:
12729    ;;
12730  *)
12731    ac_option=$1
12732    ac_optarg=$2
12733    ac_shift=shift
12734    ;;
12735  esac
12736
12737  case $ac_option in
12738  # Handling of the options.
12739  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12740    ac_cs_recheck=: ;;
12741  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12742    $as_echo "$ac_cs_version"; exit ;;
12743  --config | --confi | --conf | --con | --co | --c )
12744    $as_echo "$ac_cs_config"; exit ;;
12745  --debug | --debu | --deb | --de | --d | -d )
12746    debug=: ;;
12747  --file | --fil | --fi | --f )
12748    $ac_shift
12749    case $ac_optarg in
12750    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12751    '') as_fn_error $? "missing file argument" ;;
12752    esac
12753    as_fn_append CONFIG_FILES " '$ac_optarg'"
12754    ac_need_defaults=false;;
12755  --header | --heade | --head | --hea )
12756    $ac_shift
12757    case $ac_optarg in
12758    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12759    esac
12760    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12761    ac_need_defaults=false;;
12762  --he | --h)
12763    # Conflict between --help and --header
12764    as_fn_error $? "ambiguous option: \`$1'
12765Try \`$0 --help' for more information.";;
12766  --help | --hel | -h )
12767    $as_echo "$ac_cs_usage"; exit ;;
12768  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12769  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12770    ac_cs_silent=: ;;
12771
12772  # This is an error.
12773  -*) as_fn_error $? "unrecognized option: \`$1'
12774Try \`$0 --help' for more information." ;;
12775
12776  *) as_fn_append ac_config_targets " $1"
12777     ac_need_defaults=false ;;
12778
12779  esac
12780  shift
12781done
12782
12783ac_configure_extra_args=
12784
12785if $ac_cs_silent; then
12786  exec 6>/dev/null
12787  ac_configure_extra_args="$ac_configure_extra_args --silent"
12788fi
12789
12790_ACEOF
12791cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12792if \$ac_cs_recheck; then
12793  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12794  shift
12795  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12796  CONFIG_SHELL='$SHELL'
12797  export CONFIG_SHELL
12798  exec "\$@"
12799fi
12800
12801_ACEOF
12802cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12803exec 5>>config.log
12804{
12805  echo
12806  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12807## Running $as_me. ##
12808_ASBOX
12809  $as_echo "$ac_log"
12810} >&5
12811
12812_ACEOF
12813cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12814#
12815# INIT-COMMANDS
12816#
12817AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12818
12819
12820# The HP-UX ksh and POSIX shell print the target directory to stdout
12821# if CDPATH is set.
12822(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12823
12824sed_quote_subst='$sed_quote_subst'
12825double_quote_subst='$double_quote_subst'
12826delay_variable_subst='$delay_variable_subst'
12827macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12828macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12829enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12830enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12831pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12832enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12833host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12834host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12835host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12836build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12837build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12838build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12839SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12840Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12841GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12842EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12843FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12844LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12845NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12846LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12847max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12848ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12849exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12850lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12851lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12852lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12853reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12854reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12855OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12856deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12857file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12858AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12859AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12860STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12861RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12862old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12863old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12864old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12865CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12866CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12867compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12868GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12869lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12870lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12871lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
12872lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12873objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12874SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12875ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12876MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12877lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12878lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12879lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12880lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12881lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12882need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12883DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12884NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12885LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12886OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12887OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12888libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12889shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12890extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12891archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12892enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12893export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12894whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12895compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12896old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12897old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12898archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12899archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12900module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12901module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12902with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12903allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12904no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12905hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12906hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12907hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12908hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12909hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12910hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12911hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12912hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12913inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12914link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12915fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12916always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12917export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12918exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12919include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12920prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12921file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12922variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12923need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12924need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12925version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12926runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12927shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12928shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12929libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12930library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12931soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12932postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12933postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12934finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12935finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12936hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12937sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12938sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12939hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12940enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12941enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12942enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12943old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12944striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12945
12946LTCC='$LTCC'
12947LTCFLAGS='$LTCFLAGS'
12948compiler='$compiler_DEFAULT'
12949
12950# Quote evaled strings.
12951for var in SED \
12952GREP \
12953EGREP \
12954FGREP \
12955LD \
12956NM \
12957LN_S \
12958lt_SP2NL \
12959lt_NL2SP \
12960reload_flag \
12961OBJDUMP \
12962deplibs_check_method \
12963file_magic_cmd \
12964AR \
12965AR_FLAGS \
12966STRIP \
12967RANLIB \
12968CC \
12969CFLAGS \
12970compiler \
12971lt_cv_sys_global_symbol_pipe \
12972lt_cv_sys_global_symbol_to_cdecl \
12973lt_cv_sys_global_symbol_to_c_name_address \
12974lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12975SHELL \
12976ECHO \
12977lt_prog_compiler_no_builtin_flag \
12978lt_prog_compiler_wl \
12979lt_prog_compiler_pic \
12980lt_prog_compiler_static \
12981lt_cv_prog_compiler_c_o \
12982need_locks \
12983DSYMUTIL \
12984NMEDIT \
12985LIPO \
12986OTOOL \
12987OTOOL64 \
12988shrext_cmds \
12989export_dynamic_flag_spec \
12990whole_archive_flag_spec \
12991compiler_needs_object \
12992with_gnu_ld \
12993allow_undefined_flag \
12994no_undefined_flag \
12995hardcode_libdir_flag_spec \
12996hardcode_libdir_flag_spec_ld \
12997hardcode_libdir_separator \
12998fix_srcfile_path \
12999exclude_expsyms \
13000include_expsyms \
13001file_list_spec \
13002variables_saved_for_relink \
13003libname_spec \
13004library_names_spec \
13005soname_spec \
13006finish_eval \
13007old_striplib \
13008striplib; do
13009    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13010    *[\\\\\\\`\\"\\\$]*)
13011      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13012      ;;
13013    *)
13014      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13015      ;;
13016    esac
13017done
13018
13019# Double-quote double-evaled strings.
13020for var in reload_cmds \
13021old_postinstall_cmds \
13022old_postuninstall_cmds \
13023old_archive_cmds \
13024extract_expsyms_cmds \
13025old_archive_from_new_cmds \
13026old_archive_from_expsyms_cmds \
13027archive_cmds \
13028archive_expsym_cmds \
13029module_cmds \
13030module_expsym_cmds \
13031export_symbols_cmds \
13032prelink_cmds \
13033postinstall_cmds \
13034postuninstall_cmds \
13035finish_cmds \
13036sys_lib_search_path_spec \
13037sys_lib_dlsearch_path_spec; do
13038    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13039    *[\\\\\\\`\\"\\\$]*)
13040      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13041      ;;
13042    *)
13043      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13044      ;;
13045    esac
13046done
13047
13048# Fix-up fallback echo if it was mangled by the above quoting rules.
13049case \$lt_ECHO in
13050*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13051  ;;
13052esac
13053
13054ac_aux_dir='$ac_aux_dir'
13055xsi_shell='$xsi_shell'
13056lt_shell_append='$lt_shell_append'
13057
13058# See if we are running on zsh, and set the options which allow our
13059# commands through without removal of \ escapes INIT.
13060if test -n "\${ZSH_VERSION+set}" ; then
13061   setopt NO_GLOB_SUBST
13062fi
13063
13064
13065    PACKAGE='$PACKAGE'
13066    VERSION='$VERSION'
13067    TIMESTAMP='$TIMESTAMP'
13068    RM='$RM'
13069    ofile='$ofile'
13070
13071
13072
13073
13074
13075_ACEOF
13076
13077cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13078
13079# Handling of arguments.
13080for ac_config_target in $ac_config_targets
13081do
13082  case $ac_config_target in
13083    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13084    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13085    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13086    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13087    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13088    "m4m/Makefile") CONFIG_FILES="$CONFIG_FILES m4m/Makefile" ;;
13089
13090  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13091  esac
13092done
13093
13094
13095# If the user did not use the arguments to specify the items to instantiate,
13096# then the envvar interface is used.  Set only those that are not.
13097# We use the long form for the default assignment because of an extremely
13098# bizarre bug on SunOS 4.1.3.
13099if $ac_need_defaults; then
13100  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13101  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13102  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13103fi
13104
13105# Have a temporary directory for convenience.  Make it in the build tree
13106# simply because there is no reason against having it here, and in addition,
13107# creating and moving files from /tmp can sometimes cause problems.
13108# Hook for its removal unless debugging.
13109# Note that there is a small window in which the directory will not be cleaned:
13110# after its creation but before its name has been assigned to `$tmp'.
13111$debug ||
13112{
13113  tmp= ac_tmp=
13114  trap 'exit_status=$?
13115  : "${ac_tmp:=$tmp}"
13116  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13117' 0
13118  trap 'as_fn_exit 1' 1 2 13 15
13119}
13120# Create a (secure) tmp directory for tmp files.
13121
13122{
13123  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13124  test -d "$tmp"
13125}  ||
13126{
13127  tmp=./conf$$-$RANDOM
13128  (umask 077 && mkdir "$tmp")
13129} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13130ac_tmp=$tmp
13131
13132# Set up the scripts for CONFIG_FILES section.
13133# No need to generate them if there are no CONFIG_FILES.
13134# This happens for instance with `./config.status config.h'.
13135if test -n "$CONFIG_FILES"; then
13136
13137
13138ac_cr=`echo X | tr X '\015'`
13139# On cygwin, bash can eat \r inside `` if the user requested igncr.
13140# But we know of no other shell where ac_cr would be empty at this
13141# point, so we can use a bashism as a fallback.
13142if test "x$ac_cr" = x; then
13143  eval ac_cr=\$\'\\r\'
13144fi
13145ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13146if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13147  ac_cs_awk_cr='\\r'
13148else
13149  ac_cs_awk_cr=$ac_cr
13150fi
13151
13152echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13153_ACEOF
13154
13155
13156{
13157  echo "cat >conf$$subs.awk <<_ACEOF" &&
13158  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13159  echo "_ACEOF"
13160} >conf$$subs.sh ||
13161  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13162ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13163ac_delim='%!_!# '
13164for ac_last_try in false false false false false :; do
13165  . ./conf$$subs.sh ||
13166    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13167
13168  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13169  if test $ac_delim_n = $ac_delim_num; then
13170    break
13171  elif $ac_last_try; then
13172    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13173  else
13174    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13175  fi
13176done
13177rm -f conf$$subs.sh
13178
13179cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13180cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13181_ACEOF
13182sed -n '
13183h
13184s/^/S["/; s/!.*/"]=/
13185p
13186g
13187s/^[^!]*!//
13188:repl
13189t repl
13190s/'"$ac_delim"'$//
13191t delim
13192:nl
13193h
13194s/\(.\{148\}\)..*/\1/
13195t more1
13196s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13197p
13198n
13199b repl
13200:more1
13201s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13202p
13203g
13204s/.\{148\}//
13205t nl
13206:delim
13207h
13208s/\(.\{148\}\)..*/\1/
13209t more2
13210s/["\\]/\\&/g; s/^/"/; s/$/"/
13211p
13212b
13213:more2
13214s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13215p
13216g
13217s/.\{148\}//
13218t delim
13219' <conf$$subs.awk | sed '
13220/^[^""]/{
13221  N
13222  s/\n//
13223}
13224' >>$CONFIG_STATUS || ac_write_fail=1
13225rm -f conf$$subs.awk
13226cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13227_ACAWK
13228cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13229  for (key in S) S_is_set[key] = 1
13230  FS = ""
13231
13232}
13233{
13234  line = $ 0
13235  nfields = split(line, field, "@")
13236  substed = 0
13237  len = length(field[1])
13238  for (i = 2; i < nfields; i++) {
13239    key = field[i]
13240    keylen = length(key)
13241    if (S_is_set[key]) {
13242      value = S[key]
13243      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13244      len += length(value) + length(field[++i])
13245      substed = 1
13246    } else
13247      len += 1 + keylen
13248  }
13249
13250  print line
13251}
13252
13253_ACAWK
13254_ACEOF
13255cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13256if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13257  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13258else
13259  cat
13260fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13261  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13262_ACEOF
13263
13264# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13265# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13266# trailing colons and then remove the whole line if VPATH becomes empty
13267# (actually we leave an empty line to preserve line numbers).
13268if test "x$srcdir" = x.; then
13269  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13270h
13271s///
13272s/^/:/
13273s/[	 ]*$/:/
13274s/:\$(srcdir):/:/g
13275s/:\${srcdir}:/:/g
13276s/:@srcdir@:/:/g
13277s/^:*//
13278s/:*$//
13279x
13280s/\(=[	 ]*\).*/\1/
13281G
13282s/\n//
13283s/^[^=]*=[	 ]*$//
13284}'
13285fi
13286
13287cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13288fi # test -n "$CONFIG_FILES"
13289
13290# Set up the scripts for CONFIG_HEADERS section.
13291# No need to generate them if there are no CONFIG_HEADERS.
13292# This happens for instance with `./config.status Makefile'.
13293if test -n "$CONFIG_HEADERS"; then
13294cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13295BEGIN {
13296_ACEOF
13297
13298# Transform confdefs.h into an awk script `defines.awk', embedded as
13299# here-document in config.status, that substitutes the proper values into
13300# config.h.in to produce config.h.
13301
13302# Create a delimiter string that does not exist in confdefs.h, to ease
13303# handling of long lines.
13304ac_delim='%!_!# '
13305for ac_last_try in false false :; do
13306  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13307  if test -z "$ac_tt"; then
13308    break
13309  elif $ac_last_try; then
13310    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13311  else
13312    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13313  fi
13314done
13315
13316# For the awk script, D is an array of macro values keyed by name,
13317# likewise P contains macro parameters if any.  Preserve backslash
13318# newline sequences.
13319
13320ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13321sed -n '
13322s/.\{148\}/&'"$ac_delim"'/g
13323t rset
13324:rset
13325s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13326t def
13327d
13328:def
13329s/\\$//
13330t bsnl
13331s/["\\]/\\&/g
13332s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13333D["\1"]=" \3"/p
13334s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13335d
13336:bsnl
13337s/["\\]/\\&/g
13338s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13339D["\1"]=" \3\\\\\\n"\\/p
13340t cont
13341s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13342t cont
13343d
13344:cont
13345n
13346s/.\{148\}/&'"$ac_delim"'/g
13347t clear
13348:clear
13349s/\\$//
13350t bsnlc
13351s/["\\]/\\&/g; s/^/"/; s/$/"/p
13352d
13353:bsnlc
13354s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13355b cont
13356' <confdefs.h | sed '
13357s/'"$ac_delim"'/"\\\
13358"/g' >>$CONFIG_STATUS || ac_write_fail=1
13359
13360cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13361  for (key in D) D_is_set[key] = 1
13362  FS = ""
13363}
13364/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13365  line = \$ 0
13366  split(line, arg, " ")
13367  if (arg[1] == "#") {
13368    defundef = arg[2]
13369    mac1 = arg[3]
13370  } else {
13371    defundef = substr(arg[1], 2)
13372    mac1 = arg[2]
13373  }
13374  split(mac1, mac2, "(") #)
13375  macro = mac2[1]
13376  prefix = substr(line, 1, index(line, defundef) - 1)
13377  if (D_is_set[macro]) {
13378    # Preserve the white space surrounding the "#".
13379    print prefix "define", macro P[macro] D[macro]
13380    next
13381  } else {
13382    # Replace #undef with comments.  This is necessary, for example,
13383    # in the case of _POSIX_SOURCE, which is predefined and required
13384    # on some systems where configure will not decide to define it.
13385    if (defundef == "undef") {
13386      print "/*", prefix defundef, macro, "*/"
13387      next
13388    }
13389  }
13390}
13391{ print }
13392_ACAWK
13393_ACEOF
13394cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13395  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13396fi # test -n "$CONFIG_HEADERS"
13397
13398
13399eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13400shift
13401for ac_tag
13402do
13403  case $ac_tag in
13404  :[FHLC]) ac_mode=$ac_tag; continue;;
13405  esac
13406  case $ac_mode$ac_tag in
13407  :[FHL]*:*);;
13408  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13409  :[FH]-) ac_tag=-:-;;
13410  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13411  esac
13412  ac_save_IFS=$IFS
13413  IFS=:
13414  set x $ac_tag
13415  IFS=$ac_save_IFS
13416  shift
13417  ac_file=$1
13418  shift
13419
13420  case $ac_mode in
13421  :L) ac_source=$1;;
13422  :[FH])
13423    ac_file_inputs=
13424    for ac_f
13425    do
13426      case $ac_f in
13427      -) ac_f="$ac_tmp/stdin";;
13428      *) # Look for the file first in the build tree, then in the source tree
13429	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13430	 # because $ac_f cannot contain `:'.
13431	 test -f "$ac_f" ||
13432	   case $ac_f in
13433	   [\\/$]*) false;;
13434	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13435	   esac ||
13436	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13437      esac
13438      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13439      as_fn_append ac_file_inputs " '$ac_f'"
13440    done
13441
13442    # Let's still pretend it is `configure' which instantiates (i.e., don't
13443    # use $as_me), people would be surprised to read:
13444    #    /* config.h.  Generated by config.status.  */
13445    configure_input='Generated from '`
13446	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13447	`' by configure.'
13448    if test x"$ac_file" != x-; then
13449      configure_input="$ac_file.  $configure_input"
13450      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13451$as_echo "$as_me: creating $ac_file" >&6;}
13452    fi
13453    # Neutralize special characters interpreted by sed in replacement strings.
13454    case $configure_input in #(
13455    *\&* | *\|* | *\\* )
13456       ac_sed_conf_input=`$as_echo "$configure_input" |
13457       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13458    *) ac_sed_conf_input=$configure_input;;
13459    esac
13460
13461    case $ac_tag in
13462    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13463      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13464    esac
13465    ;;
13466  esac
13467
13468  ac_dir=`$as_dirname -- "$ac_file" ||
13469$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13470	 X"$ac_file" : 'X\(//\)[^/]' \| \
13471	 X"$ac_file" : 'X\(//\)$' \| \
13472	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13473$as_echo X"$ac_file" |
13474    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13475	    s//\1/
13476	    q
13477	  }
13478	  /^X\(\/\/\)[^/].*/{
13479	    s//\1/
13480	    q
13481	  }
13482	  /^X\(\/\/\)$/{
13483	    s//\1/
13484	    q
13485	  }
13486	  /^X\(\/\).*/{
13487	    s//\1/
13488	    q
13489	  }
13490	  s/.*/./; q'`
13491  as_dir="$ac_dir"; as_fn_mkdir_p
13492  ac_builddir=.
13493
13494case "$ac_dir" in
13495.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13496*)
13497  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13498  # A ".." for each directory in $ac_dir_suffix.
13499  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13500  case $ac_top_builddir_sub in
13501  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13502  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13503  esac ;;
13504esac
13505ac_abs_top_builddir=$ac_pwd
13506ac_abs_builddir=$ac_pwd$ac_dir_suffix
13507# for backward compatibility:
13508ac_top_builddir=$ac_top_build_prefix
13509
13510case $srcdir in
13511  .)  # We are building in place.
13512    ac_srcdir=.
13513    ac_top_srcdir=$ac_top_builddir_sub
13514    ac_abs_top_srcdir=$ac_pwd ;;
13515  [\\/]* | ?:[\\/]* )  # Absolute name.
13516    ac_srcdir=$srcdir$ac_dir_suffix;
13517    ac_top_srcdir=$srcdir
13518    ac_abs_top_srcdir=$srcdir ;;
13519  *) # Relative name.
13520    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13521    ac_top_srcdir=$ac_top_build_prefix$srcdir
13522    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13523esac
13524ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13525
13526
13527  case $ac_mode in
13528  :F)
13529  #
13530  # CONFIG_FILE
13531  #
13532
13533  case $INSTALL in
13534  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13535  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13536  esac
13537  ac_MKDIR_P=$MKDIR_P
13538  case $MKDIR_P in
13539  [\\/$]* | ?:[\\/]* ) ;;
13540  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13541  esac
13542_ACEOF
13543
13544cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13545# If the template does not know about datarootdir, expand it.
13546# FIXME: This hack should be removed a few years after 2.60.
13547ac_datarootdir_hack=; ac_datarootdir_seen=
13548ac_sed_dataroot='
13549/datarootdir/ {
13550  p
13551  q
13552}
13553/@datadir@/p
13554/@docdir@/p
13555/@infodir@/p
13556/@localedir@/p
13557/@mandir@/p'
13558case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13559*datarootdir*) ac_datarootdir_seen=yes;;
13560*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13561  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13562$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13563_ACEOF
13564cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13565  ac_datarootdir_hack='
13566  s&@datadir@&$datadir&g
13567  s&@docdir@&$docdir&g
13568  s&@infodir@&$infodir&g
13569  s&@localedir@&$localedir&g
13570  s&@mandir@&$mandir&g
13571  s&\\\${datarootdir}&$datarootdir&g' ;;
13572esac
13573_ACEOF
13574
13575# Neutralize VPATH when `$srcdir' = `.'.
13576# Shell code in configure.ac might set extrasub.
13577# FIXME: do we really want to maintain this feature?
13578cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13579ac_sed_extra="$ac_vpsub
13580$extrasub
13581_ACEOF
13582cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13583:t
13584/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13585s|@configure_input@|$ac_sed_conf_input|;t t
13586s&@top_builddir@&$ac_top_builddir_sub&;t t
13587s&@top_build_prefix@&$ac_top_build_prefix&;t t
13588s&@srcdir@&$ac_srcdir&;t t
13589s&@abs_srcdir@&$ac_abs_srcdir&;t t
13590s&@top_srcdir@&$ac_top_srcdir&;t t
13591s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13592s&@builddir@&$ac_builddir&;t t
13593s&@abs_builddir@&$ac_abs_builddir&;t t
13594s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13595s&@INSTALL@&$ac_INSTALL&;t t
13596s&@MKDIR_P@&$ac_MKDIR_P&;t t
13597$ac_datarootdir_hack
13598"
13599eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13600  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13601
13602test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13603  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13604  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13605      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13606  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13607which seems to be undefined.  Please make sure it is defined" >&5
13608$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13609which seems to be undefined.  Please make sure it is defined" >&2;}
13610
13611  rm -f "$ac_tmp/stdin"
13612  case $ac_file in
13613  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13614  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13615  esac \
13616  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13617 ;;
13618  :H)
13619  #
13620  # CONFIG_HEADER
13621  #
13622  if test x"$ac_file" != x-; then
13623    {
13624      $as_echo "/* $configure_input  */" \
13625      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13626    } >"$ac_tmp/config.h" \
13627      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13628    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13629      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13630$as_echo "$as_me: $ac_file is unchanged" >&6;}
13631    else
13632      rm -f "$ac_file"
13633      mv "$ac_tmp/config.h" "$ac_file" \
13634	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13635    fi
13636  else
13637    $as_echo "/* $configure_input  */" \
13638      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13639      || as_fn_error $? "could not create -" "$LINENO" 5
13640  fi
13641# Compute "$ac_file"'s index in $config_headers.
13642_am_arg="$ac_file"
13643_am_stamp_count=1
13644for _am_header in $config_headers :; do
13645  case $_am_header in
13646    $_am_arg | $_am_arg:* )
13647      break ;;
13648    * )
13649      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13650  esac
13651done
13652echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13653$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13654	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13655	 X"$_am_arg" : 'X\(//\)$' \| \
13656	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13657$as_echo X"$_am_arg" |
13658    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13659	    s//\1/
13660	    q
13661	  }
13662	  /^X\(\/\/\)[^/].*/{
13663	    s//\1/
13664	    q
13665	  }
13666	  /^X\(\/\/\)$/{
13667	    s//\1/
13668	    q
13669	  }
13670	  /^X\(\/\).*/{
13671	    s//\1/
13672	    q
13673	  }
13674	  s/.*/./; q'`/stamp-h$_am_stamp_count
13675 ;;
13676
13677  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13678$as_echo "$as_me: executing $ac_file commands" >&6;}
13679 ;;
13680  esac
13681
13682
13683  case $ac_file$ac_mode in
13684    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13685  # Autoconf 2.62 quotes --file arguments for eval, but not when files
13686  # are listed without --file.  Let's play safe and only enable the eval
13687  # if we detect the quoting.
13688  case $CONFIG_FILES in
13689  *\'*) eval set x "$CONFIG_FILES" ;;
13690  *)   set x $CONFIG_FILES ;;
13691  esac
13692  shift
13693  for mf
13694  do
13695    # Strip MF so we end up with the name of the file.
13696    mf=`echo "$mf" | sed -e 's/:.*$//'`
13697    # Check whether this is an Automake generated Makefile or not.
13698    # We used to match only the files named `Makefile.in', but
13699    # some people rename them; so instead we look at the file content.
13700    # Grep'ing the first line is not enough: some people post-process
13701    # each Makefile.in and add a new line on top of each file to say so.
13702    # Grep'ing the whole file is not good either: AIX grep has a line
13703    # limit of 2048, but all sed's we know have understand at least 4000.
13704    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13705      dirpart=`$as_dirname -- "$mf" ||
13706$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13707	 X"$mf" : 'X\(//\)[^/]' \| \
13708	 X"$mf" : 'X\(//\)$' \| \
13709	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13710$as_echo X"$mf" |
13711    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13712	    s//\1/
13713	    q
13714	  }
13715	  /^X\(\/\/\)[^/].*/{
13716	    s//\1/
13717	    q
13718	  }
13719	  /^X\(\/\/\)$/{
13720	    s//\1/
13721	    q
13722	  }
13723	  /^X\(\/\).*/{
13724	    s//\1/
13725	    q
13726	  }
13727	  s/.*/./; q'`
13728    else
13729      continue
13730    fi
13731    # Extract the definition of DEPDIR, am__include, and am__quote
13732    # from the Makefile without running `make'.
13733    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13734    test -z "$DEPDIR" && continue
13735    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13736    test -z "am__include" && continue
13737    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13738    # When using ansi2knr, U may be empty or an underscore; expand it
13739    U=`sed -n 's/^U = //p' < "$mf"`
13740    # Find all dependency output files, they are included files with
13741    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13742    # simplest approach to changing $(DEPDIR) to its actual value in the
13743    # expansion.
13744    for file in `sed -n "
13745      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13746	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13747      # Make sure the directory exists.
13748      test -f "$dirpart/$file" && continue
13749      fdir=`$as_dirname -- "$file" ||
13750$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13751	 X"$file" : 'X\(//\)[^/]' \| \
13752	 X"$file" : 'X\(//\)$' \| \
13753	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13754$as_echo X"$file" |
13755    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13756	    s//\1/
13757	    q
13758	  }
13759	  /^X\(\/\/\)[^/].*/{
13760	    s//\1/
13761	    q
13762	  }
13763	  /^X\(\/\/\)$/{
13764	    s//\1/
13765	    q
13766	  }
13767	  /^X\(\/\).*/{
13768	    s//\1/
13769	    q
13770	  }
13771	  s/.*/./; q'`
13772      as_dir=$dirpart/$fdir; as_fn_mkdir_p
13773      # echo "creating $dirpart/$file"
13774      echo '# dummy' > "$dirpart/$file"
13775    done
13776  done
13777}
13778 ;;
13779    "libtool":C)
13780
13781    # See if we are running on zsh, and set the options which allow our
13782    # commands through without removal of \ escapes.
13783    if test -n "${ZSH_VERSION+set}" ; then
13784      setopt NO_GLOB_SUBST
13785    fi
13786
13787    cfgfile="${ofile}T"
13788    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13789    $RM "$cfgfile"
13790
13791    cat <<_LT_EOF >> "$cfgfile"
13792#! $SHELL
13793
13794# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13795# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13796# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13797#
13798#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13799#                 2006, 2007, 2008 Free Software Foundation, Inc.
13800#   Written by Gordon Matzigkeit, 1996
13801#
13802#   This file is part of GNU Libtool.
13803#
13804# GNU Libtool is free software; you can redistribute it and/or
13805# modify it under the terms of the GNU General Public License as
13806# published by the Free Software Foundation; either version 2 of
13807# the License, or (at your option) any later version.
13808#
13809# As a special exception to the GNU General Public License,
13810# if you distribute this file as part of a program or library that
13811# is built using GNU Libtool, you may include this file under the
13812# same distribution terms that you use for the rest of that program.
13813#
13814# GNU Libtool is distributed in the hope that it will be useful,
13815# but WITHOUT ANY WARRANTY; without even the implied warranty of
13816# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13817# GNU General Public License for more details.
13818#
13819# You should have received a copy of the GNU General Public License
13820# along with GNU Libtool; see the file COPYING.  If not, a copy
13821# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13822# obtained by writing to the Free Software Foundation, Inc.,
13823# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13824
13825
13826# The names of the tagged configurations supported by this script.
13827available_tags=""
13828
13829# ### BEGIN LIBTOOL CONFIG
13830
13831# Which release of libtool.m4 was used?
13832macro_version=$macro_version
13833macro_revision=$macro_revision
13834
13835# Whether or not to build shared libraries.
13836build_libtool_libs=$enable_shared
13837
13838# Whether or not to build static libraries.
13839build_old_libs=$enable_static
13840
13841# What type of objects to build.
13842pic_mode=$pic_mode
13843
13844# Whether or not to optimize for fast installation.
13845fast_install=$enable_fast_install
13846
13847# The host system.
13848host_alias=$host_alias
13849host=$host
13850host_os=$host_os
13851
13852# The build system.
13853build_alias=$build_alias
13854build=$build
13855build_os=$build_os
13856
13857# A sed program that does not truncate output.
13858SED=$lt_SED
13859
13860# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13861Xsed="\$SED -e 1s/^X//"
13862
13863# A grep program that handles long lines.
13864GREP=$lt_GREP
13865
13866# An ERE matcher.
13867EGREP=$lt_EGREP
13868
13869# A literal string matcher.
13870FGREP=$lt_FGREP
13871
13872# A BSD- or MS-compatible name lister.
13873NM=$lt_NM
13874
13875# Whether we need soft or hard links.
13876LN_S=$lt_LN_S
13877
13878# What is the maximum length of a command?
13879max_cmd_len=$max_cmd_len
13880
13881# Object file suffix (normally "o").
13882objext=$ac_objext
13883
13884# Executable file suffix (normally "").
13885exeext=$exeext
13886
13887# whether the shell understands "unset".
13888lt_unset=$lt_unset
13889
13890# turn spaces into newlines.
13891SP2NL=$lt_lt_SP2NL
13892
13893# turn newlines into spaces.
13894NL2SP=$lt_lt_NL2SP
13895
13896# How to create reloadable object files.
13897reload_flag=$lt_reload_flag
13898reload_cmds=$lt_reload_cmds
13899
13900# An object symbol dumper.
13901OBJDUMP=$lt_OBJDUMP
13902
13903# Method to check whether dependent libraries are shared objects.
13904deplibs_check_method=$lt_deplibs_check_method
13905
13906# Command to use when deplibs_check_method == "file_magic".
13907file_magic_cmd=$lt_file_magic_cmd
13908
13909# The archiver.
13910AR=$lt_AR
13911AR_FLAGS=$lt_AR_FLAGS
13912
13913# A symbol stripping program.
13914STRIP=$lt_STRIP
13915
13916# Commands used to install an old-style archive.
13917RANLIB=$lt_RANLIB
13918old_postinstall_cmds=$lt_old_postinstall_cmds
13919old_postuninstall_cmds=$lt_old_postuninstall_cmds
13920
13921# A C compiler.
13922LTCC=$lt_CC
13923
13924# LTCC compiler flags.
13925LTCFLAGS=$lt_CFLAGS
13926
13927# Take the output of nm and produce a listing of raw symbols and C names.
13928global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13929
13930# Transform the output of nm in a proper C declaration.
13931global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13932
13933# Transform the output of nm in a C name address pair.
13934global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13935
13936# Transform the output of nm in a C name address pair when lib prefix is needed.
13937global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13938
13939# The name of the directory that contains temporary libtool files.
13940objdir=$objdir
13941
13942# Shell to use when invoking shell scripts.
13943SHELL=$lt_SHELL
13944
13945# An echo program that does not interpret backslashes.
13946ECHO=$lt_ECHO
13947
13948# Used to examine libraries when file_magic_cmd begins with "file".
13949MAGIC_CMD=$MAGIC_CMD
13950
13951# Must we lock files when doing compilation?
13952need_locks=$lt_need_locks
13953
13954# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13955DSYMUTIL=$lt_DSYMUTIL
13956
13957# Tool to change global to local symbols on Mac OS X.
13958NMEDIT=$lt_NMEDIT
13959
13960# Tool to manipulate fat objects and archives on Mac OS X.
13961LIPO=$lt_LIPO
13962
13963# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13964OTOOL=$lt_OTOOL
13965
13966# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13967OTOOL64=$lt_OTOOL64
13968
13969# Old archive suffix (normally "a").
13970libext=$libext
13971
13972# Shared library suffix (normally ".so").
13973shrext_cmds=$lt_shrext_cmds
13974
13975# The commands to extract the exported symbol list from a shared archive.
13976extract_expsyms_cmds=$lt_extract_expsyms_cmds
13977
13978# Variables whose values should be saved in libtool wrapper scripts and
13979# restored at link time.
13980variables_saved_for_relink=$lt_variables_saved_for_relink
13981
13982# Do we need the "lib" prefix for modules?
13983need_lib_prefix=$need_lib_prefix
13984
13985# Do we need a version for libraries?
13986need_version=$need_version
13987
13988# Library versioning type.
13989version_type=$version_type
13990
13991# Shared library runtime path variable.
13992runpath_var=$runpath_var
13993
13994# Shared library path variable.
13995shlibpath_var=$shlibpath_var
13996
13997# Is shlibpath searched before the hard-coded library search path?
13998shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13999
14000# Format of library name prefix.
14001libname_spec=$lt_libname_spec
14002
14003# List of archive names.  First name is the real one, the rest are links.
14004# The last name is the one that the linker finds with -lNAME
14005library_names_spec=$lt_library_names_spec
14006
14007# The coded name of the library, if different from the real name.
14008soname_spec=$lt_soname_spec
14009
14010# Command to use after installation of a shared archive.
14011postinstall_cmds=$lt_postinstall_cmds
14012
14013# Command to use after uninstallation of a shared archive.
14014postuninstall_cmds=$lt_postuninstall_cmds
14015
14016# Commands used to finish a libtool library installation in a directory.
14017finish_cmds=$lt_finish_cmds
14018
14019# As "finish_cmds", except a single script fragment to be evaled but
14020# not shown.
14021finish_eval=$lt_finish_eval
14022
14023# Whether we should hardcode library paths into libraries.
14024hardcode_into_libs=$hardcode_into_libs
14025
14026# Compile-time system search path for libraries.
14027sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14028
14029# Run-time system search path for libraries.
14030sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14031
14032# Whether dlopen is supported.
14033dlopen_support=$enable_dlopen
14034
14035# Whether dlopen of programs is supported.
14036dlopen_self=$enable_dlopen_self
14037
14038# Whether dlopen of statically linked programs is supported.
14039dlopen_self_static=$enable_dlopen_self_static
14040
14041# Commands to strip libraries.
14042old_striplib=$lt_old_striplib
14043striplib=$lt_striplib
14044
14045
14046# The linker used to build libraries.
14047LD=$lt_LD
14048
14049# Commands used to build an old-style archive.
14050old_archive_cmds=$lt_old_archive_cmds
14051
14052# A language specific compiler.
14053CC=$lt_compiler
14054
14055# Is the compiler the GNU compiler?
14056with_gcc=$GCC
14057
14058# Compiler flag to turn off builtin functions.
14059no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14060
14061# How to pass a linker flag through the compiler.
14062wl=$lt_lt_prog_compiler_wl
14063
14064# Additional compiler flags for building library objects.
14065pic_flag=$lt_lt_prog_compiler_pic
14066
14067# Compiler flag to prevent dynamic linking.
14068link_static_flag=$lt_lt_prog_compiler_static
14069
14070# Does compiler simultaneously support -c and -o options?
14071compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14072
14073# Whether or not to add -lc for building shared libraries.
14074build_libtool_need_lc=$archive_cmds_need_lc
14075
14076# Whether or not to disallow shared libs when runtime libs are static.
14077allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14078
14079# Compiler flag to allow reflexive dlopens.
14080export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14081
14082# Compiler flag to generate shared objects directly from archives.
14083whole_archive_flag_spec=$lt_whole_archive_flag_spec
14084
14085# Whether the compiler copes with passing no objects directly.
14086compiler_needs_object=$lt_compiler_needs_object
14087
14088# Create an old-style archive from a shared archive.
14089old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14090
14091# Create a temporary old-style archive to link instead of a shared archive.
14092old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14093
14094# Commands used to build a shared archive.
14095archive_cmds=$lt_archive_cmds
14096archive_expsym_cmds=$lt_archive_expsym_cmds
14097
14098# Commands used to build a loadable module if different from building
14099# a shared archive.
14100module_cmds=$lt_module_cmds
14101module_expsym_cmds=$lt_module_expsym_cmds
14102
14103# Whether we are building with GNU ld or not.
14104with_gnu_ld=$lt_with_gnu_ld
14105
14106# Flag that allows shared libraries with undefined symbols to be built.
14107allow_undefined_flag=$lt_allow_undefined_flag
14108
14109# Flag that enforces no undefined symbols.
14110no_undefined_flag=$lt_no_undefined_flag
14111
14112# Flag to hardcode \$libdir into a binary during linking.
14113# This must work even if \$libdir does not exist
14114hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14115
14116# If ld is used when linking, flag to hardcode \$libdir into a binary
14117# during linking.  This must work even if \$libdir does not exist.
14118hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14119
14120# Whether we need a single "-rpath" flag with a separated argument.
14121hardcode_libdir_separator=$lt_hardcode_libdir_separator
14122
14123# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14124# DIR into the resulting binary.
14125hardcode_direct=$hardcode_direct
14126
14127# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14128# DIR into the resulting binary and the resulting library dependency is
14129# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14130# library is relocated.
14131hardcode_direct_absolute=$hardcode_direct_absolute
14132
14133# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14134# into the resulting binary.
14135hardcode_minus_L=$hardcode_minus_L
14136
14137# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14138# into the resulting binary.
14139hardcode_shlibpath_var=$hardcode_shlibpath_var
14140
14141# Set to "yes" if building a shared library automatically hardcodes DIR
14142# into the library and all subsequent libraries and executables linked
14143# against it.
14144hardcode_automatic=$hardcode_automatic
14145
14146# Set to yes if linker adds runtime paths of dependent libraries
14147# to runtime path list.
14148inherit_rpath=$inherit_rpath
14149
14150# Whether libtool must link a program against all its dependency libraries.
14151link_all_deplibs=$link_all_deplibs
14152
14153# Fix the shell variable \$srcfile for the compiler.
14154fix_srcfile_path=$lt_fix_srcfile_path
14155
14156# Set to "yes" if exported symbols are required.
14157always_export_symbols=$always_export_symbols
14158
14159# The commands to list exported symbols.
14160export_symbols_cmds=$lt_export_symbols_cmds
14161
14162# Symbols that should not be listed in the preloaded symbols.
14163exclude_expsyms=$lt_exclude_expsyms
14164
14165# Symbols that must always be exported.
14166include_expsyms=$lt_include_expsyms
14167
14168# Commands necessary for linking programs (against libraries) with templates.
14169prelink_cmds=$lt_prelink_cmds
14170
14171# Specify filename containing input files.
14172file_list_spec=$lt_file_list_spec
14173
14174# How to hardcode a shared library path into an executable.
14175hardcode_action=$hardcode_action
14176
14177# ### END LIBTOOL CONFIG
14178
14179_LT_EOF
14180
14181  case $host_os in
14182  aix3*)
14183    cat <<\_LT_EOF >> "$cfgfile"
14184# AIX sometimes has problems with the GCC collect2 program.  For some
14185# reason, if we set the COLLECT_NAMES environment variable, the problems
14186# vanish in a puff of smoke.
14187if test "X${COLLECT_NAMES+set}" != Xset; then
14188  COLLECT_NAMES=
14189  export COLLECT_NAMES
14190fi
14191_LT_EOF
14192    ;;
14193  esac
14194
14195
14196ltmain="$ac_aux_dir/ltmain.sh"
14197
14198
14199  # We use sed instead of cat because bash on DJGPP gets confused if
14200  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14201  # text mode, it properly converts lines to CR/LF.  This bash problem
14202  # is reportedly fixed, but why not run on old versions too?
14203  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14204    || (rm -f "$cfgfile"; exit 1)
14205
14206  case $xsi_shell in
14207  yes)
14208    cat << \_LT_EOF >> "$cfgfile"
14209
14210# func_dirname file append nondir_replacement
14211# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14212# otherwise set result to NONDIR_REPLACEMENT.
14213func_dirname ()
14214{
14215  case ${1} in
14216    */*) func_dirname_result="${1%/*}${2}" ;;
14217    *  ) func_dirname_result="${3}" ;;
14218  esac
14219}
14220
14221# func_basename file
14222func_basename ()
14223{
14224  func_basename_result="${1##*/}"
14225}
14226
14227# func_dirname_and_basename file append nondir_replacement
14228# perform func_basename and func_dirname in a single function
14229# call:
14230#   dirname:  Compute the dirname of FILE.  If nonempty,
14231#             add APPEND to the result, otherwise set result
14232#             to NONDIR_REPLACEMENT.
14233#             value returned in "$func_dirname_result"
14234#   basename: Compute filename of FILE.
14235#             value retuned in "$func_basename_result"
14236# Implementation must be kept synchronized with func_dirname
14237# and func_basename. For efficiency, we do not delegate to
14238# those functions but instead duplicate the functionality here.
14239func_dirname_and_basename ()
14240{
14241  case ${1} in
14242    */*) func_dirname_result="${1%/*}${2}" ;;
14243    *  ) func_dirname_result="${3}" ;;
14244  esac
14245  func_basename_result="${1##*/}"
14246}
14247
14248# func_stripname prefix suffix name
14249# strip PREFIX and SUFFIX off of NAME.
14250# PREFIX and SUFFIX must not contain globbing or regex special
14251# characters, hashes, percent signs, but SUFFIX may contain a leading
14252# dot (in which case that matches only a dot).
14253func_stripname ()
14254{
14255  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14256  # positional parameters, so assign one to ordinary parameter first.
14257  func_stripname_result=${3}
14258  func_stripname_result=${func_stripname_result#"${1}"}
14259  func_stripname_result=${func_stripname_result%"${2}"}
14260}
14261
14262# func_opt_split
14263func_opt_split ()
14264{
14265  func_opt_split_opt=${1%%=*}
14266  func_opt_split_arg=${1#*=}
14267}
14268
14269# func_lo2o object
14270func_lo2o ()
14271{
14272  case ${1} in
14273    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14274    *)    func_lo2o_result=${1} ;;
14275  esac
14276}
14277
14278# func_xform libobj-or-source
14279func_xform ()
14280{
14281  func_xform_result=${1%.*}.lo
14282}
14283
14284# func_arith arithmetic-term...
14285func_arith ()
14286{
14287  func_arith_result=$(( $* ))
14288}
14289
14290# func_len string
14291# STRING may not start with a hyphen.
14292func_len ()
14293{
14294  func_len_result=${#1}
14295}
14296
14297_LT_EOF
14298    ;;
14299  *) # Bourne compatible functions.
14300    cat << \_LT_EOF >> "$cfgfile"
14301
14302# func_dirname file append nondir_replacement
14303# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14304# otherwise set result to NONDIR_REPLACEMENT.
14305func_dirname ()
14306{
14307  # Extract subdirectory from the argument.
14308  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14309  if test "X$func_dirname_result" = "X${1}"; then
14310    func_dirname_result="${3}"
14311  else
14312    func_dirname_result="$func_dirname_result${2}"
14313  fi
14314}
14315
14316# func_basename file
14317func_basename ()
14318{
14319  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14320}
14321
14322
14323# func_stripname prefix suffix name
14324# strip PREFIX and SUFFIX off of NAME.
14325# PREFIX and SUFFIX must not contain globbing or regex special
14326# characters, hashes, percent signs, but SUFFIX may contain a leading
14327# dot (in which case that matches only a dot).
14328# func_strip_suffix prefix name
14329func_stripname ()
14330{
14331  case ${2} in
14332    .*) func_stripname_result=`$ECHO "X${3}" \
14333           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14334    *)  func_stripname_result=`$ECHO "X${3}" \
14335           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14336  esac
14337}
14338
14339# sed scripts:
14340my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14341my_sed_long_arg='1s/^-[^=]*=//'
14342
14343# func_opt_split
14344func_opt_split ()
14345{
14346  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14347  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14348}
14349
14350# func_lo2o object
14351func_lo2o ()
14352{
14353  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14354}
14355
14356# func_xform libobj-or-source
14357func_xform ()
14358{
14359  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14360}
14361
14362# func_arith arithmetic-term...
14363func_arith ()
14364{
14365  func_arith_result=`expr "$@"`
14366}
14367
14368# func_len string
14369# STRING may not start with a hyphen.
14370func_len ()
14371{
14372  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14373}
14374
14375_LT_EOF
14376esac
14377
14378case $lt_shell_append in
14379  yes)
14380    cat << \_LT_EOF >> "$cfgfile"
14381
14382# func_append var value
14383# Append VALUE to the end of shell variable VAR.
14384func_append ()
14385{
14386  eval "$1+=\$2"
14387}
14388_LT_EOF
14389    ;;
14390  *)
14391    cat << \_LT_EOF >> "$cfgfile"
14392
14393# func_append var value
14394# Append VALUE to the end of shell variable VAR.
14395func_append ()
14396{
14397  eval "$1=\$$1\$2"
14398}
14399
14400_LT_EOF
14401    ;;
14402  esac
14403
14404
14405  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14406    || (rm -f "$cfgfile"; exit 1)
14407
14408  mv -f "$cfgfile" "$ofile" ||
14409    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14410  chmod +x "$ofile"
14411
14412 ;;
14413    "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
14414        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
14415      esac ;;
14416
14417  esac
14418done # for ac_tag
14419
14420
14421as_fn_exit 0
14422_ACEOF
14423ac_clean_files=$ac_clean_files_save
14424
14425test $ac_write_fail = 0 ||
14426  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14427
14428
14429# configure is writing to config.log, and then calls config.status.
14430# config.status does its own redirection, appending to config.log.
14431# Unfortunately, on DOS this fails, as config.log is still kept open
14432# by configure, so config.status won't be able to write to it; its
14433# output is simply discarded.  So we exec the FD to /dev/null,
14434# effectively closing config.log, so it can be properly (re)opened and
14435# appended to by config.status.  When coming back to configure, we
14436# need to make the FD available again.
14437if test "$no_create" != yes; then
14438  ac_cs_success=:
14439  ac_config_status_args=
14440  test "$silent" = yes &&
14441    ac_config_status_args="$ac_config_status_args --quiet"
14442  exec 5>/dev/null
14443  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14444  exec 5>>config.log
14445  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14446  # would make configure fail if this is the last instruction.
14447  $ac_cs_success || as_fn_exit 1
14448fi
14449if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14450  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14451$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14452fi
14453
14454# Message about configured subprojects
14455if test "x$subdirs" != "x"; then
14456
14457gp_config_msg="${gp_config_msg}
14458"
14459	_subdirs=""
14460	for sd in $subdirs; do
14461		ssd="$(basename "$sd")"
14462		if test "x$_subdirs" = "x"; then
14463			_subdirs="$ssd";
14464		else
14465			_subdirs="$_subdirs $ssd"
14466		fi
14467	done
14468
14469gp_config_msg_len="$(expr "Subprojects" : '.*')"
14470if test "$gp_config_msg_len" -ge "$gp_config_len"; then
14471	gp_config_msg_lhs="$(expr "Subprojects" : "\(.\{0,${gp_config_len3}\}\)")..:"
14472else
14473	gp_config_msg_lhs="$(expr "Subprojects:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
14474fi
14475gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} ${_subdirs}
14476"
14477fi
14478
14479echo "${gp_config_msg}
14480You may run \"make\" and \"make install\" now."
14481
14482