1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64 for EXIF library 0.6.19.
4#
5# Report bugs to <libexif-devel@lists.sourceforge.net>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9# Foundation, Inc.
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92case $0 in #((
93  *[\\/]* ) as_myself=$0 ;;
94  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97  IFS=$as_save_IFS
98  test -z "$as_dir" && as_dir=.
99    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100  done
101IFS=$as_save_IFS
102
103     ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108  as_myself=$0
109fi
110if test ! -f "$as_myself"; then
111  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112  exit 1
113fi
114
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there.  '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138  emulate sh
139  NULLCMD=:
140  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141  # is contrary to our usage.  Disable this feature.
142  alias -g '\${1+\"\$@\"}'='\"\$@\"'
143  setopt NO_GLOB_SUBST
144else
145  case \`(set -o) 2>/dev/null\` in #(
146  *posix*) :
147    set -o posix ;; #(
148  *) :
149     ;;
150esac
151fi
152"
153  as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167  exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175  if (eval "$as_required") 2>/dev/null; then :
176  as_have_required=yes
177else
178  as_have_required=no
179fi
180  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
187  IFS=$as_save_IFS
188  test -z "$as_dir" && as_dir=.
189  as_found=:
190  case $as_dir in #(
191	 /*)
192	   for as_base in sh bash ksh sh5; do
193	     # Try only shells that exist, to save several forks.
194	     as_shell=$as_dir/$as_base
195	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197  CONFIG_SHELL=$as_shell as_have_required=yes
198		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199  break 2
200fi
201fi
202	   done;;
203       esac
204  as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208  CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213      if test "x$CONFIG_SHELL" != x; then :
214  # We cannot yet assume a decent shell, so we have to provide a
215	# neutralization value for shells without unset; and this also
216	# works around shells that cannot unset nonexistent variables.
217	BASH_ENV=/dev/null
218	ENV=/dev/null
219	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220	export CONFIG_SHELL
221	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224    if test x$as_have_required = xno; then :
225  $as_echo "$0: This script requires a shell more modern than all"
226  $as_echo "$0: the shells that I found on your system."
227  if test x${ZSH_VERSION+set} = xset ; then
228    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230  else
231    $as_echo "$0: Please tell bug-autoconf@gnu.org and
232$0: libexif-devel@lists.sourceforge.net about your system,
233$0: including any error possibly output before this
234$0: message. Then install a modern shell, or manually run
235$0: the script under such a shell if you do have one."
236  fi
237  exit 1
238fi
239fi
240fi
241SHELL=${CONFIG_SHELL-/bin/sh}
242export SHELL
243# Unset more variables known to interfere with behavior of common tools.
244CLICOLOR_FORCE= GREP_OPTIONS=
245unset CLICOLOR_FORCE GREP_OPTIONS
246
247## --------------------- ##
248## M4sh Shell Functions. ##
249## --------------------- ##
250# as_fn_unset VAR
251# ---------------
252# Portably unset VAR.
253as_fn_unset ()
254{
255  { eval $1=; unset $1;}
256}
257as_unset=as_fn_unset
258
259# as_fn_set_status STATUS
260# -----------------------
261# Set $? to STATUS, without forking.
262as_fn_set_status ()
263{
264  return $1
265} # as_fn_set_status
266
267# as_fn_exit STATUS
268# -----------------
269# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270as_fn_exit ()
271{
272  set +e
273  as_fn_set_status $1
274  exit $1
275} # as_fn_exit
276
277# as_fn_mkdir_p
278# -------------
279# Create "$as_dir" as a directory, including parents if necessary.
280as_fn_mkdir_p ()
281{
282
283  case $as_dir in #(
284  -*) as_dir=./$as_dir;;
285  esac
286  test -d "$as_dir" || eval $as_mkdir_p || {
287    as_dirs=
288    while :; do
289      case $as_dir in #(
290      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291      *) as_qdir=$as_dir;;
292      esac
293      as_dirs="'$as_qdir' $as_dirs"
294      as_dir=`$as_dirname -- "$as_dir" ||
295$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296	 X"$as_dir" : 'X\(//\)[^/]' \| \
297	 X"$as_dir" : 'X\(//\)$' \| \
298	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299$as_echo X"$as_dir" |
300    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301	    s//\1/
302	    q
303	  }
304	  /^X\(\/\/\)[^/].*/{
305	    s//\1/
306	    q
307	  }
308	  /^X\(\/\/\)$/{
309	    s//\1/
310	    q
311	  }
312	  /^X\(\/\).*/{
313	    s//\1/
314	    q
315	  }
316	  s/.*/./; q'`
317      test -d "$as_dir" && break
318    done
319    test -z "$as_dirs" || eval "mkdir $as_dirs"
320  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321
322
323} # as_fn_mkdir_p
324# as_fn_append VAR VALUE
325# ----------------------
326# Append the text in VALUE to the end of the definition contained in VAR. Take
327# advantage of any shell optimizations that allow amortized linear growth over
328# repeated appends, instead of the typical quadratic growth present in naive
329# implementations.
330if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331  eval 'as_fn_append ()
332  {
333    eval $1+=\$2
334  }'
335else
336  as_fn_append ()
337  {
338    eval $1=\$$1\$2
339  }
340fi # as_fn_append
341
342# as_fn_arith ARG...
343# ------------------
344# Perform arithmetic evaluation on the ARGs, and store the result in the
345# global $as_val. Take advantage of shells that can avoid forks. The arguments
346# must be portable across $(()) and expr.
347if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
348  eval 'as_fn_arith ()
349  {
350    as_val=$(( $* ))
351  }'
352else
353  as_fn_arith ()
354  {
355    as_val=`expr "$@" || test $? -eq 1`
356  }
357fi # as_fn_arith
358
359
360# as_fn_error ERROR [LINENO LOG_FD]
361# ---------------------------------
362# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364# script with status $?, using 1 if that was 0.
365as_fn_error ()
366{
367  as_status=$?; test $as_status -eq 0 && as_status=1
368  if test "$3"; then
369    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371  fi
372  $as_echo "$as_me: error: $1" >&2
373  as_fn_exit $as_status
374} # as_fn_error
375
376if expr a : '\(a\)' >/dev/null 2>&1 &&
377   test "X`expr 00001 : '.*\(...\)'`" = X001; then
378  as_expr=expr
379else
380  as_expr=false
381fi
382
383if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384  as_basename=basename
385else
386  as_basename=false
387fi
388
389if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390  as_dirname=dirname
391else
392  as_dirname=false
393fi
394
395as_me=`$as_basename -- "$0" ||
396$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397	 X"$0" : 'X\(//\)$' \| \
398	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399$as_echo X/"$0" |
400    sed '/^.*\/\([^/][^/]*\)\/*$/{
401	    s//\1/
402	    q
403	  }
404	  /^X\/\(\/\/\)$/{
405	    s//\1/
406	    q
407	  }
408	  /^X\/\(\/\).*/{
409	    s//\1/
410	    q
411	  }
412	  s/.*/./; q'`
413
414# Avoid depending upon Character Ranges.
415as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418as_cr_digits='0123456789'
419as_cr_alnum=$as_cr_Letters$as_cr_digits
420
421
422  as_lineno_1=$LINENO as_lineno_1a=$LINENO
423  as_lineno_2=$LINENO as_lineno_2a=$LINENO
424  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
427  sed -n '
428    p
429    /[$]LINENO/=
430  ' <$as_myself |
431    sed '
432      s/[$]LINENO.*/&-/
433      t lineno
434      b
435      :lineno
436      N
437      :loop
438      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439      t loop
440      s/-\n.*//
441    ' >$as_me.lineno &&
442  chmod +x "$as_me.lineno" ||
443    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444
445  # Don't try to exec as it changes $[0], causing all sort of problems
446  # (the dirname of $[0] is not the place where we might find the
447  # original and so on.  Autoconf is especially sensitive to this).
448  . "./$as_me.lineno"
449  # Exit status is that of the last command.
450  exit
451}
452
453ECHO_C= ECHO_N= ECHO_T=
454case `echo -n x` in #(((((
455-n*)
456  case `echo 'xy\c'` in
457  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
458  xy)  ECHO_C='\c';;
459  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
460       ECHO_T='	';;
461  esac;;
462*)
463  ECHO_N='-n';;
464esac
465
466rm -f conf$$ conf$$.exe conf$$.file
467if test -d conf$$.dir; then
468  rm -f conf$$.dir/conf$$.file
469else
470  rm -f conf$$.dir
471  mkdir conf$$.dir 2>/dev/null
472fi
473if (echo >conf$$.file) 2>/dev/null; then
474  if ln -s conf$$.file conf$$ 2>/dev/null; then
475    as_ln_s='ln -s'
476    # ... but there are two gotchas:
477    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479    # In both cases, we have to default to `cp -p'.
480    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481      as_ln_s='cp -p'
482  elif ln conf$$.file conf$$ 2>/dev/null; then
483    as_ln_s=ln
484  else
485    as_ln_s='cp -p'
486  fi
487else
488  as_ln_s='cp -p'
489fi
490rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491rmdir conf$$.dir 2>/dev/null
492
493if mkdir -p . 2>/dev/null; then
494  as_mkdir_p='mkdir -p "$as_dir"'
495else
496  test -d ./-p && rmdir ./-p
497  as_mkdir_p=false
498fi
499
500if test -x / >/dev/null 2>&1; then
501  as_test_x='test -x'
502else
503  if ls -dL / >/dev/null 2>&1; then
504    as_ls_L_option=L
505  else
506    as_ls_L_option=
507  fi
508  as_test_x='
509    eval sh -c '\''
510      if test -d "$1"; then
511	test -d "$1/.";
512      else
513	case $1 in #(
514	-*)set "./$1";;
515	esac;
516	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517	???[sx]*):;;*)false;;esac;fi
518    '\'' sh
519  '
520fi
521as_executable_p=$as_test_x
522
523# Sed expression to map a string onto a valid CPP name.
524as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525
526# Sed expression to map a string onto a valid variable name.
527as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528
529
530
531# Check that we are running under the correct shell.
532SHELL=${CONFIG_SHELL-/bin/sh}
533
534case X$lt_ECHO in
535X*--fallback-echo)
536  # Remove one level of quotation (which was required for Make).
537  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
538  ;;
539esac
540
541ECHO=${lt_ECHO-echo}
542if test "X$1" = X--no-reexec; then
543  # Discard the --no-reexec flag, and continue.
544  shift
545elif test "X$1" = X--fallback-echo; then
546  # Avoid inline document here, it may be left over
547  :
548elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
549  # Yippee, $ECHO works!
550  :
551else
552  # Restart under the correct shell.
553  exec $SHELL "$0" --no-reexec ${1+"$@"}
554fi
555
556if test "X$1" = X--fallback-echo; then
557  # used as fallback echo
558  shift
559  cat <<_LT_EOF
560$*
561_LT_EOF
562  exit 0
563fi
564
565# The HP-UX ksh and POSIX shell print the target directory to stdout
566# if CDPATH is set.
567(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
568
569if test -z "$lt_ECHO"; then
570  if test "X${echo_test_string+set}" != Xset; then
571    # find a string as large as possible, as long as the shell can cope with it
572    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
573      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
574      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
575	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
576      then
577        break
578      fi
579    done
580  fi
581
582  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
583     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
584     test "X$echo_testing_string" = "X$echo_test_string"; then
585    :
586  else
587    # The Solaris, AIX, and Digital Unix default echo programs unquote
588    # backslashes.  This makes it impossible to quote backslashes using
589    #   echo "$something" | sed 's/\\/\\\\/g'
590    #
591    # So, first we look for a working echo in the user's PATH.
592
593    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
594    for dir in $PATH /usr/ucb; do
595      IFS="$lt_save_ifs"
596      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
597         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
598         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
599         test "X$echo_testing_string" = "X$echo_test_string"; then
600        ECHO="$dir/echo"
601        break
602      fi
603    done
604    IFS="$lt_save_ifs"
605
606    if test "X$ECHO" = Xecho; then
607      # We didn't find a better echo, so look for alternatives.
608      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
609         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
610         test "X$echo_testing_string" = "X$echo_test_string"; then
611        # This shell has a builtin print -r that does the trick.
612        ECHO='print -r'
613      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
614	   test "X$CONFIG_SHELL" != X/bin/ksh; then
615        # If we have ksh, try running configure again with it.
616        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
617        export ORIGINAL_CONFIG_SHELL
618        CONFIG_SHELL=/bin/ksh
619        export CONFIG_SHELL
620        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
621      else
622        # Try using printf.
623        ECHO='printf %s\n'
624        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
625	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
626	   test "X$echo_testing_string" = "X$echo_test_string"; then
627	  # Cool, printf works
628	  :
629        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
630	     test "X$echo_testing_string" = 'X\t' &&
631	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
632	     test "X$echo_testing_string" = "X$echo_test_string"; then
633	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
634	  export CONFIG_SHELL
635	  SHELL="$CONFIG_SHELL"
636	  export SHELL
637	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
638        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639	     test "X$echo_testing_string" = 'X\t' &&
640	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641	     test "X$echo_testing_string" = "X$echo_test_string"; then
642	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
643        else
644	  # maybe with a smaller string...
645	  prev=:
646
647	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
648	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
649	    then
650	      break
651	    fi
652	    prev="$cmd"
653	  done
654
655	  if test "$prev" != 'sed 50q "$0"'; then
656	    echo_test_string=`eval $prev`
657	    export echo_test_string
658	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
659	  else
660	    # Oops.  We lost completely, so just stick with echo.
661	    ECHO=echo
662	  fi
663        fi
664      fi
665    fi
666  fi
667fi
668
669# Copy echo and quote the copy suitably for passing to libtool from
670# the Makefile, instead of quoting the original, which is used later.
671lt_ECHO=$ECHO
672if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
673   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
674fi
675
676
677
678
679exec 7<&0 </dev/null 6>&1
680
681# Name of the host.
682# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683# so uname gets run too.
684ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
686#
687# Initializations.
688#
689ac_default_prefix=/usr/local
690ac_clean_files=
691ac_config_libobj_dir=.
692LIBOBJS=
693cross_compiling=no
694subdirs=
695MFLAGS=
696MAKEFLAGS=
697
698# Identity of this package.
699PACKAGE_NAME='EXIF library'
700PACKAGE_TARNAME='libexif'
701PACKAGE_VERSION='0.6.19'
702PACKAGE_STRING='EXIF library 0.6.19'
703PACKAGE_BUGREPORT='libexif-devel@lists.sourceforge.net'
704PACKAGE_URL=''
705
706ac_unique_file="libexif/exif-data.h"
707# Factoring default headers for most tests.
708ac_includes_default="\
709#include <stdio.h>
710#ifdef HAVE_SYS_TYPES_H
711# include <sys/types.h>
712#endif
713#ifdef HAVE_SYS_STAT_H
714# include <sys/stat.h>
715#endif
716#ifdef STDC_HEADERS
717# include <stdlib.h>
718# include <stddef.h>
719#else
720# ifdef HAVE_STDLIB_H
721#  include <stdlib.h>
722# endif
723#endif
724#ifdef HAVE_STRING_H
725# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
726#  include <memory.h>
727# endif
728# include <string.h>
729#endif
730#ifdef HAVE_STRINGS_H
731# include <strings.h>
732#endif
733#ifdef HAVE_INTTYPES_H
734# include <inttypes.h>
735#endif
736#ifdef HAVE_STDINT_H
737# include <stdint.h>
738#endif
739#ifdef HAVE_UNISTD_H
740# include <unistd.h>
741#endif"
742
743ac_subst_vars='am__EXEEXT_FALSE
744am__EXEEXT_TRUE
745LTLIBOBJS
746LIBOBJS
747AM_LDFLAGS
748AM_CPPFLAGS
749POSUB
750LTLIBINTL
751LIBINTL
752INTLLIBS
753LTLIBICONV
754LIBICONV
755GETTEXT_PACKAGE
756MSGMERGE
757XGETTEXT
758GMSGFMT
759MSGFMT
760USE_NLS
761MKINSTALLDIRS
762ENABLE_INTERNAL_DOCS_FALSE
763ENABLE_INTERNAL_DOCS_TRUE
764HTML_APIDOC_INTERNALS_DIR
765DOXYGEN_OUTPUT_DIR
766HTML_APIDOC_DIR
767HAVE_DOT
768HAVE_DOT_FALSE
769HAVE_DOT_TRUE
770HAVE_DOXYGEN_FALSE
771HAVE_DOXYGEN_TRUE
772DOXYGEN
773DOT
774BUILD_DOCS_FALSE
775BUILD_DOCS_TRUE
776SHIP_BINARIES_FALSE
777SHIP_BINARIES_TRUE
778CPP
779OTOOL64
780OTOOL
781LIPO
782NMEDIT
783DSYMUTIL
784lt_ECHO
785RANLIB
786AR
787OBJDUMP
788LN_S
789NM
790ac_ct_DUMPBIN
791DUMPBIN
792LD
793FGREP
794EGREP
795GREP
796SED
797host_os
798host_vendor
799host_cpu
800host
801build_os
802build_vendor
803build_cpu
804build
805LIBTOOL
806am__fastdepCC_FALSE
807am__fastdepCC_TRUE
808CCDEPMODE
809AMDEPBACKSLASH
810AMDEP_FALSE
811AMDEP_TRUE
812am__quote
813am__include
814DEPDIR
815OBJEXT
816EXEEXT
817ac_ct_CC
818CPPFLAGS
819LDFLAGS
820CFLAGS
821CC
822LIBEXIF_VERSION_INFO
823LIBEXIF_CURRENT_MIN
824LIBEXIF_CURRENT
825LIBEXIF_REVISION
826LIBEXIF_AGE
827MAINT
828MAINTAINER_MODE_FALSE
829MAINTAINER_MODE_TRUE
830am__untar
831am__tar
832AMTAR
833am__leading_dot
834SET_MAKE
835AWK
836mkdir_p
837MKDIR_P
838INSTALL_STRIP_PROGRAM
839STRIP
840install_sh
841MAKEINFO
842AUTOHEADER
843AUTOMAKE
844AUTOCONF
845ACLOCAL
846VERSION
847PACKAGE
848CYGPATH_W
849am__isrc
850INSTALL_DATA
851INSTALL_SCRIPT
852INSTALL_PROGRAM
853target_alias
854host_alias
855build_alias
856LIBS
857ECHO_T
858ECHO_N
859ECHO_C
860DEFS
861mandir
862localedir
863libdir
864psdir
865pdfdir
866dvidir
867htmldir
868infodir
869docdir
870oldincludedir
871includedir
872localstatedir
873sharedstatedir
874sysconfdir
875datadir
876datarootdir
877libexecdir
878sbindir
879bindir
880program_transform_name
881prefix
882exec_prefix
883PACKAGE_URL
884PACKAGE_BUGREPORT
885PACKAGE_STRING
886PACKAGE_VERSION
887PACKAGE_TARNAME
888PACKAGE_NAME
889PATH_SEPARATOR
890SHELL'
891ac_subst_files=''
892ac_user_opts='
893enable_option_checking
894enable_maintainer_mode
895enable_dependency_tracking
896enable_shared
897enable_static
898with_pic
899enable_fast_install
900with_gnu_ld
901enable_libtool_lock
902enable_ship_binaries
903enable_docs
904with_doc_dir
905enable_internal_docs
906enable_nls
907enable_rpath
908with_libiconv_prefix
909with_libintl_prefix
910'
911      ac_precious_vars='build_alias
912host_alias
913target_alias
914CC
915CFLAGS
916LDFLAGS
917LIBS
918CPPFLAGS
919CPP'
920
921
922# Initialize some variables set by options.
923ac_init_help=
924ac_init_version=false
925ac_unrecognized_opts=
926ac_unrecognized_sep=
927# The variables have the same names as the options, with
928# dashes changed to underlines.
929cache_file=/dev/null
930exec_prefix=NONE
931no_create=
932no_recursion=
933prefix=NONE
934program_prefix=NONE
935program_suffix=NONE
936program_transform_name=s,x,x,
937silent=
938site=
939srcdir=
940verbose=
941x_includes=NONE
942x_libraries=NONE
943
944# Installation directory options.
945# These are left unexpanded so users can "make install exec_prefix=/foo"
946# and all the variables that are supposed to be based on exec_prefix
947# by default will actually change.
948# Use braces instead of parens because sh, perl, etc. also accept them.
949# (The list follows the same order as the GNU Coding Standards.)
950bindir='${exec_prefix}/bin'
951sbindir='${exec_prefix}/sbin'
952libexecdir='${exec_prefix}/libexec'
953datarootdir='${prefix}/share'
954datadir='${datarootdir}'
955sysconfdir='${prefix}/etc'
956sharedstatedir='${prefix}/com'
957localstatedir='${prefix}/var'
958includedir='${prefix}/include'
959oldincludedir='/usr/include'
960docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
961infodir='${datarootdir}/info'
962htmldir='${docdir}'
963dvidir='${docdir}'
964pdfdir='${docdir}'
965psdir='${docdir}'
966libdir='${exec_prefix}/lib'
967localedir='${datarootdir}/locale'
968mandir='${datarootdir}/man'
969
970ac_prev=
971ac_dashdash=
972for ac_option
973do
974  # If the previous option needs an argument, assign it.
975  if test -n "$ac_prev"; then
976    eval $ac_prev=\$ac_option
977    ac_prev=
978    continue
979  fi
980
981  case $ac_option in
982  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
983  *)	ac_optarg=yes ;;
984  esac
985
986  # Accept the important Cygnus configure options, so we can diagnose typos.
987
988  case $ac_dashdash$ac_option in
989  --)
990    ac_dashdash=yes ;;
991
992  -bindir | --bindir | --bindi | --bind | --bin | --bi)
993    ac_prev=bindir ;;
994  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
995    bindir=$ac_optarg ;;
996
997  -build | --build | --buil | --bui | --bu)
998    ac_prev=build_alias ;;
999  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1000    build_alias=$ac_optarg ;;
1001
1002  -cache-file | --cache-file | --cache-fil | --cache-fi \
1003  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1004    ac_prev=cache_file ;;
1005  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1006  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1007    cache_file=$ac_optarg ;;
1008
1009  --config-cache | -C)
1010    cache_file=config.cache ;;
1011
1012  -datadir | --datadir | --datadi | --datad)
1013    ac_prev=datadir ;;
1014  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1015    datadir=$ac_optarg ;;
1016
1017  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1018  | --dataroo | --dataro | --datar)
1019    ac_prev=datarootdir ;;
1020  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1021  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1022    datarootdir=$ac_optarg ;;
1023
1024  -disable-* | --disable-*)
1025    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1026    # Reject names that are not valid shell variable names.
1027    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1028      as_fn_error "invalid feature name: $ac_useropt"
1029    ac_useropt_orig=$ac_useropt
1030    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031    case $ac_user_opts in
1032      *"
1033"enable_$ac_useropt"
1034"*) ;;
1035      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1036	 ac_unrecognized_sep=', ';;
1037    esac
1038    eval enable_$ac_useropt=no ;;
1039
1040  -docdir | --docdir | --docdi | --doc | --do)
1041    ac_prev=docdir ;;
1042  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1043    docdir=$ac_optarg ;;
1044
1045  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1046    ac_prev=dvidir ;;
1047  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1048    dvidir=$ac_optarg ;;
1049
1050  -enable-* | --enable-*)
1051    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1052    # Reject names that are not valid shell variable names.
1053    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054      as_fn_error "invalid feature name: $ac_useropt"
1055    ac_useropt_orig=$ac_useropt
1056    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057    case $ac_user_opts in
1058      *"
1059"enable_$ac_useropt"
1060"*) ;;
1061      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1062	 ac_unrecognized_sep=', ';;
1063    esac
1064    eval enable_$ac_useropt=\$ac_optarg ;;
1065
1066  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1067  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1068  | --exec | --exe | --ex)
1069    ac_prev=exec_prefix ;;
1070  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1071  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1072  | --exec=* | --exe=* | --ex=*)
1073    exec_prefix=$ac_optarg ;;
1074
1075  -gas | --gas | --ga | --g)
1076    # Obsolete; use --with-gas.
1077    with_gas=yes ;;
1078
1079  -help | --help | --hel | --he | -h)
1080    ac_init_help=long ;;
1081  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1082    ac_init_help=recursive ;;
1083  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1084    ac_init_help=short ;;
1085
1086  -host | --host | --hos | --ho)
1087    ac_prev=host_alias ;;
1088  -host=* | --host=* | --hos=* | --ho=*)
1089    host_alias=$ac_optarg ;;
1090
1091  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1092    ac_prev=htmldir ;;
1093  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1094  | --ht=*)
1095    htmldir=$ac_optarg ;;
1096
1097  -includedir | --includedir | --includedi | --included | --include \
1098  | --includ | --inclu | --incl | --inc)
1099    ac_prev=includedir ;;
1100  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1101  | --includ=* | --inclu=* | --incl=* | --inc=*)
1102    includedir=$ac_optarg ;;
1103
1104  -infodir | --infodir | --infodi | --infod | --info | --inf)
1105    ac_prev=infodir ;;
1106  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1107    infodir=$ac_optarg ;;
1108
1109  -libdir | --libdir | --libdi | --libd)
1110    ac_prev=libdir ;;
1111  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1112    libdir=$ac_optarg ;;
1113
1114  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1115  | --libexe | --libex | --libe)
1116    ac_prev=libexecdir ;;
1117  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1118  | --libexe=* | --libex=* | --libe=*)
1119    libexecdir=$ac_optarg ;;
1120
1121  -localedir | --localedir | --localedi | --localed | --locale)
1122    ac_prev=localedir ;;
1123  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1124    localedir=$ac_optarg ;;
1125
1126  -localstatedir | --localstatedir | --localstatedi | --localstated \
1127  | --localstate | --localstat | --localsta | --localst | --locals)
1128    ac_prev=localstatedir ;;
1129  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1130  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1131    localstatedir=$ac_optarg ;;
1132
1133  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1134    ac_prev=mandir ;;
1135  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1136    mandir=$ac_optarg ;;
1137
1138  -nfp | --nfp | --nf)
1139    # Obsolete; use --without-fp.
1140    with_fp=no ;;
1141
1142  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1143  | --no-cr | --no-c | -n)
1144    no_create=yes ;;
1145
1146  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1147  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1148    no_recursion=yes ;;
1149
1150  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1151  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1152  | --oldin | --oldi | --old | --ol | --o)
1153    ac_prev=oldincludedir ;;
1154  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1155  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1156  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1157    oldincludedir=$ac_optarg ;;
1158
1159  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1160    ac_prev=prefix ;;
1161  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1162    prefix=$ac_optarg ;;
1163
1164  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1165  | --program-pre | --program-pr | --program-p)
1166    ac_prev=program_prefix ;;
1167  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1168  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1169    program_prefix=$ac_optarg ;;
1170
1171  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1172  | --program-suf | --program-su | --program-s)
1173    ac_prev=program_suffix ;;
1174  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1175  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1176    program_suffix=$ac_optarg ;;
1177
1178  -program-transform-name | --program-transform-name \
1179  | --program-transform-nam | --program-transform-na \
1180  | --program-transform-n | --program-transform- \
1181  | --program-transform | --program-transfor \
1182  | --program-transfo | --program-transf \
1183  | --program-trans | --program-tran \
1184  | --progr-tra | --program-tr | --program-t)
1185    ac_prev=program_transform_name ;;
1186  -program-transform-name=* | --program-transform-name=* \
1187  | --program-transform-nam=* | --program-transform-na=* \
1188  | --program-transform-n=* | --program-transform-=* \
1189  | --program-transform=* | --program-transfor=* \
1190  | --program-transfo=* | --program-transf=* \
1191  | --program-trans=* | --program-tran=* \
1192  | --progr-tra=* | --program-tr=* | --program-t=*)
1193    program_transform_name=$ac_optarg ;;
1194
1195  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1196    ac_prev=pdfdir ;;
1197  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1198    pdfdir=$ac_optarg ;;
1199
1200  -psdir | --psdir | --psdi | --psd | --ps)
1201    ac_prev=psdir ;;
1202  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1203    psdir=$ac_optarg ;;
1204
1205  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1206  | -silent | --silent | --silen | --sile | --sil)
1207    silent=yes ;;
1208
1209  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1210    ac_prev=sbindir ;;
1211  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1212  | --sbi=* | --sb=*)
1213    sbindir=$ac_optarg ;;
1214
1215  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1216  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1217  | --sharedst | --shareds | --shared | --share | --shar \
1218  | --sha | --sh)
1219    ac_prev=sharedstatedir ;;
1220  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1221  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1222  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1223  | --sha=* | --sh=*)
1224    sharedstatedir=$ac_optarg ;;
1225
1226  -site | --site | --sit)
1227    ac_prev=site ;;
1228  -site=* | --site=* | --sit=*)
1229    site=$ac_optarg ;;
1230
1231  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1232    ac_prev=srcdir ;;
1233  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1234    srcdir=$ac_optarg ;;
1235
1236  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1237  | --syscon | --sysco | --sysc | --sys | --sy)
1238    ac_prev=sysconfdir ;;
1239  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1240  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1241    sysconfdir=$ac_optarg ;;
1242
1243  -target | --target | --targe | --targ | --tar | --ta | --t)
1244    ac_prev=target_alias ;;
1245  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1246    target_alias=$ac_optarg ;;
1247
1248  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1249    verbose=yes ;;
1250
1251  -version | --version | --versio | --versi | --vers | -V)
1252    ac_init_version=: ;;
1253
1254  -with-* | --with-*)
1255    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1256    # Reject names that are not valid shell variable names.
1257    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1258      as_fn_error "invalid package name: $ac_useropt"
1259    ac_useropt_orig=$ac_useropt
1260    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261    case $ac_user_opts in
1262      *"
1263"with_$ac_useropt"
1264"*) ;;
1265      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1266	 ac_unrecognized_sep=', ';;
1267    esac
1268    eval with_$ac_useropt=\$ac_optarg ;;
1269
1270  -without-* | --without-*)
1271    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1272    # Reject names that are not valid shell variable names.
1273    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1274      as_fn_error "invalid package name: $ac_useropt"
1275    ac_useropt_orig=$ac_useropt
1276    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1277    case $ac_user_opts in
1278      *"
1279"with_$ac_useropt"
1280"*) ;;
1281      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1282	 ac_unrecognized_sep=', ';;
1283    esac
1284    eval with_$ac_useropt=no ;;
1285
1286  --x)
1287    # Obsolete; use --with-x.
1288    with_x=yes ;;
1289
1290  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1291  | --x-incl | --x-inc | --x-in | --x-i)
1292    ac_prev=x_includes ;;
1293  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1294  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1295    x_includes=$ac_optarg ;;
1296
1297  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1298  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1299    ac_prev=x_libraries ;;
1300  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1301  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1302    x_libraries=$ac_optarg ;;
1303
1304  -*) as_fn_error "unrecognized option: \`$ac_option'
1305Try \`$0 --help' for more information."
1306    ;;
1307
1308  *=*)
1309    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1310    # Reject names that are not valid shell variable names.
1311    case $ac_envvar in #(
1312      '' | [0-9]* | *[!_$as_cr_alnum]* )
1313      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1314    esac
1315    eval $ac_envvar=\$ac_optarg
1316    export $ac_envvar ;;
1317
1318  *)
1319    # FIXME: should be removed in autoconf 3.0.
1320    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1321    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1322      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1323    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1324    ;;
1325
1326  esac
1327done
1328
1329if test -n "$ac_prev"; then
1330  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1331  as_fn_error "missing argument to $ac_option"
1332fi
1333
1334if test -n "$ac_unrecognized_opts"; then
1335  case $enable_option_checking in
1336    no) ;;
1337    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1338    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1339  esac
1340fi
1341
1342# Check all directory arguments for consistency.
1343for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1344		datadir sysconfdir sharedstatedir localstatedir includedir \
1345		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1346		libdir localedir mandir
1347do
1348  eval ac_val=\$$ac_var
1349  # Remove trailing slashes.
1350  case $ac_val in
1351    */ )
1352      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1353      eval $ac_var=\$ac_val;;
1354  esac
1355  # Be sure to have absolute directory names.
1356  case $ac_val in
1357    [\\/$]* | ?:[\\/]* )  continue;;
1358    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1359  esac
1360  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1361done
1362
1363# There might be people who depend on the old broken behavior: `$host'
1364# used to hold the argument of --host etc.
1365# FIXME: To remove some day.
1366build=$build_alias
1367host=$host_alias
1368target=$target_alias
1369
1370# FIXME: To remove some day.
1371if test "x$host_alias" != x; then
1372  if test "x$build_alias" = x; then
1373    cross_compiling=maybe
1374    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1375    If a cross compiler is detected then cross compile mode will be used." >&2
1376  elif test "x$build_alias" != "x$host_alias"; then
1377    cross_compiling=yes
1378  fi
1379fi
1380
1381ac_tool_prefix=
1382test -n "$host_alias" && ac_tool_prefix=$host_alias-
1383
1384test "$silent" = yes && exec 6>/dev/null
1385
1386
1387ac_pwd=`pwd` && test -n "$ac_pwd" &&
1388ac_ls_di=`ls -di .` &&
1389ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1390  as_fn_error "working directory cannot be determined"
1391test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1392  as_fn_error "pwd does not report name of working directory"
1393
1394
1395# Find the source files, if location was not specified.
1396if test -z "$srcdir"; then
1397  ac_srcdir_defaulted=yes
1398  # Try the directory containing this script, then the parent directory.
1399  ac_confdir=`$as_dirname -- "$as_myself" ||
1400$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1401	 X"$as_myself" : 'X\(//\)[^/]' \| \
1402	 X"$as_myself" : 'X\(//\)$' \| \
1403	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1404$as_echo X"$as_myself" |
1405    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1406	    s//\1/
1407	    q
1408	  }
1409	  /^X\(\/\/\)[^/].*/{
1410	    s//\1/
1411	    q
1412	  }
1413	  /^X\(\/\/\)$/{
1414	    s//\1/
1415	    q
1416	  }
1417	  /^X\(\/\).*/{
1418	    s//\1/
1419	    q
1420	  }
1421	  s/.*/./; q'`
1422  srcdir=$ac_confdir
1423  if test ! -r "$srcdir/$ac_unique_file"; then
1424    srcdir=..
1425  fi
1426else
1427  ac_srcdir_defaulted=no
1428fi
1429if test ! -r "$srcdir/$ac_unique_file"; then
1430  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1431  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1432fi
1433ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1434ac_abs_confdir=`(
1435	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1436	pwd)`
1437# When building in place, set srcdir=.
1438if test "$ac_abs_confdir" = "$ac_pwd"; then
1439  srcdir=.
1440fi
1441# Remove unnecessary trailing slashes from srcdir.
1442# Double slashes in file names in object file debugging info
1443# mess up M-x gdb in Emacs.
1444case $srcdir in
1445*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1446esac
1447for ac_var in $ac_precious_vars; do
1448  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1449  eval ac_env_${ac_var}_value=\$${ac_var}
1450  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1451  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1452done
1453
1454#
1455# Report the --help message.
1456#
1457if test "$ac_init_help" = "long"; then
1458  # Omit some internal or obsolete options to make the list less imposing.
1459  # This message is too long to be a string in the A/UX 3.1 sh.
1460  cat <<_ACEOF
1461\`configure' configures EXIF library 0.6.19 to adapt to many kinds of systems.
1462
1463Usage: $0 [OPTION]... [VAR=VALUE]...
1464
1465To assign environment variables (e.g., CC, CFLAGS...), specify them as
1466VAR=VALUE.  See below for descriptions of some of the useful variables.
1467
1468Defaults for the options are specified in brackets.
1469
1470Configuration:
1471  -h, --help              display this help and exit
1472      --help=short        display options specific to this package
1473      --help=recursive    display the short help of all the included packages
1474  -V, --version           display version information and exit
1475  -q, --quiet, --silent   do not print \`checking...' messages
1476      --cache-file=FILE   cache test results in FILE [disabled]
1477  -C, --config-cache      alias for \`--cache-file=config.cache'
1478  -n, --no-create         do not create output files
1479      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1480
1481Installation directories:
1482  --prefix=PREFIX         install architecture-independent files in PREFIX
1483                          [$ac_default_prefix]
1484  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1485                          [PREFIX]
1486
1487By default, \`make install' will install all the files in
1488\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1489an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1490for instance \`--prefix=\$HOME'.
1491
1492For better control, use the options below.
1493
1494Fine tuning of the installation directories:
1495  --bindir=DIR            user executables [EPREFIX/bin]
1496  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1497  --libexecdir=DIR        program executables [EPREFIX/libexec]
1498  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1499  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1500  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1501  --libdir=DIR            object code libraries [EPREFIX/lib]
1502  --includedir=DIR        C header files [PREFIX/include]
1503  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1504  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1505  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1506  --infodir=DIR           info documentation [DATAROOTDIR/info]
1507  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1508  --mandir=DIR            man documentation [DATAROOTDIR/man]
1509  --docdir=DIR            documentation root [DATAROOTDIR/doc/libexif]
1510  --htmldir=DIR           html documentation [DOCDIR]
1511  --dvidir=DIR            dvi documentation [DOCDIR]
1512  --pdfdir=DIR            pdf documentation [DOCDIR]
1513  --psdir=DIR             ps documentation [DOCDIR]
1514_ACEOF
1515
1516  cat <<\_ACEOF
1517
1518Program names:
1519  --program-prefix=PREFIX            prepend PREFIX to installed program names
1520  --program-suffix=SUFFIX            append SUFFIX to installed program names
1521  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1522
1523System types:
1524  --build=BUILD     configure for building on BUILD [guessed]
1525  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1526_ACEOF
1527fi
1528
1529if test -n "$ac_init_help"; then
1530  case $ac_init_help in
1531     short | recursive ) echo "Configuration of EXIF library 0.6.19:";;
1532   esac
1533  cat <<\_ACEOF
1534
1535Optional Features:
1536  --disable-option-checking  ignore unrecognized --enable/--with options
1537  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1538  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1539  --enable-maintainer-mode  enable make rules and dependencies not useful
1540			  (and sometimes confusing) to the casual installer
1541  --disable-dependency-tracking  speeds up one-time build
1542  --enable-dependency-tracking   do not reject slow dependency extractors
1543  --enable-shared[=PKGS]  build shared libraries [default=yes]
1544  --enable-static[=PKGS]  build static libraries [default=yes]
1545  --enable-fast-install[=PKGS]
1546                          optimize for fast installation [default=yes]
1547  --disable-libtool-lock  avoid locking (might break parallel builds)
1548  --enable-ship-binaries  Whether to ship binaries in the tarball [default=no]
1549  --disable-docs          whether to create any documentation
1550  --enable-internal-docs  Build internal code docs if doxygen available
1551  --disable-nls           do not use Native Language Support
1552  --disable-rpath         do not hardcode runtime library paths
1553
1554Optional Packages:
1555  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1556  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1557  --with-pic              try to use only PIC/non-PIC objects [default=use
1558                          both]
1559  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1560  --with-doc-dir=PATH     Where to install docs [default=autodetect]
1561  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1562  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1563  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1564  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1565  --without-libintl-prefix     don't search for libintl in includedir and libdir
1566
1567Some influential environment variables:
1568  CC          C compiler command
1569  CFLAGS      C compiler flags
1570  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1571              nonstandard directory <lib dir>
1572  LIBS        libraries to pass to the linker, e.g. -l<library>
1573  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1574              you have headers in a nonstandard directory <include dir>
1575  CPP         C preprocessor
1576
1577Use these variables to override the choices made by `configure' or to help
1578it to find libraries and programs with nonstandard names/locations.
1579
1580Report bugs to <libexif-devel@lists.sourceforge.net>.
1581_ACEOF
1582ac_status=$?
1583fi
1584
1585if test "$ac_init_help" = "recursive"; then
1586  # If there are subdirs, report their specific --help.
1587  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1588    test -d "$ac_dir" ||
1589      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1590      continue
1591    ac_builddir=.
1592
1593case "$ac_dir" in
1594.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1595*)
1596  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1597  # A ".." for each directory in $ac_dir_suffix.
1598  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1599  case $ac_top_builddir_sub in
1600  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1601  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1602  esac ;;
1603esac
1604ac_abs_top_builddir=$ac_pwd
1605ac_abs_builddir=$ac_pwd$ac_dir_suffix
1606# for backward compatibility:
1607ac_top_builddir=$ac_top_build_prefix
1608
1609case $srcdir in
1610  .)  # We are building in place.
1611    ac_srcdir=.
1612    ac_top_srcdir=$ac_top_builddir_sub
1613    ac_abs_top_srcdir=$ac_pwd ;;
1614  [\\/]* | ?:[\\/]* )  # Absolute name.
1615    ac_srcdir=$srcdir$ac_dir_suffix;
1616    ac_top_srcdir=$srcdir
1617    ac_abs_top_srcdir=$srcdir ;;
1618  *) # Relative name.
1619    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1620    ac_top_srcdir=$ac_top_build_prefix$srcdir
1621    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1622esac
1623ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1624
1625    cd "$ac_dir" || { ac_status=$?; continue; }
1626    # Check for guested configure.
1627    if test -f "$ac_srcdir/configure.gnu"; then
1628      echo &&
1629      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1630    elif test -f "$ac_srcdir/configure"; then
1631      echo &&
1632      $SHELL "$ac_srcdir/configure" --help=recursive
1633    else
1634      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1635    fi || ac_status=$?
1636    cd "$ac_pwd" || { ac_status=$?; break; }
1637  done
1638fi
1639
1640test -n "$ac_init_help" && exit $ac_status
1641if $ac_init_version; then
1642  cat <<\_ACEOF
1643EXIF library configure 0.6.19
1644generated by GNU Autoconf 2.64
1645
1646Copyright (C) 2009 Free Software Foundation, Inc.
1647This configure script is free software; the Free Software Foundation
1648gives unlimited permission to copy, distribute and modify it.
1649_ACEOF
1650  exit
1651fi
1652
1653## ------------------------ ##
1654## Autoconf initialization. ##
1655## ------------------------ ##
1656
1657# ac_fn_c_try_compile LINENO
1658# --------------------------
1659# Try to compile conftest.$ac_ext, and return whether this succeeded.
1660ac_fn_c_try_compile ()
1661{
1662  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663  rm -f conftest.$ac_objext
1664  if { { ac_try="$ac_compile"
1665case "(($ac_try" in
1666  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667  *) ac_try_echo=$ac_try;;
1668esac
1669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670$as_echo "$ac_try_echo"; } >&5
1671  (eval "$ac_compile") 2>conftest.err
1672  ac_status=$?
1673  if test -s conftest.err; then
1674    grep -v '^ *+' conftest.err >conftest.er1
1675    cat conftest.er1 >&5
1676    mv -f conftest.er1 conftest.err
1677  fi
1678  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679  test $ac_status = 0; } && {
1680	 test -z "$ac_c_werror_flag" ||
1681	 test ! -s conftest.err
1682       } && test -s conftest.$ac_objext; then :
1683  ac_retval=0
1684else
1685  $as_echo "$as_me: failed program was:" >&5
1686sed 's/^/| /' conftest.$ac_ext >&5
1687
1688	ac_retval=1
1689fi
1690  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1691  return $ac_retval
1692
1693} # ac_fn_c_try_compile
1694
1695# ac_fn_c_try_link LINENO
1696# -----------------------
1697# Try to link conftest.$ac_ext, and return whether this succeeded.
1698ac_fn_c_try_link ()
1699{
1700  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701  rm -f conftest.$ac_objext conftest$ac_exeext
1702  if { { ac_try="$ac_link"
1703case "(($ac_try" in
1704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705  *) ac_try_echo=$ac_try;;
1706esac
1707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708$as_echo "$ac_try_echo"; } >&5
1709  (eval "$ac_link") 2>conftest.err
1710  ac_status=$?
1711  if test -s conftest.err; then
1712    grep -v '^ *+' conftest.err >conftest.er1
1713    cat conftest.er1 >&5
1714    mv -f conftest.er1 conftest.err
1715  fi
1716  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717  test $ac_status = 0; } && {
1718	 test -z "$ac_c_werror_flag" ||
1719	 test ! -s conftest.err
1720       } && test -s conftest$ac_exeext && {
1721	 test "$cross_compiling" = yes ||
1722	 $as_test_x conftest$ac_exeext
1723       }; then :
1724  ac_retval=0
1725else
1726  $as_echo "$as_me: failed program was:" >&5
1727sed 's/^/| /' conftest.$ac_ext >&5
1728
1729	ac_retval=1
1730fi
1731  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1732  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1733  # interfere with the next link command; also delete a directory that is
1734  # left behind by Apple's compiler.  We do this before executing the actions.
1735  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1736  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1737  return $ac_retval
1738
1739} # ac_fn_c_try_link
1740
1741# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1742# -------------------------------------------------------
1743# Tests whether HEADER exists and can be compiled using the include files in
1744# INCLUDES, setting the cache variable VAR accordingly.
1745ac_fn_c_check_header_compile ()
1746{
1747  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1749$as_echo_n "checking for $2... " >&6; }
1750if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1751  $as_echo_n "(cached) " >&6
1752else
1753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754/* end confdefs.h.  */
1755$4
1756#include <$2>
1757_ACEOF
1758if ac_fn_c_try_compile "$LINENO"; then :
1759  eval "$3=yes"
1760else
1761  eval "$3=no"
1762fi
1763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1764fi
1765eval ac_res=\$$3
1766	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1767$as_echo "$ac_res" >&6; }
1768  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1769
1770} # ac_fn_c_check_header_compile
1771
1772# ac_fn_c_try_cpp LINENO
1773# ----------------------
1774# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1775ac_fn_c_try_cpp ()
1776{
1777  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778  if { { ac_try="$ac_cpp conftest.$ac_ext"
1779case "(($ac_try" in
1780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781  *) ac_try_echo=$ac_try;;
1782esac
1783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784$as_echo "$ac_try_echo"; } >&5
1785  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1786  ac_status=$?
1787  if test -s conftest.err; then
1788    grep -v '^ *+' conftest.err >conftest.er1
1789    cat conftest.er1 >&5
1790    mv -f conftest.er1 conftest.err
1791  fi
1792  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793  test $ac_status = 0; } >/dev/null && {
1794	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1795	 test ! -s conftest.err
1796       }; then :
1797  ac_retval=0
1798else
1799  $as_echo "$as_me: failed program was:" >&5
1800sed 's/^/| /' conftest.$ac_ext >&5
1801
1802    ac_retval=1
1803fi
1804  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1805  return $ac_retval
1806
1807} # ac_fn_c_try_cpp
1808
1809# ac_fn_c_try_run LINENO
1810# ----------------------
1811# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1812# that executables *can* be run.
1813ac_fn_c_try_run ()
1814{
1815  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816  if { { ac_try="$ac_link"
1817case "(($ac_try" in
1818  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819  *) ac_try_echo=$ac_try;;
1820esac
1821eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822$as_echo "$ac_try_echo"; } >&5
1823  (eval "$ac_link") 2>&5
1824  ac_status=$?
1825  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1827  { { case "(($ac_try" in
1828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829  *) ac_try_echo=$ac_try;;
1830esac
1831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832$as_echo "$ac_try_echo"; } >&5
1833  (eval "$ac_try") 2>&5
1834  ac_status=$?
1835  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836  test $ac_status = 0; }; }; then :
1837  ac_retval=0
1838else
1839  $as_echo "$as_me: program exited with status $ac_status" >&5
1840       $as_echo "$as_me: failed program was:" >&5
1841sed 's/^/| /' conftest.$ac_ext >&5
1842
1843       ac_retval=$ac_status
1844fi
1845  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1846  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1847  return $ac_retval
1848
1849} # ac_fn_c_try_run
1850
1851# ac_fn_c_check_func LINENO FUNC VAR
1852# ----------------------------------
1853# Tests whether FUNC exists, setting the cache variable VAR accordingly
1854ac_fn_c_check_func ()
1855{
1856  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858$as_echo_n "checking for $2... " >&6; }
1859if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1860  $as_echo_n "(cached) " >&6
1861else
1862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863/* end confdefs.h.  */
1864/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1865   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1866#define $2 innocuous_$2
1867
1868/* System header to define __stub macros and hopefully few prototypes,
1869    which can conflict with char $2 (); below.
1870    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1871    <limits.h> exists even on freestanding compilers.  */
1872
1873#ifdef __STDC__
1874# include <limits.h>
1875#else
1876# include <assert.h>
1877#endif
1878
1879#undef $2
1880
1881/* Override any GCC internal prototype to avoid an error.
1882   Use char because int might match the return type of a GCC
1883   builtin and then its argument prototype would still apply.  */
1884#ifdef __cplusplus
1885extern "C"
1886#endif
1887char $2 ();
1888/* The GNU C library defines this for functions which it implements
1889    to always fail with ENOSYS.  Some functions are actually named
1890    something starting with __ and the normal name is an alias.  */
1891#if defined __stub_$2 || defined __stub___$2
1892choke me
1893#endif
1894
1895int
1896main ()
1897{
1898return $2 ();
1899  ;
1900  return 0;
1901}
1902_ACEOF
1903if ac_fn_c_try_link "$LINENO"; then :
1904  eval "$3=yes"
1905else
1906  eval "$3=no"
1907fi
1908rm -f core conftest.err conftest.$ac_objext \
1909    conftest$ac_exeext conftest.$ac_ext
1910fi
1911eval ac_res=\$$3
1912	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1913$as_echo "$ac_res" >&6; }
1914  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1915
1916} # ac_fn_c_check_func
1917cat >config.log <<_ACEOF
1918This file contains any messages produced by compilers while
1919running configure, to aid debugging if configure makes a mistake.
1920
1921It was created by EXIF library $as_me 0.6.19, which was
1922generated by GNU Autoconf 2.64.  Invocation command line was
1923
1924  $ $0 $@
1925
1926_ACEOF
1927exec 5>>config.log
1928{
1929cat <<_ASUNAME
1930## --------- ##
1931## Platform. ##
1932## --------- ##
1933
1934hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1935uname -m = `(uname -m) 2>/dev/null || echo unknown`
1936uname -r = `(uname -r) 2>/dev/null || echo unknown`
1937uname -s = `(uname -s) 2>/dev/null || echo unknown`
1938uname -v = `(uname -v) 2>/dev/null || echo unknown`
1939
1940/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1941/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1942
1943/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1944/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1945/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1946/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1947/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1948/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1949/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1950
1951_ASUNAME
1952
1953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954for as_dir in $PATH
1955do
1956  IFS=$as_save_IFS
1957  test -z "$as_dir" && as_dir=.
1958    $as_echo "PATH: $as_dir"
1959  done
1960IFS=$as_save_IFS
1961
1962} >&5
1963
1964cat >&5 <<_ACEOF
1965
1966
1967## ----------- ##
1968## Core tests. ##
1969## ----------- ##
1970
1971_ACEOF
1972
1973
1974# Keep a trace of the command line.
1975# Strip out --no-create and --no-recursion so they do not pile up.
1976# Strip out --silent because we don't want to record it for future runs.
1977# Also quote any args containing shell meta-characters.
1978# Make two passes to allow for proper duplicate-argument suppression.
1979ac_configure_args=
1980ac_configure_args0=
1981ac_configure_args1=
1982ac_must_keep_next=false
1983for ac_pass in 1 2
1984do
1985  for ac_arg
1986  do
1987    case $ac_arg in
1988    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1989    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1990    | -silent | --silent | --silen | --sile | --sil)
1991      continue ;;
1992    *\'*)
1993      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1994    esac
1995    case $ac_pass in
1996    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1997    2)
1998      as_fn_append ac_configure_args1 " '$ac_arg'"
1999      if test $ac_must_keep_next = true; then
2000	ac_must_keep_next=false # Got value, back to normal.
2001      else
2002	case $ac_arg in
2003	  *=* | --config-cache | -C | -disable-* | --disable-* \
2004	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2005	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2006	  | -with-* | --with-* | -without-* | --without-* | --x)
2007	    case "$ac_configure_args0 " in
2008	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2009	    esac
2010	    ;;
2011	  -* ) ac_must_keep_next=true ;;
2012	esac
2013      fi
2014      as_fn_append ac_configure_args " '$ac_arg'"
2015      ;;
2016    esac
2017  done
2018done
2019{ ac_configure_args0=; unset ac_configure_args0;}
2020{ ac_configure_args1=; unset ac_configure_args1;}
2021
2022# When interrupted or exit'd, cleanup temporary files, and complete
2023# config.log.  We remove comments because anyway the quotes in there
2024# would cause problems or look ugly.
2025# WARNING: Use '\'' to represent an apostrophe within the trap.
2026# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2027trap 'exit_status=$?
2028  # Save into config.log some information that might help in debugging.
2029  {
2030    echo
2031
2032    cat <<\_ASBOX
2033## ---------------- ##
2034## Cache variables. ##
2035## ---------------- ##
2036_ASBOX
2037    echo
2038    # The following way of writing the cache mishandles newlines in values,
2039(
2040  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2041    eval ac_val=\$$ac_var
2042    case $ac_val in #(
2043    *${as_nl}*)
2044      case $ac_var in #(
2045      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2046$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2047      esac
2048      case $ac_var in #(
2049      _ | IFS | as_nl) ;; #(
2050      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2051      *) { eval $ac_var=; unset $ac_var;} ;;
2052      esac ;;
2053    esac
2054  done
2055  (set) 2>&1 |
2056    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2057    *${as_nl}ac_space=\ *)
2058      sed -n \
2059	"s/'\''/'\''\\\\'\'''\''/g;
2060	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2061      ;; #(
2062    *)
2063      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2064      ;;
2065    esac |
2066    sort
2067)
2068    echo
2069
2070    cat <<\_ASBOX
2071## ----------------- ##
2072## Output variables. ##
2073## ----------------- ##
2074_ASBOX
2075    echo
2076    for ac_var in $ac_subst_vars
2077    do
2078      eval ac_val=\$$ac_var
2079      case $ac_val in
2080      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2081      esac
2082      $as_echo "$ac_var='\''$ac_val'\''"
2083    done | sort
2084    echo
2085
2086    if test -n "$ac_subst_files"; then
2087      cat <<\_ASBOX
2088## ------------------- ##
2089## File substitutions. ##
2090## ------------------- ##
2091_ASBOX
2092      echo
2093      for ac_var in $ac_subst_files
2094      do
2095	eval ac_val=\$$ac_var
2096	case $ac_val in
2097	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2098	esac
2099	$as_echo "$ac_var='\''$ac_val'\''"
2100      done | sort
2101      echo
2102    fi
2103
2104    if test -s confdefs.h; then
2105      cat <<\_ASBOX
2106## ----------- ##
2107## confdefs.h. ##
2108## ----------- ##
2109_ASBOX
2110      echo
2111      cat confdefs.h
2112      echo
2113    fi
2114    test "$ac_signal" != 0 &&
2115      $as_echo "$as_me: caught signal $ac_signal"
2116    $as_echo "$as_me: exit $exit_status"
2117  } >&5
2118  rm -f core *.core core.conftest.* &&
2119    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2120    exit $exit_status
2121' 0
2122for ac_signal in 1 2 13 15; do
2123  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2124done
2125ac_signal=0
2126
2127# confdefs.h avoids OS command line length limits that DEFS can exceed.
2128rm -f -r conftest* confdefs.h
2129
2130$as_echo "/* confdefs.h */" > confdefs.h
2131
2132# Predefined preprocessor variables.
2133
2134cat >>confdefs.h <<_ACEOF
2135#define PACKAGE_NAME "$PACKAGE_NAME"
2136_ACEOF
2137
2138cat >>confdefs.h <<_ACEOF
2139#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2140_ACEOF
2141
2142cat >>confdefs.h <<_ACEOF
2143#define PACKAGE_VERSION "$PACKAGE_VERSION"
2144_ACEOF
2145
2146cat >>confdefs.h <<_ACEOF
2147#define PACKAGE_STRING "$PACKAGE_STRING"
2148_ACEOF
2149
2150cat >>confdefs.h <<_ACEOF
2151#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2152_ACEOF
2153
2154cat >>confdefs.h <<_ACEOF
2155#define PACKAGE_URL "$PACKAGE_URL"
2156_ACEOF
2157
2158
2159# Let the site file select an alternate cache file if it wants to.
2160# Prefer an explicitly selected file to automatically selected ones.
2161ac_site_file1=NONE
2162ac_site_file2=NONE
2163if test -n "$CONFIG_SITE"; then
2164  ac_site_file1=$CONFIG_SITE
2165elif test "x$prefix" != xNONE; then
2166  ac_site_file1=$prefix/share/config.site
2167  ac_site_file2=$prefix/etc/config.site
2168else
2169  ac_site_file1=$ac_default_prefix/share/config.site
2170  ac_site_file2=$ac_default_prefix/etc/config.site
2171fi
2172for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2173do
2174  test "x$ac_site_file" = xNONE && continue
2175  if test -r "$ac_site_file"; then
2176    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2177$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2178    sed 's/^/| /' "$ac_site_file" >&5
2179    . "$ac_site_file"
2180  fi
2181done
2182
2183if test -r "$cache_file"; then
2184  # Some versions of bash will fail to source /dev/null (special
2185  # files actually), so we avoid doing that.
2186  if test -f "$cache_file"; then
2187    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2188$as_echo "$as_me: loading cache $cache_file" >&6;}
2189    case $cache_file in
2190      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2191      *)                      . "./$cache_file";;
2192    esac
2193  fi
2194else
2195  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2196$as_echo "$as_me: creating cache $cache_file" >&6;}
2197  >$cache_file
2198fi
2199
2200# Check that the precious variables saved in the cache have kept the same
2201# value.
2202ac_cache_corrupted=false
2203for ac_var in $ac_precious_vars; do
2204  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2205  eval ac_new_set=\$ac_env_${ac_var}_set
2206  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2207  eval ac_new_val=\$ac_env_${ac_var}_value
2208  case $ac_old_set,$ac_new_set in
2209    set,)
2210      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2211$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2212      ac_cache_corrupted=: ;;
2213    ,set)
2214      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2215$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2216      ac_cache_corrupted=: ;;
2217    ,);;
2218    *)
2219      if test "x$ac_old_val" != "x$ac_new_val"; then
2220	# differences in whitespace do not lead to failure.
2221	ac_old_val_w=`echo x $ac_old_val`
2222	ac_new_val_w=`echo x $ac_new_val`
2223	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2224	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2225$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2226	  ac_cache_corrupted=:
2227	else
2228	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2229$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2230	  eval $ac_var=\$ac_old_val
2231	fi
2232	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2233$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2234	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2235$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2236      fi;;
2237  esac
2238  # Pass precious variables to config.status.
2239  if test "$ac_new_set" = set; then
2240    case $ac_new_val in
2241    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2242    *) ac_arg=$ac_var=$ac_new_val ;;
2243    esac
2244    case " $ac_configure_args " in
2245      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2246      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2247    esac
2248  fi
2249done
2250if $ac_cache_corrupted; then
2251  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2252$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2253  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2254$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2255  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2256fi
2257## -------------------- ##
2258## Main body of script. ##
2259## -------------------- ##
2260
2261ac_ext=c
2262ac_cpp='$CPP $CPPFLAGS'
2263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2265ac_compiler_gnu=$ac_cv_c_compiler_gnu
2266
2267
2268
2269ac_config_headers="$ac_config_headers config.h"
2270
2271
2272am__api_version='1.11'
2273
2274ac_aux_dir=
2275for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2276  for ac_t in install-sh install.sh shtool; do
2277    if test -f "$ac_dir/$ac_t"; then
2278      ac_aux_dir=$ac_dir
2279      ac_install_sh="$ac_aux_dir/$ac_t -c"
2280      break 2
2281    fi
2282  done
2283done
2284if test -z "$ac_aux_dir"; then
2285  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2286fi
2287
2288# These three variables are undocumented and unsupported,
2289# and are intended to be withdrawn in a future Autoconf release.
2290# They can cause serious problems if a builder's source tree is in a directory
2291# whose full name contains unusual characters.
2292ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2293ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2294ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2295
2296
2297# Find a good install program.  We prefer a C program (faster),
2298# so one script is as good as another.  But avoid the broken or
2299# incompatible versions:
2300# SysV /etc/install, /usr/sbin/install
2301# SunOS /usr/etc/install
2302# IRIX /sbin/install
2303# AIX /bin/install
2304# AmigaOS /C/install, which installs bootblocks on floppy discs
2305# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2306# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2307# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2308# OS/2's system install, which has a completely different semantic
2309# ./install, which can be erroneously created by make from ./install.sh.
2310# Reject install programs that cannot install multiple files.
2311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2312$as_echo_n "checking for a BSD-compatible install... " >&6; }
2313if test -z "$INSTALL"; then
2314if test "${ac_cv_path_install+set}" = set; then :
2315  $as_echo_n "(cached) " >&6
2316else
2317  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318for as_dir in $PATH
2319do
2320  IFS=$as_save_IFS
2321  test -z "$as_dir" && as_dir=.
2322    # Account for people who put trailing slashes in PATH elements.
2323case $as_dir/ in #((
2324  ./ | .// | /[cC]/* | \
2325  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2326  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2327  /usr/ucb/* ) ;;
2328  *)
2329    # OSF1 and SCO ODT 3.0 have their own names for install.
2330    # Don't use installbsd from OSF since it installs stuff as root
2331    # by default.
2332    for ac_prog in ginstall scoinst install; do
2333      for ac_exec_ext in '' $ac_executable_extensions; do
2334	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2335	  if test $ac_prog = install &&
2336	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2337	    # AIX install.  It has an incompatible calling convention.
2338	    :
2339	  elif test $ac_prog = install &&
2340	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2341	    # program-specific install script used by HP pwplus--don't use.
2342	    :
2343	  else
2344	    rm -rf conftest.one conftest.two conftest.dir
2345	    echo one > conftest.one
2346	    echo two > conftest.two
2347	    mkdir conftest.dir
2348	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2349	      test -s conftest.one && test -s conftest.two &&
2350	      test -s conftest.dir/conftest.one &&
2351	      test -s conftest.dir/conftest.two
2352	    then
2353	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2354	      break 3
2355	    fi
2356	  fi
2357	fi
2358      done
2359    done
2360    ;;
2361esac
2362
2363  done
2364IFS=$as_save_IFS
2365
2366rm -rf conftest.one conftest.two conftest.dir
2367
2368fi
2369  if test "${ac_cv_path_install+set}" = set; then
2370    INSTALL=$ac_cv_path_install
2371  else
2372    # As a last resort, use the slow shell script.  Don't cache a
2373    # value for INSTALL within a source directory, because that will
2374    # break other packages using the cache if that directory is
2375    # removed, or if the value is a relative name.
2376    INSTALL=$ac_install_sh
2377  fi
2378fi
2379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2380$as_echo "$INSTALL" >&6; }
2381
2382# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2383# It thinks the first close brace ends the variable substitution.
2384test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2385
2386test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2387
2388test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2389
2390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2391$as_echo_n "checking whether build environment is sane... " >&6; }
2392# Just in case
2393sleep 1
2394echo timestamp > conftest.file
2395# Reject unsafe characters in $srcdir or the absolute working directory
2396# name.  Accept space and tab only in the latter.
2397am_lf='
2398'
2399case `pwd` in
2400  *[\\\"\#\$\&\'\`$am_lf]*)
2401    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2402esac
2403case $srcdir in
2404  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2405    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2406esac
2407
2408# Do `set' in a subshell so we don't clobber the current shell's
2409# arguments.  Must try -L first in case configure is actually a
2410# symlink; some systems play weird games with the mod time of symlinks
2411# (eg FreeBSD returns the mod time of the symlink's containing
2412# directory).
2413if (
2414   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2415   if test "$*" = "X"; then
2416      # -L didn't work.
2417      set X `ls -t "$srcdir/configure" conftest.file`
2418   fi
2419   rm -f conftest.file
2420   if test "$*" != "X $srcdir/configure conftest.file" \
2421      && test "$*" != "X conftest.file $srcdir/configure"; then
2422
2423      # If neither matched, then we have a broken ls.  This can happen
2424      # if, for instance, CONFIG_SHELL is bash and it inherits a
2425      # broken ls alias from the environment.  This has actually
2426      # happened.  Such a system could not be considered "sane".
2427      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2428alias in your environment" "$LINENO" 5
2429   fi
2430
2431   test "$2" = conftest.file
2432   )
2433then
2434   # Ok.
2435   :
2436else
2437   as_fn_error "newly created file is older than distributed files!
2438Check your system clock" "$LINENO" 5
2439fi
2440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2441$as_echo "yes" >&6; }
2442test "$program_prefix" != NONE &&
2443  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2444# Use a double $ so make ignores it.
2445test "$program_suffix" != NONE &&
2446  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2447# Double any \ or $.
2448# By default was `s,x,x', remove it if useless.
2449ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2450program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2451
2452# expand $ac_aux_dir to an absolute path
2453am_aux_dir=`cd $ac_aux_dir && pwd`
2454
2455if test x"${MISSING+set}" != xset; then
2456  case $am_aux_dir in
2457  *\ * | *\	*)
2458    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2459  *)
2460    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2461  esac
2462fi
2463# Use eval to expand $SHELL
2464if eval "$MISSING --run true"; then
2465  am_missing_run="$MISSING --run "
2466else
2467  am_missing_run=
2468  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2469$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2470fi
2471
2472if test x"${install_sh}" != xset; then
2473  case $am_aux_dir in
2474  *\ * | *\	*)
2475    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2476  *)
2477    install_sh="\${SHELL} $am_aux_dir/install-sh"
2478  esac
2479fi
2480
2481# Installed binaries are usually stripped using `strip' when the user
2482# run `make install-strip'.  However `strip' might not be the right
2483# tool to use in cross-compilation environments, therefore Automake
2484# will honor the `STRIP' environment variable to overrule this program.
2485if test "$cross_compiling" != no; then
2486  if test -n "$ac_tool_prefix"; then
2487  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2488set dummy ${ac_tool_prefix}strip; ac_word=$2
2489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2490$as_echo_n "checking for $ac_word... " >&6; }
2491if test "${ac_cv_prog_STRIP+set}" = set; then :
2492  $as_echo_n "(cached) " >&6
2493else
2494  if test -n "$STRIP"; then
2495  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2496else
2497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2498for as_dir in $PATH
2499do
2500  IFS=$as_save_IFS
2501  test -z "$as_dir" && as_dir=.
2502    for ac_exec_ext in '' $ac_executable_extensions; do
2503  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2504    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2505    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2506    break 2
2507  fi
2508done
2509  done
2510IFS=$as_save_IFS
2511
2512fi
2513fi
2514STRIP=$ac_cv_prog_STRIP
2515if test -n "$STRIP"; then
2516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2517$as_echo "$STRIP" >&6; }
2518else
2519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2520$as_echo "no" >&6; }
2521fi
2522
2523
2524fi
2525if test -z "$ac_cv_prog_STRIP"; then
2526  ac_ct_STRIP=$STRIP
2527  # Extract the first word of "strip", so it can be a program name with args.
2528set dummy strip; ac_word=$2
2529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2530$as_echo_n "checking for $ac_word... " >&6; }
2531if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2532  $as_echo_n "(cached) " >&6
2533else
2534  if test -n "$ac_ct_STRIP"; then
2535  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2536else
2537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538for as_dir in $PATH
2539do
2540  IFS=$as_save_IFS
2541  test -z "$as_dir" && as_dir=.
2542    for ac_exec_ext in '' $ac_executable_extensions; do
2543  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2544    ac_cv_prog_ac_ct_STRIP="strip"
2545    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2546    break 2
2547  fi
2548done
2549  done
2550IFS=$as_save_IFS
2551
2552fi
2553fi
2554ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2555if test -n "$ac_ct_STRIP"; then
2556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2557$as_echo "$ac_ct_STRIP" >&6; }
2558else
2559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2560$as_echo "no" >&6; }
2561fi
2562
2563  if test "x$ac_ct_STRIP" = x; then
2564    STRIP=":"
2565  else
2566    case $cross_compiling:$ac_tool_warned in
2567yes:)
2568{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2569$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2570ac_tool_warned=yes ;;
2571esac
2572    STRIP=$ac_ct_STRIP
2573  fi
2574else
2575  STRIP="$ac_cv_prog_STRIP"
2576fi
2577
2578fi
2579INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2580
2581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2582$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2583if test -z "$MKDIR_P"; then
2584  if test "${ac_cv_path_mkdir+set}" = set; then :
2585  $as_echo_n "(cached) " >&6
2586else
2587  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2589do
2590  IFS=$as_save_IFS
2591  test -z "$as_dir" && as_dir=.
2592    for ac_prog in mkdir gmkdir; do
2593	 for ac_exec_ext in '' $ac_executable_extensions; do
2594	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2595	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2596	     'mkdir (GNU coreutils) '* | \
2597	     'mkdir (coreutils) '* | \
2598	     'mkdir (fileutils) '4.1*)
2599	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2600	       break 3;;
2601	   esac
2602	 done
2603       done
2604  done
2605IFS=$as_save_IFS
2606
2607fi
2608
2609  if test "${ac_cv_path_mkdir+set}" = set; then
2610    MKDIR_P="$ac_cv_path_mkdir -p"
2611  else
2612    # As a last resort, use the slow shell script.  Don't cache a
2613    # value for MKDIR_P within a source directory, because that will
2614    # break other packages using the cache if that directory is
2615    # removed, or if the value is a relative name.
2616    test -d ./--version && rmdir ./--version
2617    MKDIR_P="$ac_install_sh -d"
2618  fi
2619fi
2620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2621$as_echo "$MKDIR_P" >&6; }
2622
2623mkdir_p="$MKDIR_P"
2624case $mkdir_p in
2625  [\\/$]* | ?:[\\/]*) ;;
2626  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2627esac
2628
2629for ac_prog in gawk mawk nawk awk
2630do
2631  # Extract the first word of "$ac_prog", so it can be a program name with args.
2632set dummy $ac_prog; ac_word=$2
2633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2634$as_echo_n "checking for $ac_word... " >&6; }
2635if test "${ac_cv_prog_AWK+set}" = set; then :
2636  $as_echo_n "(cached) " >&6
2637else
2638  if test -n "$AWK"; then
2639  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2640else
2641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642for as_dir in $PATH
2643do
2644  IFS=$as_save_IFS
2645  test -z "$as_dir" && as_dir=.
2646    for ac_exec_ext in '' $ac_executable_extensions; do
2647  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2648    ac_cv_prog_AWK="$ac_prog"
2649    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2650    break 2
2651  fi
2652done
2653  done
2654IFS=$as_save_IFS
2655
2656fi
2657fi
2658AWK=$ac_cv_prog_AWK
2659if test -n "$AWK"; then
2660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2661$as_echo "$AWK" >&6; }
2662else
2663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2664$as_echo "no" >&6; }
2665fi
2666
2667
2668  test -n "$AWK" && break
2669done
2670
2671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2672$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2673set x ${MAKE-make}
2674ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2675if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2676  $as_echo_n "(cached) " >&6
2677else
2678  cat >conftest.make <<\_ACEOF
2679SHELL = /bin/sh
2680all:
2681	@echo '@@@%%%=$(MAKE)=@@@%%%'
2682_ACEOF
2683# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2684case `${MAKE-make} -f conftest.make 2>/dev/null` in
2685  *@@@%%%=?*=@@@%%%*)
2686    eval ac_cv_prog_make_${ac_make}_set=yes;;
2687  *)
2688    eval ac_cv_prog_make_${ac_make}_set=no;;
2689esac
2690rm -f conftest.make
2691fi
2692if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2694$as_echo "yes" >&6; }
2695  SET_MAKE=
2696else
2697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2698$as_echo "no" >&6; }
2699  SET_MAKE="MAKE=${MAKE-make}"
2700fi
2701
2702rm -rf .tst 2>/dev/null
2703mkdir .tst 2>/dev/null
2704if test -d .tst; then
2705  am__leading_dot=.
2706else
2707  am__leading_dot=_
2708fi
2709rmdir .tst 2>/dev/null
2710
2711if test "`cd $srcdir && pwd`" != "`pwd`"; then
2712  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2713  # is not polluted with repeated "-I."
2714  am__isrc=' -I$(srcdir)'
2715  # test to see if srcdir already configured
2716  if test -f $srcdir/config.status; then
2717    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2718  fi
2719fi
2720
2721# test whether we have cygpath
2722if test -z "$CYGPATH_W"; then
2723  if (cygpath --version) >/dev/null 2>/dev/null; then
2724    CYGPATH_W='cygpath -w'
2725  else
2726    CYGPATH_W=echo
2727  fi
2728fi
2729
2730
2731# Define the identity of the package.
2732 PACKAGE='libexif'
2733 VERSION='0.6.19'
2734
2735
2736cat >>confdefs.h <<_ACEOF
2737#define PACKAGE "$PACKAGE"
2738_ACEOF
2739
2740
2741cat >>confdefs.h <<_ACEOF
2742#define VERSION "$VERSION"
2743_ACEOF
2744
2745# Some tools Automake needs.
2746
2747ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2748
2749
2750AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2751
2752
2753AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2754
2755
2756AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2757
2758
2759MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2760
2761# We need awk for the "check" target.  The system "awk" is bad on
2762# some platforms.
2763# Always define AMTAR for backward compatibility.
2764
2765AMTAR=${AMTAR-"${am_missing_run}tar"}
2766
2767am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2768
2769
2770
2771
2772
2773
2774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2775$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2776    # Check whether --enable-maintainer-mode was given.
2777if test "${enable_maintainer_mode+set}" = set; then :
2778  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2779else
2780  USE_MAINTAINER_MODE=no
2781fi
2782
2783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2784$as_echo "$USE_MAINTAINER_MODE" >&6; }
2785   if test $USE_MAINTAINER_MODE = yes; then
2786  MAINTAINER_MODE_TRUE=
2787  MAINTAINER_MODE_FALSE='#'
2788else
2789  MAINTAINER_MODE_TRUE='#'
2790  MAINTAINER_MODE_FALSE=
2791fi
2792
2793  MAINT=$MAINTAINER_MODE_TRUE
2794
2795
2796
2797if test ! -d "$srcdir/m4m"; then
2798as_fn_error "
2799You are missing the m4m/ directory in your top
2800$PACKAGE_TARNAME source directory.
2801
2802You are probably using an ill-maintained CVS tree.
2803Running
2804
2805    cd $srcdir
2806    cvs co m4m
2807
2808and re-running autogen.sh might help.
2809" "$LINENO" 5
2810fi
2811
2812
2813# make sure "cd" doesn't print anything on stdout
2814if test x"${CDPATH+set}" = xset
2815then
2816	CDPATH=:
2817	export CDPATH
2818fi
2819
2820# make sure $() command substitution works
2821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX sh \$() command substitution" >&5
2822$as_echo_n "checking for POSIX sh \$() command substitution... " >&6; }
2823if test "x$(pwd)" = "x`pwd`" && test "y$(echo "foobar")" = "y`echo foobar`" # ''''
2824then
2825	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2826$as_echo "yes" >&6; }
2827else
2828	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2829$as_echo "no" >&6; }
2830	uname=`uname 2>&1` # ''
2831	uname_a=`uname -a 2>&1` # ''
2832	as_fn_error "
2833
2834* POSIX sh \$() command substition does not work with this shell.
2835*
2836* You are running a very rare species of shell. Please report this
2837* sighting to <${PACKAGE_BUGREPORT}>:
2838* SHELL=${SHELL}
2839* uname=${uname}
2840* uname-a=${uname_a}
2841* Please also include your OS and version.
2842*
2843* Run this configure script using a better (i.e. POSIX compliant) shell.
2844" "$LINENO" 5
2845fi
2846
2847
2848
2849gp_config_len="30"
2850gp_config_empty=""
2851gp_config_len3="$(expr "$gp_config_len" - 3)"
2852n="$gp_config_len"
2853while test "$n" -gt 0; do
2854      gp_config_empty="${gp_config_empty} "
2855      n="$(expr "$n" - 1)"
2856done
2857gp_config_msg="
2858Configuration (${PACKAGE_TARNAME} ${PACKAGE_VERSION}):
2859"
2860
2861
2862gp_config_msg="${gp_config_msg}
2863  Build
2864"
2865
2866
2867gp_config_msg_len="$(expr "Source code location" : '.*')"
2868if test "$gp_config_msg_len" -ge "$gp_config_len"; then
2869	gp_config_msg_lhs="$(expr "Source code location" : "\(.\{0,${gp_config_len3}\}\)")..:"
2870else
2871	gp_config_msg_lhs="$(expr "Source code location:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
2872fi
2873gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} ${srcdir}
2874"
2875
2876
2877LIBEXIF_CURRENT=15
2878LIBEXIF_AGE=3
2879LIBEXIF_REVISION=1
2880
2881
2882
2883LIBEXIF_CURRENT_MIN=`expr $LIBEXIF_CURRENT - $LIBEXIF_AGE`
2884
2885LIBEXIF_VERSION_INFO="$LIBEXIF_CURRENT:$LIBEXIF_REVISION:$LIBEXIF_AGE"
2886
2887
2888ac_ext=c
2889ac_cpp='$CPP $CPPFLAGS'
2890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2892ac_compiler_gnu=$ac_cv_c_compiler_gnu
2893if test -n "$ac_tool_prefix"; then
2894  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2895set dummy ${ac_tool_prefix}gcc; ac_word=$2
2896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2897$as_echo_n "checking for $ac_word... " >&6; }
2898if test "${ac_cv_prog_CC+set}" = set; then :
2899  $as_echo_n "(cached) " >&6
2900else
2901  if test -n "$CC"; then
2902  ac_cv_prog_CC="$CC" # Let the user override the test.
2903else
2904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905for as_dir in $PATH
2906do
2907  IFS=$as_save_IFS
2908  test -z "$as_dir" && as_dir=.
2909    for ac_exec_ext in '' $ac_executable_extensions; do
2910  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2911    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2912    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2913    break 2
2914  fi
2915done
2916  done
2917IFS=$as_save_IFS
2918
2919fi
2920fi
2921CC=$ac_cv_prog_CC
2922if test -n "$CC"; then
2923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2924$as_echo "$CC" >&6; }
2925else
2926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927$as_echo "no" >&6; }
2928fi
2929
2930
2931fi
2932if test -z "$ac_cv_prog_CC"; then
2933  ac_ct_CC=$CC
2934  # Extract the first word of "gcc", so it can be a program name with args.
2935set dummy gcc; ac_word=$2
2936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2937$as_echo_n "checking for $ac_word... " >&6; }
2938if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2939  $as_echo_n "(cached) " >&6
2940else
2941  if test -n "$ac_ct_CC"; then
2942  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2943else
2944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945for as_dir in $PATH
2946do
2947  IFS=$as_save_IFS
2948  test -z "$as_dir" && as_dir=.
2949    for ac_exec_ext in '' $ac_executable_extensions; do
2950  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2951    ac_cv_prog_ac_ct_CC="gcc"
2952    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2953    break 2
2954  fi
2955done
2956  done
2957IFS=$as_save_IFS
2958
2959fi
2960fi
2961ac_ct_CC=$ac_cv_prog_ac_ct_CC
2962if test -n "$ac_ct_CC"; then
2963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2964$as_echo "$ac_ct_CC" >&6; }
2965else
2966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2967$as_echo "no" >&6; }
2968fi
2969
2970  if test "x$ac_ct_CC" = x; then
2971    CC=""
2972  else
2973    case $cross_compiling:$ac_tool_warned in
2974yes:)
2975{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2976$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2977ac_tool_warned=yes ;;
2978esac
2979    CC=$ac_ct_CC
2980  fi
2981else
2982  CC="$ac_cv_prog_CC"
2983fi
2984
2985if test -z "$CC"; then
2986          if test -n "$ac_tool_prefix"; then
2987    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2988set dummy ${ac_tool_prefix}cc; ac_word=$2
2989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990$as_echo_n "checking for $ac_word... " >&6; }
2991if test "${ac_cv_prog_CC+set}" = set; then :
2992  $as_echo_n "(cached) " >&6
2993else
2994  if test -n "$CC"; then
2995  ac_cv_prog_CC="$CC" # Let the user override the test.
2996else
2997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998for as_dir in $PATH
2999do
3000  IFS=$as_save_IFS
3001  test -z "$as_dir" && as_dir=.
3002    for ac_exec_ext in '' $ac_executable_extensions; do
3003  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3004    ac_cv_prog_CC="${ac_tool_prefix}cc"
3005    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3006    break 2
3007  fi
3008done
3009  done
3010IFS=$as_save_IFS
3011
3012fi
3013fi
3014CC=$ac_cv_prog_CC
3015if test -n "$CC"; then
3016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3017$as_echo "$CC" >&6; }
3018else
3019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020$as_echo "no" >&6; }
3021fi
3022
3023
3024  fi
3025fi
3026if test -z "$CC"; then
3027  # Extract the first word of "cc", so it can be a program name with args.
3028set dummy cc; ac_word=$2
3029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3030$as_echo_n "checking for $ac_word... " >&6; }
3031if test "${ac_cv_prog_CC+set}" = set; then :
3032  $as_echo_n "(cached) " >&6
3033else
3034  if test -n "$CC"; then
3035  ac_cv_prog_CC="$CC" # Let the user override the test.
3036else
3037  ac_prog_rejected=no
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    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3046       ac_prog_rejected=yes
3047       continue
3048     fi
3049    ac_cv_prog_CC="cc"
3050    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3051    break 2
3052  fi
3053done
3054  done
3055IFS=$as_save_IFS
3056
3057if test $ac_prog_rejected = yes; then
3058  # We found a bogon in the path, so make sure we never use it.
3059  set dummy $ac_cv_prog_CC
3060  shift
3061  if test $# != 0; then
3062    # We chose a different compiler from the bogus one.
3063    # However, it has the same basename, so the bogon will be chosen
3064    # first if we set CC to just the basename; use the full file name.
3065    shift
3066    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3067  fi
3068fi
3069fi
3070fi
3071CC=$ac_cv_prog_CC
3072if test -n "$CC"; then
3073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3074$as_echo "$CC" >&6; }
3075else
3076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077$as_echo "no" >&6; }
3078fi
3079
3080
3081fi
3082if test -z "$CC"; then
3083  if test -n "$ac_tool_prefix"; then
3084  for ac_prog in cl.exe
3085  do
3086    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3087set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3089$as_echo_n "checking for $ac_word... " >&6; }
3090if test "${ac_cv_prog_CC+set}" = set; then :
3091  $as_echo_n "(cached) " >&6
3092else
3093  if test -n "$CC"; then
3094  ac_cv_prog_CC="$CC" # Let the user override the test.
3095else
3096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097for as_dir in $PATH
3098do
3099  IFS=$as_save_IFS
3100  test -z "$as_dir" && as_dir=.
3101    for ac_exec_ext in '' $ac_executable_extensions; do
3102  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3103    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3104    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3105    break 2
3106  fi
3107done
3108  done
3109IFS=$as_save_IFS
3110
3111fi
3112fi
3113CC=$ac_cv_prog_CC
3114if test -n "$CC"; then
3115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3116$as_echo "$CC" >&6; }
3117else
3118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119$as_echo "no" >&6; }
3120fi
3121
3122
3123    test -n "$CC" && break
3124  done
3125fi
3126if test -z "$CC"; then
3127  ac_ct_CC=$CC
3128  for ac_prog in cl.exe
3129do
3130  # Extract the first word of "$ac_prog", so it can be a program name with args.
3131set dummy $ac_prog; ac_word=$2
3132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3133$as_echo_n "checking for $ac_word... " >&6; }
3134if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3135  $as_echo_n "(cached) " >&6
3136else
3137  if test -n "$ac_ct_CC"; then
3138  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3139else
3140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141for as_dir in $PATH
3142do
3143  IFS=$as_save_IFS
3144  test -z "$as_dir" && as_dir=.
3145    for ac_exec_ext in '' $ac_executable_extensions; do
3146  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3147    ac_cv_prog_ac_ct_CC="$ac_prog"
3148    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3149    break 2
3150  fi
3151done
3152  done
3153IFS=$as_save_IFS
3154
3155fi
3156fi
3157ac_ct_CC=$ac_cv_prog_ac_ct_CC
3158if test -n "$ac_ct_CC"; then
3159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3160$as_echo "$ac_ct_CC" >&6; }
3161else
3162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3163$as_echo "no" >&6; }
3164fi
3165
3166
3167  test -n "$ac_ct_CC" && break
3168done
3169
3170  if test "x$ac_ct_CC" = x; then
3171    CC=""
3172  else
3173    case $cross_compiling:$ac_tool_warned in
3174yes:)
3175{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3176$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3177ac_tool_warned=yes ;;
3178esac
3179    CC=$ac_ct_CC
3180  fi
3181fi
3182
3183fi
3184
3185
3186test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3187$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3188as_fn_error "no acceptable C compiler found in \$PATH
3189See \`config.log' for more details." "$LINENO" 5; }
3190
3191# Provide some information about the compiler.
3192$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3193set X $ac_compile
3194ac_compiler=$2
3195for ac_option in --version -v -V -qversion; do
3196  { { ac_try="$ac_compiler $ac_option >&5"
3197case "(($ac_try" in
3198  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199  *) ac_try_echo=$ac_try;;
3200esac
3201eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3202$as_echo "$ac_try_echo"; } >&5
3203  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3204  ac_status=$?
3205  if test -s conftest.err; then
3206    sed '10a\
3207... rest of stderr output deleted ...
3208         10q' conftest.err >conftest.er1
3209    cat conftest.er1 >&5
3210    rm -f conftest.er1 conftest.err
3211  fi
3212  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3213  test $ac_status = 0; }
3214done
3215
3216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3217/* end confdefs.h.  */
3218#include <stdio.h>
3219int
3220main ()
3221{
3222FILE *f = fopen ("conftest.out", "w");
3223 return ferror (f) || fclose (f) != 0;
3224
3225  ;
3226  return 0;
3227}
3228_ACEOF
3229ac_clean_files_save=$ac_clean_files
3230ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3231# Try to create an executable without -o first, disregard a.out.
3232# It will help us diagnose broken compilers, and finding out an intuition
3233# of exeext.
3234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3235$as_echo_n "checking for C compiler default output file name... " >&6; }
3236ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3237
3238# The possible output files:
3239ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3240
3241ac_rmfiles=
3242for ac_file in $ac_files
3243do
3244  case $ac_file in
3245    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3246    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3247  esac
3248done
3249rm -f $ac_rmfiles
3250
3251if { { ac_try="$ac_link_default"
3252case "(($ac_try" in
3253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254  *) ac_try_echo=$ac_try;;
3255esac
3256eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3257$as_echo "$ac_try_echo"; } >&5
3258  (eval "$ac_link_default") 2>&5
3259  ac_status=$?
3260  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3261  test $ac_status = 0; }; then :
3262  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3263# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3264# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3265# so that the user can short-circuit this test for compilers unknown to
3266# Autoconf.
3267for ac_file in $ac_files ''
3268do
3269  test -f "$ac_file" || continue
3270  case $ac_file in
3271    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3272	;;
3273    [ab].out )
3274	# We found the default executable, but exeext='' is most
3275	# certainly right.
3276	break;;
3277    *.* )
3278	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3279	then :; else
3280	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3281	fi
3282	# We set ac_cv_exeext here because the later test for it is not
3283	# safe: cross compilers may not add the suffix if given an `-o'
3284	# argument, so we may need to know it at that point already.
3285	# Even if this section looks crufty: it has the advantage of
3286	# actually working.
3287	break;;
3288    * )
3289	break;;
3290  esac
3291done
3292test "$ac_cv_exeext" = no && ac_cv_exeext=
3293
3294else
3295  ac_file=''
3296fi
3297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3298$as_echo "$ac_file" >&6; }
3299if test -z "$ac_file"; then :
3300  $as_echo "$as_me: failed program was:" >&5
3301sed 's/^/| /' conftest.$ac_ext >&5
3302
3303{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3304$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3305{ as_fn_set_status 77
3306as_fn_error "C compiler cannot create executables
3307See \`config.log' for more details." "$LINENO" 5; }; }
3308fi
3309ac_exeext=$ac_cv_exeext
3310
3311# Check that the compiler produces executables we can run.  If not, either
3312# the compiler is broken, or we cross compile.
3313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3314$as_echo_n "checking whether the C compiler works... " >&6; }
3315# If not cross compiling, check that we can run a simple program.
3316if test "$cross_compiling" != yes; then
3317  if { ac_try='./$ac_file'
3318  { { case "(($ac_try" in
3319  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320  *) ac_try_echo=$ac_try;;
3321esac
3322eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3323$as_echo "$ac_try_echo"; } >&5
3324  (eval "$ac_try") 2>&5
3325  ac_status=$?
3326  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3327  test $ac_status = 0; }; }; then
3328    cross_compiling=no
3329  else
3330    if test "$cross_compiling" = maybe; then
3331	cross_compiling=yes
3332    else
3333	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3334$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3335as_fn_error "cannot run C compiled programs.
3336If you meant to cross compile, use \`--host'.
3337See \`config.log' for more details." "$LINENO" 5; }
3338    fi
3339  fi
3340fi
3341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3342$as_echo "yes" >&6; }
3343
3344rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3345ac_clean_files=$ac_clean_files_save
3346# Check that the compiler produces executables we can run.  If not, either
3347# the compiler is broken, or we cross compile.
3348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3349$as_echo_n "checking whether we are cross compiling... " >&6; }
3350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3351$as_echo "$cross_compiling" >&6; }
3352
3353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3354$as_echo_n "checking for suffix of executables... " >&6; }
3355if { { ac_try="$ac_link"
3356case "(($ac_try" in
3357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358  *) ac_try_echo=$ac_try;;
3359esac
3360eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3361$as_echo "$ac_try_echo"; } >&5
3362  (eval "$ac_link") 2>&5
3363  ac_status=$?
3364  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3365  test $ac_status = 0; }; then :
3366  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3367# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3368# work properly (i.e., refer to `conftest.exe'), while it won't with
3369# `rm'.
3370for ac_file in conftest.exe conftest conftest.*; do
3371  test -f "$ac_file" || continue
3372  case $ac_file in
3373    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3374    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3375	  break;;
3376    * ) break;;
3377  esac
3378done
3379else
3380  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3381$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3382as_fn_error "cannot compute suffix of executables: cannot compile and link
3383See \`config.log' for more details." "$LINENO" 5; }
3384fi
3385rm -f conftest$ac_cv_exeext
3386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3387$as_echo "$ac_cv_exeext" >&6; }
3388
3389rm -f conftest.$ac_ext
3390EXEEXT=$ac_cv_exeext
3391ac_exeext=$EXEEXT
3392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3393$as_echo_n "checking for suffix of object files... " >&6; }
3394if test "${ac_cv_objext+set}" = set; then :
3395  $as_echo_n "(cached) " >&6
3396else
3397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3398/* end confdefs.h.  */
3399
3400int
3401main ()
3402{
3403
3404  ;
3405  return 0;
3406}
3407_ACEOF
3408rm -f conftest.o conftest.obj
3409if { { ac_try="$ac_compile"
3410case "(($ac_try" in
3411  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412  *) ac_try_echo=$ac_try;;
3413esac
3414eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3415$as_echo "$ac_try_echo"; } >&5
3416  (eval "$ac_compile") 2>&5
3417  ac_status=$?
3418  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3419  test $ac_status = 0; }; then :
3420  for ac_file in conftest.o conftest.obj conftest.*; do
3421  test -f "$ac_file" || continue;
3422  case $ac_file in
3423    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3424    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3425       break;;
3426  esac
3427done
3428else
3429  $as_echo "$as_me: failed program was:" >&5
3430sed 's/^/| /' conftest.$ac_ext >&5
3431
3432{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3433$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3434as_fn_error "cannot compute suffix of object files: cannot compile
3435See \`config.log' for more details." "$LINENO" 5; }
3436fi
3437rm -f conftest.$ac_cv_objext conftest.$ac_ext
3438fi
3439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3440$as_echo "$ac_cv_objext" >&6; }
3441OBJEXT=$ac_cv_objext
3442ac_objext=$OBJEXT
3443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3444$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3445if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3446  $as_echo_n "(cached) " >&6
3447else
3448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449/* end confdefs.h.  */
3450
3451int
3452main ()
3453{
3454#ifndef __GNUC__
3455       choke me
3456#endif
3457
3458  ;
3459  return 0;
3460}
3461_ACEOF
3462if ac_fn_c_try_compile "$LINENO"; then :
3463  ac_compiler_gnu=yes
3464else
3465  ac_compiler_gnu=no
3466fi
3467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3468ac_cv_c_compiler_gnu=$ac_compiler_gnu
3469
3470fi
3471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3472$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3473if test $ac_compiler_gnu = yes; then
3474  GCC=yes
3475else
3476  GCC=
3477fi
3478ac_test_CFLAGS=${CFLAGS+set}
3479ac_save_CFLAGS=$CFLAGS
3480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3481$as_echo_n "checking whether $CC accepts -g... " >&6; }
3482if test "${ac_cv_prog_cc_g+set}" = set; then :
3483  $as_echo_n "(cached) " >&6
3484else
3485  ac_save_c_werror_flag=$ac_c_werror_flag
3486   ac_c_werror_flag=yes
3487   ac_cv_prog_cc_g=no
3488   CFLAGS="-g"
3489   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490/* end confdefs.h.  */
3491
3492int
3493main ()
3494{
3495
3496  ;
3497  return 0;
3498}
3499_ACEOF
3500if ac_fn_c_try_compile "$LINENO"; then :
3501  ac_cv_prog_cc_g=yes
3502else
3503  CFLAGS=""
3504      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505/* end confdefs.h.  */
3506
3507int
3508main ()
3509{
3510
3511  ;
3512  return 0;
3513}
3514_ACEOF
3515if ac_fn_c_try_compile "$LINENO"; then :
3516
3517else
3518  ac_c_werror_flag=$ac_save_c_werror_flag
3519	 CFLAGS="-g"
3520	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3521/* end confdefs.h.  */
3522
3523int
3524main ()
3525{
3526
3527  ;
3528  return 0;
3529}
3530_ACEOF
3531if ac_fn_c_try_compile "$LINENO"; then :
3532  ac_cv_prog_cc_g=yes
3533fi
3534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3535fi
3536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3537fi
3538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3539   ac_c_werror_flag=$ac_save_c_werror_flag
3540fi
3541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3542$as_echo "$ac_cv_prog_cc_g" >&6; }
3543if test "$ac_test_CFLAGS" = set; then
3544  CFLAGS=$ac_save_CFLAGS
3545elif test $ac_cv_prog_cc_g = yes; then
3546  if test "$GCC" = yes; then
3547    CFLAGS="-g -O2"
3548  else
3549    CFLAGS="-g"
3550  fi
3551else
3552  if test "$GCC" = yes; then
3553    CFLAGS="-O2"
3554  else
3555    CFLAGS=
3556  fi
3557fi
3558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3559$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3560if test "${ac_cv_prog_cc_c89+set}" = set; then :
3561  $as_echo_n "(cached) " >&6
3562else
3563  ac_cv_prog_cc_c89=no
3564ac_save_CC=$CC
3565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3566/* end confdefs.h.  */
3567#include <stdarg.h>
3568#include <stdio.h>
3569#include <sys/types.h>
3570#include <sys/stat.h>
3571/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3572struct buf { int x; };
3573FILE * (*rcsopen) (struct buf *, struct stat *, int);
3574static char *e (p, i)
3575     char **p;
3576     int i;
3577{
3578  return p[i];
3579}
3580static char *f (char * (*g) (char **, int), char **p, ...)
3581{
3582  char *s;
3583  va_list v;
3584  va_start (v,p);
3585  s = g (p, va_arg (v,int));
3586  va_end (v);
3587  return s;
3588}
3589
3590/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3591   function prototypes and stuff, but not '\xHH' hex character constants.
3592   These don't provoke an error unfortunately, instead are silently treated
3593   as 'x'.  The following induces an error, until -std is added to get
3594   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3595   array size at least.  It's necessary to write '\x00'==0 to get something
3596   that's true only with -std.  */
3597int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3598
3599/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3600   inside strings and character constants.  */
3601#define FOO(x) 'x'
3602int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3603
3604int test (int i, double x);
3605struct s1 {int (*f) (int a);};
3606struct s2 {int (*f) (double a);};
3607int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3608int argc;
3609char **argv;
3610int
3611main ()
3612{
3613return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3614  ;
3615  return 0;
3616}
3617_ACEOF
3618for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3619	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3620do
3621  CC="$ac_save_CC $ac_arg"
3622  if ac_fn_c_try_compile "$LINENO"; then :
3623  ac_cv_prog_cc_c89=$ac_arg
3624fi
3625rm -f core conftest.err conftest.$ac_objext
3626  test "x$ac_cv_prog_cc_c89" != "xno" && break
3627done
3628rm -f conftest.$ac_ext
3629CC=$ac_save_CC
3630
3631fi
3632# AC_CACHE_VAL
3633case "x$ac_cv_prog_cc_c89" in
3634  x)
3635    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3636$as_echo "none needed" >&6; } ;;
3637  xno)
3638    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3639$as_echo "unsupported" >&6; } ;;
3640  *)
3641    CC="$CC $ac_cv_prog_cc_c89"
3642    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3643$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3644esac
3645if test "x$ac_cv_prog_cc_c89" != xno; then :
3646
3647fi
3648
3649ac_ext=c
3650ac_cpp='$CPP $CPPFLAGS'
3651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3653ac_compiler_gnu=$ac_cv_c_compiler_gnu
3654DEPDIR="${am__leading_dot}deps"
3655
3656ac_config_commands="$ac_config_commands depfiles"
3657
3658
3659am_make=${MAKE-make}
3660cat > confinc << 'END'
3661am__doit:
3662	@echo this is the am__doit target
3663.PHONY: am__doit
3664END
3665# If we don't find an include directive, just comment out the code.
3666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3667$as_echo_n "checking for style of include used by $am_make... " >&6; }
3668am__include="#"
3669am__quote=
3670_am_result=none
3671# First try GNU make style include.
3672echo "include confinc" > confmf
3673# Ignore all kinds of additional output from `make'.
3674case `$am_make -s -f confmf 2> /dev/null` in #(
3675*the\ am__doit\ target*)
3676  am__include=include
3677  am__quote=
3678  _am_result=GNU
3679  ;;
3680esac
3681# Now try BSD make style include.
3682if test "$am__include" = "#"; then
3683   echo '.include "confinc"' > confmf
3684   case `$am_make -s -f confmf 2> /dev/null` in #(
3685   *the\ am__doit\ target*)
3686     am__include=.include
3687     am__quote="\""
3688     _am_result=BSD
3689     ;;
3690   esac
3691fi
3692
3693
3694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3695$as_echo "$_am_result" >&6; }
3696rm -f confinc confmf
3697
3698# Check whether --enable-dependency-tracking was given.
3699if test "${enable_dependency_tracking+set}" = set; then :
3700  enableval=$enable_dependency_tracking;
3701fi
3702
3703if test "x$enable_dependency_tracking" != xno; then
3704  am_depcomp="$ac_aux_dir/depcomp"
3705  AMDEPBACKSLASH='\'
3706fi
3707 if test "x$enable_dependency_tracking" != xno; then
3708  AMDEP_TRUE=
3709  AMDEP_FALSE='#'
3710else
3711  AMDEP_TRUE='#'
3712  AMDEP_FALSE=
3713fi
3714
3715
3716
3717depcc="$CC"   am_compiler_list=
3718
3719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3720$as_echo_n "checking dependency style of $depcc... " >&6; }
3721if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3722  $as_echo_n "(cached) " >&6
3723else
3724  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3725  # We make a subdir and do the tests there.  Otherwise we can end up
3726  # making bogus files that we don't know about and never remove.  For
3727  # instance it was reported that on HP-UX the gcc test will end up
3728  # making a dummy file named `D' -- because `-MD' means `put the output
3729  # in D'.
3730  mkdir conftest.dir
3731  # Copy depcomp to subdir because otherwise we won't find it if we're
3732  # using a relative directory.
3733  cp "$am_depcomp" conftest.dir
3734  cd conftest.dir
3735  # We will build objects and dependencies in a subdirectory because
3736  # it helps to detect inapplicable dependency modes.  For instance
3737  # both Tru64's cc and ICC support -MD to output dependencies as a
3738  # side effect of compilation, but ICC will put the dependencies in
3739  # the current directory while Tru64 will put them in the object
3740  # directory.
3741  mkdir sub
3742
3743  am_cv_CC_dependencies_compiler_type=none
3744  if test "$am_compiler_list" = ""; then
3745     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3746  fi
3747  am__universal=false
3748  case " $depcc " in #(
3749     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3750     esac
3751
3752  for depmode in $am_compiler_list; do
3753    # Setup a source with many dependencies, because some compilers
3754    # like to wrap large dependency lists on column 80 (with \), and
3755    # we should not choose a depcomp mode which is confused by this.
3756    #
3757    # We need to recreate these files for each test, as the compiler may
3758    # overwrite some of them when testing with obscure command lines.
3759    # This happens at least with the AIX C compiler.
3760    : > sub/conftest.c
3761    for i in 1 2 3 4 5 6; do
3762      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3763      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3764      # Solaris 8's {/usr,}/bin/sh.
3765      touch sub/conftst$i.h
3766    done
3767    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3768
3769    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3770    # mode.  It turns out that the SunPro C++ compiler does not properly
3771    # handle `-M -o', and we need to detect this.  Also, some Intel
3772    # versions had trouble with output in subdirs
3773    am__obj=sub/conftest.${OBJEXT-o}
3774    am__minus_obj="-o $am__obj"
3775    case $depmode in
3776    gcc)
3777      # This depmode causes a compiler race in universal mode.
3778      test "$am__universal" = false || continue
3779      ;;
3780    nosideeffect)
3781      # after this tag, mechanisms are not by side-effect, so they'll
3782      # only be used when explicitly requested
3783      if test "x$enable_dependency_tracking" = xyes; then
3784	continue
3785      else
3786	break
3787      fi
3788      ;;
3789    msvisualcpp | msvcmsys)
3790      # This compiler won't grok `-c -o', but also, the minuso test has
3791      # not run yet.  These depmodes are late enough in the game, and
3792      # so weak that their functioning should not be impacted.
3793      am__obj=conftest.${OBJEXT-o}
3794      am__minus_obj=
3795      ;;
3796    none) break ;;
3797    esac
3798    if depmode=$depmode \
3799       source=sub/conftest.c object=$am__obj \
3800       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3801       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3802         >/dev/null 2>conftest.err &&
3803       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3804       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3805       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3806       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3807      # icc doesn't choke on unknown options, it will just issue warnings
3808      # or remarks (even with -Werror).  So we grep stderr for any message
3809      # that says an option was ignored or not supported.
3810      # When given -MP, icc 7.0 and 7.1 complain thusly:
3811      #   icc: Command line warning: ignoring option '-M'; no argument required
3812      # The diagnosis changed in icc 8.0:
3813      #   icc: Command line remark: option '-MP' not supported
3814      if (grep 'ignoring option' conftest.err ||
3815          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3816        am_cv_CC_dependencies_compiler_type=$depmode
3817        break
3818      fi
3819    fi
3820  done
3821
3822  cd ..
3823  rm -rf conftest.dir
3824else
3825  am_cv_CC_dependencies_compiler_type=none
3826fi
3827
3828fi
3829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3830$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3831CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3832
3833 if
3834  test "x$enable_dependency_tracking" != xno \
3835  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3836  am__fastdepCC_TRUE=
3837  am__fastdepCC_FALSE='#'
3838else
3839  am__fastdepCC_TRUE='#'
3840  am__fastdepCC_FALSE=
3841fi
3842
3843
3844
3845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
3846$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
3847if test "${ac_cv_c_const+set}" = set; then :
3848  $as_echo_n "(cached) " >&6
3849else
3850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851/* end confdefs.h.  */
3852
3853int
3854main ()
3855{
3856/* FIXME: Include the comments suggested by Paul. */
3857#ifndef __cplusplus
3858  /* Ultrix mips cc rejects this.  */
3859  typedef int charset[2];
3860  const charset cs;
3861  /* SunOS 4.1.1 cc rejects this.  */
3862  char const *const *pcpcc;
3863  char **ppc;
3864  /* NEC SVR4.0.2 mips cc rejects this.  */
3865  struct point {int x, y;};
3866  static struct point const zero = {0,0};
3867  /* AIX XL C 1.02.0.0 rejects this.
3868     It does not let you subtract one const X* pointer from another in
3869     an arm of an if-expression whose if-part is not a constant
3870     expression */
3871  const char *g = "string";
3872  pcpcc = &g + (g ? g-g : 0);
3873  /* HPUX 7.0 cc rejects these. */
3874  ++pcpcc;
3875  ppc = (char**) pcpcc;
3876  pcpcc = (char const *const *) ppc;
3877  { /* SCO 3.2v4 cc rejects this.  */
3878    char *t;
3879    char const *s = 0 ? (char *) 0 : (char const *) 0;
3880
3881    *t++ = 0;
3882    if (s) return 0;
3883  }
3884  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3885    int x[] = {25, 17};
3886    const int *foo = &x[0];
3887    ++foo;
3888  }
3889  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3890    typedef const int *iptr;
3891    iptr p = 0;
3892    ++p;
3893  }
3894  { /* AIX XL C 1.02.0.0 rejects this saying
3895       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3896    struct s { int j; const int *ap[3]; };
3897    struct s *b; b->j = 5;
3898  }
3899  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3900    const int foo = 10;
3901    if (!foo) return 0;
3902  }
3903  return !cs[0] && !zero.x;
3904#endif
3905
3906  ;
3907  return 0;
3908}
3909_ACEOF
3910if ac_fn_c_try_compile "$LINENO"; then :
3911  ac_cv_c_const=yes
3912else
3913  ac_cv_c_const=no
3914fi
3915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3916fi
3917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
3918$as_echo "$ac_cv_c_const" >&6; }
3919if test $ac_cv_c_const = no; then
3920
3921$as_echo "#define const /**/" >>confdefs.h
3922
3923fi
3924
3925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
3926$as_echo_n "checking for inline... " >&6; }
3927if test "${ac_cv_c_inline+set}" = set; then :
3928  $as_echo_n "(cached) " >&6
3929else
3930  ac_cv_c_inline=no
3931for ac_kw in inline __inline__ __inline; do
3932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933/* end confdefs.h.  */
3934#ifndef __cplusplus
3935typedef int foo_t;
3936static $ac_kw foo_t static_foo () {return 0; }
3937$ac_kw foo_t foo () {return 0; }
3938#endif
3939
3940_ACEOF
3941if ac_fn_c_try_compile "$LINENO"; then :
3942  ac_cv_c_inline=$ac_kw
3943fi
3944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3945  test "$ac_cv_c_inline" != no && break
3946done
3947
3948fi
3949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
3950$as_echo "$ac_cv_c_inline" >&6; }
3951
3952case $ac_cv_c_inline in
3953  inline | yes) ;;
3954  *)
3955    case $ac_cv_c_inline in
3956      no) ac_val=;;
3957      *) ac_val=$ac_cv_c_inline;;
3958    esac
3959    cat >>confdefs.h <<_ACEOF
3960#ifndef __cplusplus
3961#define inline $ac_val
3962#endif
3963_ACEOF
3964    ;;
3965esac
3966
3967case `pwd` in
3968  *\ * | *\	*)
3969    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3970$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3971esac
3972
3973
3974
3975macro_version='2.2.6'
3976macro_revision='1.3012'
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990ltmain="$ac_aux_dir/ltmain.sh"
3991
3992# Make sure we can run config.sub.
3993$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3994  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3995
3996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3997$as_echo_n "checking build system type... " >&6; }
3998if test "${ac_cv_build+set}" = set; then :
3999  $as_echo_n "(cached) " >&6
4000else
4001  ac_build_alias=$build_alias
4002test "x$ac_build_alias" = x &&
4003  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4004test "x$ac_build_alias" = x &&
4005  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4006ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4007  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4008
4009fi
4010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4011$as_echo "$ac_cv_build" >&6; }
4012case $ac_cv_build in
4013*-*-*) ;;
4014*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4015esac
4016build=$ac_cv_build
4017ac_save_IFS=$IFS; IFS='-'
4018set x $ac_cv_build
4019shift
4020build_cpu=$1
4021build_vendor=$2
4022shift; shift
4023# Remember, the first character of IFS is used to create $*,
4024# except with old shells:
4025build_os=$*
4026IFS=$ac_save_IFS
4027case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4028
4029
4030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4031$as_echo_n "checking host system type... " >&6; }
4032if test "${ac_cv_host+set}" = set; then :
4033  $as_echo_n "(cached) " >&6
4034else
4035  if test "x$host_alias" = x; then
4036  ac_cv_host=$ac_cv_build
4037else
4038  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4039    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4040fi
4041
4042fi
4043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4044$as_echo "$ac_cv_host" >&6; }
4045case $ac_cv_host in
4046*-*-*) ;;
4047*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4048esac
4049host=$ac_cv_host
4050ac_save_IFS=$IFS; IFS='-'
4051set x $ac_cv_host
4052shift
4053host_cpu=$1
4054host_vendor=$2
4055shift; shift
4056# Remember, the first character of IFS is used to create $*,
4057# except with old shells:
4058host_os=$*
4059IFS=$ac_save_IFS
4060case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4061
4062
4063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4064$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4065if test "${ac_cv_path_SED+set}" = set; then :
4066  $as_echo_n "(cached) " >&6
4067else
4068            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4069     for ac_i in 1 2 3 4 5 6 7; do
4070       ac_script="$ac_script$as_nl$ac_script"
4071     done
4072     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4073     { ac_script=; unset ac_script;}
4074     if test -z "$SED"; then
4075  ac_path_SED_found=false
4076  # Loop through the user's path and test for each of PROGNAME-LIST
4077  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4078for as_dir in $PATH
4079do
4080  IFS=$as_save_IFS
4081  test -z "$as_dir" && as_dir=.
4082    for ac_prog in sed gsed; do
4083    for ac_exec_ext in '' $ac_executable_extensions; do
4084      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4085      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4086# Check for GNU ac_path_SED and select it if it is found.
4087  # Check for GNU $ac_path_SED
4088case `"$ac_path_SED" --version 2>&1` in
4089*GNU*)
4090  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4091*)
4092  ac_count=0
4093  $as_echo_n 0123456789 >"conftest.in"
4094  while :
4095  do
4096    cat "conftest.in" "conftest.in" >"conftest.tmp"
4097    mv "conftest.tmp" "conftest.in"
4098    cp "conftest.in" "conftest.nl"
4099    $as_echo '' >> "conftest.nl"
4100    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4101    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4102    as_fn_arith $ac_count + 1 && ac_count=$as_val
4103    if test $ac_count -gt ${ac_path_SED_max-0}; then
4104      # Best one so far, save it but keep looking for a better one
4105      ac_cv_path_SED="$ac_path_SED"
4106      ac_path_SED_max=$ac_count
4107    fi
4108    # 10*(2^10) chars as input seems more than enough
4109    test $ac_count -gt 10 && break
4110  done
4111  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4112esac
4113
4114      $ac_path_SED_found && break 3
4115    done
4116  done
4117  done
4118IFS=$as_save_IFS
4119  if test -z "$ac_cv_path_SED"; then
4120    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4121  fi
4122else
4123  ac_cv_path_SED=$SED
4124fi
4125
4126fi
4127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4128$as_echo "$ac_cv_path_SED" >&6; }
4129 SED="$ac_cv_path_SED"
4130  rm -f conftest.sed
4131
4132test -z "$SED" && SED=sed
4133Xsed="$SED -e 1s/^X//"
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4146$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4147if test "${ac_cv_path_GREP+set}" = set; then :
4148  $as_echo_n "(cached) " >&6
4149else
4150  if test -z "$GREP"; then
4151  ac_path_GREP_found=false
4152  # Loop through the user's path and test for each of PROGNAME-LIST
4153  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4155do
4156  IFS=$as_save_IFS
4157  test -z "$as_dir" && as_dir=.
4158    for ac_prog in grep ggrep; do
4159    for ac_exec_ext in '' $ac_executable_extensions; do
4160      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4161      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4162# Check for GNU ac_path_GREP and select it if it is found.
4163  # Check for GNU $ac_path_GREP
4164case `"$ac_path_GREP" --version 2>&1` in
4165*GNU*)
4166  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4167*)
4168  ac_count=0
4169  $as_echo_n 0123456789 >"conftest.in"
4170  while :
4171  do
4172    cat "conftest.in" "conftest.in" >"conftest.tmp"
4173    mv "conftest.tmp" "conftest.in"
4174    cp "conftest.in" "conftest.nl"
4175    $as_echo 'GREP' >> "conftest.nl"
4176    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4177    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4178    as_fn_arith $ac_count + 1 && ac_count=$as_val
4179    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4180      # Best one so far, save it but keep looking for a better one
4181      ac_cv_path_GREP="$ac_path_GREP"
4182      ac_path_GREP_max=$ac_count
4183    fi
4184    # 10*(2^10) chars as input seems more than enough
4185    test $ac_count -gt 10 && break
4186  done
4187  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4188esac
4189
4190      $ac_path_GREP_found && break 3
4191    done
4192  done
4193  done
4194IFS=$as_save_IFS
4195  if test -z "$ac_cv_path_GREP"; then
4196    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4197  fi
4198else
4199  ac_cv_path_GREP=$GREP
4200fi
4201
4202fi
4203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4204$as_echo "$ac_cv_path_GREP" >&6; }
4205 GREP="$ac_cv_path_GREP"
4206
4207
4208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4209$as_echo_n "checking for egrep... " >&6; }
4210if test "${ac_cv_path_EGREP+set}" = set; then :
4211  $as_echo_n "(cached) " >&6
4212else
4213  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4214   then ac_cv_path_EGREP="$GREP -E"
4215   else
4216     if test -z "$EGREP"; then
4217  ac_path_EGREP_found=false
4218  # Loop through the user's path and test for each of PROGNAME-LIST
4219  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4221do
4222  IFS=$as_save_IFS
4223  test -z "$as_dir" && as_dir=.
4224    for ac_prog in egrep; do
4225    for ac_exec_ext in '' $ac_executable_extensions; do
4226      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4227      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4228# Check for GNU ac_path_EGREP and select it if it is found.
4229  # Check for GNU $ac_path_EGREP
4230case `"$ac_path_EGREP" --version 2>&1` in
4231*GNU*)
4232  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4233*)
4234  ac_count=0
4235  $as_echo_n 0123456789 >"conftest.in"
4236  while :
4237  do
4238    cat "conftest.in" "conftest.in" >"conftest.tmp"
4239    mv "conftest.tmp" "conftest.in"
4240    cp "conftest.in" "conftest.nl"
4241    $as_echo 'EGREP' >> "conftest.nl"
4242    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4243    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4244    as_fn_arith $ac_count + 1 && ac_count=$as_val
4245    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4246      # Best one so far, save it but keep looking for a better one
4247      ac_cv_path_EGREP="$ac_path_EGREP"
4248      ac_path_EGREP_max=$ac_count
4249    fi
4250    # 10*(2^10) chars as input seems more than enough
4251    test $ac_count -gt 10 && break
4252  done
4253  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4254esac
4255
4256      $ac_path_EGREP_found && break 3
4257    done
4258  done
4259  done
4260IFS=$as_save_IFS
4261  if test -z "$ac_cv_path_EGREP"; then
4262    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4263  fi
4264else
4265  ac_cv_path_EGREP=$EGREP
4266fi
4267
4268   fi
4269fi
4270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4271$as_echo "$ac_cv_path_EGREP" >&6; }
4272 EGREP="$ac_cv_path_EGREP"
4273
4274
4275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4276$as_echo_n "checking for fgrep... " >&6; }
4277if test "${ac_cv_path_FGREP+set}" = set; then :
4278  $as_echo_n "(cached) " >&6
4279else
4280  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4281   then ac_cv_path_FGREP="$GREP -F"
4282   else
4283     if test -z "$FGREP"; then
4284  ac_path_FGREP_found=false
4285  # Loop through the user's path and test for each of PROGNAME-LIST
4286  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4288do
4289  IFS=$as_save_IFS
4290  test -z "$as_dir" && as_dir=.
4291    for ac_prog in fgrep; do
4292    for ac_exec_ext in '' $ac_executable_extensions; do
4293      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4294      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4295# Check for GNU ac_path_FGREP and select it if it is found.
4296  # Check for GNU $ac_path_FGREP
4297case `"$ac_path_FGREP" --version 2>&1` in
4298*GNU*)
4299  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4300*)
4301  ac_count=0
4302  $as_echo_n 0123456789 >"conftest.in"
4303  while :
4304  do
4305    cat "conftest.in" "conftest.in" >"conftest.tmp"
4306    mv "conftest.tmp" "conftest.in"
4307    cp "conftest.in" "conftest.nl"
4308    $as_echo 'FGREP' >> "conftest.nl"
4309    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4310    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4311    as_fn_arith $ac_count + 1 && ac_count=$as_val
4312    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4313      # Best one so far, save it but keep looking for a better one
4314      ac_cv_path_FGREP="$ac_path_FGREP"
4315      ac_path_FGREP_max=$ac_count
4316    fi
4317    # 10*(2^10) chars as input seems more than enough
4318    test $ac_count -gt 10 && break
4319  done
4320  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4321esac
4322
4323      $ac_path_FGREP_found && break 3
4324    done
4325  done
4326  done
4327IFS=$as_save_IFS
4328  if test -z "$ac_cv_path_FGREP"; then
4329    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4330  fi
4331else
4332  ac_cv_path_FGREP=$FGREP
4333fi
4334
4335   fi
4336fi
4337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4338$as_echo "$ac_cv_path_FGREP" >&6; }
4339 FGREP="$ac_cv_path_FGREP"
4340
4341
4342test -z "$GREP" && GREP=grep
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362# Check whether --with-gnu-ld was given.
4363if test "${with_gnu_ld+set}" = set; then :
4364  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4365else
4366  with_gnu_ld=no
4367fi
4368
4369ac_prog=ld
4370if test "$GCC" = yes; then
4371  # Check if gcc -print-prog-name=ld gives a path.
4372  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4373$as_echo_n "checking for ld used by $CC... " >&6; }
4374  case $host in
4375  *-*-mingw*)
4376    # gcc leaves a trailing carriage return which upsets mingw
4377    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4378  *)
4379    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4380  esac
4381  case $ac_prog in
4382    # Accept absolute paths.
4383    [\\/]* | ?:[\\/]*)
4384      re_direlt='/[^/][^/]*/\.\./'
4385      # Canonicalize the pathname of ld
4386      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4387      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4388	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4389      done
4390      test -z "$LD" && LD="$ac_prog"
4391      ;;
4392  "")
4393    # If it fails, then pretend we aren't using GCC.
4394    ac_prog=ld
4395    ;;
4396  *)
4397    # If it is relative, then search for the first ld in PATH.
4398    with_gnu_ld=unknown
4399    ;;
4400  esac
4401elif test "$with_gnu_ld" = yes; then
4402  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4403$as_echo_n "checking for GNU ld... " >&6; }
4404else
4405  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4406$as_echo_n "checking for non-GNU ld... " >&6; }
4407fi
4408if test "${lt_cv_path_LD+set}" = set; then :
4409  $as_echo_n "(cached) " >&6
4410else
4411  if test -z "$LD"; then
4412  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4413  for ac_dir in $PATH; do
4414    IFS="$lt_save_ifs"
4415    test -z "$ac_dir" && ac_dir=.
4416    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4417      lt_cv_path_LD="$ac_dir/$ac_prog"
4418      # Check to see if the program is GNU ld.  I'd rather use --version,
4419      # but apparently some variants of GNU ld only accept -v.
4420      # Break only if it was the GNU/non-GNU ld that we prefer.
4421      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4422      *GNU* | *'with BFD'*)
4423	test "$with_gnu_ld" != no && break
4424	;;
4425      *)
4426	test "$with_gnu_ld" != yes && break
4427	;;
4428      esac
4429    fi
4430  done
4431  IFS="$lt_save_ifs"
4432else
4433  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4434fi
4435fi
4436
4437LD="$lt_cv_path_LD"
4438if test -n "$LD"; then
4439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4440$as_echo "$LD" >&6; }
4441else
4442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4443$as_echo "no" >&6; }
4444fi
4445test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4447$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4448if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4449  $as_echo_n "(cached) " >&6
4450else
4451  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4452case `$LD -v 2>&1 </dev/null` in
4453*GNU* | *'with BFD'*)
4454  lt_cv_prog_gnu_ld=yes
4455  ;;
4456*)
4457  lt_cv_prog_gnu_ld=no
4458  ;;
4459esac
4460fi
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4462$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4463with_gnu_ld=$lt_cv_prog_gnu_ld
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4474$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4475if test "${lt_cv_path_NM+set}" = set; then :
4476  $as_echo_n "(cached) " >&6
4477else
4478  if test -n "$NM"; then
4479  # Let the user override the test.
4480  lt_cv_path_NM="$NM"
4481else
4482  lt_nm_to_check="${ac_tool_prefix}nm"
4483  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4484    lt_nm_to_check="$lt_nm_to_check nm"
4485  fi
4486  for lt_tmp_nm in $lt_nm_to_check; do
4487    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4488    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4489      IFS="$lt_save_ifs"
4490      test -z "$ac_dir" && ac_dir=.
4491      tmp_nm="$ac_dir/$lt_tmp_nm"
4492      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4493	# Check to see if the nm accepts a BSD-compat flag.
4494	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4495	#   nm: unknown option "B" ignored
4496	# Tru64's nm complains that /dev/null is an invalid object file
4497	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4498	*/dev/null* | *'Invalid file or object type'*)
4499	  lt_cv_path_NM="$tmp_nm -B"
4500	  break
4501	  ;;
4502	*)
4503	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4504	  */dev/null*)
4505	    lt_cv_path_NM="$tmp_nm -p"
4506	    break
4507	    ;;
4508	  *)
4509	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4510	    continue # so that we can try to find one that supports BSD flags
4511	    ;;
4512	  esac
4513	  ;;
4514	esac
4515      fi
4516    done
4517    IFS="$lt_save_ifs"
4518  done
4519  : ${lt_cv_path_NM=no}
4520fi
4521fi
4522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4523$as_echo "$lt_cv_path_NM" >&6; }
4524if test "$lt_cv_path_NM" != "no"; then
4525  NM="$lt_cv_path_NM"
4526else
4527  # Didn't find any BSD compatible name lister, look for dumpbin.
4528  if test -n "$ac_tool_prefix"; then
4529  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4530  do
4531    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4532set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4534$as_echo_n "checking for $ac_word... " >&6; }
4535if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4536  $as_echo_n "(cached) " >&6
4537else
4538  if test -n "$DUMPBIN"; then
4539  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4540else
4541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542for as_dir in $PATH
4543do
4544  IFS=$as_save_IFS
4545  test -z "$as_dir" && as_dir=.
4546    for ac_exec_ext in '' $ac_executable_extensions; do
4547  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4548    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4549    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4550    break 2
4551  fi
4552done
4553  done
4554IFS=$as_save_IFS
4555
4556fi
4557fi
4558DUMPBIN=$ac_cv_prog_DUMPBIN
4559if test -n "$DUMPBIN"; then
4560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4561$as_echo "$DUMPBIN" >&6; }
4562else
4563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4564$as_echo "no" >&6; }
4565fi
4566
4567
4568    test -n "$DUMPBIN" && break
4569  done
4570fi
4571if test -z "$DUMPBIN"; then
4572  ac_ct_DUMPBIN=$DUMPBIN
4573  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4574do
4575  # Extract the first word of "$ac_prog", so it can be a program name with args.
4576set dummy $ac_prog; ac_word=$2
4577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4578$as_echo_n "checking for $ac_word... " >&6; }
4579if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4580  $as_echo_n "(cached) " >&6
4581else
4582  if test -n "$ac_ct_DUMPBIN"; then
4583  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4584else
4585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586for as_dir in $PATH
4587do
4588  IFS=$as_save_IFS
4589  test -z "$as_dir" && as_dir=.
4590    for ac_exec_ext in '' $ac_executable_extensions; do
4591  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4592    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4593    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4594    break 2
4595  fi
4596done
4597  done
4598IFS=$as_save_IFS
4599
4600fi
4601fi
4602ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4603if test -n "$ac_ct_DUMPBIN"; then
4604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4605$as_echo "$ac_ct_DUMPBIN" >&6; }
4606else
4607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4608$as_echo "no" >&6; }
4609fi
4610
4611
4612  test -n "$ac_ct_DUMPBIN" && break
4613done
4614
4615  if test "x$ac_ct_DUMPBIN" = x; then
4616    DUMPBIN=":"
4617  else
4618    case $cross_compiling:$ac_tool_warned in
4619yes:)
4620{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4621$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4622ac_tool_warned=yes ;;
4623esac
4624    DUMPBIN=$ac_ct_DUMPBIN
4625  fi
4626fi
4627
4628
4629  if test "$DUMPBIN" != ":"; then
4630    NM="$DUMPBIN"
4631  fi
4632fi
4633test -z "$NM" && NM=nm
4634
4635
4636
4637
4638
4639
4640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4641$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4642if test "${lt_cv_nm_interface+set}" = set; then :
4643  $as_echo_n "(cached) " >&6
4644else
4645  lt_cv_nm_interface="BSD nm"
4646  echo "int some_variable = 0;" > conftest.$ac_ext
4647  (eval echo "\"\$as_me:4647: $ac_compile\"" >&5)
4648  (eval "$ac_compile" 2>conftest.err)
4649  cat conftest.err >&5
4650  (eval echo "\"\$as_me:4650: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4651  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4652  cat conftest.err >&5
4653  (eval echo "\"\$as_me:4653: output\"" >&5)
4654  cat conftest.out >&5
4655  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4656    lt_cv_nm_interface="MS dumpbin"
4657  fi
4658  rm -f conftest*
4659fi
4660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4661$as_echo "$lt_cv_nm_interface" >&6; }
4662
4663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4664$as_echo_n "checking whether ln -s works... " >&6; }
4665LN_S=$as_ln_s
4666if test "$LN_S" = "ln -s"; then
4667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4668$as_echo "yes" >&6; }
4669else
4670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4671$as_echo "no, using $LN_S" >&6; }
4672fi
4673
4674# find the maximum length of command line arguments
4675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4676$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4677if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4678  $as_echo_n "(cached) " >&6
4679else
4680    i=0
4681  teststring="ABCD"
4682
4683  case $build_os in
4684  msdosdjgpp*)
4685    # On DJGPP, this test can blow up pretty badly due to problems in libc
4686    # (any single argument exceeding 2000 bytes causes a buffer overrun
4687    # during glob expansion).  Even if it were fixed, the result of this
4688    # check would be larger than it should be.
4689    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4690    ;;
4691
4692  gnu*)
4693    # Under GNU Hurd, this test is not required because there is
4694    # no limit to the length of command line arguments.
4695    # Libtool will interpret -1 as no limit whatsoever
4696    lt_cv_sys_max_cmd_len=-1;
4697    ;;
4698
4699  cygwin* | mingw* | cegcc*)
4700    # On Win9x/ME, this test blows up -- it succeeds, but takes
4701    # about 5 minutes as the teststring grows exponentially.
4702    # Worse, since 9x/ME are not pre-emptively multitasking,
4703    # you end up with a "frozen" computer, even though with patience
4704    # the test eventually succeeds (with a max line length of 256k).
4705    # Instead, let's just punt: use the minimum linelength reported by
4706    # all of the supported platforms: 8192 (on NT/2K/XP).
4707    lt_cv_sys_max_cmd_len=8192;
4708    ;;
4709
4710  amigaos*)
4711    # On AmigaOS with pdksh, this test takes hours, literally.
4712    # So we just punt and use a minimum line length of 8192.
4713    lt_cv_sys_max_cmd_len=8192;
4714    ;;
4715
4716  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4717    # This has been around since 386BSD, at least.  Likely further.
4718    if test -x /sbin/sysctl; then
4719      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4720    elif test -x /usr/sbin/sysctl; then
4721      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4722    else
4723      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4724    fi
4725    # And add a safety zone
4726    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4727    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4728    ;;
4729
4730  interix*)
4731    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4732    lt_cv_sys_max_cmd_len=196608
4733    ;;
4734
4735  osf*)
4736    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4737    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4738    # nice to cause kernel panics so lets avoid the loop below.
4739    # First set a reasonable default.
4740    lt_cv_sys_max_cmd_len=16384
4741    #
4742    if test -x /sbin/sysconfig; then
4743      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4744        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4745      esac
4746    fi
4747    ;;
4748  sco3.2v5*)
4749    lt_cv_sys_max_cmd_len=102400
4750    ;;
4751  sysv5* | sco5v6* | sysv4.2uw2*)
4752    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4753    if test -n "$kargmax"; then
4754      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4755    else
4756      lt_cv_sys_max_cmd_len=32768
4757    fi
4758    ;;
4759  *)
4760    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4761    if test -n "$lt_cv_sys_max_cmd_len"; then
4762      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4763      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4764    else
4765      # Make teststring a little bigger before we do anything with it.
4766      # a 1K string should be a reasonable start.
4767      for i in 1 2 3 4 5 6 7 8 ; do
4768        teststring=$teststring$teststring
4769      done
4770      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4771      # If test is not a shell built-in, we'll probably end up computing a
4772      # maximum length that is only half of the actual maximum length, but
4773      # we can't tell.
4774      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4775	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4776	      test $i != 17 # 1/2 MB should be enough
4777      do
4778        i=`expr $i + 1`
4779        teststring=$teststring$teststring
4780      done
4781      # Only check the string length outside the loop.
4782      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4783      teststring=
4784      # Add a significant safety factor because C++ compilers can tack on
4785      # massive amounts of additional arguments before passing them to the
4786      # linker.  It appears as though 1/2 is a usable value.
4787      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4788    fi
4789    ;;
4790  esac
4791
4792fi
4793
4794if test -n $lt_cv_sys_max_cmd_len ; then
4795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4796$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4797else
4798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4799$as_echo "none" >&6; }
4800fi
4801max_cmd_len=$lt_cv_sys_max_cmd_len
4802
4803
4804
4805
4806
4807
4808: ${CP="cp -f"}
4809: ${MV="mv -f"}
4810: ${RM="rm -f"}
4811
4812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4813$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4814# Try some XSI features
4815xsi_shell=no
4816( _lt_dummy="a/b/c"
4817  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4818      = c,a/b,, \
4819    && eval 'test $(( 1 + 1 )) -eq 2 \
4820    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4821  && xsi_shell=yes
4822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4823$as_echo "$xsi_shell" >&6; }
4824
4825
4826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4827$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4828lt_shell_append=no
4829( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4830    >/dev/null 2>&1 \
4831  && lt_shell_append=yes
4832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4833$as_echo "$lt_shell_append" >&6; }
4834
4835
4836if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4837  lt_unset=unset
4838else
4839  lt_unset=false
4840fi
4841
4842
4843
4844
4845
4846# test EBCDIC or ASCII
4847case `echo X|tr X '\101'` in
4848 A) # ASCII based system
4849    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4850  lt_SP2NL='tr \040 \012'
4851  lt_NL2SP='tr \015\012 \040\040'
4852  ;;
4853 *) # EBCDIC based system
4854  lt_SP2NL='tr \100 \n'
4855  lt_NL2SP='tr \r\n \100\100'
4856  ;;
4857esac
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4868$as_echo_n "checking for $LD option to reload object files... " >&6; }
4869if test "${lt_cv_ld_reload_flag+set}" = set; then :
4870  $as_echo_n "(cached) " >&6
4871else
4872  lt_cv_ld_reload_flag='-r'
4873fi
4874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4875$as_echo "$lt_cv_ld_reload_flag" >&6; }
4876reload_flag=$lt_cv_ld_reload_flag
4877case $reload_flag in
4878"" | " "*) ;;
4879*) reload_flag=" $reload_flag" ;;
4880esac
4881reload_cmds='$LD$reload_flag -o $output$reload_objs'
4882case $host_os in
4883  darwin*)
4884    if test "$GCC" = yes; then
4885      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4886    else
4887      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4888    fi
4889    ;;
4890esac
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900if test -n "$ac_tool_prefix"; then
4901  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4902set dummy ${ac_tool_prefix}objdump; ac_word=$2
4903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4904$as_echo_n "checking for $ac_word... " >&6; }
4905if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4906  $as_echo_n "(cached) " >&6
4907else
4908  if test -n "$OBJDUMP"; then
4909  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4910else
4911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912for as_dir in $PATH
4913do
4914  IFS=$as_save_IFS
4915  test -z "$as_dir" && as_dir=.
4916    for ac_exec_ext in '' $ac_executable_extensions; do
4917  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4918    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4919    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4920    break 2
4921  fi
4922done
4923  done
4924IFS=$as_save_IFS
4925
4926fi
4927fi
4928OBJDUMP=$ac_cv_prog_OBJDUMP
4929if test -n "$OBJDUMP"; then
4930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4931$as_echo "$OBJDUMP" >&6; }
4932else
4933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4934$as_echo "no" >&6; }
4935fi
4936
4937
4938fi
4939if test -z "$ac_cv_prog_OBJDUMP"; then
4940  ac_ct_OBJDUMP=$OBJDUMP
4941  # Extract the first word of "objdump", so it can be a program name with args.
4942set dummy objdump; ac_word=$2
4943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4944$as_echo_n "checking for $ac_word... " >&6; }
4945if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4946  $as_echo_n "(cached) " >&6
4947else
4948  if test -n "$ac_ct_OBJDUMP"; then
4949  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4950else
4951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952for as_dir in $PATH
4953do
4954  IFS=$as_save_IFS
4955  test -z "$as_dir" && as_dir=.
4956    for ac_exec_ext in '' $ac_executable_extensions; do
4957  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4958    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4959    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4960    break 2
4961  fi
4962done
4963  done
4964IFS=$as_save_IFS
4965
4966fi
4967fi
4968ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4969if test -n "$ac_ct_OBJDUMP"; then
4970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4971$as_echo "$ac_ct_OBJDUMP" >&6; }
4972else
4973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974$as_echo "no" >&6; }
4975fi
4976
4977  if test "x$ac_ct_OBJDUMP" = x; then
4978    OBJDUMP="false"
4979  else
4980    case $cross_compiling:$ac_tool_warned in
4981yes:)
4982{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4983$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4984ac_tool_warned=yes ;;
4985esac
4986    OBJDUMP=$ac_ct_OBJDUMP
4987  fi
4988else
4989  OBJDUMP="$ac_cv_prog_OBJDUMP"
4990fi
4991
4992test -z "$OBJDUMP" && OBJDUMP=objdump
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5003$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5004if test "${lt_cv_deplibs_check_method+set}" = set; then :
5005  $as_echo_n "(cached) " >&6
5006else
5007  lt_cv_file_magic_cmd='$MAGIC_CMD'
5008lt_cv_file_magic_test_file=
5009lt_cv_deplibs_check_method='unknown'
5010# Need to set the preceding variable on all platforms that support
5011# interlibrary dependencies.
5012# 'none' -- dependencies not supported.
5013# `unknown' -- same as none, but documents that we really don't know.
5014# 'pass_all' -- all dependencies passed with no checks.
5015# 'test_compile' -- check by making test program.
5016# 'file_magic [[regex]]' -- check by looking for files in library path
5017# which responds to the $file_magic_cmd with a given extended regex.
5018# If you have `file' or equivalent on your system and you're not sure
5019# whether `pass_all' will *always* work, you probably want this one.
5020
5021case $host_os in
5022aix[4-9]*)
5023  lt_cv_deplibs_check_method=pass_all
5024  ;;
5025
5026beos*)
5027  lt_cv_deplibs_check_method=pass_all
5028  ;;
5029
5030bsdi[45]*)
5031  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5032  lt_cv_file_magic_cmd='/usr/bin/file -L'
5033  lt_cv_file_magic_test_file=/shlib/libc.so
5034  ;;
5035
5036cygwin*)
5037  # func_win32_libid is a shell function defined in ltmain.sh
5038  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5039  lt_cv_file_magic_cmd='func_win32_libid'
5040  ;;
5041
5042mingw* | pw32*)
5043  # Base MSYS/MinGW do not provide the 'file' command needed by
5044  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5045  # unless we find 'file', for example because we are cross-compiling.
5046  if ( file / ) >/dev/null 2>&1; then
5047    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5048    lt_cv_file_magic_cmd='func_win32_libid'
5049  else
5050    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5051    lt_cv_file_magic_cmd='$OBJDUMP -f'
5052  fi
5053  ;;
5054
5055cegcc)
5056  # use the weaker test based on 'objdump'. See mingw*.
5057  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5058  lt_cv_file_magic_cmd='$OBJDUMP -f'
5059  ;;
5060
5061darwin* | rhapsody*)
5062  lt_cv_deplibs_check_method=pass_all
5063  ;;
5064
5065freebsd* | dragonfly*)
5066  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5067    case $host_cpu in
5068    i*86 )
5069      # Not sure whether the presence of OpenBSD here was a mistake.
5070      # Let's accept both of them until this is cleared up.
5071      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5072      lt_cv_file_magic_cmd=/usr/bin/file
5073      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5074      ;;
5075    esac
5076  else
5077    lt_cv_deplibs_check_method=pass_all
5078  fi
5079  ;;
5080
5081gnu*)
5082  lt_cv_deplibs_check_method=pass_all
5083  ;;
5084
5085hpux10.20* | hpux11*)
5086  lt_cv_file_magic_cmd=/usr/bin/file
5087  case $host_cpu in
5088  ia64*)
5089    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5090    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5091    ;;
5092  hppa*64*)
5093    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]'
5094    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5095    ;;
5096  *)
5097    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5098    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5099    ;;
5100  esac
5101  ;;
5102
5103interix[3-9]*)
5104  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5105  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5106  ;;
5107
5108irix5* | irix6* | nonstopux*)
5109  case $LD in
5110  *-32|*"-32 ") libmagic=32-bit;;
5111  *-n32|*"-n32 ") libmagic=N32;;
5112  *-64|*"-64 ") libmagic=64-bit;;
5113  *) libmagic=never-match;;
5114  esac
5115  lt_cv_deplibs_check_method=pass_all
5116  ;;
5117
5118# This must be Linux ELF.
5119linux* | k*bsd*-gnu)
5120  lt_cv_deplibs_check_method=pass_all
5121  ;;
5122
5123netbsd*)
5124  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5125    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5126  else
5127    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5128  fi
5129  ;;
5130
5131newos6*)
5132  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5133  lt_cv_file_magic_cmd=/usr/bin/file
5134  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5135  ;;
5136
5137*nto* | *qnx*)
5138  lt_cv_deplibs_check_method=pass_all
5139  ;;
5140
5141openbsd*)
5142  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5143    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5144  else
5145    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5146  fi
5147  ;;
5148
5149osf3* | osf4* | osf5*)
5150  lt_cv_deplibs_check_method=pass_all
5151  ;;
5152
5153rdos*)
5154  lt_cv_deplibs_check_method=pass_all
5155  ;;
5156
5157solaris*)
5158  lt_cv_deplibs_check_method=pass_all
5159  ;;
5160
5161sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5162  lt_cv_deplibs_check_method=pass_all
5163  ;;
5164
5165sysv4 | sysv4.3*)
5166  case $host_vendor in
5167  motorola)
5168    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]'
5169    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5170    ;;
5171  ncr)
5172    lt_cv_deplibs_check_method=pass_all
5173    ;;
5174  sequent)
5175    lt_cv_file_magic_cmd='/bin/file'
5176    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5177    ;;
5178  sni)
5179    lt_cv_file_magic_cmd='/bin/file'
5180    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5181    lt_cv_file_magic_test_file=/lib/libc.so
5182    ;;
5183  siemens)
5184    lt_cv_deplibs_check_method=pass_all
5185    ;;
5186  pc)
5187    lt_cv_deplibs_check_method=pass_all
5188    ;;
5189  esac
5190  ;;
5191
5192tpf*)
5193  lt_cv_deplibs_check_method=pass_all
5194  ;;
5195esac
5196
5197fi
5198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5199$as_echo "$lt_cv_deplibs_check_method" >&6; }
5200file_magic_cmd=$lt_cv_file_magic_cmd
5201deplibs_check_method=$lt_cv_deplibs_check_method
5202test -z "$deplibs_check_method" && deplibs_check_method=unknown
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215if test -n "$ac_tool_prefix"; then
5216  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5217set dummy ${ac_tool_prefix}ar; ac_word=$2
5218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5219$as_echo_n "checking for $ac_word... " >&6; }
5220if test "${ac_cv_prog_AR+set}" = set; then :
5221  $as_echo_n "(cached) " >&6
5222else
5223  if test -n "$AR"; then
5224  ac_cv_prog_AR="$AR" # Let the user override the test.
5225else
5226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227for as_dir in $PATH
5228do
5229  IFS=$as_save_IFS
5230  test -z "$as_dir" && as_dir=.
5231    for ac_exec_ext in '' $ac_executable_extensions; do
5232  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5233    ac_cv_prog_AR="${ac_tool_prefix}ar"
5234    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5235    break 2
5236  fi
5237done
5238  done
5239IFS=$as_save_IFS
5240
5241fi
5242fi
5243AR=$ac_cv_prog_AR
5244if test -n "$AR"; then
5245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5246$as_echo "$AR" >&6; }
5247else
5248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249$as_echo "no" >&6; }
5250fi
5251
5252
5253fi
5254if test -z "$ac_cv_prog_AR"; then
5255  ac_ct_AR=$AR
5256  # Extract the first word of "ar", so it can be a program name with args.
5257set dummy ar; ac_word=$2
5258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5259$as_echo_n "checking for $ac_word... " >&6; }
5260if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5261  $as_echo_n "(cached) " >&6
5262else
5263  if test -n "$ac_ct_AR"; then
5264  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5265else
5266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267for as_dir in $PATH
5268do
5269  IFS=$as_save_IFS
5270  test -z "$as_dir" && as_dir=.
5271    for ac_exec_ext in '' $ac_executable_extensions; do
5272  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5273    ac_cv_prog_ac_ct_AR="ar"
5274    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5275    break 2
5276  fi
5277done
5278  done
5279IFS=$as_save_IFS
5280
5281fi
5282fi
5283ac_ct_AR=$ac_cv_prog_ac_ct_AR
5284if test -n "$ac_ct_AR"; then
5285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5286$as_echo "$ac_ct_AR" >&6; }
5287else
5288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5289$as_echo "no" >&6; }
5290fi
5291
5292  if test "x$ac_ct_AR" = x; then
5293    AR="false"
5294  else
5295    case $cross_compiling:$ac_tool_warned in
5296yes:)
5297{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5298$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5299ac_tool_warned=yes ;;
5300esac
5301    AR=$ac_ct_AR
5302  fi
5303else
5304  AR="$ac_cv_prog_AR"
5305fi
5306
5307test -z "$AR" && AR=ar
5308test -z "$AR_FLAGS" && AR_FLAGS=cru
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320if test -n "$ac_tool_prefix"; then
5321  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5322set dummy ${ac_tool_prefix}strip; ac_word=$2
5323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5324$as_echo_n "checking for $ac_word... " >&6; }
5325if test "${ac_cv_prog_STRIP+set}" = set; then :
5326  $as_echo_n "(cached) " >&6
5327else
5328  if test -n "$STRIP"; then
5329  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5330else
5331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332for as_dir in $PATH
5333do
5334  IFS=$as_save_IFS
5335  test -z "$as_dir" && as_dir=.
5336    for ac_exec_ext in '' $ac_executable_extensions; do
5337  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5338    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5339    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5340    break 2
5341  fi
5342done
5343  done
5344IFS=$as_save_IFS
5345
5346fi
5347fi
5348STRIP=$ac_cv_prog_STRIP
5349if test -n "$STRIP"; then
5350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5351$as_echo "$STRIP" >&6; }
5352else
5353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5354$as_echo "no" >&6; }
5355fi
5356
5357
5358fi
5359if test -z "$ac_cv_prog_STRIP"; then
5360  ac_ct_STRIP=$STRIP
5361  # Extract the first word of "strip", so it can be a program name with args.
5362set dummy strip; ac_word=$2
5363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5364$as_echo_n "checking for $ac_word... " >&6; }
5365if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5366  $as_echo_n "(cached) " >&6
5367else
5368  if test -n "$ac_ct_STRIP"; then
5369  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5370else
5371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372for as_dir in $PATH
5373do
5374  IFS=$as_save_IFS
5375  test -z "$as_dir" && as_dir=.
5376    for ac_exec_ext in '' $ac_executable_extensions; do
5377  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5378    ac_cv_prog_ac_ct_STRIP="strip"
5379    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5380    break 2
5381  fi
5382done
5383  done
5384IFS=$as_save_IFS
5385
5386fi
5387fi
5388ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5389if test -n "$ac_ct_STRIP"; then
5390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5391$as_echo "$ac_ct_STRIP" >&6; }
5392else
5393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5394$as_echo "no" >&6; }
5395fi
5396
5397  if test "x$ac_ct_STRIP" = x; then
5398    STRIP=":"
5399  else
5400    case $cross_compiling:$ac_tool_warned in
5401yes:)
5402{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5403$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5404ac_tool_warned=yes ;;
5405esac
5406    STRIP=$ac_ct_STRIP
5407  fi
5408else
5409  STRIP="$ac_cv_prog_STRIP"
5410fi
5411
5412test -z "$STRIP" && STRIP=:
5413
5414
5415
5416
5417
5418
5419if test -n "$ac_tool_prefix"; then
5420  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5421set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5423$as_echo_n "checking for $ac_word... " >&6; }
5424if test "${ac_cv_prog_RANLIB+set}" = set; then :
5425  $as_echo_n "(cached) " >&6
5426else
5427  if test -n "$RANLIB"; then
5428  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5429else
5430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431for as_dir in $PATH
5432do
5433  IFS=$as_save_IFS
5434  test -z "$as_dir" && as_dir=.
5435    for ac_exec_ext in '' $ac_executable_extensions; do
5436  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5437    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5438    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5439    break 2
5440  fi
5441done
5442  done
5443IFS=$as_save_IFS
5444
5445fi
5446fi
5447RANLIB=$ac_cv_prog_RANLIB
5448if test -n "$RANLIB"; then
5449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5450$as_echo "$RANLIB" >&6; }
5451else
5452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5453$as_echo "no" >&6; }
5454fi
5455
5456
5457fi
5458if test -z "$ac_cv_prog_RANLIB"; then
5459  ac_ct_RANLIB=$RANLIB
5460  # Extract the first word of "ranlib", so it can be a program name with args.
5461set dummy ranlib; ac_word=$2
5462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5463$as_echo_n "checking for $ac_word... " >&6; }
5464if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5465  $as_echo_n "(cached) " >&6
5466else
5467  if test -n "$ac_ct_RANLIB"; then
5468  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5469else
5470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471for as_dir in $PATH
5472do
5473  IFS=$as_save_IFS
5474  test -z "$as_dir" && as_dir=.
5475    for ac_exec_ext in '' $ac_executable_extensions; do
5476  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5477    ac_cv_prog_ac_ct_RANLIB="ranlib"
5478    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5479    break 2
5480  fi
5481done
5482  done
5483IFS=$as_save_IFS
5484
5485fi
5486fi
5487ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5488if test -n "$ac_ct_RANLIB"; then
5489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5490$as_echo "$ac_ct_RANLIB" >&6; }
5491else
5492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5493$as_echo "no" >&6; }
5494fi
5495
5496  if test "x$ac_ct_RANLIB" = x; then
5497    RANLIB=":"
5498  else
5499    case $cross_compiling:$ac_tool_warned in
5500yes:)
5501{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5502$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5503ac_tool_warned=yes ;;
5504esac
5505    RANLIB=$ac_ct_RANLIB
5506  fi
5507else
5508  RANLIB="$ac_cv_prog_RANLIB"
5509fi
5510
5511test -z "$RANLIB" && RANLIB=:
5512
5513
5514
5515
5516
5517
5518# Determine commands to create old-style static archives.
5519old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5520old_postinstall_cmds='chmod 644 $oldlib'
5521old_postuninstall_cmds=
5522
5523if test -n "$RANLIB"; then
5524  case $host_os in
5525  openbsd*)
5526    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5527    ;;
5528  *)
5529    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5530    ;;
5531  esac
5532  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5533fi
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568# If no C compiler was specified, use CC.
5569LTCC=${LTCC-"$CC"}
5570
5571# If no C compiler flags were specified, use CFLAGS.
5572LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5573
5574# Allow CC to be a program name with arguments.
5575compiler=$CC
5576
5577
5578# Check for command to grab the raw symbol name followed by C symbol from nm.
5579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5580$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5581if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5582  $as_echo_n "(cached) " >&6
5583else
5584
5585# These are sane defaults that work on at least a few old systems.
5586# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5587
5588# Character class describing NM global symbol codes.
5589symcode='[BCDEGRST]'
5590
5591# Regexp to match symbols that can be accessed directly from C.
5592sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5593
5594# Define system-specific variables.
5595case $host_os in
5596aix*)
5597  symcode='[BCDT]'
5598  ;;
5599cygwin* | mingw* | pw32* | cegcc*)
5600  symcode='[ABCDGISTW]'
5601  ;;
5602hpux*)
5603  if test "$host_cpu" = ia64; then
5604    symcode='[ABCDEGRST]'
5605  fi
5606  ;;
5607irix* | nonstopux*)
5608  symcode='[BCDEGRST]'
5609  ;;
5610osf*)
5611  symcode='[BCDEGQRST]'
5612  ;;
5613solaris*)
5614  symcode='[BDRT]'
5615  ;;
5616sco3.2v5*)
5617  symcode='[DT]'
5618  ;;
5619sysv4.2uw2*)
5620  symcode='[DT]'
5621  ;;
5622sysv5* | sco5v6* | unixware* | OpenUNIX*)
5623  symcode='[ABDT]'
5624  ;;
5625sysv4)
5626  symcode='[DFNSTU]'
5627  ;;
5628esac
5629
5630# If we're using GNU nm, then use its standard symbol codes.
5631case `$NM -V 2>&1` in
5632*GNU* | *'with BFD'*)
5633  symcode='[ABCDGIRSTW]' ;;
5634esac
5635
5636# Transform an extracted symbol line into a proper C declaration.
5637# Some systems (esp. on ia64) link data and code symbols differently,
5638# so use this general approach.
5639lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5640
5641# Transform an extracted symbol line into symbol name and symbol address
5642lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5643lt_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'"
5644
5645# Handle CRLF in mingw tool chain
5646opt_cr=
5647case $build_os in
5648mingw*)
5649  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5650  ;;
5651esac
5652
5653# Try without a prefix underscore, then with it.
5654for ac_symprfx in "" "_"; do
5655
5656  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5657  symxfrm="\\1 $ac_symprfx\\2 \\2"
5658
5659  # Write the raw and C identifiers.
5660  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5661    # Fake it for dumpbin and say T for any non-static function
5662    # and D for any global variable.
5663    # Also find C++ and __fastcall symbols from MSVC++,
5664    # which start with @ or ?.
5665    lt_cv_sys_global_symbol_pipe="$AWK '"\
5666"     {last_section=section; section=\$ 3};"\
5667"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5668"     \$ 0!~/External *\|/{next};"\
5669"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5670"     {if(hide[section]) next};"\
5671"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5672"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5673"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5674"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5675"     ' prfx=^$ac_symprfx"
5676  else
5677    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5678  fi
5679
5680  # Check to see that the pipe works correctly.
5681  pipe_works=no
5682
5683  rm -f conftest*
5684  cat > conftest.$ac_ext <<_LT_EOF
5685#ifdef __cplusplus
5686extern "C" {
5687#endif
5688char nm_test_var;
5689void nm_test_func(void);
5690void nm_test_func(void){}
5691#ifdef __cplusplus
5692}
5693#endif
5694int main(){nm_test_var='a';nm_test_func();return(0);}
5695_LT_EOF
5696
5697  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5698  (eval $ac_compile) 2>&5
5699  ac_status=$?
5700  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5701  test $ac_status = 0; }; then
5702    # Now try to grab the symbols.
5703    nlist=conftest.nm
5704    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5705  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5706  ac_status=$?
5707  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5708  test $ac_status = 0; } && test -s "$nlist"; then
5709      # Try sorting and uniquifying the output.
5710      if sort "$nlist" | uniq > "$nlist"T; then
5711	mv -f "$nlist"T "$nlist"
5712      else
5713	rm -f "$nlist"T
5714      fi
5715
5716      # Make sure that we snagged all the symbols we need.
5717      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5718	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5719	  cat <<_LT_EOF > conftest.$ac_ext
5720#ifdef __cplusplus
5721extern "C" {
5722#endif
5723
5724_LT_EOF
5725	  # Now generate the symbol file.
5726	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5727
5728	  cat <<_LT_EOF >> conftest.$ac_ext
5729
5730/* The mapping between symbol names and symbols.  */
5731const struct {
5732  const char *name;
5733  void       *address;
5734}
5735lt__PROGRAM__LTX_preloaded_symbols[] =
5736{
5737  { "@PROGRAM@", (void *) 0 },
5738_LT_EOF
5739	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5740	  cat <<\_LT_EOF >> conftest.$ac_ext
5741  {0, (void *) 0}
5742};
5743
5744/* This works around a problem in FreeBSD linker */
5745#ifdef FREEBSD_WORKAROUND
5746static const void *lt_preloaded_setup() {
5747  return lt__PROGRAM__LTX_preloaded_symbols;
5748}
5749#endif
5750
5751#ifdef __cplusplus
5752}
5753#endif
5754_LT_EOF
5755	  # Now try linking the two files.
5756	  mv conftest.$ac_objext conftstm.$ac_objext
5757	  lt_save_LIBS="$LIBS"
5758	  lt_save_CFLAGS="$CFLAGS"
5759	  LIBS="conftstm.$ac_objext"
5760	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5761	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5762  (eval $ac_link) 2>&5
5763  ac_status=$?
5764  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5765  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5766	    pipe_works=yes
5767	  fi
5768	  LIBS="$lt_save_LIBS"
5769	  CFLAGS="$lt_save_CFLAGS"
5770	else
5771	  echo "cannot find nm_test_func in $nlist" >&5
5772	fi
5773      else
5774	echo "cannot find nm_test_var in $nlist" >&5
5775      fi
5776    else
5777      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5778    fi
5779  else
5780    echo "$progname: failed program was:" >&5
5781    cat conftest.$ac_ext >&5
5782  fi
5783  rm -rf conftest* conftst*
5784
5785  # Do not use the global_symbol_pipe unless it works.
5786  if test "$pipe_works" = yes; then
5787    break
5788  else
5789    lt_cv_sys_global_symbol_pipe=
5790  fi
5791done
5792
5793fi
5794
5795if test -z "$lt_cv_sys_global_symbol_pipe"; then
5796  lt_cv_sys_global_symbol_to_cdecl=
5797fi
5798if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5800$as_echo "failed" >&6; }
5801else
5802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5803$as_echo "ok" >&6; }
5804fi
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827# Check whether --enable-libtool-lock was given.
5828if test "${enable_libtool_lock+set}" = set; then :
5829  enableval=$enable_libtool_lock;
5830fi
5831
5832test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5833
5834# Some flags need to be propagated to the compiler or linker for good
5835# libtool support.
5836case $host in
5837ia64-*-hpux*)
5838  # Find out which ABI we are using.
5839  echo 'int i;' > conftest.$ac_ext
5840  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5841  (eval $ac_compile) 2>&5
5842  ac_status=$?
5843  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5844  test $ac_status = 0; }; then
5845    case `/usr/bin/file conftest.$ac_objext` in
5846      *ELF-32*)
5847	HPUX_IA64_MODE="32"
5848	;;
5849      *ELF-64*)
5850	HPUX_IA64_MODE="64"
5851	;;
5852    esac
5853  fi
5854  rm -rf conftest*
5855  ;;
5856*-*-irix6*)
5857  # Find out which ABI we are using.
5858  echo '#line 5858 "configure"' > conftest.$ac_ext
5859  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5860  (eval $ac_compile) 2>&5
5861  ac_status=$?
5862  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5863  test $ac_status = 0; }; then
5864    if test "$lt_cv_prog_gnu_ld" = yes; then
5865      case `/usr/bin/file conftest.$ac_objext` in
5866	*32-bit*)
5867	  LD="${LD-ld} -melf32bsmip"
5868	  ;;
5869	*N32*)
5870	  LD="${LD-ld} -melf32bmipn32"
5871	  ;;
5872	*64-bit*)
5873	  LD="${LD-ld} -melf64bmip"
5874	;;
5875      esac
5876    else
5877      case `/usr/bin/file conftest.$ac_objext` in
5878	*32-bit*)
5879	  LD="${LD-ld} -32"
5880	  ;;
5881	*N32*)
5882	  LD="${LD-ld} -n32"
5883	  ;;
5884	*64-bit*)
5885	  LD="${LD-ld} -64"
5886	  ;;
5887      esac
5888    fi
5889  fi
5890  rm -rf conftest*
5891  ;;
5892
5893x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5894s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5895  # Find out which ABI we are using.
5896  echo 'int i;' > conftest.$ac_ext
5897  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5898  (eval $ac_compile) 2>&5
5899  ac_status=$?
5900  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5901  test $ac_status = 0; }; then
5902    case `/usr/bin/file conftest.o` in
5903      *32-bit*)
5904	case $host in
5905	  x86_64-*kfreebsd*-gnu)
5906	    LD="${LD-ld} -m elf_i386_fbsd"
5907	    ;;
5908	  x86_64-*linux*)
5909	    LD="${LD-ld} -m elf_i386"
5910	    ;;
5911	  ppc64-*linux*|powerpc64-*linux*)
5912	    LD="${LD-ld} -m elf32ppclinux"
5913	    ;;
5914	  s390x-*linux*)
5915	    LD="${LD-ld} -m elf_s390"
5916	    ;;
5917	  sparc64-*linux*)
5918	    LD="${LD-ld} -m elf32_sparc"
5919	    ;;
5920	esac
5921	;;
5922      *64-bit*)
5923	case $host in
5924	  x86_64-*kfreebsd*-gnu)
5925	    LD="${LD-ld} -m elf_x86_64_fbsd"
5926	    ;;
5927	  x86_64-*linux*)
5928	    LD="${LD-ld} -m elf_x86_64"
5929	    ;;
5930	  ppc*-*linux*|powerpc*-*linux*)
5931	    LD="${LD-ld} -m elf64ppc"
5932	    ;;
5933	  s390*-*linux*|s390*-*tpf*)
5934	    LD="${LD-ld} -m elf64_s390"
5935	    ;;
5936	  sparc*-*linux*)
5937	    LD="${LD-ld} -m elf64_sparc"
5938	    ;;
5939	esac
5940	;;
5941    esac
5942  fi
5943  rm -rf conftest*
5944  ;;
5945
5946*-*-sco3.2v5*)
5947  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5948  SAVE_CFLAGS="$CFLAGS"
5949  CFLAGS="$CFLAGS -belf"
5950  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5951$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5952if test "${lt_cv_cc_needs_belf+set}" = set; then :
5953  $as_echo_n "(cached) " >&6
5954else
5955  ac_ext=c
5956ac_cpp='$CPP $CPPFLAGS'
5957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5959ac_compiler_gnu=$ac_cv_c_compiler_gnu
5960
5961     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5962/* end confdefs.h.  */
5963
5964int
5965main ()
5966{
5967
5968  ;
5969  return 0;
5970}
5971_ACEOF
5972if ac_fn_c_try_link "$LINENO"; then :
5973  lt_cv_cc_needs_belf=yes
5974else
5975  lt_cv_cc_needs_belf=no
5976fi
5977rm -f core conftest.err conftest.$ac_objext \
5978    conftest$ac_exeext conftest.$ac_ext
5979     ac_ext=c
5980ac_cpp='$CPP $CPPFLAGS'
5981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5983ac_compiler_gnu=$ac_cv_c_compiler_gnu
5984
5985fi
5986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5987$as_echo "$lt_cv_cc_needs_belf" >&6; }
5988  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5989    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5990    CFLAGS="$SAVE_CFLAGS"
5991  fi
5992  ;;
5993sparc*-*solaris*)
5994  # Find out which ABI we are using.
5995  echo 'int i;' > conftest.$ac_ext
5996  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5997  (eval $ac_compile) 2>&5
5998  ac_status=$?
5999  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6000  test $ac_status = 0; }; then
6001    case `/usr/bin/file conftest.o` in
6002    *64-bit*)
6003      case $lt_cv_prog_gnu_ld in
6004      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6005      *)
6006	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6007	  LD="${LD-ld} -64"
6008	fi
6009	;;
6010      esac
6011      ;;
6012    esac
6013  fi
6014  rm -rf conftest*
6015  ;;
6016esac
6017
6018need_locks="$enable_libtool_lock"
6019
6020
6021  case $host_os in
6022    rhapsody* | darwin*)
6023    if test -n "$ac_tool_prefix"; then
6024  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6025set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6027$as_echo_n "checking for $ac_word... " >&6; }
6028if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6029  $as_echo_n "(cached) " >&6
6030else
6031  if test -n "$DSYMUTIL"; then
6032  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6033else
6034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6035for as_dir in $PATH
6036do
6037  IFS=$as_save_IFS
6038  test -z "$as_dir" && as_dir=.
6039    for ac_exec_ext in '' $ac_executable_extensions; do
6040  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6041    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6042    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6043    break 2
6044  fi
6045done
6046  done
6047IFS=$as_save_IFS
6048
6049fi
6050fi
6051DSYMUTIL=$ac_cv_prog_DSYMUTIL
6052if test -n "$DSYMUTIL"; then
6053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6054$as_echo "$DSYMUTIL" >&6; }
6055else
6056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6057$as_echo "no" >&6; }
6058fi
6059
6060
6061fi
6062if test -z "$ac_cv_prog_DSYMUTIL"; then
6063  ac_ct_DSYMUTIL=$DSYMUTIL
6064  # Extract the first word of "dsymutil", so it can be a program name with args.
6065set dummy dsymutil; ac_word=$2
6066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6067$as_echo_n "checking for $ac_word... " >&6; }
6068if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6069  $as_echo_n "(cached) " >&6
6070else
6071  if test -n "$ac_ct_DSYMUTIL"; then
6072  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6073else
6074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6075for as_dir in $PATH
6076do
6077  IFS=$as_save_IFS
6078  test -z "$as_dir" && as_dir=.
6079    for ac_exec_ext in '' $ac_executable_extensions; do
6080  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6081    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6082    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6083    break 2
6084  fi
6085done
6086  done
6087IFS=$as_save_IFS
6088
6089fi
6090fi
6091ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6092if test -n "$ac_ct_DSYMUTIL"; then
6093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6094$as_echo "$ac_ct_DSYMUTIL" >&6; }
6095else
6096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6097$as_echo "no" >&6; }
6098fi
6099
6100  if test "x$ac_ct_DSYMUTIL" = x; then
6101    DSYMUTIL=":"
6102  else
6103    case $cross_compiling:$ac_tool_warned in
6104yes:)
6105{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6106$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6107ac_tool_warned=yes ;;
6108esac
6109    DSYMUTIL=$ac_ct_DSYMUTIL
6110  fi
6111else
6112  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6113fi
6114
6115    if test -n "$ac_tool_prefix"; then
6116  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6117set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6119$as_echo_n "checking for $ac_word... " >&6; }
6120if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6121  $as_echo_n "(cached) " >&6
6122else
6123  if test -n "$NMEDIT"; then
6124  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6125else
6126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127for as_dir in $PATH
6128do
6129  IFS=$as_save_IFS
6130  test -z "$as_dir" && as_dir=.
6131    for ac_exec_ext in '' $ac_executable_extensions; do
6132  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6133    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6134    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6135    break 2
6136  fi
6137done
6138  done
6139IFS=$as_save_IFS
6140
6141fi
6142fi
6143NMEDIT=$ac_cv_prog_NMEDIT
6144if test -n "$NMEDIT"; then
6145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6146$as_echo "$NMEDIT" >&6; }
6147else
6148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6149$as_echo "no" >&6; }
6150fi
6151
6152
6153fi
6154if test -z "$ac_cv_prog_NMEDIT"; then
6155  ac_ct_NMEDIT=$NMEDIT
6156  # Extract the first word of "nmedit", so it can be a program name with args.
6157set dummy nmedit; ac_word=$2
6158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6159$as_echo_n "checking for $ac_word... " >&6; }
6160if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6161  $as_echo_n "(cached) " >&6
6162else
6163  if test -n "$ac_ct_NMEDIT"; then
6164  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6165else
6166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6167for as_dir in $PATH
6168do
6169  IFS=$as_save_IFS
6170  test -z "$as_dir" && as_dir=.
6171    for ac_exec_ext in '' $ac_executable_extensions; do
6172  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6173    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6174    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6175    break 2
6176  fi
6177done
6178  done
6179IFS=$as_save_IFS
6180
6181fi
6182fi
6183ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6184if test -n "$ac_ct_NMEDIT"; then
6185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6186$as_echo "$ac_ct_NMEDIT" >&6; }
6187else
6188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6189$as_echo "no" >&6; }
6190fi
6191
6192  if test "x$ac_ct_NMEDIT" = x; then
6193    NMEDIT=":"
6194  else
6195    case $cross_compiling:$ac_tool_warned in
6196yes:)
6197{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6198$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6199ac_tool_warned=yes ;;
6200esac
6201    NMEDIT=$ac_ct_NMEDIT
6202  fi
6203else
6204  NMEDIT="$ac_cv_prog_NMEDIT"
6205fi
6206
6207    if test -n "$ac_tool_prefix"; then
6208  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6209set dummy ${ac_tool_prefix}lipo; ac_word=$2
6210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6211$as_echo_n "checking for $ac_word... " >&6; }
6212if test "${ac_cv_prog_LIPO+set}" = set; then :
6213  $as_echo_n "(cached) " >&6
6214else
6215  if test -n "$LIPO"; then
6216  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6217else
6218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219for as_dir in $PATH
6220do
6221  IFS=$as_save_IFS
6222  test -z "$as_dir" && as_dir=.
6223    for ac_exec_ext in '' $ac_executable_extensions; do
6224  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6225    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6226    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6227    break 2
6228  fi
6229done
6230  done
6231IFS=$as_save_IFS
6232
6233fi
6234fi
6235LIPO=$ac_cv_prog_LIPO
6236if test -n "$LIPO"; then
6237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6238$as_echo "$LIPO" >&6; }
6239else
6240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6241$as_echo "no" >&6; }
6242fi
6243
6244
6245fi
6246if test -z "$ac_cv_prog_LIPO"; then
6247  ac_ct_LIPO=$LIPO
6248  # Extract the first word of "lipo", so it can be a program name with args.
6249set dummy lipo; ac_word=$2
6250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6251$as_echo_n "checking for $ac_word... " >&6; }
6252if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6253  $as_echo_n "(cached) " >&6
6254else
6255  if test -n "$ac_ct_LIPO"; then
6256  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6257else
6258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259for as_dir in $PATH
6260do
6261  IFS=$as_save_IFS
6262  test -z "$as_dir" && as_dir=.
6263    for ac_exec_ext in '' $ac_executable_extensions; do
6264  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6265    ac_cv_prog_ac_ct_LIPO="lipo"
6266    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6267    break 2
6268  fi
6269done
6270  done
6271IFS=$as_save_IFS
6272
6273fi
6274fi
6275ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6276if test -n "$ac_ct_LIPO"; then
6277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6278$as_echo "$ac_ct_LIPO" >&6; }
6279else
6280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6281$as_echo "no" >&6; }
6282fi
6283
6284  if test "x$ac_ct_LIPO" = x; then
6285    LIPO=":"
6286  else
6287    case $cross_compiling:$ac_tool_warned in
6288yes:)
6289{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6290$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6291ac_tool_warned=yes ;;
6292esac
6293    LIPO=$ac_ct_LIPO
6294  fi
6295else
6296  LIPO="$ac_cv_prog_LIPO"
6297fi
6298
6299    if test -n "$ac_tool_prefix"; then
6300  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6301set dummy ${ac_tool_prefix}otool; ac_word=$2
6302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6303$as_echo_n "checking for $ac_word... " >&6; }
6304if test "${ac_cv_prog_OTOOL+set}" = set; then :
6305  $as_echo_n "(cached) " >&6
6306else
6307  if test -n "$OTOOL"; then
6308  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6309else
6310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311for as_dir in $PATH
6312do
6313  IFS=$as_save_IFS
6314  test -z "$as_dir" && as_dir=.
6315    for ac_exec_ext in '' $ac_executable_extensions; do
6316  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6317    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6318    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6319    break 2
6320  fi
6321done
6322  done
6323IFS=$as_save_IFS
6324
6325fi
6326fi
6327OTOOL=$ac_cv_prog_OTOOL
6328if test -n "$OTOOL"; then
6329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6330$as_echo "$OTOOL" >&6; }
6331else
6332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6333$as_echo "no" >&6; }
6334fi
6335
6336
6337fi
6338if test -z "$ac_cv_prog_OTOOL"; then
6339  ac_ct_OTOOL=$OTOOL
6340  # Extract the first word of "otool", so it can be a program name with args.
6341set dummy otool; ac_word=$2
6342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6343$as_echo_n "checking for $ac_word... " >&6; }
6344if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6345  $as_echo_n "(cached) " >&6
6346else
6347  if test -n "$ac_ct_OTOOL"; then
6348  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6349else
6350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351for as_dir in $PATH
6352do
6353  IFS=$as_save_IFS
6354  test -z "$as_dir" && as_dir=.
6355    for ac_exec_ext in '' $ac_executable_extensions; do
6356  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6357    ac_cv_prog_ac_ct_OTOOL="otool"
6358    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6359    break 2
6360  fi
6361done
6362  done
6363IFS=$as_save_IFS
6364
6365fi
6366fi
6367ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6368if test -n "$ac_ct_OTOOL"; then
6369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6370$as_echo "$ac_ct_OTOOL" >&6; }
6371else
6372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6373$as_echo "no" >&6; }
6374fi
6375
6376  if test "x$ac_ct_OTOOL" = x; then
6377    OTOOL=":"
6378  else
6379    case $cross_compiling:$ac_tool_warned in
6380yes:)
6381{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6382$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6383ac_tool_warned=yes ;;
6384esac
6385    OTOOL=$ac_ct_OTOOL
6386  fi
6387else
6388  OTOOL="$ac_cv_prog_OTOOL"
6389fi
6390
6391    if test -n "$ac_tool_prefix"; then
6392  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6393set dummy ${ac_tool_prefix}otool64; ac_word=$2
6394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6395$as_echo_n "checking for $ac_word... " >&6; }
6396if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6397  $as_echo_n "(cached) " >&6
6398else
6399  if test -n "$OTOOL64"; then
6400  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6401else
6402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403for as_dir in $PATH
6404do
6405  IFS=$as_save_IFS
6406  test -z "$as_dir" && as_dir=.
6407    for ac_exec_ext in '' $ac_executable_extensions; do
6408  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6409    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6410    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6411    break 2
6412  fi
6413done
6414  done
6415IFS=$as_save_IFS
6416
6417fi
6418fi
6419OTOOL64=$ac_cv_prog_OTOOL64
6420if test -n "$OTOOL64"; then
6421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6422$as_echo "$OTOOL64" >&6; }
6423else
6424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6425$as_echo "no" >&6; }
6426fi
6427
6428
6429fi
6430if test -z "$ac_cv_prog_OTOOL64"; then
6431  ac_ct_OTOOL64=$OTOOL64
6432  # Extract the first word of "otool64", so it can be a program name with args.
6433set dummy otool64; ac_word=$2
6434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6435$as_echo_n "checking for $ac_word... " >&6; }
6436if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6437  $as_echo_n "(cached) " >&6
6438else
6439  if test -n "$ac_ct_OTOOL64"; then
6440  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6441else
6442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443for as_dir in $PATH
6444do
6445  IFS=$as_save_IFS
6446  test -z "$as_dir" && as_dir=.
6447    for ac_exec_ext in '' $ac_executable_extensions; do
6448  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6449    ac_cv_prog_ac_ct_OTOOL64="otool64"
6450    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6451    break 2
6452  fi
6453done
6454  done
6455IFS=$as_save_IFS
6456
6457fi
6458fi
6459ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6460if test -n "$ac_ct_OTOOL64"; then
6461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6462$as_echo "$ac_ct_OTOOL64" >&6; }
6463else
6464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6465$as_echo "no" >&6; }
6466fi
6467
6468  if test "x$ac_ct_OTOOL64" = x; then
6469    OTOOL64=":"
6470  else
6471    case $cross_compiling:$ac_tool_warned in
6472yes:)
6473{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6474$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6475ac_tool_warned=yes ;;
6476esac
6477    OTOOL64=$ac_ct_OTOOL64
6478  fi
6479else
6480  OTOOL64="$ac_cv_prog_OTOOL64"
6481fi
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6510$as_echo_n "checking for -single_module linker flag... " >&6; }
6511if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6512  $as_echo_n "(cached) " >&6
6513else
6514  lt_cv_apple_cc_single_mod=no
6515      if test -z "${LT_MULTI_MODULE}"; then
6516	# By default we will add the -single_module flag. You can override
6517	# by either setting the environment variable LT_MULTI_MODULE
6518	# non-empty at configure time, or by adding -multi_module to the
6519	# link flags.
6520	rm -rf libconftest.dylib*
6521	echo "int foo(void){return 1;}" > conftest.c
6522	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6523-dynamiclib -Wl,-single_module conftest.c" >&5
6524	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6525	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6526        _lt_result=$?
6527	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6528	  lt_cv_apple_cc_single_mod=yes
6529	else
6530	  cat conftest.err >&5
6531	fi
6532	rm -rf libconftest.dylib*
6533	rm -f conftest.*
6534      fi
6535fi
6536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6537$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6538    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6539$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6540if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6541  $as_echo_n "(cached) " >&6
6542else
6543  lt_cv_ld_exported_symbols_list=no
6544      save_LDFLAGS=$LDFLAGS
6545      echo "_main" > conftest.sym
6546      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6547      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6548/* end confdefs.h.  */
6549
6550int
6551main ()
6552{
6553
6554  ;
6555  return 0;
6556}
6557_ACEOF
6558if ac_fn_c_try_link "$LINENO"; then :
6559  lt_cv_ld_exported_symbols_list=yes
6560else
6561  lt_cv_ld_exported_symbols_list=no
6562fi
6563rm -f core conftest.err conftest.$ac_objext \
6564    conftest$ac_exeext conftest.$ac_ext
6565	LDFLAGS="$save_LDFLAGS"
6566
6567fi
6568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6569$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6570    case $host_os in
6571    rhapsody* | darwin1.[012])
6572      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6573    darwin1.*)
6574      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6575    darwin*) # darwin 5.x on
6576      # if running on 10.5 or later, the deployment target defaults
6577      # to the OS version, if on x86, and 10.4, the deployment
6578      # target defaults to 10.4. Don't you love it?
6579      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6580	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6581	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6582	10.[012]*)
6583	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6584	10.*)
6585	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6586      esac
6587    ;;
6588  esac
6589    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6590      _lt_dar_single_mod='$single_module'
6591    fi
6592    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6593      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6594    else
6595      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6596    fi
6597    if test "$DSYMUTIL" != ":"; then
6598      _lt_dsymutil='~$DSYMUTIL $lib || :'
6599    else
6600      _lt_dsymutil=
6601    fi
6602    ;;
6603  esac
6604
6605ac_ext=c
6606ac_cpp='$CPP $CPPFLAGS'
6607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6609ac_compiler_gnu=$ac_cv_c_compiler_gnu
6610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6611$as_echo_n "checking how to run the C preprocessor... " >&6; }
6612# On Suns, sometimes $CPP names a directory.
6613if test -n "$CPP" && test -d "$CPP"; then
6614  CPP=
6615fi
6616if test -z "$CPP"; then
6617  if test "${ac_cv_prog_CPP+set}" = set; then :
6618  $as_echo_n "(cached) " >&6
6619else
6620      # Double quotes because CPP needs to be expanded
6621    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6622    do
6623      ac_preproc_ok=false
6624for ac_c_preproc_warn_flag in '' yes
6625do
6626  # Use a header file that comes with gcc, so configuring glibc
6627  # with a fresh cross-compiler works.
6628  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6629  # <limits.h> exists even on freestanding compilers.
6630  # On the NeXT, cc -E runs the code through the compiler's parser,
6631  # not just through cpp. "Syntax error" is here to catch this case.
6632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6633/* end confdefs.h.  */
6634#ifdef __STDC__
6635# include <limits.h>
6636#else
6637# include <assert.h>
6638#endif
6639		     Syntax error
6640_ACEOF
6641if ac_fn_c_try_cpp "$LINENO"; then :
6642
6643else
6644  # Broken: fails on valid input.
6645continue
6646fi
6647rm -f conftest.err conftest.$ac_ext
6648
6649  # OK, works on sane cases.  Now check whether nonexistent headers
6650  # can be detected and how.
6651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6652/* end confdefs.h.  */
6653#include <ac_nonexistent.h>
6654_ACEOF
6655if ac_fn_c_try_cpp "$LINENO"; then :
6656  # Broken: success on invalid input.
6657continue
6658else
6659  # Passes both tests.
6660ac_preproc_ok=:
6661break
6662fi
6663rm -f conftest.err conftest.$ac_ext
6664
6665done
6666# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6667rm -f conftest.err conftest.$ac_ext
6668if $ac_preproc_ok; then :
6669  break
6670fi
6671
6672    done
6673    ac_cv_prog_CPP=$CPP
6674
6675fi
6676  CPP=$ac_cv_prog_CPP
6677else
6678  ac_cv_prog_CPP=$CPP
6679fi
6680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6681$as_echo "$CPP" >&6; }
6682ac_preproc_ok=false
6683for ac_c_preproc_warn_flag in '' yes
6684do
6685  # Use a header file that comes with gcc, so configuring glibc
6686  # with a fresh cross-compiler works.
6687  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6688  # <limits.h> exists even on freestanding compilers.
6689  # On the NeXT, cc -E runs the code through the compiler's parser,
6690  # not just through cpp. "Syntax error" is here to catch this case.
6691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6692/* end confdefs.h.  */
6693#ifdef __STDC__
6694# include <limits.h>
6695#else
6696# include <assert.h>
6697#endif
6698		     Syntax error
6699_ACEOF
6700if ac_fn_c_try_cpp "$LINENO"; then :
6701
6702else
6703  # Broken: fails on valid input.
6704continue
6705fi
6706rm -f conftest.err conftest.$ac_ext
6707
6708  # OK, works on sane cases.  Now check whether nonexistent headers
6709  # can be detected and how.
6710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6711/* end confdefs.h.  */
6712#include <ac_nonexistent.h>
6713_ACEOF
6714if ac_fn_c_try_cpp "$LINENO"; then :
6715  # Broken: success on invalid input.
6716continue
6717else
6718  # Passes both tests.
6719ac_preproc_ok=:
6720break
6721fi
6722rm -f conftest.err conftest.$ac_ext
6723
6724done
6725# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6726rm -f conftest.err conftest.$ac_ext
6727if $ac_preproc_ok; then :
6728
6729else
6730  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6731$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6732as_fn_error "C preprocessor \"$CPP\" fails sanity check
6733See \`config.log' for more details." "$LINENO" 5; }
6734fi
6735
6736ac_ext=c
6737ac_cpp='$CPP $CPPFLAGS'
6738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6740ac_compiler_gnu=$ac_cv_c_compiler_gnu
6741
6742
6743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6744$as_echo_n "checking for ANSI C header files... " >&6; }
6745if test "${ac_cv_header_stdc+set}" = set; then :
6746  $as_echo_n "(cached) " >&6
6747else
6748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749/* end confdefs.h.  */
6750#include <stdlib.h>
6751#include <stdarg.h>
6752#include <string.h>
6753#include <float.h>
6754
6755int
6756main ()
6757{
6758
6759  ;
6760  return 0;
6761}
6762_ACEOF
6763if ac_fn_c_try_compile "$LINENO"; then :
6764  ac_cv_header_stdc=yes
6765else
6766  ac_cv_header_stdc=no
6767fi
6768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6769
6770if test $ac_cv_header_stdc = yes; then
6771  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6773/* end confdefs.h.  */
6774#include <string.h>
6775
6776_ACEOF
6777if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6778  $EGREP "memchr" >/dev/null 2>&1; then :
6779
6780else
6781  ac_cv_header_stdc=no
6782fi
6783rm -f conftest*
6784
6785fi
6786
6787if test $ac_cv_header_stdc = yes; then
6788  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6790/* end confdefs.h.  */
6791#include <stdlib.h>
6792
6793_ACEOF
6794if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6795  $EGREP "free" >/dev/null 2>&1; then :
6796
6797else
6798  ac_cv_header_stdc=no
6799fi
6800rm -f conftest*
6801
6802fi
6803
6804if test $ac_cv_header_stdc = yes; then
6805  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6806  if test "$cross_compiling" = yes; then :
6807  :
6808else
6809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6810/* end confdefs.h.  */
6811#include <ctype.h>
6812#include <stdlib.h>
6813#if ((' ' & 0x0FF) == 0x020)
6814# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6815# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6816#else
6817# define ISLOWER(c) \
6818		   (('a' <= (c) && (c) <= 'i') \
6819		     || ('j' <= (c) && (c) <= 'r') \
6820		     || ('s' <= (c) && (c) <= 'z'))
6821# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6822#endif
6823
6824#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6825int
6826main ()
6827{
6828  int i;
6829  for (i = 0; i < 256; i++)
6830    if (XOR (islower (i), ISLOWER (i))
6831	|| toupper (i) != TOUPPER (i))
6832      return 2;
6833  return 0;
6834}
6835_ACEOF
6836if ac_fn_c_try_run "$LINENO"; then :
6837
6838else
6839  ac_cv_header_stdc=no
6840fi
6841rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6842  conftest.$ac_objext conftest.beam conftest.$ac_ext
6843fi
6844
6845fi
6846fi
6847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6848$as_echo "$ac_cv_header_stdc" >&6; }
6849if test $ac_cv_header_stdc = yes; then
6850
6851$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6852
6853fi
6854
6855# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6856for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6857		  inttypes.h stdint.h unistd.h
6858do :
6859  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6860ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6861"
6862eval as_val=\$$as_ac_Header
6863   if test "x$as_val" = x""yes; then :
6864  cat >>confdefs.h <<_ACEOF
6865#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6866_ACEOF
6867
6868fi
6869
6870done
6871
6872
6873for ac_header in dlfcn.h
6874do :
6875  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6876"
6877if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6878  cat >>confdefs.h <<_ACEOF
6879#define HAVE_DLFCN_H 1
6880_ACEOF
6881
6882fi
6883
6884done
6885
6886
6887
6888# Set options
6889
6890
6891
6892        enable_dlopen=no
6893
6894
6895  enable_win32_dll=no
6896
6897
6898            # Check whether --enable-shared was given.
6899if test "${enable_shared+set}" = set; then :
6900  enableval=$enable_shared; p=${PACKAGE-default}
6901    case $enableval in
6902    yes) enable_shared=yes ;;
6903    no) enable_shared=no ;;
6904    *)
6905      enable_shared=no
6906      # Look at the argument we got.  We use all the common list separators.
6907      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6908      for pkg in $enableval; do
6909	IFS="$lt_save_ifs"
6910	if test "X$pkg" = "X$p"; then
6911	  enable_shared=yes
6912	fi
6913      done
6914      IFS="$lt_save_ifs"
6915      ;;
6916    esac
6917else
6918  enable_shared=yes
6919fi
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929  # Check whether --enable-static was given.
6930if test "${enable_static+set}" = set; then :
6931  enableval=$enable_static; p=${PACKAGE-default}
6932    case $enableval in
6933    yes) enable_static=yes ;;
6934    no) enable_static=no ;;
6935    *)
6936     enable_static=no
6937      # Look at the argument we got.  We use all the common list separators.
6938      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6939      for pkg in $enableval; do
6940	IFS="$lt_save_ifs"
6941	if test "X$pkg" = "X$p"; then
6942	  enable_static=yes
6943	fi
6944      done
6945      IFS="$lt_save_ifs"
6946      ;;
6947    esac
6948else
6949  enable_static=yes
6950fi
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961# Check whether --with-pic was given.
6962if test "${with_pic+set}" = set; then :
6963  withval=$with_pic; pic_mode="$withval"
6964else
6965  pic_mode=default
6966fi
6967
6968
6969test -z "$pic_mode" && pic_mode=default
6970
6971
6972
6973
6974
6975
6976
6977  # Check whether --enable-fast-install was given.
6978if test "${enable_fast_install+set}" = set; then :
6979  enableval=$enable_fast_install; p=${PACKAGE-default}
6980    case $enableval in
6981    yes) enable_fast_install=yes ;;
6982    no) enable_fast_install=no ;;
6983    *)
6984      enable_fast_install=no
6985      # Look at the argument we got.  We use all the common list separators.
6986      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6987      for pkg in $enableval; do
6988	IFS="$lt_save_ifs"
6989	if test "X$pkg" = "X$p"; then
6990	  enable_fast_install=yes
6991	fi
6992      done
6993      IFS="$lt_save_ifs"
6994      ;;
6995    esac
6996else
6997  enable_fast_install=yes
6998fi
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010# This can be used to rebuild libtool when needed
7011LIBTOOL_DEPS="$ltmain"
7012
7013# Always use our own libtool.
7014LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040test -z "$LN_S" && LN_S="ln -s"
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055if test -n "${ZSH_VERSION+set}" ; then
7056   setopt NO_GLOB_SUBST
7057fi
7058
7059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7060$as_echo_n "checking for objdir... " >&6; }
7061if test "${lt_cv_objdir+set}" = set; then :
7062  $as_echo_n "(cached) " >&6
7063else
7064  rm -f .libs 2>/dev/null
7065mkdir .libs 2>/dev/null
7066if test -d .libs; then
7067  lt_cv_objdir=.libs
7068else
7069  # MS-DOS does not allow filenames that begin with a dot.
7070  lt_cv_objdir=_libs
7071fi
7072rmdir .libs 2>/dev/null
7073fi
7074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7075$as_echo "$lt_cv_objdir" >&6; }
7076objdir=$lt_cv_objdir
7077
7078
7079
7080
7081
7082cat >>confdefs.h <<_ACEOF
7083#define LT_OBJDIR "$lt_cv_objdir/"
7084_ACEOF
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102case $host_os in
7103aix3*)
7104  # AIX sometimes has problems with the GCC collect2 program.  For some
7105  # reason, if we set the COLLECT_NAMES environment variable, the problems
7106  # vanish in a puff of smoke.
7107  if test "X${COLLECT_NAMES+set}" != Xset; then
7108    COLLECT_NAMES=
7109    export COLLECT_NAMES
7110  fi
7111  ;;
7112esac
7113
7114# Sed substitution that helps us do robust quoting.  It backslashifies
7115# metacharacters that are still active within double-quoted strings.
7116sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7117
7118# Same as above, but do not quote variable references.
7119double_quote_subst='s/\(["`\\]\)/\\\1/g'
7120
7121# Sed substitution to delay expansion of an escaped shell variable in a
7122# double_quote_subst'ed string.
7123delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7124
7125# Sed substitution to delay expansion of an escaped single quote.
7126delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7127
7128# Sed substitution to avoid accidental globbing in evaled expressions
7129no_glob_subst='s/\*/\\\*/g'
7130
7131# Global variables:
7132ofile=libtool
7133can_build_shared=yes
7134
7135# All known linkers require a `.a' archive for static linking (except MSVC,
7136# which needs '.lib').
7137libext=a
7138
7139with_gnu_ld="$lt_cv_prog_gnu_ld"
7140
7141old_CC="$CC"
7142old_CFLAGS="$CFLAGS"
7143
7144# Set sane defaults for various variables
7145test -z "$CC" && CC=cc
7146test -z "$LTCC" && LTCC=$CC
7147test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7148test -z "$LD" && LD=ld
7149test -z "$ac_objext" && ac_objext=o
7150
7151for cc_temp in $compiler""; do
7152  case $cc_temp in
7153    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7154    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7155    \-*) ;;
7156    *) break;;
7157  esac
7158done
7159cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7160
7161
7162# Only perform the check for file, if the check method requires it
7163test -z "$MAGIC_CMD" && MAGIC_CMD=file
7164case $deplibs_check_method in
7165file_magic*)
7166  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7167    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7168$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7169if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7170  $as_echo_n "(cached) " >&6
7171else
7172  case $MAGIC_CMD in
7173[\\/*] |  ?:[\\/]*)
7174  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7175  ;;
7176*)
7177  lt_save_MAGIC_CMD="$MAGIC_CMD"
7178  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7179  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7180  for ac_dir in $ac_dummy; do
7181    IFS="$lt_save_ifs"
7182    test -z "$ac_dir" && ac_dir=.
7183    if test -f $ac_dir/${ac_tool_prefix}file; then
7184      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7185      if test -n "$file_magic_test_file"; then
7186	case $deplibs_check_method in
7187	"file_magic "*)
7188	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7189	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7190	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7191	    $EGREP "$file_magic_regex" > /dev/null; then
7192	    :
7193	  else
7194	    cat <<_LT_EOF 1>&2
7195
7196*** Warning: the command libtool uses to detect shared libraries,
7197*** $file_magic_cmd, produces output that libtool cannot recognize.
7198*** The result is that libtool may fail to recognize shared libraries
7199*** as such.  This will affect the creation of libtool libraries that
7200*** depend on shared libraries, but programs linked with such libtool
7201*** libraries will work regardless of this problem.  Nevertheless, you
7202*** may want to report the problem to your system manager and/or to
7203*** bug-libtool@gnu.org
7204
7205_LT_EOF
7206	  fi ;;
7207	esac
7208      fi
7209      break
7210    fi
7211  done
7212  IFS="$lt_save_ifs"
7213  MAGIC_CMD="$lt_save_MAGIC_CMD"
7214  ;;
7215esac
7216fi
7217
7218MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7219if test -n "$MAGIC_CMD"; then
7220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7221$as_echo "$MAGIC_CMD" >&6; }
7222else
7223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7224$as_echo "no" >&6; }
7225fi
7226
7227
7228
7229
7230
7231if test -z "$lt_cv_path_MAGIC_CMD"; then
7232  if test -n "$ac_tool_prefix"; then
7233    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7234$as_echo_n "checking for file... " >&6; }
7235if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7236  $as_echo_n "(cached) " >&6
7237else
7238  case $MAGIC_CMD in
7239[\\/*] |  ?:[\\/]*)
7240  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7241  ;;
7242*)
7243  lt_save_MAGIC_CMD="$MAGIC_CMD"
7244  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7245  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7246  for ac_dir in $ac_dummy; do
7247    IFS="$lt_save_ifs"
7248    test -z "$ac_dir" && ac_dir=.
7249    if test -f $ac_dir/file; then
7250      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7251      if test -n "$file_magic_test_file"; then
7252	case $deplibs_check_method in
7253	"file_magic "*)
7254	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7255	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7256	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7257	    $EGREP "$file_magic_regex" > /dev/null; then
7258	    :
7259	  else
7260	    cat <<_LT_EOF 1>&2
7261
7262*** Warning: the command libtool uses to detect shared libraries,
7263*** $file_magic_cmd, produces output that libtool cannot recognize.
7264*** The result is that libtool may fail to recognize shared libraries
7265*** as such.  This will affect the creation of libtool libraries that
7266*** depend on shared libraries, but programs linked with such libtool
7267*** libraries will work regardless of this problem.  Nevertheless, you
7268*** may want to report the problem to your system manager and/or to
7269*** bug-libtool@gnu.org
7270
7271_LT_EOF
7272	  fi ;;
7273	esac
7274      fi
7275      break
7276    fi
7277  done
7278  IFS="$lt_save_ifs"
7279  MAGIC_CMD="$lt_save_MAGIC_CMD"
7280  ;;
7281esac
7282fi
7283
7284MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7285if test -n "$MAGIC_CMD"; then
7286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7287$as_echo "$MAGIC_CMD" >&6; }
7288else
7289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7290$as_echo "no" >&6; }
7291fi
7292
7293
7294  else
7295    MAGIC_CMD=:
7296  fi
7297fi
7298
7299  fi
7300  ;;
7301esac
7302
7303# Use C for the default configuration in the libtool script
7304
7305lt_save_CC="$CC"
7306ac_ext=c
7307ac_cpp='$CPP $CPPFLAGS'
7308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7310ac_compiler_gnu=$ac_cv_c_compiler_gnu
7311
7312
7313# Source file extension for C test sources.
7314ac_ext=c
7315
7316# Object file extension for compiled C test sources.
7317objext=o
7318objext=$objext
7319
7320# Code to be used in simple compile tests
7321lt_simple_compile_test_code="int some_variable = 0;"
7322
7323# Code to be used in simple link tests
7324lt_simple_link_test_code='int main(){return(0);}'
7325
7326
7327
7328
7329
7330
7331
7332# If no C compiler was specified, use CC.
7333LTCC=${LTCC-"$CC"}
7334
7335# If no C compiler flags were specified, use CFLAGS.
7336LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7337
7338# Allow CC to be a program name with arguments.
7339compiler=$CC
7340
7341# Save the default compiler, since it gets overwritten when the other
7342# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7343compiler_DEFAULT=$CC
7344
7345# save warnings/boilerplate of simple test code
7346ac_outfile=conftest.$ac_objext
7347echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7348eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7349_lt_compiler_boilerplate=`cat conftest.err`
7350$RM conftest*
7351
7352ac_outfile=conftest.$ac_objext
7353echo "$lt_simple_link_test_code" >conftest.$ac_ext
7354eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7355_lt_linker_boilerplate=`cat conftest.err`
7356$RM -r conftest*
7357
7358
7359## CAVEAT EMPTOR:
7360## There is no encapsulation within the following macros, do not change
7361## the running order or otherwise move them around unless you know exactly
7362## what you are doing...
7363if test -n "$compiler"; then
7364
7365lt_prog_compiler_no_builtin_flag=
7366
7367if test "$GCC" = yes; then
7368  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7369
7370  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7371$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7372if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7373  $as_echo_n "(cached) " >&6
7374else
7375  lt_cv_prog_compiler_rtti_exceptions=no
7376   ac_outfile=conftest.$ac_objext
7377   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7378   lt_compiler_flag="-fno-rtti -fno-exceptions"
7379   # Insert the option either (1) after the last *FLAGS variable, or
7380   # (2) before a word containing "conftest.", or (3) at the end.
7381   # Note that $ac_compile itself does not contain backslashes and begins
7382   # with a dollar sign (not a hyphen), so the echo should work correctly.
7383   # The option is referenced via a variable to avoid confusing sed.
7384   lt_compile=`echo "$ac_compile" | $SED \
7385   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7386   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7387   -e 's:$: $lt_compiler_flag:'`
7388   (eval echo "\"\$as_me:7388: $lt_compile\"" >&5)
7389   (eval "$lt_compile" 2>conftest.err)
7390   ac_status=$?
7391   cat conftest.err >&5
7392   echo "$as_me:7392: \$? = $ac_status" >&5
7393   if (exit $ac_status) && test -s "$ac_outfile"; then
7394     # The compiler can only warn and ignore the option if not recognized
7395     # So say no if there are warnings other than the usual output.
7396     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7397     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7398     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7399       lt_cv_prog_compiler_rtti_exceptions=yes
7400     fi
7401   fi
7402   $RM conftest*
7403
7404fi
7405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7406$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7407
7408if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7409    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7410else
7411    :
7412fi
7413
7414fi
7415
7416
7417
7418
7419
7420
7421  lt_prog_compiler_wl=
7422lt_prog_compiler_pic=
7423lt_prog_compiler_static=
7424
7425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7426$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7427
7428  if test "$GCC" = yes; then
7429    lt_prog_compiler_wl='-Wl,'
7430    lt_prog_compiler_static='-static'
7431
7432    case $host_os in
7433      aix*)
7434      # All AIX code is PIC.
7435      if test "$host_cpu" = ia64; then
7436	# AIX 5 now supports IA64 processor
7437	lt_prog_compiler_static='-Bstatic'
7438      fi
7439      ;;
7440
7441    amigaos*)
7442      case $host_cpu in
7443      powerpc)
7444            # see comment about AmigaOS4 .so support
7445            lt_prog_compiler_pic='-fPIC'
7446        ;;
7447      m68k)
7448            # FIXME: we need at least 68020 code to build shared libraries, but
7449            # adding the `-m68020' flag to GCC prevents building anything better,
7450            # like `-m68040'.
7451            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7452        ;;
7453      esac
7454      ;;
7455
7456    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7457      # PIC is the default for these OSes.
7458      ;;
7459
7460    mingw* | cygwin* | pw32* | os2* | cegcc*)
7461      # This hack is so that the source file can tell whether it is being
7462      # built for inclusion in a dll (and should export symbols for example).
7463      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7464      # (--disable-auto-import) libraries
7465      lt_prog_compiler_pic='-DDLL_EXPORT'
7466      ;;
7467
7468    darwin* | rhapsody*)
7469      # PIC is the default on this platform
7470      # Common symbols not allowed in MH_DYLIB files
7471      lt_prog_compiler_pic='-fno-common'
7472      ;;
7473
7474    hpux*)
7475      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7476      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7477      # sets the default TLS model and affects inlining.
7478      case $host_cpu in
7479      hppa*64*)
7480	# +Z the default
7481	;;
7482      *)
7483	lt_prog_compiler_pic='-fPIC'
7484	;;
7485      esac
7486      ;;
7487
7488    interix[3-9]*)
7489      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7490      # Instead, we relocate shared libraries at runtime.
7491      ;;
7492
7493    msdosdjgpp*)
7494      # Just because we use GCC doesn't mean we suddenly get shared libraries
7495      # on systems that don't support them.
7496      lt_prog_compiler_can_build_shared=no
7497      enable_shared=no
7498      ;;
7499
7500    *nto* | *qnx*)
7501      # QNX uses GNU C++, but need to define -shared option too, otherwise
7502      # it will coredump.
7503      lt_prog_compiler_pic='-fPIC -shared'
7504      ;;
7505
7506    sysv4*MP*)
7507      if test -d /usr/nec; then
7508	lt_prog_compiler_pic=-Kconform_pic
7509      fi
7510      ;;
7511
7512    *)
7513      lt_prog_compiler_pic='-fPIC'
7514      ;;
7515    esac
7516  else
7517    # PORTME Check for flag to pass linker flags through the system compiler.
7518    case $host_os in
7519    aix*)
7520      lt_prog_compiler_wl='-Wl,'
7521      if test "$host_cpu" = ia64; then
7522	# AIX 5 now supports IA64 processor
7523	lt_prog_compiler_static='-Bstatic'
7524      else
7525	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7526      fi
7527      ;;
7528
7529    mingw* | cygwin* | pw32* | os2* | cegcc*)
7530      # This hack is so that the source file can tell whether it is being
7531      # built for inclusion in a dll (and should export symbols for example).
7532      lt_prog_compiler_pic='-DDLL_EXPORT'
7533      ;;
7534
7535    hpux9* | hpux10* | hpux11*)
7536      lt_prog_compiler_wl='-Wl,'
7537      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7538      # not for PA HP-UX.
7539      case $host_cpu in
7540      hppa*64*|ia64*)
7541	# +Z the default
7542	;;
7543      *)
7544	lt_prog_compiler_pic='+Z'
7545	;;
7546      esac
7547      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7548      lt_prog_compiler_static='${wl}-a ${wl}archive'
7549      ;;
7550
7551    irix5* | irix6* | nonstopux*)
7552      lt_prog_compiler_wl='-Wl,'
7553      # PIC (with -KPIC) is the default.
7554      lt_prog_compiler_static='-non_shared'
7555      ;;
7556
7557    linux* | k*bsd*-gnu)
7558      case $cc_basename in
7559      # old Intel for x86_64 which still supported -KPIC.
7560      ecc*)
7561	lt_prog_compiler_wl='-Wl,'
7562	lt_prog_compiler_pic='-KPIC'
7563	lt_prog_compiler_static='-static'
7564        ;;
7565      # icc used to be incompatible with GCC.
7566      # ICC 10 doesn't accept -KPIC any more.
7567      icc* | ifort*)
7568	lt_prog_compiler_wl='-Wl,'
7569	lt_prog_compiler_pic='-fPIC'
7570	lt_prog_compiler_static='-static'
7571        ;;
7572      # Lahey Fortran 8.1.
7573      lf95*)
7574	lt_prog_compiler_wl='-Wl,'
7575	lt_prog_compiler_pic='--shared'
7576	lt_prog_compiler_static='--static'
7577	;;
7578      pgcc* | pgf77* | pgf90* | pgf95*)
7579        # Portland Group compilers (*not* the Pentium gcc compiler,
7580	# which looks to be a dead project)
7581	lt_prog_compiler_wl='-Wl,'
7582	lt_prog_compiler_pic='-fpic'
7583	lt_prog_compiler_static='-Bstatic'
7584        ;;
7585      ccc*)
7586        lt_prog_compiler_wl='-Wl,'
7587        # All Alpha code is PIC.
7588        lt_prog_compiler_static='-non_shared'
7589        ;;
7590      xl*)
7591	# IBM XL C 8.0/Fortran 10.1 on PPC
7592	lt_prog_compiler_wl='-Wl,'
7593	lt_prog_compiler_pic='-qpic'
7594	lt_prog_compiler_static='-qstaticlink'
7595	;;
7596      *)
7597	case `$CC -V 2>&1 | sed 5q` in
7598	*Sun\ C*)
7599	  # Sun C 5.9
7600	  lt_prog_compiler_pic='-KPIC'
7601	  lt_prog_compiler_static='-Bstatic'
7602	  lt_prog_compiler_wl='-Wl,'
7603	  ;;
7604	*Sun\ F*)
7605	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7606	  lt_prog_compiler_pic='-KPIC'
7607	  lt_prog_compiler_static='-Bstatic'
7608	  lt_prog_compiler_wl=''
7609	  ;;
7610	esac
7611	;;
7612      esac
7613      ;;
7614
7615    newsos6)
7616      lt_prog_compiler_pic='-KPIC'
7617      lt_prog_compiler_static='-Bstatic'
7618      ;;
7619
7620    *nto* | *qnx*)
7621      # QNX uses GNU C++, but need to define -shared option too, otherwise
7622      # it will coredump.
7623      lt_prog_compiler_pic='-fPIC -shared'
7624      ;;
7625
7626    osf3* | osf4* | osf5*)
7627      lt_prog_compiler_wl='-Wl,'
7628      # All OSF/1 code is PIC.
7629      lt_prog_compiler_static='-non_shared'
7630      ;;
7631
7632    rdos*)
7633      lt_prog_compiler_static='-non_shared'
7634      ;;
7635
7636    solaris*)
7637      lt_prog_compiler_pic='-KPIC'
7638      lt_prog_compiler_static='-Bstatic'
7639      case $cc_basename in
7640      f77* | f90* | f95*)
7641	lt_prog_compiler_wl='-Qoption ld ';;
7642      *)
7643	lt_prog_compiler_wl='-Wl,';;
7644      esac
7645      ;;
7646
7647    sunos4*)
7648      lt_prog_compiler_wl='-Qoption ld '
7649      lt_prog_compiler_pic='-PIC'
7650      lt_prog_compiler_static='-Bstatic'
7651      ;;
7652
7653    sysv4 | sysv4.2uw2* | sysv4.3*)
7654      lt_prog_compiler_wl='-Wl,'
7655      lt_prog_compiler_pic='-KPIC'
7656      lt_prog_compiler_static='-Bstatic'
7657      ;;
7658
7659    sysv4*MP*)
7660      if test -d /usr/nec ;then
7661	lt_prog_compiler_pic='-Kconform_pic'
7662	lt_prog_compiler_static='-Bstatic'
7663      fi
7664      ;;
7665
7666    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7667      lt_prog_compiler_wl='-Wl,'
7668      lt_prog_compiler_pic='-KPIC'
7669      lt_prog_compiler_static='-Bstatic'
7670      ;;
7671
7672    unicos*)
7673      lt_prog_compiler_wl='-Wl,'
7674      lt_prog_compiler_can_build_shared=no
7675      ;;
7676
7677    uts4*)
7678      lt_prog_compiler_pic='-pic'
7679      lt_prog_compiler_static='-Bstatic'
7680      ;;
7681
7682    *)
7683      lt_prog_compiler_can_build_shared=no
7684      ;;
7685    esac
7686  fi
7687
7688case $host_os in
7689  # For platforms which do not support PIC, -DPIC is meaningless:
7690  *djgpp*)
7691    lt_prog_compiler_pic=
7692    ;;
7693  *)
7694    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7695    ;;
7696esac
7697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7698$as_echo "$lt_prog_compiler_pic" >&6; }
7699
7700
7701
7702
7703
7704
7705#
7706# Check to make sure the PIC flag actually works.
7707#
7708if test -n "$lt_prog_compiler_pic"; then
7709  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7710$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7711if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7712  $as_echo_n "(cached) " >&6
7713else
7714  lt_cv_prog_compiler_pic_works=no
7715   ac_outfile=conftest.$ac_objext
7716   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7717   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7718   # Insert the option either (1) after the last *FLAGS variable, or
7719   # (2) before a word containing "conftest.", or (3) at the end.
7720   # Note that $ac_compile itself does not contain backslashes and begins
7721   # with a dollar sign (not a hyphen), so the echo should work correctly.
7722   # The option is referenced via a variable to avoid confusing sed.
7723   lt_compile=`echo "$ac_compile" | $SED \
7724   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7725   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7726   -e 's:$: $lt_compiler_flag:'`
7727   (eval echo "\"\$as_me:7727: $lt_compile\"" >&5)
7728   (eval "$lt_compile" 2>conftest.err)
7729   ac_status=$?
7730   cat conftest.err >&5
7731   echo "$as_me:7731: \$? = $ac_status" >&5
7732   if (exit $ac_status) && test -s "$ac_outfile"; then
7733     # The compiler can only warn and ignore the option if not recognized
7734     # So say no if there are warnings other than the usual output.
7735     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7736     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7737     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7738       lt_cv_prog_compiler_pic_works=yes
7739     fi
7740   fi
7741   $RM conftest*
7742
7743fi
7744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7745$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7746
7747if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7748    case $lt_prog_compiler_pic in
7749     "" | " "*) ;;
7750     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7751     esac
7752else
7753    lt_prog_compiler_pic=
7754     lt_prog_compiler_can_build_shared=no
7755fi
7756
7757fi
7758
7759
7760
7761
7762
7763
7764#
7765# Check to make sure the static flag actually works.
7766#
7767wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7769$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7770if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7771  $as_echo_n "(cached) " >&6
7772else
7773  lt_cv_prog_compiler_static_works=no
7774   save_LDFLAGS="$LDFLAGS"
7775   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7776   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7777   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7778     # The linker can only warn and ignore the option if not recognized
7779     # So say no if there are warnings
7780     if test -s conftest.err; then
7781       # Append any errors to the config.log.
7782       cat conftest.err 1>&5
7783       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7784       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7785       if diff conftest.exp conftest.er2 >/dev/null; then
7786         lt_cv_prog_compiler_static_works=yes
7787       fi
7788     else
7789       lt_cv_prog_compiler_static_works=yes
7790     fi
7791   fi
7792   $RM -r conftest*
7793   LDFLAGS="$save_LDFLAGS"
7794
7795fi
7796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7797$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7798
7799if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7800    :
7801else
7802    lt_prog_compiler_static=
7803fi
7804
7805
7806
7807
7808
7809
7810
7811  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7812$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7813if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7814  $as_echo_n "(cached) " >&6
7815else
7816  lt_cv_prog_compiler_c_o=no
7817   $RM -r conftest 2>/dev/null
7818   mkdir conftest
7819   cd conftest
7820   mkdir out
7821   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7822
7823   lt_compiler_flag="-o out/conftest2.$ac_objext"
7824   # Insert the option either (1) after the last *FLAGS variable, or
7825   # (2) before a word containing "conftest.", or (3) at the end.
7826   # Note that $ac_compile itself does not contain backslashes and begins
7827   # with a dollar sign (not a hyphen), so the echo should work correctly.
7828   lt_compile=`echo "$ac_compile" | $SED \
7829   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7830   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7831   -e 's:$: $lt_compiler_flag:'`
7832   (eval echo "\"\$as_me:7832: $lt_compile\"" >&5)
7833   (eval "$lt_compile" 2>out/conftest.err)
7834   ac_status=$?
7835   cat out/conftest.err >&5
7836   echo "$as_me:7836: \$? = $ac_status" >&5
7837   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7838   then
7839     # The compiler can only warn and ignore the option if not recognized
7840     # So say no if there are warnings
7841     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7842     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7843     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7844       lt_cv_prog_compiler_c_o=yes
7845     fi
7846   fi
7847   chmod u+w . 2>&5
7848   $RM conftest*
7849   # SGI C++ compiler will create directory out/ii_files/ for
7850   # template instantiation
7851   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7852   $RM out/* && rmdir out
7853   cd ..
7854   $RM -r conftest
7855   $RM conftest*
7856
7857fi
7858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7859$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7860
7861
7862
7863
7864
7865
7866  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7867$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7868if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7869  $as_echo_n "(cached) " >&6
7870else
7871  lt_cv_prog_compiler_c_o=no
7872   $RM -r conftest 2>/dev/null
7873   mkdir conftest
7874   cd conftest
7875   mkdir out
7876   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7877
7878   lt_compiler_flag="-o out/conftest2.$ac_objext"
7879   # Insert the option either (1) after the last *FLAGS variable, or
7880   # (2) before a word containing "conftest.", or (3) at the end.
7881   # Note that $ac_compile itself does not contain backslashes and begins
7882   # with a dollar sign (not a hyphen), so the echo should work correctly.
7883   lt_compile=`echo "$ac_compile" | $SED \
7884   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7885   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7886   -e 's:$: $lt_compiler_flag:'`
7887   (eval echo "\"\$as_me:7887: $lt_compile\"" >&5)
7888   (eval "$lt_compile" 2>out/conftest.err)
7889   ac_status=$?
7890   cat out/conftest.err >&5
7891   echo "$as_me:7891: \$? = $ac_status" >&5
7892   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7893   then
7894     # The compiler can only warn and ignore the option if not recognized
7895     # So say no if there are warnings
7896     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7897     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7898     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7899       lt_cv_prog_compiler_c_o=yes
7900     fi
7901   fi
7902   chmod u+w . 2>&5
7903   $RM conftest*
7904   # SGI C++ compiler will create directory out/ii_files/ for
7905   # template instantiation
7906   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7907   $RM out/* && rmdir out
7908   cd ..
7909   $RM -r conftest
7910   $RM conftest*
7911
7912fi
7913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7914$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7915
7916
7917
7918
7919hard_links="nottested"
7920if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7921  # do not overwrite the value of need_locks provided by the user
7922  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7923$as_echo_n "checking if we can lock with hard links... " >&6; }
7924  hard_links=yes
7925  $RM conftest*
7926  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7927  touch conftest.a
7928  ln conftest.a conftest.b 2>&5 || hard_links=no
7929  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7931$as_echo "$hard_links" >&6; }
7932  if test "$hard_links" = no; then
7933    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7934$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7935    need_locks=warn
7936  fi
7937else
7938  need_locks=no
7939fi
7940
7941
7942
7943
7944
7945
7946  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7947$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7948
7949  runpath_var=
7950  allow_undefined_flag=
7951  always_export_symbols=no
7952  archive_cmds=
7953  archive_expsym_cmds=
7954  compiler_needs_object=no
7955  enable_shared_with_static_runtimes=no
7956  export_dynamic_flag_spec=
7957  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7958  hardcode_automatic=no
7959  hardcode_direct=no
7960  hardcode_direct_absolute=no
7961  hardcode_libdir_flag_spec=
7962  hardcode_libdir_flag_spec_ld=
7963  hardcode_libdir_separator=
7964  hardcode_minus_L=no
7965  hardcode_shlibpath_var=unsupported
7966  inherit_rpath=no
7967  link_all_deplibs=unknown
7968  module_cmds=
7969  module_expsym_cmds=
7970  old_archive_from_new_cmds=
7971  old_archive_from_expsyms_cmds=
7972  thread_safe_flag_spec=
7973  whole_archive_flag_spec=
7974  # include_expsyms should be a list of space-separated symbols to be *always*
7975  # included in the symbol list
7976  include_expsyms=
7977  # exclude_expsyms can be an extended regexp of symbols to exclude
7978  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7979  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7980  # as well as any symbol that contains `d'.
7981  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7982  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7983  # platforms (ab)use it in PIC code, but their linkers get confused if
7984  # the symbol is explicitly referenced.  Since portable code cannot
7985  # rely on this symbol name, it's probably fine to never include it in
7986  # preloaded symbol tables.
7987  # Exclude shared library initialization/finalization symbols.
7988  extract_expsyms_cmds=
7989
7990  case $host_os in
7991  cygwin* | mingw* | pw32* | cegcc*)
7992    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7993    # When not using gcc, we currently assume that we are using
7994    # Microsoft Visual C++.
7995    if test "$GCC" != yes; then
7996      with_gnu_ld=no
7997    fi
7998    ;;
7999  interix*)
8000    # we just hope/assume this is gcc and not c89 (= MSVC++)
8001    with_gnu_ld=yes
8002    ;;
8003  openbsd*)
8004    with_gnu_ld=no
8005    ;;
8006  esac
8007
8008  ld_shlibs=yes
8009  if test "$with_gnu_ld" = yes; then
8010    # If archive_cmds runs LD, not CC, wlarc should be empty
8011    wlarc='${wl}'
8012
8013    # Set some defaults for GNU ld with shared library support. These
8014    # are reset later if shared libraries are not supported. Putting them
8015    # here allows them to be overridden if necessary.
8016    runpath_var=LD_RUN_PATH
8017    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8018    export_dynamic_flag_spec='${wl}--export-dynamic'
8019    # ancient GNU ld didn't support --whole-archive et. al.
8020    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8021      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8022    else
8023      whole_archive_flag_spec=
8024    fi
8025    supports_anon_versioning=no
8026    case `$LD -v 2>&1` in
8027      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8028      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8029      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8030      *\ 2.11.*) ;; # other 2.11 versions
8031      *) supports_anon_versioning=yes ;;
8032    esac
8033
8034    # See if GNU ld supports shared libraries.
8035    case $host_os in
8036    aix[3-9]*)
8037      # On AIX/PPC, the GNU linker is very broken
8038      if test "$host_cpu" != ia64; then
8039	ld_shlibs=no
8040	cat <<_LT_EOF 1>&2
8041
8042*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8043*** to be unable to reliably create shared libraries on AIX.
8044*** Therefore, libtool is disabling shared libraries support.  If you
8045*** really care for shared libraries, you may want to modify your PATH
8046*** so that a non-GNU linker is found, and then restart.
8047
8048_LT_EOF
8049      fi
8050      ;;
8051
8052    amigaos*)
8053      case $host_cpu in
8054      powerpc)
8055            # see comment about AmigaOS4 .so support
8056            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8057            archive_expsym_cmds=''
8058        ;;
8059      m68k)
8060            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)'
8061            hardcode_libdir_flag_spec='-L$libdir'
8062            hardcode_minus_L=yes
8063        ;;
8064      esac
8065      ;;
8066
8067    beos*)
8068      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8069	allow_undefined_flag=unsupported
8070	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8071	# support --undefined.  This deserves some investigation.  FIXME
8072	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8073      else
8074	ld_shlibs=no
8075      fi
8076      ;;
8077
8078    cygwin* | mingw* | pw32* | cegcc*)
8079      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8080      # as there is no search path for DLLs.
8081      hardcode_libdir_flag_spec='-L$libdir'
8082      allow_undefined_flag=unsupported
8083      always_export_symbols=no
8084      enable_shared_with_static_runtimes=yes
8085      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8086
8087      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8088        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8089	# If the export-symbols file already is a .def file (1st line
8090	# is EXPORTS), use it as is; otherwise, prepend...
8091	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8092	  cp $export_symbols $output_objdir/$soname.def;
8093	else
8094	  echo EXPORTS > $output_objdir/$soname.def;
8095	  cat $export_symbols >> $output_objdir/$soname.def;
8096	fi~
8097	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8098      else
8099	ld_shlibs=no
8100      fi
8101      ;;
8102
8103    interix[3-9]*)
8104      hardcode_direct=no
8105      hardcode_shlibpath_var=no
8106      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8107      export_dynamic_flag_spec='${wl}-E'
8108      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8109      # Instead, shared libraries are loaded at an image base (0x10000000 by
8110      # default) and relocated if they conflict, which is a slow very memory
8111      # consuming and fragmenting process.  To avoid this, we pick a random,
8112      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8113      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8114      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8115      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'
8116      ;;
8117
8118    gnu* | linux* | tpf* | k*bsd*-gnu)
8119      tmp_diet=no
8120      if test "$host_os" = linux-dietlibc; then
8121	case $cc_basename in
8122	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8123	esac
8124      fi
8125      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8126	 && test "$tmp_diet" = no
8127      then
8128	tmp_addflag=
8129	tmp_sharedflag='-shared'
8130	case $cc_basename,$host_cpu in
8131        pgcc*)				# Portland Group C compiler
8132	  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'
8133	  tmp_addflag=' $pic_flag'
8134	  ;;
8135	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8136	  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'
8137	  tmp_addflag=' $pic_flag -Mnomain' ;;
8138	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8139	  tmp_addflag=' -i_dynamic' ;;
8140	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8141	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8142	ifc* | ifort*)			# Intel Fortran compiler
8143	  tmp_addflag=' -nofor_main' ;;
8144	lf95*)				# Lahey Fortran 8.1
8145	  whole_archive_flag_spec=
8146	  tmp_sharedflag='--shared' ;;
8147	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8148	  tmp_sharedflag='-qmkshrobj'
8149	  tmp_addflag= ;;
8150	esac
8151	case `$CC -V 2>&1 | sed 5q` in
8152	*Sun\ C*)			# Sun C 5.9
8153	  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'
8154	  compiler_needs_object=yes
8155	  tmp_sharedflag='-G' ;;
8156	*Sun\ F*)			# Sun Fortran 8.3
8157	  tmp_sharedflag='-G' ;;
8158	esac
8159	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8160
8161        if test "x$supports_anon_versioning" = xyes; then
8162          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8163	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8164	    echo "local: *; };" >> $output_objdir/$libname.ver~
8165	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8166        fi
8167
8168	case $cc_basename in
8169	xlf*)
8170	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8171	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8172	  hardcode_libdir_flag_spec=
8173	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8174	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8175	  if test "x$supports_anon_versioning" = xyes; then
8176	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8177	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8178	      echo "local: *; };" >> $output_objdir/$libname.ver~
8179	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8180	  fi
8181	  ;;
8182	esac
8183      else
8184        ld_shlibs=no
8185      fi
8186      ;;
8187
8188    netbsd*)
8189      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8190	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8191	wlarc=
8192      else
8193	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8194	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8195      fi
8196      ;;
8197
8198    solaris*)
8199      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8200	ld_shlibs=no
8201	cat <<_LT_EOF 1>&2
8202
8203*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8204*** create shared libraries on Solaris systems.  Therefore, libtool
8205*** is disabling shared libraries support.  We urge you to upgrade GNU
8206*** binutils to release 2.9.1 or newer.  Another option is to modify
8207*** your PATH or compiler configuration so that the native linker is
8208*** used, and then restart.
8209
8210_LT_EOF
8211      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8212	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8213	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8214      else
8215	ld_shlibs=no
8216      fi
8217      ;;
8218
8219    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8220      case `$LD -v 2>&1` in
8221        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8222	ld_shlibs=no
8223	cat <<_LT_EOF 1>&2
8224
8225*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8226*** reliably create shared libraries on SCO systems.  Therefore, libtool
8227*** is disabling shared libraries support.  We urge you to upgrade GNU
8228*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8229*** your PATH or compiler configuration so that the native linker is
8230*** used, and then restart.
8231
8232_LT_EOF
8233	;;
8234	*)
8235	  # For security reasons, it is highly recommended that you always
8236	  # use absolute paths for naming shared libraries, and exclude the
8237	  # DT_RUNPATH tag from executables and libraries.  But doing so
8238	  # requires that you compile everything twice, which is a pain.
8239	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8240	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8241	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8242	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8243	  else
8244	    ld_shlibs=no
8245	  fi
8246	;;
8247      esac
8248      ;;
8249
8250    sunos4*)
8251      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8252      wlarc=
8253      hardcode_direct=yes
8254      hardcode_shlibpath_var=no
8255      ;;
8256
8257    *)
8258      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8259	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8260	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8261      else
8262	ld_shlibs=no
8263      fi
8264      ;;
8265    esac
8266
8267    if test "$ld_shlibs" = no; then
8268      runpath_var=
8269      hardcode_libdir_flag_spec=
8270      export_dynamic_flag_spec=
8271      whole_archive_flag_spec=
8272    fi
8273  else
8274    # PORTME fill in a description of your system's linker (not GNU ld)
8275    case $host_os in
8276    aix3*)
8277      allow_undefined_flag=unsupported
8278      always_export_symbols=yes
8279      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'
8280      # Note: this linker hardcodes the directories in LIBPATH if there
8281      # are no directories specified by -L.
8282      hardcode_minus_L=yes
8283      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8284	# Neither direct hardcoding nor static linking is supported with a
8285	# broken collect2.
8286	hardcode_direct=unsupported
8287      fi
8288      ;;
8289
8290    aix[4-9]*)
8291      if test "$host_cpu" = ia64; then
8292	# On IA64, the linker does run time linking by default, so we don't
8293	# have to do anything special.
8294	aix_use_runtimelinking=no
8295	exp_sym_flag='-Bexport'
8296	no_entry_flag=""
8297      else
8298	# If we're using GNU nm, then we don't want the "-C" option.
8299	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8300	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8301	  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'
8302	else
8303	  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'
8304	fi
8305	aix_use_runtimelinking=no
8306
8307	# Test if we are trying to use run time linking or normal
8308	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8309	# need to do runtime linking.
8310	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8311	  for ld_flag in $LDFLAGS; do
8312	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8313	    aix_use_runtimelinking=yes
8314	    break
8315	  fi
8316	  done
8317	  ;;
8318	esac
8319
8320	exp_sym_flag='-bexport'
8321	no_entry_flag='-bnoentry'
8322      fi
8323
8324      # When large executables or shared objects are built, AIX ld can
8325      # have problems creating the table of contents.  If linking a library
8326      # or program results in "error TOC overflow" add -mminimal-toc to
8327      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8328      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8329
8330      archive_cmds=''
8331      hardcode_direct=yes
8332      hardcode_direct_absolute=yes
8333      hardcode_libdir_separator=':'
8334      link_all_deplibs=yes
8335      file_list_spec='${wl}-f,'
8336
8337      if test "$GCC" = yes; then
8338	case $host_os in aix4.[012]|aix4.[012].*)
8339	# We only want to do this on AIX 4.2 and lower, the check
8340	# below for broken collect2 doesn't work under 4.3+
8341	  collect2name=`${CC} -print-prog-name=collect2`
8342	  if test -f "$collect2name" &&
8343	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8344	  then
8345	  # We have reworked collect2
8346	  :
8347	  else
8348	  # We have old collect2
8349	  hardcode_direct=unsupported
8350	  # It fails to find uninstalled libraries when the uninstalled
8351	  # path is not listed in the libpath.  Setting hardcode_minus_L
8352	  # to unsupported forces relinking
8353	  hardcode_minus_L=yes
8354	  hardcode_libdir_flag_spec='-L$libdir'
8355	  hardcode_libdir_separator=
8356	  fi
8357	  ;;
8358	esac
8359	shared_flag='-shared'
8360	if test "$aix_use_runtimelinking" = yes; then
8361	  shared_flag="$shared_flag "'${wl}-G'
8362	fi
8363	link_all_deplibs=no
8364      else
8365	# not using gcc
8366	if test "$host_cpu" = ia64; then
8367	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8368	# chokes on -Wl,-G. The following line is correct:
8369	  shared_flag='-G'
8370	else
8371	  if test "$aix_use_runtimelinking" = yes; then
8372	    shared_flag='${wl}-G'
8373	  else
8374	    shared_flag='${wl}-bM:SRE'
8375	  fi
8376	fi
8377      fi
8378
8379      export_dynamic_flag_spec='${wl}-bexpall'
8380      # It seems that -bexpall does not export symbols beginning with
8381      # underscore (_), so it is better to generate a list of symbols to export.
8382      always_export_symbols=yes
8383      if test "$aix_use_runtimelinking" = yes; then
8384	# Warning - without using the other runtime loading flags (-brtl),
8385	# -berok will link without error, but may produce a broken library.
8386	allow_undefined_flag='-berok'
8387        # Determine the default libpath from the value encoded in an
8388        # empty executable.
8389        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8390/* end confdefs.h.  */
8391
8392int
8393main ()
8394{
8395
8396  ;
8397  return 0;
8398}
8399_ACEOF
8400if ac_fn_c_try_link "$LINENO"; then :
8401
8402lt_aix_libpath_sed='
8403    /Import File Strings/,/^$/ {
8404	/^0/ {
8405	    s/^0  *\(.*\)$/\1/
8406	    p
8407	}
8408    }'
8409aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8410# Check for a 64-bit object if we didn't find anything.
8411if test -z "$aix_libpath"; then
8412  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8413fi
8414fi
8415rm -f core conftest.err conftest.$ac_objext \
8416    conftest$ac_exeext conftest.$ac_ext
8417if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8418
8419        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8420        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"
8421      else
8422	if test "$host_cpu" = ia64; then
8423	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8424	  allow_undefined_flag="-z nodefs"
8425	  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"
8426	else
8427	 # Determine the default libpath from the value encoded in an
8428	 # empty executable.
8429	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8430/* end confdefs.h.  */
8431
8432int
8433main ()
8434{
8435
8436  ;
8437  return 0;
8438}
8439_ACEOF
8440if ac_fn_c_try_link "$LINENO"; then :
8441
8442lt_aix_libpath_sed='
8443    /Import File Strings/,/^$/ {
8444	/^0/ {
8445	    s/^0  *\(.*\)$/\1/
8446	    p
8447	}
8448    }'
8449aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8450# Check for a 64-bit object if we didn't find anything.
8451if test -z "$aix_libpath"; then
8452  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8453fi
8454fi
8455rm -f core conftest.err conftest.$ac_objext \
8456    conftest$ac_exeext conftest.$ac_ext
8457if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8458
8459	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8460	  # Warning - without using the other run time loading flags,
8461	  # -berok will link without error, but may produce a broken library.
8462	  no_undefined_flag=' ${wl}-bernotok'
8463	  allow_undefined_flag=' ${wl}-berok'
8464	  # Exported symbols can be pulled into shared objects from archives
8465	  whole_archive_flag_spec='$convenience'
8466	  archive_cmds_need_lc=yes
8467	  # This is similar to how AIX traditionally builds its shared libraries.
8468	  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'
8469	fi
8470      fi
8471      ;;
8472
8473    amigaos*)
8474      case $host_cpu in
8475      powerpc)
8476            # see comment about AmigaOS4 .so support
8477            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8478            archive_expsym_cmds=''
8479        ;;
8480      m68k)
8481            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)'
8482            hardcode_libdir_flag_spec='-L$libdir'
8483            hardcode_minus_L=yes
8484        ;;
8485      esac
8486      ;;
8487
8488    bsdi[45]*)
8489      export_dynamic_flag_spec=-rdynamic
8490      ;;
8491
8492    cygwin* | mingw* | pw32* | cegcc*)
8493      # When not using gcc, we currently assume that we are using
8494      # Microsoft Visual C++.
8495      # hardcode_libdir_flag_spec is actually meaningless, as there is
8496      # no search path for DLLs.
8497      hardcode_libdir_flag_spec=' '
8498      allow_undefined_flag=unsupported
8499      # Tell ltmain to make .lib files, not .a files.
8500      libext=lib
8501      # Tell ltmain to make .dll files, not .so files.
8502      shrext_cmds=".dll"
8503      # FIXME: Setting linknames here is a bad hack.
8504      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8505      # The linker will automatically build a .lib file if we build a DLL.
8506      old_archive_from_new_cmds='true'
8507      # FIXME: Should let the user specify the lib program.
8508      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8509      fix_srcfile_path='`cygpath -w "$srcfile"`'
8510      enable_shared_with_static_runtimes=yes
8511      ;;
8512
8513    darwin* | rhapsody*)
8514
8515
8516  archive_cmds_need_lc=no
8517  hardcode_direct=no
8518  hardcode_automatic=yes
8519  hardcode_shlibpath_var=unsupported
8520  whole_archive_flag_spec=''
8521  link_all_deplibs=yes
8522  allow_undefined_flag="$_lt_dar_allow_undefined"
8523  case $cc_basename in
8524     ifort*) _lt_dar_can_shared=yes ;;
8525     *) _lt_dar_can_shared=$GCC ;;
8526  esac
8527  if test "$_lt_dar_can_shared" = "yes"; then
8528    output_verbose_link_cmd=echo
8529    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8530    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8531    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}"
8532    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}"
8533
8534  else
8535  ld_shlibs=no
8536  fi
8537
8538      ;;
8539
8540    dgux*)
8541      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8542      hardcode_libdir_flag_spec='-L$libdir'
8543      hardcode_shlibpath_var=no
8544      ;;
8545
8546    freebsd1*)
8547      ld_shlibs=no
8548      ;;
8549
8550    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8551    # support.  Future versions do this automatically, but an explicit c++rt0.o
8552    # does not break anything, and helps significantly (at the cost of a little
8553    # extra space).
8554    freebsd2.2*)
8555      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8556      hardcode_libdir_flag_spec='-R$libdir'
8557      hardcode_direct=yes
8558      hardcode_shlibpath_var=no
8559      ;;
8560
8561    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8562    freebsd2*)
8563      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8564      hardcode_direct=yes
8565      hardcode_minus_L=yes
8566      hardcode_shlibpath_var=no
8567      ;;
8568
8569    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8570    freebsd* | dragonfly*)
8571      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8572      hardcode_libdir_flag_spec='-R$libdir'
8573      hardcode_direct=yes
8574      hardcode_shlibpath_var=no
8575      ;;
8576
8577    hpux9*)
8578      if test "$GCC" = yes; then
8579	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'
8580      else
8581	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'
8582      fi
8583      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8584      hardcode_libdir_separator=:
8585      hardcode_direct=yes
8586
8587      # hardcode_minus_L: Not really in the search PATH,
8588      # but as the default location of the library.
8589      hardcode_minus_L=yes
8590      export_dynamic_flag_spec='${wl}-E'
8591      ;;
8592
8593    hpux10*)
8594      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8595	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8596      else
8597	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8598      fi
8599      if test "$with_gnu_ld" = no; then
8600	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8601	hardcode_libdir_flag_spec_ld='+b $libdir'
8602	hardcode_libdir_separator=:
8603	hardcode_direct=yes
8604	hardcode_direct_absolute=yes
8605	export_dynamic_flag_spec='${wl}-E'
8606	# hardcode_minus_L: Not really in the search PATH,
8607	# but as the default location of the library.
8608	hardcode_minus_L=yes
8609      fi
8610      ;;
8611
8612    hpux11*)
8613      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8614	case $host_cpu in
8615	hppa*64*)
8616	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8617	  ;;
8618	ia64*)
8619	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8620	  ;;
8621	*)
8622	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8623	  ;;
8624	esac
8625      else
8626	case $host_cpu in
8627	hppa*64*)
8628	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8629	  ;;
8630	ia64*)
8631	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8632	  ;;
8633	*)
8634	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8635	  ;;
8636	esac
8637      fi
8638      if test "$with_gnu_ld" = no; then
8639	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8640	hardcode_libdir_separator=:
8641
8642	case $host_cpu in
8643	hppa*64*|ia64*)
8644	  hardcode_direct=no
8645	  hardcode_shlibpath_var=no
8646	  ;;
8647	*)
8648	  hardcode_direct=yes
8649	  hardcode_direct_absolute=yes
8650	  export_dynamic_flag_spec='${wl}-E'
8651
8652	  # hardcode_minus_L: Not really in the search PATH,
8653	  # but as the default location of the library.
8654	  hardcode_minus_L=yes
8655	  ;;
8656	esac
8657      fi
8658      ;;
8659
8660    irix5* | irix6* | nonstopux*)
8661      if test "$GCC" = yes; then
8662	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'
8663	# Try to use the -exported_symbol ld option, if it does not
8664	# work, assume that -exports_file does not work either and
8665	# implicitly export all symbols.
8666        save_LDFLAGS="$LDFLAGS"
8667        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8668        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8669/* end confdefs.h.  */
8670int foo(void) {}
8671_ACEOF
8672if ac_fn_c_try_link "$LINENO"; then :
8673  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'
8674
8675fi
8676rm -f core conftest.err conftest.$ac_objext \
8677    conftest$ac_exeext conftest.$ac_ext
8678        LDFLAGS="$save_LDFLAGS"
8679      else
8680	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'
8681	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'
8682      fi
8683      archive_cmds_need_lc='no'
8684      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8685      hardcode_libdir_separator=:
8686      inherit_rpath=yes
8687      link_all_deplibs=yes
8688      ;;
8689
8690    netbsd*)
8691      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8692	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8693      else
8694	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8695      fi
8696      hardcode_libdir_flag_spec='-R$libdir'
8697      hardcode_direct=yes
8698      hardcode_shlibpath_var=no
8699      ;;
8700
8701    newsos6)
8702      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8703      hardcode_direct=yes
8704      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8705      hardcode_libdir_separator=:
8706      hardcode_shlibpath_var=no
8707      ;;
8708
8709    *nto* | *qnx*)
8710      ;;
8711
8712    openbsd*)
8713      if test -f /usr/libexec/ld.so; then
8714	hardcode_direct=yes
8715	hardcode_shlibpath_var=no
8716	hardcode_direct_absolute=yes
8717	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8718	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8719	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8720	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8721	  export_dynamic_flag_spec='${wl}-E'
8722	else
8723	  case $host_os in
8724	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8725	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8726	     hardcode_libdir_flag_spec='-R$libdir'
8727	     ;;
8728	   *)
8729	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8730	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8731	     ;;
8732	  esac
8733	fi
8734      else
8735	ld_shlibs=no
8736      fi
8737      ;;
8738
8739    os2*)
8740      hardcode_libdir_flag_spec='-L$libdir'
8741      hardcode_minus_L=yes
8742      allow_undefined_flag=unsupported
8743      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'
8744      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8745      ;;
8746
8747    osf3*)
8748      if test "$GCC" = yes; then
8749	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8750	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'
8751      else
8752	allow_undefined_flag=' -expect_unresolved \*'
8753	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'
8754      fi
8755      archive_cmds_need_lc='no'
8756      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8757      hardcode_libdir_separator=:
8758      ;;
8759
8760    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8761      if test "$GCC" = yes; then
8762	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8763	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'
8764	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8765      else
8766	allow_undefined_flag=' -expect_unresolved \*'
8767	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'
8768	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~
8769	$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'
8770
8771	# Both c and cxx compiler support -rpath directly
8772	hardcode_libdir_flag_spec='-rpath $libdir'
8773      fi
8774      archive_cmds_need_lc='no'
8775      hardcode_libdir_separator=:
8776      ;;
8777
8778    solaris*)
8779      no_undefined_flag=' -z defs'
8780      if test "$GCC" = yes; then
8781	wlarc='${wl}'
8782	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8783	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8784	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8785      else
8786	case `$CC -V 2>&1` in
8787	*"Compilers 5.0"*)
8788	  wlarc=''
8789	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8790	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8791	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8792	  ;;
8793	*)
8794	  wlarc='${wl}'
8795	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8796	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8797	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8798	  ;;
8799	esac
8800      fi
8801      hardcode_libdir_flag_spec='-R$libdir'
8802      hardcode_shlibpath_var=no
8803      case $host_os in
8804      solaris2.[0-5] | solaris2.[0-5].*) ;;
8805      *)
8806	# The compiler driver will combine and reorder linker options,
8807	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8808	# but is careful enough not to reorder.
8809	# Supported since Solaris 2.6 (maybe 2.5.1?)
8810	if test "$GCC" = yes; then
8811	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8812	else
8813	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8814	fi
8815	;;
8816      esac
8817      link_all_deplibs=yes
8818      ;;
8819
8820    sunos4*)
8821      if test "x$host_vendor" = xsequent; then
8822	# Use $CC to link under sequent, because it throws in some extra .o
8823	# files that make .init and .fini sections work.
8824	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8825      else
8826	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8827      fi
8828      hardcode_libdir_flag_spec='-L$libdir'
8829      hardcode_direct=yes
8830      hardcode_minus_L=yes
8831      hardcode_shlibpath_var=no
8832      ;;
8833
8834    sysv4)
8835      case $host_vendor in
8836	sni)
8837	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8838	  hardcode_direct=yes # is this really true???
8839	;;
8840	siemens)
8841	  ## LD is ld it makes a PLAMLIB
8842	  ## CC just makes a GrossModule.
8843	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8844	  reload_cmds='$CC -r -o $output$reload_objs'
8845	  hardcode_direct=no
8846        ;;
8847	motorola)
8848	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8849	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8850	;;
8851      esac
8852      runpath_var='LD_RUN_PATH'
8853      hardcode_shlibpath_var=no
8854      ;;
8855
8856    sysv4.3*)
8857      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8858      hardcode_shlibpath_var=no
8859      export_dynamic_flag_spec='-Bexport'
8860      ;;
8861
8862    sysv4*MP*)
8863      if test -d /usr/nec; then
8864	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8865	hardcode_shlibpath_var=no
8866	runpath_var=LD_RUN_PATH
8867	hardcode_runpath_var=yes
8868	ld_shlibs=yes
8869      fi
8870      ;;
8871
8872    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8873      no_undefined_flag='${wl}-z,text'
8874      archive_cmds_need_lc=no
8875      hardcode_shlibpath_var=no
8876      runpath_var='LD_RUN_PATH'
8877
8878      if test "$GCC" = yes; then
8879	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8880	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8881      else
8882	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8883	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8884      fi
8885      ;;
8886
8887    sysv5* | sco3.2v5* | sco5v6*)
8888      # Note: We can NOT use -z defs as we might desire, because we do not
8889      # link with -lc, and that would cause any symbols used from libc to
8890      # always be unresolved, which means just about no library would
8891      # ever link correctly.  If we're not using GNU ld we use -z text
8892      # though, which does catch some bad symbols but isn't as heavy-handed
8893      # as -z defs.
8894      no_undefined_flag='${wl}-z,text'
8895      allow_undefined_flag='${wl}-z,nodefs'
8896      archive_cmds_need_lc=no
8897      hardcode_shlibpath_var=no
8898      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8899      hardcode_libdir_separator=':'
8900      link_all_deplibs=yes
8901      export_dynamic_flag_spec='${wl}-Bexport'
8902      runpath_var='LD_RUN_PATH'
8903
8904      if test "$GCC" = yes; then
8905	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8906	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8907      else
8908	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8909	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8910      fi
8911      ;;
8912
8913    uts4*)
8914      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8915      hardcode_libdir_flag_spec='-L$libdir'
8916      hardcode_shlibpath_var=no
8917      ;;
8918
8919    *)
8920      ld_shlibs=no
8921      ;;
8922    esac
8923
8924    if test x$host_vendor = xsni; then
8925      case $host in
8926      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8927	export_dynamic_flag_spec='${wl}-Blargedynsym'
8928	;;
8929      esac
8930    fi
8931  fi
8932
8933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8934$as_echo "$ld_shlibs" >&6; }
8935test "$ld_shlibs" = no && can_build_shared=no
8936
8937with_gnu_ld=$with_gnu_ld
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953#
8954# Do we need to explicitly link libc?
8955#
8956case "x$archive_cmds_need_lc" in
8957x|xyes)
8958  # Assume -lc should be added
8959  archive_cmds_need_lc=yes
8960
8961  if test "$enable_shared" = yes && test "$GCC" = yes; then
8962    case $archive_cmds in
8963    *'~'*)
8964      # FIXME: we may have to deal with multi-command sequences.
8965      ;;
8966    '$CC '*)
8967      # Test whether the compiler implicitly links with -lc since on some
8968      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8969      # to ld, don't add -lc before -lgcc.
8970      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8971$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8972      $RM conftest*
8973      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8974
8975      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8976  (eval $ac_compile) 2>&5
8977  ac_status=$?
8978  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8979  test $ac_status = 0; } 2>conftest.err; then
8980        soname=conftest
8981        lib=conftest
8982        libobjs=conftest.$ac_objext
8983        deplibs=
8984        wl=$lt_prog_compiler_wl
8985	pic_flag=$lt_prog_compiler_pic
8986        compiler_flags=-v
8987        linker_flags=-v
8988        verstring=
8989        output_objdir=.
8990        libname=conftest
8991        lt_save_allow_undefined_flag=$allow_undefined_flag
8992        allow_undefined_flag=
8993        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8994  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8995  ac_status=$?
8996  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8997  test $ac_status = 0; }
8998        then
8999	  archive_cmds_need_lc=no
9000        else
9001	  archive_cmds_need_lc=yes
9002        fi
9003        allow_undefined_flag=$lt_save_allow_undefined_flag
9004      else
9005        cat conftest.err 1>&5
9006      fi
9007      $RM conftest*
9008      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9009$as_echo "$archive_cmds_need_lc" >&6; }
9010      ;;
9011    esac
9012  fi
9013  ;;
9014esac
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
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9173$as_echo_n "checking dynamic linker characteristics... " >&6; }
9174
9175if test "$GCC" = yes; then
9176  case $host_os in
9177    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9178    *) lt_awk_arg="/^libraries:/" ;;
9179  esac
9180  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9181  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9182    # if the path contains ";" then we assume it to be the separator
9183    # otherwise default to the standard path separator (i.e. ":") - it is
9184    # assumed that no part of a normal pathname contains ";" but that should
9185    # okay in the real world where ";" in dirpaths is itself problematic.
9186    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9187  else
9188    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9189  fi
9190  # Ok, now we have the path, separated by spaces, we can step through it
9191  # and add multilib dir if necessary.
9192  lt_tmp_lt_search_path_spec=
9193  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9194  for lt_sys_path in $lt_search_path_spec; do
9195    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9196      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9197    else
9198      test -d "$lt_sys_path" && \
9199	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9200    fi
9201  done
9202  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9203BEGIN {RS=" "; FS="/|\n";} {
9204  lt_foo="";
9205  lt_count=0;
9206  for (lt_i = NF; lt_i > 0; lt_i--) {
9207    if ($lt_i != "" && $lt_i != ".") {
9208      if ($lt_i == "..") {
9209        lt_count++;
9210      } else {
9211        if (lt_count == 0) {
9212          lt_foo="/" $lt_i lt_foo;
9213        } else {
9214          lt_count--;
9215        }
9216      }
9217    }
9218  }
9219  if (lt_foo != "") { lt_freq[lt_foo]++; }
9220  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9221}'`
9222  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9223else
9224  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9225fi
9226library_names_spec=
9227libname_spec='lib$name'
9228soname_spec=
9229shrext_cmds=".so"
9230postinstall_cmds=
9231postuninstall_cmds=
9232finish_cmds=
9233finish_eval=
9234shlibpath_var=
9235shlibpath_overrides_runpath=unknown
9236version_type=none
9237dynamic_linker="$host_os ld.so"
9238sys_lib_dlsearch_path_spec="/lib /usr/lib"
9239need_lib_prefix=unknown
9240hardcode_into_libs=no
9241
9242# when you set need_version to no, make sure it does not cause -set_version
9243# flags to be left without arguments
9244need_version=unknown
9245
9246case $host_os in
9247aix3*)
9248  version_type=linux
9249  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9250  shlibpath_var=LIBPATH
9251
9252  # AIX 3 has no versioning support, so we append a major version to the name.
9253  soname_spec='${libname}${release}${shared_ext}$major'
9254  ;;
9255
9256aix[4-9]*)
9257  version_type=linux
9258  need_lib_prefix=no
9259  need_version=no
9260  hardcode_into_libs=yes
9261  if test "$host_cpu" = ia64; then
9262    # AIX 5 supports IA64
9263    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9264    shlibpath_var=LD_LIBRARY_PATH
9265  else
9266    # With GCC up to 2.95.x, collect2 would create an import file
9267    # for dependence libraries.  The import file would start with
9268    # the line `#! .'.  This would cause the generated library to
9269    # depend on `.', always an invalid library.  This was fixed in
9270    # development snapshots of GCC prior to 3.0.
9271    case $host_os in
9272      aix4 | aix4.[01] | aix4.[01].*)
9273      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9274	   echo ' yes '
9275	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9276	:
9277      else
9278	can_build_shared=no
9279      fi
9280      ;;
9281    esac
9282    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9283    # soname into executable. Probably we can add versioning support to
9284    # collect2, so additional links can be useful in future.
9285    if test "$aix_use_runtimelinking" = yes; then
9286      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9287      # instead of lib<name>.a to let people know that these are not
9288      # typical AIX shared libraries.
9289      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9290    else
9291      # We preserve .a as extension for shared libraries through AIX4.2
9292      # and later when we are not doing run time linking.
9293      library_names_spec='${libname}${release}.a $libname.a'
9294      soname_spec='${libname}${release}${shared_ext}$major'
9295    fi
9296    shlibpath_var=LIBPATH
9297  fi
9298  ;;
9299
9300amigaos*)
9301  case $host_cpu in
9302  powerpc)
9303    # Since July 2007 AmigaOS4 officially supports .so libraries.
9304    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9305    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9306    ;;
9307  m68k)
9308    library_names_spec='$libname.ixlibrary $libname.a'
9309    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9310    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'
9311    ;;
9312  esac
9313  ;;
9314
9315beos*)
9316  library_names_spec='${libname}${shared_ext}'
9317  dynamic_linker="$host_os ld.so"
9318  shlibpath_var=LIBRARY_PATH
9319  ;;
9320
9321bsdi[45]*)
9322  version_type=linux
9323  need_version=no
9324  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9325  soname_spec='${libname}${release}${shared_ext}$major'
9326  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9327  shlibpath_var=LD_LIBRARY_PATH
9328  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9329  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9330  # the default ld.so.conf also contains /usr/contrib/lib and
9331  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9332  # libtool to hard-code these into programs
9333  ;;
9334
9335cygwin* | mingw* | pw32* | cegcc*)
9336  version_type=windows
9337  shrext_cmds=".dll"
9338  need_version=no
9339  need_lib_prefix=no
9340
9341  case $GCC,$host_os in
9342  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9343    library_names_spec='$libname.dll.a'
9344    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9345    postinstall_cmds='base_file=`basename \${file}`~
9346      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9347      dldir=$destdir/`dirname \$dlpath`~
9348      test -d \$dldir || mkdir -p \$dldir~
9349      $install_prog $dir/$dlname \$dldir/$dlname~
9350      chmod a+x \$dldir/$dlname~
9351      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9352        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9353      fi'
9354    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9355      dlpath=$dir/\$dldll~
9356       $RM \$dlpath'
9357    shlibpath_overrides_runpath=yes
9358
9359    case $host_os in
9360    cygwin*)
9361      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9362      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9363      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9364      ;;
9365    mingw* | cegcc*)
9366      # MinGW DLLs use traditional 'lib' prefix
9367      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9368      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9369      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9370        # It is most probably a Windows format PATH printed by
9371        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9372        # path with ; separators, and with drive letters. We can handle the
9373        # drive letters (cygwin fileutils understands them), so leave them,
9374        # especially as we might pass files found there to a mingw objdump,
9375        # which wouldn't understand a cygwinified path. Ahh.
9376        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9377      else
9378        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9379      fi
9380      ;;
9381    pw32*)
9382      # pw32 DLLs use 'pw' prefix rather than 'lib'
9383      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9384      ;;
9385    esac
9386    ;;
9387
9388  *)
9389    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9390    ;;
9391  esac
9392  dynamic_linker='Win32 ld.exe'
9393  # FIXME: first we should search . and the directory the executable is in
9394  shlibpath_var=PATH
9395  ;;
9396
9397darwin* | rhapsody*)
9398  dynamic_linker="$host_os dyld"
9399  version_type=darwin
9400  need_lib_prefix=no
9401  need_version=no
9402  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9403  soname_spec='${libname}${release}${major}$shared_ext'
9404  shlibpath_overrides_runpath=yes
9405  shlibpath_var=DYLD_LIBRARY_PATH
9406  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9407
9408  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9409  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9410  ;;
9411
9412dgux*)
9413  version_type=linux
9414  need_lib_prefix=no
9415  need_version=no
9416  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9417  soname_spec='${libname}${release}${shared_ext}$major'
9418  shlibpath_var=LD_LIBRARY_PATH
9419  ;;
9420
9421freebsd1*)
9422  dynamic_linker=no
9423  ;;
9424
9425freebsd* | dragonfly*)
9426  # DragonFly does not have aout.  When/if they implement a new
9427  # versioning mechanism, adjust this.
9428  if test -x /usr/bin/objformat; then
9429    objformat=`/usr/bin/objformat`
9430  else
9431    case $host_os in
9432    freebsd[123]*) objformat=aout ;;
9433    *) objformat=elf ;;
9434    esac
9435  fi
9436  version_type=freebsd-$objformat
9437  case $version_type in
9438    freebsd-elf*)
9439      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9440      need_version=no
9441      need_lib_prefix=no
9442      ;;
9443    freebsd-*)
9444      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9445      need_version=yes
9446      ;;
9447  esac
9448  shlibpath_var=LD_LIBRARY_PATH
9449  case $host_os in
9450  freebsd2*)
9451    shlibpath_overrides_runpath=yes
9452    ;;
9453  freebsd3.[01]* | freebsdelf3.[01]*)
9454    shlibpath_overrides_runpath=yes
9455    hardcode_into_libs=yes
9456    ;;
9457  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9458  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9459    shlibpath_overrides_runpath=no
9460    hardcode_into_libs=yes
9461    ;;
9462  *) # from 4.6 on, and DragonFly
9463    shlibpath_overrides_runpath=yes
9464    hardcode_into_libs=yes
9465    ;;
9466  esac
9467  ;;
9468
9469gnu*)
9470  version_type=linux
9471  need_lib_prefix=no
9472  need_version=no
9473  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9474  soname_spec='${libname}${release}${shared_ext}$major'
9475  shlibpath_var=LD_LIBRARY_PATH
9476  hardcode_into_libs=yes
9477  ;;
9478
9479hpux9* | hpux10* | hpux11*)
9480  # Give a soname corresponding to the major version so that dld.sl refuses to
9481  # link against other versions.
9482  version_type=sunos
9483  need_lib_prefix=no
9484  need_version=no
9485  case $host_cpu in
9486  ia64*)
9487    shrext_cmds='.so'
9488    hardcode_into_libs=yes
9489    dynamic_linker="$host_os dld.so"
9490    shlibpath_var=LD_LIBRARY_PATH
9491    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9492    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9493    soname_spec='${libname}${release}${shared_ext}$major'
9494    if test "X$HPUX_IA64_MODE" = X32; then
9495      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9496    else
9497      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9498    fi
9499    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9500    ;;
9501  hppa*64*)
9502    shrext_cmds='.sl'
9503    hardcode_into_libs=yes
9504    dynamic_linker="$host_os dld.sl"
9505    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9506    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9507    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9508    soname_spec='${libname}${release}${shared_ext}$major'
9509    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9510    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9511    ;;
9512  *)
9513    shrext_cmds='.sl'
9514    dynamic_linker="$host_os dld.sl"
9515    shlibpath_var=SHLIB_PATH
9516    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9517    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9518    soname_spec='${libname}${release}${shared_ext}$major'
9519    ;;
9520  esac
9521  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9522  postinstall_cmds='chmod 555 $lib'
9523  ;;
9524
9525interix[3-9]*)
9526  version_type=linux
9527  need_lib_prefix=no
9528  need_version=no
9529  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9530  soname_spec='${libname}${release}${shared_ext}$major'
9531  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9532  shlibpath_var=LD_LIBRARY_PATH
9533  shlibpath_overrides_runpath=no
9534  hardcode_into_libs=yes
9535  ;;
9536
9537irix5* | irix6* | nonstopux*)
9538  case $host_os in
9539    nonstopux*) version_type=nonstopux ;;
9540    *)
9541	if test "$lt_cv_prog_gnu_ld" = yes; then
9542		version_type=linux
9543	else
9544		version_type=irix
9545	fi ;;
9546  esac
9547  need_lib_prefix=no
9548  need_version=no
9549  soname_spec='${libname}${release}${shared_ext}$major'
9550  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9551  case $host_os in
9552  irix5* | nonstopux*)
9553    libsuff= shlibsuff=
9554    ;;
9555  *)
9556    case $LD in # libtool.m4 will add one of these switches to LD
9557    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9558      libsuff= shlibsuff= libmagic=32-bit;;
9559    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9560      libsuff=32 shlibsuff=N32 libmagic=N32;;
9561    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9562      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9563    *) libsuff= shlibsuff= libmagic=never-match;;
9564    esac
9565    ;;
9566  esac
9567  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9568  shlibpath_overrides_runpath=no
9569  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9570  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9571  hardcode_into_libs=yes
9572  ;;
9573
9574# No shared lib support for Linux oldld, aout, or coff.
9575linux*oldld* | linux*aout* | linux*coff*)
9576  dynamic_linker=no
9577  ;;
9578
9579# This must be Linux ELF.
9580linux* | k*bsd*-gnu)
9581  version_type=linux
9582  need_lib_prefix=no
9583  need_version=no
9584  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9585  soname_spec='${libname}${release}${shared_ext}$major'
9586  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9587  shlibpath_var=LD_LIBRARY_PATH
9588  shlibpath_overrides_runpath=no
9589  # Some binutils ld are patched to set DT_RUNPATH
9590  save_LDFLAGS=$LDFLAGS
9591  save_libdir=$libdir
9592  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9593       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9595/* end confdefs.h.  */
9596
9597int
9598main ()
9599{
9600
9601  ;
9602  return 0;
9603}
9604_ACEOF
9605if ac_fn_c_try_link "$LINENO"; then :
9606  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9607  shlibpath_overrides_runpath=yes
9608fi
9609fi
9610rm -f core conftest.err conftest.$ac_objext \
9611    conftest$ac_exeext conftest.$ac_ext
9612  LDFLAGS=$save_LDFLAGS
9613  libdir=$save_libdir
9614
9615  # This implies no fast_install, which is unacceptable.
9616  # Some rework will be needed to allow for fast_install
9617  # before this can be enabled.
9618  hardcode_into_libs=yes
9619
9620  # find out which ABI we are using
9621  libsuff=
9622  case "$host_cpu" in
9623  x86_64*|s390x*|powerpc64*)
9624    echo '#line 9624 "configure"' > conftest.$ac_ext
9625    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9626  (eval $ac_compile) 2>&5
9627  ac_status=$?
9628  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9629  test $ac_status = 0; }; then
9630      case `/usr/bin/file conftest.$ac_objext` in
9631      *64-bit*)
9632        libsuff=64
9633        ;;
9634      esac
9635    fi
9636    rm -rf conftest*
9637    ;;
9638  esac
9639
9640  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
9641
9642  # Append ld.so.conf contents to the search path
9643  if test -f /etc/ld.so.conf; then
9644    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' ' '`
9645    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9646  fi
9647
9648  # We used to test for /lib/ld.so.1 and disable shared libraries on
9649  # powerpc, because MkLinux only supported shared libraries with the
9650  # GNU dynamic linker.  Since this was broken with cross compilers,
9651  # most powerpc-linux boxes support dynamic linking these days and
9652  # people can always --disable-shared, the test was removed, and we
9653  # assume the GNU/Linux dynamic linker is in use.
9654  dynamic_linker='GNU/Linux ld.so'
9655  ;;
9656
9657netbsd*)
9658  version_type=sunos
9659  need_lib_prefix=no
9660  need_version=no
9661  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9662    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9663    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9664    dynamic_linker='NetBSD (a.out) ld.so'
9665  else
9666    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9667    soname_spec='${libname}${release}${shared_ext}$major'
9668    dynamic_linker='NetBSD ld.elf_so'
9669  fi
9670  shlibpath_var=LD_LIBRARY_PATH
9671  shlibpath_overrides_runpath=yes
9672  hardcode_into_libs=yes
9673  ;;
9674
9675newsos6)
9676  version_type=linux
9677  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9678  shlibpath_var=LD_LIBRARY_PATH
9679  shlibpath_overrides_runpath=yes
9680  ;;
9681
9682*nto* | *qnx*)
9683  version_type=qnx
9684  need_lib_prefix=no
9685  need_version=no
9686  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9687  soname_spec='${libname}${release}${shared_ext}$major'
9688  shlibpath_var=LD_LIBRARY_PATH
9689  shlibpath_overrides_runpath=no
9690  hardcode_into_libs=yes
9691  dynamic_linker='ldqnx.so'
9692  ;;
9693
9694openbsd*)
9695  version_type=sunos
9696  sys_lib_dlsearch_path_spec="/usr/lib"
9697  need_lib_prefix=no
9698  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9699  case $host_os in
9700    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9701    *)				need_version=no  ;;
9702  esac
9703  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9704  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9705  shlibpath_var=LD_LIBRARY_PATH
9706  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9707    case $host_os in
9708      openbsd2.[89] | openbsd2.[89].*)
9709	shlibpath_overrides_runpath=no
9710	;;
9711      *)
9712	shlibpath_overrides_runpath=yes
9713	;;
9714      esac
9715  else
9716    shlibpath_overrides_runpath=yes
9717  fi
9718  ;;
9719
9720os2*)
9721  libname_spec='$name'
9722  shrext_cmds=".dll"
9723  need_lib_prefix=no
9724  library_names_spec='$libname${shared_ext} $libname.a'
9725  dynamic_linker='OS/2 ld.exe'
9726  shlibpath_var=LIBPATH
9727  ;;
9728
9729osf3* | osf4* | osf5*)
9730  version_type=osf
9731  need_lib_prefix=no
9732  need_version=no
9733  soname_spec='${libname}${release}${shared_ext}$major'
9734  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9735  shlibpath_var=LD_LIBRARY_PATH
9736  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9737  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9738  ;;
9739
9740rdos*)
9741  dynamic_linker=no
9742  ;;
9743
9744solaris*)
9745  version_type=linux
9746  need_lib_prefix=no
9747  need_version=no
9748  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9749  soname_spec='${libname}${release}${shared_ext}$major'
9750  shlibpath_var=LD_LIBRARY_PATH
9751  shlibpath_overrides_runpath=yes
9752  hardcode_into_libs=yes
9753  # ldd complains unless libraries are executable
9754  postinstall_cmds='chmod +x $lib'
9755  ;;
9756
9757sunos4*)
9758  version_type=sunos
9759  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9760  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9761  shlibpath_var=LD_LIBRARY_PATH
9762  shlibpath_overrides_runpath=yes
9763  if test "$with_gnu_ld" = yes; then
9764    need_lib_prefix=no
9765  fi
9766  need_version=yes
9767  ;;
9768
9769sysv4 | sysv4.3*)
9770  version_type=linux
9771  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9772  soname_spec='${libname}${release}${shared_ext}$major'
9773  shlibpath_var=LD_LIBRARY_PATH
9774  case $host_vendor in
9775    sni)
9776      shlibpath_overrides_runpath=no
9777      need_lib_prefix=no
9778      runpath_var=LD_RUN_PATH
9779      ;;
9780    siemens)
9781      need_lib_prefix=no
9782      ;;
9783    motorola)
9784      need_lib_prefix=no
9785      need_version=no
9786      shlibpath_overrides_runpath=no
9787      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9788      ;;
9789  esac
9790  ;;
9791
9792sysv4*MP*)
9793  if test -d /usr/nec ;then
9794    version_type=linux
9795    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9796    soname_spec='$libname${shared_ext}.$major'
9797    shlibpath_var=LD_LIBRARY_PATH
9798  fi
9799  ;;
9800
9801sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9802  version_type=freebsd-elf
9803  need_lib_prefix=no
9804  need_version=no
9805  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9806  soname_spec='${libname}${release}${shared_ext}$major'
9807  shlibpath_var=LD_LIBRARY_PATH
9808  shlibpath_overrides_runpath=yes
9809  hardcode_into_libs=yes
9810  if test "$with_gnu_ld" = yes; then
9811    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9812  else
9813    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9814    case $host_os in
9815      sco3.2v5*)
9816        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9817	;;
9818    esac
9819  fi
9820  sys_lib_dlsearch_path_spec='/usr/lib'
9821  ;;
9822
9823tpf*)
9824  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9825  version_type=linux
9826  need_lib_prefix=no
9827  need_version=no
9828  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9829  shlibpath_var=LD_LIBRARY_PATH
9830  shlibpath_overrides_runpath=no
9831  hardcode_into_libs=yes
9832  ;;
9833
9834uts4*)
9835  version_type=linux
9836  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9837  soname_spec='${libname}${release}${shared_ext}$major'
9838  shlibpath_var=LD_LIBRARY_PATH
9839  ;;
9840
9841*)
9842  dynamic_linker=no
9843  ;;
9844esac
9845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9846$as_echo "$dynamic_linker" >&6; }
9847test "$dynamic_linker" = no && can_build_shared=no
9848
9849variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9850if test "$GCC" = yes; then
9851  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9852fi
9853
9854if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9855  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9856fi
9857if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9858  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9859fi
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9948$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9949hardcode_action=
9950if test -n "$hardcode_libdir_flag_spec" ||
9951   test -n "$runpath_var" ||
9952   test "X$hardcode_automatic" = "Xyes" ; then
9953
9954  # We can hardcode non-existent directories.
9955  if test "$hardcode_direct" != no &&
9956     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9957     # have to relink, otherwise we might link with an installed library
9958     # when we should be linking with a yet-to-be-installed one
9959     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9960     test "$hardcode_minus_L" != no; then
9961    # Linking always hardcodes the temporary library directory.
9962    hardcode_action=relink
9963  else
9964    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9965    hardcode_action=immediate
9966  fi
9967else
9968  # We cannot hardcode anything, or else we can only hardcode existing
9969  # directories.
9970  hardcode_action=unsupported
9971fi
9972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9973$as_echo "$hardcode_action" >&6; }
9974
9975if test "$hardcode_action" = relink ||
9976   test "$inherit_rpath" = yes; then
9977  # Fast installation is not supported
9978  enable_fast_install=no
9979elif test "$shlibpath_overrides_runpath" = yes ||
9980     test "$enable_shared" = no; then
9981  # Fast installation is not necessary
9982  enable_fast_install=needless
9983fi
9984
9985
9986
9987
9988
9989
9990  if test "x$enable_dlopen" != xyes; then
9991  enable_dlopen=unknown
9992  enable_dlopen_self=unknown
9993  enable_dlopen_self_static=unknown
9994else
9995  lt_cv_dlopen=no
9996  lt_cv_dlopen_libs=
9997
9998  case $host_os in
9999  beos*)
10000    lt_cv_dlopen="load_add_on"
10001    lt_cv_dlopen_libs=
10002    lt_cv_dlopen_self=yes
10003    ;;
10004
10005  mingw* | pw32* | cegcc*)
10006    lt_cv_dlopen="LoadLibrary"
10007    lt_cv_dlopen_libs=
10008    ;;
10009
10010  cygwin*)
10011    lt_cv_dlopen="dlopen"
10012    lt_cv_dlopen_libs=
10013    ;;
10014
10015  darwin*)
10016  # if libdl is installed we need to link against it
10017    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10018$as_echo_n "checking for dlopen in -ldl... " >&6; }
10019if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10020  $as_echo_n "(cached) " >&6
10021else
10022  ac_check_lib_save_LIBS=$LIBS
10023LIBS="-ldl  $LIBS"
10024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10025/* end confdefs.h.  */
10026
10027/* Override any GCC internal prototype to avoid an error.
10028   Use char because int might match the return type of a GCC
10029   builtin and then its argument prototype would still apply.  */
10030#ifdef __cplusplus
10031extern "C"
10032#endif
10033char dlopen ();
10034int
10035main ()
10036{
10037return dlopen ();
10038  ;
10039  return 0;
10040}
10041_ACEOF
10042if ac_fn_c_try_link "$LINENO"; then :
10043  ac_cv_lib_dl_dlopen=yes
10044else
10045  ac_cv_lib_dl_dlopen=no
10046fi
10047rm -f core conftest.err conftest.$ac_objext \
10048    conftest$ac_exeext conftest.$ac_ext
10049LIBS=$ac_check_lib_save_LIBS
10050fi
10051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10052$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10053if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10054  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10055else
10056
10057    lt_cv_dlopen="dyld"
10058    lt_cv_dlopen_libs=
10059    lt_cv_dlopen_self=yes
10060
10061fi
10062
10063    ;;
10064
10065  *)
10066    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10067if test "x$ac_cv_func_shl_load" = x""yes; then :
10068  lt_cv_dlopen="shl_load"
10069else
10070  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10071$as_echo_n "checking for shl_load in -ldld... " >&6; }
10072if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10073  $as_echo_n "(cached) " >&6
10074else
10075  ac_check_lib_save_LIBS=$LIBS
10076LIBS="-ldld  $LIBS"
10077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10078/* end confdefs.h.  */
10079
10080/* Override any GCC internal prototype to avoid an error.
10081   Use char because int might match the return type of a GCC
10082   builtin and then its argument prototype would still apply.  */
10083#ifdef __cplusplus
10084extern "C"
10085#endif
10086char shl_load ();
10087int
10088main ()
10089{
10090return shl_load ();
10091  ;
10092  return 0;
10093}
10094_ACEOF
10095if ac_fn_c_try_link "$LINENO"; then :
10096  ac_cv_lib_dld_shl_load=yes
10097else
10098  ac_cv_lib_dld_shl_load=no
10099fi
10100rm -f core conftest.err conftest.$ac_objext \
10101    conftest$ac_exeext conftest.$ac_ext
10102LIBS=$ac_check_lib_save_LIBS
10103fi
10104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10105$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10106if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10107  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10108else
10109  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10110if test "x$ac_cv_func_dlopen" = x""yes; then :
10111  lt_cv_dlopen="dlopen"
10112else
10113  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10114$as_echo_n "checking for dlopen in -ldl... " >&6; }
10115if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10116  $as_echo_n "(cached) " >&6
10117else
10118  ac_check_lib_save_LIBS=$LIBS
10119LIBS="-ldl  $LIBS"
10120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10121/* end confdefs.h.  */
10122
10123/* Override any GCC internal prototype to avoid an error.
10124   Use char because int might match the return type of a GCC
10125   builtin and then its argument prototype would still apply.  */
10126#ifdef __cplusplus
10127extern "C"
10128#endif
10129char dlopen ();
10130int
10131main ()
10132{
10133return dlopen ();
10134  ;
10135  return 0;
10136}
10137_ACEOF
10138if ac_fn_c_try_link "$LINENO"; then :
10139  ac_cv_lib_dl_dlopen=yes
10140else
10141  ac_cv_lib_dl_dlopen=no
10142fi
10143rm -f core conftest.err conftest.$ac_objext \
10144    conftest$ac_exeext conftest.$ac_ext
10145LIBS=$ac_check_lib_save_LIBS
10146fi
10147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10148$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10149if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10150  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10151else
10152  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10153$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10154if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10155  $as_echo_n "(cached) " >&6
10156else
10157  ac_check_lib_save_LIBS=$LIBS
10158LIBS="-lsvld  $LIBS"
10159cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10160/* end confdefs.h.  */
10161
10162/* Override any GCC internal prototype to avoid an error.
10163   Use char because int might match the return type of a GCC
10164   builtin and then its argument prototype would still apply.  */
10165#ifdef __cplusplus
10166extern "C"
10167#endif
10168char dlopen ();
10169int
10170main ()
10171{
10172return dlopen ();
10173  ;
10174  return 0;
10175}
10176_ACEOF
10177if ac_fn_c_try_link "$LINENO"; then :
10178  ac_cv_lib_svld_dlopen=yes
10179else
10180  ac_cv_lib_svld_dlopen=no
10181fi
10182rm -f core conftest.err conftest.$ac_objext \
10183    conftest$ac_exeext conftest.$ac_ext
10184LIBS=$ac_check_lib_save_LIBS
10185fi
10186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10187$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10188if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10189  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10190else
10191  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10192$as_echo_n "checking for dld_link in -ldld... " >&6; }
10193if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10194  $as_echo_n "(cached) " >&6
10195else
10196  ac_check_lib_save_LIBS=$LIBS
10197LIBS="-ldld  $LIBS"
10198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10199/* end confdefs.h.  */
10200
10201/* Override any GCC internal prototype to avoid an error.
10202   Use char because int might match the return type of a GCC
10203   builtin and then its argument prototype would still apply.  */
10204#ifdef __cplusplus
10205extern "C"
10206#endif
10207char dld_link ();
10208int
10209main ()
10210{
10211return dld_link ();
10212  ;
10213  return 0;
10214}
10215_ACEOF
10216if ac_fn_c_try_link "$LINENO"; then :
10217  ac_cv_lib_dld_dld_link=yes
10218else
10219  ac_cv_lib_dld_dld_link=no
10220fi
10221rm -f core conftest.err conftest.$ac_objext \
10222    conftest$ac_exeext conftest.$ac_ext
10223LIBS=$ac_check_lib_save_LIBS
10224fi
10225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10226$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10227if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10228  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10229fi
10230
10231
10232fi
10233
10234
10235fi
10236
10237
10238fi
10239
10240
10241fi
10242
10243
10244fi
10245
10246    ;;
10247  esac
10248
10249  if test "x$lt_cv_dlopen" != xno; then
10250    enable_dlopen=yes
10251  else
10252    enable_dlopen=no
10253  fi
10254
10255  case $lt_cv_dlopen in
10256  dlopen)
10257    save_CPPFLAGS="$CPPFLAGS"
10258    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10259
10260    save_LDFLAGS="$LDFLAGS"
10261    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10262
10263    save_LIBS="$LIBS"
10264    LIBS="$lt_cv_dlopen_libs $LIBS"
10265
10266    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10267$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10268if test "${lt_cv_dlopen_self+set}" = set; then :
10269  $as_echo_n "(cached) " >&6
10270else
10271  	  if test "$cross_compiling" = yes; then :
10272  lt_cv_dlopen_self=cross
10273else
10274  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10275  lt_status=$lt_dlunknown
10276  cat > conftest.$ac_ext <<_LT_EOF
10277#line 10277 "configure"
10278#include "confdefs.h"
10279
10280#if HAVE_DLFCN_H
10281#include <dlfcn.h>
10282#endif
10283
10284#include <stdio.h>
10285
10286#ifdef RTLD_GLOBAL
10287#  define LT_DLGLOBAL		RTLD_GLOBAL
10288#else
10289#  ifdef DL_GLOBAL
10290#    define LT_DLGLOBAL		DL_GLOBAL
10291#  else
10292#    define LT_DLGLOBAL		0
10293#  endif
10294#endif
10295
10296/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10297   find out it does not work in some platform. */
10298#ifndef LT_DLLAZY_OR_NOW
10299#  ifdef RTLD_LAZY
10300#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10301#  else
10302#    ifdef DL_LAZY
10303#      define LT_DLLAZY_OR_NOW		DL_LAZY
10304#    else
10305#      ifdef RTLD_NOW
10306#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10307#      else
10308#        ifdef DL_NOW
10309#          define LT_DLLAZY_OR_NOW	DL_NOW
10310#        else
10311#          define LT_DLLAZY_OR_NOW	0
10312#        endif
10313#      endif
10314#    endif
10315#  endif
10316#endif
10317
10318void fnord() { int i=42;}
10319int main ()
10320{
10321  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10322  int status = $lt_dlunknown;
10323
10324  if (self)
10325    {
10326      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10327      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10328      /* dlclose (self); */
10329    }
10330  else
10331    puts (dlerror ());
10332
10333  return status;
10334}
10335_LT_EOF
10336  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10337  (eval $ac_link) 2>&5
10338  ac_status=$?
10339  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10340  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10341    (./conftest; exit; ) >&5 2>/dev/null
10342    lt_status=$?
10343    case x$lt_status in
10344      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10345      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10346      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10347    esac
10348  else :
10349    # compilation failed
10350    lt_cv_dlopen_self=no
10351  fi
10352fi
10353rm -fr conftest*
10354
10355
10356fi
10357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10358$as_echo "$lt_cv_dlopen_self" >&6; }
10359
10360    if test "x$lt_cv_dlopen_self" = xyes; then
10361      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10362      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10363$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10364if test "${lt_cv_dlopen_self_static+set}" = set; then :
10365  $as_echo_n "(cached) " >&6
10366else
10367  	  if test "$cross_compiling" = yes; then :
10368  lt_cv_dlopen_self_static=cross
10369else
10370  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10371  lt_status=$lt_dlunknown
10372  cat > conftest.$ac_ext <<_LT_EOF
10373#line 10373 "configure"
10374#include "confdefs.h"
10375
10376#if HAVE_DLFCN_H
10377#include <dlfcn.h>
10378#endif
10379
10380#include <stdio.h>
10381
10382#ifdef RTLD_GLOBAL
10383#  define LT_DLGLOBAL		RTLD_GLOBAL
10384#else
10385#  ifdef DL_GLOBAL
10386#    define LT_DLGLOBAL		DL_GLOBAL
10387#  else
10388#    define LT_DLGLOBAL		0
10389#  endif
10390#endif
10391
10392/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10393   find out it does not work in some platform. */
10394#ifndef LT_DLLAZY_OR_NOW
10395#  ifdef RTLD_LAZY
10396#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10397#  else
10398#    ifdef DL_LAZY
10399#      define LT_DLLAZY_OR_NOW		DL_LAZY
10400#    else
10401#      ifdef RTLD_NOW
10402#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10403#      else
10404#        ifdef DL_NOW
10405#          define LT_DLLAZY_OR_NOW	DL_NOW
10406#        else
10407#          define LT_DLLAZY_OR_NOW	0
10408#        endif
10409#      endif
10410#    endif
10411#  endif
10412#endif
10413
10414void fnord() { int i=42;}
10415int main ()
10416{
10417  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10418  int status = $lt_dlunknown;
10419
10420  if (self)
10421    {
10422      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10423      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10424      /* dlclose (self); */
10425    }
10426  else
10427    puts (dlerror ());
10428
10429  return status;
10430}
10431_LT_EOF
10432  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10433  (eval $ac_link) 2>&5
10434  ac_status=$?
10435  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10436  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10437    (./conftest; exit; ) >&5 2>/dev/null
10438    lt_status=$?
10439    case x$lt_status in
10440      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10441      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10442      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10443    esac
10444  else :
10445    # compilation failed
10446    lt_cv_dlopen_self_static=no
10447  fi
10448fi
10449rm -fr conftest*
10450
10451
10452fi
10453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10454$as_echo "$lt_cv_dlopen_self_static" >&6; }
10455    fi
10456
10457    CPPFLAGS="$save_CPPFLAGS"
10458    LDFLAGS="$save_LDFLAGS"
10459    LIBS="$save_LIBS"
10460    ;;
10461  esac
10462
10463  case $lt_cv_dlopen_self in
10464  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10465  *) enable_dlopen_self=unknown ;;
10466  esac
10467
10468  case $lt_cv_dlopen_self_static in
10469  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10470  *) enable_dlopen_self_static=unknown ;;
10471  esac
10472fi
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490striplib=
10491old_striplib=
10492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10493$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10494if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10495  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10496  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10498$as_echo "yes" >&6; }
10499else
10500# FIXME - insert some real tests, host_os isn't really good enough
10501  case $host_os in
10502  darwin*)
10503    if test -n "$STRIP" ; then
10504      striplib="$STRIP -x"
10505      old_striplib="$STRIP -S"
10506      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10507$as_echo "yes" >&6; }
10508    else
10509      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10510$as_echo "no" >&6; }
10511    fi
10512    ;;
10513  *)
10514    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10515$as_echo "no" >&6; }
10516    ;;
10517  esac
10518fi
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531  # Report which library types will actually be built
10532  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10533$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10535$as_echo "$can_build_shared" >&6; }
10536
10537  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10538$as_echo_n "checking whether to build shared libraries... " >&6; }
10539  test "$can_build_shared" = "no" && enable_shared=no
10540
10541  # On AIX, shared libraries and static libraries use the same namespace, and
10542  # are all built from PIC.
10543  case $host_os in
10544  aix3*)
10545    test "$enable_shared" = yes && enable_static=no
10546    if test -n "$RANLIB"; then
10547      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10548      postinstall_cmds='$RANLIB $lib'
10549    fi
10550    ;;
10551
10552  aix[4-9]*)
10553    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10554      test "$enable_shared" = yes && enable_static=no
10555    fi
10556    ;;
10557  esac
10558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10559$as_echo "$enable_shared" >&6; }
10560
10561  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10562$as_echo_n "checking whether to build static libraries... " >&6; }
10563  # Make sure either enable_shared or enable_static is yes.
10564  test "$enable_shared" = yes || enable_static=yes
10565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10566$as_echo "$enable_static" >&6; }
10567
10568
10569
10570
10571fi
10572ac_ext=c
10573ac_cpp='$CPP $CPPFLAGS'
10574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10576ac_compiler_gnu=$ac_cv_c_compiler_gnu
10577
10578CC="$lt_save_CC"
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592        ac_config_commands="$ac_config_commands libtool"
10593
10594
10595
10596
10597# Only expand once:
10598
10599
10600AM_CPPFLAGS="$CPPFLAGS"
10601
10602gp_config_msg_len="$(expr "Compiler" : '.*')"
10603if test "$gp_config_msg_len" -ge "$gp_config_len"; then
10604	gp_config_msg_lhs="$(expr "Compiler" : "\(.\{0,${gp_config_len3}\}\)")..:"
10605else
10606	gp_config_msg_lhs="$(expr "Compiler:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
10607fi
10608gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} ${CC}
10609"
10610
10611
10612
10613
10614ac_dir=`echo "libexif/_stdint.h"|sed 's%/[^/][^/]*$%%'`
10615if test "$ac_dir" != "libexif/_stdint.h" && test "$ac_dir" != .; then
10616  # The file is in a subdirectory.
10617  test ! -d "$ac_dir" && mkdir "$ac_dir"
10618fi
10619
10620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t in stdint.h" >&5
10621$as_echo_n "checking for uint8_t in stdint.h... " >&6; }
10622cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10623/* end confdefs.h.  */
10624#include <stdint.h>
10625_ACEOF
10626if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10627  $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
10628  ac_cv_type_uint8_t=yes
10629else
10630  ac_cv_type_uint8_t=no
10631fi
10632rm -f conftest*
10633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
10634$as_echo "$ac_cv_type_uint8_t" >&6; }
10635if test $ac_cv_type_uint8_t = yes; then
10636
10637cat > "libexif/_stdint.h" <<EOF
10638/* This file is generated automatically by configure */
10639#include <stdint.h>
10640EOF
10641else
10642  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t in inttypes.h" >&5
10643$as_echo_n "checking for uint8_t in inttypes.h... " >&6; }
10644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10645/* end confdefs.h.  */
10646#include <inttypes.h>
10647_ACEOF
10648if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10649  $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
10650  ac_cv_type_uint8_t=yes
10651else
10652  ac_cv_type_uint8_t=no
10653fi
10654rm -f conftest*
10655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
10656$as_echo "$ac_cv_type_uint8_t" >&6; }
10657if test $ac_cv_type_uint8_t = yes; then
10658  cat > "libexif/_stdint.h" <<EOF
10659/* This file is generated automatically by configure */
10660#include <inttypes.h>
10661EOF
10662else
10663  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t in sys/types.h" >&5
10664$as_echo_n "checking for uint8_t in sys/types.h... " >&6; }
10665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10666/* end confdefs.h.  */
10667#include <sys/types.h>
10668_ACEOF
10669if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10670  $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
10671  ac_cv_type_uint8_t=yes
10672else
10673  ac_cv_type_uint8_t=no
10674fi
10675rm -f conftest*
10676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
10677$as_echo "$ac_cv_type_uint8_t" >&6; }
10678if test $ac_cv_type_uint8_t = yes; then
10679  cat > "libexif/_stdint.h" <<EOF
10680/* This file is generated automatically by configure */
10681#include <sys/types.h>
10682EOF
10683else
10684  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int8_t in sys/types.h" >&5
10685$as_echo_n "checking for u_int8_t in sys/types.h... " >&6; }
10686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10687/* end confdefs.h.  */
10688#include <sys/types.h>
10689_ACEOF
10690if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10691  $EGREP "(^|[^a-zA-Z_0-9])u_int8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
10692  ac_cv_type_u_int8_t=yes
10693else
10694  ac_cv_type_u_int8_t=no
10695fi
10696rm -f conftest*
10697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_u_int8_t" >&5
10698$as_echo "$ac_cv_type_u_int8_t" >&6; }
10699if test $ac_cv_type_u_int8_t = yes; then
10700  cat > "libexif/_stdint.h" <<EOF
10701/* This file is generated automatically by configure */
10702#ifndef __STDINT_H
10703#define __STDINT_H
10704#include <sys/types.h>
10705typedef u_int8_t uint8_t;
10706typedef u_int16_t uint16_t;
10707typedef u_int32_t uint32_t;
10708EOF
10709
10710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t in sys/types.h" >&5
10711$as_echo_n "checking for u_int64_t in sys/types.h... " >&6; }
10712cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10713/* end confdefs.h.  */
10714#include <sys/types.h>
10715_ACEOF
10716if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10717  $EGREP "(^|[^a-zA-Z_0-9])u_int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
10718  ac_cv_type_u_int64_t=yes
10719else
10720  ac_cv_type_u_int64_t=no
10721fi
10722rm -f conftest*
10723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_u_int64_t" >&5
10724$as_echo "$ac_cv_type_u_int64_t" >&6; }
10725if test $ac_cv_type_u_int64_t = yes; then
10726  cat >> "libexif/_stdint.h" <<EOF
10727typedef u_int64_t uint64_t;
10728#endif /*!__STDINT_H*/
10729EOF
10730else
10731  cat >> "libexif/_stdint.h" <<EOF
10732/* 64-bit types are not available on this system */
10733/* typedef u_int64_t uint64_t; */
10734#endif /*!__STDINT_H*/
10735EOF
10736fi
10737
10738
10739
10740else
10741  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I can't find size-specific integer definitions on this system" >&5
10742$as_echo "$as_me: WARNING: I can't find size-specific integer definitions on this system" >&2;}
10743if test -e "libexif/_stdint.h" ; then
10744	rm -f "libexif/_stdint.h"
10745fi
10746
10747fi
10748
10749fi
10750
10751fi
10752
10753fi
10754
10755
10756
10757
10758ship_binaries=false
10759# Check whether --enable-ship-binaries was given.
10760if test "${enable_ship_binaries+set}" = set; then :
10761  enableval=$enable_ship_binaries;
10762	if test x$enableval = xyes; then
10763		ship_binaries=true
10764	fi
10765
10766fi
10767
10768 if $ship_binaries; then
10769  SHIP_BINARIES_TRUE=
10770  SHIP_BINARIES_FALSE='#'
10771else
10772  SHIP_BINARIES_TRUE='#'
10773  SHIP_BINARIES_FALSE=
10774fi
10775
10776
10777gp_config_msg_len="$(expr "Ship binaries in tarball" : '.*')"
10778if test "$gp_config_msg_len" -ge "$gp_config_len"; then
10779	gp_config_msg_lhs="$(expr "Ship binaries in tarball" : "\(.\{0,${gp_config_len3}\}\)")..:"
10780else
10781	gp_config_msg_lhs="$(expr "Ship binaries in tarball:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
10782fi
10783gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} $ship_binaries
10784"
10785
10786
10787
10788
10789# we need sqrt and pow which may be in libm
10790# We cannot use AC_CHECK_FUNC because if CFLAGS contains
10791# -Wall -Werror here the check fails because
10792# char *sqrt() conflicts with double sqrt(double xx)
10793
10794# Start by assuming -lm is needed, because it's possible that the little
10795# test program below will be optimized to in-line floating point code that
10796# doesn't require -lm, whereas the library itself cannot be so optimized
10797# (this actually seems to be the case on x86 with gcc 4.2). Assuming the
10798# reverse means that -lm could be needed but wouldn't be detected below.
10799
10800LIBS_orig="$LIBS"
10801LIBS="$LIBS -lm"
10802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for math functions in libm" >&5
10803$as_echo_n "checking for math functions in libm... " >&6; }
10804cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10805/* end confdefs.h.  */
10806
10807	#include <math.h>
10808	int main() {
10809	  double s = sqrt(0);
10810	  double p = pow(s,s);
10811	  return (int)p;
10812	}
10813
10814_ACEOF
10815if ac_fn_c_try_link "$LINENO"; then :
10816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10817$as_echo "yes" >&6; }
10818else
10819
10820	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10821$as_echo "no" >&6; }
10822	LIBS="$LIBS_orig"
10823	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for math functions without libm" >&5
10824$as_echo_n "checking for math functions without libm... " >&6; }
10825	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10826/* end confdefs.h.  */
10827
10828		#include <math.h>
10829		int main() {
10830		  double s = sqrt(0);
10831		  double p = pow(s,s);
10832		  return (int)p;
10833		}
10834
10835_ACEOF
10836if ac_fn_c_try_link "$LINENO"; then :
10837
10838		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10839$as_echo "yes" >&6; }
10840
10841else
10842
10843		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10844$as_echo "no" >&6; }
10845		as_fn_error "*** Could not find sqrt() & pow() functions" "$LINENO" 5
10846
10847fi
10848rm -f core conftest.err conftest.$ac_objext \
10849    conftest$ac_exeext conftest.$ac_ext
10850
10851fi
10852rm -f core conftest.err conftest.$ac_objext \
10853    conftest$ac_exeext conftest.$ac_ext
10854
10855# doc support
10856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build any docs" >&5
10857$as_echo_n "checking whether to build any docs... " >&6; }
10858# Check whether --enable-docs was given.
10859if test "${enable_docs+set}" = set; then :
10860  enableval=$enable_docs; case "$enableval" in
10861	yes|true|on) gp_build_docs="yes" ;;
10862	*) gp_build_docs="no" ;;
10863esac
10864
10865else
10866  gp_build_docs="yes"
10867
10868fi
10869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gp_build_docs}" >&5
10870$as_echo "${gp_build_docs}" >&6; }
10871 if test "x${gp_build_docs}" = "xyes"; then
10872  BUILD_DOCS_TRUE=
10873  BUILD_DOCS_FALSE='#'
10874else
10875  BUILD_DOCS_TRUE='#'
10876  BUILD_DOCS_FALSE=
10877fi
10878
10879
10880
10881
10882
10883# Check whether --with-doc-dir was given.
10884if test "${with_doc_dir+set}" = set; then :
10885  withval=$with_doc_dir;
10886fi
10887
10888
10889# check for the main ("root") documentation directory
10890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking main docdir" >&5
10891$as_echo_n "checking main docdir... " >&6; }
10892
10893if test "x${with_doc_dir}" != "x"
10894then # docdir is given as parameter
10895    docdir="${with_doc_dir}"
10896    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${docdir} (from parameter)" >&5
10897$as_echo "${docdir} (from parameter)" >&6; }
10898else # otherwise invent a docdir hopefully compatible with system policy
10899    if test -d "/usr/share/doc"
10900    then
10901        maindocdir='${prefix}/share/doc'
10902        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${maindocdir} (FHS style)" >&5
10903$as_echo "${maindocdir} (FHS style)" >&6; }
10904    elif test -d "/usr/doc"
10905    then
10906        maindocdir='${prefix}/doc'
10907        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${maindocdir} (old style)" >&5
10908$as_echo "${maindocdir} (old style)" >&6; }
10909    else
10910        maindocdir='${datadir}/doc'
10911        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${maindocdir} (default value)" >&5
10912$as_echo "${maindocdir} (default value)" >&6; }
10913    fi
10914    { $as_echo "$as_me:${as_lineno-$LINENO}: checking package docdir" >&5
10915$as_echo_n "checking package docdir... " >&6; }
10916    # check whether to include package version into documentation path
10917    # FIXME: doesn't work properly.
10918    if ls -d /usr/{share/,}doc/make-0-9* > /dev/null 2>&1
10919    then
10920        docdir="${maindocdir}/${PACKAGE}-${VERSION}"
10921        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${docdir} (redhat style)" >&5
10922$as_echo "${docdir} (redhat style)" >&6; }
10923    else
10924        docdir="${maindocdir}/${PACKAGE}"
10925        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${docdir} (default style)" >&5
10926$as_echo "${docdir} (default style)" >&6; }
10927    fi
10928fi
10929
10930
10931
10932# Extract the first word of "dot", so it can be a program name with args.
10933set dummy dot; ac_word=$2
10934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10935$as_echo_n "checking for $ac_word... " >&6; }
10936if test "${ac_cv_path_DOT+set}" = set; then :
10937  $as_echo_n "(cached) " >&6
10938else
10939  case $DOT in
10940  [\\/]* | ?:[\\/]*)
10941  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
10942  ;;
10943  *)
10944  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10945for as_dir in $PATH
10946do
10947  IFS=$as_save_IFS
10948  test -z "$as_dir" && as_dir=.
10949    for ac_exec_ext in '' $ac_executable_extensions; do
10950  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10951    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
10952    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10953    break 2
10954  fi
10955done
10956  done
10957IFS=$as_save_IFS
10958
10959  test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
10960  ;;
10961esac
10962fi
10963DOT=$ac_cv_path_DOT
10964if test -n "$DOT"; then
10965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
10966$as_echo "$DOT" >&6; }
10967else
10968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10969$as_echo "no" >&6; }
10970fi
10971
10972
10973# Extract the first word of "doxygen", so it can be a program name with args.
10974set dummy doxygen; ac_word=$2
10975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10976$as_echo_n "checking for $ac_word... " >&6; }
10977if test "${ac_cv_path_DOXYGEN+set}" = set; then :
10978  $as_echo_n "(cached) " >&6
10979else
10980  case $DOXYGEN in
10981  [\\/]* | ?:[\\/]*)
10982  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
10983  ;;
10984  *)
10985  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10986for as_dir in $PATH
10987do
10988  IFS=$as_save_IFS
10989  test -z "$as_dir" && as_dir=.
10990    for ac_exec_ext in '' $ac_executable_extensions; do
10991  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10992    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
10993    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10994    break 2
10995  fi
10996done
10997  done
10998IFS=$as_save_IFS
10999
11000  test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="false"
11001  ;;
11002esac
11003fi
11004DOXYGEN=$ac_cv_path_DOXYGEN
11005if test -n "$DOXYGEN"; then
11006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
11007$as_echo "$DOXYGEN" >&6; }
11008else
11009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11010$as_echo "no" >&6; }
11011fi
11012
11013
11014 if test "x$DOXYGEN" != "xfalse"; then
11015  HAVE_DOXYGEN_TRUE=
11016  HAVE_DOXYGEN_FALSE='#'
11017else
11018  HAVE_DOXYGEN_TRUE='#'
11019  HAVE_DOXYGEN_FALSE=
11020fi
11021
11022 if test "x$DOT" != "xfalse"; then
11023  HAVE_DOT_TRUE=
11024  HAVE_DOT_FALSE='#'
11025else
11026  HAVE_DOT_TRUE='#'
11027  HAVE_DOT_FALSE=
11028fi
11029
11030if test "x$DOT" != "xfalse"; then
11031	HAVE_DOT=YES
11032
11033else
11034	HAVE_DOT=NO
11035
11036fi
11037HTML_APIDOC_DIR="${PACKAGE_TARNAME}-api.html"
11038
11039DOXYGEN_OUTPUT_DIR=doxygen-output
11040
11041HTML_APIDOC_INTERNALS_DIR="${PACKAGE_TARNAME}-internals.html"
11042
11043
11044
11045# Whether to enable the internal docs build.
11046#
11047# This takes quite some time due to the generation of lots of call
11048# graphs, so it is disabled by default.
11049set_enable_internal_docs=no
11050# Check whether --enable-internal-docs was given.
11051if test "${enable_internal_docs+set}" = set; then :
11052  enableval=$enable_internal_docs;   if   test "x$enableval" = xno \
11053    || test "x$enableval" = xoff \
11054    || test "x$enableval" = xfalse;
11055  then
11056    set_enable_internal_docs=no
11057  elif test "x$enableval" = xyes \
11058    || test "x$enableval" = xon \
11059    || test "x$enableval" = xtrue
11060  then
11061    set_enable_internal_docs=yes
11062  fi
11063
11064fi
11065
11066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to create internal code docs" >&5
11067$as_echo_n "checking whether to create internal code docs... " >&6; }
11068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${set_enable_internal_docs}" >&5
11069$as_echo "${set_enable_internal_docs}" >&6; }
11070 if test "x${set_enable_internal_docs}" = "xyes"; then
11071  ENABLE_INTERNAL_DOCS_TRUE=
11072  ENABLE_INTERNAL_DOCS_FALSE='#'
11073else
11074  ENABLE_INTERNAL_DOCS_TRUE='#'
11075  ENABLE_INTERNAL_DOCS_FALSE=
11076fi
11077
11078
11079
11080# ---------------------------------------------------------------------------
11081# i18n support
11082# ---------------------------------------------------------------------------
11083ALL_LINGUAS="be cs da de en_CA en_GB es fr it ja nl pl pt pt_BR ru sk sq sr sv vi zh_CN"
11084
11085        MKINSTALLDIRS=
11086  if test -n "$ac_aux_dir"; then
11087    case "$ac_aux_dir" in
11088      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11089      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11090    esac
11091  fi
11092  if test -z "$MKINSTALLDIRS"; then
11093    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11094  fi
11095
11096
11097
11098  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11099$as_echo_n "checking whether NLS is requested... " >&6; }
11100    # Check whether --enable-nls was given.
11101if test "${enable_nls+set}" = set; then :
11102  enableval=$enable_nls; USE_NLS=$enableval
11103else
11104  USE_NLS=yes
11105fi
11106
11107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11108$as_echo "$USE_NLS" >&6; }
11109
11110
11111
11112
11113
11114
11115# Prepare PATH_SEPARATOR.
11116# The user is always right.
11117if test "${PATH_SEPARATOR+set}" != set; then
11118  echo "#! /bin/sh" >conf$$.sh
11119  echo  "exit 0"   >>conf$$.sh
11120  chmod +x conf$$.sh
11121  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11122    PATH_SEPARATOR=';'
11123  else
11124    PATH_SEPARATOR=:
11125  fi
11126  rm -f conf$$.sh
11127fi
11128
11129# Find out how to test for executable files. Don't use a zero-byte file,
11130# as systems may use methods other than mode bits to determine executability.
11131cat >conf$$.file <<_ASEOF
11132#! /bin/sh
11133exit 0
11134_ASEOF
11135chmod +x conf$$.file
11136if test -x conf$$.file >/dev/null 2>&1; then
11137  ac_executable_p="test -x"
11138else
11139  ac_executable_p="test -f"
11140fi
11141rm -f conf$$.file
11142
11143# Extract the first word of "msgfmt", so it can be a program name with args.
11144set dummy msgfmt; ac_word=$2
11145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11146$as_echo_n "checking for $ac_word... " >&6; }
11147if test "${ac_cv_path_MSGFMT+set}" = set; then :
11148  $as_echo_n "(cached) " >&6
11149else
11150  case "$MSGFMT" in
11151  [\\/]* | ?:[\\/]*)
11152    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11153    ;;
11154  *)
11155    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11156    for ac_dir in $PATH; do
11157      IFS="$ac_save_IFS"
11158      test -z "$ac_dir" && ac_dir=.
11159      for ac_exec_ext in '' $ac_executable_extensions; do
11160        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11161          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11162     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11163            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11164            break 2
11165          fi
11166        fi
11167      done
11168    done
11169    IFS="$ac_save_IFS"
11170  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11171    ;;
11172esac
11173fi
11174MSGFMT="$ac_cv_path_MSGFMT"
11175if test "$MSGFMT" != ":"; then
11176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11177$as_echo "$MSGFMT" >&6; }
11178else
11179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11180$as_echo "no" >&6; }
11181fi
11182
11183  # Extract the first word of "gmsgfmt", so it can be a program name with args.
11184set dummy gmsgfmt; ac_word=$2
11185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11186$as_echo_n "checking for $ac_word... " >&6; }
11187if test "${ac_cv_path_GMSGFMT+set}" = set; then :
11188  $as_echo_n "(cached) " >&6
11189else
11190  case $GMSGFMT in
11191  [\\/]* | ?:[\\/]*)
11192  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11193  ;;
11194  *)
11195  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11196for as_dir in $PATH
11197do
11198  IFS=$as_save_IFS
11199  test -z "$as_dir" && as_dir=.
11200    for ac_exec_ext in '' $ac_executable_extensions; do
11201  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11202    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11203    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11204    break 2
11205  fi
11206done
11207  done
11208IFS=$as_save_IFS
11209
11210  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11211  ;;
11212esac
11213fi
11214GMSGFMT=$ac_cv_path_GMSGFMT
11215if test -n "$GMSGFMT"; then
11216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11217$as_echo "$GMSGFMT" >&6; }
11218else
11219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11220$as_echo "no" >&6; }
11221fi
11222
11223
11224
11225
11226# Prepare PATH_SEPARATOR.
11227# The user is always right.
11228if test "${PATH_SEPARATOR+set}" != set; then
11229  echo "#! /bin/sh" >conf$$.sh
11230  echo  "exit 0"   >>conf$$.sh
11231  chmod +x conf$$.sh
11232  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11233    PATH_SEPARATOR=';'
11234  else
11235    PATH_SEPARATOR=:
11236  fi
11237  rm -f conf$$.sh
11238fi
11239
11240# Find out how to test for executable files. Don't use a zero-byte file,
11241# as systems may use methods other than mode bits to determine executability.
11242cat >conf$$.file <<_ASEOF
11243#! /bin/sh
11244exit 0
11245_ASEOF
11246chmod +x conf$$.file
11247if test -x conf$$.file >/dev/null 2>&1; then
11248  ac_executable_p="test -x"
11249else
11250  ac_executable_p="test -f"
11251fi
11252rm -f conf$$.file
11253
11254# Extract the first word of "xgettext", so it can be a program name with args.
11255set dummy xgettext; ac_word=$2
11256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11257$as_echo_n "checking for $ac_word... " >&6; }
11258if test "${ac_cv_path_XGETTEXT+set}" = set; then :
11259  $as_echo_n "(cached) " >&6
11260else
11261  case "$XGETTEXT" in
11262  [\\/]* | ?:[\\/]*)
11263    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11264    ;;
11265  *)
11266    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11267    for ac_dir in $PATH; do
11268      IFS="$ac_save_IFS"
11269      test -z "$ac_dir" && ac_dir=.
11270      for ac_exec_ext in '' $ac_executable_extensions; do
11271        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11272          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11273     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11274            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11275            break 2
11276          fi
11277        fi
11278      done
11279    done
11280    IFS="$ac_save_IFS"
11281  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11282    ;;
11283esac
11284fi
11285XGETTEXT="$ac_cv_path_XGETTEXT"
11286if test "$XGETTEXT" != ":"; then
11287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11288$as_echo "$XGETTEXT" >&6; }
11289else
11290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11291$as_echo "no" >&6; }
11292fi
11293
11294    rm -f messages.po
11295
11296
11297# Prepare PATH_SEPARATOR.
11298# The user is always right.
11299if test "${PATH_SEPARATOR+set}" != set; then
11300  echo "#! /bin/sh" >conf$$.sh
11301  echo  "exit 0"   >>conf$$.sh
11302  chmod +x conf$$.sh
11303  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11304    PATH_SEPARATOR=';'
11305  else
11306    PATH_SEPARATOR=:
11307  fi
11308  rm -f conf$$.sh
11309fi
11310
11311# Find out how to test for executable files. Don't use a zero-byte file,
11312# as systems may use methods other than mode bits to determine executability.
11313cat >conf$$.file <<_ASEOF
11314#! /bin/sh
11315exit 0
11316_ASEOF
11317chmod +x conf$$.file
11318if test -x conf$$.file >/dev/null 2>&1; then
11319  ac_executable_p="test -x"
11320else
11321  ac_executable_p="test -f"
11322fi
11323rm -f conf$$.file
11324
11325# Extract the first word of "msgmerge", so it can be a program name with args.
11326set dummy msgmerge; ac_word=$2
11327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11328$as_echo_n "checking for $ac_word... " >&6; }
11329if test "${ac_cv_path_MSGMERGE+set}" = set; then :
11330  $as_echo_n "(cached) " >&6
11331else
11332  case "$MSGMERGE" in
11333  [\\/]* | ?:[\\/]*)
11334    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11335    ;;
11336  *)
11337    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11338    for ac_dir in $PATH; do
11339      IFS="$ac_save_IFS"
11340      test -z "$ac_dir" && ac_dir=.
11341      for ac_exec_ext in '' $ac_executable_extensions; do
11342        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11343          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11344            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11345            break 2
11346          fi
11347        fi
11348      done
11349    done
11350    IFS="$ac_save_IFS"
11351  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11352    ;;
11353esac
11354fi
11355MSGMERGE="$ac_cv_path_MSGMERGE"
11356if test "$MSGMERGE" != ":"; then
11357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
11358$as_echo "$MSGMERGE" >&6; }
11359else
11360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11361$as_echo "no" >&6; }
11362fi
11363
11364
11365      if test "$GMSGFMT" != ":"; then
11366            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11367       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11368      : ;
11369    else
11370      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11371      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11372$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
11373      GMSGFMT=":"
11374    fi
11375  fi
11376
11377      if test "$XGETTEXT" != ":"; then
11378            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11379       (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11380      : ;
11381    else
11382      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
11383$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
11384      XGETTEXT=":"
11385    fi
11386        rm -f messages.po
11387  fi
11388
11389  ac_config_commands="$ac_config_commands default-1"
11390
11391
11392
11393GETTEXT_PACKAGE="${PACKAGE}-${LIBEXIF_CURRENT_MIN}"
11394# The gettext domain we're using
11395AM_CPPFLAGS="$AM_CPPFLAGS -DGETTEXT_PACKAGE=\\\"${GETTEXT_PACKAGE}\\\""
11396
11397sed_cmds="s|^DOMAIN.*|DOMAIN = ${GETTEXT_PACKAGE}|"
11398sed_cmds="${sed_cmds};s|^COPYRIGHT_HOLDER.*|COPYRIGHT_HOLDER = Lutz Mueller and others|"
11399
11400if test -n "$PACKAGE_BUGREPORT"; then
11401   sed_mb="${PACKAGE_BUGREPORT}"
11402else
11403   as_fn_error "
11404*** Your configure.{ac,in} is wrong.
11405*** Either define PACKAGE_BUGREPORT (by using the 4-parameter AC INIT syntax)
11406*** or give GP_GETTEXT_HACK the third parameter.
11407***
11408" "$LINENO" 5
11409fi
11410
11411sed_cmds="${sed_cmds};s|^MSGID_BUGS_ADDRESS.*|MSGID_BUGS_ADDRESS = ${sed_mb}|"
11412# Not so sure whether this hack is all *that* evil...
11413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for po/Makevars requiring hack" >&5
11414$as_echo_n "checking for po/Makevars requiring hack... " >&6; }
11415if test -f "${srcdir}/po/Makevars.template"; then
11416   sed "$sed_cmds" < "${srcdir}/po/Makevars.template" > "${srcdir}/po/Makevars"
11417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, done." >&5
11418$as_echo "yes, done." >&6; }
11419else
11420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11421$as_echo "no" >&6; }
11422fi
11423
11424
11425
11426      if test "X$prefix" = "XNONE"; then
11427    acl_final_prefix="$ac_default_prefix"
11428  else
11429    acl_final_prefix="$prefix"
11430  fi
11431  if test "X$exec_prefix" = "XNONE"; then
11432    acl_final_exec_prefix='${prefix}'
11433  else
11434    acl_final_exec_prefix="$exec_prefix"
11435  fi
11436  acl_save_prefix="$prefix"
11437  prefix="$acl_final_prefix"
11438  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11439  prefix="$acl_save_prefix"
11440
11441
11442# Check whether --with-gnu-ld was given.
11443if test "${with_gnu_ld+set}" = set; then :
11444  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11445else
11446  with_gnu_ld=no
11447fi
11448
11449# Prepare PATH_SEPARATOR.
11450# The user is always right.
11451if test "${PATH_SEPARATOR+set}" != set; then
11452  echo "#! /bin/sh" >conf$$.sh
11453  echo  "exit 0"   >>conf$$.sh
11454  chmod +x conf$$.sh
11455  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11456    PATH_SEPARATOR=';'
11457  else
11458    PATH_SEPARATOR=:
11459  fi
11460  rm -f conf$$.sh
11461fi
11462ac_prog=ld
11463if test "$GCC" = yes; then
11464  # Check if gcc -print-prog-name=ld gives a path.
11465  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11466$as_echo_n "checking for ld used by GCC... " >&6; }
11467  case $host in
11468  *-*-mingw*)
11469    # gcc leaves a trailing carriage return which upsets mingw
11470    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11471  *)
11472    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11473  esac
11474  case $ac_prog in
11475    # Accept absolute paths.
11476    [\\/]* | [A-Za-z]:[\\/]*)
11477      re_direlt='/[^/][^/]*/\.\./'
11478      # Canonicalize the path of ld
11479      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11480      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11481	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11482      done
11483      test -z "$LD" && LD="$ac_prog"
11484      ;;
11485  "")
11486    # If it fails, then pretend we aren't using GCC.
11487    ac_prog=ld
11488    ;;
11489  *)
11490    # If it is relative, then search for the first ld in PATH.
11491    with_gnu_ld=unknown
11492    ;;
11493  esac
11494elif test "$with_gnu_ld" = yes; then
11495  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11496$as_echo_n "checking for GNU ld... " >&6; }
11497else
11498  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11499$as_echo_n "checking for non-GNU ld... " >&6; }
11500fi
11501if test "${acl_cv_path_LD+set}" = set; then :
11502  $as_echo_n "(cached) " >&6
11503else
11504  if test -z "$LD"; then
11505  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11506  for ac_dir in $PATH; do
11507    test -z "$ac_dir" && ac_dir=.
11508    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11509      acl_cv_path_LD="$ac_dir/$ac_prog"
11510      # Check to see if the program is GNU ld.  I'd rather use --version,
11511      # but apparently some GNU ld's only accept -v.
11512      # Break only if it was the GNU/non-GNU ld that we prefer.
11513      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
11514      *GNU* | *'with BFD'*)
11515	test "$with_gnu_ld" != no && break ;;
11516      *)
11517	test "$with_gnu_ld" != yes && break ;;
11518      esac
11519    fi
11520  done
11521  IFS="$ac_save_ifs"
11522else
11523  acl_cv_path_LD="$LD" # Let the user override the test with a path.
11524fi
11525fi
11526
11527LD="$acl_cv_path_LD"
11528if test -n "$LD"; then
11529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11530$as_echo "$LD" >&6; }
11531else
11532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11533$as_echo "no" >&6; }
11534fi
11535test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11537$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11538if test "${acl_cv_prog_gnu_ld+set}" = set; then :
11539  $as_echo_n "(cached) " >&6
11540else
11541  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11542case `$LD -v 2>&1 </dev/null` in
11543*GNU* | *'with BFD'*)
11544  acl_cv_prog_gnu_ld=yes ;;
11545*)
11546  acl_cv_prog_gnu_ld=no ;;
11547esac
11548fi
11549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11550$as_echo "$acl_cv_prog_gnu_ld" >&6; }
11551with_gnu_ld=$acl_cv_prog_gnu_ld
11552
11553
11554
11555                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11556$as_echo_n "checking for shared library run path origin... " >&6; }
11557if test "${acl_cv_rpath+set}" = set; then :
11558  $as_echo_n "(cached) " >&6
11559else
11560
11561    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11562    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11563    . ./conftest.sh
11564    rm -f ./conftest.sh
11565    acl_cv_rpath=done
11566
11567fi
11568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11569$as_echo "$acl_cv_rpath" >&6; }
11570  wl="$acl_cv_wl"
11571  libext="$acl_cv_libext"
11572  shlibext="$acl_cv_shlibext"
11573  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11574  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11575  hardcode_direct="$acl_cv_hardcode_direct"
11576  hardcode_minus_L="$acl_cv_hardcode_minus_L"
11577    # Check whether --enable-rpath was given.
11578if test "${enable_rpath+set}" = set; then :
11579  enableval=$enable_rpath; :
11580else
11581  enable_rpath=yes
11582fi
11583
11584
11585
11586
11587
11588
11589
11590
11591    use_additional=yes
11592
11593  acl_save_prefix="$prefix"
11594  prefix="$acl_final_prefix"
11595  acl_save_exec_prefix="$exec_prefix"
11596  exec_prefix="$acl_final_exec_prefix"
11597
11598    eval additional_includedir=\"$includedir\"
11599    eval additional_libdir=\"$libdir\"
11600
11601  exec_prefix="$acl_save_exec_prefix"
11602  prefix="$acl_save_prefix"
11603
11604
11605# Check whether --with-libiconv-prefix was given.
11606if test "${with_libiconv_prefix+set}" = set; then :
11607  withval=$with_libiconv_prefix;
11608    if test "X$withval" = "Xno"; then
11609      use_additional=no
11610    else
11611      if test "X$withval" = "X"; then
11612
11613  acl_save_prefix="$prefix"
11614  prefix="$acl_final_prefix"
11615  acl_save_exec_prefix="$exec_prefix"
11616  exec_prefix="$acl_final_exec_prefix"
11617
11618          eval additional_includedir=\"$includedir\"
11619          eval additional_libdir=\"$libdir\"
11620
11621  exec_prefix="$acl_save_exec_prefix"
11622  prefix="$acl_save_prefix"
11623
11624      else
11625        additional_includedir="$withval/include"
11626        additional_libdir="$withval/lib"
11627      fi
11628    fi
11629
11630fi
11631
11632      LIBICONV=
11633  LTLIBICONV=
11634  INCICONV=
11635  rpathdirs=
11636  ltrpathdirs=
11637  names_already_handled=
11638  names_next_round='iconv '
11639  while test -n "$names_next_round"; do
11640    names_this_round="$names_next_round"
11641    names_next_round=
11642    for name in $names_this_round; do
11643      already_handled=
11644      for n in $names_already_handled; do
11645        if test "$n" = "$name"; then
11646          already_handled=yes
11647          break
11648        fi
11649      done
11650      if test -z "$already_handled"; then
11651        names_already_handled="$names_already_handled $name"
11652                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11653        eval value=\"\$HAVE_LIB$uppername\"
11654        if test -n "$value"; then
11655          if test "$value" = yes; then
11656            eval value=\"\$LIB$uppername\"
11657            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11658            eval value=\"\$LTLIB$uppername\"
11659            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11660          else
11661                                    :
11662          fi
11663        else
11664                              found_dir=
11665          found_la=
11666          found_so=
11667          found_a=
11668          if test $use_additional = yes; then
11669            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11670              found_dir="$additional_libdir"
11671              found_so="$additional_libdir/lib$name.$shlibext"
11672              if test -f "$additional_libdir/lib$name.la"; then
11673                found_la="$additional_libdir/lib$name.la"
11674              fi
11675            else
11676              if test -f "$additional_libdir/lib$name.$libext"; then
11677                found_dir="$additional_libdir"
11678                found_a="$additional_libdir/lib$name.$libext"
11679                if test -f "$additional_libdir/lib$name.la"; then
11680                  found_la="$additional_libdir/lib$name.la"
11681                fi
11682              fi
11683            fi
11684          fi
11685          if test "X$found_dir" = "X"; then
11686            for x in $LDFLAGS $LTLIBICONV; do
11687
11688  acl_save_prefix="$prefix"
11689  prefix="$acl_final_prefix"
11690  acl_save_exec_prefix="$exec_prefix"
11691  exec_prefix="$acl_final_exec_prefix"
11692  eval x=\"$x\"
11693  exec_prefix="$acl_save_exec_prefix"
11694  prefix="$acl_save_prefix"
11695
11696              case "$x" in
11697                -L*)
11698                  dir=`echo "X$x" | sed -e 's/^X-L//'`
11699                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11700                    found_dir="$dir"
11701                    found_so="$dir/lib$name.$shlibext"
11702                    if test -f "$dir/lib$name.la"; then
11703                      found_la="$dir/lib$name.la"
11704                    fi
11705                  else
11706                    if test -f "$dir/lib$name.$libext"; then
11707                      found_dir="$dir"
11708                      found_a="$dir/lib$name.$libext"
11709                      if test -f "$dir/lib$name.la"; then
11710                        found_la="$dir/lib$name.la"
11711                      fi
11712                    fi
11713                  fi
11714                  ;;
11715              esac
11716              if test "X$found_dir" != "X"; then
11717                break
11718              fi
11719            done
11720          fi
11721          if test "X$found_dir" != "X"; then
11722                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11723            if test "X$found_so" != "X"; then
11724                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11725                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11726              else
11727                                                                                haveit=
11728                for x in $ltrpathdirs; do
11729                  if test "X$x" = "X$found_dir"; then
11730                    haveit=yes
11731                    break
11732                  fi
11733                done
11734                if test -z "$haveit"; then
11735                  ltrpathdirs="$ltrpathdirs $found_dir"
11736                fi
11737                                if test "$hardcode_direct" = yes; then
11738                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11739                else
11740                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11741                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11742                                                            haveit=
11743                    for x in $rpathdirs; do
11744                      if test "X$x" = "X$found_dir"; then
11745                        haveit=yes
11746                        break
11747                      fi
11748                    done
11749                    if test -z "$haveit"; then
11750                      rpathdirs="$rpathdirs $found_dir"
11751                    fi
11752                  else
11753                                                                                haveit=
11754                    for x in $LDFLAGS $LIBICONV; do
11755
11756  acl_save_prefix="$prefix"
11757  prefix="$acl_final_prefix"
11758  acl_save_exec_prefix="$exec_prefix"
11759  exec_prefix="$acl_final_exec_prefix"
11760  eval x=\"$x\"
11761  exec_prefix="$acl_save_exec_prefix"
11762  prefix="$acl_save_prefix"
11763
11764                      if test "X$x" = "X-L$found_dir"; then
11765                        haveit=yes
11766                        break
11767                      fi
11768                    done
11769                    if test -z "$haveit"; then
11770                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11771                    fi
11772                    if test "$hardcode_minus_L" != no; then
11773                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11774                    else
11775                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11776                    fi
11777                  fi
11778                fi
11779              fi
11780            else
11781              if test "X$found_a" != "X"; then
11782                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11783              else
11784                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11785              fi
11786            fi
11787                        additional_includedir=
11788            case "$found_dir" in
11789              */lib | */lib/)
11790                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11791                additional_includedir="$basedir/include"
11792                ;;
11793            esac
11794            if test "X$additional_includedir" != "X"; then
11795                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
11796                haveit=
11797                if test "X$additional_includedir" = "X/usr/local/include"; then
11798                  if test -n "$GCC"; then
11799                    case $host_os in
11800                      linux*) haveit=yes;;
11801                    esac
11802                  fi
11803                fi
11804                if test -z "$haveit"; then
11805                  for x in $CPPFLAGS $INCICONV; do
11806
11807  acl_save_prefix="$prefix"
11808  prefix="$acl_final_prefix"
11809  acl_save_exec_prefix="$exec_prefix"
11810  exec_prefix="$acl_final_exec_prefix"
11811  eval x=\"$x\"
11812  exec_prefix="$acl_save_exec_prefix"
11813  prefix="$acl_save_prefix"
11814
11815                    if test "X$x" = "X-I$additional_includedir"; then
11816                      haveit=yes
11817                      break
11818                    fi
11819                  done
11820                  if test -z "$haveit"; then
11821                    if test -d "$additional_includedir"; then
11822                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11823                    fi
11824                  fi
11825                fi
11826              fi
11827            fi
11828                        if test -n "$found_la"; then
11829                                                        save_libdir="$libdir"
11830              case "$found_la" in
11831                */* | *\\*) . "$found_la" ;;
11832                *) . "./$found_la" ;;
11833              esac
11834              libdir="$save_libdir"
11835                            for dep in $dependency_libs; do
11836                case "$dep" in
11837                  -L*)
11838                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11839                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
11840                      haveit=
11841                      if test "X$additional_libdir" = "X/usr/local/lib"; then
11842                        if test -n "$GCC"; then
11843                          case $host_os in
11844                            linux*) haveit=yes;;
11845                          esac
11846                        fi
11847                      fi
11848                      if test -z "$haveit"; then
11849                        haveit=
11850                        for x in $LDFLAGS $LIBICONV; do
11851
11852  acl_save_prefix="$prefix"
11853  prefix="$acl_final_prefix"
11854  acl_save_exec_prefix="$exec_prefix"
11855  exec_prefix="$acl_final_exec_prefix"
11856  eval x=\"$x\"
11857  exec_prefix="$acl_save_exec_prefix"
11858  prefix="$acl_save_prefix"
11859
11860                          if test "X$x" = "X-L$additional_libdir"; then
11861                            haveit=yes
11862                            break
11863                          fi
11864                        done
11865                        if test -z "$haveit"; then
11866                          if test -d "$additional_libdir"; then
11867                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11868                          fi
11869                        fi
11870                        haveit=
11871                        for x in $LDFLAGS $LTLIBICONV; do
11872
11873  acl_save_prefix="$prefix"
11874  prefix="$acl_final_prefix"
11875  acl_save_exec_prefix="$exec_prefix"
11876  exec_prefix="$acl_final_exec_prefix"
11877  eval x=\"$x\"
11878  exec_prefix="$acl_save_exec_prefix"
11879  prefix="$acl_save_prefix"
11880
11881                          if test "X$x" = "X-L$additional_libdir"; then
11882                            haveit=yes
11883                            break
11884                          fi
11885                        done
11886                        if test -z "$haveit"; then
11887                          if test -d "$additional_libdir"; then
11888                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11889                          fi
11890                        fi
11891                      fi
11892                    fi
11893                    ;;
11894                  -R*)
11895                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
11896                    if test "$enable_rpath" != no; then
11897                                                                  haveit=
11898                      for x in $rpathdirs; do
11899                        if test "X$x" = "X$dir"; then
11900                          haveit=yes
11901                          break
11902                        fi
11903                      done
11904                      if test -z "$haveit"; then
11905                        rpathdirs="$rpathdirs $dir"
11906                      fi
11907                                                                  haveit=
11908                      for x in $ltrpathdirs; do
11909                        if test "X$x" = "X$dir"; then
11910                          haveit=yes
11911                          break
11912                        fi
11913                      done
11914                      if test -z "$haveit"; then
11915                        ltrpathdirs="$ltrpathdirs $dir"
11916                      fi
11917                    fi
11918                    ;;
11919                  -l*)
11920                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11921                    ;;
11922                  *.la)
11923                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11924                    ;;
11925                  *)
11926                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11927                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11928                    ;;
11929                esac
11930              done
11931            fi
11932          else
11933                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11934            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11935          fi
11936        fi
11937      fi
11938    done
11939  done
11940  if test "X$rpathdirs" != "X"; then
11941    if test -n "$hardcode_libdir_separator"; then
11942                        alldirs=
11943      for found_dir in $rpathdirs; do
11944        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11945      done
11946            acl_save_libdir="$libdir"
11947      libdir="$alldirs"
11948      eval flag=\"$hardcode_libdir_flag_spec\"
11949      libdir="$acl_save_libdir"
11950      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11951    else
11952            for found_dir in $rpathdirs; do
11953        acl_save_libdir="$libdir"
11954        libdir="$found_dir"
11955        eval flag=\"$hardcode_libdir_flag_spec\"
11956        libdir="$acl_save_libdir"
11957        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11958      done
11959    fi
11960  fi
11961  if test "X$ltrpathdirs" != "X"; then
11962            for found_dir in $ltrpathdirs; do
11963      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11964    done
11965  fi
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11985$as_echo_n "checking whether NLS is requested... " >&6; }
11986    # Check whether --enable-nls was given.
11987if test "${enable_nls+set}" = set; then :
11988  enableval=$enable_nls; USE_NLS=$enableval
11989else
11990  USE_NLS=yes
11991fi
11992
11993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11994$as_echo "$USE_NLS" >&6; }
11995
11996
11997
11998
11999  LIBINTL=
12000  LTLIBINTL=
12001  POSUB=
12002
12003    if test "$USE_NLS" = "yes"; then
12004    gt_use_preinstalled_gnugettext=no
12005
12006
12007
12008
12009
12010
12011        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
12012$as_echo_n "checking for GNU gettext in libc... " >&6; }
12013if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
12014  $as_echo_n "(cached) " >&6
12015else
12016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12017/* end confdefs.h.  */
12018#include <libintl.h>
12019extern int _nl_msg_cat_cntr;
12020extern int *_nl_domain_bindings;
12021int
12022main ()
12023{
12024bindtextdomain ("", "");
12025return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12026  ;
12027  return 0;
12028}
12029_ACEOF
12030if ac_fn_c_try_link "$LINENO"; then :
12031  gt_cv_func_gnugettext1_libc=yes
12032else
12033  gt_cv_func_gnugettext1_libc=no
12034fi
12035rm -f core conftest.err conftest.$ac_objext \
12036    conftest$ac_exeext conftest.$ac_ext
12037fi
12038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
12039$as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
12040
12041        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12042
12043
12044
12045
12046
12047          am_save_CPPFLAGS="$CPPFLAGS"
12048
12049  for element in $INCICONV; do
12050    haveit=
12051    for x in $CPPFLAGS; do
12052
12053  acl_save_prefix="$prefix"
12054  prefix="$acl_final_prefix"
12055  acl_save_exec_prefix="$exec_prefix"
12056  exec_prefix="$acl_final_exec_prefix"
12057  eval x=\"$x\"
12058  exec_prefix="$acl_save_exec_prefix"
12059  prefix="$acl_save_prefix"
12060
12061      if test "X$x" = "X$element"; then
12062        haveit=yes
12063        break
12064      fi
12065    done
12066    if test -z "$haveit"; then
12067      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12068    fi
12069  done
12070
12071
12072  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12073$as_echo_n "checking for iconv... " >&6; }
12074if test "${am_cv_func_iconv+set}" = set; then :
12075  $as_echo_n "(cached) " >&6
12076else
12077
12078    am_cv_func_iconv="no, consider installing GNU libiconv"
12079    am_cv_lib_iconv=no
12080    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12081/* end confdefs.h.  */
12082#include <stdlib.h>
12083#include <iconv.h>
12084int
12085main ()
12086{
12087iconv_t cd = iconv_open("","");
12088       iconv(cd,NULL,NULL,NULL,NULL);
12089       iconv_close(cd);
12090  ;
12091  return 0;
12092}
12093_ACEOF
12094if ac_fn_c_try_link "$LINENO"; then :
12095  am_cv_func_iconv=yes
12096fi
12097rm -f core conftest.err conftest.$ac_objext \
12098    conftest$ac_exeext conftest.$ac_ext
12099    if test "$am_cv_func_iconv" != yes; then
12100      am_save_LIBS="$LIBS"
12101      LIBS="$LIBS $LIBICONV"
12102      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12103/* end confdefs.h.  */
12104#include <stdlib.h>
12105#include <iconv.h>
12106int
12107main ()
12108{
12109iconv_t cd = iconv_open("","");
12110         iconv(cd,NULL,NULL,NULL,NULL);
12111         iconv_close(cd);
12112  ;
12113  return 0;
12114}
12115_ACEOF
12116if ac_fn_c_try_link "$LINENO"; then :
12117  am_cv_lib_iconv=yes
12118        am_cv_func_iconv=yes
12119fi
12120rm -f core conftest.err conftest.$ac_objext \
12121    conftest$ac_exeext conftest.$ac_ext
12122      LIBS="$am_save_LIBS"
12123    fi
12124
12125fi
12126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12127$as_echo "$am_cv_func_iconv" >&6; }
12128  if test "$am_cv_func_iconv" = yes; then
12129
12130$as_echo "#define HAVE_ICONV 1" >>confdefs.h
12131
12132  fi
12133  if test "$am_cv_lib_iconv" = yes; then
12134    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12135$as_echo_n "checking how to link with libiconv... " >&6; }
12136    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12137$as_echo "$LIBICONV" >&6; }
12138  else
12139            CPPFLAGS="$am_save_CPPFLAGS"
12140    LIBICONV=
12141    LTLIBICONV=
12142  fi
12143
12144
12145
12146
12147
12148
12149    use_additional=yes
12150
12151  acl_save_prefix="$prefix"
12152  prefix="$acl_final_prefix"
12153  acl_save_exec_prefix="$exec_prefix"
12154  exec_prefix="$acl_final_exec_prefix"
12155
12156    eval additional_includedir=\"$includedir\"
12157    eval additional_libdir=\"$libdir\"
12158
12159  exec_prefix="$acl_save_exec_prefix"
12160  prefix="$acl_save_prefix"
12161
12162
12163# Check whether --with-libintl-prefix was given.
12164if test "${with_libintl_prefix+set}" = set; then :
12165  withval=$with_libintl_prefix;
12166    if test "X$withval" = "Xno"; then
12167      use_additional=no
12168    else
12169      if test "X$withval" = "X"; then
12170
12171  acl_save_prefix="$prefix"
12172  prefix="$acl_final_prefix"
12173  acl_save_exec_prefix="$exec_prefix"
12174  exec_prefix="$acl_final_exec_prefix"
12175
12176          eval additional_includedir=\"$includedir\"
12177          eval additional_libdir=\"$libdir\"
12178
12179  exec_prefix="$acl_save_exec_prefix"
12180  prefix="$acl_save_prefix"
12181
12182      else
12183        additional_includedir="$withval/include"
12184        additional_libdir="$withval/lib"
12185      fi
12186    fi
12187
12188fi
12189
12190      LIBINTL=
12191  LTLIBINTL=
12192  INCINTL=
12193  rpathdirs=
12194  ltrpathdirs=
12195  names_already_handled=
12196  names_next_round='intl '
12197  while test -n "$names_next_round"; do
12198    names_this_round="$names_next_round"
12199    names_next_round=
12200    for name in $names_this_round; do
12201      already_handled=
12202      for n in $names_already_handled; do
12203        if test "$n" = "$name"; then
12204          already_handled=yes
12205          break
12206        fi
12207      done
12208      if test -z "$already_handled"; then
12209        names_already_handled="$names_already_handled $name"
12210                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12211        eval value=\"\$HAVE_LIB$uppername\"
12212        if test -n "$value"; then
12213          if test "$value" = yes; then
12214            eval value=\"\$LIB$uppername\"
12215            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12216            eval value=\"\$LTLIB$uppername\"
12217            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12218          else
12219                                    :
12220          fi
12221        else
12222                              found_dir=
12223          found_la=
12224          found_so=
12225          found_a=
12226          if test $use_additional = yes; then
12227            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12228              found_dir="$additional_libdir"
12229              found_so="$additional_libdir/lib$name.$shlibext"
12230              if test -f "$additional_libdir/lib$name.la"; then
12231                found_la="$additional_libdir/lib$name.la"
12232              fi
12233            else
12234              if test -f "$additional_libdir/lib$name.$libext"; then
12235                found_dir="$additional_libdir"
12236                found_a="$additional_libdir/lib$name.$libext"
12237                if test -f "$additional_libdir/lib$name.la"; then
12238                  found_la="$additional_libdir/lib$name.la"
12239                fi
12240              fi
12241            fi
12242          fi
12243          if test "X$found_dir" = "X"; then
12244            for x in $LDFLAGS $LTLIBINTL; do
12245
12246  acl_save_prefix="$prefix"
12247  prefix="$acl_final_prefix"
12248  acl_save_exec_prefix="$exec_prefix"
12249  exec_prefix="$acl_final_exec_prefix"
12250  eval x=\"$x\"
12251  exec_prefix="$acl_save_exec_prefix"
12252  prefix="$acl_save_prefix"
12253
12254              case "$x" in
12255                -L*)
12256                  dir=`echo "X$x" | sed -e 's/^X-L//'`
12257                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12258                    found_dir="$dir"
12259                    found_so="$dir/lib$name.$shlibext"
12260                    if test -f "$dir/lib$name.la"; then
12261                      found_la="$dir/lib$name.la"
12262                    fi
12263                  else
12264                    if test -f "$dir/lib$name.$libext"; then
12265                      found_dir="$dir"
12266                      found_a="$dir/lib$name.$libext"
12267                      if test -f "$dir/lib$name.la"; then
12268                        found_la="$dir/lib$name.la"
12269                      fi
12270                    fi
12271                  fi
12272                  ;;
12273              esac
12274              if test "X$found_dir" != "X"; then
12275                break
12276              fi
12277            done
12278          fi
12279          if test "X$found_dir" != "X"; then
12280                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12281            if test "X$found_so" != "X"; then
12282                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12283                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12284              else
12285                                                                                haveit=
12286                for x in $ltrpathdirs; do
12287                  if test "X$x" = "X$found_dir"; then
12288                    haveit=yes
12289                    break
12290                  fi
12291                done
12292                if test -z "$haveit"; then
12293                  ltrpathdirs="$ltrpathdirs $found_dir"
12294                fi
12295                                if test "$hardcode_direct" = yes; then
12296                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12297                else
12298                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12299                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12300                                                            haveit=
12301                    for x in $rpathdirs; do
12302                      if test "X$x" = "X$found_dir"; then
12303                        haveit=yes
12304                        break
12305                      fi
12306                    done
12307                    if test -z "$haveit"; then
12308                      rpathdirs="$rpathdirs $found_dir"
12309                    fi
12310                  else
12311                                                                                haveit=
12312                    for x in $LDFLAGS $LIBINTL; do
12313
12314  acl_save_prefix="$prefix"
12315  prefix="$acl_final_prefix"
12316  acl_save_exec_prefix="$exec_prefix"
12317  exec_prefix="$acl_final_exec_prefix"
12318  eval x=\"$x\"
12319  exec_prefix="$acl_save_exec_prefix"
12320  prefix="$acl_save_prefix"
12321
12322                      if test "X$x" = "X-L$found_dir"; then
12323                        haveit=yes
12324                        break
12325                      fi
12326                    done
12327                    if test -z "$haveit"; then
12328                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12329                    fi
12330                    if test "$hardcode_minus_L" != no; then
12331                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12332                    else
12333                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12334                    fi
12335                  fi
12336                fi
12337              fi
12338            else
12339              if test "X$found_a" != "X"; then
12340                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12341              else
12342                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12343              fi
12344            fi
12345                        additional_includedir=
12346            case "$found_dir" in
12347              */lib | */lib/)
12348                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12349                additional_includedir="$basedir/include"
12350                ;;
12351            esac
12352            if test "X$additional_includedir" != "X"; then
12353                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
12354                haveit=
12355                if test "X$additional_includedir" = "X/usr/local/include"; then
12356                  if test -n "$GCC"; then
12357                    case $host_os in
12358                      linux*) haveit=yes;;
12359                    esac
12360                  fi
12361                fi
12362                if test -z "$haveit"; then
12363                  for x in $CPPFLAGS $INCINTL; do
12364
12365  acl_save_prefix="$prefix"
12366  prefix="$acl_final_prefix"
12367  acl_save_exec_prefix="$exec_prefix"
12368  exec_prefix="$acl_final_exec_prefix"
12369  eval x=\"$x\"
12370  exec_prefix="$acl_save_exec_prefix"
12371  prefix="$acl_save_prefix"
12372
12373                    if test "X$x" = "X-I$additional_includedir"; then
12374                      haveit=yes
12375                      break
12376                    fi
12377                  done
12378                  if test -z "$haveit"; then
12379                    if test -d "$additional_includedir"; then
12380                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12381                    fi
12382                  fi
12383                fi
12384              fi
12385            fi
12386                        if test -n "$found_la"; then
12387                                                        save_libdir="$libdir"
12388              case "$found_la" in
12389                */* | *\\*) . "$found_la" ;;
12390                *) . "./$found_la" ;;
12391              esac
12392              libdir="$save_libdir"
12393                            for dep in $dependency_libs; do
12394                case "$dep" in
12395                  -L*)
12396                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12397                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
12398                      haveit=
12399                      if test "X$additional_libdir" = "X/usr/local/lib"; then
12400                        if test -n "$GCC"; then
12401                          case $host_os in
12402                            linux*) haveit=yes;;
12403                          esac
12404                        fi
12405                      fi
12406                      if test -z "$haveit"; then
12407                        haveit=
12408                        for x in $LDFLAGS $LIBINTL; do
12409
12410  acl_save_prefix="$prefix"
12411  prefix="$acl_final_prefix"
12412  acl_save_exec_prefix="$exec_prefix"
12413  exec_prefix="$acl_final_exec_prefix"
12414  eval x=\"$x\"
12415  exec_prefix="$acl_save_exec_prefix"
12416  prefix="$acl_save_prefix"
12417
12418                          if test "X$x" = "X-L$additional_libdir"; then
12419                            haveit=yes
12420                            break
12421                          fi
12422                        done
12423                        if test -z "$haveit"; then
12424                          if test -d "$additional_libdir"; then
12425                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12426                          fi
12427                        fi
12428                        haveit=
12429                        for x in $LDFLAGS $LTLIBINTL; do
12430
12431  acl_save_prefix="$prefix"
12432  prefix="$acl_final_prefix"
12433  acl_save_exec_prefix="$exec_prefix"
12434  exec_prefix="$acl_final_exec_prefix"
12435  eval x=\"$x\"
12436  exec_prefix="$acl_save_exec_prefix"
12437  prefix="$acl_save_prefix"
12438
12439                          if test "X$x" = "X-L$additional_libdir"; then
12440                            haveit=yes
12441                            break
12442                          fi
12443                        done
12444                        if test -z "$haveit"; then
12445                          if test -d "$additional_libdir"; then
12446                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12447                          fi
12448                        fi
12449                      fi
12450                    fi
12451                    ;;
12452                  -R*)
12453                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
12454                    if test "$enable_rpath" != no; then
12455                                                                  haveit=
12456                      for x in $rpathdirs; do
12457                        if test "X$x" = "X$dir"; then
12458                          haveit=yes
12459                          break
12460                        fi
12461                      done
12462                      if test -z "$haveit"; then
12463                        rpathdirs="$rpathdirs $dir"
12464                      fi
12465                                                                  haveit=
12466                      for x in $ltrpathdirs; do
12467                        if test "X$x" = "X$dir"; then
12468                          haveit=yes
12469                          break
12470                        fi
12471                      done
12472                      if test -z "$haveit"; then
12473                        ltrpathdirs="$ltrpathdirs $dir"
12474                      fi
12475                    fi
12476                    ;;
12477                  -l*)
12478                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12479                    ;;
12480                  *.la)
12481                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12482                    ;;
12483                  *)
12484                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12485                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12486                    ;;
12487                esac
12488              done
12489            fi
12490          else
12491                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12492            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12493          fi
12494        fi
12495      fi
12496    done
12497  done
12498  if test "X$rpathdirs" != "X"; then
12499    if test -n "$hardcode_libdir_separator"; then
12500                        alldirs=
12501      for found_dir in $rpathdirs; do
12502        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12503      done
12504            acl_save_libdir="$libdir"
12505      libdir="$alldirs"
12506      eval flag=\"$hardcode_libdir_flag_spec\"
12507      libdir="$acl_save_libdir"
12508      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12509    else
12510            for found_dir in $rpathdirs; do
12511        acl_save_libdir="$libdir"
12512        libdir="$found_dir"
12513        eval flag=\"$hardcode_libdir_flag_spec\"
12514        libdir="$acl_save_libdir"
12515        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12516      done
12517    fi
12518  fi
12519  if test "X$ltrpathdirs" != "X"; then
12520            for found_dir in $ltrpathdirs; do
12521      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12522    done
12523  fi
12524
12525          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
12526$as_echo_n "checking for GNU gettext in libintl... " >&6; }
12527if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
12528  $as_echo_n "(cached) " >&6
12529else
12530  gt_save_CPPFLAGS="$CPPFLAGS"
12531            CPPFLAGS="$CPPFLAGS $INCINTL"
12532            gt_save_LIBS="$LIBS"
12533            LIBS="$LIBS $LIBINTL"
12534                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12535/* end confdefs.h.  */
12536#include <libintl.h>
12537extern int _nl_msg_cat_cntr;
12538extern
12539#ifdef __cplusplus
12540"C"
12541#endif
12542const char *_nl_expand_alias ();
12543int
12544main ()
12545{
12546bindtextdomain ("", "");
12547return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
12548  ;
12549  return 0;
12550}
12551_ACEOF
12552if ac_fn_c_try_link "$LINENO"; then :
12553  gt_cv_func_gnugettext1_libintl=yes
12554else
12555  gt_cv_func_gnugettext1_libintl=no
12556fi
12557rm -f core conftest.err conftest.$ac_objext \
12558    conftest$ac_exeext conftest.$ac_ext
12559                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
12560              LIBS="$LIBS $LIBICONV"
12561              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12562/* end confdefs.h.  */
12563#include <libintl.h>
12564extern int _nl_msg_cat_cntr;
12565extern
12566#ifdef __cplusplus
12567"C"
12568#endif
12569const char *_nl_expand_alias ();
12570int
12571main ()
12572{
12573bindtextdomain ("", "");
12574return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
12575  ;
12576  return 0;
12577}
12578_ACEOF
12579if ac_fn_c_try_link "$LINENO"; then :
12580  LIBINTL="$LIBINTL $LIBICONV"
12581                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12582                gt_cv_func_gnugettext1_libintl=yes
12583
12584fi
12585rm -f core conftest.err conftest.$ac_objext \
12586    conftest$ac_exeext conftest.$ac_ext
12587            fi
12588            CPPFLAGS="$gt_save_CPPFLAGS"
12589            LIBS="$gt_save_LIBS"
12590fi
12591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
12592$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
12593        fi
12594
12595                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
12596           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
12597                && test "$PACKAGE" != gettext-runtime \
12598                && test "$PACKAGE" != gettext-tools; }; then
12599          gt_use_preinstalled_gnugettext=yes
12600        else
12601                    LIBINTL=
12602          LTLIBINTL=
12603          INCINTL=
12604        fi
12605
12606
12607
12608    if test "$gt_use_preinstalled_gnugettext" = "yes" \
12609       || test "$nls_cv_use_gnu_gettext" = "yes"; then
12610
12611$as_echo "#define ENABLE_NLS 1" >>confdefs.h
12612
12613    else
12614      USE_NLS=no
12615    fi
12616  fi
12617
12618  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
12619$as_echo_n "checking whether to use NLS... " >&6; }
12620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12621$as_echo "$USE_NLS" >&6; }
12622  if test "$USE_NLS" = "yes"; then
12623    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
12624$as_echo_n "checking where the gettext function comes from... " >&6; }
12625    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12626      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12627        gt_source="external libintl"
12628      else
12629        gt_source="libc"
12630      fi
12631    else
12632      gt_source="included intl directory"
12633    fi
12634    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
12635$as_echo "$gt_source" >&6; }
12636  fi
12637
12638  if test "$USE_NLS" = "yes"; then
12639
12640    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12641      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12642        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
12643$as_echo_n "checking how to link with libintl... " >&6; }
12644        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
12645$as_echo "$LIBINTL" >&6; }
12646
12647  for element in $INCINTL; do
12648    haveit=
12649    for x in $CPPFLAGS; do
12650
12651  acl_save_prefix="$prefix"
12652  prefix="$acl_final_prefix"
12653  acl_save_exec_prefix="$exec_prefix"
12654  exec_prefix="$acl_final_exec_prefix"
12655  eval x=\"$x\"
12656  exec_prefix="$acl_save_exec_prefix"
12657  prefix="$acl_save_prefix"
12658
12659      if test "X$x" = "X$element"; then
12660        haveit=yes
12661        break
12662      fi
12663    done
12664    if test -z "$haveit"; then
12665      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12666    fi
12667  done
12668
12669      fi
12670
12671
12672$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
12673
12674
12675$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
12676
12677    fi
12678
12679        POSUB=po
12680  fi
12681
12682
12683
12684    INTLLIBS="$LIBINTL"
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696          am_save_CPPFLAGS="$CPPFLAGS"
12697
12698  for element in $INCICONV; do
12699    haveit=
12700    for x in $CPPFLAGS; do
12701
12702  acl_save_prefix="$prefix"
12703  prefix="$acl_final_prefix"
12704  acl_save_exec_prefix="$exec_prefix"
12705  exec_prefix="$acl_final_exec_prefix"
12706  eval x=\"$x\"
12707  exec_prefix="$acl_save_exec_prefix"
12708  prefix="$acl_save_prefix"
12709
12710      if test "X$x" = "X$element"; then
12711        haveit=yes
12712        break
12713      fi
12714    done
12715    if test -z "$haveit"; then
12716      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12717    fi
12718  done
12719
12720
12721  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12722$as_echo_n "checking for iconv... " >&6; }
12723if test "${am_cv_func_iconv+set}" = set; then :
12724  $as_echo_n "(cached) " >&6
12725else
12726
12727    am_cv_func_iconv="no, consider installing GNU libiconv"
12728    am_cv_lib_iconv=no
12729    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12730/* end confdefs.h.  */
12731#include <stdlib.h>
12732#include <iconv.h>
12733int
12734main ()
12735{
12736iconv_t cd = iconv_open("","");
12737       iconv(cd,NULL,NULL,NULL,NULL);
12738       iconv_close(cd);
12739  ;
12740  return 0;
12741}
12742_ACEOF
12743if ac_fn_c_try_link "$LINENO"; then :
12744  am_cv_func_iconv=yes
12745fi
12746rm -f core conftest.err conftest.$ac_objext \
12747    conftest$ac_exeext conftest.$ac_ext
12748    if test "$am_cv_func_iconv" != yes; then
12749      am_save_LIBS="$LIBS"
12750      LIBS="$LIBS $LIBICONV"
12751      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12752/* end confdefs.h.  */
12753#include <stdlib.h>
12754#include <iconv.h>
12755int
12756main ()
12757{
12758iconv_t cd = iconv_open("","");
12759         iconv(cd,NULL,NULL,NULL,NULL);
12760         iconv_close(cd);
12761  ;
12762  return 0;
12763}
12764_ACEOF
12765if ac_fn_c_try_link "$LINENO"; then :
12766  am_cv_lib_iconv=yes
12767        am_cv_func_iconv=yes
12768fi
12769rm -f core conftest.err conftest.$ac_objext \
12770    conftest$ac_exeext conftest.$ac_ext
12771      LIBS="$am_save_LIBS"
12772    fi
12773
12774fi
12775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12776$as_echo "$am_cv_func_iconv" >&6; }
12777  if test "$am_cv_func_iconv" = yes; then
12778
12779$as_echo "#define HAVE_ICONV 1" >>confdefs.h
12780
12781  fi
12782  if test "$am_cv_lib_iconv" = yes; then
12783    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12784$as_echo_n "checking how to link with libiconv... " >&6; }
12785    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12786$as_echo "$LIBICONV" >&6; }
12787  else
12788            CPPFLAGS="$am_save_CPPFLAGS"
12789    LIBICONV=
12790    LTLIBICONV=
12791  fi
12792
12793
12794
12795  if test "$am_cv_func_iconv" = yes; then
12796    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
12797$as_echo_n "checking for iconv declaration... " >&6; }
12798    if test "${am_cv_proto_iconv+set}" = set; then :
12799  $as_echo_n "(cached) " >&6
12800else
12801
12802      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12803/* end confdefs.h.  */
12804
12805#include <stdlib.h>
12806#include <iconv.h>
12807extern
12808#ifdef __cplusplus
12809"C"
12810#endif
12811#if defined(__STDC__) || defined(__cplusplus)
12812size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12813#else
12814size_t iconv();
12815#endif
12816
12817int
12818main ()
12819{
12820
12821  ;
12822  return 0;
12823}
12824_ACEOF
12825if ac_fn_c_try_compile "$LINENO"; then :
12826  am_cv_proto_iconv_arg1=""
12827else
12828  am_cv_proto_iconv_arg1="const"
12829fi
12830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12831      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
12832fi
12833
12834    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12835    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
12836         }$am_cv_proto_iconv" >&5
12837$as_echo "${ac_t:-
12838         }$am_cv_proto_iconv" >&6; }
12839
12840cat >>confdefs.h <<_ACEOF
12841#define ICONV_CONST $am_cv_proto_iconv_arg1
12842_ACEOF
12843
12844  fi
12845
12846
12847
12848
12849if test "x${BUILD_INCLUDED_LIBINTL}" = "xyes"; then
12850   AM_CFLAGS="${AM_CFLAGS} -I\$(top_srcdir)/intl"
12851fi
12852
12853gp_config_msg_len="$(expr "Use translations" : '.*')"
12854if test "$gp_config_msg_len" -ge "$gp_config_len"; then
12855	gp_config_msg_lhs="$(expr "Use translations" : "\(.\{0,${gp_config_len3}\}\)")..:"
12856else
12857	gp_config_msg_lhs="$(expr "Use translations:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
12858fi
12859gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} ${USE_NLS}
12860"
12861
12862if test "x$USE_NLS" = "xyes" && test "${BUILD_INCLUDED_LIBINTL}"; then
12863
12864gp_config_msg_len="$(expr "Use included libintl" : '.*')"
12865if test "$gp_config_msg_len" -ge "$gp_config_len"; then
12866	gp_config_msg_lhs="$(expr "Use included libintl" : "\(.\{0,${gp_config_len3}\}\)")..:"
12867else
12868	gp_config_msg_lhs="$(expr "Use included libintl:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
12869fi
12870gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} ${BUILD_INCLUDED_LIBINTL}
12871"
12872
12873fi
12874localedir='$(datadir)/locale'
12875
12876AM_CPPFLAGS="$AM_CPPFLAGS -DLOCALEDIR=\\\"${localedir}\\\""
12877
12878
12879
12880for ac_func in localtime_r
12881do :
12882  ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
12883if test "x$ac_cv_func_localtime_r" = x""yes; then :
12884  cat >>confdefs.h <<_ACEOF
12885#define HAVE_LOCALTIME_R 1
12886_ACEOF
12887
12888fi
12889done
12890
12891
12892AM_CPPFLAGS="$AM_CPPFLAGS -I\$(top_srcdir)"
12893AM_CPPFLAGS="$AM_CPPFLAGS -I\$(top_builddir)"
12894AM_LDFLAGS="$LDFLAGS"
12895if test "x$GCC" = "xyes"; then
12896    AM_CFLAGS="$AM_CFLAGS -ansi -pedantic-error"
12897    AM_CXXFLAGS="$AM_CXXFLAGS -ansi -pedantic-error"
12898    AM_CPPFLAGS="$AM_CPPFLAGS -g -Wall -Wmissing-declarations -Wmissing-prototypes"
12899    AM_LDFLAGS="$AM_LDFLAGS -g -Wall"
12900fi
12901
12902
12903
12904
12905
12906
12907
12908ac_config_files="$ac_config_files po/Makefile.in Makefile libexif.spec libexif/Makefile test/Makefile test/nls/Makefile m4m/Makefile doc/Makefile doc/Doxyfile doc/Doxyfile-internals libexif.pc libexif-uninstalled.pc binary/Makefile contrib/Makefile contrib/examples/Makefile"
12909
12910cat >confcache <<\_ACEOF
12911# This file is a shell script that caches the results of configure
12912# tests run on this system so they can be shared between configure
12913# scripts and configure runs, see configure's option --config-cache.
12914# It is not useful on other systems.  If it contains results you don't
12915# want to keep, you may remove or edit it.
12916#
12917# config.status only pays attention to the cache file if you give it
12918# the --recheck option to rerun configure.
12919#
12920# `ac_cv_env_foo' variables (set or unset) will be overridden when
12921# loading this file, other *unset* `ac_cv_foo' will be assigned the
12922# following values.
12923
12924_ACEOF
12925
12926# The following way of writing the cache mishandles newlines in values,
12927# but we know of no workaround that is simple, portable, and efficient.
12928# So, we kill variables containing newlines.
12929# Ultrix sh set writes to stderr and can't be redirected directly,
12930# and sets the high bit in the cache file unless we assign to the vars.
12931(
12932  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12933    eval ac_val=\$$ac_var
12934    case $ac_val in #(
12935    *${as_nl}*)
12936      case $ac_var in #(
12937      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12938$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12939      esac
12940      case $ac_var in #(
12941      _ | IFS | as_nl) ;; #(
12942      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12943      *) { eval $ac_var=; unset $ac_var;} ;;
12944      esac ;;
12945    esac
12946  done
12947
12948  (set) 2>&1 |
12949    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12950    *${as_nl}ac_space=\ *)
12951      # `set' does not quote correctly, so add quotes: double-quote
12952      # substitution turns \\\\ into \\, and sed turns \\ into \.
12953      sed -n \
12954	"s/'/'\\\\''/g;
12955	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12956      ;; #(
12957    *)
12958      # `set' quotes correctly as required by POSIX, so do not add quotes.
12959      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12960      ;;
12961    esac |
12962    sort
12963) |
12964  sed '
12965     /^ac_cv_env_/b end
12966     t clear
12967     :clear
12968     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12969     t end
12970     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12971     :end' >>confcache
12972if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12973  if test -w "$cache_file"; then
12974    test "x$cache_file" != "x/dev/null" &&
12975      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12976$as_echo "$as_me: updating cache $cache_file" >&6;}
12977    cat confcache >$cache_file
12978  else
12979    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12980$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12981  fi
12982fi
12983rm -f confcache
12984
12985test "x$prefix" = xNONE && prefix=$ac_default_prefix
12986# Let make expand exec_prefix.
12987test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12988
12989DEFS=-DHAVE_CONFIG_H
12990
12991ac_libobjs=
12992ac_ltlibobjs=
12993for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12994  # 1. Remove the extension, and $U if already installed.
12995  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12996  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12997  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12998  #    will be set to the directory where LIBOBJS objects are built.
12999  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13000  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13001done
13002LIBOBJS=$ac_libobjs
13003
13004LTLIBOBJS=$ac_ltlibobjs
13005
13006
13007 if test -n "$EXEEXT"; then
13008  am__EXEEXT_TRUE=
13009  am__EXEEXT_FALSE='#'
13010else
13011  am__EXEEXT_TRUE='#'
13012  am__EXEEXT_FALSE=
13013fi
13014
13015if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13016  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13017Usually this means the macro was only invoked conditionally." "$LINENO" 5
13018fi
13019if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13020  as_fn_error "conditional \"AMDEP\" was never defined.
13021Usually this means the macro was only invoked conditionally." "$LINENO" 5
13022fi
13023if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13024  as_fn_error "conditional \"am__fastdepCC\" was never defined.
13025Usually this means the macro was only invoked conditionally." "$LINENO" 5
13026fi
13027if test -z "${SHIP_BINARIES_TRUE}" && test -z "${SHIP_BINARIES_FALSE}"; then
13028  as_fn_error "conditional \"SHIP_BINARIES\" was never defined.
13029Usually this means the macro was only invoked conditionally." "$LINENO" 5
13030fi
13031if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
13032  as_fn_error "conditional \"BUILD_DOCS\" was never defined.
13033Usually this means the macro was only invoked conditionally." "$LINENO" 5
13034fi
13035if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
13036  as_fn_error "conditional \"HAVE_DOXYGEN\" was never defined.
13037Usually this means the macro was only invoked conditionally." "$LINENO" 5
13038fi
13039if test -z "${HAVE_DOT_TRUE}" && test -z "${HAVE_DOT_FALSE}"; then
13040  as_fn_error "conditional \"HAVE_DOT\" was never defined.
13041Usually this means the macro was only invoked conditionally." "$LINENO" 5
13042fi
13043if test -z "${ENABLE_INTERNAL_DOCS_TRUE}" && test -z "${ENABLE_INTERNAL_DOCS_FALSE}"; then
13044  as_fn_error "conditional \"ENABLE_INTERNAL_DOCS\" was never defined.
13045Usually this means the macro was only invoked conditionally." "$LINENO" 5
13046fi
13047
13048: ${CONFIG_STATUS=./config.status}
13049ac_write_fail=0
13050ac_clean_files_save=$ac_clean_files
13051ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13052{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13053$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13054as_write_fail=0
13055cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13056#! $SHELL
13057# Generated by $as_me.
13058# Run this file to recreate the current configuration.
13059# Compiler output produced by configure, useful for debugging
13060# configure, is in config.log if it exists.
13061
13062debug=false
13063ac_cs_recheck=false
13064ac_cs_silent=false
13065
13066SHELL=\${CONFIG_SHELL-$SHELL}
13067export SHELL
13068_ASEOF
13069cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13070## -------------------- ##
13071## M4sh Initialization. ##
13072## -------------------- ##
13073
13074# Be more Bourne compatible
13075DUALCASE=1; export DUALCASE # for MKS sh
13076if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13077  emulate sh
13078  NULLCMD=:
13079  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13080  # is contrary to our usage.  Disable this feature.
13081  alias -g '${1+"$@"}'='"$@"'
13082  setopt NO_GLOB_SUBST
13083else
13084  case `(set -o) 2>/dev/null` in #(
13085  *posix*) :
13086    set -o posix ;; #(
13087  *) :
13088     ;;
13089esac
13090fi
13091
13092
13093as_nl='
13094'
13095export as_nl
13096# Printing a long string crashes Solaris 7 /usr/bin/printf.
13097as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13098as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13099as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13100# Prefer a ksh shell builtin over an external printf program on Solaris,
13101# but without wasting forks for bash or zsh.
13102if test -z "$BASH_VERSION$ZSH_VERSION" \
13103    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13104  as_echo='print -r --'
13105  as_echo_n='print -rn --'
13106elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13107  as_echo='printf %s\n'
13108  as_echo_n='printf %s'
13109else
13110  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13111    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13112    as_echo_n='/usr/ucb/echo -n'
13113  else
13114    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13115    as_echo_n_body='eval
13116      arg=$1;
13117      case $arg in #(
13118      *"$as_nl"*)
13119	expr "X$arg" : "X\\(.*\\)$as_nl";
13120	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13121      esac;
13122      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13123    '
13124    export as_echo_n_body
13125    as_echo_n='sh -c $as_echo_n_body as_echo'
13126  fi
13127  export as_echo_body
13128  as_echo='sh -c $as_echo_body as_echo'
13129fi
13130
13131# The user is always right.
13132if test "${PATH_SEPARATOR+set}" != set; then
13133  PATH_SEPARATOR=:
13134  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13135    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13136      PATH_SEPARATOR=';'
13137  }
13138fi
13139
13140
13141# IFS
13142# We need space, tab and new line, in precisely that order.  Quoting is
13143# there to prevent editors from complaining about space-tab.
13144# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13145# splitting by setting IFS to empty value.)
13146IFS=" ""	$as_nl"
13147
13148# Find who we are.  Look in the path if we contain no directory separator.
13149case $0 in #((
13150  *[\\/]* ) as_myself=$0 ;;
13151  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13152for as_dir in $PATH
13153do
13154  IFS=$as_save_IFS
13155  test -z "$as_dir" && as_dir=.
13156    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13157  done
13158IFS=$as_save_IFS
13159
13160     ;;
13161esac
13162# We did not find ourselves, most probably we were run as `sh COMMAND'
13163# in which case we are not to be found in the path.
13164if test "x$as_myself" = x; then
13165  as_myself=$0
13166fi
13167if test ! -f "$as_myself"; then
13168  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13169  exit 1
13170fi
13171
13172# Unset variables that we do not need and which cause bugs (e.g. in
13173# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13174# suppresses any "Segmentation fault" message there.  '((' could
13175# trigger a bug in pdksh 5.2.14.
13176for as_var in BASH_ENV ENV MAIL MAILPATH
13177do eval test x\${$as_var+set} = xset \
13178  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13179done
13180PS1='$ '
13181PS2='> '
13182PS4='+ '
13183
13184# NLS nuisances.
13185LC_ALL=C
13186export LC_ALL
13187LANGUAGE=C
13188export LANGUAGE
13189
13190# CDPATH.
13191(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13192
13193
13194# as_fn_error ERROR [LINENO LOG_FD]
13195# ---------------------------------
13196# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13197# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13198# script with status $?, using 1 if that was 0.
13199as_fn_error ()
13200{
13201  as_status=$?; test $as_status -eq 0 && as_status=1
13202  if test "$3"; then
13203    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13204    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13205  fi
13206  $as_echo "$as_me: error: $1" >&2
13207  as_fn_exit $as_status
13208} # as_fn_error
13209
13210
13211# as_fn_set_status STATUS
13212# -----------------------
13213# Set $? to STATUS, without forking.
13214as_fn_set_status ()
13215{
13216  return $1
13217} # as_fn_set_status
13218
13219# as_fn_exit STATUS
13220# -----------------
13221# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13222as_fn_exit ()
13223{
13224  set +e
13225  as_fn_set_status $1
13226  exit $1
13227} # as_fn_exit
13228
13229# as_fn_unset VAR
13230# ---------------
13231# Portably unset VAR.
13232as_fn_unset ()
13233{
13234  { eval $1=; unset $1;}
13235}
13236as_unset=as_fn_unset
13237# as_fn_append VAR VALUE
13238# ----------------------
13239# Append the text in VALUE to the end of the definition contained in VAR. Take
13240# advantage of any shell optimizations that allow amortized linear growth over
13241# repeated appends, instead of the typical quadratic growth present in naive
13242# implementations.
13243if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13244  eval 'as_fn_append ()
13245  {
13246    eval $1+=\$2
13247  }'
13248else
13249  as_fn_append ()
13250  {
13251    eval $1=\$$1\$2
13252  }
13253fi # as_fn_append
13254
13255# as_fn_arith ARG...
13256# ------------------
13257# Perform arithmetic evaluation on the ARGs, and store the result in the
13258# global $as_val. Take advantage of shells that can avoid forks. The arguments
13259# must be portable across $(()) and expr.
13260if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13261  eval 'as_fn_arith ()
13262  {
13263    as_val=$(( $* ))
13264  }'
13265else
13266  as_fn_arith ()
13267  {
13268    as_val=`expr "$@" || test $? -eq 1`
13269  }
13270fi # as_fn_arith
13271
13272
13273if expr a : '\(a\)' >/dev/null 2>&1 &&
13274   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13275  as_expr=expr
13276else
13277  as_expr=false
13278fi
13279
13280if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13281  as_basename=basename
13282else
13283  as_basename=false
13284fi
13285
13286if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13287  as_dirname=dirname
13288else
13289  as_dirname=false
13290fi
13291
13292as_me=`$as_basename -- "$0" ||
13293$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13294	 X"$0" : 'X\(//\)$' \| \
13295	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13296$as_echo X/"$0" |
13297    sed '/^.*\/\([^/][^/]*\)\/*$/{
13298	    s//\1/
13299	    q
13300	  }
13301	  /^X\/\(\/\/\)$/{
13302	    s//\1/
13303	    q
13304	  }
13305	  /^X\/\(\/\).*/{
13306	    s//\1/
13307	    q
13308	  }
13309	  s/.*/./; q'`
13310
13311# Avoid depending upon Character Ranges.
13312as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13313as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13314as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13315as_cr_digits='0123456789'
13316as_cr_alnum=$as_cr_Letters$as_cr_digits
13317
13318ECHO_C= ECHO_N= ECHO_T=
13319case `echo -n x` in #(((((
13320-n*)
13321  case `echo 'xy\c'` in
13322  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13323  xy)  ECHO_C='\c';;
13324  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13325       ECHO_T='	';;
13326  esac;;
13327*)
13328  ECHO_N='-n';;
13329esac
13330
13331rm -f conf$$ conf$$.exe conf$$.file
13332if test -d conf$$.dir; then
13333  rm -f conf$$.dir/conf$$.file
13334else
13335  rm -f conf$$.dir
13336  mkdir conf$$.dir 2>/dev/null
13337fi
13338if (echo >conf$$.file) 2>/dev/null; then
13339  if ln -s conf$$.file conf$$ 2>/dev/null; then
13340    as_ln_s='ln -s'
13341    # ... but there are two gotchas:
13342    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13343    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13344    # In both cases, we have to default to `cp -p'.
13345    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13346      as_ln_s='cp -p'
13347  elif ln conf$$.file conf$$ 2>/dev/null; then
13348    as_ln_s=ln
13349  else
13350    as_ln_s='cp -p'
13351  fi
13352else
13353  as_ln_s='cp -p'
13354fi
13355rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13356rmdir conf$$.dir 2>/dev/null
13357
13358
13359# as_fn_mkdir_p
13360# -------------
13361# Create "$as_dir" as a directory, including parents if necessary.
13362as_fn_mkdir_p ()
13363{
13364
13365  case $as_dir in #(
13366  -*) as_dir=./$as_dir;;
13367  esac
13368  test -d "$as_dir" || eval $as_mkdir_p || {
13369    as_dirs=
13370    while :; do
13371      case $as_dir in #(
13372      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13373      *) as_qdir=$as_dir;;
13374      esac
13375      as_dirs="'$as_qdir' $as_dirs"
13376      as_dir=`$as_dirname -- "$as_dir" ||
13377$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13378	 X"$as_dir" : 'X\(//\)[^/]' \| \
13379	 X"$as_dir" : 'X\(//\)$' \| \
13380	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13381$as_echo X"$as_dir" |
13382    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13383	    s//\1/
13384	    q
13385	  }
13386	  /^X\(\/\/\)[^/].*/{
13387	    s//\1/
13388	    q
13389	  }
13390	  /^X\(\/\/\)$/{
13391	    s//\1/
13392	    q
13393	  }
13394	  /^X\(\/\).*/{
13395	    s//\1/
13396	    q
13397	  }
13398	  s/.*/./; q'`
13399      test -d "$as_dir" && break
13400    done
13401    test -z "$as_dirs" || eval "mkdir $as_dirs"
13402  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13403
13404
13405} # as_fn_mkdir_p
13406if mkdir -p . 2>/dev/null; then
13407  as_mkdir_p='mkdir -p "$as_dir"'
13408else
13409  test -d ./-p && rmdir ./-p
13410  as_mkdir_p=false
13411fi
13412
13413if test -x / >/dev/null 2>&1; then
13414  as_test_x='test -x'
13415else
13416  if ls -dL / >/dev/null 2>&1; then
13417    as_ls_L_option=L
13418  else
13419    as_ls_L_option=
13420  fi
13421  as_test_x='
13422    eval sh -c '\''
13423      if test -d "$1"; then
13424	test -d "$1/.";
13425      else
13426	case $1 in #(
13427	-*)set "./$1";;
13428	esac;
13429	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13430	???[sx]*):;;*)false;;esac;fi
13431    '\'' sh
13432  '
13433fi
13434as_executable_p=$as_test_x
13435
13436# Sed expression to map a string onto a valid CPP name.
13437as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13438
13439# Sed expression to map a string onto a valid variable name.
13440as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13441
13442
13443exec 6>&1
13444## ----------------------------------- ##
13445## Main body of $CONFIG_STATUS script. ##
13446## ----------------------------------- ##
13447_ASEOF
13448test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13449
13450cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13451# Save the log message, to keep $0 and so on meaningful, and to
13452# report actual input values of CONFIG_FILES etc. instead of their
13453# values after options handling.
13454ac_log="
13455This file was extended by EXIF library $as_me 0.6.19, which was
13456generated by GNU Autoconf 2.64.  Invocation command line was
13457
13458  CONFIG_FILES    = $CONFIG_FILES
13459  CONFIG_HEADERS  = $CONFIG_HEADERS
13460  CONFIG_LINKS    = $CONFIG_LINKS
13461  CONFIG_COMMANDS = $CONFIG_COMMANDS
13462  $ $0 $@
13463
13464on `(hostname || uname -n) 2>/dev/null | sed 1q`
13465"
13466
13467_ACEOF
13468
13469case $ac_config_files in *"
13470"*) set x $ac_config_files; shift; ac_config_files=$*;;
13471esac
13472
13473case $ac_config_headers in *"
13474"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13475esac
13476
13477
13478cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13479# Files that config.status was made for.
13480config_files="`echo $ac_config_files`"
13481config_headers="`echo $ac_config_headers`"
13482config_commands="`echo $ac_config_commands`"
13483
13484_ACEOF
13485
13486cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13487ac_cs_usage="\
13488\`$as_me' instantiates files and other configuration actions
13489from templates according to the current configuration.  Unless the files
13490and actions are specified as TAGs, all are instantiated by default.
13491
13492Usage: $0 [OPTION]... [TAG]...
13493
13494  -h, --help       print this help, then exit
13495  -V, --version    print version number and configuration settings, then exit
13496  -q, --quiet, --silent
13497                   do not print progress messages
13498  -d, --debug      don't remove temporary files
13499      --recheck    update $as_me by reconfiguring in the same conditions
13500      --file=FILE[:TEMPLATE]
13501                   instantiate the configuration file FILE
13502      --header=FILE[:TEMPLATE]
13503                   instantiate the configuration header FILE
13504
13505Configuration files:
13506$config_files
13507
13508Configuration headers:
13509$config_headers
13510
13511Configuration commands:
13512$config_commands
13513
13514Report bugs to <libexif-devel@lists.sourceforge.net>."
13515
13516_ACEOF
13517cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13518ac_cs_version="\\
13519EXIF library config.status 0.6.19
13520configured by $0, generated by GNU Autoconf 2.64,
13521  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13522
13523Copyright (C) 2009 Free Software Foundation, Inc.
13524This config.status script is free software; the Free Software Foundation
13525gives unlimited permission to copy, distribute and modify it."
13526
13527ac_pwd='$ac_pwd'
13528srcdir='$srcdir'
13529INSTALL='$INSTALL'
13530MKDIR_P='$MKDIR_P'
13531AWK='$AWK'
13532test -n "\$AWK" || AWK=awk
13533_ACEOF
13534
13535cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13536# The default lists apply if the user does not specify any file.
13537ac_need_defaults=:
13538while test $# != 0
13539do
13540  case $1 in
13541  --*=*)
13542    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13543    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13544    ac_shift=:
13545    ;;
13546  *)
13547    ac_option=$1
13548    ac_optarg=$2
13549    ac_shift=shift
13550    ;;
13551  esac
13552
13553  case $ac_option in
13554  # Handling of the options.
13555  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13556    ac_cs_recheck=: ;;
13557  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13558    $as_echo "$ac_cs_version"; exit ;;
13559  --debug | --debu | --deb | --de | --d | -d )
13560    debug=: ;;
13561  --file | --fil | --fi | --f )
13562    $ac_shift
13563    case $ac_optarg in
13564    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13565    esac
13566    as_fn_append CONFIG_FILES " '$ac_optarg'"
13567    ac_need_defaults=false;;
13568  --header | --heade | --head | --hea )
13569    $ac_shift
13570    case $ac_optarg in
13571    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13572    esac
13573    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13574    ac_need_defaults=false;;
13575  --he | --h)
13576    # Conflict between --help and --header
13577    as_fn_error "ambiguous option: \`$1'
13578Try \`$0 --help' for more information.";;
13579  --help | --hel | -h )
13580    $as_echo "$ac_cs_usage"; exit ;;
13581  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13582  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13583    ac_cs_silent=: ;;
13584
13585  # This is an error.
13586  -*) as_fn_error "unrecognized option: \`$1'
13587Try \`$0 --help' for more information." ;;
13588
13589  *) as_fn_append ac_config_targets " $1"
13590     ac_need_defaults=false ;;
13591
13592  esac
13593  shift
13594done
13595
13596ac_configure_extra_args=
13597
13598if $ac_cs_silent; then
13599  exec 6>/dev/null
13600  ac_configure_extra_args="$ac_configure_extra_args --silent"
13601fi
13602
13603_ACEOF
13604cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13605if \$ac_cs_recheck; then
13606  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13607  shift
13608  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13609  CONFIG_SHELL='$SHELL'
13610  export CONFIG_SHELL
13611  exec "\$@"
13612fi
13613
13614_ACEOF
13615cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13616exec 5>>config.log
13617{
13618  echo
13619  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13620## Running $as_me. ##
13621_ASBOX
13622  $as_echo "$ac_log"
13623} >&5
13624
13625_ACEOF
13626cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13627#
13628# INIT-COMMANDS
13629#
13630AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13631
13632
13633# The HP-UX ksh and POSIX shell print the target directory to stdout
13634# if CDPATH is set.
13635(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13636
13637sed_quote_subst='$sed_quote_subst'
13638double_quote_subst='$double_quote_subst'
13639delay_variable_subst='$delay_variable_subst'
13640macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13641macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13642enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13643enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13644pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13645enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13646host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13647host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13648host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13649build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13650build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13651build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13652SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13653Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13654GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13655EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13656FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13657LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13658NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13659LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13660max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13661ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13662exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13663lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13664lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13665lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13666reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13667reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13668OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13669deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13670file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13671AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13672AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13673STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13674RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13675old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13676old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13677old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13678CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13679CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13680compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13681GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13682lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13683lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13684lt_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"`'
13685lt_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"`'
13686objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13687SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13688ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13689MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13690lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13691lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13692lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13693lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13694lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13695need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13696DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13697NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13698LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13699OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13700OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13701libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13702shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13703extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13704archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13705enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13706export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13707whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13708compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13709old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13710old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13711archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13712archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13713module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13714module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13715with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13716allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13717no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13718hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13719hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13720hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13721hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13722hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13723hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13724hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13725hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13726inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13727link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13728fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13729always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13730export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13731exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13732include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13733prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13734file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13735variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13736need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13737need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13738version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13739runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13740shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13741shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13742libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13743library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13744soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13745postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13746postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13747finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13748finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13749hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13750sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13751sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13752hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13753enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13754enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13755enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13756old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13757striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13758
13759LTCC='$LTCC'
13760LTCFLAGS='$LTCFLAGS'
13761compiler='$compiler_DEFAULT'
13762
13763# Quote evaled strings.
13764for var in SED \
13765GREP \
13766EGREP \
13767FGREP \
13768LD \
13769NM \
13770LN_S \
13771lt_SP2NL \
13772lt_NL2SP \
13773reload_flag \
13774OBJDUMP \
13775deplibs_check_method \
13776file_magic_cmd \
13777AR \
13778AR_FLAGS \
13779STRIP \
13780RANLIB \
13781CC \
13782CFLAGS \
13783compiler \
13784lt_cv_sys_global_symbol_pipe \
13785lt_cv_sys_global_symbol_to_cdecl \
13786lt_cv_sys_global_symbol_to_c_name_address \
13787lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13788SHELL \
13789ECHO \
13790lt_prog_compiler_no_builtin_flag \
13791lt_prog_compiler_wl \
13792lt_prog_compiler_pic \
13793lt_prog_compiler_static \
13794lt_cv_prog_compiler_c_o \
13795need_locks \
13796DSYMUTIL \
13797NMEDIT \
13798LIPO \
13799OTOOL \
13800OTOOL64 \
13801shrext_cmds \
13802export_dynamic_flag_spec \
13803whole_archive_flag_spec \
13804compiler_needs_object \
13805with_gnu_ld \
13806allow_undefined_flag \
13807no_undefined_flag \
13808hardcode_libdir_flag_spec \
13809hardcode_libdir_flag_spec_ld \
13810hardcode_libdir_separator \
13811fix_srcfile_path \
13812exclude_expsyms \
13813include_expsyms \
13814file_list_spec \
13815variables_saved_for_relink \
13816libname_spec \
13817library_names_spec \
13818soname_spec \
13819finish_eval \
13820old_striplib \
13821striplib; do
13822    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13823    *[\\\\\\\`\\"\\\$]*)
13824      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13825      ;;
13826    *)
13827      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13828      ;;
13829    esac
13830done
13831
13832# Double-quote double-evaled strings.
13833for var in reload_cmds \
13834old_postinstall_cmds \
13835old_postuninstall_cmds \
13836old_archive_cmds \
13837extract_expsyms_cmds \
13838old_archive_from_new_cmds \
13839old_archive_from_expsyms_cmds \
13840archive_cmds \
13841archive_expsym_cmds \
13842module_cmds \
13843module_expsym_cmds \
13844export_symbols_cmds \
13845prelink_cmds \
13846postinstall_cmds \
13847postuninstall_cmds \
13848finish_cmds \
13849sys_lib_search_path_spec \
13850sys_lib_dlsearch_path_spec; do
13851    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13852    *[\\\\\\\`\\"\\\$]*)
13853      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13854      ;;
13855    *)
13856      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13857      ;;
13858    esac
13859done
13860
13861# Fix-up fallback echo if it was mangled by the above quoting rules.
13862case \$lt_ECHO in
13863*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13864  ;;
13865esac
13866
13867ac_aux_dir='$ac_aux_dir'
13868xsi_shell='$xsi_shell'
13869lt_shell_append='$lt_shell_append'
13870
13871# See if we are running on zsh, and set the options which allow our
13872# commands through without removal of \ escapes INIT.
13873if test -n "\${ZSH_VERSION+set}" ; then
13874   setopt NO_GLOB_SUBST
13875fi
13876
13877
13878    PACKAGE='$PACKAGE'
13879    VERSION='$VERSION'
13880    TIMESTAMP='$TIMESTAMP'
13881    RM='$RM'
13882    ofile='$ofile'
13883
13884
13885
13886# Capture the value of obsolete ALL_LINGUAS because we need it to compute
13887    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
13888    # from automake.
13889    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13890    # Capture the value of LINGUAS because we need it to compute CATALOGS.
13891    LINGUAS="${LINGUAS-%UNSET%}"
13892
13893
13894_ACEOF
13895
13896cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13897
13898# Handling of arguments.
13899for ac_config_target in $ac_config_targets
13900do
13901  case $ac_config_target in
13902    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13903    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13904    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13905    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13906    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
13907    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13908    "libexif.spec") CONFIG_FILES="$CONFIG_FILES libexif.spec" ;;
13909    "libexif/Makefile") CONFIG_FILES="$CONFIG_FILES libexif/Makefile" ;;
13910    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
13911    "test/nls/Makefile") CONFIG_FILES="$CONFIG_FILES test/nls/Makefile" ;;
13912    "m4m/Makefile") CONFIG_FILES="$CONFIG_FILES m4m/Makefile" ;;
13913    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13914    "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
13915    "doc/Doxyfile-internals") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile-internals" ;;
13916    "libexif.pc") CONFIG_FILES="$CONFIG_FILES libexif.pc" ;;
13917    "libexif-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES libexif-uninstalled.pc" ;;
13918    "binary/Makefile") CONFIG_FILES="$CONFIG_FILES binary/Makefile" ;;
13919    "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
13920    "contrib/examples/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/examples/Makefile" ;;
13921
13922  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13923  esac
13924done
13925
13926
13927# If the user did not use the arguments to specify the items to instantiate,
13928# then the envvar interface is used.  Set only those that are not.
13929# We use the long form for the default assignment because of an extremely
13930# bizarre bug on SunOS 4.1.3.
13931if $ac_need_defaults; then
13932  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13933  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13934  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13935fi
13936
13937# Have a temporary directory for convenience.  Make it in the build tree
13938# simply because there is no reason against having it here, and in addition,
13939# creating and moving files from /tmp can sometimes cause problems.
13940# Hook for its removal unless debugging.
13941# Note that there is a small window in which the directory will not be cleaned:
13942# after its creation but before its name has been assigned to `$tmp'.
13943$debug ||
13944{
13945  tmp=
13946  trap 'exit_status=$?
13947  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13948' 0
13949  trap 'as_fn_exit 1' 1 2 13 15
13950}
13951# Create a (secure) tmp directory for tmp files.
13952
13953{
13954  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13955  test -n "$tmp" && test -d "$tmp"
13956}  ||
13957{
13958  tmp=./conf$$-$RANDOM
13959  (umask 077 && mkdir "$tmp")
13960} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13961
13962# Set up the scripts for CONFIG_FILES section.
13963# No need to generate them if there are no CONFIG_FILES.
13964# This happens for instance with `./config.status config.h'.
13965if test -n "$CONFIG_FILES"; then
13966
13967
13968ac_cr=`echo X | tr X '\015'`
13969# On cygwin, bash can eat \r inside `` if the user requested igncr.
13970# But we know of no other shell where ac_cr would be empty at this
13971# point, so we can use a bashism as a fallback.
13972if test "x$ac_cr" = x; then
13973  eval ac_cr=\$\'\\r\'
13974fi
13975ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13976if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13977  ac_cs_awk_cr='\r'
13978else
13979  ac_cs_awk_cr=$ac_cr
13980fi
13981
13982echo 'BEGIN {' >"$tmp/subs1.awk" &&
13983_ACEOF
13984
13985
13986{
13987  echo "cat >conf$$subs.awk <<_ACEOF" &&
13988  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13989  echo "_ACEOF"
13990} >conf$$subs.sh ||
13991  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13992ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13993ac_delim='%!_!# '
13994for ac_last_try in false false false false false :; do
13995  . ./conf$$subs.sh ||
13996    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13997
13998  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13999  if test $ac_delim_n = $ac_delim_num; then
14000    break
14001  elif $ac_last_try; then
14002    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14003  else
14004    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14005  fi
14006done
14007rm -f conf$$subs.sh
14008
14009cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14010cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14011_ACEOF
14012sed -n '
14013h
14014s/^/S["/; s/!.*/"]=/
14015p
14016g
14017s/^[^!]*!//
14018:repl
14019t repl
14020s/'"$ac_delim"'$//
14021t delim
14022:nl
14023h
14024s/\(.\{148\}\).*/\1/
14025t more1
14026s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14027p
14028n
14029b repl
14030:more1
14031s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14032p
14033g
14034s/.\{148\}//
14035t nl
14036:delim
14037h
14038s/\(.\{148\}\).*/\1/
14039t more2
14040s/["\\]/\\&/g; s/^/"/; s/$/"/
14041p
14042b
14043:more2
14044s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14045p
14046g
14047s/.\{148\}//
14048t delim
14049' <conf$$subs.awk | sed '
14050/^[^""]/{
14051  N
14052  s/\n//
14053}
14054' >>$CONFIG_STATUS || ac_write_fail=1
14055rm -f conf$$subs.awk
14056cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14057_ACAWK
14058cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14059  for (key in S) S_is_set[key] = 1
14060  FS = ""
14061
14062}
14063{
14064  line = $ 0
14065  nfields = split(line, field, "@")
14066  substed = 0
14067  len = length(field[1])
14068  for (i = 2; i < nfields; i++) {
14069    key = field[i]
14070    keylen = length(key)
14071    if (S_is_set[key]) {
14072      value = S[key]
14073      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14074      len += length(value) + length(field[++i])
14075      substed = 1
14076    } else
14077      len += 1 + keylen
14078  }
14079
14080  print line
14081}
14082
14083_ACAWK
14084_ACEOF
14085cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14086if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14087  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14088else
14089  cat
14090fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14091  || as_fn_error "could not setup config files machinery" "$LINENO" 5
14092_ACEOF
14093
14094# VPATH may cause trouble with some makes, so we remove $(srcdir),
14095# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14096# trailing colons and then remove the whole line if VPATH becomes empty
14097# (actually we leave an empty line to preserve line numbers).
14098if test "x$srcdir" = x.; then
14099  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
14100s/:*\$(srcdir):*/:/
14101s/:*\${srcdir}:*/:/
14102s/:*@srcdir@:*/:/
14103s/^\([^=]*=[	 ]*\):*/\1/
14104s/:*$//
14105s/^[^=]*=[	 ]*$//
14106}'
14107fi
14108
14109cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14110fi # test -n "$CONFIG_FILES"
14111
14112# Set up the scripts for CONFIG_HEADERS section.
14113# No need to generate them if there are no CONFIG_HEADERS.
14114# This happens for instance with `./config.status Makefile'.
14115if test -n "$CONFIG_HEADERS"; then
14116cat >"$tmp/defines.awk" <<\_ACAWK ||
14117BEGIN {
14118_ACEOF
14119
14120# Transform confdefs.h into an awk script `defines.awk', embedded as
14121# here-document in config.status, that substitutes the proper values into
14122# config.h.in to produce config.h.
14123
14124# Create a delimiter string that does not exist in confdefs.h, to ease
14125# handling of long lines.
14126ac_delim='%!_!# '
14127for ac_last_try in false false :; do
14128  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14129  if test -z "$ac_t"; then
14130    break
14131  elif $ac_last_try; then
14132    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14133  else
14134    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14135  fi
14136done
14137
14138# For the awk script, D is an array of macro values keyed by name,
14139# likewise P contains macro parameters if any.  Preserve backslash
14140# newline sequences.
14141
14142ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14143sed -n '
14144s/.\{148\}/&'"$ac_delim"'/g
14145t rset
14146:rset
14147s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14148t def
14149d
14150:def
14151s/\\$//
14152t bsnl
14153s/["\\]/\\&/g
14154s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14155D["\1"]=" \3"/p
14156s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14157d
14158:bsnl
14159s/["\\]/\\&/g
14160s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14161D["\1"]=" \3\\\\\\n"\\/p
14162t cont
14163s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14164t cont
14165d
14166:cont
14167n
14168s/.\{148\}/&'"$ac_delim"'/g
14169t clear
14170:clear
14171s/\\$//
14172t bsnlc
14173s/["\\]/\\&/g; s/^/"/; s/$/"/p
14174d
14175:bsnlc
14176s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14177b cont
14178' <confdefs.h | sed '
14179s/'"$ac_delim"'/"\\\
14180"/g' >>$CONFIG_STATUS || ac_write_fail=1
14181
14182cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14183  for (key in D) D_is_set[key] = 1
14184  FS = ""
14185}
14186/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14187  line = \$ 0
14188  split(line, arg, " ")
14189  if (arg[1] == "#") {
14190    defundef = arg[2]
14191    mac1 = arg[3]
14192  } else {
14193    defundef = substr(arg[1], 2)
14194    mac1 = arg[2]
14195  }
14196  split(mac1, mac2, "(") #)
14197  macro = mac2[1]
14198  prefix = substr(line, 1, index(line, defundef) - 1)
14199  if (D_is_set[macro]) {
14200    # Preserve the white space surrounding the "#".
14201    print prefix "define", macro P[macro] D[macro]
14202    next
14203  } else {
14204    # Replace #undef with comments.  This is necessary, for example,
14205    # in the case of _POSIX_SOURCE, which is predefined and required
14206    # on some systems where configure will not decide to define it.
14207    if (defundef == "undef") {
14208      print "/*", prefix defundef, macro, "*/"
14209      next
14210    }
14211  }
14212}
14213{ print }
14214_ACAWK
14215_ACEOF
14216cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14217  as_fn_error "could not setup config headers machinery" "$LINENO" 5
14218fi # test -n "$CONFIG_HEADERS"
14219
14220
14221eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14222shift
14223for ac_tag
14224do
14225  case $ac_tag in
14226  :[FHLC]) ac_mode=$ac_tag; continue;;
14227  esac
14228  case $ac_mode$ac_tag in
14229  :[FHL]*:*);;
14230  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14231  :[FH]-) ac_tag=-:-;;
14232  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14233  esac
14234  ac_save_IFS=$IFS
14235  IFS=:
14236  set x $ac_tag
14237  IFS=$ac_save_IFS
14238  shift
14239  ac_file=$1
14240  shift
14241
14242  case $ac_mode in
14243  :L) ac_source=$1;;
14244  :[FH])
14245    ac_file_inputs=
14246    for ac_f
14247    do
14248      case $ac_f in
14249      -) ac_f="$tmp/stdin";;
14250      *) # Look for the file first in the build tree, then in the source tree
14251	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14252	 # because $ac_f cannot contain `:'.
14253	 test -f "$ac_f" ||
14254	   case $ac_f in
14255	   [\\/$]*) false;;
14256	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14257	   esac ||
14258	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14259      esac
14260      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14261      as_fn_append ac_file_inputs " '$ac_f'"
14262    done
14263
14264    # Let's still pretend it is `configure' which instantiates (i.e., don't
14265    # use $as_me), people would be surprised to read:
14266    #    /* config.h.  Generated by config.status.  */
14267    configure_input='Generated from '`
14268	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14269	`' by configure.'
14270    if test x"$ac_file" != x-; then
14271      configure_input="$ac_file.  $configure_input"
14272      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14273$as_echo "$as_me: creating $ac_file" >&6;}
14274    fi
14275    # Neutralize special characters interpreted by sed in replacement strings.
14276    case $configure_input in #(
14277    *\&* | *\|* | *\\* )
14278       ac_sed_conf_input=`$as_echo "$configure_input" |
14279       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14280    *) ac_sed_conf_input=$configure_input;;
14281    esac
14282
14283    case $ac_tag in
14284    *:-:* | *:-) cat >"$tmp/stdin" \
14285      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14286    esac
14287    ;;
14288  esac
14289
14290  ac_dir=`$as_dirname -- "$ac_file" ||
14291$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14292	 X"$ac_file" : 'X\(//\)[^/]' \| \
14293	 X"$ac_file" : 'X\(//\)$' \| \
14294	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14295$as_echo X"$ac_file" |
14296    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14297	    s//\1/
14298	    q
14299	  }
14300	  /^X\(\/\/\)[^/].*/{
14301	    s//\1/
14302	    q
14303	  }
14304	  /^X\(\/\/\)$/{
14305	    s//\1/
14306	    q
14307	  }
14308	  /^X\(\/\).*/{
14309	    s//\1/
14310	    q
14311	  }
14312	  s/.*/./; q'`
14313  as_dir="$ac_dir"; as_fn_mkdir_p
14314  ac_builddir=.
14315
14316case "$ac_dir" in
14317.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14318*)
14319  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14320  # A ".." for each directory in $ac_dir_suffix.
14321  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14322  case $ac_top_builddir_sub in
14323  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14324  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14325  esac ;;
14326esac
14327ac_abs_top_builddir=$ac_pwd
14328ac_abs_builddir=$ac_pwd$ac_dir_suffix
14329# for backward compatibility:
14330ac_top_builddir=$ac_top_build_prefix
14331
14332case $srcdir in
14333  .)  # We are building in place.
14334    ac_srcdir=.
14335    ac_top_srcdir=$ac_top_builddir_sub
14336    ac_abs_top_srcdir=$ac_pwd ;;
14337  [\\/]* | ?:[\\/]* )  # Absolute name.
14338    ac_srcdir=$srcdir$ac_dir_suffix;
14339    ac_top_srcdir=$srcdir
14340    ac_abs_top_srcdir=$srcdir ;;
14341  *) # Relative name.
14342    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14343    ac_top_srcdir=$ac_top_build_prefix$srcdir
14344    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14345esac
14346ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14347
14348
14349  case $ac_mode in
14350  :F)
14351  #
14352  # CONFIG_FILE
14353  #
14354
14355  case $INSTALL in
14356  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14357  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14358  esac
14359  ac_MKDIR_P=$MKDIR_P
14360  case $MKDIR_P in
14361  [\\/$]* | ?:[\\/]* ) ;;
14362  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14363  esac
14364_ACEOF
14365
14366cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14367# If the template does not know about datarootdir, expand it.
14368# FIXME: This hack should be removed a few years after 2.60.
14369ac_datarootdir_hack=; ac_datarootdir_seen=
14370ac_sed_dataroot='
14371/datarootdir/ {
14372  p
14373  q
14374}
14375/@datadir@/p
14376/@docdir@/p
14377/@infodir@/p
14378/@localedir@/p
14379/@mandir@/p'
14380case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14381*datarootdir*) ac_datarootdir_seen=yes;;
14382*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14383  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14384$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14385_ACEOF
14386cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14387  ac_datarootdir_hack='
14388  s&@datadir@&$datadir&g
14389  s&@docdir@&$docdir&g
14390  s&@infodir@&$infodir&g
14391  s&@localedir@&$localedir&g
14392  s&@mandir@&$mandir&g
14393  s&\\\${datarootdir}&$datarootdir&g' ;;
14394esac
14395_ACEOF
14396
14397# Neutralize VPATH when `$srcdir' = `.'.
14398# Shell code in configure.ac might set extrasub.
14399# FIXME: do we really want to maintain this feature?
14400cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14401ac_sed_extra="$ac_vpsub
14402$extrasub
14403_ACEOF
14404cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14405:t
14406/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14407s|@configure_input@|$ac_sed_conf_input|;t t
14408s&@top_builddir@&$ac_top_builddir_sub&;t t
14409s&@top_build_prefix@&$ac_top_build_prefix&;t t
14410s&@srcdir@&$ac_srcdir&;t t
14411s&@abs_srcdir@&$ac_abs_srcdir&;t t
14412s&@top_srcdir@&$ac_top_srcdir&;t t
14413s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14414s&@builddir@&$ac_builddir&;t t
14415s&@abs_builddir@&$ac_abs_builddir&;t t
14416s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14417s&@INSTALL@&$ac_INSTALL&;t t
14418s&@MKDIR_P@&$ac_MKDIR_P&;t t
14419$ac_datarootdir_hack
14420"
14421eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14422  || as_fn_error "could not create $ac_file" "$LINENO" 5
14423
14424test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14425  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14426  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14427  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14428which seems to be undefined.  Please make sure it is defined." >&5
14429$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14430which seems to be undefined.  Please make sure it is defined." >&2;}
14431
14432  rm -f "$tmp/stdin"
14433  case $ac_file in
14434  -) cat "$tmp/out" && rm -f "$tmp/out";;
14435  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14436  esac \
14437  || as_fn_error "could not create $ac_file" "$LINENO" 5
14438 ;;
14439  :H)
14440  #
14441  # CONFIG_HEADER
14442  #
14443  if test x"$ac_file" != x-; then
14444    {
14445      $as_echo "/* $configure_input  */" \
14446      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14447    } >"$tmp/config.h" \
14448      || as_fn_error "could not create $ac_file" "$LINENO" 5
14449    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14450      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14451$as_echo "$as_me: $ac_file is unchanged" >&6;}
14452    else
14453      rm -f "$ac_file"
14454      mv "$tmp/config.h" "$ac_file" \
14455	|| as_fn_error "could not create $ac_file" "$LINENO" 5
14456    fi
14457  else
14458    $as_echo "/* $configure_input  */" \
14459      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14460      || as_fn_error "could not create -" "$LINENO" 5
14461  fi
14462# Compute "$ac_file"'s index in $config_headers.
14463_am_arg="$ac_file"
14464_am_stamp_count=1
14465for _am_header in $config_headers :; do
14466  case $_am_header in
14467    $_am_arg | $_am_arg:* )
14468      break ;;
14469    * )
14470      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14471  esac
14472done
14473echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14474$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14475	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14476	 X"$_am_arg" : 'X\(//\)$' \| \
14477	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14478$as_echo X"$_am_arg" |
14479    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14480	    s//\1/
14481	    q
14482	  }
14483	  /^X\(\/\/\)[^/].*/{
14484	    s//\1/
14485	    q
14486	  }
14487	  /^X\(\/\/\)$/{
14488	    s//\1/
14489	    q
14490	  }
14491	  /^X\(\/\).*/{
14492	    s//\1/
14493	    q
14494	  }
14495	  s/.*/./; q'`/stamp-h$_am_stamp_count
14496 ;;
14497
14498  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14499$as_echo "$as_me: executing $ac_file commands" >&6;}
14500 ;;
14501  esac
14502
14503
14504  case $ac_file$ac_mode in
14505    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14506  # Autoconf 2.62 quotes --file arguments for eval, but not when files
14507  # are listed without --file.  Let's play safe and only enable the eval
14508  # if we detect the quoting.
14509  case $CONFIG_FILES in
14510  *\'*) eval set x "$CONFIG_FILES" ;;
14511  *)   set x $CONFIG_FILES ;;
14512  esac
14513  shift
14514  for mf
14515  do
14516    # Strip MF so we end up with the name of the file.
14517    mf=`echo "$mf" | sed -e 's/:.*$//'`
14518    # Check whether this is an Automake generated Makefile or not.
14519    # We used to match only the files named `Makefile.in', but
14520    # some people rename them; so instead we look at the file content.
14521    # Grep'ing the first line is not enough: some people post-process
14522    # each Makefile.in and add a new line on top of each file to say so.
14523    # Grep'ing the whole file is not good either: AIX grep has a line
14524    # limit of 2048, but all sed's we know have understand at least 4000.
14525    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14526      dirpart=`$as_dirname -- "$mf" ||
14527$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14528	 X"$mf" : 'X\(//\)[^/]' \| \
14529	 X"$mf" : 'X\(//\)$' \| \
14530	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14531$as_echo X"$mf" |
14532    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14533	    s//\1/
14534	    q
14535	  }
14536	  /^X\(\/\/\)[^/].*/{
14537	    s//\1/
14538	    q
14539	  }
14540	  /^X\(\/\/\)$/{
14541	    s//\1/
14542	    q
14543	  }
14544	  /^X\(\/\).*/{
14545	    s//\1/
14546	    q
14547	  }
14548	  s/.*/./; q'`
14549    else
14550      continue
14551    fi
14552    # Extract the definition of DEPDIR, am__include, and am__quote
14553    # from the Makefile without running `make'.
14554    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14555    test -z "$DEPDIR" && continue
14556    am__include=`sed -n 's/^am__include = //p' < "$mf"`
14557    test -z "am__include" && continue
14558    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14559    # When using ansi2knr, U may be empty or an underscore; expand it
14560    U=`sed -n 's/^U = //p' < "$mf"`
14561    # Find all dependency output files, they are included files with
14562    # $(DEPDIR) in their names.  We invoke sed twice because it is the
14563    # simplest approach to changing $(DEPDIR) to its actual value in the
14564    # expansion.
14565    for file in `sed -n "
14566      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14567	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14568      # Make sure the directory exists.
14569      test -f "$dirpart/$file" && continue
14570      fdir=`$as_dirname -- "$file" ||
14571$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14572	 X"$file" : 'X\(//\)[^/]' \| \
14573	 X"$file" : 'X\(//\)$' \| \
14574	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14575$as_echo X"$file" |
14576    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14577	    s//\1/
14578	    q
14579	  }
14580	  /^X\(\/\/\)[^/].*/{
14581	    s//\1/
14582	    q
14583	  }
14584	  /^X\(\/\/\)$/{
14585	    s//\1/
14586	    q
14587	  }
14588	  /^X\(\/\).*/{
14589	    s//\1/
14590	    q
14591	  }
14592	  s/.*/./; q'`
14593      as_dir=$dirpart/$fdir; as_fn_mkdir_p
14594      # echo "creating $dirpart/$file"
14595      echo '# dummy' > "$dirpart/$file"
14596    done
14597  done
14598}
14599 ;;
14600    "libtool":C)
14601
14602    # See if we are running on zsh, and set the options which allow our
14603    # commands through without removal of \ escapes.
14604    if test -n "${ZSH_VERSION+set}" ; then
14605      setopt NO_GLOB_SUBST
14606    fi
14607
14608    cfgfile="${ofile}T"
14609    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14610    $RM "$cfgfile"
14611
14612    cat <<_LT_EOF >> "$cfgfile"
14613#! $SHELL
14614
14615# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14616# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14617# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14618# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14619#
14620#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14621#                 2006, 2007, 2008 Free Software Foundation, Inc.
14622#   Written by Gordon Matzigkeit, 1996
14623#
14624#   This file is part of GNU Libtool.
14625#
14626# GNU Libtool is free software; you can redistribute it and/or
14627# modify it under the terms of the GNU General Public License as
14628# published by the Free Software Foundation; either version 2 of
14629# the License, or (at your option) any later version.
14630#
14631# As a special exception to the GNU General Public License,
14632# if you distribute this file as part of a program or library that
14633# is built using GNU Libtool, you may include this file under the
14634# same distribution terms that you use for the rest of that program.
14635#
14636# GNU Libtool is distributed in the hope that it will be useful,
14637# but WITHOUT ANY WARRANTY; without even the implied warranty of
14638# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14639# GNU General Public License for more details.
14640#
14641# You should have received a copy of the GNU General Public License
14642# along with GNU Libtool; see the file COPYING.  If not, a copy
14643# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14644# obtained by writing to the Free Software Foundation, Inc.,
14645# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14646
14647
14648# The names of the tagged configurations supported by this script.
14649available_tags=""
14650
14651# ### BEGIN LIBTOOL CONFIG
14652
14653# Which release of libtool.m4 was used?
14654macro_version=$macro_version
14655macro_revision=$macro_revision
14656
14657# Whether or not to build shared libraries.
14658build_libtool_libs=$enable_shared
14659
14660# Whether or not to build static libraries.
14661build_old_libs=$enable_static
14662
14663# What type of objects to build.
14664pic_mode=$pic_mode
14665
14666# Whether or not to optimize for fast installation.
14667fast_install=$enable_fast_install
14668
14669# The host system.
14670host_alias=$host_alias
14671host=$host
14672host_os=$host_os
14673
14674# The build system.
14675build_alias=$build_alias
14676build=$build
14677build_os=$build_os
14678
14679# A sed program that does not truncate output.
14680SED=$lt_SED
14681
14682# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14683Xsed="\$SED -e 1s/^X//"
14684
14685# A grep program that handles long lines.
14686GREP=$lt_GREP
14687
14688# An ERE matcher.
14689EGREP=$lt_EGREP
14690
14691# A literal string matcher.
14692FGREP=$lt_FGREP
14693
14694# A BSD- or MS-compatible name lister.
14695NM=$lt_NM
14696
14697# Whether we need soft or hard links.
14698LN_S=$lt_LN_S
14699
14700# What is the maximum length of a command?
14701max_cmd_len=$max_cmd_len
14702
14703# Object file suffix (normally "o").
14704objext=$ac_objext
14705
14706# Executable file suffix (normally "").
14707exeext=$exeext
14708
14709# whether the shell understands "unset".
14710lt_unset=$lt_unset
14711
14712# turn spaces into newlines.
14713SP2NL=$lt_lt_SP2NL
14714
14715# turn newlines into spaces.
14716NL2SP=$lt_lt_NL2SP
14717
14718# How to create reloadable object files.
14719reload_flag=$lt_reload_flag
14720reload_cmds=$lt_reload_cmds
14721
14722# An object symbol dumper.
14723OBJDUMP=$lt_OBJDUMP
14724
14725# Method to check whether dependent libraries are shared objects.
14726deplibs_check_method=$lt_deplibs_check_method
14727
14728# Command to use when deplibs_check_method == "file_magic".
14729file_magic_cmd=$lt_file_magic_cmd
14730
14731# The archiver.
14732AR=$lt_AR
14733AR_FLAGS=$lt_AR_FLAGS
14734
14735# A symbol stripping program.
14736STRIP=$lt_STRIP
14737
14738# Commands used to install an old-style archive.
14739RANLIB=$lt_RANLIB
14740old_postinstall_cmds=$lt_old_postinstall_cmds
14741old_postuninstall_cmds=$lt_old_postuninstall_cmds
14742
14743# A C compiler.
14744LTCC=$lt_CC
14745
14746# LTCC compiler flags.
14747LTCFLAGS=$lt_CFLAGS
14748
14749# Take the output of nm and produce a listing of raw symbols and C names.
14750global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14751
14752# Transform the output of nm in a proper C declaration.
14753global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14754
14755# Transform the output of nm in a C name address pair.
14756global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14757
14758# Transform the output of nm in a C name address pair when lib prefix is needed.
14759global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14760
14761# The name of the directory that contains temporary libtool files.
14762objdir=$objdir
14763
14764# Shell to use when invoking shell scripts.
14765SHELL=$lt_SHELL
14766
14767# An echo program that does not interpret backslashes.
14768ECHO=$lt_ECHO
14769
14770# Used to examine libraries when file_magic_cmd begins with "file".
14771MAGIC_CMD=$MAGIC_CMD
14772
14773# Must we lock files when doing compilation?
14774need_locks=$lt_need_locks
14775
14776# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14777DSYMUTIL=$lt_DSYMUTIL
14778
14779# Tool to change global to local symbols on Mac OS X.
14780NMEDIT=$lt_NMEDIT
14781
14782# Tool to manipulate fat objects and archives on Mac OS X.
14783LIPO=$lt_LIPO
14784
14785# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14786OTOOL=$lt_OTOOL
14787
14788# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14789OTOOL64=$lt_OTOOL64
14790
14791# Old archive suffix (normally "a").
14792libext=$libext
14793
14794# Shared library suffix (normally ".so").
14795shrext_cmds=$lt_shrext_cmds
14796
14797# The commands to extract the exported symbol list from a shared archive.
14798extract_expsyms_cmds=$lt_extract_expsyms_cmds
14799
14800# Variables whose values should be saved in libtool wrapper scripts and
14801# restored at link time.
14802variables_saved_for_relink=$lt_variables_saved_for_relink
14803
14804# Do we need the "lib" prefix for modules?
14805need_lib_prefix=$need_lib_prefix
14806
14807# Do we need a version for libraries?
14808need_version=$need_version
14809
14810# Library versioning type.
14811version_type=$version_type
14812
14813# Shared library runtime path variable.
14814runpath_var=$runpath_var
14815
14816# Shared library path variable.
14817shlibpath_var=$shlibpath_var
14818
14819# Is shlibpath searched before the hard-coded library search path?
14820shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14821
14822# Format of library name prefix.
14823libname_spec=$lt_libname_spec
14824
14825# List of archive names.  First name is the real one, the rest are links.
14826# The last name is the one that the linker finds with -lNAME
14827library_names_spec=$lt_library_names_spec
14828
14829# The coded name of the library, if different from the real name.
14830soname_spec=$lt_soname_spec
14831
14832# Command to use after installation of a shared archive.
14833postinstall_cmds=$lt_postinstall_cmds
14834
14835# Command to use after uninstallation of a shared archive.
14836postuninstall_cmds=$lt_postuninstall_cmds
14837
14838# Commands used to finish a libtool library installation in a directory.
14839finish_cmds=$lt_finish_cmds
14840
14841# As "finish_cmds", except a single script fragment to be evaled but
14842# not shown.
14843finish_eval=$lt_finish_eval
14844
14845# Whether we should hardcode library paths into libraries.
14846hardcode_into_libs=$hardcode_into_libs
14847
14848# Compile-time system search path for libraries.
14849sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14850
14851# Run-time system search path for libraries.
14852sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14853
14854# Whether dlopen is supported.
14855dlopen_support=$enable_dlopen
14856
14857# Whether dlopen of programs is supported.
14858dlopen_self=$enable_dlopen_self
14859
14860# Whether dlopen of statically linked programs is supported.
14861dlopen_self_static=$enable_dlopen_self_static
14862
14863# Commands to strip libraries.
14864old_striplib=$lt_old_striplib
14865striplib=$lt_striplib
14866
14867
14868# The linker used to build libraries.
14869LD=$lt_LD
14870
14871# Commands used to build an old-style archive.
14872old_archive_cmds=$lt_old_archive_cmds
14873
14874# A language specific compiler.
14875CC=$lt_compiler
14876
14877# Is the compiler the GNU compiler?
14878with_gcc=$GCC
14879
14880# Compiler flag to turn off builtin functions.
14881no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14882
14883# How to pass a linker flag through the compiler.
14884wl=$lt_lt_prog_compiler_wl
14885
14886# Additional compiler flags for building library objects.
14887pic_flag=$lt_lt_prog_compiler_pic
14888
14889# Compiler flag to prevent dynamic linking.
14890link_static_flag=$lt_lt_prog_compiler_static
14891
14892# Does compiler simultaneously support -c and -o options?
14893compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14894
14895# Whether or not to add -lc for building shared libraries.
14896build_libtool_need_lc=$archive_cmds_need_lc
14897
14898# Whether or not to disallow shared libs when runtime libs are static.
14899allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14900
14901# Compiler flag to allow reflexive dlopens.
14902export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14903
14904# Compiler flag to generate shared objects directly from archives.
14905whole_archive_flag_spec=$lt_whole_archive_flag_spec
14906
14907# Whether the compiler copes with passing no objects directly.
14908compiler_needs_object=$lt_compiler_needs_object
14909
14910# Create an old-style archive from a shared archive.
14911old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14912
14913# Create a temporary old-style archive to link instead of a shared archive.
14914old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14915
14916# Commands used to build a shared archive.
14917archive_cmds=$lt_archive_cmds
14918archive_expsym_cmds=$lt_archive_expsym_cmds
14919
14920# Commands used to build a loadable module if different from building
14921# a shared archive.
14922module_cmds=$lt_module_cmds
14923module_expsym_cmds=$lt_module_expsym_cmds
14924
14925# Whether we are building with GNU ld or not.
14926with_gnu_ld=$lt_with_gnu_ld
14927
14928# Flag that allows shared libraries with undefined symbols to be built.
14929allow_undefined_flag=$lt_allow_undefined_flag
14930
14931# Flag that enforces no undefined symbols.
14932no_undefined_flag=$lt_no_undefined_flag
14933
14934# Flag to hardcode \$libdir into a binary during linking.
14935# This must work even if \$libdir does not exist
14936hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14937
14938# If ld is used when linking, flag to hardcode \$libdir into a binary
14939# during linking.  This must work even if \$libdir does not exist.
14940hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14941
14942# Whether we need a single "-rpath" flag with a separated argument.
14943hardcode_libdir_separator=$lt_hardcode_libdir_separator
14944
14945# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14946# DIR into the resulting binary.
14947hardcode_direct=$hardcode_direct
14948
14949# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14950# DIR into the resulting binary and the resulting library dependency is
14951# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14952# library is relocated.
14953hardcode_direct_absolute=$hardcode_direct_absolute
14954
14955# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14956# into the resulting binary.
14957hardcode_minus_L=$hardcode_minus_L
14958
14959# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14960# into the resulting binary.
14961hardcode_shlibpath_var=$hardcode_shlibpath_var
14962
14963# Set to "yes" if building a shared library automatically hardcodes DIR
14964# into the library and all subsequent libraries and executables linked
14965# against it.
14966hardcode_automatic=$hardcode_automatic
14967
14968# Set to yes if linker adds runtime paths of dependent libraries
14969# to runtime path list.
14970inherit_rpath=$inherit_rpath
14971
14972# Whether libtool must link a program against all its dependency libraries.
14973link_all_deplibs=$link_all_deplibs
14974
14975# Fix the shell variable \$srcfile for the compiler.
14976fix_srcfile_path=$lt_fix_srcfile_path
14977
14978# Set to "yes" if exported symbols are required.
14979always_export_symbols=$always_export_symbols
14980
14981# The commands to list exported symbols.
14982export_symbols_cmds=$lt_export_symbols_cmds
14983
14984# Symbols that should not be listed in the preloaded symbols.
14985exclude_expsyms=$lt_exclude_expsyms
14986
14987# Symbols that must always be exported.
14988include_expsyms=$lt_include_expsyms
14989
14990# Commands necessary for linking programs (against libraries) with templates.
14991prelink_cmds=$lt_prelink_cmds
14992
14993# Specify filename containing input files.
14994file_list_spec=$lt_file_list_spec
14995
14996# How to hardcode a shared library path into an executable.
14997hardcode_action=$hardcode_action
14998
14999# ### END LIBTOOL CONFIG
15000
15001_LT_EOF
15002
15003  case $host_os in
15004  aix3*)
15005    cat <<\_LT_EOF >> "$cfgfile"
15006# AIX sometimes has problems with the GCC collect2 program.  For some
15007# reason, if we set the COLLECT_NAMES environment variable, the problems
15008# vanish in a puff of smoke.
15009if test "X${COLLECT_NAMES+set}" != Xset; then
15010  COLLECT_NAMES=
15011  export COLLECT_NAMES
15012fi
15013_LT_EOF
15014    ;;
15015  esac
15016
15017
15018ltmain="$ac_aux_dir/ltmain.sh"
15019
15020
15021  # We use sed instead of cat because bash on DJGPP gets confused if
15022  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15023  # text mode, it properly converts lines to CR/LF.  This bash problem
15024  # is reportedly fixed, but why not run on old versions too?
15025  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15026    || (rm -f "$cfgfile"; exit 1)
15027
15028  case $xsi_shell in
15029  yes)
15030    cat << \_LT_EOF >> "$cfgfile"
15031
15032# func_dirname file append nondir_replacement
15033# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15034# otherwise set result to NONDIR_REPLACEMENT.
15035func_dirname ()
15036{
15037  case ${1} in
15038    */*) func_dirname_result="${1%/*}${2}" ;;
15039    *  ) func_dirname_result="${3}" ;;
15040  esac
15041}
15042
15043# func_basename file
15044func_basename ()
15045{
15046  func_basename_result="${1##*/}"
15047}
15048
15049# func_dirname_and_basename file append nondir_replacement
15050# perform func_basename and func_dirname in a single function
15051# call:
15052#   dirname:  Compute the dirname of FILE.  If nonempty,
15053#             add APPEND to the result, otherwise set result
15054#             to NONDIR_REPLACEMENT.
15055#             value returned in "$func_dirname_result"
15056#   basename: Compute filename of FILE.
15057#             value retuned in "$func_basename_result"
15058# Implementation must be kept synchronized with func_dirname
15059# and func_basename. For efficiency, we do not delegate to
15060# those functions but instead duplicate the functionality here.
15061func_dirname_and_basename ()
15062{
15063  case ${1} in
15064    */*) func_dirname_result="${1%/*}${2}" ;;
15065    *  ) func_dirname_result="${3}" ;;
15066  esac
15067  func_basename_result="${1##*/}"
15068}
15069
15070# func_stripname prefix suffix name
15071# strip PREFIX and SUFFIX off of NAME.
15072# PREFIX and SUFFIX must not contain globbing or regex special
15073# characters, hashes, percent signs, but SUFFIX may contain a leading
15074# dot (in which case that matches only a dot).
15075func_stripname ()
15076{
15077  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15078  # positional parameters, so assign one to ordinary parameter first.
15079  func_stripname_result=${3}
15080  func_stripname_result=${func_stripname_result#"${1}"}
15081  func_stripname_result=${func_stripname_result%"${2}"}
15082}
15083
15084# func_opt_split
15085func_opt_split ()
15086{
15087  func_opt_split_opt=${1%%=*}
15088  func_opt_split_arg=${1#*=}
15089}
15090
15091# func_lo2o object
15092func_lo2o ()
15093{
15094  case ${1} in
15095    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15096    *)    func_lo2o_result=${1} ;;
15097  esac
15098}
15099
15100# func_xform libobj-or-source
15101func_xform ()
15102{
15103  func_xform_result=${1%.*}.lo
15104}
15105
15106# func_arith arithmetic-term...
15107func_arith ()
15108{
15109  func_arith_result=$(( $* ))
15110}
15111
15112# func_len string
15113# STRING may not start with a hyphen.
15114func_len ()
15115{
15116  func_len_result=${#1}
15117}
15118
15119_LT_EOF
15120    ;;
15121  *) # Bourne compatible functions.
15122    cat << \_LT_EOF >> "$cfgfile"
15123
15124# func_dirname file append nondir_replacement
15125# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15126# otherwise set result to NONDIR_REPLACEMENT.
15127func_dirname ()
15128{
15129  # Extract subdirectory from the argument.
15130  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15131  if test "X$func_dirname_result" = "X${1}"; then
15132    func_dirname_result="${3}"
15133  else
15134    func_dirname_result="$func_dirname_result${2}"
15135  fi
15136}
15137
15138# func_basename file
15139func_basename ()
15140{
15141  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15142}
15143
15144
15145# func_stripname prefix suffix name
15146# strip PREFIX and SUFFIX off of NAME.
15147# PREFIX and SUFFIX must not contain globbing or regex special
15148# characters, hashes, percent signs, but SUFFIX may contain a leading
15149# dot (in which case that matches only a dot).
15150# func_strip_suffix prefix name
15151func_stripname ()
15152{
15153  case ${2} in
15154    .*) func_stripname_result=`$ECHO "X${3}" \
15155           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15156    *)  func_stripname_result=`$ECHO "X${3}" \
15157           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15158  esac
15159}
15160
15161# sed scripts:
15162my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15163my_sed_long_arg='1s/^-[^=]*=//'
15164
15165# func_opt_split
15166func_opt_split ()
15167{
15168  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15169  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15170}
15171
15172# func_lo2o object
15173func_lo2o ()
15174{
15175  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15176}
15177
15178# func_xform libobj-or-source
15179func_xform ()
15180{
15181  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15182}
15183
15184# func_arith arithmetic-term...
15185func_arith ()
15186{
15187  func_arith_result=`expr "$@"`
15188}
15189
15190# func_len string
15191# STRING may not start with a hyphen.
15192func_len ()
15193{
15194  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15195}
15196
15197_LT_EOF
15198esac
15199
15200case $lt_shell_append in
15201  yes)
15202    cat << \_LT_EOF >> "$cfgfile"
15203
15204# func_append var value
15205# Append VALUE to the end of shell variable VAR.
15206func_append ()
15207{
15208  eval "$1+=\$2"
15209}
15210_LT_EOF
15211    ;;
15212  *)
15213    cat << \_LT_EOF >> "$cfgfile"
15214
15215# func_append var value
15216# Append VALUE to the end of shell variable VAR.
15217func_append ()
15218{
15219  eval "$1=\$$1\$2"
15220}
15221
15222_LT_EOF
15223    ;;
15224  esac
15225
15226
15227  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15228    || (rm -f "$cfgfile"; exit 1)
15229
15230  mv -f "$cfgfile" "$ofile" ||
15231    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15232  chmod +x "$ofile"
15233
15234 ;;
15235    "default-1":C)
15236    for ac_file in $CONFIG_FILES; do
15237      # Support "outfile[:infile[:infile...]]"
15238      case "$ac_file" in
15239        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15240      esac
15241      # PO directories have a Makefile.in generated from Makefile.in.in.
15242      case "$ac_file" in */Makefile.in)
15243        # Adjust a relative srcdir.
15244        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15245        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15246        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15247        # In autoconf-2.13 it is called $ac_given_srcdir.
15248        # In autoconf-2.50 it is called $srcdir.
15249        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15250        case "$ac_given_srcdir" in
15251          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15252          /*) top_srcdir="$ac_given_srcdir" ;;
15253          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
15254        esac
15255        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15256          rm -f "$ac_dir/POTFILES"
15257          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15258          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15259          POMAKEFILEDEPS="POTFILES.in"
15260          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
15261          # on $ac_dir but don't depend on user-specified configuration
15262          # parameters.
15263          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15264            # The LINGUAS file contains the set of available languages.
15265            if test -n "$OBSOLETE_ALL_LINGUAS"; then
15266              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15267            fi
15268            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15269            # Hide the ALL_LINGUAS assigment from automake.
15270            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15271            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15272          else
15273            # The set of available languages was given in configure.in.
15274            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15275          fi
15276          # Compute POFILES
15277          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15278          # Compute UPDATEPOFILES
15279          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15280          # Compute DUMMYPOFILES
15281          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15282          # Compute GMOFILES
15283          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15284          case "$ac_given_srcdir" in
15285            .) srcdirpre= ;;
15286            *) srcdirpre='$(srcdir)/' ;;
15287          esac
15288          POFILES=
15289          UPDATEPOFILES=
15290          DUMMYPOFILES=
15291          GMOFILES=
15292          for lang in $ALL_LINGUAS; do
15293            POFILES="$POFILES $srcdirpre$lang.po"
15294            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15295            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15296            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15297          done
15298          # CATALOGS depends on both $ac_dir and the user's LINGUAS
15299          # environment variable.
15300          INST_LINGUAS=
15301          if test -n "$ALL_LINGUAS"; then
15302            for presentlang in $ALL_LINGUAS; do
15303              useit=no
15304              if test "%UNSET%" != "$LINGUAS"; then
15305                desiredlanguages="$LINGUAS"
15306              else
15307                desiredlanguages="$ALL_LINGUAS"
15308              fi
15309              for desiredlang in $desiredlanguages; do
15310                # Use the presentlang catalog if desiredlang is
15311                #   a. equal to presentlang, or
15312                #   b. a variant of presentlang (because in this case,
15313                #      presentlang can be used as a fallback for messages
15314                #      which are not translated in the desiredlang catalog).
15315                case "$desiredlang" in
15316                  "$presentlang"*) useit=yes;;
15317                esac
15318              done
15319              if test $useit = yes; then
15320                INST_LINGUAS="$INST_LINGUAS $presentlang"
15321              fi
15322            done
15323          fi
15324          CATALOGS=
15325          if test -n "$INST_LINGUAS"; then
15326            for lang in $INST_LINGUAS; do
15327              CATALOGS="$CATALOGS $lang.gmo"
15328            done
15329          fi
15330          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15331          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
15332          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15333            if test -f "$f"; then
15334              case "$f" in
15335                *.orig | *.bak | *~) ;;
15336                *) cat "$f" >> "$ac_dir/Makefile" ;;
15337              esac
15338            fi
15339          done
15340        fi
15341        ;;
15342      esac
15343    done ;;
15344
15345  esac
15346done # for ac_tag
15347
15348
15349as_fn_exit 0
15350_ACEOF
15351ac_clean_files=$ac_clean_files_save
15352
15353test $ac_write_fail = 0 ||
15354  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15355
15356
15357# configure is writing to config.log, and then calls config.status.
15358# config.status does its own redirection, appending to config.log.
15359# Unfortunately, on DOS this fails, as config.log is still kept open
15360# by configure, so config.status won't be able to write to it; its
15361# output is simply discarded.  So we exec the FD to /dev/null,
15362# effectively closing config.log, so it can be properly (re)opened and
15363# appended to by config.status.  When coming back to configure, we
15364# need to make the FD available again.
15365if test "$no_create" != yes; then
15366  ac_cs_success=:
15367  ac_config_status_args=
15368  test "$silent" = yes &&
15369    ac_config_status_args="$ac_config_status_args --quiet"
15370  exec 5>/dev/null
15371  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15372  exec 5>>config.log
15373  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15374  # would make configure fail if this is the last instruction.
15375  $ac_cs_success || as_fn_exit $?
15376fi
15377if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15378  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15379$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15380fi
15381
15382
15383# Message about configured subprojects
15384if test "x$subdirs" != "x"; then
15385
15386gp_config_msg="${gp_config_msg}
15387"
15388	_subdirs=""
15389	for sd in $subdirs; do
15390		ssd="$(basename "$sd")"
15391		if test "x$_subdirs" = "x"; then
15392			_subdirs="$ssd";
15393		else
15394			_subdirs="$_subdirs $ssd"
15395		fi
15396	done
15397
15398gp_config_msg_len="$(expr "Subprojects" : '.*')"
15399if test "$gp_config_msg_len" -ge "$gp_config_len"; then
15400	gp_config_msg_lhs="$(expr "Subprojects" : "\(.\{0,${gp_config_len3}\}\)")..:"
15401else
15402	gp_config_msg_lhs="$(expr "Subprojects:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
15403fi
15404gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} ${_subdirs}
15405"
15406fi
15407
15408echo "${gp_config_msg}
15409You may run \"make\" and \"make install\" now."
15410
15411