Code Sync up from tizen_2.4
[platform/upstream/libmtp.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libmtp 1.1.9.
4 #
5 # Report bugs to <libmtp-discuss@lists.sourceforge.net>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if 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
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_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.
45 if 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 --'
49 elif (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'
52 else
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'
72 fi
73
74 # The user is always right.
75 if 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   }
81 fi
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.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     PATH=/empty FPATH=/empty; export PATH FPATH
207     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: libmtp-discuss@lists.sourceforge.net about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='libmtp'
592 PACKAGE_TARNAME='libmtp'
593 PACKAGE_VERSION='1.1.9'
594 PACKAGE_STRING='libmtp 1.1.9'
595 PACKAGE_BUGREPORT='libmtp-discuss@lists.sourceforge.net'
596 PACKAGE_URL=''
597
598 ac_unique_file="src/libmtp.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 effective_target
639 LIBOBJS
640 LIBOPENUSB_COMPILE_FALSE
641 LIBOPENUSB_COMPILE_TRUE
642 LIBUSB0_COMPILE_FALSE
643 LIBUSB0_COMPILE_TRUE
644 LIBUSB1_COMPILE_FALSE
645 LIBUSB1_COMPILE_TRUE
646 MTPZ_COMPILE_FALSE
647 MTPZ_COMPILE_TRUE
648 LIBUSB_REQUIRES
649 LIBUSB_LIBS
650 LIBUSB_CFLAGS
651 PKG_CONFIG_LIBDIR
652 PKG_CONFIG_PATH
653 PKG_CONFIG
654 MS_LIB_EXE_FALSE
655 MS_LIB_EXE_TRUE
656 ms_lib_exe
657 COMPILE_MINGW32_FALSE
658 COMPILE_MINGW32_TRUE
659 USE_LINUX_FALSE
660 USE_LINUX_TRUE
661 OSFLAGS
662 HAVE_DOXYGEN_FALSE
663 HAVE_DOXYGEN_TRUE
664 HAVE_DOXYGEN
665 UDEV_MODE
666 UDEV_GROUP
667 UDEV_RULES
668 UDEV
669 LTLIBICONV
670 LIBICONV
671 CPP
672 OTOOL64
673 OTOOL
674 LIPO
675 NMEDIT
676 DSYMUTIL
677 MANIFEST_TOOL
678 RANLIB
679 ac_ct_AR
680 AR
681 NM
682 ac_ct_DUMPBIN
683 DUMPBIN
684 LD
685 FGREP
686 EGREP
687 GREP
688 SED
689 LIBTOOL
690 OBJDUMP
691 DLLTOOL
692 AS
693 host_os
694 host_vendor
695 host_cpu
696 host
697 build_os
698 build_vendor
699 build_cpu
700 build
701 LN_S
702 am__fastdepCC_FALSE
703 am__fastdepCC_TRUE
704 CCDEPMODE
705 am__nodep
706 AMDEPBACKSLASH
707 AMDEP_FALSE
708 AMDEP_TRUE
709 am__quote
710 am__include
711 DEPDIR
712 OBJEXT
713 EXEEXT
714 ac_ct_CC
715 CPPFLAGS
716 LDFLAGS
717 CFLAGS
718 CC
719 AM_BACKSLASH
720 AM_DEFAULT_VERBOSITY
721 AM_DEFAULT_V
722 AM_V
723 am__untar
724 am__tar
725 AMTAR
726 am__leading_dot
727 SET_MAKE
728 AWK
729 mkdir_p
730 MKDIR_P
731 INSTALL_STRIP_PROGRAM
732 STRIP
733 install_sh
734 MAKEINFO
735 AUTOHEADER
736 AUTOMAKE
737 AUTOCONF
738 ACLOCAL
739 VERSION
740 PACKAGE
741 CYGPATH_W
742 am__isrc
743 INSTALL_DATA
744 INSTALL_SCRIPT
745 INSTALL_PROGRAM
746 target_alias
747 host_alias
748 build_alias
749 LIBS
750 ECHO_T
751 ECHO_N
752 ECHO_C
753 DEFS
754 mandir
755 localedir
756 libdir
757 psdir
758 pdfdir
759 dvidir
760 htmldir
761 infodir
762 docdir
763 oldincludedir
764 includedir
765 localstatedir
766 sharedstatedir
767 sysconfdir
768 datadir
769 datarootdir
770 libexecdir
771 sbindir
772 bindir
773 program_transform_name
774 prefix
775 exec_prefix
776 PACKAGE_URL
777 PACKAGE_BUGREPORT
778 PACKAGE_STRING
779 PACKAGE_VERSION
780 PACKAGE_TARNAME
781 PACKAGE_NAME
782 PATH_SEPARATOR
783 SHELL'
784 ac_subst_files=''
785 ac_user_opts='
786 enable_option_checking
787 enable_silent_rules
788 enable_dependency_tracking
789 enable_shared
790 enable_static
791 with_pic
792 enable_fast_install
793 with_gnu_ld
794 with_sysroot
795 enable_libtool_lock
796 enable_rpath
797 with_libiconv_prefix
798 with_udev
799 with_udev_rules
800 with_udev_group
801 with_udev_mode
802 enable_doxygen
803 enable_mtpz
804 enable_largefile
805 '
806       ac_precious_vars='build_alias
807 host_alias
808 target_alias
809 CC
810 CFLAGS
811 LDFLAGS
812 LIBS
813 CPPFLAGS
814 CPP
815 PKG_CONFIG
816 PKG_CONFIG_PATH
817 PKG_CONFIG_LIBDIR
818 LIBUSB_CFLAGS
819 LIBUSB_LIBS'
820
821
822 # Initialize some variables set by options.
823 ac_init_help=
824 ac_init_version=false
825 ac_unrecognized_opts=
826 ac_unrecognized_sep=
827 # The variables have the same names as the options, with
828 # dashes changed to underlines.
829 cache_file=/dev/null
830 exec_prefix=NONE
831 no_create=
832 no_recursion=
833 prefix=NONE
834 program_prefix=NONE
835 program_suffix=NONE
836 program_transform_name=s,x,x,
837 silent=
838 site=
839 srcdir=
840 verbose=
841 x_includes=NONE
842 x_libraries=NONE
843
844 # Installation directory options.
845 # These are left unexpanded so users can "make install exec_prefix=/foo"
846 # and all the variables that are supposed to be based on exec_prefix
847 # by default will actually change.
848 # Use braces instead of parens because sh, perl, etc. also accept them.
849 # (The list follows the same order as the GNU Coding Standards.)
850 bindir='${exec_prefix}/bin'
851 sbindir='${exec_prefix}/sbin'
852 libexecdir='${exec_prefix}/libexec'
853 datarootdir='${prefix}/share'
854 datadir='${datarootdir}'
855 sysconfdir='${prefix}/etc'
856 sharedstatedir='${prefix}/com'
857 localstatedir='${prefix}/var'
858 includedir='${prefix}/include'
859 oldincludedir='/usr/include'
860 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861 infodir='${datarootdir}/info'
862 htmldir='${docdir}'
863 dvidir='${docdir}'
864 pdfdir='${docdir}'
865 psdir='${docdir}'
866 libdir='${exec_prefix}/lib'
867 localedir='${datarootdir}/locale'
868 mandir='${datarootdir}/man'
869
870 ac_prev=
871 ac_dashdash=
872 for ac_option
873 do
874   # If the previous option needs an argument, assign it.
875   if test -n "$ac_prev"; then
876     eval $ac_prev=\$ac_option
877     ac_prev=
878     continue
879   fi
880
881   case $ac_option in
882   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883   *=)   ac_optarg= ;;
884   *)    ac_optarg=yes ;;
885   esac
886
887   # Accept the important Cygnus configure options, so we can diagnose typos.
888
889   case $ac_dashdash$ac_option in
890   --)
891     ac_dashdash=yes ;;
892
893   -bindir | --bindir | --bindi | --bind | --bin | --bi)
894     ac_prev=bindir ;;
895   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896     bindir=$ac_optarg ;;
897
898   -build | --build | --buil | --bui | --bu)
899     ac_prev=build_alias ;;
900   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901     build_alias=$ac_optarg ;;
902
903   -cache-file | --cache-file | --cache-fil | --cache-fi \
904   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905     ac_prev=cache_file ;;
906   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908     cache_file=$ac_optarg ;;
909
910   --config-cache | -C)
911     cache_file=config.cache ;;
912
913   -datadir | --datadir | --datadi | --datad)
914     ac_prev=datadir ;;
915   -datadir=* | --datadir=* | --datadi=* | --datad=*)
916     datadir=$ac_optarg ;;
917
918   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919   | --dataroo | --dataro | --datar)
920     ac_prev=datarootdir ;;
921   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923     datarootdir=$ac_optarg ;;
924
925   -disable-* | --disable-*)
926     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
927     # Reject names that are not valid shell variable names.
928     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929       as_fn_error $? "invalid feature name: $ac_useropt"
930     ac_useropt_orig=$ac_useropt
931     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932     case $ac_user_opts in
933       *"
934 "enable_$ac_useropt"
935 "*) ;;
936       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
937          ac_unrecognized_sep=', ';;
938     esac
939     eval enable_$ac_useropt=no ;;
940
941   -docdir | --docdir | --docdi | --doc | --do)
942     ac_prev=docdir ;;
943   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944     docdir=$ac_optarg ;;
945
946   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947     ac_prev=dvidir ;;
948   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949     dvidir=$ac_optarg ;;
950
951   -enable-* | --enable-*)
952     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953     # Reject names that are not valid shell variable names.
954     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955       as_fn_error $? "invalid feature name: $ac_useropt"
956     ac_useropt_orig=$ac_useropt
957     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958     case $ac_user_opts in
959       *"
960 "enable_$ac_useropt"
961 "*) ;;
962       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
963          ac_unrecognized_sep=', ';;
964     esac
965     eval enable_$ac_useropt=\$ac_optarg ;;
966
967   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
968   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
969   | --exec | --exe | --ex)
970     ac_prev=exec_prefix ;;
971   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
972   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
973   | --exec=* | --exe=* | --ex=*)
974     exec_prefix=$ac_optarg ;;
975
976   -gas | --gas | --ga | --g)
977     # Obsolete; use --with-gas.
978     with_gas=yes ;;
979
980   -help | --help | --hel | --he | -h)
981     ac_init_help=long ;;
982   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
983     ac_init_help=recursive ;;
984   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
985     ac_init_help=short ;;
986
987   -host | --host | --hos | --ho)
988     ac_prev=host_alias ;;
989   -host=* | --host=* | --hos=* | --ho=*)
990     host_alias=$ac_optarg ;;
991
992   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
993     ac_prev=htmldir ;;
994   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
995   | --ht=*)
996     htmldir=$ac_optarg ;;
997
998   -includedir | --includedir | --includedi | --included | --include \
999   | --includ | --inclu | --incl | --inc)
1000     ac_prev=includedir ;;
1001   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1002   | --includ=* | --inclu=* | --incl=* | --inc=*)
1003     includedir=$ac_optarg ;;
1004
1005   -infodir | --infodir | --infodi | --infod | --info | --inf)
1006     ac_prev=infodir ;;
1007   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1008     infodir=$ac_optarg ;;
1009
1010   -libdir | --libdir | --libdi | --libd)
1011     ac_prev=libdir ;;
1012   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1013     libdir=$ac_optarg ;;
1014
1015   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1016   | --libexe | --libex | --libe)
1017     ac_prev=libexecdir ;;
1018   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1019   | --libexe=* | --libex=* | --libe=*)
1020     libexecdir=$ac_optarg ;;
1021
1022   -localedir | --localedir | --localedi | --localed | --locale)
1023     ac_prev=localedir ;;
1024   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1025     localedir=$ac_optarg ;;
1026
1027   -localstatedir | --localstatedir | --localstatedi | --localstated \
1028   | --localstate | --localstat | --localsta | --localst | --locals)
1029     ac_prev=localstatedir ;;
1030   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1031   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1032     localstatedir=$ac_optarg ;;
1033
1034   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1035     ac_prev=mandir ;;
1036   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1037     mandir=$ac_optarg ;;
1038
1039   -nfp | --nfp | --nf)
1040     # Obsolete; use --without-fp.
1041     with_fp=no ;;
1042
1043   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1044   | --no-cr | --no-c | -n)
1045     no_create=yes ;;
1046
1047   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1048   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1049     no_recursion=yes ;;
1050
1051   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1052   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1053   | --oldin | --oldi | --old | --ol | --o)
1054     ac_prev=oldincludedir ;;
1055   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1056   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1057   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1058     oldincludedir=$ac_optarg ;;
1059
1060   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1061     ac_prev=prefix ;;
1062   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1063     prefix=$ac_optarg ;;
1064
1065   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1066   | --program-pre | --program-pr | --program-p)
1067     ac_prev=program_prefix ;;
1068   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1069   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1070     program_prefix=$ac_optarg ;;
1071
1072   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1073   | --program-suf | --program-su | --program-s)
1074     ac_prev=program_suffix ;;
1075   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1076   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1077     program_suffix=$ac_optarg ;;
1078
1079   -program-transform-name | --program-transform-name \
1080   | --program-transform-nam | --program-transform-na \
1081   | --program-transform-n | --program-transform- \
1082   | --program-transform | --program-transfor \
1083   | --program-transfo | --program-transf \
1084   | --program-trans | --program-tran \
1085   | --progr-tra | --program-tr | --program-t)
1086     ac_prev=program_transform_name ;;
1087   -program-transform-name=* | --program-transform-name=* \
1088   | --program-transform-nam=* | --program-transform-na=* \
1089   | --program-transform-n=* | --program-transform-=* \
1090   | --program-transform=* | --program-transfor=* \
1091   | --program-transfo=* | --program-transf=* \
1092   | --program-trans=* | --program-tran=* \
1093   | --progr-tra=* | --program-tr=* | --program-t=*)
1094     program_transform_name=$ac_optarg ;;
1095
1096   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1097     ac_prev=pdfdir ;;
1098   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1099     pdfdir=$ac_optarg ;;
1100
1101   -psdir | --psdir | --psdi | --psd | --ps)
1102     ac_prev=psdir ;;
1103   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1104     psdir=$ac_optarg ;;
1105
1106   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1107   | -silent | --silent | --silen | --sile | --sil)
1108     silent=yes ;;
1109
1110   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1111     ac_prev=sbindir ;;
1112   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1113   | --sbi=* | --sb=*)
1114     sbindir=$ac_optarg ;;
1115
1116   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1117   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1118   | --sharedst | --shareds | --shared | --share | --shar \
1119   | --sha | --sh)
1120     ac_prev=sharedstatedir ;;
1121   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1122   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1123   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1124   | --sha=* | --sh=*)
1125     sharedstatedir=$ac_optarg ;;
1126
1127   -site | --site | --sit)
1128     ac_prev=site ;;
1129   -site=* | --site=* | --sit=*)
1130     site=$ac_optarg ;;
1131
1132   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1133     ac_prev=srcdir ;;
1134   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1135     srcdir=$ac_optarg ;;
1136
1137   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1138   | --syscon | --sysco | --sysc | --sys | --sy)
1139     ac_prev=sysconfdir ;;
1140   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1141   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1142     sysconfdir=$ac_optarg ;;
1143
1144   -target | --target | --targe | --targ | --tar | --ta | --t)
1145     ac_prev=target_alias ;;
1146   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1147     target_alias=$ac_optarg ;;
1148
1149   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1150     verbose=yes ;;
1151
1152   -version | --version | --versio | --versi | --vers | -V)
1153     ac_init_version=: ;;
1154
1155   -with-* | --with-*)
1156     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1157     # Reject names that are not valid shell variable names.
1158     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159       as_fn_error $? "invalid package name: $ac_useropt"
1160     ac_useropt_orig=$ac_useropt
1161     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162     case $ac_user_opts in
1163       *"
1164 "with_$ac_useropt"
1165 "*) ;;
1166       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1167          ac_unrecognized_sep=', ';;
1168     esac
1169     eval with_$ac_useropt=\$ac_optarg ;;
1170
1171   -without-* | --without-*)
1172     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1173     # Reject names that are not valid shell variable names.
1174     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175       as_fn_error $? "invalid package name: $ac_useropt"
1176     ac_useropt_orig=$ac_useropt
1177     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178     case $ac_user_opts in
1179       *"
1180 "with_$ac_useropt"
1181 "*) ;;
1182       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1183          ac_unrecognized_sep=', ';;
1184     esac
1185     eval with_$ac_useropt=no ;;
1186
1187   --x)
1188     # Obsolete; use --with-x.
1189     with_x=yes ;;
1190
1191   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1192   | --x-incl | --x-inc | --x-in | --x-i)
1193     ac_prev=x_includes ;;
1194   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1195   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1196     x_includes=$ac_optarg ;;
1197
1198   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1199   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1200     ac_prev=x_libraries ;;
1201   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1202   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1203     x_libraries=$ac_optarg ;;
1204
1205   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1206 Try \`$0 --help' for more information"
1207     ;;
1208
1209   *=*)
1210     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1211     # Reject names that are not valid shell variable names.
1212     case $ac_envvar in #(
1213       '' | [0-9]* | *[!_$as_cr_alnum]* )
1214       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1215     esac
1216     eval $ac_envvar=\$ac_optarg
1217     export $ac_envvar ;;
1218
1219   *)
1220     # FIXME: should be removed in autoconf 3.0.
1221     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1222     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1224     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1225     ;;
1226
1227   esac
1228 done
1229
1230 if test -n "$ac_prev"; then
1231   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1232   as_fn_error $? "missing argument to $ac_option"
1233 fi
1234
1235 if test -n "$ac_unrecognized_opts"; then
1236   case $enable_option_checking in
1237     no) ;;
1238     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1239     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1240   esac
1241 fi
1242
1243 # Check all directory arguments for consistency.
1244 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1245                 datadir sysconfdir sharedstatedir localstatedir includedir \
1246                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1247                 libdir localedir mandir
1248 do
1249   eval ac_val=\$$ac_var
1250   # Remove trailing slashes.
1251   case $ac_val in
1252     */ )
1253       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1254       eval $ac_var=\$ac_val;;
1255   esac
1256   # Be sure to have absolute directory names.
1257   case $ac_val in
1258     [\\/$]* | ?:[\\/]* )  continue;;
1259     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1260   esac
1261   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1262 done
1263
1264 # There might be people who depend on the old broken behavior: `$host'
1265 # used to hold the argument of --host etc.
1266 # FIXME: To remove some day.
1267 build=$build_alias
1268 host=$host_alias
1269 target=$target_alias
1270
1271 # FIXME: To remove some day.
1272 if test "x$host_alias" != x; then
1273   if test "x$build_alias" = x; then
1274     cross_compiling=maybe
1275   elif test "x$build_alias" != "x$host_alias"; then
1276     cross_compiling=yes
1277   fi
1278 fi
1279
1280 ac_tool_prefix=
1281 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1282
1283 test "$silent" = yes && exec 6>/dev/null
1284
1285
1286 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287 ac_ls_di=`ls -di .` &&
1288 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1289   as_fn_error $? "working directory cannot be determined"
1290 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291   as_fn_error $? "pwd does not report name of working directory"
1292
1293
1294 # Find the source files, if location was not specified.
1295 if test -z "$srcdir"; then
1296   ac_srcdir_defaulted=yes
1297   # Try the directory containing this script, then the parent directory.
1298   ac_confdir=`$as_dirname -- "$as_myself" ||
1299 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300          X"$as_myself" : 'X\(//\)[^/]' \| \
1301          X"$as_myself" : 'X\(//\)$' \| \
1302          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303 $as_echo X"$as_myself" |
1304     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1305             s//\1/
1306             q
1307           }
1308           /^X\(\/\/\)[^/].*/{
1309             s//\1/
1310             q
1311           }
1312           /^X\(\/\/\)$/{
1313             s//\1/
1314             q
1315           }
1316           /^X\(\/\).*/{
1317             s//\1/
1318             q
1319           }
1320           s/.*/./; q'`
1321   srcdir=$ac_confdir
1322   if test ! -r "$srcdir/$ac_unique_file"; then
1323     srcdir=..
1324   fi
1325 else
1326   ac_srcdir_defaulted=no
1327 fi
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1330   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1331 fi
1332 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1333 ac_abs_confdir=`(
1334         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1335         pwd)`
1336 # When building in place, set srcdir=.
1337 if test "$ac_abs_confdir" = "$ac_pwd"; then
1338   srcdir=.
1339 fi
1340 # Remove unnecessary trailing slashes from srcdir.
1341 # Double slashes in file names in object file debugging info
1342 # mess up M-x gdb in Emacs.
1343 case $srcdir in
1344 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1345 esac
1346 for ac_var in $ac_precious_vars; do
1347   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348   eval ac_env_${ac_var}_value=\$${ac_var}
1349   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1351 done
1352
1353 #
1354 # Report the --help message.
1355 #
1356 if test "$ac_init_help" = "long"; then
1357   # Omit some internal or obsolete options to make the list less imposing.
1358   # This message is too long to be a string in the A/UX 3.1 sh.
1359   cat <<_ACEOF
1360 \`configure' configures libmtp 1.1.9 to adapt to many kinds of systems.
1361
1362 Usage: $0 [OPTION]... [VAR=VALUE]...
1363
1364 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365 VAR=VALUE.  See below for descriptions of some of the useful variables.
1366
1367 Defaults for the options are specified in brackets.
1368
1369 Configuration:
1370   -h, --help              display this help and exit
1371       --help=short        display options specific to this package
1372       --help=recursive    display the short help of all the included packages
1373   -V, --version           display version information and exit
1374   -q, --quiet, --silent   do not print \`checking ...' messages
1375       --cache-file=FILE   cache test results in FILE [disabled]
1376   -C, --config-cache      alias for \`--cache-file=config.cache'
1377   -n, --no-create         do not create output files
1378       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1379
1380 Installation directories:
1381   --prefix=PREFIX         install architecture-independent files in PREFIX
1382                           [$ac_default_prefix]
1383   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1384                           [PREFIX]
1385
1386 By default, \`make install' will install all the files in
1387 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1388 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389 for instance \`--prefix=\$HOME'.
1390
1391 For better control, use the options below.
1392
1393 Fine tuning of the installation directories:
1394   --bindir=DIR            user executables [EPREFIX/bin]
1395   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1396   --libexecdir=DIR        program executables [EPREFIX/libexec]
1397   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1398   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1399   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1400   --libdir=DIR            object code libraries [EPREFIX/lib]
1401   --includedir=DIR        C header files [PREFIX/include]
1402   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1403   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1404   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1405   --infodir=DIR           info documentation [DATAROOTDIR/info]
1406   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1407   --mandir=DIR            man documentation [DATAROOTDIR/man]
1408   --docdir=DIR            documentation root [DATAROOTDIR/doc/libmtp]
1409   --htmldir=DIR           html documentation [DOCDIR]
1410   --dvidir=DIR            dvi documentation [DOCDIR]
1411   --pdfdir=DIR            pdf documentation [DOCDIR]
1412   --psdir=DIR             ps documentation [DOCDIR]
1413 _ACEOF
1414
1415   cat <<\_ACEOF
1416
1417 Program names:
1418   --program-prefix=PREFIX            prepend PREFIX to installed program names
1419   --program-suffix=SUFFIX            append SUFFIX to installed program names
1420   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1421
1422 System types:
1423   --build=BUILD     configure for building on BUILD [guessed]
1424   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1425 _ACEOF
1426 fi
1427
1428 if test -n "$ac_init_help"; then
1429   case $ac_init_help in
1430      short | recursive ) echo "Configuration of libmtp 1.1.9:";;
1431    esac
1432   cat <<\_ACEOF
1433
1434 Optional Features:
1435   --disable-option-checking  ignore unrecognized --enable/--with options
1436   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1437   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1438   --enable-silent-rules   less verbose build output (undo: "make V=1")
1439   --disable-silent-rules  verbose build output (undo: "make V=0")
1440   --enable-dependency-tracking
1441                           do not reject slow dependency extractors
1442   --disable-dependency-tracking
1443                           speeds up one-time build
1444   --enable-shared[=PKGS]  build shared libraries [default=yes]
1445   --enable-static[=PKGS]  build static libraries [default=yes]
1446   --enable-fast-install[=PKGS]
1447                           optimize for fast installation [default=yes]
1448   --disable-libtool-lock  avoid locking (might break parallel builds)
1449   --disable-rpath         do not hardcode runtime library paths
1450   --enable-doxygen        Build API documentation using Doxygen [default=auto]
1451   --disable-mtpz          Disable functionality to connect to MTPZ devices
1452                           (e.g. Zune)
1453   --disable-largefile     omit support for large files
1454
1455 Optional Packages:
1456   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1457   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1458   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1459                           both]
1460   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1461   --with-sysroot=DIR Search for dependent libraries within DIR
1462                         (or the compiler's sysroot if not specified).
1463   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1464   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1465   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1466   --with-udev=DIR         directory where udev is installed
1467                           [default=/usr/lib/udev]
1468   --with-udev-rules=NAME  file name for udev rules [default=69-libmtp.rules]
1469   --with-udev-group=GROUP file group for device nodes [default: none
1470                           specified]
1471   --with-udev-mode=GROUP  file mode for device nodes [default: none specified]
1472
1473 Some influential environment variables:
1474   CC          C compiler command
1475   CFLAGS      C compiler flags
1476   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1477               nonstandard directory <lib dir>
1478   LIBS        libraries to pass to the linker, e.g. -l<library>
1479   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1480               you have headers in a nonstandard directory <include dir>
1481   CPP         C preprocessor
1482   PKG_CONFIG  path to pkg-config utility
1483   PKG_CONFIG_PATH
1484               directories to add to pkg-config's search path
1485   PKG_CONFIG_LIBDIR
1486               path overriding pkg-config's built-in search path
1487   LIBUSB_CFLAGS
1488               C compiler flags for LIBUSB, overriding pkg-config
1489   LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
1490
1491 Use these variables to override the choices made by `configure' or to help
1492 it to find libraries and programs with nonstandard names/locations.
1493
1494 Report bugs to <libmtp-discuss@lists.sourceforge.net>.
1495 _ACEOF
1496 ac_status=$?
1497 fi
1498
1499 if test "$ac_init_help" = "recursive"; then
1500   # If there are subdirs, report their specific --help.
1501   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1502     test -d "$ac_dir" ||
1503       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1504       continue
1505     ac_builddir=.
1506
1507 case "$ac_dir" in
1508 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509 *)
1510   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1511   # A ".." for each directory in $ac_dir_suffix.
1512   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1513   case $ac_top_builddir_sub in
1514   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1515   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1516   esac ;;
1517 esac
1518 ac_abs_top_builddir=$ac_pwd
1519 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1520 # for backward compatibility:
1521 ac_top_builddir=$ac_top_build_prefix
1522
1523 case $srcdir in
1524   .)  # We are building in place.
1525     ac_srcdir=.
1526     ac_top_srcdir=$ac_top_builddir_sub
1527     ac_abs_top_srcdir=$ac_pwd ;;
1528   [\\/]* | ?:[\\/]* )  # Absolute name.
1529     ac_srcdir=$srcdir$ac_dir_suffix;
1530     ac_top_srcdir=$srcdir
1531     ac_abs_top_srcdir=$srcdir ;;
1532   *) # Relative name.
1533     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1534     ac_top_srcdir=$ac_top_build_prefix$srcdir
1535     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1536 esac
1537 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1538
1539     cd "$ac_dir" || { ac_status=$?; continue; }
1540     # Check for guested configure.
1541     if test -f "$ac_srcdir/configure.gnu"; then
1542       echo &&
1543       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1544     elif test -f "$ac_srcdir/configure"; then
1545       echo &&
1546       $SHELL "$ac_srcdir/configure" --help=recursive
1547     else
1548       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1549     fi || ac_status=$?
1550     cd "$ac_pwd" || { ac_status=$?; break; }
1551   done
1552 fi
1553
1554 test -n "$ac_init_help" && exit $ac_status
1555 if $ac_init_version; then
1556   cat <<\_ACEOF
1557 libmtp configure 1.1.9
1558 generated by GNU Autoconf 2.69
1559
1560 Copyright (C) 2012 Free Software Foundation, Inc.
1561 This configure script is free software; the Free Software Foundation
1562 gives unlimited permission to copy, distribute and modify it.
1563 _ACEOF
1564   exit
1565 fi
1566
1567 ## ------------------------ ##
1568 ## Autoconf initialization. ##
1569 ## ------------------------ ##
1570
1571 # ac_fn_c_try_compile LINENO
1572 # --------------------------
1573 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1574 ac_fn_c_try_compile ()
1575 {
1576   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577   rm -f conftest.$ac_objext
1578   if { { ac_try="$ac_compile"
1579 case "(($ac_try" in
1580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581   *) ac_try_echo=$ac_try;;
1582 esac
1583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584 $as_echo "$ac_try_echo"; } >&5
1585   (eval "$ac_compile") 2>conftest.err
1586   ac_status=$?
1587   if test -s conftest.err; then
1588     grep -v '^ *+' conftest.err >conftest.er1
1589     cat conftest.er1 >&5
1590     mv -f conftest.er1 conftest.err
1591   fi
1592   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593   test $ac_status = 0; } && {
1594          test -z "$ac_c_werror_flag" ||
1595          test ! -s conftest.err
1596        } && test -s conftest.$ac_objext; then :
1597   ac_retval=0
1598 else
1599   $as_echo "$as_me: failed program was:" >&5
1600 sed 's/^/| /' conftest.$ac_ext >&5
1601
1602         ac_retval=1
1603 fi
1604   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1605   as_fn_set_status $ac_retval
1606
1607 } # ac_fn_c_try_compile
1608
1609 # ac_fn_c_try_link LINENO
1610 # -----------------------
1611 # Try to link conftest.$ac_ext, and return whether this succeeded.
1612 ac_fn_c_try_link ()
1613 {
1614   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615   rm -f conftest.$ac_objext conftest$ac_exeext
1616   if { { ac_try="$ac_link"
1617 case "(($ac_try" in
1618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619   *) ac_try_echo=$ac_try;;
1620 esac
1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622 $as_echo "$ac_try_echo"; } >&5
1623   (eval "$ac_link") 2>conftest.err
1624   ac_status=$?
1625   if test -s conftest.err; then
1626     grep -v '^ *+' conftest.err >conftest.er1
1627     cat conftest.er1 >&5
1628     mv -f conftest.er1 conftest.err
1629   fi
1630   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631   test $ac_status = 0; } && {
1632          test -z "$ac_c_werror_flag" ||
1633          test ! -s conftest.err
1634        } && test -s conftest$ac_exeext && {
1635          test "$cross_compiling" = yes ||
1636          test -x conftest$ac_exeext
1637        }; then :
1638   ac_retval=0
1639 else
1640   $as_echo "$as_me: failed program was:" >&5
1641 sed 's/^/| /' conftest.$ac_ext >&5
1642
1643         ac_retval=1
1644 fi
1645   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1646   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1647   # interfere with the next link command; also delete a directory that is
1648   # left behind by Apple's compiler.  We do this before executing the actions.
1649   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1650   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651   as_fn_set_status $ac_retval
1652
1653 } # ac_fn_c_try_link
1654
1655 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1656 # -------------------------------------------------------
1657 # Tests whether HEADER exists and can be compiled using the include files in
1658 # INCLUDES, setting the cache variable VAR accordingly.
1659 ac_fn_c_check_header_compile ()
1660 {
1661   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1663 $as_echo_n "checking for $2... " >&6; }
1664 if eval \${$3+:} false; then :
1665   $as_echo_n "(cached) " >&6
1666 else
1667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668 /* end confdefs.h.  */
1669 $4
1670 #include <$2>
1671 _ACEOF
1672 if ac_fn_c_try_compile "$LINENO"; then :
1673   eval "$3=yes"
1674 else
1675   eval "$3=no"
1676 fi
1677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1678 fi
1679 eval ac_res=\$$3
1680                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681 $as_echo "$ac_res" >&6; }
1682   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683
1684 } # ac_fn_c_check_header_compile
1685
1686 # ac_fn_c_try_cpp LINENO
1687 # ----------------------
1688 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1689 ac_fn_c_try_cpp ()
1690 {
1691   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692   if { { ac_try="$ac_cpp conftest.$ac_ext"
1693 case "(($ac_try" in
1694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695   *) ac_try_echo=$ac_try;;
1696 esac
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1700   ac_status=$?
1701   if test -s conftest.err; then
1702     grep -v '^ *+' conftest.err >conftest.er1
1703     cat conftest.er1 >&5
1704     mv -f conftest.er1 conftest.err
1705   fi
1706   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707   test $ac_status = 0; } > conftest.i && {
1708          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1709          test ! -s conftest.err
1710        }; then :
1711   ac_retval=0
1712 else
1713   $as_echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1715
1716     ac_retval=1
1717 fi
1718   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719   as_fn_set_status $ac_retval
1720
1721 } # ac_fn_c_try_cpp
1722
1723 # ac_fn_c_try_run LINENO
1724 # ----------------------
1725 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1726 # that executables *can* be run.
1727 ac_fn_c_try_run ()
1728 {
1729   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730   if { { ac_try="$ac_link"
1731 case "(($ac_try" in
1732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733   *) ac_try_echo=$ac_try;;
1734 esac
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737   (eval "$ac_link") 2>&5
1738   ac_status=$?
1739   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1741   { { case "(($ac_try" in
1742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743   *) ac_try_echo=$ac_try;;
1744 esac
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747   (eval "$ac_try") 2>&5
1748   ac_status=$?
1749   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750   test $ac_status = 0; }; }; then :
1751   ac_retval=0
1752 else
1753   $as_echo "$as_me: program exited with status $ac_status" >&5
1754        $as_echo "$as_me: failed program was:" >&5
1755 sed 's/^/| /' conftest.$ac_ext >&5
1756
1757        ac_retval=$ac_status
1758 fi
1759   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1760   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761   as_fn_set_status $ac_retval
1762
1763 } # ac_fn_c_try_run
1764
1765 # ac_fn_c_check_func LINENO FUNC VAR
1766 # ----------------------------------
1767 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1768 ac_fn_c_check_func ()
1769 {
1770   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772 $as_echo_n "checking for $2... " >&6; }
1773 if eval \${$3+:} false; then :
1774   $as_echo_n "(cached) " >&6
1775 else
1776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777 /* end confdefs.h.  */
1778 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1779    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1780 #define $2 innocuous_$2
1781
1782 /* System header to define __stub macros and hopefully few prototypes,
1783     which can conflict with char $2 (); below.
1784     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1785     <limits.h> exists even on freestanding compilers.  */
1786
1787 #ifdef __STDC__
1788 # include <limits.h>
1789 #else
1790 # include <assert.h>
1791 #endif
1792
1793 #undef $2
1794
1795 /* Override any GCC internal prototype to avoid an error.
1796    Use char because int might match the return type of a GCC
1797    builtin and then its argument prototype would still apply.  */
1798 #ifdef __cplusplus
1799 extern "C"
1800 #endif
1801 char $2 ();
1802 /* The GNU C library defines this for functions which it implements
1803     to always fail with ENOSYS.  Some functions are actually named
1804     something starting with __ and the normal name is an alias.  */
1805 #if defined __stub_$2 || defined __stub___$2
1806 choke me
1807 #endif
1808
1809 int
1810 main ()
1811 {
1812 return $2 ();
1813   ;
1814   return 0;
1815 }
1816 _ACEOF
1817 if ac_fn_c_try_link "$LINENO"; then :
1818   eval "$3=yes"
1819 else
1820   eval "$3=no"
1821 fi
1822 rm -f core conftest.err conftest.$ac_objext \
1823     conftest$ac_exeext conftest.$ac_ext
1824 fi
1825 eval ac_res=\$$3
1826                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827 $as_echo "$ac_res" >&6; }
1828   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829
1830 } # ac_fn_c_check_func
1831
1832 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1833 # -------------------------------------------------------
1834 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1835 # the include files in INCLUDES and setting the cache variable VAR
1836 # accordingly.
1837 ac_fn_c_check_header_mongrel ()
1838 {
1839   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840   if eval \${$3+:} false; then :
1841   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842 $as_echo_n "checking for $2... " >&6; }
1843 if eval \${$3+:} false; then :
1844   $as_echo_n "(cached) " >&6
1845 fi
1846 eval ac_res=\$$3
1847                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848 $as_echo "$ac_res" >&6; }
1849 else
1850   # Is the header compilable?
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1852 $as_echo_n "checking $2 usability... " >&6; }
1853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854 /* end confdefs.h.  */
1855 $4
1856 #include <$2>
1857 _ACEOF
1858 if ac_fn_c_try_compile "$LINENO"; then :
1859   ac_header_compiler=yes
1860 else
1861   ac_header_compiler=no
1862 fi
1863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1865 $as_echo "$ac_header_compiler" >&6; }
1866
1867 # Is the header present?
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1869 $as_echo_n "checking $2 presence... " >&6; }
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871 /* end confdefs.h.  */
1872 #include <$2>
1873 _ACEOF
1874 if ac_fn_c_try_cpp "$LINENO"; then :
1875   ac_header_preproc=yes
1876 else
1877   ac_header_preproc=no
1878 fi
1879 rm -f conftest.err conftest.i conftest.$ac_ext
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1881 $as_echo "$ac_header_preproc" >&6; }
1882
1883 # So?  What about this header?
1884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1885   yes:no: )
1886     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1887 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1888     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1889 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1890     ;;
1891   no:yes:* )
1892     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1893 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1894     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1895 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1896     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1897 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1898     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1899 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1900     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1901 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1902 ( $as_echo "## --------------------------------------------------- ##
1903 ## Report this to libmtp-discuss@lists.sourceforge.net ##
1904 ## --------------------------------------------------- ##"
1905      ) | sed "s/^/$as_me: WARNING:     /" >&2
1906     ;;
1907 esac
1908   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1909 $as_echo_n "checking for $2... " >&6; }
1910 if eval \${$3+:} false; then :
1911   $as_echo_n "(cached) " >&6
1912 else
1913   eval "$3=\$ac_header_compiler"
1914 fi
1915 eval ac_res=\$$3
1916                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917 $as_echo "$ac_res" >&6; }
1918 fi
1919   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1920
1921 } # ac_fn_c_check_header_mongrel
1922
1923 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1924 # -------------------------------------------
1925 # Tests whether TYPE exists after having included INCLUDES, setting cache
1926 # variable VAR accordingly.
1927 ac_fn_c_check_type ()
1928 {
1929   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1931 $as_echo_n "checking for $2... " >&6; }
1932 if eval \${$3+:} false; then :
1933   $as_echo_n "(cached) " >&6
1934 else
1935   eval "$3=no"
1936   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h.  */
1938 $4
1939 int
1940 main ()
1941 {
1942 if (sizeof ($2))
1943          return 0;
1944   ;
1945   return 0;
1946 }
1947 _ACEOF
1948 if ac_fn_c_try_compile "$LINENO"; then :
1949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h.  */
1951 $4
1952 int
1953 main ()
1954 {
1955 if (sizeof (($2)))
1956             return 0;
1957   ;
1958   return 0;
1959 }
1960 _ACEOF
1961 if ac_fn_c_try_compile "$LINENO"; then :
1962
1963 else
1964   eval "$3=yes"
1965 fi
1966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1967 fi
1968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1969 fi
1970 eval ac_res=\$$3
1971                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972 $as_echo "$ac_res" >&6; }
1973   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1974
1975 } # ac_fn_c_check_type
1976
1977 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1978 # ----------------------------------------------------
1979 # Tries to find if the field MEMBER exists in type AGGR, after including
1980 # INCLUDES, setting cache variable VAR accordingly.
1981 ac_fn_c_check_member ()
1982 {
1983   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1985 $as_echo_n "checking for $2.$3... " >&6; }
1986 if eval \${$4+:} false; then :
1987   $as_echo_n "(cached) " >&6
1988 else
1989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990 /* end confdefs.h.  */
1991 $5
1992 int
1993 main ()
1994 {
1995 static $2 ac_aggr;
1996 if (ac_aggr.$3)
1997 return 0;
1998   ;
1999   return 0;
2000 }
2001 _ACEOF
2002 if ac_fn_c_try_compile "$LINENO"; then :
2003   eval "$4=yes"
2004 else
2005   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006 /* end confdefs.h.  */
2007 $5
2008 int
2009 main ()
2010 {
2011 static $2 ac_aggr;
2012 if (sizeof ac_aggr.$3)
2013 return 0;
2014   ;
2015   return 0;
2016 }
2017 _ACEOF
2018 if ac_fn_c_try_compile "$LINENO"; then :
2019   eval "$4=yes"
2020 else
2021   eval "$4=no"
2022 fi
2023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024 fi
2025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2026 fi
2027 eval ac_res=\$$4
2028                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2029 $as_echo "$ac_res" >&6; }
2030   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2031
2032 } # ac_fn_c_check_member
2033 cat >config.log <<_ACEOF
2034 This file contains any messages produced by compilers while
2035 running configure, to aid debugging if configure makes a mistake.
2036
2037 It was created by libmtp $as_me 1.1.9, which was
2038 generated by GNU Autoconf 2.69.  Invocation command line was
2039
2040   $ $0 $@
2041
2042 _ACEOF
2043 exec 5>>config.log
2044 {
2045 cat <<_ASUNAME
2046 ## --------- ##
2047 ## Platform. ##
2048 ## --------- ##
2049
2050 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2051 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2052 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2053 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2054 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2055
2056 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2057 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2058
2059 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2060 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2061 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2062 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2063 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2064 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2065 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2066
2067 _ASUNAME
2068
2069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2070 for as_dir in $PATH
2071 do
2072   IFS=$as_save_IFS
2073   test -z "$as_dir" && as_dir=.
2074     $as_echo "PATH: $as_dir"
2075   done
2076 IFS=$as_save_IFS
2077
2078 } >&5
2079
2080 cat >&5 <<_ACEOF
2081
2082
2083 ## ----------- ##
2084 ## Core tests. ##
2085 ## ----------- ##
2086
2087 _ACEOF
2088
2089
2090 # Keep a trace of the command line.
2091 # Strip out --no-create and --no-recursion so they do not pile up.
2092 # Strip out --silent because we don't want to record it for future runs.
2093 # Also quote any args containing shell meta-characters.
2094 # Make two passes to allow for proper duplicate-argument suppression.
2095 ac_configure_args=
2096 ac_configure_args0=
2097 ac_configure_args1=
2098 ac_must_keep_next=false
2099 for ac_pass in 1 2
2100 do
2101   for ac_arg
2102   do
2103     case $ac_arg in
2104     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2105     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2106     | -silent | --silent | --silen | --sile | --sil)
2107       continue ;;
2108     *\'*)
2109       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2110     esac
2111     case $ac_pass in
2112     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2113     2)
2114       as_fn_append ac_configure_args1 " '$ac_arg'"
2115       if test $ac_must_keep_next = true; then
2116         ac_must_keep_next=false # Got value, back to normal.
2117       else
2118         case $ac_arg in
2119           *=* | --config-cache | -C | -disable-* | --disable-* \
2120           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2121           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2122           | -with-* | --with-* | -without-* | --without-* | --x)
2123             case "$ac_configure_args0 " in
2124               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2125             esac
2126             ;;
2127           -* ) ac_must_keep_next=true ;;
2128         esac
2129       fi
2130       as_fn_append ac_configure_args " '$ac_arg'"
2131       ;;
2132     esac
2133   done
2134 done
2135 { ac_configure_args0=; unset ac_configure_args0;}
2136 { ac_configure_args1=; unset ac_configure_args1;}
2137
2138 # When interrupted or exit'd, cleanup temporary files, and complete
2139 # config.log.  We remove comments because anyway the quotes in there
2140 # would cause problems or look ugly.
2141 # WARNING: Use '\'' to represent an apostrophe within the trap.
2142 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2143 trap 'exit_status=$?
2144   # Save into config.log some information that might help in debugging.
2145   {
2146     echo
2147
2148     $as_echo "## ---------------- ##
2149 ## Cache variables. ##
2150 ## ---------------- ##"
2151     echo
2152     # The following way of writing the cache mishandles newlines in values,
2153 (
2154   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2155     eval ac_val=\$$ac_var
2156     case $ac_val in #(
2157     *${as_nl}*)
2158       case $ac_var in #(
2159       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2160 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2161       esac
2162       case $ac_var in #(
2163       _ | IFS | as_nl) ;; #(
2164       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2165       *) { eval $ac_var=; unset $ac_var;} ;;
2166       esac ;;
2167     esac
2168   done
2169   (set) 2>&1 |
2170     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2171     *${as_nl}ac_space=\ *)
2172       sed -n \
2173         "s/'\''/'\''\\\\'\'''\''/g;
2174           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2175       ;; #(
2176     *)
2177       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2178       ;;
2179     esac |
2180     sort
2181 )
2182     echo
2183
2184     $as_echo "## ----------------- ##
2185 ## Output variables. ##
2186 ## ----------------- ##"
2187     echo
2188     for ac_var in $ac_subst_vars
2189     do
2190       eval ac_val=\$$ac_var
2191       case $ac_val in
2192       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2193       esac
2194       $as_echo "$ac_var='\''$ac_val'\''"
2195     done | sort
2196     echo
2197
2198     if test -n "$ac_subst_files"; then
2199       $as_echo "## ------------------- ##
2200 ## File substitutions. ##
2201 ## ------------------- ##"
2202       echo
2203       for ac_var in $ac_subst_files
2204       do
2205         eval ac_val=\$$ac_var
2206         case $ac_val in
2207         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2208         esac
2209         $as_echo "$ac_var='\''$ac_val'\''"
2210       done | sort
2211       echo
2212     fi
2213
2214     if test -s confdefs.h; then
2215       $as_echo "## ----------- ##
2216 ## confdefs.h. ##
2217 ## ----------- ##"
2218       echo
2219       cat confdefs.h
2220       echo
2221     fi
2222     test "$ac_signal" != 0 &&
2223       $as_echo "$as_me: caught signal $ac_signal"
2224     $as_echo "$as_me: exit $exit_status"
2225   } >&5
2226   rm -f core *.core core.conftest.* &&
2227     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2228     exit $exit_status
2229 ' 0
2230 for ac_signal in 1 2 13 15; do
2231   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2232 done
2233 ac_signal=0
2234
2235 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2236 rm -f -r conftest* confdefs.h
2237
2238 $as_echo "/* confdefs.h */" > confdefs.h
2239
2240 # Predefined preprocessor variables.
2241
2242 cat >>confdefs.h <<_ACEOF
2243 #define PACKAGE_NAME "$PACKAGE_NAME"
2244 _ACEOF
2245
2246 cat >>confdefs.h <<_ACEOF
2247 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2248 _ACEOF
2249
2250 cat >>confdefs.h <<_ACEOF
2251 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2252 _ACEOF
2253
2254 cat >>confdefs.h <<_ACEOF
2255 #define PACKAGE_STRING "$PACKAGE_STRING"
2256 _ACEOF
2257
2258 cat >>confdefs.h <<_ACEOF
2259 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2260 _ACEOF
2261
2262 cat >>confdefs.h <<_ACEOF
2263 #define PACKAGE_URL "$PACKAGE_URL"
2264 _ACEOF
2265
2266
2267 # Let the site file select an alternate cache file if it wants to.
2268 # Prefer an explicitly selected file to automatically selected ones.
2269 ac_site_file1=NONE
2270 ac_site_file2=NONE
2271 if test -n "$CONFIG_SITE"; then
2272   # We do not want a PATH search for config.site.
2273   case $CONFIG_SITE in #((
2274     -*)  ac_site_file1=./$CONFIG_SITE;;
2275     */*) ac_site_file1=$CONFIG_SITE;;
2276     *)   ac_site_file1=./$CONFIG_SITE;;
2277   esac
2278 elif test "x$prefix" != xNONE; then
2279   ac_site_file1=$prefix/share/config.site
2280   ac_site_file2=$prefix/etc/config.site
2281 else
2282   ac_site_file1=$ac_default_prefix/share/config.site
2283   ac_site_file2=$ac_default_prefix/etc/config.site
2284 fi
2285 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2286 do
2287   test "x$ac_site_file" = xNONE && continue
2288   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2289     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2290 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2291     sed 's/^/| /' "$ac_site_file" >&5
2292     . "$ac_site_file" \
2293       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2295 as_fn_error $? "failed to load site script $ac_site_file
2296 See \`config.log' for more details" "$LINENO" 5; }
2297   fi
2298 done
2299
2300 if test -r "$cache_file"; then
2301   # Some versions of bash will fail to source /dev/null (special files
2302   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2303   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2304     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2305 $as_echo "$as_me: loading cache $cache_file" >&6;}
2306     case $cache_file in
2307       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2308       *)                      . "./$cache_file";;
2309     esac
2310   fi
2311 else
2312   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2313 $as_echo "$as_me: creating cache $cache_file" >&6;}
2314   >$cache_file
2315 fi
2316
2317 # Check that the precious variables saved in the cache have kept the same
2318 # value.
2319 ac_cache_corrupted=false
2320 for ac_var in $ac_precious_vars; do
2321   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2322   eval ac_new_set=\$ac_env_${ac_var}_set
2323   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2324   eval ac_new_val=\$ac_env_${ac_var}_value
2325   case $ac_old_set,$ac_new_set in
2326     set,)
2327       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2328 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2329       ac_cache_corrupted=: ;;
2330     ,set)
2331       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2332 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2333       ac_cache_corrupted=: ;;
2334     ,);;
2335     *)
2336       if test "x$ac_old_val" != "x$ac_new_val"; then
2337         # differences in whitespace do not lead to failure.
2338         ac_old_val_w=`echo x $ac_old_val`
2339         ac_new_val_w=`echo x $ac_new_val`
2340         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2341           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2342 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2343           ac_cache_corrupted=:
2344         else
2345           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2346 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2347           eval $ac_var=\$ac_old_val
2348         fi
2349         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2350 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2351         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2352 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2353       fi;;
2354   esac
2355   # Pass precious variables to config.status.
2356   if test "$ac_new_set" = set; then
2357     case $ac_new_val in
2358     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2359     *) ac_arg=$ac_var=$ac_new_val ;;
2360     esac
2361     case " $ac_configure_args " in
2362       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2363       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2364     esac
2365   fi
2366 done
2367 if $ac_cache_corrupted; then
2368   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2370   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2371 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2372   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2373 fi
2374 ## -------------------- ##
2375 ## Main body of script. ##
2376 ## -------------------- ##
2377
2378 ac_ext=c
2379 ac_cpp='$CPP $CPPFLAGS'
2380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2383
2384
2385
2386 am__api_version='1.13'
2387
2388 ac_aux_dir=
2389 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2390   if test -f "$ac_dir/install-sh"; then
2391     ac_aux_dir=$ac_dir
2392     ac_install_sh="$ac_aux_dir/install-sh -c"
2393     break
2394   elif test -f "$ac_dir/install.sh"; then
2395     ac_aux_dir=$ac_dir
2396     ac_install_sh="$ac_aux_dir/install.sh -c"
2397     break
2398   elif test -f "$ac_dir/shtool"; then
2399     ac_aux_dir=$ac_dir
2400     ac_install_sh="$ac_aux_dir/shtool install -c"
2401     break
2402   fi
2403 done
2404 if test -z "$ac_aux_dir"; then
2405   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2406 fi
2407
2408 # These three variables are undocumented and unsupported,
2409 # and are intended to be withdrawn in a future Autoconf release.
2410 # They can cause serious problems if a builder's source tree is in a directory
2411 # whose full name contains unusual characters.
2412 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2413 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2414 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2415
2416
2417 # Find a good install program.  We prefer a C program (faster),
2418 # so one script is as good as another.  But avoid the broken or
2419 # incompatible versions:
2420 # SysV /etc/install, /usr/sbin/install
2421 # SunOS /usr/etc/install
2422 # IRIX /sbin/install
2423 # AIX /bin/install
2424 # AmigaOS /C/install, which installs bootblocks on floppy discs
2425 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2426 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2427 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2428 # OS/2's system install, which has a completely different semantic
2429 # ./install, which can be erroneously created by make from ./install.sh.
2430 # Reject install programs that cannot install multiple files.
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2432 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2433 if test -z "$INSTALL"; then
2434 if ${ac_cv_path_install+:} false; then :
2435   $as_echo_n "(cached) " >&6
2436 else
2437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438 for as_dir in $PATH
2439 do
2440   IFS=$as_save_IFS
2441   test -z "$as_dir" && as_dir=.
2442     # Account for people who put trailing slashes in PATH elements.
2443 case $as_dir/ in #((
2444   ./ | .// | /[cC]/* | \
2445   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2446   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2447   /usr/ucb/* ) ;;
2448   *)
2449     # OSF1 and SCO ODT 3.0 have their own names for install.
2450     # Don't use installbsd from OSF since it installs stuff as root
2451     # by default.
2452     for ac_prog in ginstall scoinst install; do
2453       for ac_exec_ext in '' $ac_executable_extensions; do
2454         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2455           if test $ac_prog = install &&
2456             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2457             # AIX install.  It has an incompatible calling convention.
2458             :
2459           elif test $ac_prog = install &&
2460             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2461             # program-specific install script used by HP pwplus--don't use.
2462             :
2463           else
2464             rm -rf conftest.one conftest.two conftest.dir
2465             echo one > conftest.one
2466             echo two > conftest.two
2467             mkdir conftest.dir
2468             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2469               test -s conftest.one && test -s conftest.two &&
2470               test -s conftest.dir/conftest.one &&
2471               test -s conftest.dir/conftest.two
2472             then
2473               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2474               break 3
2475             fi
2476           fi
2477         fi
2478       done
2479     done
2480     ;;
2481 esac
2482
2483   done
2484 IFS=$as_save_IFS
2485
2486 rm -rf conftest.one conftest.two conftest.dir
2487
2488 fi
2489   if test "${ac_cv_path_install+set}" = set; then
2490     INSTALL=$ac_cv_path_install
2491   else
2492     # As a last resort, use the slow shell script.  Don't cache a
2493     # value for INSTALL within a source directory, because that will
2494     # break other packages using the cache if that directory is
2495     # removed, or if the value is a relative name.
2496     INSTALL=$ac_install_sh
2497   fi
2498 fi
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2500 $as_echo "$INSTALL" >&6; }
2501
2502 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2503 # It thinks the first close brace ends the variable substitution.
2504 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2505
2506 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2507
2508 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2509
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2511 $as_echo_n "checking whether build environment is sane... " >&6; }
2512 # Reject unsafe characters in $srcdir or the absolute working directory
2513 # name.  Accept space and tab only in the latter.
2514 am_lf='
2515 '
2516 case `pwd` in
2517   *[\\\"\#\$\&\'\`$am_lf]*)
2518     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2519 esac
2520 case $srcdir in
2521   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2522     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2523 esac
2524
2525 # Do 'set' in a subshell so we don't clobber the current shell's
2526 # arguments.  Must try -L first in case configure is actually a
2527 # symlink; some systems play weird games with the mod time of symlinks
2528 # (eg FreeBSD returns the mod time of the symlink's containing
2529 # directory).
2530 if (
2531    am_has_slept=no
2532    for am_try in 1 2; do
2533      echo "timestamp, slept: $am_has_slept" > conftest.file
2534      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2535      if test "$*" = "X"; then
2536         # -L didn't work.
2537         set X `ls -t "$srcdir/configure" conftest.file`
2538      fi
2539      if test "$*" != "X $srcdir/configure conftest.file" \
2540         && test "$*" != "X conftest.file $srcdir/configure"; then
2541
2542         # If neither matched, then we have a broken ls.  This can happen
2543         # if, for instance, CONFIG_SHELL is bash and it inherits a
2544         # broken ls alias from the environment.  This has actually
2545         # happened.  Such a system could not be considered "sane".
2546         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2547   alias in your environment" "$LINENO" 5
2548      fi
2549      if test "$2" = conftest.file || test $am_try -eq 2; then
2550        break
2551      fi
2552      # Just in case.
2553      sleep 1
2554      am_has_slept=yes
2555    done
2556    test "$2" = conftest.file
2557    )
2558 then
2559    # Ok.
2560    :
2561 else
2562    as_fn_error $? "newly created file is older than distributed files!
2563 Check your system clock" "$LINENO" 5
2564 fi
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2566 $as_echo "yes" >&6; }
2567 # If we didn't sleep, we still need to ensure time stamps of config.status and
2568 # generated files are strictly newer.
2569 am_sleep_pid=
2570 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2571   ( sleep 1 ) &
2572   am_sleep_pid=$!
2573 fi
2574
2575 rm -f conftest.file
2576
2577 test "$program_prefix" != NONE &&
2578   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2579 # Use a double $ so make ignores it.
2580 test "$program_suffix" != NONE &&
2581   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2582 # Double any \ or $.
2583 # By default was `s,x,x', remove it if useless.
2584 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2585 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2586
2587 # expand $ac_aux_dir to an absolute path
2588 am_aux_dir=`cd $ac_aux_dir && pwd`
2589
2590 if test x"${MISSING+set}" != xset; then
2591   case $am_aux_dir in
2592   *\ * | *\     *)
2593     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2594   *)
2595     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2596   esac
2597 fi
2598 # Use eval to expand $SHELL
2599 if eval "$MISSING --is-lightweight"; then
2600   am_missing_run="$MISSING "
2601 else
2602   am_missing_run=
2603   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2604 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2605 fi
2606
2607 if test x"${install_sh}" != xset; then
2608   case $am_aux_dir in
2609   *\ * | *\     *)
2610     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2611   *)
2612     install_sh="\${SHELL} $am_aux_dir/install-sh"
2613   esac
2614 fi
2615
2616 # Installed binaries are usually stripped using 'strip' when the user
2617 # run "make install-strip".  However 'strip' might not be the right
2618 # tool to use in cross-compilation environments, therefore Automake
2619 # will honor the 'STRIP' environment variable to overrule this program.
2620 if test "$cross_compiling" != no; then
2621   if test -n "$ac_tool_prefix"; then
2622   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2623 set dummy ${ac_tool_prefix}strip; ac_word=$2
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2625 $as_echo_n "checking for $ac_word... " >&6; }
2626 if ${ac_cv_prog_STRIP+:} false; then :
2627   $as_echo_n "(cached) " >&6
2628 else
2629   if test -n "$STRIP"; then
2630   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2631 else
2632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633 for as_dir in $PATH
2634 do
2635   IFS=$as_save_IFS
2636   test -z "$as_dir" && as_dir=.
2637     for ac_exec_ext in '' $ac_executable_extensions; do
2638   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2639     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2640     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2641     break 2
2642   fi
2643 done
2644   done
2645 IFS=$as_save_IFS
2646
2647 fi
2648 fi
2649 STRIP=$ac_cv_prog_STRIP
2650 if test -n "$STRIP"; then
2651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2652 $as_echo "$STRIP" >&6; }
2653 else
2654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2655 $as_echo "no" >&6; }
2656 fi
2657
2658
2659 fi
2660 if test -z "$ac_cv_prog_STRIP"; then
2661   ac_ct_STRIP=$STRIP
2662   # Extract the first word of "strip", so it can be a program name with args.
2663 set dummy strip; ac_word=$2
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2665 $as_echo_n "checking for $ac_word... " >&6; }
2666 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2667   $as_echo_n "(cached) " >&6
2668 else
2669   if test -n "$ac_ct_STRIP"; then
2670   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2671 else
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 for as_dir in $PATH
2674 do
2675   IFS=$as_save_IFS
2676   test -z "$as_dir" && as_dir=.
2677     for ac_exec_ext in '' $ac_executable_extensions; do
2678   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2679     ac_cv_prog_ac_ct_STRIP="strip"
2680     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2681     break 2
2682   fi
2683 done
2684   done
2685 IFS=$as_save_IFS
2686
2687 fi
2688 fi
2689 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2690 if test -n "$ac_ct_STRIP"; then
2691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2692 $as_echo "$ac_ct_STRIP" >&6; }
2693 else
2694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2695 $as_echo "no" >&6; }
2696 fi
2697
2698   if test "x$ac_ct_STRIP" = x; then
2699     STRIP=":"
2700   else
2701     case $cross_compiling:$ac_tool_warned in
2702 yes:)
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2705 ac_tool_warned=yes ;;
2706 esac
2707     STRIP=$ac_ct_STRIP
2708   fi
2709 else
2710   STRIP="$ac_cv_prog_STRIP"
2711 fi
2712
2713 fi
2714 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2715
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2717 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2718 if test -z "$MKDIR_P"; then
2719   if ${ac_cv_path_mkdir+:} false; then :
2720   $as_echo_n "(cached) " >&6
2721 else
2722   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2724 do
2725   IFS=$as_save_IFS
2726   test -z "$as_dir" && as_dir=.
2727     for ac_prog in mkdir gmkdir; do
2728          for ac_exec_ext in '' $ac_executable_extensions; do
2729            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2730            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2731              'mkdir (GNU coreutils) '* | \
2732              'mkdir (coreutils) '* | \
2733              'mkdir (fileutils) '4.1*)
2734                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2735                break 3;;
2736            esac
2737          done
2738        done
2739   done
2740 IFS=$as_save_IFS
2741
2742 fi
2743
2744   test -d ./--version && rmdir ./--version
2745   if test "${ac_cv_path_mkdir+set}" = set; then
2746     MKDIR_P="$ac_cv_path_mkdir -p"
2747   else
2748     # As a last resort, use the slow shell script.  Don't cache a
2749     # value for MKDIR_P within a source directory, because that will
2750     # break other packages using the cache if that directory is
2751     # removed, or if the value is a relative name.
2752     MKDIR_P="$ac_install_sh -d"
2753   fi
2754 fi
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2756 $as_echo "$MKDIR_P" >&6; }
2757
2758 for ac_prog in gawk mawk nawk awk
2759 do
2760   # Extract the first word of "$ac_prog", so it can be a program name with args.
2761 set dummy $ac_prog; ac_word=$2
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2763 $as_echo_n "checking for $ac_word... " >&6; }
2764 if ${ac_cv_prog_AWK+:} false; then :
2765   $as_echo_n "(cached) " >&6
2766 else
2767   if test -n "$AWK"; then
2768   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2769 else
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 for as_dir in $PATH
2772 do
2773   IFS=$as_save_IFS
2774   test -z "$as_dir" && as_dir=.
2775     for ac_exec_ext in '' $ac_executable_extensions; do
2776   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2777     ac_cv_prog_AWK="$ac_prog"
2778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2779     break 2
2780   fi
2781 done
2782   done
2783 IFS=$as_save_IFS
2784
2785 fi
2786 fi
2787 AWK=$ac_cv_prog_AWK
2788 if test -n "$AWK"; then
2789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2790 $as_echo "$AWK" >&6; }
2791 else
2792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2793 $as_echo "no" >&6; }
2794 fi
2795
2796
2797   test -n "$AWK" && break
2798 done
2799
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2801 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2802 set x ${MAKE-make}
2803 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2804 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2805   $as_echo_n "(cached) " >&6
2806 else
2807   cat >conftest.make <<\_ACEOF
2808 SHELL = /bin/sh
2809 all:
2810         @echo '@@@%%%=$(MAKE)=@@@%%%'
2811 _ACEOF
2812 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2813 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2814   *@@@%%%=?*=@@@%%%*)
2815     eval ac_cv_prog_make_${ac_make}_set=yes;;
2816   *)
2817     eval ac_cv_prog_make_${ac_make}_set=no;;
2818 esac
2819 rm -f conftest.make
2820 fi
2821 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2823 $as_echo "yes" >&6; }
2824   SET_MAKE=
2825 else
2826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827 $as_echo "no" >&6; }
2828   SET_MAKE="MAKE=${MAKE-make}"
2829 fi
2830
2831 rm -rf .tst 2>/dev/null
2832 mkdir .tst 2>/dev/null
2833 if test -d .tst; then
2834   am__leading_dot=.
2835 else
2836   am__leading_dot=_
2837 fi
2838 rmdir .tst 2>/dev/null
2839
2840 # Check whether --enable-silent-rules was given.
2841 if test "${enable_silent_rules+set}" = set; then :
2842   enableval=$enable_silent_rules;
2843 fi
2844
2845 case $enable_silent_rules in # (((
2846   yes) AM_DEFAULT_VERBOSITY=0;;
2847    no) AM_DEFAULT_VERBOSITY=1;;
2848     *) AM_DEFAULT_VERBOSITY=1;;
2849 esac
2850 am_make=${MAKE-make}
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2852 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2853 if ${am_cv_make_support_nested_variables+:} false; then :
2854   $as_echo_n "(cached) " >&6
2855 else
2856   if $as_echo 'TRUE=$(BAR$(V))
2857 BAR0=false
2858 BAR1=true
2859 V=1
2860 am__doit:
2861         @$(TRUE)
2862 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2863   am_cv_make_support_nested_variables=yes
2864 else
2865   am_cv_make_support_nested_variables=no
2866 fi
2867 fi
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2869 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2870 if test $am_cv_make_support_nested_variables = yes; then
2871     AM_V='$(V)'
2872   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2873 else
2874   AM_V=$AM_DEFAULT_VERBOSITY
2875   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2876 fi
2877 AM_BACKSLASH='\'
2878
2879 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2880   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2881   # is not polluted with repeated "-I."
2882   am__isrc=' -I$(srcdir)'
2883   # test to see if srcdir already configured
2884   if test -f $srcdir/config.status; then
2885     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2886   fi
2887 fi
2888
2889 # test whether we have cygpath
2890 if test -z "$CYGPATH_W"; then
2891   if (cygpath --version) >/dev/null 2>/dev/null; then
2892     CYGPATH_W='cygpath -w'
2893   else
2894     CYGPATH_W=echo
2895   fi
2896 fi
2897
2898
2899 # Define the identity of the package.
2900  PACKAGE='libmtp'
2901  VERSION='1.1.9'
2902
2903
2904 cat >>confdefs.h <<_ACEOF
2905 #define PACKAGE "$PACKAGE"
2906 _ACEOF
2907
2908
2909 cat >>confdefs.h <<_ACEOF
2910 #define VERSION "$VERSION"
2911 _ACEOF
2912
2913 # Some tools Automake needs.
2914
2915 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2916
2917
2918 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2919
2920
2921 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2922
2923
2924 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2925
2926
2927 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2928
2929 # For better backward compatibility.  To be removed once Automake 1.9.x
2930 # dies out for good.  For more background, see:
2931 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2932 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2933 mkdir_p='$(MKDIR_P)'
2934
2935 # We need awk for the "check" target.  The system "awk" is bad on
2936 # some platforms.
2937 # Always define AMTAR for backward compatibility.  Yes, it's still used
2938 # in the wild :-(  We should find a proper way to deprecate it ...
2939 AMTAR='$${TAR-tar}'
2940
2941
2942 # We'll loop over all known methods to create a tar archive until one works.
2943 _am_tools='gnutar  pax cpio none'
2944
2945 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2946
2947
2948
2949
2950
2951
2952
2953 ac_config_headers="$ac_config_headers config.h"
2954
2955
2956 # Checks for programs.
2957 ac_ext=c
2958 ac_cpp='$CPP $CPPFLAGS'
2959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2962 if test -n "$ac_tool_prefix"; then
2963   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2964 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2966 $as_echo_n "checking for $ac_word... " >&6; }
2967 if ${ac_cv_prog_CC+:} false; then :
2968   $as_echo_n "(cached) " >&6
2969 else
2970   if test -n "$CC"; then
2971   ac_cv_prog_CC="$CC" # Let the user override the test.
2972 else
2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974 for as_dir in $PATH
2975 do
2976   IFS=$as_save_IFS
2977   test -z "$as_dir" && as_dir=.
2978     for ac_exec_ext in '' $ac_executable_extensions; do
2979   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2980     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2982     break 2
2983   fi
2984 done
2985   done
2986 IFS=$as_save_IFS
2987
2988 fi
2989 fi
2990 CC=$ac_cv_prog_CC
2991 if test -n "$CC"; then
2992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2993 $as_echo "$CC" >&6; }
2994 else
2995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2996 $as_echo "no" >&6; }
2997 fi
2998
2999
3000 fi
3001 if test -z "$ac_cv_prog_CC"; then
3002   ac_ct_CC=$CC
3003   # Extract the first word of "gcc", so it can be a program name with args.
3004 set dummy gcc; ac_word=$2
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3006 $as_echo_n "checking for $ac_word... " >&6; }
3007 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3008   $as_echo_n "(cached) " >&6
3009 else
3010   if test -n "$ac_ct_CC"; then
3011   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3012 else
3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014 for as_dir in $PATH
3015 do
3016   IFS=$as_save_IFS
3017   test -z "$as_dir" && as_dir=.
3018     for ac_exec_ext in '' $ac_executable_extensions; do
3019   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3020     ac_cv_prog_ac_ct_CC="gcc"
3021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3022     break 2
3023   fi
3024 done
3025   done
3026 IFS=$as_save_IFS
3027
3028 fi
3029 fi
3030 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3031 if test -n "$ac_ct_CC"; then
3032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3033 $as_echo "$ac_ct_CC" >&6; }
3034 else
3035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036 $as_echo "no" >&6; }
3037 fi
3038
3039   if test "x$ac_ct_CC" = x; then
3040     CC=""
3041   else
3042     case $cross_compiling:$ac_tool_warned in
3043 yes:)
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3046 ac_tool_warned=yes ;;
3047 esac
3048     CC=$ac_ct_CC
3049   fi
3050 else
3051   CC="$ac_cv_prog_CC"
3052 fi
3053
3054 if test -z "$CC"; then
3055           if test -n "$ac_tool_prefix"; then
3056     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3057 set dummy ${ac_tool_prefix}cc; ac_word=$2
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3059 $as_echo_n "checking for $ac_word... " >&6; }
3060 if ${ac_cv_prog_CC+:} false; then :
3061   $as_echo_n "(cached) " >&6
3062 else
3063   if test -n "$CC"; then
3064   ac_cv_prog_CC="$CC" # Let the user override the test.
3065 else
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067 for as_dir in $PATH
3068 do
3069   IFS=$as_save_IFS
3070   test -z "$as_dir" && as_dir=.
3071     for ac_exec_ext in '' $ac_executable_extensions; do
3072   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3073     ac_cv_prog_CC="${ac_tool_prefix}cc"
3074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3075     break 2
3076   fi
3077 done
3078   done
3079 IFS=$as_save_IFS
3080
3081 fi
3082 fi
3083 CC=$ac_cv_prog_CC
3084 if test -n "$CC"; then
3085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3086 $as_echo "$CC" >&6; }
3087 else
3088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3089 $as_echo "no" >&6; }
3090 fi
3091
3092
3093   fi
3094 fi
3095 if test -z "$CC"; then
3096   # Extract the first word of "cc", so it can be a program name with args.
3097 set dummy cc; ac_word=$2
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3099 $as_echo_n "checking for $ac_word... " >&6; }
3100 if ${ac_cv_prog_CC+:} false; then :
3101   $as_echo_n "(cached) " >&6
3102 else
3103   if test -n "$CC"; then
3104   ac_cv_prog_CC="$CC" # Let the user override the test.
3105 else
3106   ac_prog_rejected=no
3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108 for as_dir in $PATH
3109 do
3110   IFS=$as_save_IFS
3111   test -z "$as_dir" && as_dir=.
3112     for ac_exec_ext in '' $ac_executable_extensions; do
3113   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3114     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3115        ac_prog_rejected=yes
3116        continue
3117      fi
3118     ac_cv_prog_CC="cc"
3119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3120     break 2
3121   fi
3122 done
3123   done
3124 IFS=$as_save_IFS
3125
3126 if test $ac_prog_rejected = yes; then
3127   # We found a bogon in the path, so make sure we never use it.
3128   set dummy $ac_cv_prog_CC
3129   shift
3130   if test $# != 0; then
3131     # We chose a different compiler from the bogus one.
3132     # However, it has the same basename, so the bogon will be chosen
3133     # first if we set CC to just the basename; use the full file name.
3134     shift
3135     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3136   fi
3137 fi
3138 fi
3139 fi
3140 CC=$ac_cv_prog_CC
3141 if test -n "$CC"; then
3142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3143 $as_echo "$CC" >&6; }
3144 else
3145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3146 $as_echo "no" >&6; }
3147 fi
3148
3149
3150 fi
3151 if test -z "$CC"; then
3152   if test -n "$ac_tool_prefix"; then
3153   for ac_prog in cl.exe
3154   do
3155     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3156 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3158 $as_echo_n "checking for $ac_word... " >&6; }
3159 if ${ac_cv_prog_CC+:} false; then :
3160   $as_echo_n "(cached) " >&6
3161 else
3162   if test -n "$CC"; then
3163   ac_cv_prog_CC="$CC" # Let the user override the test.
3164 else
3165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166 for as_dir in $PATH
3167 do
3168   IFS=$as_save_IFS
3169   test -z "$as_dir" && as_dir=.
3170     for ac_exec_ext in '' $ac_executable_extensions; do
3171   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3172     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3173     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3174     break 2
3175   fi
3176 done
3177   done
3178 IFS=$as_save_IFS
3179
3180 fi
3181 fi
3182 CC=$ac_cv_prog_CC
3183 if test -n "$CC"; then
3184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3185 $as_echo "$CC" >&6; }
3186 else
3187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188 $as_echo "no" >&6; }
3189 fi
3190
3191
3192     test -n "$CC" && break
3193   done
3194 fi
3195 if test -z "$CC"; then
3196   ac_ct_CC=$CC
3197   for ac_prog in cl.exe
3198 do
3199   # Extract the first word of "$ac_prog", so it can be a program name with args.
3200 set dummy $ac_prog; ac_word=$2
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3202 $as_echo_n "checking for $ac_word... " >&6; }
3203 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3204   $as_echo_n "(cached) " >&6
3205 else
3206   if test -n "$ac_ct_CC"; then
3207   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3208 else
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 for as_dir in $PATH
3211 do
3212   IFS=$as_save_IFS
3213   test -z "$as_dir" && as_dir=.
3214     for ac_exec_ext in '' $ac_executable_extensions; do
3215   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3216     ac_cv_prog_ac_ct_CC="$ac_prog"
3217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3218     break 2
3219   fi
3220 done
3221   done
3222 IFS=$as_save_IFS
3223
3224 fi
3225 fi
3226 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3227 if test -n "$ac_ct_CC"; then
3228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3229 $as_echo "$ac_ct_CC" >&6; }
3230 else
3231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232 $as_echo "no" >&6; }
3233 fi
3234
3235
3236   test -n "$ac_ct_CC" && break
3237 done
3238
3239   if test "x$ac_ct_CC" = x; then
3240     CC=""
3241   else
3242     case $cross_compiling:$ac_tool_warned in
3243 yes:)
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3246 ac_tool_warned=yes ;;
3247 esac
3248     CC=$ac_ct_CC
3249   fi
3250 fi
3251
3252 fi
3253
3254
3255 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3257 as_fn_error $? "no acceptable C compiler found in \$PATH
3258 See \`config.log' for more details" "$LINENO" 5; }
3259
3260 # Provide some information about the compiler.
3261 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3262 set X $ac_compile
3263 ac_compiler=$2
3264 for ac_option in --version -v -V -qversion; do
3265   { { ac_try="$ac_compiler $ac_option >&5"
3266 case "(($ac_try" in
3267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268   *) ac_try_echo=$ac_try;;
3269 esac
3270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3271 $as_echo "$ac_try_echo"; } >&5
3272   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3273   ac_status=$?
3274   if test -s conftest.err; then
3275     sed '10a\
3276 ... rest of stderr output deleted ...
3277          10q' conftest.err >conftest.er1
3278     cat conftest.er1 >&5
3279   fi
3280   rm -f conftest.er1 conftest.err
3281   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3282   test $ac_status = 0; }
3283 done
3284
3285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3286 /* end confdefs.h.  */
3287
3288 int
3289 main ()
3290 {
3291
3292   ;
3293   return 0;
3294 }
3295 _ACEOF
3296 ac_clean_files_save=$ac_clean_files
3297 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3298 # Try to create an executable without -o first, disregard a.out.
3299 # It will help us diagnose broken compilers, and finding out an intuition
3300 # of exeext.
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3302 $as_echo_n "checking whether the C compiler works... " >&6; }
3303 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3304
3305 # The possible output files:
3306 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3307
3308 ac_rmfiles=
3309 for ac_file in $ac_files
3310 do
3311   case $ac_file in
3312     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3313     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3314   esac
3315 done
3316 rm -f $ac_rmfiles
3317
3318 if { { ac_try="$ac_link_default"
3319 case "(($ac_try" in
3320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321   *) ac_try_echo=$ac_try;;
3322 esac
3323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3324 $as_echo "$ac_try_echo"; } >&5
3325   (eval "$ac_link_default") 2>&5
3326   ac_status=$?
3327   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3328   test $ac_status = 0; }; then :
3329   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3330 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3331 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3332 # so that the user can short-circuit this test for compilers unknown to
3333 # Autoconf.
3334 for ac_file in $ac_files ''
3335 do
3336   test -f "$ac_file" || continue
3337   case $ac_file in
3338     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3339         ;;
3340     [ab].out )
3341         # We found the default executable, but exeext='' is most
3342         # certainly right.
3343         break;;
3344     *.* )
3345         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3346         then :; else
3347            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3348         fi
3349         # We set ac_cv_exeext here because the later test for it is not
3350         # safe: cross compilers may not add the suffix if given an `-o'
3351         # argument, so we may need to know it at that point already.
3352         # Even if this section looks crufty: it has the advantage of
3353         # actually working.
3354         break;;
3355     * )
3356         break;;
3357   esac
3358 done
3359 test "$ac_cv_exeext" = no && ac_cv_exeext=
3360
3361 else
3362   ac_file=''
3363 fi
3364 if test -z "$ac_file"; then :
3365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366 $as_echo "no" >&6; }
3367 $as_echo "$as_me: failed program was:" >&5
3368 sed 's/^/| /' conftest.$ac_ext >&5
3369
3370 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3372 as_fn_error 77 "C compiler cannot create executables
3373 See \`config.log' for more details" "$LINENO" 5; }
3374 else
3375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3376 $as_echo "yes" >&6; }
3377 fi
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3379 $as_echo_n "checking for C compiler default output file name... " >&6; }
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3381 $as_echo "$ac_file" >&6; }
3382 ac_exeext=$ac_cv_exeext
3383
3384 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3385 ac_clean_files=$ac_clean_files_save
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3387 $as_echo_n "checking for suffix of executables... " >&6; }
3388 if { { ac_try="$ac_link"
3389 case "(($ac_try" in
3390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391   *) ac_try_echo=$ac_try;;
3392 esac
3393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3394 $as_echo "$ac_try_echo"; } >&5
3395   (eval "$ac_link") 2>&5
3396   ac_status=$?
3397   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398   test $ac_status = 0; }; then :
3399   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3400 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3401 # work properly (i.e., refer to `conftest.exe'), while it won't with
3402 # `rm'.
3403 for ac_file in conftest.exe conftest conftest.*; do
3404   test -f "$ac_file" || continue
3405   case $ac_file in
3406     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3407     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3408           break;;
3409     * ) break;;
3410   esac
3411 done
3412 else
3413   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3415 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3416 See \`config.log' for more details" "$LINENO" 5; }
3417 fi
3418 rm -f conftest conftest$ac_cv_exeext
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3420 $as_echo "$ac_cv_exeext" >&6; }
3421
3422 rm -f conftest.$ac_ext
3423 EXEEXT=$ac_cv_exeext
3424 ac_exeext=$EXEEXT
3425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426 /* end confdefs.h.  */
3427 #include <stdio.h>
3428 int
3429 main ()
3430 {
3431 FILE *f = fopen ("conftest.out", "w");
3432  return ferror (f) || fclose (f) != 0;
3433
3434   ;
3435   return 0;
3436 }
3437 _ACEOF
3438 ac_clean_files="$ac_clean_files conftest.out"
3439 # Check that the compiler produces executables we can run.  If not, either
3440 # the compiler is broken, or we cross compile.
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3442 $as_echo_n "checking whether we are cross compiling... " >&6; }
3443 if test "$cross_compiling" != yes; then
3444   { { ac_try="$ac_link"
3445 case "(($ac_try" in
3446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447   *) ac_try_echo=$ac_try;;
3448 esac
3449 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3450 $as_echo "$ac_try_echo"; } >&5
3451   (eval "$ac_link") 2>&5
3452   ac_status=$?
3453   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3454   test $ac_status = 0; }
3455   if { ac_try='./conftest$ac_cv_exeext'
3456   { { case "(($ac_try" in
3457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458   *) ac_try_echo=$ac_try;;
3459 esac
3460 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3461 $as_echo "$ac_try_echo"; } >&5
3462   (eval "$ac_try") 2>&5
3463   ac_status=$?
3464   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3465   test $ac_status = 0; }; }; then
3466     cross_compiling=no
3467   else
3468     if test "$cross_compiling" = maybe; then
3469         cross_compiling=yes
3470     else
3471         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3473 as_fn_error $? "cannot run C compiled programs.
3474 If you meant to cross compile, use \`--host'.
3475 See \`config.log' for more details" "$LINENO" 5; }
3476     fi
3477   fi
3478 fi
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3480 $as_echo "$cross_compiling" >&6; }
3481
3482 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3483 ac_clean_files=$ac_clean_files_save
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3485 $as_echo_n "checking for suffix of object files... " >&6; }
3486 if ${ac_cv_objext+:} false; then :
3487   $as_echo_n "(cached) " >&6
3488 else
3489   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490 /* end confdefs.h.  */
3491
3492 int
3493 main ()
3494 {
3495
3496   ;
3497   return 0;
3498 }
3499 _ACEOF
3500 rm -f conftest.o conftest.obj
3501 if { { ac_try="$ac_compile"
3502 case "(($ac_try" in
3503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504   *) ac_try_echo=$ac_try;;
3505 esac
3506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3507 $as_echo "$ac_try_echo"; } >&5
3508   (eval "$ac_compile") 2>&5
3509   ac_status=$?
3510   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3511   test $ac_status = 0; }; then :
3512   for ac_file in conftest.o conftest.obj conftest.*; do
3513   test -f "$ac_file" || continue;
3514   case $ac_file in
3515     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3516     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3517        break;;
3518   esac
3519 done
3520 else
3521   $as_echo "$as_me: failed program was:" >&5
3522 sed 's/^/| /' conftest.$ac_ext >&5
3523
3524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3526 as_fn_error $? "cannot compute suffix of object files: cannot compile
3527 See \`config.log' for more details" "$LINENO" 5; }
3528 fi
3529 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3530 fi
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3532 $as_echo "$ac_cv_objext" >&6; }
3533 OBJEXT=$ac_cv_objext
3534 ac_objext=$OBJEXT
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3536 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3537 if ${ac_cv_c_compiler_gnu+:} false; then :
3538   $as_echo_n "(cached) " >&6
3539 else
3540   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541 /* end confdefs.h.  */
3542
3543 int
3544 main ()
3545 {
3546 #ifndef __GNUC__
3547        choke me
3548 #endif
3549
3550   ;
3551   return 0;
3552 }
3553 _ACEOF
3554 if ac_fn_c_try_compile "$LINENO"; then :
3555   ac_compiler_gnu=yes
3556 else
3557   ac_compiler_gnu=no
3558 fi
3559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3560 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3561
3562 fi
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3564 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3565 if test $ac_compiler_gnu = yes; then
3566   GCC=yes
3567 else
3568   GCC=
3569 fi
3570 ac_test_CFLAGS=${CFLAGS+set}
3571 ac_save_CFLAGS=$CFLAGS
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3573 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3574 if ${ac_cv_prog_cc_g+:} false; then :
3575   $as_echo_n "(cached) " >&6
3576 else
3577   ac_save_c_werror_flag=$ac_c_werror_flag
3578    ac_c_werror_flag=yes
3579    ac_cv_prog_cc_g=no
3580    CFLAGS="-g"
3581    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582 /* end confdefs.h.  */
3583
3584 int
3585 main ()
3586 {
3587
3588   ;
3589   return 0;
3590 }
3591 _ACEOF
3592 if ac_fn_c_try_compile "$LINENO"; then :
3593   ac_cv_prog_cc_g=yes
3594 else
3595   CFLAGS=""
3596       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597 /* end confdefs.h.  */
3598
3599 int
3600 main ()
3601 {
3602
3603   ;
3604   return 0;
3605 }
3606 _ACEOF
3607 if ac_fn_c_try_compile "$LINENO"; then :
3608
3609 else
3610   ac_c_werror_flag=$ac_save_c_werror_flag
3611          CFLAGS="-g"
3612          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613 /* end confdefs.h.  */
3614
3615 int
3616 main ()
3617 {
3618
3619   ;
3620   return 0;
3621 }
3622 _ACEOF
3623 if ac_fn_c_try_compile "$LINENO"; then :
3624   ac_cv_prog_cc_g=yes
3625 fi
3626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3627 fi
3628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3629 fi
3630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3631    ac_c_werror_flag=$ac_save_c_werror_flag
3632 fi
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3634 $as_echo "$ac_cv_prog_cc_g" >&6; }
3635 if test "$ac_test_CFLAGS" = set; then
3636   CFLAGS=$ac_save_CFLAGS
3637 elif test $ac_cv_prog_cc_g = yes; then
3638   if test "$GCC" = yes; then
3639     CFLAGS="-g -O2"
3640   else
3641     CFLAGS="-g"
3642   fi
3643 else
3644   if test "$GCC" = yes; then
3645     CFLAGS="-O2"
3646   else
3647     CFLAGS=
3648   fi
3649 fi
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3651 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3652 if ${ac_cv_prog_cc_c89+:} false; then :
3653   $as_echo_n "(cached) " >&6
3654 else
3655   ac_cv_prog_cc_c89=no
3656 ac_save_CC=$CC
3657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3658 /* end confdefs.h.  */
3659 #include <stdarg.h>
3660 #include <stdio.h>
3661 struct stat;
3662 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3663 struct buf { int x; };
3664 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3665 static char *e (p, i)
3666      char **p;
3667      int i;
3668 {
3669   return p[i];
3670 }
3671 static char *f (char * (*g) (char **, int), char **p, ...)
3672 {
3673   char *s;
3674   va_list v;
3675   va_start (v,p);
3676   s = g (p, va_arg (v,int));
3677   va_end (v);
3678   return s;
3679 }
3680
3681 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3682    function prototypes and stuff, but not '\xHH' hex character constants.
3683    These don't provoke an error unfortunately, instead are silently treated
3684    as 'x'.  The following induces an error, until -std is added to get
3685    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3686    array size at least.  It's necessary to write '\x00'==0 to get something
3687    that's true only with -std.  */
3688 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3689
3690 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3691    inside strings and character constants.  */
3692 #define FOO(x) 'x'
3693 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3694
3695 int test (int i, double x);
3696 struct s1 {int (*f) (int a);};
3697 struct s2 {int (*f) (double a);};
3698 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3699 int argc;
3700 char **argv;
3701 int
3702 main ()
3703 {
3704 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3705   ;
3706   return 0;
3707 }
3708 _ACEOF
3709 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3710         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3711 do
3712   CC="$ac_save_CC $ac_arg"
3713   if ac_fn_c_try_compile "$LINENO"; then :
3714   ac_cv_prog_cc_c89=$ac_arg
3715 fi
3716 rm -f core conftest.err conftest.$ac_objext
3717   test "x$ac_cv_prog_cc_c89" != "xno" && break
3718 done
3719 rm -f conftest.$ac_ext
3720 CC=$ac_save_CC
3721
3722 fi
3723 # AC_CACHE_VAL
3724 case "x$ac_cv_prog_cc_c89" in
3725   x)
3726     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3727 $as_echo "none needed" >&6; } ;;
3728   xno)
3729     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3730 $as_echo "unsupported" >&6; } ;;
3731   *)
3732     CC="$CC $ac_cv_prog_cc_c89"
3733     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3734 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3735 esac
3736 if test "x$ac_cv_prog_cc_c89" != xno; then :
3737
3738 fi
3739
3740 ac_ext=c
3741 ac_cpp='$CPP $CPPFLAGS'
3742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3745 DEPDIR="${am__leading_dot}deps"
3746
3747 ac_config_commands="$ac_config_commands depfiles"
3748
3749
3750 am_make=${MAKE-make}
3751 cat > confinc << 'END'
3752 am__doit:
3753         @echo this is the am__doit target
3754 .PHONY: am__doit
3755 END
3756 # If we don't find an include directive, just comment out the code.
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3758 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3759 am__include="#"
3760 am__quote=
3761 _am_result=none
3762 # First try GNU make style include.
3763 echo "include confinc" > confmf
3764 # Ignore all kinds of additional output from 'make'.
3765 case `$am_make -s -f confmf 2> /dev/null` in #(
3766 *the\ am__doit\ target*)
3767   am__include=include
3768   am__quote=
3769   _am_result=GNU
3770   ;;
3771 esac
3772 # Now try BSD make style include.
3773 if test "$am__include" = "#"; then
3774    echo '.include "confinc"' > confmf
3775    case `$am_make -s -f confmf 2> /dev/null` in #(
3776    *the\ am__doit\ target*)
3777      am__include=.include
3778      am__quote="\""
3779      _am_result=BSD
3780      ;;
3781    esac
3782 fi
3783
3784
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3786 $as_echo "$_am_result" >&6; }
3787 rm -f confinc confmf
3788
3789 # Check whether --enable-dependency-tracking was given.
3790 if test "${enable_dependency_tracking+set}" = set; then :
3791   enableval=$enable_dependency_tracking;
3792 fi
3793
3794 if test "x$enable_dependency_tracking" != xno; then
3795   am_depcomp="$ac_aux_dir/depcomp"
3796   AMDEPBACKSLASH='\'
3797   am__nodep='_no'
3798 fi
3799  if test "x$enable_dependency_tracking" != xno; then
3800   AMDEP_TRUE=
3801   AMDEP_FALSE='#'
3802 else
3803   AMDEP_TRUE='#'
3804   AMDEP_FALSE=
3805 fi
3806
3807
3808
3809 depcc="$CC"   am_compiler_list=
3810
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3812 $as_echo_n "checking dependency style of $depcc... " >&6; }
3813 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3814   $as_echo_n "(cached) " >&6
3815 else
3816   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3817   # We make a subdir and do the tests there.  Otherwise we can end up
3818   # making bogus files that we don't know about and never remove.  For
3819   # instance it was reported that on HP-UX the gcc test will end up
3820   # making a dummy file named 'D' -- because '-MD' means "put the output
3821   # in D".
3822   rm -rf conftest.dir
3823   mkdir conftest.dir
3824   # Copy depcomp to subdir because otherwise we won't find it if we're
3825   # using a relative directory.
3826   cp "$am_depcomp" conftest.dir
3827   cd conftest.dir
3828   # We will build objects and dependencies in a subdirectory because
3829   # it helps to detect inapplicable dependency modes.  For instance
3830   # both Tru64's cc and ICC support -MD to output dependencies as a
3831   # side effect of compilation, but ICC will put the dependencies in
3832   # the current directory while Tru64 will put them in the object
3833   # directory.
3834   mkdir sub
3835
3836   am_cv_CC_dependencies_compiler_type=none
3837   if test "$am_compiler_list" = ""; then
3838      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3839   fi
3840   am__universal=false
3841   case " $depcc " in #(
3842      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3843      esac
3844
3845   for depmode in $am_compiler_list; do
3846     # Setup a source with many dependencies, because some compilers
3847     # like to wrap large dependency lists on column 80 (with \), and
3848     # we should not choose a depcomp mode which is confused by this.
3849     #
3850     # We need to recreate these files for each test, as the compiler may
3851     # overwrite some of them when testing with obscure command lines.
3852     # This happens at least with the AIX C compiler.
3853     : > sub/conftest.c
3854     for i in 1 2 3 4 5 6; do
3855       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3856       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3857       # Solaris 10 /bin/sh.
3858       echo '/* dummy */' > sub/conftst$i.h
3859     done
3860     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3861
3862     # We check with '-c' and '-o' for the sake of the "dashmstdout"
3863     # mode.  It turns out that the SunPro C++ compiler does not properly
3864     # handle '-M -o', and we need to detect this.  Also, some Intel
3865     # versions had trouble with output in subdirs.
3866     am__obj=sub/conftest.${OBJEXT-o}
3867     am__minus_obj="-o $am__obj"
3868     case $depmode in
3869     gcc)
3870       # This depmode causes a compiler race in universal mode.
3871       test "$am__universal" = false || continue
3872       ;;
3873     nosideeffect)
3874       # After this tag, mechanisms are not by side-effect, so they'll
3875       # only be used when explicitly requested.
3876       if test "x$enable_dependency_tracking" = xyes; then
3877         continue
3878       else
3879         break
3880       fi
3881       ;;
3882     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3883       # This compiler won't grok '-c -o', but also, the minuso test has
3884       # not run yet.  These depmodes are late enough in the game, and
3885       # so weak that their functioning should not be impacted.
3886       am__obj=conftest.${OBJEXT-o}
3887       am__minus_obj=
3888       ;;
3889     none) break ;;
3890     esac
3891     if depmode=$depmode \
3892        source=sub/conftest.c object=$am__obj \
3893        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3894        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3895          >/dev/null 2>conftest.err &&
3896        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3897        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3898        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3899        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3900       # icc doesn't choke on unknown options, it will just issue warnings
3901       # or remarks (even with -Werror).  So we grep stderr for any message
3902       # that says an option was ignored or not supported.
3903       # When given -MP, icc 7.0 and 7.1 complain thusly:
3904       #   icc: Command line warning: ignoring option '-M'; no argument required
3905       # The diagnosis changed in icc 8.0:
3906       #   icc: Command line remark: option '-MP' not supported
3907       if (grep 'ignoring option' conftest.err ||
3908           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3909         am_cv_CC_dependencies_compiler_type=$depmode
3910         break
3911       fi
3912     fi
3913   done
3914
3915   cd ..
3916   rm -rf conftest.dir
3917 else
3918   am_cv_CC_dependencies_compiler_type=none
3919 fi
3920
3921 fi
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3923 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3924 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3925
3926  if
3927   test "x$enable_dependency_tracking" != xno \
3928   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3929   am__fastdepCC_TRUE=
3930   am__fastdepCC_FALSE='#'
3931 else
3932   am__fastdepCC_TRUE='#'
3933   am__fastdepCC_FALSE=
3934 fi
3935
3936
3937
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3939 $as_echo_n "checking whether ln -s works... " >&6; }
3940 LN_S=$as_ln_s
3941 if test "$LN_S" = "ln -s"; then
3942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3943 $as_echo "yes" >&6; }
3944 else
3945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3946 $as_echo "no, using $LN_S" >&6; }
3947 fi
3948
3949 # Make sure we can run config.sub.
3950 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3951   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3952
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3954 $as_echo_n "checking build system type... " >&6; }
3955 if ${ac_cv_build+:} false; then :
3956   $as_echo_n "(cached) " >&6
3957 else
3958   ac_build_alias=$build_alias
3959 test "x$ac_build_alias" = x &&
3960   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3961 test "x$ac_build_alias" = x &&
3962   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3963 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3964   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3965
3966 fi
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3968 $as_echo "$ac_cv_build" >&6; }
3969 case $ac_cv_build in
3970 *-*-*) ;;
3971 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3972 esac
3973 build=$ac_cv_build
3974 ac_save_IFS=$IFS; IFS='-'
3975 set x $ac_cv_build
3976 shift
3977 build_cpu=$1
3978 build_vendor=$2
3979 shift; shift
3980 # Remember, the first character of IFS is used to create $*,
3981 # except with old shells:
3982 build_os=$*
3983 IFS=$ac_save_IFS
3984 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3985
3986
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3988 $as_echo_n "checking host system type... " >&6; }
3989 if ${ac_cv_host+:} false; then :
3990   $as_echo_n "(cached) " >&6
3991 else
3992   if test "x$host_alias" = x; then
3993   ac_cv_host=$ac_cv_build
3994 else
3995   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3996     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3997 fi
3998
3999 fi
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4001 $as_echo "$ac_cv_host" >&6; }
4002 case $ac_cv_host in
4003 *-*-*) ;;
4004 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4005 esac
4006 host=$ac_cv_host
4007 ac_save_IFS=$IFS; IFS='-'
4008 set x $ac_cv_host
4009 shift
4010 host_cpu=$1
4011 host_vendor=$2
4012 shift; shift
4013 # Remember, the first character of IFS is used to create $*,
4014 # except with old shells:
4015 host_os=$*
4016 IFS=$ac_save_IFS
4017 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4018
4019
4020 enable_win32_dll=yes
4021
4022 case $host in
4023 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4024   if test -n "$ac_tool_prefix"; then
4025   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4026 set dummy ${ac_tool_prefix}as; ac_word=$2
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4028 $as_echo_n "checking for $ac_word... " >&6; }
4029 if ${ac_cv_prog_AS+:} false; then :
4030   $as_echo_n "(cached) " >&6
4031 else
4032   if test -n "$AS"; then
4033   ac_cv_prog_AS="$AS" # Let the user override the test.
4034 else
4035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036 for as_dir in $PATH
4037 do
4038   IFS=$as_save_IFS
4039   test -z "$as_dir" && as_dir=.
4040     for ac_exec_ext in '' $ac_executable_extensions; do
4041   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4042     ac_cv_prog_AS="${ac_tool_prefix}as"
4043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4044     break 2
4045   fi
4046 done
4047   done
4048 IFS=$as_save_IFS
4049
4050 fi
4051 fi
4052 AS=$ac_cv_prog_AS
4053 if test -n "$AS"; then
4054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4055 $as_echo "$AS" >&6; }
4056 else
4057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4058 $as_echo "no" >&6; }
4059 fi
4060
4061
4062 fi
4063 if test -z "$ac_cv_prog_AS"; then
4064   ac_ct_AS=$AS
4065   # Extract the first word of "as", so it can be a program name with args.
4066 set dummy as; ac_word=$2
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4068 $as_echo_n "checking for $ac_word... " >&6; }
4069 if ${ac_cv_prog_ac_ct_AS+:} false; then :
4070   $as_echo_n "(cached) " >&6
4071 else
4072   if test -n "$ac_ct_AS"; then
4073   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4074 else
4075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076 for as_dir in $PATH
4077 do
4078   IFS=$as_save_IFS
4079   test -z "$as_dir" && as_dir=.
4080     for ac_exec_ext in '' $ac_executable_extensions; do
4081   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4082     ac_cv_prog_ac_ct_AS="as"
4083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4084     break 2
4085   fi
4086 done
4087   done
4088 IFS=$as_save_IFS
4089
4090 fi
4091 fi
4092 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4093 if test -n "$ac_ct_AS"; then
4094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4095 $as_echo "$ac_ct_AS" >&6; }
4096 else
4097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4098 $as_echo "no" >&6; }
4099 fi
4100
4101   if test "x$ac_ct_AS" = x; then
4102     AS="false"
4103   else
4104     case $cross_compiling:$ac_tool_warned in
4105 yes:)
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4108 ac_tool_warned=yes ;;
4109 esac
4110     AS=$ac_ct_AS
4111   fi
4112 else
4113   AS="$ac_cv_prog_AS"
4114 fi
4115
4116   if test -n "$ac_tool_prefix"; then
4117   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4118 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4120 $as_echo_n "checking for $ac_word... " >&6; }
4121 if ${ac_cv_prog_DLLTOOL+:} false; then :
4122   $as_echo_n "(cached) " >&6
4123 else
4124   if test -n "$DLLTOOL"; then
4125   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4126 else
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 for as_dir in $PATH
4129 do
4130   IFS=$as_save_IFS
4131   test -z "$as_dir" && as_dir=.
4132     for ac_exec_ext in '' $ac_executable_extensions; do
4133   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4134     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4136     break 2
4137   fi
4138 done
4139   done
4140 IFS=$as_save_IFS
4141
4142 fi
4143 fi
4144 DLLTOOL=$ac_cv_prog_DLLTOOL
4145 if test -n "$DLLTOOL"; then
4146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4147 $as_echo "$DLLTOOL" >&6; }
4148 else
4149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4150 $as_echo "no" >&6; }
4151 fi
4152
4153
4154 fi
4155 if test -z "$ac_cv_prog_DLLTOOL"; then
4156   ac_ct_DLLTOOL=$DLLTOOL
4157   # Extract the first word of "dlltool", so it can be a program name with args.
4158 set dummy dlltool; ac_word=$2
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4160 $as_echo_n "checking for $ac_word... " >&6; }
4161 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4162   $as_echo_n "(cached) " >&6
4163 else
4164   if test -n "$ac_ct_DLLTOOL"; then
4165   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4166 else
4167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168 for as_dir in $PATH
4169 do
4170   IFS=$as_save_IFS
4171   test -z "$as_dir" && as_dir=.
4172     for ac_exec_ext in '' $ac_executable_extensions; do
4173   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4174     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4175     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4176     break 2
4177   fi
4178 done
4179   done
4180 IFS=$as_save_IFS
4181
4182 fi
4183 fi
4184 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4185 if test -n "$ac_ct_DLLTOOL"; then
4186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4187 $as_echo "$ac_ct_DLLTOOL" >&6; }
4188 else
4189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4190 $as_echo "no" >&6; }
4191 fi
4192
4193   if test "x$ac_ct_DLLTOOL" = x; then
4194     DLLTOOL="false"
4195   else
4196     case $cross_compiling:$ac_tool_warned in
4197 yes:)
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4200 ac_tool_warned=yes ;;
4201 esac
4202     DLLTOOL=$ac_ct_DLLTOOL
4203   fi
4204 else
4205   DLLTOOL="$ac_cv_prog_DLLTOOL"
4206 fi
4207
4208   if test -n "$ac_tool_prefix"; then
4209   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4210 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4212 $as_echo_n "checking for $ac_word... " >&6; }
4213 if ${ac_cv_prog_OBJDUMP+:} false; then :
4214   $as_echo_n "(cached) " >&6
4215 else
4216   if test -n "$OBJDUMP"; then
4217   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4218 else
4219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220 for as_dir in $PATH
4221 do
4222   IFS=$as_save_IFS
4223   test -z "$as_dir" && as_dir=.
4224     for ac_exec_ext in '' $ac_executable_extensions; do
4225   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4226     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4228     break 2
4229   fi
4230 done
4231   done
4232 IFS=$as_save_IFS
4233
4234 fi
4235 fi
4236 OBJDUMP=$ac_cv_prog_OBJDUMP
4237 if test -n "$OBJDUMP"; then
4238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4239 $as_echo "$OBJDUMP" >&6; }
4240 else
4241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4242 $as_echo "no" >&6; }
4243 fi
4244
4245
4246 fi
4247 if test -z "$ac_cv_prog_OBJDUMP"; then
4248   ac_ct_OBJDUMP=$OBJDUMP
4249   # Extract the first word of "objdump", so it can be a program name with args.
4250 set dummy objdump; ac_word=$2
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4252 $as_echo_n "checking for $ac_word... " >&6; }
4253 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4254   $as_echo_n "(cached) " >&6
4255 else
4256   if test -n "$ac_ct_OBJDUMP"; then
4257   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4258 else
4259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260 for as_dir in $PATH
4261 do
4262   IFS=$as_save_IFS
4263   test -z "$as_dir" && as_dir=.
4264     for ac_exec_ext in '' $ac_executable_extensions; do
4265   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4266     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4268     break 2
4269   fi
4270 done
4271   done
4272 IFS=$as_save_IFS
4273
4274 fi
4275 fi
4276 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4277 if test -n "$ac_ct_OBJDUMP"; then
4278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4279 $as_echo "$ac_ct_OBJDUMP" >&6; }
4280 else
4281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4282 $as_echo "no" >&6; }
4283 fi
4284
4285   if test "x$ac_ct_OBJDUMP" = x; then
4286     OBJDUMP="false"
4287   else
4288     case $cross_compiling:$ac_tool_warned in
4289 yes:)
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4292 ac_tool_warned=yes ;;
4293 esac
4294     OBJDUMP=$ac_ct_OBJDUMP
4295   fi
4296 else
4297   OBJDUMP="$ac_cv_prog_OBJDUMP"
4298 fi
4299
4300   ;;
4301 esac
4302
4303 test -z "$AS" && AS=as
4304
4305
4306
4307
4308
4309 test -z "$DLLTOOL" && DLLTOOL=dlltool
4310
4311
4312
4313
4314
4315 test -z "$OBJDUMP" && OBJDUMP=objdump
4316
4317
4318
4319
4320
4321
4322
4323 case `pwd` in
4324   *\ * | *\     *)
4325     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4326 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4327 esac
4328
4329
4330
4331 macro_version='2.4.2'
4332 macro_revision='1.3337'
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346 ltmain="$ac_aux_dir/ltmain.sh"
4347
4348 # Backslashify metacharacters that are still active within
4349 # double-quoted strings.
4350 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4351
4352 # Same as above, but do not quote variable references.
4353 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4354
4355 # Sed substitution to delay expansion of an escaped shell variable in a
4356 # double_quote_subst'ed string.
4357 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4358
4359 # Sed substitution to delay expansion of an escaped single quote.
4360 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4361
4362 # Sed substitution to avoid accidental globbing in evaled expressions
4363 no_glob_subst='s/\*/\\\*/g'
4364
4365 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4366 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4367 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4368
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4370 $as_echo_n "checking how to print strings... " >&6; }
4371 # Test print first, because it will be a builtin if present.
4372 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4373    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4374   ECHO='print -r --'
4375 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4376   ECHO='printf %s\n'
4377 else
4378   # Use this function as a fallback that always works.
4379   func_fallback_echo ()
4380   {
4381     eval 'cat <<_LTECHO_EOF
4382 $1
4383 _LTECHO_EOF'
4384   }
4385   ECHO='func_fallback_echo'
4386 fi
4387
4388 # func_echo_all arg...
4389 # Invoke $ECHO with all args, space-separated.
4390 func_echo_all ()
4391 {
4392     $ECHO ""
4393 }
4394
4395 case "$ECHO" in
4396   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4397 $as_echo "printf" >&6; } ;;
4398   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4399 $as_echo "print -r" >&6; } ;;
4400   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4401 $as_echo "cat" >&6; } ;;
4402 esac
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4418 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4419 if ${ac_cv_path_SED+:} false; then :
4420   $as_echo_n "(cached) " >&6
4421 else
4422             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4423      for ac_i in 1 2 3 4 5 6 7; do
4424        ac_script="$ac_script$as_nl$ac_script"
4425      done
4426      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4427      { ac_script=; unset ac_script;}
4428      if test -z "$SED"; then
4429   ac_path_SED_found=false
4430   # Loop through the user's path and test for each of PROGNAME-LIST
4431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 for as_dir in $PATH
4433 do
4434   IFS=$as_save_IFS
4435   test -z "$as_dir" && as_dir=.
4436     for ac_prog in sed gsed; do
4437     for ac_exec_ext in '' $ac_executable_extensions; do
4438       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4439       as_fn_executable_p "$ac_path_SED" || continue
4440 # Check for GNU ac_path_SED and select it if it is found.
4441   # Check for GNU $ac_path_SED
4442 case `"$ac_path_SED" --version 2>&1` in
4443 *GNU*)
4444   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4445 *)
4446   ac_count=0
4447   $as_echo_n 0123456789 >"conftest.in"
4448   while :
4449   do
4450     cat "conftest.in" "conftest.in" >"conftest.tmp"
4451     mv "conftest.tmp" "conftest.in"
4452     cp "conftest.in" "conftest.nl"
4453     $as_echo '' >> "conftest.nl"
4454     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4455     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4456     as_fn_arith $ac_count + 1 && ac_count=$as_val
4457     if test $ac_count -gt ${ac_path_SED_max-0}; then
4458       # Best one so far, save it but keep looking for a better one
4459       ac_cv_path_SED="$ac_path_SED"
4460       ac_path_SED_max=$ac_count
4461     fi
4462     # 10*(2^10) chars as input seems more than enough
4463     test $ac_count -gt 10 && break
4464   done
4465   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4466 esac
4467
4468       $ac_path_SED_found && break 3
4469     done
4470   done
4471   done
4472 IFS=$as_save_IFS
4473   if test -z "$ac_cv_path_SED"; then
4474     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4475   fi
4476 else
4477   ac_cv_path_SED=$SED
4478 fi
4479
4480 fi
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4482 $as_echo "$ac_cv_path_SED" >&6; }
4483  SED="$ac_cv_path_SED"
4484   rm -f conftest.sed
4485
4486 test -z "$SED" && SED=sed
4487 Xsed="$SED -e 1s/^X//"
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4500 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4501 if ${ac_cv_path_GREP+:} false; then :
4502   $as_echo_n "(cached) " >&6
4503 else
4504   if test -z "$GREP"; then
4505   ac_path_GREP_found=false
4506   # Loop through the user's path and test for each of PROGNAME-LIST
4507   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4509 do
4510   IFS=$as_save_IFS
4511   test -z "$as_dir" && as_dir=.
4512     for ac_prog in grep ggrep; do
4513     for ac_exec_ext in '' $ac_executable_extensions; do
4514       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4515       as_fn_executable_p "$ac_path_GREP" || continue
4516 # Check for GNU ac_path_GREP and select it if it is found.
4517   # Check for GNU $ac_path_GREP
4518 case `"$ac_path_GREP" --version 2>&1` in
4519 *GNU*)
4520   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4521 *)
4522   ac_count=0
4523   $as_echo_n 0123456789 >"conftest.in"
4524   while :
4525   do
4526     cat "conftest.in" "conftest.in" >"conftest.tmp"
4527     mv "conftest.tmp" "conftest.in"
4528     cp "conftest.in" "conftest.nl"
4529     $as_echo 'GREP' >> "conftest.nl"
4530     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4531     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4532     as_fn_arith $ac_count + 1 && ac_count=$as_val
4533     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4534       # Best one so far, save it but keep looking for a better one
4535       ac_cv_path_GREP="$ac_path_GREP"
4536       ac_path_GREP_max=$ac_count
4537     fi
4538     # 10*(2^10) chars as input seems more than enough
4539     test $ac_count -gt 10 && break
4540   done
4541   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4542 esac
4543
4544       $ac_path_GREP_found && break 3
4545     done
4546   done
4547   done
4548 IFS=$as_save_IFS
4549   if test -z "$ac_cv_path_GREP"; then
4550     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4551   fi
4552 else
4553   ac_cv_path_GREP=$GREP
4554 fi
4555
4556 fi
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4558 $as_echo "$ac_cv_path_GREP" >&6; }
4559  GREP="$ac_cv_path_GREP"
4560
4561
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4563 $as_echo_n "checking for egrep... " >&6; }
4564 if ${ac_cv_path_EGREP+:} false; then :
4565   $as_echo_n "(cached) " >&6
4566 else
4567   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4568    then ac_cv_path_EGREP="$GREP -E"
4569    else
4570      if test -z "$EGREP"; then
4571   ac_path_EGREP_found=false
4572   # Loop through the user's path and test for each of PROGNAME-LIST
4573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4575 do
4576   IFS=$as_save_IFS
4577   test -z "$as_dir" && as_dir=.
4578     for ac_prog in egrep; do
4579     for ac_exec_ext in '' $ac_executable_extensions; do
4580       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4581       as_fn_executable_p "$ac_path_EGREP" || continue
4582 # Check for GNU ac_path_EGREP and select it if it is found.
4583   # Check for GNU $ac_path_EGREP
4584 case `"$ac_path_EGREP" --version 2>&1` in
4585 *GNU*)
4586   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4587 *)
4588   ac_count=0
4589   $as_echo_n 0123456789 >"conftest.in"
4590   while :
4591   do
4592     cat "conftest.in" "conftest.in" >"conftest.tmp"
4593     mv "conftest.tmp" "conftest.in"
4594     cp "conftest.in" "conftest.nl"
4595     $as_echo 'EGREP' >> "conftest.nl"
4596     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4597     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4598     as_fn_arith $ac_count + 1 && ac_count=$as_val
4599     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4600       # Best one so far, save it but keep looking for a better one
4601       ac_cv_path_EGREP="$ac_path_EGREP"
4602       ac_path_EGREP_max=$ac_count
4603     fi
4604     # 10*(2^10) chars as input seems more than enough
4605     test $ac_count -gt 10 && break
4606   done
4607   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4608 esac
4609
4610       $ac_path_EGREP_found && break 3
4611     done
4612   done
4613   done
4614 IFS=$as_save_IFS
4615   if test -z "$ac_cv_path_EGREP"; then
4616     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4617   fi
4618 else
4619   ac_cv_path_EGREP=$EGREP
4620 fi
4621
4622    fi
4623 fi
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4625 $as_echo "$ac_cv_path_EGREP" >&6; }
4626  EGREP="$ac_cv_path_EGREP"
4627
4628
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4630 $as_echo_n "checking for fgrep... " >&6; }
4631 if ${ac_cv_path_FGREP+:} false; then :
4632   $as_echo_n "(cached) " >&6
4633 else
4634   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4635    then ac_cv_path_FGREP="$GREP -F"
4636    else
4637      if test -z "$FGREP"; then
4638   ac_path_FGREP_found=false
4639   # Loop through the user's path and test for each of PROGNAME-LIST
4640   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4642 do
4643   IFS=$as_save_IFS
4644   test -z "$as_dir" && as_dir=.
4645     for ac_prog in fgrep; do
4646     for ac_exec_ext in '' $ac_executable_extensions; do
4647       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4648       as_fn_executable_p "$ac_path_FGREP" || continue
4649 # Check for GNU ac_path_FGREP and select it if it is found.
4650   # Check for GNU $ac_path_FGREP
4651 case `"$ac_path_FGREP" --version 2>&1` in
4652 *GNU*)
4653   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4654 *)
4655   ac_count=0
4656   $as_echo_n 0123456789 >"conftest.in"
4657   while :
4658   do
4659     cat "conftest.in" "conftest.in" >"conftest.tmp"
4660     mv "conftest.tmp" "conftest.in"
4661     cp "conftest.in" "conftest.nl"
4662     $as_echo 'FGREP' >> "conftest.nl"
4663     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4664     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4665     as_fn_arith $ac_count + 1 && ac_count=$as_val
4666     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4667       # Best one so far, save it but keep looking for a better one
4668       ac_cv_path_FGREP="$ac_path_FGREP"
4669       ac_path_FGREP_max=$ac_count
4670     fi
4671     # 10*(2^10) chars as input seems more than enough
4672     test $ac_count -gt 10 && break
4673   done
4674   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4675 esac
4676
4677       $ac_path_FGREP_found && break 3
4678     done
4679   done
4680   done
4681 IFS=$as_save_IFS
4682   if test -z "$ac_cv_path_FGREP"; then
4683     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4684   fi
4685 else
4686   ac_cv_path_FGREP=$FGREP
4687 fi
4688
4689    fi
4690 fi
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4692 $as_echo "$ac_cv_path_FGREP" >&6; }
4693  FGREP="$ac_cv_path_FGREP"
4694
4695
4696 test -z "$GREP" && GREP=grep
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716 # Check whether --with-gnu-ld was given.
4717 if test "${with_gnu_ld+set}" = set; then :
4718   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4719 else
4720   with_gnu_ld=no
4721 fi
4722
4723 ac_prog=ld
4724 if test "$GCC" = yes; then
4725   # Check if gcc -print-prog-name=ld gives a path.
4726   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4727 $as_echo_n "checking for ld used by $CC... " >&6; }
4728   case $host in
4729   *-*-mingw*)
4730     # gcc leaves a trailing carriage return which upsets mingw
4731     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4732   *)
4733     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4734   esac
4735   case $ac_prog in
4736     # Accept absolute paths.
4737     [\\/]* | ?:[\\/]*)
4738       re_direlt='/[^/][^/]*/\.\./'
4739       # Canonicalize the pathname of ld
4740       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4741       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4742         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4743       done
4744       test -z "$LD" && LD="$ac_prog"
4745       ;;
4746   "")
4747     # If it fails, then pretend we aren't using GCC.
4748     ac_prog=ld
4749     ;;
4750   *)
4751     # If it is relative, then search for the first ld in PATH.
4752     with_gnu_ld=unknown
4753     ;;
4754   esac
4755 elif test "$with_gnu_ld" = yes; then
4756   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4757 $as_echo_n "checking for GNU ld... " >&6; }
4758 else
4759   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4760 $as_echo_n "checking for non-GNU ld... " >&6; }
4761 fi
4762 if ${lt_cv_path_LD+:} false; then :
4763   $as_echo_n "(cached) " >&6
4764 else
4765   if test -z "$LD"; then
4766   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4767   for ac_dir in $PATH; do
4768     IFS="$lt_save_ifs"
4769     test -z "$ac_dir" && ac_dir=.
4770     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4771       lt_cv_path_LD="$ac_dir/$ac_prog"
4772       # Check to see if the program is GNU ld.  I'd rather use --version,
4773       # but apparently some variants of GNU ld only accept -v.
4774       # Break only if it was the GNU/non-GNU ld that we prefer.
4775       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4776       *GNU* | *'with BFD'*)
4777         test "$with_gnu_ld" != no && break
4778         ;;
4779       *)
4780         test "$with_gnu_ld" != yes && break
4781         ;;
4782       esac
4783     fi
4784   done
4785   IFS="$lt_save_ifs"
4786 else
4787   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4788 fi
4789 fi
4790
4791 LD="$lt_cv_path_LD"
4792 if test -n "$LD"; then
4793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4794 $as_echo "$LD" >&6; }
4795 else
4796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4797 $as_echo "no" >&6; }
4798 fi
4799 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4801 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4802 if ${lt_cv_prog_gnu_ld+:} false; then :
4803   $as_echo_n "(cached) " >&6
4804 else
4805   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4806 case `$LD -v 2>&1 </dev/null` in
4807 *GNU* | *'with BFD'*)
4808   lt_cv_prog_gnu_ld=yes
4809   ;;
4810 *)
4811   lt_cv_prog_gnu_ld=no
4812   ;;
4813 esac
4814 fi
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4816 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4817 with_gnu_ld=$lt_cv_prog_gnu_ld
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4828 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4829 if ${lt_cv_path_NM+:} false; then :
4830   $as_echo_n "(cached) " >&6
4831 else
4832   if test -n "$NM"; then
4833   # Let the user override the test.
4834   lt_cv_path_NM="$NM"
4835 else
4836   lt_nm_to_check="${ac_tool_prefix}nm"
4837   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4838     lt_nm_to_check="$lt_nm_to_check nm"
4839   fi
4840   for lt_tmp_nm in $lt_nm_to_check; do
4841     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4842     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4843       IFS="$lt_save_ifs"
4844       test -z "$ac_dir" && ac_dir=.
4845       tmp_nm="$ac_dir/$lt_tmp_nm"
4846       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4847         # Check to see if the nm accepts a BSD-compat flag.
4848         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4849         #   nm: unknown option "B" ignored
4850         # Tru64's nm complains that /dev/null is an invalid object file
4851         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4852         */dev/null* | *'Invalid file or object type'*)
4853           lt_cv_path_NM="$tmp_nm -B"
4854           break
4855           ;;
4856         *)
4857           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4858           */dev/null*)
4859             lt_cv_path_NM="$tmp_nm -p"
4860             break
4861             ;;
4862           *)
4863             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4864             continue # so that we can try to find one that supports BSD flags
4865             ;;
4866           esac
4867           ;;
4868         esac
4869       fi
4870     done
4871     IFS="$lt_save_ifs"
4872   done
4873   : ${lt_cv_path_NM=no}
4874 fi
4875 fi
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4877 $as_echo "$lt_cv_path_NM" >&6; }
4878 if test "$lt_cv_path_NM" != "no"; then
4879   NM="$lt_cv_path_NM"
4880 else
4881   # Didn't find any BSD compatible name lister, look for dumpbin.
4882   if test -n "$DUMPBIN"; then :
4883     # Let the user override the test.
4884   else
4885     if test -n "$ac_tool_prefix"; then
4886   for ac_prog in dumpbin "link -dump"
4887   do
4888     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4889 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4891 $as_echo_n "checking for $ac_word... " >&6; }
4892 if ${ac_cv_prog_DUMPBIN+:} false; then :
4893   $as_echo_n "(cached) " >&6
4894 else
4895   if test -n "$DUMPBIN"; then
4896   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4897 else
4898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899 for as_dir in $PATH
4900 do
4901   IFS=$as_save_IFS
4902   test -z "$as_dir" && as_dir=.
4903     for ac_exec_ext in '' $ac_executable_extensions; do
4904   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4905     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4906     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4907     break 2
4908   fi
4909 done
4910   done
4911 IFS=$as_save_IFS
4912
4913 fi
4914 fi
4915 DUMPBIN=$ac_cv_prog_DUMPBIN
4916 if test -n "$DUMPBIN"; then
4917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4918 $as_echo "$DUMPBIN" >&6; }
4919 else
4920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4921 $as_echo "no" >&6; }
4922 fi
4923
4924
4925     test -n "$DUMPBIN" && break
4926   done
4927 fi
4928 if test -z "$DUMPBIN"; then
4929   ac_ct_DUMPBIN=$DUMPBIN
4930   for ac_prog in dumpbin "link -dump"
4931 do
4932   # Extract the first word of "$ac_prog", so it can be a program name with args.
4933 set dummy $ac_prog; ac_word=$2
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4935 $as_echo_n "checking for $ac_word... " >&6; }
4936 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4937   $as_echo_n "(cached) " >&6
4938 else
4939   if test -n "$ac_ct_DUMPBIN"; then
4940   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4941 else
4942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943 for as_dir in $PATH
4944 do
4945   IFS=$as_save_IFS
4946   test -z "$as_dir" && as_dir=.
4947     for ac_exec_ext in '' $ac_executable_extensions; do
4948   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4949     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4951     break 2
4952   fi
4953 done
4954   done
4955 IFS=$as_save_IFS
4956
4957 fi
4958 fi
4959 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4960 if test -n "$ac_ct_DUMPBIN"; then
4961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4962 $as_echo "$ac_ct_DUMPBIN" >&6; }
4963 else
4964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4965 $as_echo "no" >&6; }
4966 fi
4967
4968
4969   test -n "$ac_ct_DUMPBIN" && break
4970 done
4971
4972   if test "x$ac_ct_DUMPBIN" = x; then
4973     DUMPBIN=":"
4974   else
4975     case $cross_compiling:$ac_tool_warned in
4976 yes:)
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4979 ac_tool_warned=yes ;;
4980 esac
4981     DUMPBIN=$ac_ct_DUMPBIN
4982   fi
4983 fi
4984
4985     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4986     *COFF*)
4987       DUMPBIN="$DUMPBIN -symbols"
4988       ;;
4989     *)
4990       DUMPBIN=:
4991       ;;
4992     esac
4993   fi
4994
4995   if test "$DUMPBIN" != ":"; then
4996     NM="$DUMPBIN"
4997   fi
4998 fi
4999 test -z "$NM" && NM=nm
5000
5001
5002
5003
5004
5005
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5007 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5008 if ${lt_cv_nm_interface+:} false; then :
5009   $as_echo_n "(cached) " >&6
5010 else
5011   lt_cv_nm_interface="BSD nm"
5012   echo "int some_variable = 0;" > conftest.$ac_ext
5013   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5014   (eval "$ac_compile" 2>conftest.err)
5015   cat conftest.err >&5
5016   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5017   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5018   cat conftest.err >&5
5019   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5020   cat conftest.out >&5
5021   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5022     lt_cv_nm_interface="MS dumpbin"
5023   fi
5024   rm -f conftest*
5025 fi
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5027 $as_echo "$lt_cv_nm_interface" >&6; }
5028
5029 # find the maximum length of command line arguments
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5031 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5032 if ${lt_cv_sys_max_cmd_len+:} false; then :
5033   $as_echo_n "(cached) " >&6
5034 else
5035     i=0
5036   teststring="ABCD"
5037
5038   case $build_os in
5039   msdosdjgpp*)
5040     # On DJGPP, this test can blow up pretty badly due to problems in libc
5041     # (any single argument exceeding 2000 bytes causes a buffer overrun
5042     # during glob expansion).  Even if it were fixed, the result of this
5043     # check would be larger than it should be.
5044     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5045     ;;
5046
5047   gnu*)
5048     # Under GNU Hurd, this test is not required because there is
5049     # no limit to the length of command line arguments.
5050     # Libtool will interpret -1 as no limit whatsoever
5051     lt_cv_sys_max_cmd_len=-1;
5052     ;;
5053
5054   cygwin* | mingw* | cegcc*)
5055     # On Win9x/ME, this test blows up -- it succeeds, but takes
5056     # about 5 minutes as the teststring grows exponentially.
5057     # Worse, since 9x/ME are not pre-emptively multitasking,
5058     # you end up with a "frozen" computer, even though with patience
5059     # the test eventually succeeds (with a max line length of 256k).
5060     # Instead, let's just punt: use the minimum linelength reported by
5061     # all of the supported platforms: 8192 (on NT/2K/XP).
5062     lt_cv_sys_max_cmd_len=8192;
5063     ;;
5064
5065   mint*)
5066     # On MiNT this can take a long time and run out of memory.
5067     lt_cv_sys_max_cmd_len=8192;
5068     ;;
5069
5070   amigaos*)
5071     # On AmigaOS with pdksh, this test takes hours, literally.
5072     # So we just punt and use a minimum line length of 8192.
5073     lt_cv_sys_max_cmd_len=8192;
5074     ;;
5075
5076   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5077     # This has been around since 386BSD, at least.  Likely further.
5078     if test -x /sbin/sysctl; then
5079       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5080     elif test -x /usr/sbin/sysctl; then
5081       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5082     else
5083       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5084     fi
5085     # And add a safety zone
5086     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5087     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5088     ;;
5089
5090   interix*)
5091     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5092     lt_cv_sys_max_cmd_len=196608
5093     ;;
5094
5095   os2*)
5096     # The test takes a long time on OS/2.
5097     lt_cv_sys_max_cmd_len=8192
5098     ;;
5099
5100   osf*)
5101     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5102     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5103     # nice to cause kernel panics so lets avoid the loop below.
5104     # First set a reasonable default.
5105     lt_cv_sys_max_cmd_len=16384
5106     #
5107     if test -x /sbin/sysconfig; then
5108       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5109         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5110       esac
5111     fi
5112     ;;
5113   sco3.2v5*)
5114     lt_cv_sys_max_cmd_len=102400
5115     ;;
5116   sysv5* | sco5v6* | sysv4.2uw2*)
5117     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5118     if test -n "$kargmax"; then
5119       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5120     else
5121       lt_cv_sys_max_cmd_len=32768
5122     fi
5123     ;;
5124   *)
5125     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5126     if test -n "$lt_cv_sys_max_cmd_len"; then
5127       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5128       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5129     else
5130       # Make teststring a little bigger before we do anything with it.
5131       # a 1K string should be a reasonable start.
5132       for i in 1 2 3 4 5 6 7 8 ; do
5133         teststring=$teststring$teststring
5134       done
5135       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5136       # If test is not a shell built-in, we'll probably end up computing a
5137       # maximum length that is only half of the actual maximum length, but
5138       # we can't tell.
5139       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5140                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5141               test $i != 17 # 1/2 MB should be enough
5142       do
5143         i=`expr $i + 1`
5144         teststring=$teststring$teststring
5145       done
5146       # Only check the string length outside the loop.
5147       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5148       teststring=
5149       # Add a significant safety factor because C++ compilers can tack on
5150       # massive amounts of additional arguments before passing them to the
5151       # linker.  It appears as though 1/2 is a usable value.
5152       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5153     fi
5154     ;;
5155   esac
5156
5157 fi
5158
5159 if test -n $lt_cv_sys_max_cmd_len ; then
5160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5161 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5162 else
5163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5164 $as_echo "none" >&6; }
5165 fi
5166 max_cmd_len=$lt_cv_sys_max_cmd_len
5167
5168
5169
5170
5171
5172
5173 : ${CP="cp -f"}
5174 : ${MV="mv -f"}
5175 : ${RM="rm -f"}
5176
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5178 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5179 # Try some XSI features
5180 xsi_shell=no
5181 ( _lt_dummy="a/b/c"
5182   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5183       = c,a/b,b/c, \
5184     && eval 'test $(( 1 + 1 )) -eq 2 \
5185     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5186   && xsi_shell=yes
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5188 $as_echo "$xsi_shell" >&6; }
5189
5190
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5192 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5193 lt_shell_append=no
5194 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5195     >/dev/null 2>&1 \
5196   && lt_shell_append=yes
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5198 $as_echo "$lt_shell_append" >&6; }
5199
5200
5201 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5202   lt_unset=unset
5203 else
5204   lt_unset=false
5205 fi
5206
5207
5208
5209
5210
5211 # test EBCDIC or ASCII
5212 case `echo X|tr X '\101'` in
5213  A) # ASCII based system
5214     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5215   lt_SP2NL='tr \040 \012'
5216   lt_NL2SP='tr \015\012 \040\040'
5217   ;;
5218  *) # EBCDIC based system
5219   lt_SP2NL='tr \100 \n'
5220   lt_NL2SP='tr \r\n \100\100'
5221   ;;
5222 esac
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5233 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5234 if ${lt_cv_to_host_file_cmd+:} false; then :
5235   $as_echo_n "(cached) " >&6
5236 else
5237   case $host in
5238   *-*-mingw* )
5239     case $build in
5240       *-*-mingw* ) # actually msys
5241         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5242         ;;
5243       *-*-cygwin* )
5244         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5245         ;;
5246       * ) # otherwise, assume *nix
5247         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5248         ;;
5249     esac
5250     ;;
5251   *-*-cygwin* )
5252     case $build in
5253       *-*-mingw* ) # actually msys
5254         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5255         ;;
5256       *-*-cygwin* )
5257         lt_cv_to_host_file_cmd=func_convert_file_noop
5258         ;;
5259       * ) # otherwise, assume *nix
5260         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5261         ;;
5262     esac
5263     ;;
5264   * ) # unhandled hosts (and "normal" native builds)
5265     lt_cv_to_host_file_cmd=func_convert_file_noop
5266     ;;
5267 esac
5268
5269 fi
5270
5271 to_host_file_cmd=$lt_cv_to_host_file_cmd
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5273 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5274
5275
5276
5277
5278
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5280 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5281 if ${lt_cv_to_tool_file_cmd+:} false; then :
5282   $as_echo_n "(cached) " >&6
5283 else
5284   #assume ordinary cross tools, or native build.
5285 lt_cv_to_tool_file_cmd=func_convert_file_noop
5286 case $host in
5287   *-*-mingw* )
5288     case $build in
5289       *-*-mingw* ) # actually msys
5290         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5291         ;;
5292     esac
5293     ;;
5294 esac
5295
5296 fi
5297
5298 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5300 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5301
5302
5303
5304
5305
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5307 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5308 if ${lt_cv_ld_reload_flag+:} false; then :
5309   $as_echo_n "(cached) " >&6
5310 else
5311   lt_cv_ld_reload_flag='-r'
5312 fi
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5314 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5315 reload_flag=$lt_cv_ld_reload_flag
5316 case $reload_flag in
5317 "" | " "*) ;;
5318 *) reload_flag=" $reload_flag" ;;
5319 esac
5320 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5321 case $host_os in
5322   cygwin* | mingw* | pw32* | cegcc*)
5323     if test "$GCC" != yes; then
5324       reload_cmds=false
5325     fi
5326     ;;
5327   darwin*)
5328     if test "$GCC" = yes; then
5329       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5330     else
5331       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5332     fi
5333     ;;
5334 esac
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344 if test -n "$ac_tool_prefix"; then
5345   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5346 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5348 $as_echo_n "checking for $ac_word... " >&6; }
5349 if ${ac_cv_prog_OBJDUMP+:} false; then :
5350   $as_echo_n "(cached) " >&6
5351 else
5352   if test -n "$OBJDUMP"; then
5353   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5354 else
5355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356 for as_dir in $PATH
5357 do
5358   IFS=$as_save_IFS
5359   test -z "$as_dir" && as_dir=.
5360     for ac_exec_ext in '' $ac_executable_extensions; do
5361   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5362     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5364     break 2
5365   fi
5366 done
5367   done
5368 IFS=$as_save_IFS
5369
5370 fi
5371 fi
5372 OBJDUMP=$ac_cv_prog_OBJDUMP
5373 if test -n "$OBJDUMP"; then
5374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5375 $as_echo "$OBJDUMP" >&6; }
5376 else
5377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5378 $as_echo "no" >&6; }
5379 fi
5380
5381
5382 fi
5383 if test -z "$ac_cv_prog_OBJDUMP"; then
5384   ac_ct_OBJDUMP=$OBJDUMP
5385   # Extract the first word of "objdump", so it can be a program name with args.
5386 set dummy objdump; ac_word=$2
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5388 $as_echo_n "checking for $ac_word... " >&6; }
5389 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5390   $as_echo_n "(cached) " >&6
5391 else
5392   if test -n "$ac_ct_OBJDUMP"; then
5393   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5394 else
5395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396 for as_dir in $PATH
5397 do
5398   IFS=$as_save_IFS
5399   test -z "$as_dir" && as_dir=.
5400     for ac_exec_ext in '' $ac_executable_extensions; do
5401   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5402     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5404     break 2
5405   fi
5406 done
5407   done
5408 IFS=$as_save_IFS
5409
5410 fi
5411 fi
5412 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5413 if test -n "$ac_ct_OBJDUMP"; then
5414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5415 $as_echo "$ac_ct_OBJDUMP" >&6; }
5416 else
5417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5418 $as_echo "no" >&6; }
5419 fi
5420
5421   if test "x$ac_ct_OBJDUMP" = x; then
5422     OBJDUMP="false"
5423   else
5424     case $cross_compiling:$ac_tool_warned in
5425 yes:)
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5428 ac_tool_warned=yes ;;
5429 esac
5430     OBJDUMP=$ac_ct_OBJDUMP
5431   fi
5432 else
5433   OBJDUMP="$ac_cv_prog_OBJDUMP"
5434 fi
5435
5436 test -z "$OBJDUMP" && OBJDUMP=objdump
5437
5438
5439
5440
5441
5442
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5444 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5445 if ${lt_cv_deplibs_check_method+:} false; then :
5446   $as_echo_n "(cached) " >&6
5447 else
5448   lt_cv_file_magic_cmd='$MAGIC_CMD'
5449 lt_cv_file_magic_test_file=
5450 lt_cv_deplibs_check_method='unknown'
5451 # Need to set the preceding variable on all platforms that support
5452 # interlibrary dependencies.
5453 # 'none' -- dependencies not supported.
5454 # `unknown' -- same as none, but documents that we really don't know.
5455 # 'pass_all' -- all dependencies passed with no checks.
5456 # 'test_compile' -- check by making test program.
5457 # 'file_magic [[regex]]' -- check by looking for files in library path
5458 # which responds to the $file_magic_cmd with a given extended regex.
5459 # If you have `file' or equivalent on your system and you're not sure
5460 # whether `pass_all' will *always* work, you probably want this one.
5461
5462 case $host_os in
5463 aix[4-9]*)
5464   lt_cv_deplibs_check_method=pass_all
5465   ;;
5466
5467 beos*)
5468   lt_cv_deplibs_check_method=pass_all
5469   ;;
5470
5471 bsdi[45]*)
5472   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5473   lt_cv_file_magic_cmd='/usr/bin/file -L'
5474   lt_cv_file_magic_test_file=/shlib/libc.so
5475   ;;
5476
5477 cygwin*)
5478   # func_win32_libid is a shell function defined in ltmain.sh
5479   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5480   lt_cv_file_magic_cmd='func_win32_libid'
5481   ;;
5482
5483 mingw* | pw32*)
5484   # Base MSYS/MinGW do not provide the 'file' command needed by
5485   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5486   # unless we find 'file', for example because we are cross-compiling.
5487   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5488   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5489     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5490     lt_cv_file_magic_cmd='func_win32_libid'
5491   else
5492     # Keep this pattern in sync with the one in func_win32_libid.
5493     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5494     lt_cv_file_magic_cmd='$OBJDUMP -f'
5495   fi
5496   ;;
5497
5498 cegcc*)
5499   # use the weaker test based on 'objdump'. See mingw*.
5500   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5501   lt_cv_file_magic_cmd='$OBJDUMP -f'
5502   ;;
5503
5504 darwin* | rhapsody*)
5505   lt_cv_deplibs_check_method=pass_all
5506   ;;
5507
5508 freebsd* | dragonfly*)
5509   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5510     case $host_cpu in
5511     i*86 )
5512       # Not sure whether the presence of OpenBSD here was a mistake.
5513       # Let's accept both of them until this is cleared up.
5514       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5515       lt_cv_file_magic_cmd=/usr/bin/file
5516       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5517       ;;
5518     esac
5519   else
5520     lt_cv_deplibs_check_method=pass_all
5521   fi
5522   ;;
5523
5524 gnu*)
5525   lt_cv_deplibs_check_method=pass_all
5526   ;;
5527
5528 haiku*)
5529   lt_cv_deplibs_check_method=pass_all
5530   ;;
5531
5532 hpux10.20* | hpux11*)
5533   lt_cv_file_magic_cmd=/usr/bin/file
5534   case $host_cpu in
5535   ia64*)
5536     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5537     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5538     ;;
5539   hppa*64*)
5540     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5541     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5542     ;;
5543   *)
5544     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5545     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5546     ;;
5547   esac
5548   ;;
5549
5550 interix[3-9]*)
5551   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5552   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5553   ;;
5554
5555 irix5* | irix6* | nonstopux*)
5556   case $LD in
5557   *-32|*"-32 ") libmagic=32-bit;;
5558   *-n32|*"-n32 ") libmagic=N32;;
5559   *-64|*"-64 ") libmagic=64-bit;;
5560   *) libmagic=never-match;;
5561   esac
5562   lt_cv_deplibs_check_method=pass_all
5563   ;;
5564
5565 # This must be glibc/ELF.
5566 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5567   lt_cv_deplibs_check_method=pass_all
5568   ;;
5569
5570 netbsd*)
5571   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5572     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5573   else
5574     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5575   fi
5576   ;;
5577
5578 newos6*)
5579   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5580   lt_cv_file_magic_cmd=/usr/bin/file
5581   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5582   ;;
5583
5584 *nto* | *qnx*)
5585   lt_cv_deplibs_check_method=pass_all
5586   ;;
5587
5588 openbsd*)
5589   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5590     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5591   else
5592     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5593   fi
5594   ;;
5595
5596 osf3* | osf4* | osf5*)
5597   lt_cv_deplibs_check_method=pass_all
5598   ;;
5599
5600 rdos*)
5601   lt_cv_deplibs_check_method=pass_all
5602   ;;
5603
5604 solaris*)
5605   lt_cv_deplibs_check_method=pass_all
5606   ;;
5607
5608 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5609   lt_cv_deplibs_check_method=pass_all
5610   ;;
5611
5612 sysv4 | sysv4.3*)
5613   case $host_vendor in
5614   motorola)
5615     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]'
5616     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5617     ;;
5618   ncr)
5619     lt_cv_deplibs_check_method=pass_all
5620     ;;
5621   sequent)
5622     lt_cv_file_magic_cmd='/bin/file'
5623     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5624     ;;
5625   sni)
5626     lt_cv_file_magic_cmd='/bin/file'
5627     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5628     lt_cv_file_magic_test_file=/lib/libc.so
5629     ;;
5630   siemens)
5631     lt_cv_deplibs_check_method=pass_all
5632     ;;
5633   pc)
5634     lt_cv_deplibs_check_method=pass_all
5635     ;;
5636   esac
5637   ;;
5638
5639 tpf*)
5640   lt_cv_deplibs_check_method=pass_all
5641   ;;
5642 esac
5643
5644 fi
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5646 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5647
5648 file_magic_glob=
5649 want_nocaseglob=no
5650 if test "$build" = "$host"; then
5651   case $host_os in
5652   mingw* | pw32*)
5653     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5654       want_nocaseglob=yes
5655     else
5656       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5657     fi
5658     ;;
5659   esac
5660 fi
5661
5662 file_magic_cmd=$lt_cv_file_magic_cmd
5663 deplibs_check_method=$lt_cv_deplibs_check_method
5664 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687 if test -n "$ac_tool_prefix"; then
5688   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5689 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5691 $as_echo_n "checking for $ac_word... " >&6; }
5692 if ${ac_cv_prog_DLLTOOL+:} false; then :
5693   $as_echo_n "(cached) " >&6
5694 else
5695   if test -n "$DLLTOOL"; then
5696   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5697 else
5698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699 for as_dir in $PATH
5700 do
5701   IFS=$as_save_IFS
5702   test -z "$as_dir" && as_dir=.
5703     for ac_exec_ext in '' $ac_executable_extensions; do
5704   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5705     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5707     break 2
5708   fi
5709 done
5710   done
5711 IFS=$as_save_IFS
5712
5713 fi
5714 fi
5715 DLLTOOL=$ac_cv_prog_DLLTOOL
5716 if test -n "$DLLTOOL"; then
5717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5718 $as_echo "$DLLTOOL" >&6; }
5719 else
5720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5721 $as_echo "no" >&6; }
5722 fi
5723
5724
5725 fi
5726 if test -z "$ac_cv_prog_DLLTOOL"; then
5727   ac_ct_DLLTOOL=$DLLTOOL
5728   # Extract the first word of "dlltool", so it can be a program name with args.
5729 set dummy dlltool; ac_word=$2
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5731 $as_echo_n "checking for $ac_word... " >&6; }
5732 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5733   $as_echo_n "(cached) " >&6
5734 else
5735   if test -n "$ac_ct_DLLTOOL"; then
5736   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5737 else
5738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739 for as_dir in $PATH
5740 do
5741   IFS=$as_save_IFS
5742   test -z "$as_dir" && as_dir=.
5743     for ac_exec_ext in '' $ac_executable_extensions; do
5744   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5745     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5747     break 2
5748   fi
5749 done
5750   done
5751 IFS=$as_save_IFS
5752
5753 fi
5754 fi
5755 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5756 if test -n "$ac_ct_DLLTOOL"; then
5757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5758 $as_echo "$ac_ct_DLLTOOL" >&6; }
5759 else
5760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5761 $as_echo "no" >&6; }
5762 fi
5763
5764   if test "x$ac_ct_DLLTOOL" = x; then
5765     DLLTOOL="false"
5766   else
5767     case $cross_compiling:$ac_tool_warned in
5768 yes:)
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5771 ac_tool_warned=yes ;;
5772 esac
5773     DLLTOOL=$ac_ct_DLLTOOL
5774   fi
5775 else
5776   DLLTOOL="$ac_cv_prog_DLLTOOL"
5777 fi
5778
5779 test -z "$DLLTOOL" && DLLTOOL=dlltool
5780
5781
5782
5783
5784
5785
5786
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5788 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5789 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5790   $as_echo_n "(cached) " >&6
5791 else
5792   lt_cv_sharedlib_from_linklib_cmd='unknown'
5793
5794 case $host_os in
5795 cygwin* | mingw* | pw32* | cegcc*)
5796   # two different shell functions defined in ltmain.sh
5797   # decide which to use based on capabilities of $DLLTOOL
5798   case `$DLLTOOL --help 2>&1` in
5799   *--identify-strict*)
5800     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5801     ;;
5802   *)
5803     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5804     ;;
5805   esac
5806   ;;
5807 *)
5808   # fallback: assume linklib IS sharedlib
5809   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5810   ;;
5811 esac
5812
5813 fi
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5815 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5816 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5817 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5818
5819
5820
5821
5822
5823
5824
5825
5826 if test -n "$ac_tool_prefix"; then
5827   for ac_prog in ar
5828   do
5829     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5830 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5832 $as_echo_n "checking for $ac_word... " >&6; }
5833 if ${ac_cv_prog_AR+:} false; then :
5834   $as_echo_n "(cached) " >&6
5835 else
5836   if test -n "$AR"; then
5837   ac_cv_prog_AR="$AR" # Let the user override the test.
5838 else
5839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840 for as_dir in $PATH
5841 do
5842   IFS=$as_save_IFS
5843   test -z "$as_dir" && as_dir=.
5844     for ac_exec_ext in '' $ac_executable_extensions; do
5845   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5846     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5847     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5848     break 2
5849   fi
5850 done
5851   done
5852 IFS=$as_save_IFS
5853
5854 fi
5855 fi
5856 AR=$ac_cv_prog_AR
5857 if test -n "$AR"; then
5858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5859 $as_echo "$AR" >&6; }
5860 else
5861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5862 $as_echo "no" >&6; }
5863 fi
5864
5865
5866     test -n "$AR" && break
5867   done
5868 fi
5869 if test -z "$AR"; then
5870   ac_ct_AR=$AR
5871   for ac_prog in ar
5872 do
5873   # Extract the first word of "$ac_prog", so it can be a program name with args.
5874 set dummy $ac_prog; ac_word=$2
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5876 $as_echo_n "checking for $ac_word... " >&6; }
5877 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5878   $as_echo_n "(cached) " >&6
5879 else
5880   if test -n "$ac_ct_AR"; then
5881   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5882 else
5883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884 for as_dir in $PATH
5885 do
5886   IFS=$as_save_IFS
5887   test -z "$as_dir" && as_dir=.
5888     for ac_exec_ext in '' $ac_executable_extensions; do
5889   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5890     ac_cv_prog_ac_ct_AR="$ac_prog"
5891     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5892     break 2
5893   fi
5894 done
5895   done
5896 IFS=$as_save_IFS
5897
5898 fi
5899 fi
5900 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5901 if test -n "$ac_ct_AR"; then
5902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5903 $as_echo "$ac_ct_AR" >&6; }
5904 else
5905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906 $as_echo "no" >&6; }
5907 fi
5908
5909
5910   test -n "$ac_ct_AR" && break
5911 done
5912
5913   if test "x$ac_ct_AR" = x; then
5914     AR="false"
5915   else
5916     case $cross_compiling:$ac_tool_warned in
5917 yes:)
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5920 ac_tool_warned=yes ;;
5921 esac
5922     AR=$ac_ct_AR
5923   fi
5924 fi
5925
5926 : ${AR=ar}
5927 : ${AR_FLAGS=cru}
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5940 $as_echo_n "checking for archiver @FILE support... " >&6; }
5941 if ${lt_cv_ar_at_file+:} false; then :
5942   $as_echo_n "(cached) " >&6
5943 else
5944   lt_cv_ar_at_file=no
5945    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5946 /* end confdefs.h.  */
5947
5948 int
5949 main ()
5950 {
5951
5952   ;
5953   return 0;
5954 }
5955 _ACEOF
5956 if ac_fn_c_try_compile "$LINENO"; then :
5957   echo conftest.$ac_objext > conftest.lst
5958       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5959       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5960   (eval $lt_ar_try) 2>&5
5961   ac_status=$?
5962   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5963   test $ac_status = 0; }
5964       if test "$ac_status" -eq 0; then
5965         # Ensure the archiver fails upon bogus file names.
5966         rm -f conftest.$ac_objext libconftest.a
5967         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5968   (eval $lt_ar_try) 2>&5
5969   ac_status=$?
5970   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5971   test $ac_status = 0; }
5972         if test "$ac_status" -ne 0; then
5973           lt_cv_ar_at_file=@
5974         fi
5975       fi
5976       rm -f conftest.* libconftest.a
5977
5978 fi
5979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5980
5981 fi
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5983 $as_echo "$lt_cv_ar_at_file" >&6; }
5984
5985 if test "x$lt_cv_ar_at_file" = xno; then
5986   archiver_list_spec=
5987 else
5988   archiver_list_spec=$lt_cv_ar_at_file
5989 fi
5990
5991
5992
5993
5994
5995
5996
5997 if test -n "$ac_tool_prefix"; then
5998   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5999 set dummy ${ac_tool_prefix}strip; ac_word=$2
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6001 $as_echo_n "checking for $ac_word... " >&6; }
6002 if ${ac_cv_prog_STRIP+:} false; then :
6003   $as_echo_n "(cached) " >&6
6004 else
6005   if test -n "$STRIP"; then
6006   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6007 else
6008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009 for as_dir in $PATH
6010 do
6011   IFS=$as_save_IFS
6012   test -z "$as_dir" && as_dir=.
6013     for ac_exec_ext in '' $ac_executable_extensions; do
6014   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6015     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6016     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6017     break 2
6018   fi
6019 done
6020   done
6021 IFS=$as_save_IFS
6022
6023 fi
6024 fi
6025 STRIP=$ac_cv_prog_STRIP
6026 if test -n "$STRIP"; then
6027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6028 $as_echo "$STRIP" >&6; }
6029 else
6030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6031 $as_echo "no" >&6; }
6032 fi
6033
6034
6035 fi
6036 if test -z "$ac_cv_prog_STRIP"; then
6037   ac_ct_STRIP=$STRIP
6038   # Extract the first word of "strip", so it can be a program name with args.
6039 set dummy strip; ac_word=$2
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6041 $as_echo_n "checking for $ac_word... " >&6; }
6042 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6043   $as_echo_n "(cached) " >&6
6044 else
6045   if test -n "$ac_ct_STRIP"; then
6046   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6047 else
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049 for as_dir in $PATH
6050 do
6051   IFS=$as_save_IFS
6052   test -z "$as_dir" && as_dir=.
6053     for ac_exec_ext in '' $ac_executable_extensions; do
6054   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6055     ac_cv_prog_ac_ct_STRIP="strip"
6056     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6057     break 2
6058   fi
6059 done
6060   done
6061 IFS=$as_save_IFS
6062
6063 fi
6064 fi
6065 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6066 if test -n "$ac_ct_STRIP"; then
6067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6068 $as_echo "$ac_ct_STRIP" >&6; }
6069 else
6070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6071 $as_echo "no" >&6; }
6072 fi
6073
6074   if test "x$ac_ct_STRIP" = x; then
6075     STRIP=":"
6076   else
6077     case $cross_compiling:$ac_tool_warned in
6078 yes:)
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6081 ac_tool_warned=yes ;;
6082 esac
6083     STRIP=$ac_ct_STRIP
6084   fi
6085 else
6086   STRIP="$ac_cv_prog_STRIP"
6087 fi
6088
6089 test -z "$STRIP" && STRIP=:
6090
6091
6092
6093
6094
6095
6096 if test -n "$ac_tool_prefix"; then
6097   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6098 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6100 $as_echo_n "checking for $ac_word... " >&6; }
6101 if ${ac_cv_prog_RANLIB+:} false; then :
6102   $as_echo_n "(cached) " >&6
6103 else
6104   if test -n "$RANLIB"; then
6105   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6106 else
6107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6108 for as_dir in $PATH
6109 do
6110   IFS=$as_save_IFS
6111   test -z "$as_dir" && as_dir=.
6112     for ac_exec_ext in '' $ac_executable_extensions; do
6113   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6114     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6115     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6116     break 2
6117   fi
6118 done
6119   done
6120 IFS=$as_save_IFS
6121
6122 fi
6123 fi
6124 RANLIB=$ac_cv_prog_RANLIB
6125 if test -n "$RANLIB"; then
6126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6127 $as_echo "$RANLIB" >&6; }
6128 else
6129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6130 $as_echo "no" >&6; }
6131 fi
6132
6133
6134 fi
6135 if test -z "$ac_cv_prog_RANLIB"; then
6136   ac_ct_RANLIB=$RANLIB
6137   # Extract the first word of "ranlib", so it can be a program name with args.
6138 set dummy ranlib; ac_word=$2
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6140 $as_echo_n "checking for $ac_word... " >&6; }
6141 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6142   $as_echo_n "(cached) " >&6
6143 else
6144   if test -n "$ac_ct_RANLIB"; then
6145   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6146 else
6147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148 for as_dir in $PATH
6149 do
6150   IFS=$as_save_IFS
6151   test -z "$as_dir" && as_dir=.
6152     for ac_exec_ext in '' $ac_executable_extensions; do
6153   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6154     ac_cv_prog_ac_ct_RANLIB="ranlib"
6155     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6156     break 2
6157   fi
6158 done
6159   done
6160 IFS=$as_save_IFS
6161
6162 fi
6163 fi
6164 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6165 if test -n "$ac_ct_RANLIB"; then
6166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6167 $as_echo "$ac_ct_RANLIB" >&6; }
6168 else
6169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6170 $as_echo "no" >&6; }
6171 fi
6172
6173   if test "x$ac_ct_RANLIB" = x; then
6174     RANLIB=":"
6175   else
6176     case $cross_compiling:$ac_tool_warned in
6177 yes:)
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6180 ac_tool_warned=yes ;;
6181 esac
6182     RANLIB=$ac_ct_RANLIB
6183   fi
6184 else
6185   RANLIB="$ac_cv_prog_RANLIB"
6186 fi
6187
6188 test -z "$RANLIB" && RANLIB=:
6189
6190
6191
6192
6193
6194
6195 # Determine commands to create old-style static archives.
6196 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6197 old_postinstall_cmds='chmod 644 $oldlib'
6198 old_postuninstall_cmds=
6199
6200 if test -n "$RANLIB"; then
6201   case $host_os in
6202   openbsd*)
6203     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6204     ;;
6205   *)
6206     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6207     ;;
6208   esac
6209   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6210 fi
6211
6212 case $host_os in
6213   darwin*)
6214     lock_old_archive_extraction=yes ;;
6215   *)
6216     lock_old_archive_extraction=no ;;
6217 esac
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257 # If no C compiler was specified, use CC.
6258 LTCC=${LTCC-"$CC"}
6259
6260 # If no C compiler flags were specified, use CFLAGS.
6261 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6262
6263 # Allow CC to be a program name with arguments.
6264 compiler=$CC
6265
6266
6267 # Check for command to grab the raw symbol name followed by C symbol from nm.
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6269 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6270 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6271   $as_echo_n "(cached) " >&6
6272 else
6273
6274 # These are sane defaults that work on at least a few old systems.
6275 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6276
6277 # Character class describing NM global symbol codes.
6278 symcode='[BCDEGRST]'
6279
6280 # Regexp to match symbols that can be accessed directly from C.
6281 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6282
6283 # Define system-specific variables.
6284 case $host_os in
6285 aix*)
6286   symcode='[BCDT]'
6287   ;;
6288 cygwin* | mingw* | pw32* | cegcc*)
6289   symcode='[ABCDGISTW]'
6290   ;;
6291 hpux*)
6292   if test "$host_cpu" = ia64; then
6293     symcode='[ABCDEGRST]'
6294   fi
6295   ;;
6296 irix* | nonstopux*)
6297   symcode='[BCDEGRST]'
6298   ;;
6299 osf*)
6300   symcode='[BCDEGQRST]'
6301   ;;
6302 solaris*)
6303   symcode='[BDRT]'
6304   ;;
6305 sco3.2v5*)
6306   symcode='[DT]'
6307   ;;
6308 sysv4.2uw2*)
6309   symcode='[DT]'
6310   ;;
6311 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6312   symcode='[ABDT]'
6313   ;;
6314 sysv4)
6315   symcode='[DFNSTU]'
6316   ;;
6317 esac
6318
6319 # If we're using GNU nm, then use its standard symbol codes.
6320 case `$NM -V 2>&1` in
6321 *GNU* | *'with BFD'*)
6322   symcode='[ABCDGIRSTW]' ;;
6323 esac
6324
6325 # Transform an extracted symbol line into a proper C declaration.
6326 # Some systems (esp. on ia64) link data and code symbols differently,
6327 # so use this general approach.
6328 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6329
6330 # Transform an extracted symbol line into symbol name and symbol address
6331 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6332 lt_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'"
6333
6334 # Handle CRLF in mingw tool chain
6335 opt_cr=
6336 case $build_os in
6337 mingw*)
6338   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6339   ;;
6340 esac
6341
6342 # Try without a prefix underscore, then with it.
6343 for ac_symprfx in "" "_"; do
6344
6345   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6346   symxfrm="\\1 $ac_symprfx\\2 \\2"
6347
6348   # Write the raw and C identifiers.
6349   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6350     # Fake it for dumpbin and say T for any non-static function
6351     # and D for any global variable.
6352     # Also find C++ and __fastcall symbols from MSVC++,
6353     # which start with @ or ?.
6354     lt_cv_sys_global_symbol_pipe="$AWK '"\
6355 "     {last_section=section; section=\$ 3};"\
6356 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6357 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6358 "     \$ 0!~/External *\|/{next};"\
6359 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6360 "     {if(hide[section]) next};"\
6361 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6362 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6363 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6364 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6365 "     ' prfx=^$ac_symprfx"
6366   else
6367     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6368   fi
6369   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6370
6371   # Check to see that the pipe works correctly.
6372   pipe_works=no
6373
6374   rm -f conftest*
6375   cat > conftest.$ac_ext <<_LT_EOF
6376 #ifdef __cplusplus
6377 extern "C" {
6378 #endif
6379 char nm_test_var;
6380 void nm_test_func(void);
6381 void nm_test_func(void){}
6382 #ifdef __cplusplus
6383 }
6384 #endif
6385 int main(){nm_test_var='a';nm_test_func();return(0);}
6386 _LT_EOF
6387
6388   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6389   (eval $ac_compile) 2>&5
6390   ac_status=$?
6391   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6392   test $ac_status = 0; }; then
6393     # Now try to grab the symbols.
6394     nlist=conftest.nm
6395     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6396   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6397   ac_status=$?
6398   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6399   test $ac_status = 0; } && test -s "$nlist"; then
6400       # Try sorting and uniquifying the output.
6401       if sort "$nlist" | uniq > "$nlist"T; then
6402         mv -f "$nlist"T "$nlist"
6403       else
6404         rm -f "$nlist"T
6405       fi
6406
6407       # Make sure that we snagged all the symbols we need.
6408       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6409         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6410           cat <<_LT_EOF > conftest.$ac_ext
6411 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6412 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6413 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6414    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6415 # define LT_DLSYM_CONST
6416 #elif defined(__osf__)
6417 /* This system does not cope well with relocations in const data.  */
6418 # define LT_DLSYM_CONST
6419 #else
6420 # define LT_DLSYM_CONST const
6421 #endif
6422
6423 #ifdef __cplusplus
6424 extern "C" {
6425 #endif
6426
6427 _LT_EOF
6428           # Now generate the symbol file.
6429           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6430
6431           cat <<_LT_EOF >> conftest.$ac_ext
6432
6433 /* The mapping between symbol names and symbols.  */
6434 LT_DLSYM_CONST struct {
6435   const char *name;
6436   void       *address;
6437 }
6438 lt__PROGRAM__LTX_preloaded_symbols[] =
6439 {
6440   { "@PROGRAM@", (void *) 0 },
6441 _LT_EOF
6442           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6443           cat <<\_LT_EOF >> conftest.$ac_ext
6444   {0, (void *) 0}
6445 };
6446
6447 /* This works around a problem in FreeBSD linker */
6448 #ifdef FREEBSD_WORKAROUND
6449 static const void *lt_preloaded_setup() {
6450   return lt__PROGRAM__LTX_preloaded_symbols;
6451 }
6452 #endif
6453
6454 #ifdef __cplusplus
6455 }
6456 #endif
6457 _LT_EOF
6458           # Now try linking the two files.
6459           mv conftest.$ac_objext conftstm.$ac_objext
6460           lt_globsym_save_LIBS=$LIBS
6461           lt_globsym_save_CFLAGS=$CFLAGS
6462           LIBS="conftstm.$ac_objext"
6463           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6464           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6465   (eval $ac_link) 2>&5
6466   ac_status=$?
6467   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6468   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6469             pipe_works=yes
6470           fi
6471           LIBS=$lt_globsym_save_LIBS
6472           CFLAGS=$lt_globsym_save_CFLAGS
6473         else
6474           echo "cannot find nm_test_func in $nlist" >&5
6475         fi
6476       else
6477         echo "cannot find nm_test_var in $nlist" >&5
6478       fi
6479     else
6480       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6481     fi
6482   else
6483     echo "$progname: failed program was:" >&5
6484     cat conftest.$ac_ext >&5
6485   fi
6486   rm -rf conftest* conftst*
6487
6488   # Do not use the global_symbol_pipe unless it works.
6489   if test "$pipe_works" = yes; then
6490     break
6491   else
6492     lt_cv_sys_global_symbol_pipe=
6493   fi
6494 done
6495
6496 fi
6497
6498 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6499   lt_cv_sys_global_symbol_to_cdecl=
6500 fi
6501 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6503 $as_echo "failed" >&6; }
6504 else
6505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6506 $as_echo "ok" >&6; }
6507 fi
6508
6509 # Response file support.
6510 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6511   nm_file_list_spec='@'
6512 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6513   nm_file_list_spec='@'
6514 fi
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6543 $as_echo_n "checking for sysroot... " >&6; }
6544
6545 # Check whether --with-sysroot was given.
6546 if test "${with_sysroot+set}" = set; then :
6547   withval=$with_sysroot;
6548 else
6549   with_sysroot=no
6550 fi
6551
6552
6553 lt_sysroot=
6554 case ${with_sysroot} in #(
6555  yes)
6556    if test "$GCC" = yes; then
6557      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6558    fi
6559    ;; #(
6560  /*)
6561    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6562    ;; #(
6563  no|'')
6564    ;; #(
6565  *)
6566    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6567 $as_echo "${with_sysroot}" >&6; }
6568    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6569    ;;
6570 esac
6571
6572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6573 $as_echo "${lt_sysroot:-no}" >&6; }
6574
6575
6576
6577
6578
6579 # Check whether --enable-libtool-lock was given.
6580 if test "${enable_libtool_lock+set}" = set; then :
6581   enableval=$enable_libtool_lock;
6582 fi
6583
6584 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6585
6586 # Some flags need to be propagated to the compiler or linker for good
6587 # libtool support.
6588 case $host in
6589 ia64-*-hpux*)
6590   # Find out which ABI we are using.
6591   echo 'int i;' > conftest.$ac_ext
6592   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6593   (eval $ac_compile) 2>&5
6594   ac_status=$?
6595   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6596   test $ac_status = 0; }; then
6597     case `/usr/bin/file conftest.$ac_objext` in
6598       *ELF-32*)
6599         HPUX_IA64_MODE="32"
6600         ;;
6601       *ELF-64*)
6602         HPUX_IA64_MODE="64"
6603         ;;
6604     esac
6605   fi
6606   rm -rf conftest*
6607   ;;
6608 *-*-irix6*)
6609   # Find out which ABI we are using.
6610   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6611   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6612   (eval $ac_compile) 2>&5
6613   ac_status=$?
6614   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6615   test $ac_status = 0; }; then
6616     if test "$lt_cv_prog_gnu_ld" = yes; then
6617       case `/usr/bin/file conftest.$ac_objext` in
6618         *32-bit*)
6619           LD="${LD-ld} -melf32bsmip"
6620           ;;
6621         *N32*)
6622           LD="${LD-ld} -melf32bmipn32"
6623           ;;
6624         *64-bit*)
6625           LD="${LD-ld} -melf64bmip"
6626         ;;
6627       esac
6628     else
6629       case `/usr/bin/file conftest.$ac_objext` in
6630         *32-bit*)
6631           LD="${LD-ld} -32"
6632           ;;
6633         *N32*)
6634           LD="${LD-ld} -n32"
6635           ;;
6636         *64-bit*)
6637           LD="${LD-ld} -64"
6638           ;;
6639       esac
6640     fi
6641   fi
6642   rm -rf conftest*
6643   ;;
6644
6645 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6646 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6647   # Find out which ABI we are using.
6648   echo 'int i;' > conftest.$ac_ext
6649   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6650   (eval $ac_compile) 2>&5
6651   ac_status=$?
6652   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6653   test $ac_status = 0; }; then
6654     case `/usr/bin/file conftest.o` in
6655       *32-bit*)
6656         case $host in
6657           x86_64-*kfreebsd*-gnu)
6658             LD="${LD-ld} -m elf_i386_fbsd"
6659             ;;
6660           x86_64-*linux*)
6661             LD="${LD-ld} -m elf_i386"
6662             ;;
6663           ppc64-*linux*|powerpc64-*linux*)
6664             LD="${LD-ld} -m elf32ppclinux"
6665             ;;
6666           s390x-*linux*)
6667             LD="${LD-ld} -m elf_s390"
6668             ;;
6669           sparc64-*linux*)
6670             LD="${LD-ld} -m elf32_sparc"
6671             ;;
6672         esac
6673         ;;
6674       *64-bit*)
6675         case $host in
6676           x86_64-*kfreebsd*-gnu)
6677             LD="${LD-ld} -m elf_x86_64_fbsd"
6678             ;;
6679           x86_64-*linux*)
6680             LD="${LD-ld} -m elf_x86_64"
6681             ;;
6682           ppc*-*linux*|powerpc*-*linux*)
6683             LD="${LD-ld} -m elf64ppc"
6684             ;;
6685           s390*-*linux*|s390*-*tpf*)
6686             LD="${LD-ld} -m elf64_s390"
6687             ;;
6688           sparc*-*linux*)
6689             LD="${LD-ld} -m elf64_sparc"
6690             ;;
6691         esac
6692         ;;
6693     esac
6694   fi
6695   rm -rf conftest*
6696   ;;
6697
6698 *-*-sco3.2v5*)
6699   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6700   SAVE_CFLAGS="$CFLAGS"
6701   CFLAGS="$CFLAGS -belf"
6702   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6703 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6704 if ${lt_cv_cc_needs_belf+:} false; then :
6705   $as_echo_n "(cached) " >&6
6706 else
6707   ac_ext=c
6708 ac_cpp='$CPP $CPPFLAGS'
6709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6712
6713      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6714 /* end confdefs.h.  */
6715
6716 int
6717 main ()
6718 {
6719
6720   ;
6721   return 0;
6722 }
6723 _ACEOF
6724 if ac_fn_c_try_link "$LINENO"; then :
6725   lt_cv_cc_needs_belf=yes
6726 else
6727   lt_cv_cc_needs_belf=no
6728 fi
6729 rm -f core conftest.err conftest.$ac_objext \
6730     conftest$ac_exeext conftest.$ac_ext
6731      ac_ext=c
6732 ac_cpp='$CPP $CPPFLAGS'
6733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6736
6737 fi
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6739 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6740   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6741     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6742     CFLAGS="$SAVE_CFLAGS"
6743   fi
6744   ;;
6745 *-*solaris*)
6746   # Find out which ABI we are using.
6747   echo 'int i;' > conftest.$ac_ext
6748   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6749   (eval $ac_compile) 2>&5
6750   ac_status=$?
6751   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6752   test $ac_status = 0; }; then
6753     case `/usr/bin/file conftest.o` in
6754     *64-bit*)
6755       case $lt_cv_prog_gnu_ld in
6756       yes*)
6757         case $host in
6758         i?86-*-solaris*)
6759           LD="${LD-ld} -m elf_x86_64"
6760           ;;
6761         sparc*-*-solaris*)
6762           LD="${LD-ld} -m elf64_sparc"
6763           ;;
6764         esac
6765         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6766         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6767           LD="${LD-ld}_sol2"
6768         fi
6769         ;;
6770       *)
6771         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6772           LD="${LD-ld} -64"
6773         fi
6774         ;;
6775       esac
6776       ;;
6777     esac
6778   fi
6779   rm -rf conftest*
6780   ;;
6781 esac
6782
6783 need_locks="$enable_libtool_lock"
6784
6785 if test -n "$ac_tool_prefix"; then
6786   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6787 set dummy ${ac_tool_prefix}mt; ac_word=$2
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6789 $as_echo_n "checking for $ac_word... " >&6; }
6790 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6791   $as_echo_n "(cached) " >&6
6792 else
6793   if test -n "$MANIFEST_TOOL"; then
6794   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6795 else
6796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797 for as_dir in $PATH
6798 do
6799   IFS=$as_save_IFS
6800   test -z "$as_dir" && as_dir=.
6801     for ac_exec_ext in '' $ac_executable_extensions; do
6802   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6803     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6805     break 2
6806   fi
6807 done
6808   done
6809 IFS=$as_save_IFS
6810
6811 fi
6812 fi
6813 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6814 if test -n "$MANIFEST_TOOL"; then
6815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6816 $as_echo "$MANIFEST_TOOL" >&6; }
6817 else
6818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6819 $as_echo "no" >&6; }
6820 fi
6821
6822
6823 fi
6824 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6825   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6826   # Extract the first word of "mt", so it can be a program name with args.
6827 set dummy mt; ac_word=$2
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6829 $as_echo_n "checking for $ac_word... " >&6; }
6830 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6831   $as_echo_n "(cached) " >&6
6832 else
6833   if test -n "$ac_ct_MANIFEST_TOOL"; then
6834   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6835 else
6836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837 for as_dir in $PATH
6838 do
6839   IFS=$as_save_IFS
6840   test -z "$as_dir" && as_dir=.
6841     for ac_exec_ext in '' $ac_executable_extensions; do
6842   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6843     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6845     break 2
6846   fi
6847 done
6848   done
6849 IFS=$as_save_IFS
6850
6851 fi
6852 fi
6853 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6854 if test -n "$ac_ct_MANIFEST_TOOL"; then
6855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6856 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6857 else
6858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6859 $as_echo "no" >&6; }
6860 fi
6861
6862   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6863     MANIFEST_TOOL=":"
6864   else
6865     case $cross_compiling:$ac_tool_warned in
6866 yes:)
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6869 ac_tool_warned=yes ;;
6870 esac
6871     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6872   fi
6873 else
6874   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6875 fi
6876
6877 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6879 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6880 if ${lt_cv_path_mainfest_tool+:} false; then :
6881   $as_echo_n "(cached) " >&6
6882 else
6883   lt_cv_path_mainfest_tool=no
6884   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6885   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6886   cat conftest.err >&5
6887   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6888     lt_cv_path_mainfest_tool=yes
6889   fi
6890   rm -f conftest*
6891 fi
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6893 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6894 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6895   MANIFEST_TOOL=:
6896 fi
6897
6898
6899
6900
6901
6902
6903   case $host_os in
6904     rhapsody* | darwin*)
6905     if test -n "$ac_tool_prefix"; then
6906   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6907 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6909 $as_echo_n "checking for $ac_word... " >&6; }
6910 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6911   $as_echo_n "(cached) " >&6
6912 else
6913   if test -n "$DSYMUTIL"; then
6914   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6915 else
6916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917 for as_dir in $PATH
6918 do
6919   IFS=$as_save_IFS
6920   test -z "$as_dir" && as_dir=.
6921     for ac_exec_ext in '' $ac_executable_extensions; do
6922   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6923     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6924     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6925     break 2
6926   fi
6927 done
6928   done
6929 IFS=$as_save_IFS
6930
6931 fi
6932 fi
6933 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6934 if test -n "$DSYMUTIL"; then
6935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6936 $as_echo "$DSYMUTIL" >&6; }
6937 else
6938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6939 $as_echo "no" >&6; }
6940 fi
6941
6942
6943 fi
6944 if test -z "$ac_cv_prog_DSYMUTIL"; then
6945   ac_ct_DSYMUTIL=$DSYMUTIL
6946   # Extract the first word of "dsymutil", so it can be a program name with args.
6947 set dummy dsymutil; ac_word=$2
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6949 $as_echo_n "checking for $ac_word... " >&6; }
6950 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6951   $as_echo_n "(cached) " >&6
6952 else
6953   if test -n "$ac_ct_DSYMUTIL"; then
6954   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6955 else
6956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6957 for as_dir in $PATH
6958 do
6959   IFS=$as_save_IFS
6960   test -z "$as_dir" && as_dir=.
6961     for ac_exec_ext in '' $ac_executable_extensions; do
6962   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6963     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6965     break 2
6966   fi
6967 done
6968   done
6969 IFS=$as_save_IFS
6970
6971 fi
6972 fi
6973 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6974 if test -n "$ac_ct_DSYMUTIL"; then
6975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6976 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6977 else
6978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6979 $as_echo "no" >&6; }
6980 fi
6981
6982   if test "x$ac_ct_DSYMUTIL" = x; then
6983     DSYMUTIL=":"
6984   else
6985     case $cross_compiling:$ac_tool_warned in
6986 yes:)
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6989 ac_tool_warned=yes ;;
6990 esac
6991     DSYMUTIL=$ac_ct_DSYMUTIL
6992   fi
6993 else
6994   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6995 fi
6996
6997     if test -n "$ac_tool_prefix"; then
6998   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6999 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7001 $as_echo_n "checking for $ac_word... " >&6; }
7002 if ${ac_cv_prog_NMEDIT+:} false; then :
7003   $as_echo_n "(cached) " >&6
7004 else
7005   if test -n "$NMEDIT"; then
7006   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7007 else
7008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7009 for as_dir in $PATH
7010 do
7011   IFS=$as_save_IFS
7012   test -z "$as_dir" && as_dir=.
7013     for ac_exec_ext in '' $ac_executable_extensions; do
7014   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7015     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7016     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7017     break 2
7018   fi
7019 done
7020   done
7021 IFS=$as_save_IFS
7022
7023 fi
7024 fi
7025 NMEDIT=$ac_cv_prog_NMEDIT
7026 if test -n "$NMEDIT"; then
7027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7028 $as_echo "$NMEDIT" >&6; }
7029 else
7030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7031 $as_echo "no" >&6; }
7032 fi
7033
7034
7035 fi
7036 if test -z "$ac_cv_prog_NMEDIT"; then
7037   ac_ct_NMEDIT=$NMEDIT
7038   # Extract the first word of "nmedit", so it can be a program name with args.
7039 set dummy nmedit; ac_word=$2
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7041 $as_echo_n "checking for $ac_word... " >&6; }
7042 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7043   $as_echo_n "(cached) " >&6
7044 else
7045   if test -n "$ac_ct_NMEDIT"; then
7046   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7047 else
7048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049 for as_dir in $PATH
7050 do
7051   IFS=$as_save_IFS
7052   test -z "$as_dir" && as_dir=.
7053     for ac_exec_ext in '' $ac_executable_extensions; do
7054   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7055     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7056     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7057     break 2
7058   fi
7059 done
7060   done
7061 IFS=$as_save_IFS
7062
7063 fi
7064 fi
7065 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7066 if test -n "$ac_ct_NMEDIT"; then
7067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7068 $as_echo "$ac_ct_NMEDIT" >&6; }
7069 else
7070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7071 $as_echo "no" >&6; }
7072 fi
7073
7074   if test "x$ac_ct_NMEDIT" = x; then
7075     NMEDIT=":"
7076   else
7077     case $cross_compiling:$ac_tool_warned in
7078 yes:)
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7081 ac_tool_warned=yes ;;
7082 esac
7083     NMEDIT=$ac_ct_NMEDIT
7084   fi
7085 else
7086   NMEDIT="$ac_cv_prog_NMEDIT"
7087 fi
7088
7089     if test -n "$ac_tool_prefix"; then
7090   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7091 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7093 $as_echo_n "checking for $ac_word... " >&6; }
7094 if ${ac_cv_prog_LIPO+:} false; then :
7095   $as_echo_n "(cached) " >&6
7096 else
7097   if test -n "$LIPO"; then
7098   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7099 else
7100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101 for as_dir in $PATH
7102 do
7103   IFS=$as_save_IFS
7104   test -z "$as_dir" && as_dir=.
7105     for ac_exec_ext in '' $ac_executable_extensions; do
7106   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7107     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7108     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7109     break 2
7110   fi
7111 done
7112   done
7113 IFS=$as_save_IFS
7114
7115 fi
7116 fi
7117 LIPO=$ac_cv_prog_LIPO
7118 if test -n "$LIPO"; then
7119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7120 $as_echo "$LIPO" >&6; }
7121 else
7122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7123 $as_echo "no" >&6; }
7124 fi
7125
7126
7127 fi
7128 if test -z "$ac_cv_prog_LIPO"; then
7129   ac_ct_LIPO=$LIPO
7130   # Extract the first word of "lipo", so it can be a program name with args.
7131 set dummy lipo; ac_word=$2
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7133 $as_echo_n "checking for $ac_word... " >&6; }
7134 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7135   $as_echo_n "(cached) " >&6
7136 else
7137   if test -n "$ac_ct_LIPO"; then
7138   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7139 else
7140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141 for as_dir in $PATH
7142 do
7143   IFS=$as_save_IFS
7144   test -z "$as_dir" && as_dir=.
7145     for ac_exec_ext in '' $ac_executable_extensions; do
7146   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7147     ac_cv_prog_ac_ct_LIPO="lipo"
7148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7149     break 2
7150   fi
7151 done
7152   done
7153 IFS=$as_save_IFS
7154
7155 fi
7156 fi
7157 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7158 if test -n "$ac_ct_LIPO"; then
7159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7160 $as_echo "$ac_ct_LIPO" >&6; }
7161 else
7162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7163 $as_echo "no" >&6; }
7164 fi
7165
7166   if test "x$ac_ct_LIPO" = x; then
7167     LIPO=":"
7168   else
7169     case $cross_compiling:$ac_tool_warned in
7170 yes:)
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7173 ac_tool_warned=yes ;;
7174 esac
7175     LIPO=$ac_ct_LIPO
7176   fi
7177 else
7178   LIPO="$ac_cv_prog_LIPO"
7179 fi
7180
7181     if test -n "$ac_tool_prefix"; then
7182   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7183 set dummy ${ac_tool_prefix}otool; ac_word=$2
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7185 $as_echo_n "checking for $ac_word... " >&6; }
7186 if ${ac_cv_prog_OTOOL+:} false; then :
7187   $as_echo_n "(cached) " >&6
7188 else
7189   if test -n "$OTOOL"; then
7190   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7191 else
7192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7193 for as_dir in $PATH
7194 do
7195   IFS=$as_save_IFS
7196   test -z "$as_dir" && as_dir=.
7197     for ac_exec_ext in '' $ac_executable_extensions; do
7198   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7199     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7201     break 2
7202   fi
7203 done
7204   done
7205 IFS=$as_save_IFS
7206
7207 fi
7208 fi
7209 OTOOL=$ac_cv_prog_OTOOL
7210 if test -n "$OTOOL"; then
7211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7212 $as_echo "$OTOOL" >&6; }
7213 else
7214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7215 $as_echo "no" >&6; }
7216 fi
7217
7218
7219 fi
7220 if test -z "$ac_cv_prog_OTOOL"; then
7221   ac_ct_OTOOL=$OTOOL
7222   # Extract the first word of "otool", so it can be a program name with args.
7223 set dummy otool; ac_word=$2
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7225 $as_echo_n "checking for $ac_word... " >&6; }
7226 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7227   $as_echo_n "(cached) " >&6
7228 else
7229   if test -n "$ac_ct_OTOOL"; then
7230   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7231 else
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 for as_dir in $PATH
7234 do
7235   IFS=$as_save_IFS
7236   test -z "$as_dir" && as_dir=.
7237     for ac_exec_ext in '' $ac_executable_extensions; do
7238   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7239     ac_cv_prog_ac_ct_OTOOL="otool"
7240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7241     break 2
7242   fi
7243 done
7244   done
7245 IFS=$as_save_IFS
7246
7247 fi
7248 fi
7249 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7250 if test -n "$ac_ct_OTOOL"; then
7251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7252 $as_echo "$ac_ct_OTOOL" >&6; }
7253 else
7254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7255 $as_echo "no" >&6; }
7256 fi
7257
7258   if test "x$ac_ct_OTOOL" = x; then
7259     OTOOL=":"
7260   else
7261     case $cross_compiling:$ac_tool_warned in
7262 yes:)
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7265 ac_tool_warned=yes ;;
7266 esac
7267     OTOOL=$ac_ct_OTOOL
7268   fi
7269 else
7270   OTOOL="$ac_cv_prog_OTOOL"
7271 fi
7272
7273     if test -n "$ac_tool_prefix"; then
7274   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7275 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7277 $as_echo_n "checking for $ac_word... " >&6; }
7278 if ${ac_cv_prog_OTOOL64+:} false; then :
7279   $as_echo_n "(cached) " >&6
7280 else
7281   if test -n "$OTOOL64"; then
7282   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7283 else
7284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7285 for as_dir in $PATH
7286 do
7287   IFS=$as_save_IFS
7288   test -z "$as_dir" && as_dir=.
7289     for ac_exec_ext in '' $ac_executable_extensions; do
7290   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7291     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7293     break 2
7294   fi
7295 done
7296   done
7297 IFS=$as_save_IFS
7298
7299 fi
7300 fi
7301 OTOOL64=$ac_cv_prog_OTOOL64
7302 if test -n "$OTOOL64"; then
7303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7304 $as_echo "$OTOOL64" >&6; }
7305 else
7306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7307 $as_echo "no" >&6; }
7308 fi
7309
7310
7311 fi
7312 if test -z "$ac_cv_prog_OTOOL64"; then
7313   ac_ct_OTOOL64=$OTOOL64
7314   # Extract the first word of "otool64", so it can be a program name with args.
7315 set dummy otool64; ac_word=$2
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7317 $as_echo_n "checking for $ac_word... " >&6; }
7318 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7319   $as_echo_n "(cached) " >&6
7320 else
7321   if test -n "$ac_ct_OTOOL64"; then
7322   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7323 else
7324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7325 for as_dir in $PATH
7326 do
7327   IFS=$as_save_IFS
7328   test -z "$as_dir" && as_dir=.
7329     for ac_exec_ext in '' $ac_executable_extensions; do
7330   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7331     ac_cv_prog_ac_ct_OTOOL64="otool64"
7332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7333     break 2
7334   fi
7335 done
7336   done
7337 IFS=$as_save_IFS
7338
7339 fi
7340 fi
7341 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7342 if test -n "$ac_ct_OTOOL64"; then
7343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7344 $as_echo "$ac_ct_OTOOL64" >&6; }
7345 else
7346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7347 $as_echo "no" >&6; }
7348 fi
7349
7350   if test "x$ac_ct_OTOOL64" = x; then
7351     OTOOL64=":"
7352   else
7353     case $cross_compiling:$ac_tool_warned in
7354 yes:)
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7357 ac_tool_warned=yes ;;
7358 esac
7359     OTOOL64=$ac_ct_OTOOL64
7360   fi
7361 else
7362   OTOOL64="$ac_cv_prog_OTOOL64"
7363 fi
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7392 $as_echo_n "checking for -single_module linker flag... " >&6; }
7393 if ${lt_cv_apple_cc_single_mod+:} false; then :
7394   $as_echo_n "(cached) " >&6
7395 else
7396   lt_cv_apple_cc_single_mod=no
7397       if test -z "${LT_MULTI_MODULE}"; then
7398         # By default we will add the -single_module flag. You can override
7399         # by either setting the environment variable LT_MULTI_MODULE
7400         # non-empty at configure time, or by adding -multi_module to the
7401         # link flags.
7402         rm -rf libconftest.dylib*
7403         echo "int foo(void){return 1;}" > conftest.c
7404         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7405 -dynamiclib -Wl,-single_module conftest.c" >&5
7406         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7407           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7408         _lt_result=$?
7409         # If there is a non-empty error log, and "single_module"
7410         # appears in it, assume the flag caused a linker warning
7411         if test -s conftest.err && $GREP single_module conftest.err; then
7412           cat conftest.err >&5
7413         # Otherwise, if the output was created with a 0 exit code from
7414         # the compiler, it worked.
7415         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7416           lt_cv_apple_cc_single_mod=yes
7417         else
7418           cat conftest.err >&5
7419         fi
7420         rm -rf libconftest.dylib*
7421         rm -f conftest.*
7422       fi
7423 fi
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7425 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7426
7427     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7428 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7429 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7430   $as_echo_n "(cached) " >&6
7431 else
7432   lt_cv_ld_exported_symbols_list=no
7433       save_LDFLAGS=$LDFLAGS
7434       echo "_main" > conftest.sym
7435       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7436       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7437 /* end confdefs.h.  */
7438
7439 int
7440 main ()
7441 {
7442
7443   ;
7444   return 0;
7445 }
7446 _ACEOF
7447 if ac_fn_c_try_link "$LINENO"; then :
7448   lt_cv_ld_exported_symbols_list=yes
7449 else
7450   lt_cv_ld_exported_symbols_list=no
7451 fi
7452 rm -f core conftest.err conftest.$ac_objext \
7453     conftest$ac_exeext conftest.$ac_ext
7454         LDFLAGS="$save_LDFLAGS"
7455
7456 fi
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7458 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7459
7460     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7461 $as_echo_n "checking for -force_load linker flag... " >&6; }
7462 if ${lt_cv_ld_force_load+:} false; then :
7463   $as_echo_n "(cached) " >&6
7464 else
7465   lt_cv_ld_force_load=no
7466       cat > conftest.c << _LT_EOF
7467 int forced_loaded() { return 2;}
7468 _LT_EOF
7469       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7470       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7471       echo "$AR cru libconftest.a conftest.o" >&5
7472       $AR cru libconftest.a conftest.o 2>&5
7473       echo "$RANLIB libconftest.a" >&5
7474       $RANLIB libconftest.a 2>&5
7475       cat > conftest.c << _LT_EOF
7476 int main() { return 0;}
7477 _LT_EOF
7478       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7479       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7480       _lt_result=$?
7481       if test -s conftest.err && $GREP force_load conftest.err; then
7482         cat conftest.err >&5
7483       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7484         lt_cv_ld_force_load=yes
7485       else
7486         cat conftest.err >&5
7487       fi
7488         rm -f conftest.err libconftest.a conftest conftest.c
7489         rm -rf conftest.dSYM
7490
7491 fi
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7493 $as_echo "$lt_cv_ld_force_load" >&6; }
7494     case $host_os in
7495     rhapsody* | darwin1.[012])
7496       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7497     darwin1.*)
7498       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7499     darwin*) # darwin 5.x on
7500       # if running on 10.5 or later, the deployment target defaults
7501       # to the OS version, if on x86, and 10.4, the deployment
7502       # target defaults to 10.4. Don't you love it?
7503       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7504         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7505           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7506         10.[012]*)
7507           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7508         10.*)
7509           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7510       esac
7511     ;;
7512   esac
7513     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7514       _lt_dar_single_mod='$single_module'
7515     fi
7516     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7517       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7518     else
7519       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7520     fi
7521     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7522       _lt_dsymutil='~$DSYMUTIL $lib || :'
7523     else
7524       _lt_dsymutil=
7525     fi
7526     ;;
7527   esac
7528
7529 ac_ext=c
7530 ac_cpp='$CPP $CPPFLAGS'
7531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7535 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7536 # On Suns, sometimes $CPP names a directory.
7537 if test -n "$CPP" && test -d "$CPP"; then
7538   CPP=
7539 fi
7540 if test -z "$CPP"; then
7541   if ${ac_cv_prog_CPP+:} false; then :
7542   $as_echo_n "(cached) " >&6
7543 else
7544       # Double quotes because CPP needs to be expanded
7545     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7546     do
7547       ac_preproc_ok=false
7548 for ac_c_preproc_warn_flag in '' yes
7549 do
7550   # Use a header file that comes with gcc, so configuring glibc
7551   # with a fresh cross-compiler works.
7552   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7553   # <limits.h> exists even on freestanding compilers.
7554   # On the NeXT, cc -E runs the code through the compiler's parser,
7555   # not just through cpp. "Syntax error" is here to catch this case.
7556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7557 /* end confdefs.h.  */
7558 #ifdef __STDC__
7559 # include <limits.h>
7560 #else
7561 # include <assert.h>
7562 #endif
7563                      Syntax error
7564 _ACEOF
7565 if ac_fn_c_try_cpp "$LINENO"; then :
7566
7567 else
7568   # Broken: fails on valid input.
7569 continue
7570 fi
7571 rm -f conftest.err conftest.i conftest.$ac_ext
7572
7573   # OK, works on sane cases.  Now check whether nonexistent headers
7574   # can be detected and how.
7575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7576 /* end confdefs.h.  */
7577 #include <ac_nonexistent.h>
7578 _ACEOF
7579 if ac_fn_c_try_cpp "$LINENO"; then :
7580   # Broken: success on invalid input.
7581 continue
7582 else
7583   # Passes both tests.
7584 ac_preproc_ok=:
7585 break
7586 fi
7587 rm -f conftest.err conftest.i conftest.$ac_ext
7588
7589 done
7590 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7591 rm -f conftest.i conftest.err conftest.$ac_ext
7592 if $ac_preproc_ok; then :
7593   break
7594 fi
7595
7596     done
7597     ac_cv_prog_CPP=$CPP
7598
7599 fi
7600   CPP=$ac_cv_prog_CPP
7601 else
7602   ac_cv_prog_CPP=$CPP
7603 fi
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7605 $as_echo "$CPP" >&6; }
7606 ac_preproc_ok=false
7607 for ac_c_preproc_warn_flag in '' yes
7608 do
7609   # Use a header file that comes with gcc, so configuring glibc
7610   # with a fresh cross-compiler works.
7611   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7612   # <limits.h> exists even on freestanding compilers.
7613   # On the NeXT, cc -E runs the code through the compiler's parser,
7614   # not just through cpp. "Syntax error" is here to catch this case.
7615   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7616 /* end confdefs.h.  */
7617 #ifdef __STDC__
7618 # include <limits.h>
7619 #else
7620 # include <assert.h>
7621 #endif
7622                      Syntax error
7623 _ACEOF
7624 if ac_fn_c_try_cpp "$LINENO"; then :
7625
7626 else
7627   # Broken: fails on valid input.
7628 continue
7629 fi
7630 rm -f conftest.err conftest.i conftest.$ac_ext
7631
7632   # OK, works on sane cases.  Now check whether nonexistent headers
7633   # can be detected and how.
7634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635 /* end confdefs.h.  */
7636 #include <ac_nonexistent.h>
7637 _ACEOF
7638 if ac_fn_c_try_cpp "$LINENO"; then :
7639   # Broken: success on invalid input.
7640 continue
7641 else
7642   # Passes both tests.
7643 ac_preproc_ok=:
7644 break
7645 fi
7646 rm -f conftest.err conftest.i conftest.$ac_ext
7647
7648 done
7649 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7650 rm -f conftest.i conftest.err conftest.$ac_ext
7651 if $ac_preproc_ok; then :
7652
7653 else
7654   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7656 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7657 See \`config.log' for more details" "$LINENO" 5; }
7658 fi
7659
7660 ac_ext=c
7661 ac_cpp='$CPP $CPPFLAGS'
7662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7665
7666
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7668 $as_echo_n "checking for ANSI C header files... " >&6; }
7669 if ${ac_cv_header_stdc+:} false; then :
7670   $as_echo_n "(cached) " >&6
7671 else
7672   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7673 /* end confdefs.h.  */
7674 #include <stdlib.h>
7675 #include <stdarg.h>
7676 #include <string.h>
7677 #include <float.h>
7678
7679 int
7680 main ()
7681 {
7682
7683   ;
7684   return 0;
7685 }
7686 _ACEOF
7687 if ac_fn_c_try_compile "$LINENO"; then :
7688   ac_cv_header_stdc=yes
7689 else
7690   ac_cv_header_stdc=no
7691 fi
7692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7693
7694 if test $ac_cv_header_stdc = yes; then
7695   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7697 /* end confdefs.h.  */
7698 #include <string.h>
7699
7700 _ACEOF
7701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7702   $EGREP "memchr" >/dev/null 2>&1; then :
7703
7704 else
7705   ac_cv_header_stdc=no
7706 fi
7707 rm -f conftest*
7708
7709 fi
7710
7711 if test $ac_cv_header_stdc = yes; then
7712   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7714 /* end confdefs.h.  */
7715 #include <stdlib.h>
7716
7717 _ACEOF
7718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7719   $EGREP "free" >/dev/null 2>&1; then :
7720
7721 else
7722   ac_cv_header_stdc=no
7723 fi
7724 rm -f conftest*
7725
7726 fi
7727
7728 if test $ac_cv_header_stdc = yes; then
7729   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7730   if test "$cross_compiling" = yes; then :
7731   :
7732 else
7733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7734 /* end confdefs.h.  */
7735 #include <ctype.h>
7736 #include <stdlib.h>
7737 #if ((' ' & 0x0FF) == 0x020)
7738 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7739 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7740 #else
7741 # define ISLOWER(c) \
7742                    (('a' <= (c) && (c) <= 'i') \
7743                      || ('j' <= (c) && (c) <= 'r') \
7744                      || ('s' <= (c) && (c) <= 'z'))
7745 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7746 #endif
7747
7748 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7749 int
7750 main ()
7751 {
7752   int i;
7753   for (i = 0; i < 256; i++)
7754     if (XOR (islower (i), ISLOWER (i))
7755         || toupper (i) != TOUPPER (i))
7756       return 2;
7757   return 0;
7758 }
7759 _ACEOF
7760 if ac_fn_c_try_run "$LINENO"; then :
7761
7762 else
7763   ac_cv_header_stdc=no
7764 fi
7765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7766   conftest.$ac_objext conftest.beam conftest.$ac_ext
7767 fi
7768
7769 fi
7770 fi
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7772 $as_echo "$ac_cv_header_stdc" >&6; }
7773 if test $ac_cv_header_stdc = yes; then
7774
7775 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7776
7777 fi
7778
7779 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7780 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7781                   inttypes.h stdint.h unistd.h
7782 do :
7783   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7784 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7785 "
7786 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7787   cat >>confdefs.h <<_ACEOF
7788 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7789 _ACEOF
7790
7791 fi
7792
7793 done
7794
7795
7796 for ac_header in dlfcn.h
7797 do :
7798   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7799 "
7800 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7801   cat >>confdefs.h <<_ACEOF
7802 #define HAVE_DLFCN_H 1
7803 _ACEOF
7804
7805 fi
7806
7807 done
7808
7809
7810
7811
7812
7813 # Set options
7814
7815
7816
7817         enable_dlopen=no
7818
7819
7820
7821             # Check whether --enable-shared was given.
7822 if test "${enable_shared+set}" = set; then :
7823   enableval=$enable_shared; p=${PACKAGE-default}
7824     case $enableval in
7825     yes) enable_shared=yes ;;
7826     no) enable_shared=no ;;
7827     *)
7828       enable_shared=no
7829       # Look at the argument we got.  We use all the common list separators.
7830       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7831       for pkg in $enableval; do
7832         IFS="$lt_save_ifs"
7833         if test "X$pkg" = "X$p"; then
7834           enable_shared=yes
7835         fi
7836       done
7837       IFS="$lt_save_ifs"
7838       ;;
7839     esac
7840 else
7841   enable_shared=yes
7842 fi
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852   # Check whether --enable-static was given.
7853 if test "${enable_static+set}" = set; then :
7854   enableval=$enable_static; p=${PACKAGE-default}
7855     case $enableval in
7856     yes) enable_static=yes ;;
7857     no) enable_static=no ;;
7858     *)
7859      enable_static=no
7860       # Look at the argument we got.  We use all the common list separators.
7861       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7862       for pkg in $enableval; do
7863         IFS="$lt_save_ifs"
7864         if test "X$pkg" = "X$p"; then
7865           enable_static=yes
7866         fi
7867       done
7868       IFS="$lt_save_ifs"
7869       ;;
7870     esac
7871 else
7872   enable_static=yes
7873 fi
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884 # Check whether --with-pic was given.
7885 if test "${with_pic+set}" = set; then :
7886   withval=$with_pic; lt_p=${PACKAGE-default}
7887     case $withval in
7888     yes|no) pic_mode=$withval ;;
7889     *)
7890       pic_mode=default
7891       # Look at the argument we got.  We use all the common list separators.
7892       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7893       for lt_pkg in $withval; do
7894         IFS="$lt_save_ifs"
7895         if test "X$lt_pkg" = "X$lt_p"; then
7896           pic_mode=yes
7897         fi
7898       done
7899       IFS="$lt_save_ifs"
7900       ;;
7901     esac
7902 else
7903   pic_mode=default
7904 fi
7905
7906
7907 test -z "$pic_mode" && pic_mode=default
7908
7909
7910
7911
7912
7913
7914
7915   # Check whether --enable-fast-install was given.
7916 if test "${enable_fast_install+set}" = set; then :
7917   enableval=$enable_fast_install; p=${PACKAGE-default}
7918     case $enableval in
7919     yes) enable_fast_install=yes ;;
7920     no) enable_fast_install=no ;;
7921     *)
7922       enable_fast_install=no
7923       # Look at the argument we got.  We use all the common list separators.
7924       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7925       for pkg in $enableval; do
7926         IFS="$lt_save_ifs"
7927         if test "X$pkg" = "X$p"; then
7928           enable_fast_install=yes
7929         fi
7930       done
7931       IFS="$lt_save_ifs"
7932       ;;
7933     esac
7934 else
7935   enable_fast_install=yes
7936 fi
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948 # This can be used to rebuild libtool when needed
7949 LIBTOOL_DEPS="$ltmain"
7950
7951 # Always use our own libtool.
7952 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983 test -z "$LN_S" && LN_S="ln -s"
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998 if test -n "${ZSH_VERSION+set}" ; then
7999    setopt NO_GLOB_SUBST
8000 fi
8001
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8003 $as_echo_n "checking for objdir... " >&6; }
8004 if ${lt_cv_objdir+:} false; then :
8005   $as_echo_n "(cached) " >&6
8006 else
8007   rm -f .libs 2>/dev/null
8008 mkdir .libs 2>/dev/null
8009 if test -d .libs; then
8010   lt_cv_objdir=.libs
8011 else
8012   # MS-DOS does not allow filenames that begin with a dot.
8013   lt_cv_objdir=_libs
8014 fi
8015 rmdir .libs 2>/dev/null
8016 fi
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8018 $as_echo "$lt_cv_objdir" >&6; }
8019 objdir=$lt_cv_objdir
8020
8021
8022
8023
8024
8025 cat >>confdefs.h <<_ACEOF
8026 #define LT_OBJDIR "$lt_cv_objdir/"
8027 _ACEOF
8028
8029
8030
8031
8032 case $host_os in
8033 aix3*)
8034   # AIX sometimes has problems with the GCC collect2 program.  For some
8035   # reason, if we set the COLLECT_NAMES environment variable, the problems
8036   # vanish in a puff of smoke.
8037   if test "X${COLLECT_NAMES+set}" != Xset; then
8038     COLLECT_NAMES=
8039     export COLLECT_NAMES
8040   fi
8041   ;;
8042 esac
8043
8044 # Global variables:
8045 ofile=libtool
8046 can_build_shared=yes
8047
8048 # All known linkers require a `.a' archive for static linking (except MSVC,
8049 # which needs '.lib').
8050 libext=a
8051
8052 with_gnu_ld="$lt_cv_prog_gnu_ld"
8053
8054 old_CC="$CC"
8055 old_CFLAGS="$CFLAGS"
8056
8057 # Set sane defaults for various variables
8058 test -z "$CC" && CC=cc
8059 test -z "$LTCC" && LTCC=$CC
8060 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8061 test -z "$LD" && LD=ld
8062 test -z "$ac_objext" && ac_objext=o
8063
8064 for cc_temp in $compiler""; do
8065   case $cc_temp in
8066     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8067     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8068     \-*) ;;
8069     *) break;;
8070   esac
8071 done
8072 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8073
8074
8075 # Only perform the check for file, if the check method requires it
8076 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8077 case $deplibs_check_method in
8078 file_magic*)
8079   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8080     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8081 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8082 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8083   $as_echo_n "(cached) " >&6
8084 else
8085   case $MAGIC_CMD in
8086 [\\/*] |  ?:[\\/]*)
8087   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8088   ;;
8089 *)
8090   lt_save_MAGIC_CMD="$MAGIC_CMD"
8091   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8092   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8093   for ac_dir in $ac_dummy; do
8094     IFS="$lt_save_ifs"
8095     test -z "$ac_dir" && ac_dir=.
8096     if test -f $ac_dir/${ac_tool_prefix}file; then
8097       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8098       if test -n "$file_magic_test_file"; then
8099         case $deplibs_check_method in
8100         "file_magic "*)
8101           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8102           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8103           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8104             $EGREP "$file_magic_regex" > /dev/null; then
8105             :
8106           else
8107             cat <<_LT_EOF 1>&2
8108
8109 *** Warning: the command libtool uses to detect shared libraries,
8110 *** $file_magic_cmd, produces output that libtool cannot recognize.
8111 *** The result is that libtool may fail to recognize shared libraries
8112 *** as such.  This will affect the creation of libtool libraries that
8113 *** depend on shared libraries, but programs linked with such libtool
8114 *** libraries will work regardless of this problem.  Nevertheless, you
8115 *** may want to report the problem to your system manager and/or to
8116 *** bug-libtool@gnu.org
8117
8118 _LT_EOF
8119           fi ;;
8120         esac
8121       fi
8122       break
8123     fi
8124   done
8125   IFS="$lt_save_ifs"
8126   MAGIC_CMD="$lt_save_MAGIC_CMD"
8127   ;;
8128 esac
8129 fi
8130
8131 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8132 if test -n "$MAGIC_CMD"; then
8133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8134 $as_echo "$MAGIC_CMD" >&6; }
8135 else
8136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8137 $as_echo "no" >&6; }
8138 fi
8139
8140
8141
8142
8143
8144 if test -z "$lt_cv_path_MAGIC_CMD"; then
8145   if test -n "$ac_tool_prefix"; then
8146     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8147 $as_echo_n "checking for file... " >&6; }
8148 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8149   $as_echo_n "(cached) " >&6
8150 else
8151   case $MAGIC_CMD in
8152 [\\/*] |  ?:[\\/]*)
8153   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8154   ;;
8155 *)
8156   lt_save_MAGIC_CMD="$MAGIC_CMD"
8157   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8158   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8159   for ac_dir in $ac_dummy; do
8160     IFS="$lt_save_ifs"
8161     test -z "$ac_dir" && ac_dir=.
8162     if test -f $ac_dir/file; then
8163       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8164       if test -n "$file_magic_test_file"; then
8165         case $deplibs_check_method in
8166         "file_magic "*)
8167           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8168           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8169           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8170             $EGREP "$file_magic_regex" > /dev/null; then
8171             :
8172           else
8173             cat <<_LT_EOF 1>&2
8174
8175 *** Warning: the command libtool uses to detect shared libraries,
8176 *** $file_magic_cmd, produces output that libtool cannot recognize.
8177 *** The result is that libtool may fail to recognize shared libraries
8178 *** as such.  This will affect the creation of libtool libraries that
8179 *** depend on shared libraries, but programs linked with such libtool
8180 *** libraries will work regardless of this problem.  Nevertheless, you
8181 *** may want to report the problem to your system manager and/or to
8182 *** bug-libtool@gnu.org
8183
8184 _LT_EOF
8185           fi ;;
8186         esac
8187       fi
8188       break
8189     fi
8190   done
8191   IFS="$lt_save_ifs"
8192   MAGIC_CMD="$lt_save_MAGIC_CMD"
8193   ;;
8194 esac
8195 fi
8196
8197 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8198 if test -n "$MAGIC_CMD"; then
8199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8200 $as_echo "$MAGIC_CMD" >&6; }
8201 else
8202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8203 $as_echo "no" >&6; }
8204 fi
8205
8206
8207   else
8208     MAGIC_CMD=:
8209   fi
8210 fi
8211
8212   fi
8213   ;;
8214 esac
8215
8216 # Use C for the default configuration in the libtool script
8217
8218 lt_save_CC="$CC"
8219 ac_ext=c
8220 ac_cpp='$CPP $CPPFLAGS'
8221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8224
8225
8226 # Source file extension for C test sources.
8227 ac_ext=c
8228
8229 # Object file extension for compiled C test sources.
8230 objext=o
8231 objext=$objext
8232
8233 # Code to be used in simple compile tests
8234 lt_simple_compile_test_code="int some_variable = 0;"
8235
8236 # Code to be used in simple link tests
8237 lt_simple_link_test_code='int main(){return(0);}'
8238
8239
8240
8241
8242
8243
8244
8245 # If no C compiler was specified, use CC.
8246 LTCC=${LTCC-"$CC"}
8247
8248 # If no C compiler flags were specified, use CFLAGS.
8249 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8250
8251 # Allow CC to be a program name with arguments.
8252 compiler=$CC
8253
8254 # Save the default compiler, since it gets overwritten when the other
8255 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8256 compiler_DEFAULT=$CC
8257
8258 # save warnings/boilerplate of simple test code
8259 ac_outfile=conftest.$ac_objext
8260 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8261 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8262 _lt_compiler_boilerplate=`cat conftest.err`
8263 $RM conftest*
8264
8265 ac_outfile=conftest.$ac_objext
8266 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8267 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8268 _lt_linker_boilerplate=`cat conftest.err`
8269 $RM -r conftest*
8270
8271
8272 ## CAVEAT EMPTOR:
8273 ## There is no encapsulation within the following macros, do not change
8274 ## the running order or otherwise move them around unless you know exactly
8275 ## what you are doing...
8276 if test -n "$compiler"; then
8277
8278 lt_prog_compiler_no_builtin_flag=
8279
8280 if test "$GCC" = yes; then
8281   case $cc_basename in
8282   nvcc*)
8283     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8284   *)
8285     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8286   esac
8287
8288   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8289 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8290 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8291   $as_echo_n "(cached) " >&6
8292 else
8293   lt_cv_prog_compiler_rtti_exceptions=no
8294    ac_outfile=conftest.$ac_objext
8295    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8296    lt_compiler_flag="-fno-rtti -fno-exceptions"
8297    # Insert the option either (1) after the last *FLAGS variable, or
8298    # (2) before a word containing "conftest.", or (3) at the end.
8299    # Note that $ac_compile itself does not contain backslashes and begins
8300    # with a dollar sign (not a hyphen), so the echo should work correctly.
8301    # The option is referenced via a variable to avoid confusing sed.
8302    lt_compile=`echo "$ac_compile" | $SED \
8303    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8304    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8305    -e 's:$: $lt_compiler_flag:'`
8306    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8307    (eval "$lt_compile" 2>conftest.err)
8308    ac_status=$?
8309    cat conftest.err >&5
8310    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311    if (exit $ac_status) && test -s "$ac_outfile"; then
8312      # The compiler can only warn and ignore the option if not recognized
8313      # So say no if there are warnings other than the usual output.
8314      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8315      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8316      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8317        lt_cv_prog_compiler_rtti_exceptions=yes
8318      fi
8319    fi
8320    $RM conftest*
8321
8322 fi
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8324 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8325
8326 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8327     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8328 else
8329     :
8330 fi
8331
8332 fi
8333
8334
8335
8336
8337
8338
8339   lt_prog_compiler_wl=
8340 lt_prog_compiler_pic=
8341 lt_prog_compiler_static=
8342
8343
8344   if test "$GCC" = yes; then
8345     lt_prog_compiler_wl='-Wl,'
8346     lt_prog_compiler_static='-static'
8347
8348     case $host_os in
8349       aix*)
8350       # All AIX code is PIC.
8351       if test "$host_cpu" = ia64; then
8352         # AIX 5 now supports IA64 processor
8353         lt_prog_compiler_static='-Bstatic'
8354       fi
8355       ;;
8356
8357     amigaos*)
8358       case $host_cpu in
8359       powerpc)
8360             # see comment about AmigaOS4 .so support
8361             lt_prog_compiler_pic='-fPIC'
8362         ;;
8363       m68k)
8364             # FIXME: we need at least 68020 code to build shared libraries, but
8365             # adding the `-m68020' flag to GCC prevents building anything better,
8366             # like `-m68040'.
8367             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8368         ;;
8369       esac
8370       ;;
8371
8372     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8373       # PIC is the default for these OSes.
8374       ;;
8375
8376     mingw* | cygwin* | pw32* | os2* | cegcc*)
8377       # This hack is so that the source file can tell whether it is being
8378       # built for inclusion in a dll (and should export symbols for example).
8379       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8380       # (--disable-auto-import) libraries
8381       lt_prog_compiler_pic='-DDLL_EXPORT'
8382       ;;
8383
8384     darwin* | rhapsody*)
8385       # PIC is the default on this platform
8386       # Common symbols not allowed in MH_DYLIB files
8387       lt_prog_compiler_pic='-fno-common'
8388       ;;
8389
8390     haiku*)
8391       # PIC is the default for Haiku.
8392       # The "-static" flag exists, but is broken.
8393       lt_prog_compiler_static=
8394       ;;
8395
8396     hpux*)
8397       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8398       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8399       # sets the default TLS model and affects inlining.
8400       case $host_cpu in
8401       hppa*64*)
8402         # +Z the default
8403         ;;
8404       *)
8405         lt_prog_compiler_pic='-fPIC'
8406         ;;
8407       esac
8408       ;;
8409
8410     interix[3-9]*)
8411       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8412       # Instead, we relocate shared libraries at runtime.
8413       ;;
8414
8415     msdosdjgpp*)
8416       # Just because we use GCC doesn't mean we suddenly get shared libraries
8417       # on systems that don't support them.
8418       lt_prog_compiler_can_build_shared=no
8419       enable_shared=no
8420       ;;
8421
8422     *nto* | *qnx*)
8423       # QNX uses GNU C++, but need to define -shared option too, otherwise
8424       # it will coredump.
8425       lt_prog_compiler_pic='-fPIC -shared'
8426       ;;
8427
8428     sysv4*MP*)
8429       if test -d /usr/nec; then
8430         lt_prog_compiler_pic=-Kconform_pic
8431       fi
8432       ;;
8433
8434     *)
8435       lt_prog_compiler_pic='-fPIC'
8436       ;;
8437     esac
8438
8439     case $cc_basename in
8440     nvcc*) # Cuda Compiler Driver 2.2
8441       lt_prog_compiler_wl='-Xlinker '
8442       if test -n "$lt_prog_compiler_pic"; then
8443         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8444       fi
8445       ;;
8446     esac
8447   else
8448     # PORTME Check for flag to pass linker flags through the system compiler.
8449     case $host_os in
8450     aix*)
8451       lt_prog_compiler_wl='-Wl,'
8452       if test "$host_cpu" = ia64; then
8453         # AIX 5 now supports IA64 processor
8454         lt_prog_compiler_static='-Bstatic'
8455       else
8456         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8457       fi
8458       ;;
8459
8460     mingw* | cygwin* | pw32* | os2* | cegcc*)
8461       # This hack is so that the source file can tell whether it is being
8462       # built for inclusion in a dll (and should export symbols for example).
8463       lt_prog_compiler_pic='-DDLL_EXPORT'
8464       ;;
8465
8466     hpux9* | hpux10* | hpux11*)
8467       lt_prog_compiler_wl='-Wl,'
8468       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8469       # not for PA HP-UX.
8470       case $host_cpu in
8471       hppa*64*|ia64*)
8472         # +Z the default
8473         ;;
8474       *)
8475         lt_prog_compiler_pic='+Z'
8476         ;;
8477       esac
8478       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8479       lt_prog_compiler_static='${wl}-a ${wl}archive'
8480       ;;
8481
8482     irix5* | irix6* | nonstopux*)
8483       lt_prog_compiler_wl='-Wl,'
8484       # PIC (with -KPIC) is the default.
8485       lt_prog_compiler_static='-non_shared'
8486       ;;
8487
8488     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8489       case $cc_basename in
8490       # old Intel for x86_64 which still supported -KPIC.
8491       ecc*)
8492         lt_prog_compiler_wl='-Wl,'
8493         lt_prog_compiler_pic='-KPIC'
8494         lt_prog_compiler_static='-static'
8495         ;;
8496       # icc used to be incompatible with GCC.
8497       # ICC 10 doesn't accept -KPIC any more.
8498       icc* | ifort*)
8499         lt_prog_compiler_wl='-Wl,'
8500         lt_prog_compiler_pic='-fPIC'
8501         lt_prog_compiler_static='-static'
8502         ;;
8503       # Lahey Fortran 8.1.
8504       lf95*)
8505         lt_prog_compiler_wl='-Wl,'
8506         lt_prog_compiler_pic='--shared'
8507         lt_prog_compiler_static='--static'
8508         ;;
8509       nagfor*)
8510         # NAG Fortran compiler
8511         lt_prog_compiler_wl='-Wl,-Wl,,'
8512         lt_prog_compiler_pic='-PIC'
8513         lt_prog_compiler_static='-Bstatic'
8514         ;;
8515       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8516         # Portland Group compilers (*not* the Pentium gcc compiler,
8517         # which looks to be a dead project)
8518         lt_prog_compiler_wl='-Wl,'
8519         lt_prog_compiler_pic='-fpic'
8520         lt_prog_compiler_static='-Bstatic'
8521         ;;
8522       ccc*)
8523         lt_prog_compiler_wl='-Wl,'
8524         # All Alpha code is PIC.
8525         lt_prog_compiler_static='-non_shared'
8526         ;;
8527       xl* | bgxl* | bgf* | mpixl*)
8528         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8529         lt_prog_compiler_wl='-Wl,'
8530         lt_prog_compiler_pic='-qpic'
8531         lt_prog_compiler_static='-qstaticlink'
8532         ;;
8533       *)
8534         case `$CC -V 2>&1 | sed 5q` in
8535         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8536           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8537           lt_prog_compiler_pic='-KPIC'
8538           lt_prog_compiler_static='-Bstatic'
8539           lt_prog_compiler_wl=''
8540           ;;
8541         *Sun\ F* | *Sun*Fortran*)
8542           lt_prog_compiler_pic='-KPIC'
8543           lt_prog_compiler_static='-Bstatic'
8544           lt_prog_compiler_wl='-Qoption ld '
8545           ;;
8546         *Sun\ C*)
8547           # Sun C 5.9
8548           lt_prog_compiler_pic='-KPIC'
8549           lt_prog_compiler_static='-Bstatic'
8550           lt_prog_compiler_wl='-Wl,'
8551           ;;
8552         *Intel*\ [CF]*Compiler*)
8553           lt_prog_compiler_wl='-Wl,'
8554           lt_prog_compiler_pic='-fPIC'
8555           lt_prog_compiler_static='-static'
8556           ;;
8557         *Portland\ Group*)
8558           lt_prog_compiler_wl='-Wl,'
8559           lt_prog_compiler_pic='-fpic'
8560           lt_prog_compiler_static='-Bstatic'
8561           ;;
8562         esac
8563         ;;
8564       esac
8565       ;;
8566
8567     newsos6)
8568       lt_prog_compiler_pic='-KPIC'
8569       lt_prog_compiler_static='-Bstatic'
8570       ;;
8571
8572     *nto* | *qnx*)
8573       # QNX uses GNU C++, but need to define -shared option too, otherwise
8574       # it will coredump.
8575       lt_prog_compiler_pic='-fPIC -shared'
8576       ;;
8577
8578     osf3* | osf4* | osf5*)
8579       lt_prog_compiler_wl='-Wl,'
8580       # All OSF/1 code is PIC.
8581       lt_prog_compiler_static='-non_shared'
8582       ;;
8583
8584     rdos*)
8585       lt_prog_compiler_static='-non_shared'
8586       ;;
8587
8588     solaris*)
8589       lt_prog_compiler_pic='-KPIC'
8590       lt_prog_compiler_static='-Bstatic'
8591       case $cc_basename in
8592       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8593         lt_prog_compiler_wl='-Qoption ld ';;
8594       *)
8595         lt_prog_compiler_wl='-Wl,';;
8596       esac
8597       ;;
8598
8599     sunos4*)
8600       lt_prog_compiler_wl='-Qoption ld '
8601       lt_prog_compiler_pic='-PIC'
8602       lt_prog_compiler_static='-Bstatic'
8603       ;;
8604
8605     sysv4 | sysv4.2uw2* | sysv4.3*)
8606       lt_prog_compiler_wl='-Wl,'
8607       lt_prog_compiler_pic='-KPIC'
8608       lt_prog_compiler_static='-Bstatic'
8609       ;;
8610
8611     sysv4*MP*)
8612       if test -d /usr/nec ;then
8613         lt_prog_compiler_pic='-Kconform_pic'
8614         lt_prog_compiler_static='-Bstatic'
8615       fi
8616       ;;
8617
8618     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8619       lt_prog_compiler_wl='-Wl,'
8620       lt_prog_compiler_pic='-KPIC'
8621       lt_prog_compiler_static='-Bstatic'
8622       ;;
8623
8624     unicos*)
8625       lt_prog_compiler_wl='-Wl,'
8626       lt_prog_compiler_can_build_shared=no
8627       ;;
8628
8629     uts4*)
8630       lt_prog_compiler_pic='-pic'
8631       lt_prog_compiler_static='-Bstatic'
8632       ;;
8633
8634     *)
8635       lt_prog_compiler_can_build_shared=no
8636       ;;
8637     esac
8638   fi
8639
8640 case $host_os in
8641   # For platforms which do not support PIC, -DPIC is meaningless:
8642   *djgpp*)
8643     lt_prog_compiler_pic=
8644     ;;
8645   *)
8646     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8647     ;;
8648 esac
8649
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8651 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8652 if ${lt_cv_prog_compiler_pic+:} false; then :
8653   $as_echo_n "(cached) " >&6
8654 else
8655   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8656 fi
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8658 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8659 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8660
8661 #
8662 # Check to make sure the PIC flag actually works.
8663 #
8664 if test -n "$lt_prog_compiler_pic"; then
8665   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8666 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8667 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8668   $as_echo_n "(cached) " >&6
8669 else
8670   lt_cv_prog_compiler_pic_works=no
8671    ac_outfile=conftest.$ac_objext
8672    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8673    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8674    # Insert the option either (1) after the last *FLAGS variable, or
8675    # (2) before a word containing "conftest.", or (3) at the end.
8676    # Note that $ac_compile itself does not contain backslashes and begins
8677    # with a dollar sign (not a hyphen), so the echo should work correctly.
8678    # The option is referenced via a variable to avoid confusing sed.
8679    lt_compile=`echo "$ac_compile" | $SED \
8680    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8681    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8682    -e 's:$: $lt_compiler_flag:'`
8683    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8684    (eval "$lt_compile" 2>conftest.err)
8685    ac_status=$?
8686    cat conftest.err >&5
8687    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688    if (exit $ac_status) && test -s "$ac_outfile"; then
8689      # The compiler can only warn and ignore the option if not recognized
8690      # So say no if there are warnings other than the usual output.
8691      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8692      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8693      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8694        lt_cv_prog_compiler_pic_works=yes
8695      fi
8696    fi
8697    $RM conftest*
8698
8699 fi
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8701 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8702
8703 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8704     case $lt_prog_compiler_pic in
8705      "" | " "*) ;;
8706      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8707      esac
8708 else
8709     lt_prog_compiler_pic=
8710      lt_prog_compiler_can_build_shared=no
8711 fi
8712
8713 fi
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725 #
8726 # Check to make sure the static flag actually works.
8727 #
8728 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8730 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8731 if ${lt_cv_prog_compiler_static_works+:} false; then :
8732   $as_echo_n "(cached) " >&6
8733 else
8734   lt_cv_prog_compiler_static_works=no
8735    save_LDFLAGS="$LDFLAGS"
8736    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8737    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8738    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8739      # The linker can only warn and ignore the option if not recognized
8740      # So say no if there are warnings
8741      if test -s conftest.err; then
8742        # Append any errors to the config.log.
8743        cat conftest.err 1>&5
8744        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8745        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8746        if diff conftest.exp conftest.er2 >/dev/null; then
8747          lt_cv_prog_compiler_static_works=yes
8748        fi
8749      else
8750        lt_cv_prog_compiler_static_works=yes
8751      fi
8752    fi
8753    $RM -r conftest*
8754    LDFLAGS="$save_LDFLAGS"
8755
8756 fi
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8758 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8759
8760 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8761     :
8762 else
8763     lt_prog_compiler_static=
8764 fi
8765
8766
8767
8768
8769
8770
8771
8772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8773 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8774 if ${lt_cv_prog_compiler_c_o+:} false; then :
8775   $as_echo_n "(cached) " >&6
8776 else
8777   lt_cv_prog_compiler_c_o=no
8778    $RM -r conftest 2>/dev/null
8779    mkdir conftest
8780    cd conftest
8781    mkdir out
8782    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8783
8784    lt_compiler_flag="-o out/conftest2.$ac_objext"
8785    # Insert the option either (1) after the last *FLAGS variable, or
8786    # (2) before a word containing "conftest.", or (3) at the end.
8787    # Note that $ac_compile itself does not contain backslashes and begins
8788    # with a dollar sign (not a hyphen), so the echo should work correctly.
8789    lt_compile=`echo "$ac_compile" | $SED \
8790    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8791    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8792    -e 's:$: $lt_compiler_flag:'`
8793    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8794    (eval "$lt_compile" 2>out/conftest.err)
8795    ac_status=$?
8796    cat out/conftest.err >&5
8797    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8799    then
8800      # The compiler can only warn and ignore the option if not recognized
8801      # So say no if there are warnings
8802      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8803      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8804      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8805        lt_cv_prog_compiler_c_o=yes
8806      fi
8807    fi
8808    chmod u+w . 2>&5
8809    $RM conftest*
8810    # SGI C++ compiler will create directory out/ii_files/ for
8811    # template instantiation
8812    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8813    $RM out/* && rmdir out
8814    cd ..
8815    $RM -r conftest
8816    $RM conftest*
8817
8818 fi
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8820 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8821
8822
8823
8824
8825
8826
8827   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8828 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8829 if ${lt_cv_prog_compiler_c_o+:} false; then :
8830   $as_echo_n "(cached) " >&6
8831 else
8832   lt_cv_prog_compiler_c_o=no
8833    $RM -r conftest 2>/dev/null
8834    mkdir conftest
8835    cd conftest
8836    mkdir out
8837    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8838
8839    lt_compiler_flag="-o out/conftest2.$ac_objext"
8840    # Insert the option either (1) after the last *FLAGS variable, or
8841    # (2) before a word containing "conftest.", or (3) at the end.
8842    # Note that $ac_compile itself does not contain backslashes and begins
8843    # with a dollar sign (not a hyphen), so the echo should work correctly.
8844    lt_compile=`echo "$ac_compile" | $SED \
8845    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8846    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8847    -e 's:$: $lt_compiler_flag:'`
8848    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8849    (eval "$lt_compile" 2>out/conftest.err)
8850    ac_status=$?
8851    cat out/conftest.err >&5
8852    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8854    then
8855      # The compiler can only warn and ignore the option if not recognized
8856      # So say no if there are warnings
8857      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8858      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8859      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8860        lt_cv_prog_compiler_c_o=yes
8861      fi
8862    fi
8863    chmod u+w . 2>&5
8864    $RM conftest*
8865    # SGI C++ compiler will create directory out/ii_files/ for
8866    # template instantiation
8867    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8868    $RM out/* && rmdir out
8869    cd ..
8870    $RM -r conftest
8871    $RM conftest*
8872
8873 fi
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8875 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8876
8877
8878
8879
8880 hard_links="nottested"
8881 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8882   # do not overwrite the value of need_locks provided by the user
8883   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8884 $as_echo_n "checking if we can lock with hard links... " >&6; }
8885   hard_links=yes
8886   $RM conftest*
8887   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8888   touch conftest.a
8889   ln conftest.a conftest.b 2>&5 || hard_links=no
8890   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8892 $as_echo "$hard_links" >&6; }
8893   if test "$hard_links" = no; then
8894     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8895 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8896     need_locks=warn
8897   fi
8898 else
8899   need_locks=no
8900 fi
8901
8902
8903
8904
8905
8906
8907   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8908 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8909
8910   runpath_var=
8911   allow_undefined_flag=
8912   always_export_symbols=no
8913   archive_cmds=
8914   archive_expsym_cmds=
8915   compiler_needs_object=no
8916   enable_shared_with_static_runtimes=no
8917   export_dynamic_flag_spec=
8918   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8919   hardcode_automatic=no
8920   hardcode_direct=no
8921   hardcode_direct_absolute=no
8922   hardcode_libdir_flag_spec=
8923   hardcode_libdir_separator=
8924   hardcode_minus_L=no
8925   hardcode_shlibpath_var=unsupported
8926   inherit_rpath=no
8927   link_all_deplibs=unknown
8928   module_cmds=
8929   module_expsym_cmds=
8930   old_archive_from_new_cmds=
8931   old_archive_from_expsyms_cmds=
8932   thread_safe_flag_spec=
8933   whole_archive_flag_spec=
8934   # include_expsyms should be a list of space-separated symbols to be *always*
8935   # included in the symbol list
8936   include_expsyms=
8937   # exclude_expsyms can be an extended regexp of symbols to exclude
8938   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8939   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8940   # as well as any symbol that contains `d'.
8941   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8942   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8943   # platforms (ab)use it in PIC code, but their linkers get confused if
8944   # the symbol is explicitly referenced.  Since portable code cannot
8945   # rely on this symbol name, it's probably fine to never include it in
8946   # preloaded symbol tables.
8947   # Exclude shared library initialization/finalization symbols.
8948   extract_expsyms_cmds=
8949
8950   case $host_os in
8951   cygwin* | mingw* | pw32* | cegcc*)
8952     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8953     # When not using gcc, we currently assume that we are using
8954     # Microsoft Visual C++.
8955     if test "$GCC" != yes; then
8956       with_gnu_ld=no
8957     fi
8958     ;;
8959   interix*)
8960     # we just hope/assume this is gcc and not c89 (= MSVC++)
8961     with_gnu_ld=yes
8962     ;;
8963   openbsd*)
8964     with_gnu_ld=no
8965     ;;
8966   esac
8967
8968   ld_shlibs=yes
8969
8970   # On some targets, GNU ld is compatible enough with the native linker
8971   # that we're better off using the native interface for both.
8972   lt_use_gnu_ld_interface=no
8973   if test "$with_gnu_ld" = yes; then
8974     case $host_os in
8975       aix*)
8976         # The AIX port of GNU ld has always aspired to compatibility
8977         # with the native linker.  However, as the warning in the GNU ld
8978         # block says, versions before 2.19.5* couldn't really create working
8979         # shared libraries, regardless of the interface used.
8980         case `$LD -v 2>&1` in
8981           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8982           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8983           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8984           *)
8985             lt_use_gnu_ld_interface=yes
8986             ;;
8987         esac
8988         ;;
8989       *)
8990         lt_use_gnu_ld_interface=yes
8991         ;;
8992     esac
8993   fi
8994
8995   if test "$lt_use_gnu_ld_interface" = yes; then
8996     # If archive_cmds runs LD, not CC, wlarc should be empty
8997     wlarc='${wl}'
8998
8999     # Set some defaults for GNU ld with shared library support. These
9000     # are reset later if shared libraries are not supported. Putting them
9001     # here allows them to be overridden if necessary.
9002     runpath_var=LD_RUN_PATH
9003     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9004     export_dynamic_flag_spec='${wl}--export-dynamic'
9005     # ancient GNU ld didn't support --whole-archive et. al.
9006     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9007       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9008     else
9009       whole_archive_flag_spec=
9010     fi
9011     supports_anon_versioning=no
9012     case `$LD -v 2>&1` in
9013       *GNU\ gold*) supports_anon_versioning=yes ;;
9014       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9015       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9016       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9017       *\ 2.11.*) ;; # other 2.11 versions
9018       *) supports_anon_versioning=yes ;;
9019     esac
9020
9021     # See if GNU ld supports shared libraries.
9022     case $host_os in
9023     aix[3-9]*)
9024       # On AIX/PPC, the GNU linker is very broken
9025       if test "$host_cpu" != ia64; then
9026         ld_shlibs=no
9027         cat <<_LT_EOF 1>&2
9028
9029 *** Warning: the GNU linker, at least up to release 2.19, is reported
9030 *** to be unable to reliably create shared libraries on AIX.
9031 *** Therefore, libtool is disabling shared libraries support.  If you
9032 *** really care for shared libraries, you may want to install binutils
9033 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9034 *** You will then need to restart the configuration process.
9035
9036 _LT_EOF
9037       fi
9038       ;;
9039
9040     amigaos*)
9041       case $host_cpu in
9042       powerpc)
9043             # see comment about AmigaOS4 .so support
9044             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9045             archive_expsym_cmds=''
9046         ;;
9047       m68k)
9048             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)'
9049             hardcode_libdir_flag_spec='-L$libdir'
9050             hardcode_minus_L=yes
9051         ;;
9052       esac
9053       ;;
9054
9055     beos*)
9056       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9057         allow_undefined_flag=unsupported
9058         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9059         # support --undefined.  This deserves some investigation.  FIXME
9060         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9061       else
9062         ld_shlibs=no
9063       fi
9064       ;;
9065
9066     cygwin* | mingw* | pw32* | cegcc*)
9067       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9068       # as there is no search path for DLLs.
9069       hardcode_libdir_flag_spec='-L$libdir'
9070       export_dynamic_flag_spec='${wl}--export-all-symbols'
9071       allow_undefined_flag=unsupported
9072       always_export_symbols=no
9073       enable_shared_with_static_runtimes=yes
9074       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9075       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9076
9077       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9078         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9079         # If the export-symbols file already is a .def file (1st line
9080         # is EXPORTS), use it as is; otherwise, prepend...
9081         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9082           cp $export_symbols $output_objdir/$soname.def;
9083         else
9084           echo EXPORTS > $output_objdir/$soname.def;
9085           cat $export_symbols >> $output_objdir/$soname.def;
9086         fi~
9087         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9088       else
9089         ld_shlibs=no
9090       fi
9091       ;;
9092
9093     haiku*)
9094       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9095       link_all_deplibs=yes
9096       ;;
9097
9098     interix[3-9]*)
9099       hardcode_direct=no
9100       hardcode_shlibpath_var=no
9101       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9102       export_dynamic_flag_spec='${wl}-E'
9103       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9104       # Instead, shared libraries are loaded at an image base (0x10000000 by
9105       # default) and relocated if they conflict, which is a slow very memory
9106       # consuming and fragmenting process.  To avoid this, we pick a random,
9107       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9108       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9109       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9110       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'
9111       ;;
9112
9113     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9114       tmp_diet=no
9115       if test "$host_os" = linux-dietlibc; then
9116         case $cc_basename in
9117           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9118         esac
9119       fi
9120       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9121          && test "$tmp_diet" = no
9122       then
9123         tmp_addflag=' $pic_flag'
9124         tmp_sharedflag='-shared'
9125         case $cc_basename,$host_cpu in
9126         pgcc*)                          # Portland Group C compiler
9127           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9128           tmp_addflag=' $pic_flag'
9129           ;;
9130         pgf77* | pgf90* | pgf95* | pgfortran*)
9131                                         # Portland Group f77 and f90 compilers
9132           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9133           tmp_addflag=' $pic_flag -Mnomain' ;;
9134         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9135           tmp_addflag=' -i_dynamic' ;;
9136         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9137           tmp_addflag=' -i_dynamic -nofor_main' ;;
9138         ifc* | ifort*)                  # Intel Fortran compiler
9139           tmp_addflag=' -nofor_main' ;;
9140         lf95*)                          # Lahey Fortran 8.1
9141           whole_archive_flag_spec=
9142           tmp_sharedflag='--shared' ;;
9143         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9144           tmp_sharedflag='-qmkshrobj'
9145           tmp_addflag= ;;
9146         nvcc*)  # Cuda Compiler Driver 2.2
9147           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9148           compiler_needs_object=yes
9149           ;;
9150         esac
9151         case `$CC -V 2>&1 | sed 5q` in
9152         *Sun\ C*)                       # Sun C 5.9
9153           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9154           compiler_needs_object=yes
9155           tmp_sharedflag='-G' ;;
9156         *Sun\ F*)                       # Sun Fortran 8.3
9157           tmp_sharedflag='-G' ;;
9158         esac
9159         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9160
9161         if test "x$supports_anon_versioning" = xyes; then
9162           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9163             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9164             echo "local: *; };" >> $output_objdir/$libname.ver~
9165             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9166         fi
9167
9168         case $cc_basename in
9169         xlf* | bgf* | bgxlf* | mpixlf*)
9170           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9171           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9172           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9173           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9174           if test "x$supports_anon_versioning" = xyes; then
9175             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9176               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9177               echo "local: *; };" >> $output_objdir/$libname.ver~
9178               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9179           fi
9180           ;;
9181         esac
9182       else
9183         ld_shlibs=no
9184       fi
9185       ;;
9186
9187     netbsd*)
9188       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9189         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9190         wlarc=
9191       else
9192         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9193         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9194       fi
9195       ;;
9196
9197     solaris*)
9198       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9199         ld_shlibs=no
9200         cat <<_LT_EOF 1>&2
9201
9202 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9203 *** create shared libraries on Solaris systems.  Therefore, libtool
9204 *** is disabling shared libraries support.  We urge you to upgrade GNU
9205 *** binutils to release 2.9.1 or newer.  Another option is to modify
9206 *** your PATH or compiler configuration so that the native linker is
9207 *** used, and then restart.
9208
9209 _LT_EOF
9210       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9211         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9212         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9213       else
9214         ld_shlibs=no
9215       fi
9216       ;;
9217
9218     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9219       case `$LD -v 2>&1` in
9220         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9221         ld_shlibs=no
9222         cat <<_LT_EOF 1>&2
9223
9224 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9225 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9226 *** is disabling shared libraries support.  We urge you to upgrade GNU
9227 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9228 *** your PATH or compiler configuration so that the native linker is
9229 *** used, and then restart.
9230
9231 _LT_EOF
9232         ;;
9233         *)
9234           # For security reasons, it is highly recommended that you always
9235           # use absolute paths for naming shared libraries, and exclude the
9236           # DT_RUNPATH tag from executables and libraries.  But doing so
9237           # requires that you compile everything twice, which is a pain.
9238           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9239             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9240             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9241             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9242           else
9243             ld_shlibs=no
9244           fi
9245         ;;
9246       esac
9247       ;;
9248
9249     sunos4*)
9250       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9251       wlarc=
9252       hardcode_direct=yes
9253       hardcode_shlibpath_var=no
9254       ;;
9255
9256     *)
9257       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9258         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9259         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9260       else
9261         ld_shlibs=no
9262       fi
9263       ;;
9264     esac
9265
9266     if test "$ld_shlibs" = no; then
9267       runpath_var=
9268       hardcode_libdir_flag_spec=
9269       export_dynamic_flag_spec=
9270       whole_archive_flag_spec=
9271     fi
9272   else
9273     # PORTME fill in a description of your system's linker (not GNU ld)
9274     case $host_os in
9275     aix3*)
9276       allow_undefined_flag=unsupported
9277       always_export_symbols=yes
9278       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'
9279       # Note: this linker hardcodes the directories in LIBPATH if there
9280       # are no directories specified by -L.
9281       hardcode_minus_L=yes
9282       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9283         # Neither direct hardcoding nor static linking is supported with a
9284         # broken collect2.
9285         hardcode_direct=unsupported
9286       fi
9287       ;;
9288
9289     aix[4-9]*)
9290       if test "$host_cpu" = ia64; then
9291         # On IA64, the linker does run time linking by default, so we don't
9292         # have to do anything special.
9293         aix_use_runtimelinking=no
9294         exp_sym_flag='-Bexport'
9295         no_entry_flag=""
9296       else
9297         # If we're using GNU nm, then we don't want the "-C" option.
9298         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9299         # Also, AIX nm treats weak defined symbols like other global
9300         # defined symbols, whereas GNU nm marks them as "W".
9301         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9302           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9303         else
9304           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'
9305         fi
9306         aix_use_runtimelinking=no
9307
9308         # Test if we are trying to use run time linking or normal
9309         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9310         # need to do runtime linking.
9311         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9312           for ld_flag in $LDFLAGS; do
9313           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9314             aix_use_runtimelinking=yes
9315             break
9316           fi
9317           done
9318           ;;
9319         esac
9320
9321         exp_sym_flag='-bexport'
9322         no_entry_flag='-bnoentry'
9323       fi
9324
9325       # When large executables or shared objects are built, AIX ld can
9326       # have problems creating the table of contents.  If linking a library
9327       # or program results in "error TOC overflow" add -mminimal-toc to
9328       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9329       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9330
9331       archive_cmds=''
9332       hardcode_direct=yes
9333       hardcode_direct_absolute=yes
9334       hardcode_libdir_separator=':'
9335       link_all_deplibs=yes
9336       file_list_spec='${wl}-f,'
9337
9338       if test "$GCC" = yes; then
9339         case $host_os in aix4.[012]|aix4.[012].*)
9340         # We only want to do this on AIX 4.2 and lower, the check
9341         # below for broken collect2 doesn't work under 4.3+
9342           collect2name=`${CC} -print-prog-name=collect2`
9343           if test -f "$collect2name" &&
9344            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9345           then
9346           # We have reworked collect2
9347           :
9348           else
9349           # We have old collect2
9350           hardcode_direct=unsupported
9351           # It fails to find uninstalled libraries when the uninstalled
9352           # path is not listed in the libpath.  Setting hardcode_minus_L
9353           # to unsupported forces relinking
9354           hardcode_minus_L=yes
9355           hardcode_libdir_flag_spec='-L$libdir'
9356           hardcode_libdir_separator=
9357           fi
9358           ;;
9359         esac
9360         shared_flag='-shared'
9361         if test "$aix_use_runtimelinking" = yes; then
9362           shared_flag="$shared_flag "'${wl}-G'
9363         fi
9364       else
9365         # not using gcc
9366         if test "$host_cpu" = ia64; then
9367         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9368         # chokes on -Wl,-G. The following line is correct:
9369           shared_flag='-G'
9370         else
9371           if test "$aix_use_runtimelinking" = yes; then
9372             shared_flag='${wl}-G'
9373           else
9374             shared_flag='${wl}-bM:SRE'
9375           fi
9376         fi
9377       fi
9378
9379       export_dynamic_flag_spec='${wl}-bexpall'
9380       # It seems that -bexpall does not export symbols beginning with
9381       # underscore (_), so it is better to generate a list of symbols to export.
9382       always_export_symbols=yes
9383       if test "$aix_use_runtimelinking" = yes; then
9384         # Warning - without using the other runtime loading flags (-brtl),
9385         # -berok will link without error, but may produce a broken library.
9386         allow_undefined_flag='-berok'
9387         # Determine the default libpath from the value encoded in an
9388         # empty executable.
9389         if test "${lt_cv_aix_libpath+set}" = set; then
9390   aix_libpath=$lt_cv_aix_libpath
9391 else
9392   if ${lt_cv_aix_libpath_+:} false; then :
9393   $as_echo_n "(cached) " >&6
9394 else
9395   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9396 /* end confdefs.h.  */
9397
9398 int
9399 main ()
9400 {
9401
9402   ;
9403   return 0;
9404 }
9405 _ACEOF
9406 if ac_fn_c_try_link "$LINENO"; then :
9407
9408   lt_aix_libpath_sed='
9409       /Import File Strings/,/^$/ {
9410           /^0/ {
9411               s/^0  *\([^ ]*\) *$/\1/
9412               p
9413           }
9414       }'
9415   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9416   # Check for a 64-bit object if we didn't find anything.
9417   if test -z "$lt_cv_aix_libpath_"; then
9418     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9419   fi
9420 fi
9421 rm -f core conftest.err conftest.$ac_objext \
9422     conftest$ac_exeext conftest.$ac_ext
9423   if test -z "$lt_cv_aix_libpath_"; then
9424     lt_cv_aix_libpath_="/usr/lib:/lib"
9425   fi
9426
9427 fi
9428
9429   aix_libpath=$lt_cv_aix_libpath_
9430 fi
9431
9432         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9433         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9434       else
9435         if test "$host_cpu" = ia64; then
9436           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9437           allow_undefined_flag="-z nodefs"
9438           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"
9439         else
9440          # Determine the default libpath from the value encoded in an
9441          # empty executable.
9442          if test "${lt_cv_aix_libpath+set}" = set; then
9443   aix_libpath=$lt_cv_aix_libpath
9444 else
9445   if ${lt_cv_aix_libpath_+:} false; then :
9446   $as_echo_n "(cached) " >&6
9447 else
9448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9449 /* end confdefs.h.  */
9450
9451 int
9452 main ()
9453 {
9454
9455   ;
9456   return 0;
9457 }
9458 _ACEOF
9459 if ac_fn_c_try_link "$LINENO"; then :
9460
9461   lt_aix_libpath_sed='
9462       /Import File Strings/,/^$/ {
9463           /^0/ {
9464               s/^0  *\([^ ]*\) *$/\1/
9465               p
9466           }
9467       }'
9468   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9469   # Check for a 64-bit object if we didn't find anything.
9470   if test -z "$lt_cv_aix_libpath_"; then
9471     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9472   fi
9473 fi
9474 rm -f core conftest.err conftest.$ac_objext \
9475     conftest$ac_exeext conftest.$ac_ext
9476   if test -z "$lt_cv_aix_libpath_"; then
9477     lt_cv_aix_libpath_="/usr/lib:/lib"
9478   fi
9479
9480 fi
9481
9482   aix_libpath=$lt_cv_aix_libpath_
9483 fi
9484
9485          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9486           # Warning - without using the other run time loading flags,
9487           # -berok will link without error, but may produce a broken library.
9488           no_undefined_flag=' ${wl}-bernotok'
9489           allow_undefined_flag=' ${wl}-berok'
9490           if test "$with_gnu_ld" = yes; then
9491             # We only use this code for GNU lds that support --whole-archive.
9492             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9493           else
9494             # Exported symbols can be pulled into shared objects from archives
9495             whole_archive_flag_spec='$convenience'
9496           fi
9497           archive_cmds_need_lc=yes
9498           # This is similar to how AIX traditionally builds its shared libraries.
9499           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'
9500         fi
9501       fi
9502       ;;
9503
9504     amigaos*)
9505       case $host_cpu in
9506       powerpc)
9507             # see comment about AmigaOS4 .so support
9508             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9509             archive_expsym_cmds=''
9510         ;;
9511       m68k)
9512             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)'
9513             hardcode_libdir_flag_spec='-L$libdir'
9514             hardcode_minus_L=yes
9515         ;;
9516       esac
9517       ;;
9518
9519     bsdi[45]*)
9520       export_dynamic_flag_spec=-rdynamic
9521       ;;
9522
9523     cygwin* | mingw* | pw32* | cegcc*)
9524       # When not using gcc, we currently assume that we are using
9525       # Microsoft Visual C++.
9526       # hardcode_libdir_flag_spec is actually meaningless, as there is
9527       # no search path for DLLs.
9528       case $cc_basename in
9529       cl*)
9530         # Native MSVC
9531         hardcode_libdir_flag_spec=' '
9532         allow_undefined_flag=unsupported
9533         always_export_symbols=yes
9534         file_list_spec='@'
9535         # Tell ltmain to make .lib files, not .a files.
9536         libext=lib
9537         # Tell ltmain to make .dll files, not .so files.
9538         shrext_cmds=".dll"
9539         # FIXME: Setting linknames here is a bad hack.
9540         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9541         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9542             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9543           else
9544             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9545           fi~
9546           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9547           linknames='
9548         # The linker will not automatically build a static lib if we build a DLL.
9549         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9550         enable_shared_with_static_runtimes=yes
9551         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9552         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9553         # Don't use ranlib
9554         old_postinstall_cmds='chmod 644 $oldlib'
9555         postlink_cmds='lt_outputfile="@OUTPUT@"~
9556           lt_tool_outputfile="@TOOL_OUTPUT@"~
9557           case $lt_outputfile in
9558             *.exe|*.EXE) ;;
9559             *)
9560               lt_outputfile="$lt_outputfile.exe"
9561               lt_tool_outputfile="$lt_tool_outputfile.exe"
9562               ;;
9563           esac~
9564           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9565             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9566             $RM "$lt_outputfile.manifest";
9567           fi'
9568         ;;
9569       *)
9570         # Assume MSVC wrapper
9571         hardcode_libdir_flag_spec=' '
9572         allow_undefined_flag=unsupported
9573         # Tell ltmain to make .lib files, not .a files.
9574         libext=lib
9575         # Tell ltmain to make .dll files, not .so files.
9576         shrext_cmds=".dll"
9577         # FIXME: Setting linknames here is a bad hack.
9578         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9579         # The linker will automatically build a .lib file if we build a DLL.
9580         old_archive_from_new_cmds='true'
9581         # FIXME: Should let the user specify the lib program.
9582         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9583         enable_shared_with_static_runtimes=yes
9584         ;;
9585       esac
9586       ;;
9587
9588     darwin* | rhapsody*)
9589
9590
9591   archive_cmds_need_lc=no
9592   hardcode_direct=no
9593   hardcode_automatic=yes
9594   hardcode_shlibpath_var=unsupported
9595   if test "$lt_cv_ld_force_load" = "yes"; then
9596     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9597
9598   else
9599     whole_archive_flag_spec=''
9600   fi
9601   link_all_deplibs=yes
9602   allow_undefined_flag="$_lt_dar_allow_undefined"
9603   case $cc_basename in
9604      ifort*) _lt_dar_can_shared=yes ;;
9605      *) _lt_dar_can_shared=$GCC ;;
9606   esac
9607   if test "$_lt_dar_can_shared" = "yes"; then
9608     output_verbose_link_cmd=func_echo_all
9609     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9610     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9611     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}"
9612     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}"
9613
9614   else
9615   ld_shlibs=no
9616   fi
9617
9618       ;;
9619
9620     dgux*)
9621       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9622       hardcode_libdir_flag_spec='-L$libdir'
9623       hardcode_shlibpath_var=no
9624       ;;
9625
9626     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9627     # support.  Future versions do this automatically, but an explicit c++rt0.o
9628     # does not break anything, and helps significantly (at the cost of a little
9629     # extra space).
9630     freebsd2.2*)
9631       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9632       hardcode_libdir_flag_spec='-R$libdir'
9633       hardcode_direct=yes
9634       hardcode_shlibpath_var=no
9635       ;;
9636
9637     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9638     freebsd2.*)
9639       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9640       hardcode_direct=yes
9641       hardcode_minus_L=yes
9642       hardcode_shlibpath_var=no
9643       ;;
9644
9645     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9646     freebsd* | dragonfly*)
9647       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9648       hardcode_libdir_flag_spec='-R$libdir'
9649       hardcode_direct=yes
9650       hardcode_shlibpath_var=no
9651       ;;
9652
9653     hpux9*)
9654       if test "$GCC" = yes; then
9655         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9656       else
9657         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'
9658       fi
9659       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9660       hardcode_libdir_separator=:
9661       hardcode_direct=yes
9662
9663       # hardcode_minus_L: Not really in the search PATH,
9664       # but as the default location of the library.
9665       hardcode_minus_L=yes
9666       export_dynamic_flag_spec='${wl}-E'
9667       ;;
9668
9669     hpux10*)
9670       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9671         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9672       else
9673         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9674       fi
9675       if test "$with_gnu_ld" = no; then
9676         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9677         hardcode_libdir_separator=:
9678         hardcode_direct=yes
9679         hardcode_direct_absolute=yes
9680         export_dynamic_flag_spec='${wl}-E'
9681         # hardcode_minus_L: Not really in the search PATH,
9682         # but as the default location of the library.
9683         hardcode_minus_L=yes
9684       fi
9685       ;;
9686
9687     hpux11*)
9688       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9689         case $host_cpu in
9690         hppa*64*)
9691           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9692           ;;
9693         ia64*)
9694           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9695           ;;
9696         *)
9697           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9698           ;;
9699         esac
9700       else
9701         case $host_cpu in
9702         hppa*64*)
9703           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9704           ;;
9705         ia64*)
9706           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9707           ;;
9708         *)
9709
9710           # Older versions of the 11.00 compiler do not understand -b yet
9711           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9712           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9713 $as_echo_n "checking if $CC understands -b... " >&6; }
9714 if ${lt_cv_prog_compiler__b+:} false; then :
9715   $as_echo_n "(cached) " >&6
9716 else
9717   lt_cv_prog_compiler__b=no
9718    save_LDFLAGS="$LDFLAGS"
9719    LDFLAGS="$LDFLAGS -b"
9720    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9721    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9722      # The linker can only warn and ignore the option if not recognized
9723      # So say no if there are warnings
9724      if test -s conftest.err; then
9725        # Append any errors to the config.log.
9726        cat conftest.err 1>&5
9727        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9728        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9729        if diff conftest.exp conftest.er2 >/dev/null; then
9730          lt_cv_prog_compiler__b=yes
9731        fi
9732      else
9733        lt_cv_prog_compiler__b=yes
9734      fi
9735    fi
9736    $RM -r conftest*
9737    LDFLAGS="$save_LDFLAGS"
9738
9739 fi
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9741 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9742
9743 if test x"$lt_cv_prog_compiler__b" = xyes; then
9744     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9745 else
9746     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9747 fi
9748
9749           ;;
9750         esac
9751       fi
9752       if test "$with_gnu_ld" = no; then
9753         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9754         hardcode_libdir_separator=:
9755
9756         case $host_cpu in
9757         hppa*64*|ia64*)
9758           hardcode_direct=no
9759           hardcode_shlibpath_var=no
9760           ;;
9761         *)
9762           hardcode_direct=yes
9763           hardcode_direct_absolute=yes
9764           export_dynamic_flag_spec='${wl}-E'
9765
9766           # hardcode_minus_L: Not really in the search PATH,
9767           # but as the default location of the library.
9768           hardcode_minus_L=yes
9769           ;;
9770         esac
9771       fi
9772       ;;
9773
9774     irix5* | irix6* | nonstopux*)
9775       if test "$GCC" = yes; then
9776         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9777         # Try to use the -exported_symbol ld option, if it does not
9778         # work, assume that -exports_file does not work either and
9779         # implicitly export all symbols.
9780         # This should be the same for all languages, so no per-tag cache variable.
9781         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9782 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9783 if ${lt_cv_irix_exported_symbol+:} false; then :
9784   $as_echo_n "(cached) " >&6
9785 else
9786   save_LDFLAGS="$LDFLAGS"
9787            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9788            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9789 /* end confdefs.h.  */
9790 int foo (void) { return 0; }
9791 _ACEOF
9792 if ac_fn_c_try_link "$LINENO"; then :
9793   lt_cv_irix_exported_symbol=yes
9794 else
9795   lt_cv_irix_exported_symbol=no
9796 fi
9797 rm -f core conftest.err conftest.$ac_objext \
9798     conftest$ac_exeext conftest.$ac_ext
9799            LDFLAGS="$save_LDFLAGS"
9800 fi
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9802 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9803         if test "$lt_cv_irix_exported_symbol" = yes; then
9804           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9805         fi
9806       else
9807         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9808         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9809       fi
9810       archive_cmds_need_lc='no'
9811       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9812       hardcode_libdir_separator=:
9813       inherit_rpath=yes
9814       link_all_deplibs=yes
9815       ;;
9816
9817     netbsd*)
9818       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9819         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9820       else
9821         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9822       fi
9823       hardcode_libdir_flag_spec='-R$libdir'
9824       hardcode_direct=yes
9825       hardcode_shlibpath_var=no
9826       ;;
9827
9828     newsos6)
9829       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9830       hardcode_direct=yes
9831       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9832       hardcode_libdir_separator=:
9833       hardcode_shlibpath_var=no
9834       ;;
9835
9836     *nto* | *qnx*)
9837       ;;
9838
9839     openbsd*)
9840       if test -f /usr/libexec/ld.so; then
9841         hardcode_direct=yes
9842         hardcode_shlibpath_var=no
9843         hardcode_direct_absolute=yes
9844         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9845           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9846           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9847           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9848           export_dynamic_flag_spec='${wl}-E'
9849         else
9850           case $host_os in
9851            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9852              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9853              hardcode_libdir_flag_spec='-R$libdir'
9854              ;;
9855            *)
9856              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9857              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9858              ;;
9859           esac
9860         fi
9861       else
9862         ld_shlibs=no
9863       fi
9864       ;;
9865
9866     os2*)
9867       hardcode_libdir_flag_spec='-L$libdir'
9868       hardcode_minus_L=yes
9869       allow_undefined_flag=unsupported
9870       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'
9871       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9872       ;;
9873
9874     osf3*)
9875       if test "$GCC" = yes; then
9876         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9877         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9878       else
9879         allow_undefined_flag=' -expect_unresolved \*'
9880         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9881       fi
9882       archive_cmds_need_lc='no'
9883       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9884       hardcode_libdir_separator=:
9885       ;;
9886
9887     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9888       if test "$GCC" = yes; then
9889         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9890         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9891         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9892       else
9893         allow_undefined_flag=' -expect_unresolved \*'
9894         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9895         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~
9896         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9897
9898         # Both c and cxx compiler support -rpath directly
9899         hardcode_libdir_flag_spec='-rpath $libdir'
9900       fi
9901       archive_cmds_need_lc='no'
9902       hardcode_libdir_separator=:
9903       ;;
9904
9905     solaris*)
9906       no_undefined_flag=' -z defs'
9907       if test "$GCC" = yes; then
9908         wlarc='${wl}'
9909         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9910         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9911           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9912       else
9913         case `$CC -V 2>&1` in
9914         *"Compilers 5.0"*)
9915           wlarc=''
9916           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9917           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9918           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9919           ;;
9920         *)
9921           wlarc='${wl}'
9922           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9923           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9924           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9925           ;;
9926         esac
9927       fi
9928       hardcode_libdir_flag_spec='-R$libdir'
9929       hardcode_shlibpath_var=no
9930       case $host_os in
9931       solaris2.[0-5] | solaris2.[0-5].*) ;;
9932       *)
9933         # The compiler driver will combine and reorder linker options,
9934         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9935         # but is careful enough not to reorder.
9936         # Supported since Solaris 2.6 (maybe 2.5.1?)
9937         if test "$GCC" = yes; then
9938           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9939         else
9940           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9941         fi
9942         ;;
9943       esac
9944       link_all_deplibs=yes
9945       ;;
9946
9947     sunos4*)
9948       if test "x$host_vendor" = xsequent; then
9949         # Use $CC to link under sequent, because it throws in some extra .o
9950         # files that make .init and .fini sections work.
9951         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9952       else
9953         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9954       fi
9955       hardcode_libdir_flag_spec='-L$libdir'
9956       hardcode_direct=yes
9957       hardcode_minus_L=yes
9958       hardcode_shlibpath_var=no
9959       ;;
9960
9961     sysv4)
9962       case $host_vendor in
9963         sni)
9964           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9965           hardcode_direct=yes # is this really true???
9966         ;;
9967         siemens)
9968           ## LD is ld it makes a PLAMLIB
9969           ## CC just makes a GrossModule.
9970           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9971           reload_cmds='$CC -r -o $output$reload_objs'
9972           hardcode_direct=no
9973         ;;
9974         motorola)
9975           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9976           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9977         ;;
9978       esac
9979       runpath_var='LD_RUN_PATH'
9980       hardcode_shlibpath_var=no
9981       ;;
9982
9983     sysv4.3*)
9984       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9985       hardcode_shlibpath_var=no
9986       export_dynamic_flag_spec='-Bexport'
9987       ;;
9988
9989     sysv4*MP*)
9990       if test -d /usr/nec; then
9991         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9992         hardcode_shlibpath_var=no
9993         runpath_var=LD_RUN_PATH
9994         hardcode_runpath_var=yes
9995         ld_shlibs=yes
9996       fi
9997       ;;
9998
9999     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10000       no_undefined_flag='${wl}-z,text'
10001       archive_cmds_need_lc=no
10002       hardcode_shlibpath_var=no
10003       runpath_var='LD_RUN_PATH'
10004
10005       if test "$GCC" = yes; then
10006         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10007         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10008       else
10009         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10010         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10011       fi
10012       ;;
10013
10014     sysv5* | sco3.2v5* | sco5v6*)
10015       # Note: We can NOT use -z defs as we might desire, because we do not
10016       # link with -lc, and that would cause any symbols used from libc to
10017       # always be unresolved, which means just about no library would
10018       # ever link correctly.  If we're not using GNU ld we use -z text
10019       # though, which does catch some bad symbols but isn't as heavy-handed
10020       # as -z defs.
10021       no_undefined_flag='${wl}-z,text'
10022       allow_undefined_flag='${wl}-z,nodefs'
10023       archive_cmds_need_lc=no
10024       hardcode_shlibpath_var=no
10025       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10026       hardcode_libdir_separator=':'
10027       link_all_deplibs=yes
10028       export_dynamic_flag_spec='${wl}-Bexport'
10029       runpath_var='LD_RUN_PATH'
10030
10031       if test "$GCC" = yes; then
10032         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10033         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10034       else
10035         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10036         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10037       fi
10038       ;;
10039
10040     uts4*)
10041       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10042       hardcode_libdir_flag_spec='-L$libdir'
10043       hardcode_shlibpath_var=no
10044       ;;
10045
10046     *)
10047       ld_shlibs=no
10048       ;;
10049     esac
10050
10051     if test x$host_vendor = xsni; then
10052       case $host in
10053       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10054         export_dynamic_flag_spec='${wl}-Blargedynsym'
10055         ;;
10056       esac
10057     fi
10058   fi
10059
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10061 $as_echo "$ld_shlibs" >&6; }
10062 test "$ld_shlibs" = no && can_build_shared=no
10063
10064 with_gnu_ld=$with_gnu_ld
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080 #
10081 # Do we need to explicitly link libc?
10082 #
10083 case "x$archive_cmds_need_lc" in
10084 x|xyes)
10085   # Assume -lc should be added
10086   archive_cmds_need_lc=yes
10087
10088   if test "$enable_shared" = yes && test "$GCC" = yes; then
10089     case $archive_cmds in
10090     *'~'*)
10091       # FIXME: we may have to deal with multi-command sequences.
10092       ;;
10093     '$CC '*)
10094       # Test whether the compiler implicitly links with -lc since on some
10095       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10096       # to ld, don't add -lc before -lgcc.
10097       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10098 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10099 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10100   $as_echo_n "(cached) " >&6
10101 else
10102   $RM conftest*
10103         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10104
10105         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10106   (eval $ac_compile) 2>&5
10107   ac_status=$?
10108   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10109   test $ac_status = 0; } 2>conftest.err; then
10110           soname=conftest
10111           lib=conftest
10112           libobjs=conftest.$ac_objext
10113           deplibs=
10114           wl=$lt_prog_compiler_wl
10115           pic_flag=$lt_prog_compiler_pic
10116           compiler_flags=-v
10117           linker_flags=-v
10118           verstring=
10119           output_objdir=.
10120           libname=conftest
10121           lt_save_allow_undefined_flag=$allow_undefined_flag
10122           allow_undefined_flag=
10123           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10124   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10125   ac_status=$?
10126   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10127   test $ac_status = 0; }
10128           then
10129             lt_cv_archive_cmds_need_lc=no
10130           else
10131             lt_cv_archive_cmds_need_lc=yes
10132           fi
10133           allow_undefined_flag=$lt_save_allow_undefined_flag
10134         else
10135           cat conftest.err 1>&5
10136         fi
10137         $RM conftest*
10138
10139 fi
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10141 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10142       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10143       ;;
10144     esac
10145   fi
10146   ;;
10147 esac
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10301 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10302
10303 if test "$GCC" = yes; then
10304   case $host_os in
10305     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10306     *) lt_awk_arg="/^libraries:/" ;;
10307   esac
10308   case $host_os in
10309     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10310     *) lt_sed_strip_eq="s,=/,/,g" ;;
10311   esac
10312   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10313   case $lt_search_path_spec in
10314   *\;*)
10315     # if the path contains ";" then we assume it to be the separator
10316     # otherwise default to the standard path separator (i.e. ":") - it is
10317     # assumed that no part of a normal pathname contains ";" but that should
10318     # okay in the real world where ";" in dirpaths is itself problematic.
10319     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10320     ;;
10321   *)
10322     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10323     ;;
10324   esac
10325   # Ok, now we have the path, separated by spaces, we can step through it
10326   # and add multilib dir if necessary.
10327   lt_tmp_lt_search_path_spec=
10328   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10329   for lt_sys_path in $lt_search_path_spec; do
10330     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10331       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10332     else
10333       test -d "$lt_sys_path" && \
10334         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10335     fi
10336   done
10337   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10338 BEGIN {RS=" "; FS="/|\n";} {
10339   lt_foo="";
10340   lt_count=0;
10341   for (lt_i = NF; lt_i > 0; lt_i--) {
10342     if ($lt_i != "" && $lt_i != ".") {
10343       if ($lt_i == "..") {
10344         lt_count++;
10345       } else {
10346         if (lt_count == 0) {
10347           lt_foo="/" $lt_i lt_foo;
10348         } else {
10349           lt_count--;
10350         }
10351       }
10352     }
10353   }
10354   if (lt_foo != "") { lt_freq[lt_foo]++; }
10355   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10356 }'`
10357   # AWK program above erroneously prepends '/' to C:/dos/paths
10358   # for these hosts.
10359   case $host_os in
10360     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10361       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10362   esac
10363   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10364 else
10365   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10366 fi
10367 library_names_spec=
10368 libname_spec='lib$name'
10369 soname_spec=
10370 shrext_cmds=".so"
10371 postinstall_cmds=
10372 postuninstall_cmds=
10373 finish_cmds=
10374 finish_eval=
10375 shlibpath_var=
10376 shlibpath_overrides_runpath=unknown
10377 version_type=none
10378 dynamic_linker="$host_os ld.so"
10379 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10380 need_lib_prefix=unknown
10381 hardcode_into_libs=no
10382
10383 # when you set need_version to no, make sure it does not cause -set_version
10384 # flags to be left without arguments
10385 need_version=unknown
10386
10387 case $host_os in
10388 aix3*)
10389   version_type=linux # correct to gnu/linux during the next big refactor
10390   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10391   shlibpath_var=LIBPATH
10392
10393   # AIX 3 has no versioning support, so we append a major version to the name.
10394   soname_spec='${libname}${release}${shared_ext}$major'
10395   ;;
10396
10397 aix[4-9]*)
10398   version_type=linux # correct to gnu/linux during the next big refactor
10399   need_lib_prefix=no
10400   need_version=no
10401   hardcode_into_libs=yes
10402   if test "$host_cpu" = ia64; then
10403     # AIX 5 supports IA64
10404     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10405     shlibpath_var=LD_LIBRARY_PATH
10406   else
10407     # With GCC up to 2.95.x, collect2 would create an import file
10408     # for dependence libraries.  The import file would start with
10409     # the line `#! .'.  This would cause the generated library to
10410     # depend on `.', always an invalid library.  This was fixed in
10411     # development snapshots of GCC prior to 3.0.
10412     case $host_os in
10413       aix4 | aix4.[01] | aix4.[01].*)
10414       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10415            echo ' yes '
10416            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10417         :
10418       else
10419         can_build_shared=no
10420       fi
10421       ;;
10422     esac
10423     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10424     # soname into executable. Probably we can add versioning support to
10425     # collect2, so additional links can be useful in future.
10426     if test "$aix_use_runtimelinking" = yes; then
10427       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10428       # instead of lib<name>.a to let people know that these are not
10429       # typical AIX shared libraries.
10430       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10431     else
10432       # We preserve .a as extension for shared libraries through AIX4.2
10433       # and later when we are not doing run time linking.
10434       library_names_spec='${libname}${release}.a $libname.a'
10435       soname_spec='${libname}${release}${shared_ext}$major'
10436     fi
10437     shlibpath_var=LIBPATH
10438   fi
10439   ;;
10440
10441 amigaos*)
10442   case $host_cpu in
10443   powerpc)
10444     # Since July 2007 AmigaOS4 officially supports .so libraries.
10445     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10446     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10447     ;;
10448   m68k)
10449     library_names_spec='$libname.ixlibrary $libname.a'
10450     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10451     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10452     ;;
10453   esac
10454   ;;
10455
10456 beos*)
10457   library_names_spec='${libname}${shared_ext}'
10458   dynamic_linker="$host_os ld.so"
10459   shlibpath_var=LIBRARY_PATH
10460   ;;
10461
10462 bsdi[45]*)
10463   version_type=linux # correct to gnu/linux during the next big refactor
10464   need_version=no
10465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10466   soname_spec='${libname}${release}${shared_ext}$major'
10467   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10468   shlibpath_var=LD_LIBRARY_PATH
10469   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10470   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10471   # the default ld.so.conf also contains /usr/contrib/lib and
10472   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10473   # libtool to hard-code these into programs
10474   ;;
10475
10476 cygwin* | mingw* | pw32* | cegcc*)
10477   version_type=windows
10478   shrext_cmds=".dll"
10479   need_version=no
10480   need_lib_prefix=no
10481
10482   case $GCC,$cc_basename in
10483   yes,*)
10484     # gcc
10485     library_names_spec='$libname.dll.a'
10486     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10487     postinstall_cmds='base_file=`basename \${file}`~
10488       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10489       dldir=$destdir/`dirname \$dlpath`~
10490       test -d \$dldir || mkdir -p \$dldir~
10491       $install_prog $dir/$dlname \$dldir/$dlname~
10492       chmod a+x \$dldir/$dlname~
10493       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10494         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10495       fi'
10496     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10497       dlpath=$dir/\$dldll~
10498        $RM \$dlpath'
10499     shlibpath_overrides_runpath=yes
10500
10501     case $host_os in
10502     cygwin*)
10503       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10504       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10505
10506       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10507       ;;
10508     mingw* | cegcc*)
10509       # MinGW DLLs use traditional 'lib' prefix
10510       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10511       ;;
10512     pw32*)
10513       # pw32 DLLs use 'pw' prefix rather than 'lib'
10514       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10515       ;;
10516     esac
10517     dynamic_linker='Win32 ld.exe'
10518     ;;
10519
10520   *,cl*)
10521     # Native MSVC
10522     libname_spec='$name'
10523     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10524     library_names_spec='${libname}.dll.lib'
10525
10526     case $build_os in
10527     mingw*)
10528       sys_lib_search_path_spec=
10529       lt_save_ifs=$IFS
10530       IFS=';'
10531       for lt_path in $LIB
10532       do
10533         IFS=$lt_save_ifs
10534         # Let DOS variable expansion print the short 8.3 style file name.
10535         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10536         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10537       done
10538       IFS=$lt_save_ifs
10539       # Convert to MSYS style.
10540       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10541       ;;
10542     cygwin*)
10543       # Convert to unix form, then to dos form, then back to unix form
10544       # but this time dos style (no spaces!) so that the unix form looks
10545       # like /cygdrive/c/PROGRA~1:/cygdr...
10546       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10547       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10548       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10549       ;;
10550     *)
10551       sys_lib_search_path_spec="$LIB"
10552       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10553         # It is most probably a Windows format PATH.
10554         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10555       else
10556         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10557       fi
10558       # FIXME: find the short name or the path components, as spaces are
10559       # common. (e.g. "Program Files" -> "PROGRA~1")
10560       ;;
10561     esac
10562
10563     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10564     postinstall_cmds='base_file=`basename \${file}`~
10565       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10566       dldir=$destdir/`dirname \$dlpath`~
10567       test -d \$dldir || mkdir -p \$dldir~
10568       $install_prog $dir/$dlname \$dldir/$dlname'
10569     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10570       dlpath=$dir/\$dldll~
10571        $RM \$dlpath'
10572     shlibpath_overrides_runpath=yes
10573     dynamic_linker='Win32 link.exe'
10574     ;;
10575
10576   *)
10577     # Assume MSVC wrapper
10578     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10579     dynamic_linker='Win32 ld.exe'
10580     ;;
10581   esac
10582   # FIXME: first we should search . and the directory the executable is in
10583   shlibpath_var=PATH
10584   ;;
10585
10586 darwin* | rhapsody*)
10587   dynamic_linker="$host_os dyld"
10588   version_type=darwin
10589   need_lib_prefix=no
10590   need_version=no
10591   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10592   soname_spec='${libname}${release}${major}$shared_ext'
10593   shlibpath_overrides_runpath=yes
10594   shlibpath_var=DYLD_LIBRARY_PATH
10595   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10596
10597   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10598   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10599   ;;
10600
10601 dgux*)
10602   version_type=linux # correct to gnu/linux during the next big refactor
10603   need_lib_prefix=no
10604   need_version=no
10605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10606   soname_spec='${libname}${release}${shared_ext}$major'
10607   shlibpath_var=LD_LIBRARY_PATH
10608   ;;
10609
10610 freebsd* | dragonfly*)
10611   # DragonFly does not have aout.  When/if they implement a new
10612   # versioning mechanism, adjust this.
10613   if test -x /usr/bin/objformat; then
10614     objformat=`/usr/bin/objformat`
10615   else
10616     case $host_os in
10617     freebsd[23].*) objformat=aout ;;
10618     *) objformat=elf ;;
10619     esac
10620   fi
10621   version_type=freebsd-$objformat
10622   case $version_type in
10623     freebsd-elf*)
10624       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10625       need_version=no
10626       need_lib_prefix=no
10627       ;;
10628     freebsd-*)
10629       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10630       need_version=yes
10631       ;;
10632   esac
10633   shlibpath_var=LD_LIBRARY_PATH
10634   case $host_os in
10635   freebsd2.*)
10636     shlibpath_overrides_runpath=yes
10637     ;;
10638   freebsd3.[01]* | freebsdelf3.[01]*)
10639     shlibpath_overrides_runpath=yes
10640     hardcode_into_libs=yes
10641     ;;
10642   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10643   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10644     shlibpath_overrides_runpath=no
10645     hardcode_into_libs=yes
10646     ;;
10647   *) # from 4.6 on, and DragonFly
10648     shlibpath_overrides_runpath=yes
10649     hardcode_into_libs=yes
10650     ;;
10651   esac
10652   ;;
10653
10654 gnu*)
10655   version_type=linux # correct to gnu/linux during the next big refactor
10656   need_lib_prefix=no
10657   need_version=no
10658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10659   soname_spec='${libname}${release}${shared_ext}$major'
10660   shlibpath_var=LD_LIBRARY_PATH
10661   shlibpath_overrides_runpath=no
10662   hardcode_into_libs=yes
10663   ;;
10664
10665 haiku*)
10666   version_type=linux # correct to gnu/linux during the next big refactor
10667   need_lib_prefix=no
10668   need_version=no
10669   dynamic_linker="$host_os runtime_loader"
10670   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10671   soname_spec='${libname}${release}${shared_ext}$major'
10672   shlibpath_var=LIBRARY_PATH
10673   shlibpath_overrides_runpath=yes
10674   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10675   hardcode_into_libs=yes
10676   ;;
10677
10678 hpux9* | hpux10* | hpux11*)
10679   # Give a soname corresponding to the major version so that dld.sl refuses to
10680   # link against other versions.
10681   version_type=sunos
10682   need_lib_prefix=no
10683   need_version=no
10684   case $host_cpu in
10685   ia64*)
10686     shrext_cmds='.so'
10687     hardcode_into_libs=yes
10688     dynamic_linker="$host_os dld.so"
10689     shlibpath_var=LD_LIBRARY_PATH
10690     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10691     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10692     soname_spec='${libname}${release}${shared_ext}$major'
10693     if test "X$HPUX_IA64_MODE" = X32; then
10694       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10695     else
10696       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10697     fi
10698     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10699     ;;
10700   hppa*64*)
10701     shrext_cmds='.sl'
10702     hardcode_into_libs=yes
10703     dynamic_linker="$host_os dld.sl"
10704     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10705     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10706     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10707     soname_spec='${libname}${release}${shared_ext}$major'
10708     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10709     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10710     ;;
10711   *)
10712     shrext_cmds='.sl'
10713     dynamic_linker="$host_os dld.sl"
10714     shlibpath_var=SHLIB_PATH
10715     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10716     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10717     soname_spec='${libname}${release}${shared_ext}$major'
10718     ;;
10719   esac
10720   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10721   postinstall_cmds='chmod 555 $lib'
10722   # or fails outright, so override atomically:
10723   install_override_mode=555
10724   ;;
10725
10726 interix[3-9]*)
10727   version_type=linux # correct to gnu/linux during the next big refactor
10728   need_lib_prefix=no
10729   need_version=no
10730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10731   soname_spec='${libname}${release}${shared_ext}$major'
10732   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10733   shlibpath_var=LD_LIBRARY_PATH
10734   shlibpath_overrides_runpath=no
10735   hardcode_into_libs=yes
10736   ;;
10737
10738 irix5* | irix6* | nonstopux*)
10739   case $host_os in
10740     nonstopux*) version_type=nonstopux ;;
10741     *)
10742         if test "$lt_cv_prog_gnu_ld" = yes; then
10743                 version_type=linux # correct to gnu/linux during the next big refactor
10744         else
10745                 version_type=irix
10746         fi ;;
10747   esac
10748   need_lib_prefix=no
10749   need_version=no
10750   soname_spec='${libname}${release}${shared_ext}$major'
10751   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10752   case $host_os in
10753   irix5* | nonstopux*)
10754     libsuff= shlibsuff=
10755     ;;
10756   *)
10757     case $LD in # libtool.m4 will add one of these switches to LD
10758     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10759       libsuff= shlibsuff= libmagic=32-bit;;
10760     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10761       libsuff=32 shlibsuff=N32 libmagic=N32;;
10762     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10763       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10764     *) libsuff= shlibsuff= libmagic=never-match;;
10765     esac
10766     ;;
10767   esac
10768   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10769   shlibpath_overrides_runpath=no
10770   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10771   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10772   hardcode_into_libs=yes
10773   ;;
10774
10775 # No shared lib support for Linux oldld, aout, or coff.
10776 linux*oldld* | linux*aout* | linux*coff*)
10777   dynamic_linker=no
10778   ;;
10779
10780 # This must be glibc/ELF.
10781 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10782   version_type=linux # correct to gnu/linux during the next big refactor
10783   need_lib_prefix=no
10784   need_version=no
10785   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10786   soname_spec='${libname}${release}${shared_ext}$major'
10787   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10788   shlibpath_var=LD_LIBRARY_PATH
10789   shlibpath_overrides_runpath=no
10790
10791   # Some binutils ld are patched to set DT_RUNPATH
10792   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10793   $as_echo_n "(cached) " >&6
10794 else
10795   lt_cv_shlibpath_overrides_runpath=no
10796     save_LDFLAGS=$LDFLAGS
10797     save_libdir=$libdir
10798     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10799          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10800     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10801 /* end confdefs.h.  */
10802
10803 int
10804 main ()
10805 {
10806
10807   ;
10808   return 0;
10809 }
10810 _ACEOF
10811 if ac_fn_c_try_link "$LINENO"; then :
10812   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10813   lt_cv_shlibpath_overrides_runpath=yes
10814 fi
10815 fi
10816 rm -f core conftest.err conftest.$ac_objext \
10817     conftest$ac_exeext conftest.$ac_ext
10818     LDFLAGS=$save_LDFLAGS
10819     libdir=$save_libdir
10820
10821 fi
10822
10823   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10824
10825   # This implies no fast_install, which is unacceptable.
10826   # Some rework will be needed to allow for fast_install
10827   # before this can be enabled.
10828   hardcode_into_libs=yes
10829
10830   # Append ld.so.conf contents to the search path
10831   if test -f /etc/ld.so.conf; then
10832     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10833     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10834   fi
10835
10836   # We used to test for /lib/ld.so.1 and disable shared libraries on
10837   # powerpc, because MkLinux only supported shared libraries with the
10838   # GNU dynamic linker.  Since this was broken with cross compilers,
10839   # most powerpc-linux boxes support dynamic linking these days and
10840   # people can always --disable-shared, the test was removed, and we
10841   # assume the GNU/Linux dynamic linker is in use.
10842   dynamic_linker='GNU/Linux ld.so'
10843   ;;
10844
10845 netbsd*)
10846   version_type=sunos
10847   need_lib_prefix=no
10848   need_version=no
10849   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10850     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10851     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10852     dynamic_linker='NetBSD (a.out) ld.so'
10853   else
10854     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10855     soname_spec='${libname}${release}${shared_ext}$major'
10856     dynamic_linker='NetBSD ld.elf_so'
10857   fi
10858   shlibpath_var=LD_LIBRARY_PATH
10859   shlibpath_overrides_runpath=yes
10860   hardcode_into_libs=yes
10861   ;;
10862
10863 newsos6)
10864   version_type=linux # correct to gnu/linux during the next big refactor
10865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10866   shlibpath_var=LD_LIBRARY_PATH
10867   shlibpath_overrides_runpath=yes
10868   ;;
10869
10870 *nto* | *qnx*)
10871   version_type=qnx
10872   need_lib_prefix=no
10873   need_version=no
10874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10875   soname_spec='${libname}${release}${shared_ext}$major'
10876   shlibpath_var=LD_LIBRARY_PATH
10877   shlibpath_overrides_runpath=no
10878   hardcode_into_libs=yes
10879   dynamic_linker='ldqnx.so'
10880   ;;
10881
10882 openbsd*)
10883   version_type=sunos
10884   sys_lib_dlsearch_path_spec="/usr/lib"
10885   need_lib_prefix=no
10886   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10887   case $host_os in
10888     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10889     *)                          need_version=no  ;;
10890   esac
10891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10892   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10893   shlibpath_var=LD_LIBRARY_PATH
10894   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10895     case $host_os in
10896       openbsd2.[89] | openbsd2.[89].*)
10897         shlibpath_overrides_runpath=no
10898         ;;
10899       *)
10900         shlibpath_overrides_runpath=yes
10901         ;;
10902       esac
10903   else
10904     shlibpath_overrides_runpath=yes
10905   fi
10906   ;;
10907
10908 os2*)
10909   libname_spec='$name'
10910   shrext_cmds=".dll"
10911   need_lib_prefix=no
10912   library_names_spec='$libname${shared_ext} $libname.a'
10913   dynamic_linker='OS/2 ld.exe'
10914   shlibpath_var=LIBPATH
10915   ;;
10916
10917 osf3* | osf4* | osf5*)
10918   version_type=osf
10919   need_lib_prefix=no
10920   need_version=no
10921   soname_spec='${libname}${release}${shared_ext}$major'
10922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10923   shlibpath_var=LD_LIBRARY_PATH
10924   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10925   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10926   ;;
10927
10928 rdos*)
10929   dynamic_linker=no
10930   ;;
10931
10932 solaris*)
10933   version_type=linux # correct to gnu/linux during the next big refactor
10934   need_lib_prefix=no
10935   need_version=no
10936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10937   soname_spec='${libname}${release}${shared_ext}$major'
10938   shlibpath_var=LD_LIBRARY_PATH
10939   shlibpath_overrides_runpath=yes
10940   hardcode_into_libs=yes
10941   # ldd complains unless libraries are executable
10942   postinstall_cmds='chmod +x $lib'
10943   ;;
10944
10945 sunos4*)
10946   version_type=sunos
10947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10948   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10949   shlibpath_var=LD_LIBRARY_PATH
10950   shlibpath_overrides_runpath=yes
10951   if test "$with_gnu_ld" = yes; then
10952     need_lib_prefix=no
10953   fi
10954   need_version=yes
10955   ;;
10956
10957 sysv4 | sysv4.3*)
10958   version_type=linux # correct to gnu/linux during the next big refactor
10959   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10960   soname_spec='${libname}${release}${shared_ext}$major'
10961   shlibpath_var=LD_LIBRARY_PATH
10962   case $host_vendor in
10963     sni)
10964       shlibpath_overrides_runpath=no
10965       need_lib_prefix=no
10966       runpath_var=LD_RUN_PATH
10967       ;;
10968     siemens)
10969       need_lib_prefix=no
10970       ;;
10971     motorola)
10972       need_lib_prefix=no
10973       need_version=no
10974       shlibpath_overrides_runpath=no
10975       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10976       ;;
10977   esac
10978   ;;
10979
10980 sysv4*MP*)
10981   if test -d /usr/nec ;then
10982     version_type=linux # correct to gnu/linux during the next big refactor
10983     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10984     soname_spec='$libname${shared_ext}.$major'
10985     shlibpath_var=LD_LIBRARY_PATH
10986   fi
10987   ;;
10988
10989 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10990   version_type=freebsd-elf
10991   need_lib_prefix=no
10992   need_version=no
10993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10994   soname_spec='${libname}${release}${shared_ext}$major'
10995   shlibpath_var=LD_LIBRARY_PATH
10996   shlibpath_overrides_runpath=yes
10997   hardcode_into_libs=yes
10998   if test "$with_gnu_ld" = yes; then
10999     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11000   else
11001     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11002     case $host_os in
11003       sco3.2v5*)
11004         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11005         ;;
11006     esac
11007   fi
11008   sys_lib_dlsearch_path_spec='/usr/lib'
11009   ;;
11010
11011 tpf*)
11012   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11013   version_type=linux # correct to gnu/linux during the next big refactor
11014   need_lib_prefix=no
11015   need_version=no
11016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11017   shlibpath_var=LD_LIBRARY_PATH
11018   shlibpath_overrides_runpath=no
11019   hardcode_into_libs=yes
11020   ;;
11021
11022 uts4*)
11023   version_type=linux # correct to gnu/linux during the next big refactor
11024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11025   soname_spec='${libname}${release}${shared_ext}$major'
11026   shlibpath_var=LD_LIBRARY_PATH
11027   ;;
11028
11029 *)
11030   dynamic_linker=no
11031   ;;
11032 esac
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11034 $as_echo "$dynamic_linker" >&6; }
11035 test "$dynamic_linker" = no && can_build_shared=no
11036
11037 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11038 if test "$GCC" = yes; then
11039   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11040 fi
11041
11042 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11043   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11044 fi
11045 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11046   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11047 fi
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11141 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11142 hardcode_action=
11143 if test -n "$hardcode_libdir_flag_spec" ||
11144    test -n "$runpath_var" ||
11145    test "X$hardcode_automatic" = "Xyes" ; then
11146
11147   # We can hardcode non-existent directories.
11148   if test "$hardcode_direct" != no &&
11149      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11150      # have to relink, otherwise we might link with an installed library
11151      # when we should be linking with a yet-to-be-installed one
11152      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11153      test "$hardcode_minus_L" != no; then
11154     # Linking always hardcodes the temporary library directory.
11155     hardcode_action=relink
11156   else
11157     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11158     hardcode_action=immediate
11159   fi
11160 else
11161   # We cannot hardcode anything, or else we can only hardcode existing
11162   # directories.
11163   hardcode_action=unsupported
11164 fi
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11166 $as_echo "$hardcode_action" >&6; }
11167
11168 if test "$hardcode_action" = relink ||
11169    test "$inherit_rpath" = yes; then
11170   # Fast installation is not supported
11171   enable_fast_install=no
11172 elif test "$shlibpath_overrides_runpath" = yes ||
11173      test "$enable_shared" = no; then
11174   # Fast installation is not necessary
11175   enable_fast_install=needless
11176 fi
11177
11178
11179
11180
11181
11182
11183   if test "x$enable_dlopen" != xyes; then
11184   enable_dlopen=unknown
11185   enable_dlopen_self=unknown
11186   enable_dlopen_self_static=unknown
11187 else
11188   lt_cv_dlopen=no
11189   lt_cv_dlopen_libs=
11190
11191   case $host_os in
11192   beos*)
11193     lt_cv_dlopen="load_add_on"
11194     lt_cv_dlopen_libs=
11195     lt_cv_dlopen_self=yes
11196     ;;
11197
11198   mingw* | pw32* | cegcc*)
11199     lt_cv_dlopen="LoadLibrary"
11200     lt_cv_dlopen_libs=
11201     ;;
11202
11203   cygwin*)
11204     lt_cv_dlopen="dlopen"
11205     lt_cv_dlopen_libs=
11206     ;;
11207
11208   darwin*)
11209   # if libdl is installed we need to link against it
11210     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11211 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11212 if ${ac_cv_lib_dl_dlopen+:} false; then :
11213   $as_echo_n "(cached) " >&6
11214 else
11215   ac_check_lib_save_LIBS=$LIBS
11216 LIBS="-ldl  $LIBS"
11217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11218 /* end confdefs.h.  */
11219
11220 /* Override any GCC internal prototype to avoid an error.
11221    Use char because int might match the return type of a GCC
11222    builtin and then its argument prototype would still apply.  */
11223 #ifdef __cplusplus
11224 extern "C"
11225 #endif
11226 char dlopen ();
11227 int
11228 main ()
11229 {
11230 return dlopen ();
11231   ;
11232   return 0;
11233 }
11234 _ACEOF
11235 if ac_fn_c_try_link "$LINENO"; then :
11236   ac_cv_lib_dl_dlopen=yes
11237 else
11238   ac_cv_lib_dl_dlopen=no
11239 fi
11240 rm -f core conftest.err conftest.$ac_objext \
11241     conftest$ac_exeext conftest.$ac_ext
11242 LIBS=$ac_check_lib_save_LIBS
11243 fi
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11245 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11246 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11247   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11248 else
11249
11250     lt_cv_dlopen="dyld"
11251     lt_cv_dlopen_libs=
11252     lt_cv_dlopen_self=yes
11253
11254 fi
11255
11256     ;;
11257
11258   *)
11259     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11260 if test "x$ac_cv_func_shl_load" = xyes; then :
11261   lt_cv_dlopen="shl_load"
11262 else
11263   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11264 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11265 if ${ac_cv_lib_dld_shl_load+:} false; then :
11266   $as_echo_n "(cached) " >&6
11267 else
11268   ac_check_lib_save_LIBS=$LIBS
11269 LIBS="-ldld  $LIBS"
11270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11271 /* end confdefs.h.  */
11272
11273 /* Override any GCC internal prototype to avoid an error.
11274    Use char because int might match the return type of a GCC
11275    builtin and then its argument prototype would still apply.  */
11276 #ifdef __cplusplus
11277 extern "C"
11278 #endif
11279 char shl_load ();
11280 int
11281 main ()
11282 {
11283 return shl_load ();
11284   ;
11285   return 0;
11286 }
11287 _ACEOF
11288 if ac_fn_c_try_link "$LINENO"; then :
11289   ac_cv_lib_dld_shl_load=yes
11290 else
11291   ac_cv_lib_dld_shl_load=no
11292 fi
11293 rm -f core conftest.err conftest.$ac_objext \
11294     conftest$ac_exeext conftest.$ac_ext
11295 LIBS=$ac_check_lib_save_LIBS
11296 fi
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11298 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11299 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11300   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11301 else
11302   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11303 if test "x$ac_cv_func_dlopen" = xyes; then :
11304   lt_cv_dlopen="dlopen"
11305 else
11306   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11307 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11308 if ${ac_cv_lib_dl_dlopen+:} false; then :
11309   $as_echo_n "(cached) " >&6
11310 else
11311   ac_check_lib_save_LIBS=$LIBS
11312 LIBS="-ldl  $LIBS"
11313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11314 /* end confdefs.h.  */
11315
11316 /* Override any GCC internal prototype to avoid an error.
11317    Use char because int might match the return type of a GCC
11318    builtin and then its argument prototype would still apply.  */
11319 #ifdef __cplusplus
11320 extern "C"
11321 #endif
11322 char dlopen ();
11323 int
11324 main ()
11325 {
11326 return dlopen ();
11327   ;
11328   return 0;
11329 }
11330 _ACEOF
11331 if ac_fn_c_try_link "$LINENO"; then :
11332   ac_cv_lib_dl_dlopen=yes
11333 else
11334   ac_cv_lib_dl_dlopen=no
11335 fi
11336 rm -f core conftest.err conftest.$ac_objext \
11337     conftest$ac_exeext conftest.$ac_ext
11338 LIBS=$ac_check_lib_save_LIBS
11339 fi
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11341 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11342 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11343   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11344 else
11345   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11346 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11347 if ${ac_cv_lib_svld_dlopen+:} false; then :
11348   $as_echo_n "(cached) " >&6
11349 else
11350   ac_check_lib_save_LIBS=$LIBS
11351 LIBS="-lsvld  $LIBS"
11352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11353 /* end confdefs.h.  */
11354
11355 /* Override any GCC internal prototype to avoid an error.
11356    Use char because int might match the return type of a GCC
11357    builtin and then its argument prototype would still apply.  */
11358 #ifdef __cplusplus
11359 extern "C"
11360 #endif
11361 char dlopen ();
11362 int
11363 main ()
11364 {
11365 return dlopen ();
11366   ;
11367   return 0;
11368 }
11369 _ACEOF
11370 if ac_fn_c_try_link "$LINENO"; then :
11371   ac_cv_lib_svld_dlopen=yes
11372 else
11373   ac_cv_lib_svld_dlopen=no
11374 fi
11375 rm -f core conftest.err conftest.$ac_objext \
11376     conftest$ac_exeext conftest.$ac_ext
11377 LIBS=$ac_check_lib_save_LIBS
11378 fi
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11380 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11381 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11382   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11383 else
11384   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11385 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11386 if ${ac_cv_lib_dld_dld_link+:} false; then :
11387   $as_echo_n "(cached) " >&6
11388 else
11389   ac_check_lib_save_LIBS=$LIBS
11390 LIBS="-ldld  $LIBS"
11391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11392 /* end confdefs.h.  */
11393
11394 /* Override any GCC internal prototype to avoid an error.
11395    Use char because int might match the return type of a GCC
11396    builtin and then its argument prototype would still apply.  */
11397 #ifdef __cplusplus
11398 extern "C"
11399 #endif
11400 char dld_link ();
11401 int
11402 main ()
11403 {
11404 return dld_link ();
11405   ;
11406   return 0;
11407 }
11408 _ACEOF
11409 if ac_fn_c_try_link "$LINENO"; then :
11410   ac_cv_lib_dld_dld_link=yes
11411 else
11412   ac_cv_lib_dld_dld_link=no
11413 fi
11414 rm -f core conftest.err conftest.$ac_objext \
11415     conftest$ac_exeext conftest.$ac_ext
11416 LIBS=$ac_check_lib_save_LIBS
11417 fi
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11419 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11420 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11421   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11422 fi
11423
11424
11425 fi
11426
11427
11428 fi
11429
11430
11431 fi
11432
11433
11434 fi
11435
11436
11437 fi
11438
11439     ;;
11440   esac
11441
11442   if test "x$lt_cv_dlopen" != xno; then
11443     enable_dlopen=yes
11444   else
11445     enable_dlopen=no
11446   fi
11447
11448   case $lt_cv_dlopen in
11449   dlopen)
11450     save_CPPFLAGS="$CPPFLAGS"
11451     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11452
11453     save_LDFLAGS="$LDFLAGS"
11454     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11455
11456     save_LIBS="$LIBS"
11457     LIBS="$lt_cv_dlopen_libs $LIBS"
11458
11459     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11460 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11461 if ${lt_cv_dlopen_self+:} false; then :
11462   $as_echo_n "(cached) " >&6
11463 else
11464           if test "$cross_compiling" = yes; then :
11465   lt_cv_dlopen_self=cross
11466 else
11467   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11468   lt_status=$lt_dlunknown
11469   cat > conftest.$ac_ext <<_LT_EOF
11470 #line $LINENO "configure"
11471 #include "confdefs.h"
11472
11473 #if HAVE_DLFCN_H
11474 #include <dlfcn.h>
11475 #endif
11476
11477 #include <stdio.h>
11478
11479 #ifdef RTLD_GLOBAL
11480 #  define LT_DLGLOBAL           RTLD_GLOBAL
11481 #else
11482 #  ifdef DL_GLOBAL
11483 #    define LT_DLGLOBAL         DL_GLOBAL
11484 #  else
11485 #    define LT_DLGLOBAL         0
11486 #  endif
11487 #endif
11488
11489 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11490    find out it does not work in some platform. */
11491 #ifndef LT_DLLAZY_OR_NOW
11492 #  ifdef RTLD_LAZY
11493 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11494 #  else
11495 #    ifdef DL_LAZY
11496 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11497 #    else
11498 #      ifdef RTLD_NOW
11499 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11500 #      else
11501 #        ifdef DL_NOW
11502 #          define LT_DLLAZY_OR_NOW      DL_NOW
11503 #        else
11504 #          define LT_DLLAZY_OR_NOW      0
11505 #        endif
11506 #      endif
11507 #    endif
11508 #  endif
11509 #endif
11510
11511 /* When -fvisbility=hidden is used, assume the code has been annotated
11512    correspondingly for the symbols needed.  */
11513 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11514 int fnord () __attribute__((visibility("default")));
11515 #endif
11516
11517 int fnord () { return 42; }
11518 int main ()
11519 {
11520   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11521   int status = $lt_dlunknown;
11522
11523   if (self)
11524     {
11525       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11526       else
11527         {
11528           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11529           else puts (dlerror ());
11530         }
11531       /* dlclose (self); */
11532     }
11533   else
11534     puts (dlerror ());
11535
11536   return status;
11537 }
11538 _LT_EOF
11539   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11540   (eval $ac_link) 2>&5
11541   ac_status=$?
11542   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11543   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11544     (./conftest; exit; ) >&5 2>/dev/null
11545     lt_status=$?
11546     case x$lt_status in
11547       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11548       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11549       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11550     esac
11551   else :
11552     # compilation failed
11553     lt_cv_dlopen_self=no
11554   fi
11555 fi
11556 rm -fr conftest*
11557
11558
11559 fi
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11561 $as_echo "$lt_cv_dlopen_self" >&6; }
11562
11563     if test "x$lt_cv_dlopen_self" = xyes; then
11564       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11565       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11566 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11567 if ${lt_cv_dlopen_self_static+:} false; then :
11568   $as_echo_n "(cached) " >&6
11569 else
11570           if test "$cross_compiling" = yes; then :
11571   lt_cv_dlopen_self_static=cross
11572 else
11573   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11574   lt_status=$lt_dlunknown
11575   cat > conftest.$ac_ext <<_LT_EOF
11576 #line $LINENO "configure"
11577 #include "confdefs.h"
11578
11579 #if HAVE_DLFCN_H
11580 #include <dlfcn.h>
11581 #endif
11582
11583 #include <stdio.h>
11584
11585 #ifdef RTLD_GLOBAL
11586 #  define LT_DLGLOBAL           RTLD_GLOBAL
11587 #else
11588 #  ifdef DL_GLOBAL
11589 #    define LT_DLGLOBAL         DL_GLOBAL
11590 #  else
11591 #    define LT_DLGLOBAL         0
11592 #  endif
11593 #endif
11594
11595 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11596    find out it does not work in some platform. */
11597 #ifndef LT_DLLAZY_OR_NOW
11598 #  ifdef RTLD_LAZY
11599 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11600 #  else
11601 #    ifdef DL_LAZY
11602 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11603 #    else
11604 #      ifdef RTLD_NOW
11605 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11606 #      else
11607 #        ifdef DL_NOW
11608 #          define LT_DLLAZY_OR_NOW      DL_NOW
11609 #        else
11610 #          define LT_DLLAZY_OR_NOW      0
11611 #        endif
11612 #      endif
11613 #    endif
11614 #  endif
11615 #endif
11616
11617 /* When -fvisbility=hidden is used, assume the code has been annotated
11618    correspondingly for the symbols needed.  */
11619 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11620 int fnord () __attribute__((visibility("default")));
11621 #endif
11622
11623 int fnord () { return 42; }
11624 int main ()
11625 {
11626   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11627   int status = $lt_dlunknown;
11628
11629   if (self)
11630     {
11631       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11632       else
11633         {
11634           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11635           else puts (dlerror ());
11636         }
11637       /* dlclose (self); */
11638     }
11639   else
11640     puts (dlerror ());
11641
11642   return status;
11643 }
11644 _LT_EOF
11645   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11646   (eval $ac_link) 2>&5
11647   ac_status=$?
11648   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11649   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11650     (./conftest; exit; ) >&5 2>/dev/null
11651     lt_status=$?
11652     case x$lt_status in
11653       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11654       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11655       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11656     esac
11657   else :
11658     # compilation failed
11659     lt_cv_dlopen_self_static=no
11660   fi
11661 fi
11662 rm -fr conftest*
11663
11664
11665 fi
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11667 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11668     fi
11669
11670     CPPFLAGS="$save_CPPFLAGS"
11671     LDFLAGS="$save_LDFLAGS"
11672     LIBS="$save_LIBS"
11673     ;;
11674   esac
11675
11676   case $lt_cv_dlopen_self in
11677   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11678   *) enable_dlopen_self=unknown ;;
11679   esac
11680
11681   case $lt_cv_dlopen_self_static in
11682   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11683   *) enable_dlopen_self_static=unknown ;;
11684   esac
11685 fi
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703 striplib=
11704 old_striplib=
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11706 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11707 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11708   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11709   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11711 $as_echo "yes" >&6; }
11712 else
11713 # FIXME - insert some real tests, host_os isn't really good enough
11714   case $host_os in
11715   darwin*)
11716     if test -n "$STRIP" ; then
11717       striplib="$STRIP -x"
11718       old_striplib="$STRIP -S"
11719       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11720 $as_echo "yes" >&6; }
11721     else
11722       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11723 $as_echo "no" >&6; }
11724     fi
11725     ;;
11726   *)
11727     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11728 $as_echo "no" >&6; }
11729     ;;
11730   esac
11731 fi
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744   # Report which library types will actually be built
11745   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11746 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11748 $as_echo "$can_build_shared" >&6; }
11749
11750   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11751 $as_echo_n "checking whether to build shared libraries... " >&6; }
11752   test "$can_build_shared" = "no" && enable_shared=no
11753
11754   # On AIX, shared libraries and static libraries use the same namespace, and
11755   # are all built from PIC.
11756   case $host_os in
11757   aix3*)
11758     test "$enable_shared" = yes && enable_static=no
11759     if test -n "$RANLIB"; then
11760       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11761       postinstall_cmds='$RANLIB $lib'
11762     fi
11763     ;;
11764
11765   aix[4-9]*)
11766     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11767       test "$enable_shared" = yes && enable_static=no
11768     fi
11769     ;;
11770   esac
11771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11772 $as_echo "$enable_shared" >&6; }
11773
11774   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11775 $as_echo_n "checking whether to build static libraries... " >&6; }
11776   # Make sure either enable_shared or enable_static is yes.
11777   test "$enable_shared" = yes || enable_static=yes
11778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11779 $as_echo "$enable_static" >&6; }
11780
11781
11782
11783
11784 fi
11785 ac_ext=c
11786 ac_cpp='$CPP $CPPFLAGS'
11787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11790
11791 CC="$lt_save_CC"
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807         ac_config_commands="$ac_config_commands libtool"
11808
11809
11810
11811
11812 # Only expand once:
11813
11814
11815
11816       if test "X$prefix" = "XNONE"; then
11817     acl_final_prefix="$ac_default_prefix"
11818   else
11819     acl_final_prefix="$prefix"
11820   fi
11821   if test "X$exec_prefix" = "XNONE"; then
11822     acl_final_exec_prefix='${prefix}'
11823   else
11824     acl_final_exec_prefix="$exec_prefix"
11825   fi
11826   acl_save_prefix="$prefix"
11827   prefix="$acl_final_prefix"
11828   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11829   prefix="$acl_save_prefix"
11830
11831
11832
11833 # Check whether --with-gnu-ld was given.
11834 if test "${with_gnu_ld+set}" = set; then :
11835   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11836 else
11837   with_gnu_ld=no
11838 fi
11839
11840 # Prepare PATH_SEPARATOR.
11841 # The user is always right.
11842 if test "${PATH_SEPARATOR+set}" != set; then
11843   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
11844   # contains only /bin. Note that ksh looks also at the FPATH variable,
11845   # so we have to set that as well for the test.
11846   PATH_SEPARATOR=:
11847   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
11848     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
11849            || PATH_SEPARATOR=';'
11850        }
11851 fi
11852
11853 ac_prog=ld
11854 if test "$GCC" = yes; then
11855   # Check if gcc -print-prog-name=ld gives a path.
11856   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11857 $as_echo_n "checking for ld used by $CC... " >&6; }
11858   case $host in
11859   *-*-mingw*)
11860     # gcc leaves a trailing carriage return which upsets mingw
11861     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11862   *)
11863     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11864   esac
11865   case $ac_prog in
11866     # Accept absolute paths.
11867     [\\/]* | ?:[\\/]*)
11868       re_direlt='/[^/][^/]*/\.\./'
11869       # Canonicalize the pathname of ld
11870       ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
11871       while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
11872         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11873       done
11874       test -z "$LD" && LD="$ac_prog"
11875       ;;
11876   "")
11877     # If it fails, then pretend we aren't using GCC.
11878     ac_prog=ld
11879     ;;
11880   *)
11881     # If it is relative, then search for the first ld in PATH.
11882     with_gnu_ld=unknown
11883     ;;
11884   esac
11885 elif test "$with_gnu_ld" = yes; then
11886   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11887 $as_echo_n "checking for GNU ld... " >&6; }
11888 else
11889   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11890 $as_echo_n "checking for non-GNU ld... " >&6; }
11891 fi
11892 if ${acl_cv_path_LD+:} false; then :
11893   $as_echo_n "(cached) " >&6
11894 else
11895   if test -z "$LD"; then
11896   acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11897   for ac_dir in $PATH; do
11898     IFS="$acl_save_ifs"
11899     test -z "$ac_dir" && ac_dir=.
11900     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11901       acl_cv_path_LD="$ac_dir/$ac_prog"
11902       # Check to see if the program is GNU ld.  I'd rather use --version,
11903       # but apparently some variants of GNU ld only accept -v.
11904       # Break only if it was the GNU/non-GNU ld that we prefer.
11905       case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
11906       *GNU* | *'with BFD'*)
11907         test "$with_gnu_ld" != no && break
11908         ;;
11909       *)
11910         test "$with_gnu_ld" != yes && break
11911         ;;
11912       esac
11913     fi
11914   done
11915   IFS="$acl_save_ifs"
11916 else
11917   acl_cv_path_LD="$LD" # Let the user override the test with a path.
11918 fi
11919 fi
11920
11921 LD="$acl_cv_path_LD"
11922 if test -n "$LD"; then
11923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11924 $as_echo "$LD" >&6; }
11925 else
11926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11927 $as_echo "no" >&6; }
11928 fi
11929 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11931 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11932 if ${acl_cv_prog_gnu_ld+:} false; then :
11933   $as_echo_n "(cached) " >&6
11934 else
11935   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11936 case `$LD -v 2>&1 </dev/null` in
11937 *GNU* | *'with BFD'*)
11938   acl_cv_prog_gnu_ld=yes
11939   ;;
11940 *)
11941   acl_cv_prog_gnu_ld=no
11942   ;;
11943 esac
11944 fi
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11946 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11947 with_gnu_ld=$acl_cv_prog_gnu_ld
11948
11949
11950
11951
11952                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11953 $as_echo_n "checking for shared library run path origin... " >&6; }
11954 if ${acl_cv_rpath+:} false; then :
11955   $as_echo_n "(cached) " >&6
11956 else
11957
11958     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11959     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11960     . ./conftest.sh
11961     rm -f ./conftest.sh
11962     acl_cv_rpath=done
11963
11964 fi
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11966 $as_echo "$acl_cv_rpath" >&6; }
11967   wl="$acl_cv_wl"
11968   acl_libext="$acl_cv_libext"
11969   acl_shlibext="$acl_cv_shlibext"
11970   acl_libname_spec="$acl_cv_libname_spec"
11971   acl_library_names_spec="$acl_cv_library_names_spec"
11972   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11973   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11974   acl_hardcode_direct="$acl_cv_hardcode_direct"
11975   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
11976     # Check whether --enable-rpath was given.
11977 if test "${enable_rpath+set}" = set; then :
11978   enableval=$enable_rpath; :
11979 else
11980   enable_rpath=yes
11981 fi
11982
11983
11984
11985
11986   acl_libdirstem=lib
11987   acl_libdirstem2=
11988   case "$host_os" in
11989     solaris*)
11990                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
11991 $as_echo_n "checking for 64-bit host... " >&6; }
11992 if ${gl_cv_solaris_64bit+:} false; then :
11993   $as_echo_n "(cached) " >&6
11994 else
11995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11996 /* end confdefs.h.  */
11997
11998 #ifdef _LP64
11999 sixtyfour bits
12000 #endif
12001
12002 _ACEOF
12003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12004   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
12005   gl_cv_solaris_64bit=yes
12006 else
12007   gl_cv_solaris_64bit=no
12008 fi
12009 rm -f conftest*
12010
12011
12012 fi
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
12014 $as_echo "$gl_cv_solaris_64bit" >&6; }
12015       if test $gl_cv_solaris_64bit = yes; then
12016         acl_libdirstem=lib/64
12017         case "$host_cpu" in
12018           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
12019           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
12020         esac
12021       fi
12022       ;;
12023     *)
12024       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12025       if test -n "$searchpath"; then
12026         acl_save_IFS="${IFS=    }"; IFS=":"
12027         for searchdir in $searchpath; do
12028           if test -d "$searchdir"; then
12029             case "$searchdir" in
12030               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
12031               */../ | */.. )
12032                 # Better ignore directories of this form. They are misleading.
12033                 ;;
12034               *) searchdir=`cd "$searchdir" && pwd`
12035                  case "$searchdir" in
12036                    */lib64 ) acl_libdirstem=lib64 ;;
12037                  esac ;;
12038             esac
12039           fi
12040         done
12041         IFS="$acl_save_IFS"
12042       fi
12043       ;;
12044   esac
12045   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058     use_additional=yes
12059
12060   acl_save_prefix="$prefix"
12061   prefix="$acl_final_prefix"
12062   acl_save_exec_prefix="$exec_prefix"
12063   exec_prefix="$acl_final_exec_prefix"
12064
12065     eval additional_includedir=\"$includedir\"
12066     eval additional_libdir=\"$libdir\"
12067
12068   exec_prefix="$acl_save_exec_prefix"
12069   prefix="$acl_save_prefix"
12070
12071
12072 # Check whether --with-libiconv-prefix was given.
12073 if test "${with_libiconv_prefix+set}" = set; then :
12074   withval=$with_libiconv_prefix;
12075     if test "X$withval" = "Xno"; then
12076       use_additional=no
12077     else
12078       if test "X$withval" = "X"; then
12079
12080   acl_save_prefix="$prefix"
12081   prefix="$acl_final_prefix"
12082   acl_save_exec_prefix="$exec_prefix"
12083   exec_prefix="$acl_final_exec_prefix"
12084
12085           eval additional_includedir=\"$includedir\"
12086           eval additional_libdir=\"$libdir\"
12087
12088   exec_prefix="$acl_save_exec_prefix"
12089   prefix="$acl_save_prefix"
12090
12091       else
12092         additional_includedir="$withval/include"
12093         additional_libdir="$withval/$acl_libdirstem"
12094         if test "$acl_libdirstem2" != "$acl_libdirstem" \
12095            && ! test -d "$withval/$acl_libdirstem"; then
12096           additional_libdir="$withval/$acl_libdirstem2"
12097         fi
12098       fi
12099     fi
12100
12101 fi
12102
12103       LIBICONV=
12104   LTLIBICONV=
12105   INCICONV=
12106   LIBICONV_PREFIX=
12107       HAVE_LIBICONV=
12108   rpathdirs=
12109   ltrpathdirs=
12110   names_already_handled=
12111   names_next_round='iconv '
12112   while test -n "$names_next_round"; do
12113     names_this_round="$names_next_round"
12114     names_next_round=
12115     for name in $names_this_round; do
12116       already_handled=
12117       for n in $names_already_handled; do
12118         if test "$n" = "$name"; then
12119           already_handled=yes
12120           break
12121         fi
12122       done
12123       if test -z "$already_handled"; then
12124         names_already_handled="$names_already_handled $name"
12125                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
12126         eval value=\"\$HAVE_LIB$uppername\"
12127         if test -n "$value"; then
12128           if test "$value" = yes; then
12129             eval value=\"\$LIB$uppername\"
12130             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
12131             eval value=\"\$LTLIB$uppername\"
12132             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
12133           else
12134                                     :
12135           fi
12136         else
12137                               found_dir=
12138           found_la=
12139           found_so=
12140           found_a=
12141           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
12142           if test -n "$acl_shlibext"; then
12143             shrext=".$acl_shlibext"             # typically: shrext=.so
12144           else
12145             shrext=
12146           fi
12147           if test $use_additional = yes; then
12148             dir="$additional_libdir"
12149                                     if test -n "$acl_shlibext"; then
12150               if test -f "$dir/$libname$shrext"; then
12151                 found_dir="$dir"
12152                 found_so="$dir/$libname$shrext"
12153               else
12154                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12155                   ver=`(cd "$dir" && \
12156                         for f in "$libname$shrext".*; do echo "$f"; done \
12157                         | sed -e "s,^$libname$shrext\\\\.,," \
12158                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12159                         | sed 1q ) 2>/dev/null`
12160                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12161                     found_dir="$dir"
12162                     found_so="$dir/$libname$shrext.$ver"
12163                   fi
12164                 else
12165                   eval library_names=\"$acl_library_names_spec\"
12166                   for f in $library_names; do
12167                     if test -f "$dir/$f"; then
12168                       found_dir="$dir"
12169                       found_so="$dir/$f"
12170                       break
12171                     fi
12172                   done
12173                 fi
12174               fi
12175             fi
12176                         if test "X$found_dir" = "X"; then
12177               if test -f "$dir/$libname.$acl_libext"; then
12178                 found_dir="$dir"
12179                 found_a="$dir/$libname.$acl_libext"
12180               fi
12181             fi
12182             if test "X$found_dir" != "X"; then
12183               if test -f "$dir/$libname.la"; then
12184                 found_la="$dir/$libname.la"
12185               fi
12186             fi
12187           fi
12188           if test "X$found_dir" = "X"; then
12189             for x in $LDFLAGS $LTLIBICONV; do
12190
12191   acl_save_prefix="$prefix"
12192   prefix="$acl_final_prefix"
12193   acl_save_exec_prefix="$exec_prefix"
12194   exec_prefix="$acl_final_exec_prefix"
12195   eval x=\"$x\"
12196   exec_prefix="$acl_save_exec_prefix"
12197   prefix="$acl_save_prefix"
12198
12199               case "$x" in
12200                 -L*)
12201                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12202                                     if test -n "$acl_shlibext"; then
12203                     if test -f "$dir/$libname$shrext"; then
12204                       found_dir="$dir"
12205                       found_so="$dir/$libname$shrext"
12206                     else
12207                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12208                         ver=`(cd "$dir" && \
12209                               for f in "$libname$shrext".*; do echo "$f"; done \
12210                               | sed -e "s,^$libname$shrext\\\\.,," \
12211                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12212                               | sed 1q ) 2>/dev/null`
12213                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12214                           found_dir="$dir"
12215                           found_so="$dir/$libname$shrext.$ver"
12216                         fi
12217                       else
12218                         eval library_names=\"$acl_library_names_spec\"
12219                         for f in $library_names; do
12220                           if test -f "$dir/$f"; then
12221                             found_dir="$dir"
12222                             found_so="$dir/$f"
12223                             break
12224                           fi
12225                         done
12226                       fi
12227                     fi
12228                   fi
12229                                     if test "X$found_dir" = "X"; then
12230                     if test -f "$dir/$libname.$acl_libext"; then
12231                       found_dir="$dir"
12232                       found_a="$dir/$libname.$acl_libext"
12233                     fi
12234                   fi
12235                   if test "X$found_dir" != "X"; then
12236                     if test -f "$dir/$libname.la"; then
12237                       found_la="$dir/$libname.la"
12238                     fi
12239                   fi
12240                   ;;
12241               esac
12242               if test "X$found_dir" != "X"; then
12243                 break
12244               fi
12245             done
12246           fi
12247           if test "X$found_dir" != "X"; then
12248                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12249             if test "X$found_so" != "X"; then
12250                                                         if test "$enable_rpath" = no \
12251                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
12252                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
12253                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12254               else
12255                                                                                 haveit=
12256                 for x in $ltrpathdirs; do
12257                   if test "X$x" = "X$found_dir"; then
12258                     haveit=yes
12259                     break
12260                   fi
12261                 done
12262                 if test -z "$haveit"; then
12263                   ltrpathdirs="$ltrpathdirs $found_dir"
12264                 fi
12265                                 if test "$acl_hardcode_direct" = yes; then
12266                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12267                 else
12268                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12269                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12270                                                             haveit=
12271                     for x in $rpathdirs; do
12272                       if test "X$x" = "X$found_dir"; then
12273                         haveit=yes
12274                         break
12275                       fi
12276                     done
12277                     if test -z "$haveit"; then
12278                       rpathdirs="$rpathdirs $found_dir"
12279                     fi
12280                   else
12281                                                                                 haveit=
12282                     for x in $LDFLAGS $LIBICONV; do
12283
12284   acl_save_prefix="$prefix"
12285   prefix="$acl_final_prefix"
12286   acl_save_exec_prefix="$exec_prefix"
12287   exec_prefix="$acl_final_exec_prefix"
12288   eval x=\"$x\"
12289   exec_prefix="$acl_save_exec_prefix"
12290   prefix="$acl_save_prefix"
12291
12292                       if test "X$x" = "X-L$found_dir"; then
12293                         haveit=yes
12294                         break
12295                       fi
12296                     done
12297                     if test -z "$haveit"; then
12298                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12299                     fi
12300                     if test "$acl_hardcode_minus_L" != no; then
12301                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12302                     else
12303                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12304                     fi
12305                   fi
12306                 fi
12307               fi
12308             else
12309               if test "X$found_a" != "X"; then
12310                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
12311               else
12312                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12313               fi
12314             fi
12315                         additional_includedir=
12316             case "$found_dir" in
12317               */$acl_libdirstem | */$acl_libdirstem/)
12318                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12319                 if test "$name" = 'iconv'; then
12320                   LIBICONV_PREFIX="$basedir"
12321                 fi
12322                 additional_includedir="$basedir/include"
12323                 ;;
12324               */$acl_libdirstem2 | */$acl_libdirstem2/)
12325                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
12326                 if test "$name" = 'iconv'; then
12327                   LIBICONV_PREFIX="$basedir"
12328                 fi
12329                 additional_includedir="$basedir/include"
12330                 ;;
12331             esac
12332             if test "X$additional_includedir" != "X"; then
12333                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12334                 haveit=
12335                 if test "X$additional_includedir" = "X/usr/local/include"; then
12336                   if test -n "$GCC"; then
12337                     case $host_os in
12338                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12339                     esac
12340                   fi
12341                 fi
12342                 if test -z "$haveit"; then
12343                   for x in $CPPFLAGS $INCICONV; do
12344
12345   acl_save_prefix="$prefix"
12346   prefix="$acl_final_prefix"
12347   acl_save_exec_prefix="$exec_prefix"
12348   exec_prefix="$acl_final_exec_prefix"
12349   eval x=\"$x\"
12350   exec_prefix="$acl_save_exec_prefix"
12351   prefix="$acl_save_prefix"
12352
12353                     if test "X$x" = "X-I$additional_includedir"; then
12354                       haveit=yes
12355                       break
12356                     fi
12357                   done
12358                   if test -z "$haveit"; then
12359                     if test -d "$additional_includedir"; then
12360                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12361                     fi
12362                   fi
12363                 fi
12364               fi
12365             fi
12366                         if test -n "$found_la"; then
12367                                                         save_libdir="$libdir"
12368               case "$found_la" in
12369                 */* | *\\*) . "$found_la" ;;
12370                 *) . "./$found_la" ;;
12371               esac
12372               libdir="$save_libdir"
12373                             for dep in $dependency_libs; do
12374                 case "$dep" in
12375                   -L*)
12376                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12377                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
12378                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
12379                       haveit=
12380                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
12381                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
12382                         if test -n "$GCC"; then
12383                           case $host_os in
12384                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12385                           esac
12386                         fi
12387                       fi
12388                       if test -z "$haveit"; then
12389                         haveit=
12390                         for x in $LDFLAGS $LIBICONV; do
12391
12392   acl_save_prefix="$prefix"
12393   prefix="$acl_final_prefix"
12394   acl_save_exec_prefix="$exec_prefix"
12395   exec_prefix="$acl_final_exec_prefix"
12396   eval x=\"$x\"
12397   exec_prefix="$acl_save_exec_prefix"
12398   prefix="$acl_save_prefix"
12399
12400                           if test "X$x" = "X-L$additional_libdir"; then
12401                             haveit=yes
12402                             break
12403                           fi
12404                         done
12405                         if test -z "$haveit"; then
12406                           if test -d "$additional_libdir"; then
12407                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12408                           fi
12409                         fi
12410                         haveit=
12411                         for x in $LDFLAGS $LTLIBICONV; do
12412
12413   acl_save_prefix="$prefix"
12414   prefix="$acl_final_prefix"
12415   acl_save_exec_prefix="$exec_prefix"
12416   exec_prefix="$acl_final_exec_prefix"
12417   eval x=\"$x\"
12418   exec_prefix="$acl_save_exec_prefix"
12419   prefix="$acl_save_prefix"
12420
12421                           if test "X$x" = "X-L$additional_libdir"; then
12422                             haveit=yes
12423                             break
12424                           fi
12425                         done
12426                         if test -z "$haveit"; then
12427                           if test -d "$additional_libdir"; then
12428                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12429                           fi
12430                         fi
12431                       fi
12432                     fi
12433                     ;;
12434                   -R*)
12435                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
12436                     if test "$enable_rpath" != no; then
12437                                                                   haveit=
12438                       for x in $rpathdirs; do
12439                         if test "X$x" = "X$dir"; then
12440                           haveit=yes
12441                           break
12442                         fi
12443                       done
12444                       if test -z "$haveit"; then
12445                         rpathdirs="$rpathdirs $dir"
12446                       fi
12447                                                                   haveit=
12448                       for x in $ltrpathdirs; do
12449                         if test "X$x" = "X$dir"; then
12450                           haveit=yes
12451                           break
12452                         fi
12453                       done
12454                       if test -z "$haveit"; then
12455                         ltrpathdirs="$ltrpathdirs $dir"
12456                       fi
12457                     fi
12458                     ;;
12459                   -l*)
12460                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12461                     ;;
12462                   *.la)
12463                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12464                     ;;
12465                   *)
12466                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
12467                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12468                     ;;
12469                 esac
12470               done
12471             fi
12472           else
12473                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12474             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12475           fi
12476         fi
12477       fi
12478     done
12479   done
12480   if test "X$rpathdirs" != "X"; then
12481     if test -n "$acl_hardcode_libdir_separator"; then
12482                         alldirs=
12483       for found_dir in $rpathdirs; do
12484         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
12485       done
12486             acl_save_libdir="$libdir"
12487       libdir="$alldirs"
12488       eval flag=\"$acl_hardcode_libdir_flag_spec\"
12489       libdir="$acl_save_libdir"
12490       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12491     else
12492             for found_dir in $rpathdirs; do
12493         acl_save_libdir="$libdir"
12494         libdir="$found_dir"
12495         eval flag=\"$acl_hardcode_libdir_flag_spec\"
12496         libdir="$acl_save_libdir"
12497         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12498       done
12499     fi
12500   fi
12501   if test "X$ltrpathdirs" != "X"; then
12502             for found_dir in $ltrpathdirs; do
12503       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12504     done
12505   fi
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518           am_save_CPPFLAGS="$CPPFLAGS"
12519
12520   for element in $INCICONV; do
12521     haveit=
12522     for x in $CPPFLAGS; do
12523
12524   acl_save_prefix="$prefix"
12525   prefix="$acl_final_prefix"
12526   acl_save_exec_prefix="$exec_prefix"
12527   exec_prefix="$acl_final_exec_prefix"
12528   eval x=\"$x\"
12529   exec_prefix="$acl_save_exec_prefix"
12530   prefix="$acl_save_prefix"
12531
12532       if test "X$x" = "X$element"; then
12533         haveit=yes
12534         break
12535       fi
12536     done
12537     if test -z "$haveit"; then
12538       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12539     fi
12540   done
12541
12542
12543   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12544 $as_echo_n "checking for iconv... " >&6; }
12545 if ${am_cv_func_iconv+:} false; then :
12546   $as_echo_n "(cached) " >&6
12547 else
12548
12549     am_cv_func_iconv="no, consider installing GNU libiconv"
12550     am_cv_lib_iconv=no
12551     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12552 /* end confdefs.h.  */
12553 #include <stdlib.h>
12554 #include <iconv.h>
12555 int
12556 main ()
12557 {
12558 iconv_t cd = iconv_open("","");
12559        iconv(cd,NULL,NULL,NULL,NULL);
12560        iconv_close(cd);
12561   ;
12562   return 0;
12563 }
12564 _ACEOF
12565 if ac_fn_c_try_link "$LINENO"; then :
12566   am_cv_func_iconv=yes
12567 fi
12568 rm -f core conftest.err conftest.$ac_objext \
12569     conftest$ac_exeext conftest.$ac_ext
12570     if test "$am_cv_func_iconv" != yes; then
12571       am_save_LIBS="$LIBS"
12572       LIBS="$LIBS $LIBICONV"
12573       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12574 /* end confdefs.h.  */
12575 #include <stdlib.h>
12576 #include <iconv.h>
12577 int
12578 main ()
12579 {
12580 iconv_t cd = iconv_open("","");
12581          iconv(cd,NULL,NULL,NULL,NULL);
12582          iconv_close(cd);
12583   ;
12584   return 0;
12585 }
12586 _ACEOF
12587 if ac_fn_c_try_link "$LINENO"; then :
12588   am_cv_lib_iconv=yes
12589         am_cv_func_iconv=yes
12590 fi
12591 rm -f core conftest.err conftest.$ac_objext \
12592     conftest$ac_exeext conftest.$ac_ext
12593       LIBS="$am_save_LIBS"
12594     fi
12595
12596 fi
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12598 $as_echo "$am_cv_func_iconv" >&6; }
12599   if test "$am_cv_func_iconv" = yes; then
12600     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
12601 $as_echo_n "checking for working iconv... " >&6; }
12602 if ${am_cv_func_iconv_works+:} false; then :
12603   $as_echo_n "(cached) " >&6
12604 else
12605
12606             am_save_LIBS="$LIBS"
12607       if test $am_cv_lib_iconv = yes; then
12608         LIBS="$LIBS $LIBICONV"
12609       fi
12610       if test "$cross_compiling" = yes; then :
12611   case "$host_os" in
12612            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
12613            *)            am_cv_func_iconv_works="guessing yes" ;;
12614          esac
12615 else
12616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12617 /* end confdefs.h.  */
12618
12619 #include <iconv.h>
12620 #include <string.h>
12621 int main ()
12622 {
12623   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
12624      returns.  */
12625   {
12626     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
12627     if (cd_utf8_to_88591 != (iconv_t)(-1))
12628       {
12629         static const char input[] = "\342\202\254"; /* EURO SIGN */
12630         char buf[10];
12631         const char *inptr = input;
12632         size_t inbytesleft = strlen (input);
12633         char *outptr = buf;
12634         size_t outbytesleft = sizeof (buf);
12635         size_t res = iconv (cd_utf8_to_88591,
12636                             (char **) &inptr, &inbytesleft,
12637                             &outptr, &outbytesleft);
12638         if (res == 0)
12639           return 1;
12640       }
12641   }
12642 #if 0 /* This bug could be worked around by the caller.  */
12643   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
12644   {
12645     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
12646     if (cd_88591_to_utf8 != (iconv_t)(-1))
12647       {
12648         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
12649         char buf[50];
12650         const char *inptr = input;
12651         size_t inbytesleft = strlen (input);
12652         char *outptr = buf;
12653         size_t outbytesleft = sizeof (buf);
12654         size_t res = iconv (cd_88591_to_utf8,
12655                             (char **) &inptr, &inbytesleft,
12656                             &outptr, &outbytesleft);
12657         if ((int)res > 0)
12658           return 1;
12659       }
12660   }
12661 #endif
12662   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
12663      provided.  */
12664   if (/* Try standardized names.  */
12665       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
12666       /* Try IRIX, OSF/1 names.  */
12667       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
12668       /* Try AIX names.  */
12669       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
12670       /* Try HP-UX names.  */
12671       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
12672     return 1;
12673   return 0;
12674 }
12675 _ACEOF
12676 if ac_fn_c_try_run "$LINENO"; then :
12677   am_cv_func_iconv_works=yes
12678 else
12679   am_cv_func_iconv_works=no
12680 fi
12681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12682   conftest.$ac_objext conftest.beam conftest.$ac_ext
12683 fi
12684
12685       LIBS="$am_save_LIBS"
12686
12687 fi
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
12689 $as_echo "$am_cv_func_iconv_works" >&6; }
12690     case "$am_cv_func_iconv_works" in
12691       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
12692       *)   am_func_iconv=yes ;;
12693     esac
12694   else
12695     am_func_iconv=no am_cv_lib_iconv=no
12696   fi
12697   if test "$am_func_iconv" = yes; then
12698
12699 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12700
12701   fi
12702   if test "$am_cv_lib_iconv" = yes; then
12703     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12704 $as_echo_n "checking how to link with libiconv... " >&6; }
12705     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12706 $as_echo "$LIBICONV" >&6; }
12707   else
12708             CPPFLAGS="$am_save_CPPFLAGS"
12709     LIBICONV=
12710     LTLIBICONV=
12711   fi
12712
12713
12714
12715   if test "$am_cv_func_iconv" = yes; then
12716     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
12717 $as_echo_n "checking for iconv declaration... " >&6; }
12718     if ${am_cv_proto_iconv+:} false; then :
12719   $as_echo_n "(cached) " >&6
12720 else
12721
12722       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12723 /* end confdefs.h.  */
12724
12725 #include <stdlib.h>
12726 #include <iconv.h>
12727 extern
12728 #ifdef __cplusplus
12729 "C"
12730 #endif
12731 #if defined(__STDC__) || defined(__cplusplus)
12732 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12733 #else
12734 size_t iconv();
12735 #endif
12736
12737 int
12738 main ()
12739 {
12740
12741   ;
12742   return 0;
12743 }
12744 _ACEOF
12745 if ac_fn_c_try_compile "$LINENO"; then :
12746   am_cv_proto_iconv_arg1=""
12747 else
12748   am_cv_proto_iconv_arg1="const"
12749 fi
12750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12751       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);"
12752 fi
12753
12754     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12755     { $as_echo "$as_me:${as_lineno-$LINENO}: result:
12756          $am_cv_proto_iconv" >&5
12757 $as_echo "
12758          $am_cv_proto_iconv" >&6; }
12759
12760 cat >>confdefs.h <<_ACEOF
12761 #define ICONV_CONST $am_cv_proto_iconv_arg1
12762 _ACEOF
12763
12764   fi
12765
12766
12767 # Optionally set install location of udev
12768 UDEV=/usr/lib/udev
12769
12770 # Check whether --with-udev was given.
12771 if test "${with_udev+set}" = set; then :
12772   withval=$with_udev; UDEV="${withval}"
12773 fi
12774
12775
12776
12777 # Optionally set name of udev rules file, default
12778 # priority is 69, to appear before 70-acl.rules which handles
12779 # access control to the devices. We try to let all other userspace
12780 # libusb-based device handlers take precedence since libmtp may
12781 # attempt to autoprobe the devices.
12782 #
12783 # Later rules can then use the identifiers for its processing.
12784 UDEV_RULES=69-libmtp.rules
12785
12786 # Check whether --with-udev-rules was given.
12787 if test "${with_udev_rules+set}" = set; then :
12788   withval=$with_udev_rules; UDEV_RULES="${withval}"
12789 fi
12790
12791
12792
12793 # Optionally set group for device nodes
12794 UDEV_GROUP=
12795
12796 # Check whether --with-udev-group was given.
12797 if test "${with_udev_group+set}" = set; then :
12798   withval=$with_udev_group; UDEV_GROUP="-g\"${withval}\""
12799 fi
12800
12801
12802
12803 # Optionally set mode for device nodes
12804 UDEV_MODE=
12805
12806 # Check whether --with-udev-mode was given.
12807 if test "${with_udev_mode+set}" = set; then :
12808   withval=$with_udev_mode; UDEV_MODE="-m\"${withval}\""
12809 fi
12810
12811
12812
12813 # Optionally enable and check for doxygen
12814 # Check whether --enable-doxygen was given.
12815 if test "${enable_doxygen+set}" = set; then :
12816   enableval=$enable_doxygen; ac_enable_doxygen=$enableval
12817 else
12818   ac_enable_doxygen=auto
12819 fi
12820
12821 if test "x$ac_enable_doxygen" != "xno"; then
12822     # Extract the first word of "doxygen", so it can be a program name with args.
12823 set dummy doxygen; ac_word=$2
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12825 $as_echo_n "checking for $ac_word... " >&6; }
12826 if ${ac_cv_prog_HAVE_DOXYGEN+:} false; then :
12827   $as_echo_n "(cached) " >&6
12828 else
12829   if test -n "$HAVE_DOXYGEN"; then
12830   ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test.
12831 else
12832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12833 for as_dir in $PATH
12834 do
12835   IFS=$as_save_IFS
12836   test -z "$as_dir" && as_dir=.
12837     for ac_exec_ext in '' $ac_executable_extensions; do
12838   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12839     ac_cv_prog_HAVE_DOXYGEN="true"
12840     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12841     break 2
12842   fi
12843 done
12844   done
12845 IFS=$as_save_IFS
12846
12847   test -z "$ac_cv_prog_HAVE_DOXYGEN" && ac_cv_prog_HAVE_DOXYGEN="false"
12848 fi
12849 fi
12850 HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN
12851 if test -n "$HAVE_DOXYGEN"; then
12852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOXYGEN" >&5
12853 $as_echo "$HAVE_DOXYGEN" >&6; }
12854 else
12855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12856 $as_echo "no" >&6; }
12857 fi
12858
12859
12860     if test "x$HAVE_DOXYGEN" = "xfalse" -a "x$ac_enable_doxygen" = "xyes"; then
12861         as_fn_error $? "*** API documentation explicitly requested but Doxygen not found" "$LINENO" 5
12862     fi
12863     if test "x$HAVE_DOXYGEN" = "xtrue"; then
12864         { $as_echo "$as_me:${as_lineno-$LINENO}: API documentation will be generated using Doxygen" >&5
12865 $as_echo "$as_me: API documentation will be generated using Doxygen" >&6;}
12866     fi
12867 else
12868     HAVE_DOXYGEN=false
12869     { $as_echo "$as_me:${as_lineno-$LINENO}: API documentation will not be generated" >&5
12870 $as_echo "$as_me: API documentation will not be generated" >&6;}
12871 fi
12872  if $HAVE_DOXYGEN; then
12873   HAVE_DOXYGEN_TRUE=
12874   HAVE_DOXYGEN_FALSE='#'
12875 else
12876   HAVE_DOXYGEN_TRUE='#'
12877   HAVE_DOXYGEN_FALSE=
12878 fi
12879
12880
12881 # Check for Darwin
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the host operating system is Darwin" >&5
12883 $as_echo_n "checking if the host operating system is Darwin... " >&6; }
12884 case "$host" in
12885   *-darwin*)
12886     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12887 $as_echo "yes" >&6; }
12888     CFLAGS="$CFLAGS -DUSE_DARWIN"
12889     OSFLAGS="-framework IOKit"
12890     ;;
12891   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12892 $as_echo "no" >&6; } ;;
12893 esac
12894
12895
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the host operating system is Linux" >&5
12897 $as_echo_n "checking if the host operating system is Linux... " >&6; }
12898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12899 /* end confdefs.h.  */
12900 #ifndef __linux__
12901                 #error "FAIL"
12902                 #endif
12903
12904 int
12905 main ()
12906 {
12907 int test;
12908   ;
12909   return 0;
12910 }
12911 _ACEOF
12912 if ac_fn_c_try_compile "$LINENO"; then :
12913    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12914 $as_echo "yes" >&6; }
12915                    if true; then
12916   USE_LINUX_TRUE=
12917   USE_LINUX_FALSE='#'
12918 else
12919   USE_LINUX_TRUE='#'
12920   USE_LINUX_FALSE=
12921 fi
12922
12923
12924 else
12925    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12926 $as_echo "no" >&6; }
12927                    if false; then
12928   USE_LINUX_TRUE=
12929   USE_LINUX_FALSE='#'
12930 else
12931   USE_LINUX_TRUE='#'
12932   USE_LINUX_FALSE=
12933 fi
12934
12935
12936 fi
12937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12938
12939 # Check for mingw compiler platform
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking For MinGW32" >&5
12941 $as_echo_n "checking For MinGW32... " >&6; }
12942 case "$host" in
12943   *-*-mingw*)
12944     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12945 $as_echo "yes" >&6; }
12946     mingw_compiler=yes
12947     ;;
12948   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12949 $as_echo "no" >&6; } ;;
12950 esac
12951  if test "$mingw_compiler" = "yes"; then
12952   COMPILE_MINGW32_TRUE=
12953   COMPILE_MINGW32_FALSE='#'
12954 else
12955   COMPILE_MINGW32_TRUE='#'
12956   COMPILE_MINGW32_FALSE=
12957 fi
12958
12959
12960 # Check if Microsoft LIB.EXE is available
12961 if test "$mingw_compiler" = "yes"; then
12962   # Extract the first word of "lib.exe", so it can be a program name with args.
12963 set dummy lib.exe; ac_word=$2
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12965 $as_echo_n "checking for $ac_word... " >&6; }
12966 if ${ac_cv_prog_ms_lib_exe+:} false; then :
12967   $as_echo_n "(cached) " >&6
12968 else
12969   if test -n "$ms_lib_exe"; then
12970   ac_cv_prog_ms_lib_exe="$ms_lib_exe" # Let the user override the test.
12971 else
12972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12973 for as_dir in $PATH
12974 do
12975   IFS=$as_save_IFS
12976   test -z "$as_dir" && as_dir=.
12977     for ac_exec_ext in '' $ac_executable_extensions; do
12978   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12979     ac_cv_prog_ms_lib_exe="yes"
12980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12981     break 2
12982   fi
12983 done
12984   done
12985 IFS=$as_save_IFS
12986
12987   test -z "$ac_cv_prog_ms_lib_exe" && ac_cv_prog_ms_lib_exe="no"
12988 fi
12989 fi
12990 ms_lib_exe=$ac_cv_prog_ms_lib_exe
12991 if test -n "$ms_lib_exe"; then
12992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ms_lib_exe" >&5
12993 $as_echo "$ms_lib_exe" >&6; }
12994 else
12995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12996 $as_echo "no" >&6; }
12997 fi
12998
12999
13000 fi
13001  if test x$ms_lib_exe = xyes; then
13002   MS_LIB_EXE_TRUE=
13003   MS_LIB_EXE_FALSE='#'
13004 else
13005   MS_LIB_EXE_TRUE='#'
13006   MS_LIB_EXE_FALSE=
13007 fi
13008
13009
13010 # Check for libusb-1.0
13011
13012
13013
13014
13015
13016
13017
13018 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13019         if test -n "$ac_tool_prefix"; then
13020   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13021 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13023 $as_echo_n "checking for $ac_word... " >&6; }
13024 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13025   $as_echo_n "(cached) " >&6
13026 else
13027   case $PKG_CONFIG in
13028   [\\/]* | ?:[\\/]*)
13029   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13030   ;;
13031   *)
13032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13033 for as_dir in $PATH
13034 do
13035   IFS=$as_save_IFS
13036   test -z "$as_dir" && as_dir=.
13037     for ac_exec_ext in '' $ac_executable_extensions; do
13038   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13039     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13041     break 2
13042   fi
13043 done
13044   done
13045 IFS=$as_save_IFS
13046
13047   ;;
13048 esac
13049 fi
13050 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13051 if test -n "$PKG_CONFIG"; then
13052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13053 $as_echo "$PKG_CONFIG" >&6; }
13054 else
13055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13056 $as_echo "no" >&6; }
13057 fi
13058
13059
13060 fi
13061 if test -z "$ac_cv_path_PKG_CONFIG"; then
13062   ac_pt_PKG_CONFIG=$PKG_CONFIG
13063   # Extract the first word of "pkg-config", so it can be a program name with args.
13064 set dummy pkg-config; ac_word=$2
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13066 $as_echo_n "checking for $ac_word... " >&6; }
13067 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13068   $as_echo_n "(cached) " >&6
13069 else
13070   case $ac_pt_PKG_CONFIG in
13071   [\\/]* | ?:[\\/]*)
13072   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13073   ;;
13074   *)
13075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13076 for as_dir in $PATH
13077 do
13078   IFS=$as_save_IFS
13079   test -z "$as_dir" && as_dir=.
13080     for ac_exec_ext in '' $ac_executable_extensions; do
13081   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13082     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13084     break 2
13085   fi
13086 done
13087   done
13088 IFS=$as_save_IFS
13089
13090   ;;
13091 esac
13092 fi
13093 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13094 if test -n "$ac_pt_PKG_CONFIG"; then
13095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13096 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13097 else
13098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13099 $as_echo "no" >&6; }
13100 fi
13101
13102   if test "x$ac_pt_PKG_CONFIG" = x; then
13103     PKG_CONFIG=""
13104   else
13105     case $cross_compiling:$ac_tool_warned in
13106 yes:)
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13109 ac_tool_warned=yes ;;
13110 esac
13111     PKG_CONFIG=$ac_pt_PKG_CONFIG
13112   fi
13113 else
13114   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13115 fi
13116
13117 fi
13118 if test -n "$PKG_CONFIG"; then
13119         _pkg_min_version=0.9.0
13120         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13121 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13122         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13123                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13124 $as_echo "yes" >&6; }
13125         else
13126                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13127 $as_echo "no" >&6; }
13128                 PKG_CONFIG=""
13129         fi
13130 fi
13131
13132 pkg_failed=no
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5
13134 $as_echo_n "checking for LIBUSB... " >&6; }
13135
13136 if test -n "$LIBUSB_CFLAGS"; then
13137     pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
13138  elif test -n "$PKG_CONFIG"; then
13139     if test -n "$PKG_CONFIG" && \
13140     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 >= 1.0.0\""; } >&5
13141   ($PKG_CONFIG --exists --print-errors "libusb-1.0 >= 1.0.0") 2>&5
13142   ac_status=$?
13143   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13144   test $ac_status = 0; }; then
13145   pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0 >= 1.0.0" 2>/dev/null`
13146                       test "x$?" != "x0" && pkg_failed=yes
13147 else
13148   pkg_failed=yes
13149 fi
13150  else
13151     pkg_failed=untried
13152 fi
13153 if test -n "$LIBUSB_LIBS"; then
13154     pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
13155  elif test -n "$PKG_CONFIG"; then
13156     if test -n "$PKG_CONFIG" && \
13157     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 >= 1.0.0\""; } >&5
13158   ($PKG_CONFIG --exists --print-errors "libusb-1.0 >= 1.0.0") 2>&5
13159   ac_status=$?
13160   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13161   test $ac_status = 0; }; then
13162   pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0 >= 1.0.0" 2>/dev/null`
13163                       test "x$?" != "x0" && pkg_failed=yes
13164 else
13165   pkg_failed=yes
13166 fi
13167  else
13168     pkg_failed=untried
13169 fi
13170
13171
13172
13173 if test $pkg_failed = yes; then
13174         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13175 $as_echo "no" >&6; }
13176
13177 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13178         _pkg_short_errors_supported=yes
13179 else
13180         _pkg_short_errors_supported=no
13181 fi
13182         if test $_pkg_short_errors_supported = yes; then
13183                 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0 >= 1.0.0" 2>&1`
13184         else
13185                 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0 >= 1.0.0" 2>&1`
13186         fi
13187         # Put the nasty error message in config.log where it belongs
13188         echo "$LIBUSB_PKG_ERRORS" >&5
13189
13190
13191    # Check for libopenusb second
13192    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openusb_init in -lopenusb" >&5
13193 $as_echo_n "checking for openusb_init in -lopenusb... " >&6; }
13194 if ${ac_cv_lib_openusb_openusb_init+:} false; then :
13195   $as_echo_n "(cached) " >&6
13196 else
13197   ac_check_lib_save_LIBS=$LIBS
13198 LIBS="-lopenusb  $LIBS"
13199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13200 /* end confdefs.h.  */
13201
13202 /* Override any GCC internal prototype to avoid an error.
13203    Use char because int might match the return type of a GCC
13204    builtin and then its argument prototype would still apply.  */
13205 #ifdef __cplusplus
13206 extern "C"
13207 #endif
13208 char openusb_init ();
13209 int
13210 main ()
13211 {
13212 return openusb_init ();
13213   ;
13214   return 0;
13215 }
13216 _ACEOF
13217 if ac_fn_c_try_link "$LINENO"; then :
13218   ac_cv_lib_openusb_openusb_init=yes
13219 else
13220   ac_cv_lib_openusb_openusb_init=no
13221 fi
13222 rm -f core conftest.err conftest.$ac_objext \
13223     conftest$ac_exeext conftest.$ac_ext
13224 LIBS=$ac_check_lib_save_LIBS
13225 fi
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openusb_openusb_init" >&5
13227 $as_echo "$ac_cv_lib_openusb_openusb_init" >&6; }
13228 if test "x$ac_cv_lib_openusb_openusb_init" = xyes; then :
13229
13230
13231 $as_echo "#define HAVE_OPENUSB /**/" >>confdefs.h
13232
13233         LIBUSB_VER=1.0
13234
13235 else
13236
13237
13238 pkg_failed=no
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5
13240 $as_echo_n "checking for LIBUSB... " >&6; }
13241
13242 if test -n "$LIBUSB_CFLAGS"; then
13243     pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
13244  elif test -n "$PKG_CONFIG"; then
13245     if test -n "$PKG_CONFIG" && \
13246     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb >= 0.1.8\""; } >&5
13247   ($PKG_CONFIG --exists --print-errors "libusb >= 0.1.8") 2>&5
13248   ac_status=$?
13249   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13250   test $ac_status = 0; }; then
13251   pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb >= 0.1.8" 2>/dev/null`
13252                       test "x$?" != "x0" && pkg_failed=yes
13253 else
13254   pkg_failed=yes
13255 fi
13256  else
13257     pkg_failed=untried
13258 fi
13259 if test -n "$LIBUSB_LIBS"; then
13260     pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
13261  elif test -n "$PKG_CONFIG"; then
13262     if test -n "$PKG_CONFIG" && \
13263     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb >= 0.1.8\""; } >&5
13264   ($PKG_CONFIG --exists --print-errors "libusb >= 0.1.8") 2>&5
13265   ac_status=$?
13266   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13267   test $ac_status = 0; }; then
13268   pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb >= 0.1.8" 2>/dev/null`
13269                       test "x$?" != "x0" && pkg_failed=yes
13270 else
13271   pkg_failed=yes
13272 fi
13273  else
13274     pkg_failed=untried
13275 fi
13276
13277
13278
13279 if test $pkg_failed = yes; then
13280         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13281 $as_echo "no" >&6; }
13282
13283 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13284         _pkg_short_errors_supported=yes
13285 else
13286         _pkg_short_errors_supported=no
13287 fi
13288         if test $_pkg_short_errors_supported = yes; then
13289                 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb >= 0.1.8" 2>&1`
13290         else
13291                 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb >= 0.1.8" 2>&1`
13292         fi
13293         # Put the nasty error message in config.log where it belongs
13294         echo "$LIBUSB_PKG_ERRORS" >&5
13295
13296
13297          # Some systems don't use pkg-config for libusb, so double check.
13298          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_open in -lusb" >&5
13299 $as_echo_n "checking for usb_open in -lusb... " >&6; }
13300 if ${ac_cv_lib_usb_usb_open+:} false; then :
13301   $as_echo_n "(cached) " >&6
13302 else
13303   ac_check_lib_save_LIBS=$LIBS
13304 LIBS="-lusb  $LIBS"
13305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13306 /* end confdefs.h.  */
13307
13308 /* Override any GCC internal prototype to avoid an error.
13309    Use char because int might match the return type of a GCC
13310    builtin and then its argument prototype would still apply.  */
13311 #ifdef __cplusplus
13312 extern "C"
13313 #endif
13314 char usb_open ();
13315 int
13316 main ()
13317 {
13318 return usb_open ();
13319   ;
13320   return 0;
13321 }
13322 _ACEOF
13323 if ac_fn_c_try_link "$LINENO"; then :
13324   ac_cv_lib_usb_usb_open=yes
13325 else
13326   ac_cv_lib_usb_usb_open=no
13327 fi
13328 rm -f core conftest.err conftest.$ac_objext \
13329     conftest$ac_exeext conftest.$ac_ext
13330 LIBS=$ac_check_lib_save_LIBS
13331 fi
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_open" >&5
13333 $as_echo "$ac_cv_lib_usb_usb_open" >&6; }
13334 if test "x$ac_cv_lib_usb_usb_open" = xyes; then :
13335
13336             LIBUSB_VER=0.1
13337
13338 $as_echo "#define HAVE_LIBUSB0 /**/" >>confdefs.h
13339
13340             found_libusb0_pkg=yes
13341
13342 else
13343
13344             as_fn_error $? "*** libusb not found! (missing -dev/-devel package?) ***\n*** prefer to install libusb-1 if you can! ***" "$LINENO" 5
13345
13346 fi
13347
13348
13349 elif test $pkg_failed = untried; then
13350         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13351 $as_echo "no" >&6; }
13352
13353          # Some systems don't use pkg-config for libusb, so double check.
13354          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_open in -lusb" >&5
13355 $as_echo_n "checking for usb_open in -lusb... " >&6; }
13356 if ${ac_cv_lib_usb_usb_open+:} false; then :
13357   $as_echo_n "(cached) " >&6
13358 else
13359   ac_check_lib_save_LIBS=$LIBS
13360 LIBS="-lusb  $LIBS"
13361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13362 /* end confdefs.h.  */
13363
13364 /* Override any GCC internal prototype to avoid an error.
13365    Use char because int might match the return type of a GCC
13366    builtin and then its argument prototype would still apply.  */
13367 #ifdef __cplusplus
13368 extern "C"
13369 #endif
13370 char usb_open ();
13371 int
13372 main ()
13373 {
13374 return usb_open ();
13375   ;
13376   return 0;
13377 }
13378 _ACEOF
13379 if ac_fn_c_try_link "$LINENO"; then :
13380   ac_cv_lib_usb_usb_open=yes
13381 else
13382   ac_cv_lib_usb_usb_open=no
13383 fi
13384 rm -f core conftest.err conftest.$ac_objext \
13385     conftest$ac_exeext conftest.$ac_ext
13386 LIBS=$ac_check_lib_save_LIBS
13387 fi
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_open" >&5
13389 $as_echo "$ac_cv_lib_usb_usb_open" >&6; }
13390 if test "x$ac_cv_lib_usb_usb_open" = xyes; then :
13391
13392             LIBUSB_VER=0.1
13393
13394 $as_echo "#define HAVE_LIBUSB0 /**/" >>confdefs.h
13395
13396             found_libusb0_pkg=yes
13397
13398 else
13399
13400             as_fn_error $? "*** libusb not found! (missing -dev/-devel package?) ***\n*** prefer to install libusb-1 if you can! ***" "$LINENO" 5
13401
13402 fi
13403
13404
13405 else
13406         LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
13407         LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
13408         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13409 $as_echo "yes" >&6; }
13410
13411          LIBUSB_VER=`pkg-config --modversion libusb`
13412          LIBUSB_REQUIRES='libusb'
13413
13414 $as_echo "#define HAVE_LIBUSB0 /**/" >>confdefs.h
13415
13416          found_libusb0_pkg=yes
13417
13418 fi
13419
13420 fi
13421
13422
13423 elif test $pkg_failed = untried; then
13424         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13425 $as_echo "no" >&6; }
13426
13427    # Check for libopenusb second
13428    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openusb_init in -lopenusb" >&5
13429 $as_echo_n "checking for openusb_init in -lopenusb... " >&6; }
13430 if ${ac_cv_lib_openusb_openusb_init+:} false; then :
13431   $as_echo_n "(cached) " >&6
13432 else
13433   ac_check_lib_save_LIBS=$LIBS
13434 LIBS="-lopenusb  $LIBS"
13435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13436 /* end confdefs.h.  */
13437
13438 /* Override any GCC internal prototype to avoid an error.
13439    Use char because int might match the return type of a GCC
13440    builtin and then its argument prototype would still apply.  */
13441 #ifdef __cplusplus
13442 extern "C"
13443 #endif
13444 char openusb_init ();
13445 int
13446 main ()
13447 {
13448 return openusb_init ();
13449   ;
13450   return 0;
13451 }
13452 _ACEOF
13453 if ac_fn_c_try_link "$LINENO"; then :
13454   ac_cv_lib_openusb_openusb_init=yes
13455 else
13456   ac_cv_lib_openusb_openusb_init=no
13457 fi
13458 rm -f core conftest.err conftest.$ac_objext \
13459     conftest$ac_exeext conftest.$ac_ext
13460 LIBS=$ac_check_lib_save_LIBS
13461 fi
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openusb_openusb_init" >&5
13463 $as_echo "$ac_cv_lib_openusb_openusb_init" >&6; }
13464 if test "x$ac_cv_lib_openusb_openusb_init" = xyes; then :
13465
13466
13467 $as_echo "#define HAVE_OPENUSB /**/" >>confdefs.h
13468
13469         LIBUSB_VER=1.0
13470
13471 else
13472
13473
13474 pkg_failed=no
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5
13476 $as_echo_n "checking for LIBUSB... " >&6; }
13477
13478 if test -n "$LIBUSB_CFLAGS"; then
13479     pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
13480  elif test -n "$PKG_CONFIG"; then
13481     if test -n "$PKG_CONFIG" && \
13482     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb >= 0.1.8\""; } >&5
13483   ($PKG_CONFIG --exists --print-errors "libusb >= 0.1.8") 2>&5
13484   ac_status=$?
13485   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13486   test $ac_status = 0; }; then
13487   pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb >= 0.1.8" 2>/dev/null`
13488                       test "x$?" != "x0" && pkg_failed=yes
13489 else
13490   pkg_failed=yes
13491 fi
13492  else
13493     pkg_failed=untried
13494 fi
13495 if test -n "$LIBUSB_LIBS"; then
13496     pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
13497  elif test -n "$PKG_CONFIG"; then
13498     if test -n "$PKG_CONFIG" && \
13499     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb >= 0.1.8\""; } >&5
13500   ($PKG_CONFIG --exists --print-errors "libusb >= 0.1.8") 2>&5
13501   ac_status=$?
13502   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13503   test $ac_status = 0; }; then
13504   pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb >= 0.1.8" 2>/dev/null`
13505                       test "x$?" != "x0" && pkg_failed=yes
13506 else
13507   pkg_failed=yes
13508 fi
13509  else
13510     pkg_failed=untried
13511 fi
13512
13513
13514
13515 if test $pkg_failed = yes; then
13516         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13517 $as_echo "no" >&6; }
13518
13519 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13520         _pkg_short_errors_supported=yes
13521 else
13522         _pkg_short_errors_supported=no
13523 fi
13524         if test $_pkg_short_errors_supported = yes; then
13525                 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb >= 0.1.8" 2>&1`
13526         else
13527                 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb >= 0.1.8" 2>&1`
13528         fi
13529         # Put the nasty error message in config.log where it belongs
13530         echo "$LIBUSB_PKG_ERRORS" >&5
13531
13532
13533          # Some systems don't use pkg-config for libusb, so double check.
13534          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_open in -lusb" >&5
13535 $as_echo_n "checking for usb_open in -lusb... " >&6; }
13536 if ${ac_cv_lib_usb_usb_open+:} false; then :
13537   $as_echo_n "(cached) " >&6
13538 else
13539   ac_check_lib_save_LIBS=$LIBS
13540 LIBS="-lusb  $LIBS"
13541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13542 /* end confdefs.h.  */
13543
13544 /* Override any GCC internal prototype to avoid an error.
13545    Use char because int might match the return type of a GCC
13546    builtin and then its argument prototype would still apply.  */
13547 #ifdef __cplusplus
13548 extern "C"
13549 #endif
13550 char usb_open ();
13551 int
13552 main ()
13553 {
13554 return usb_open ();
13555   ;
13556   return 0;
13557 }
13558 _ACEOF
13559 if ac_fn_c_try_link "$LINENO"; then :
13560   ac_cv_lib_usb_usb_open=yes
13561 else
13562   ac_cv_lib_usb_usb_open=no
13563 fi
13564 rm -f core conftest.err conftest.$ac_objext \
13565     conftest$ac_exeext conftest.$ac_ext
13566 LIBS=$ac_check_lib_save_LIBS
13567 fi
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_open" >&5
13569 $as_echo "$ac_cv_lib_usb_usb_open" >&6; }
13570 if test "x$ac_cv_lib_usb_usb_open" = xyes; then :
13571
13572             LIBUSB_VER=0.1
13573
13574 $as_echo "#define HAVE_LIBUSB0 /**/" >>confdefs.h
13575
13576             found_libusb0_pkg=yes
13577
13578 else
13579
13580             as_fn_error $? "*** libusb not found! (missing -dev/-devel package?) ***\n*** prefer to install libusb-1 if you can! ***" "$LINENO" 5
13581
13582 fi
13583
13584
13585 elif test $pkg_failed = untried; then
13586         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13587 $as_echo "no" >&6; }
13588
13589          # Some systems don't use pkg-config for libusb, so double check.
13590          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_open in -lusb" >&5
13591 $as_echo_n "checking for usb_open in -lusb... " >&6; }
13592 if ${ac_cv_lib_usb_usb_open+:} false; then :
13593   $as_echo_n "(cached) " >&6
13594 else
13595   ac_check_lib_save_LIBS=$LIBS
13596 LIBS="-lusb  $LIBS"
13597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13598 /* end confdefs.h.  */
13599
13600 /* Override any GCC internal prototype to avoid an error.
13601    Use char because int might match the return type of a GCC
13602    builtin and then its argument prototype would still apply.  */
13603 #ifdef __cplusplus
13604 extern "C"
13605 #endif
13606 char usb_open ();
13607 int
13608 main ()
13609 {
13610 return usb_open ();
13611   ;
13612   return 0;
13613 }
13614 _ACEOF
13615 if ac_fn_c_try_link "$LINENO"; then :
13616   ac_cv_lib_usb_usb_open=yes
13617 else
13618   ac_cv_lib_usb_usb_open=no
13619 fi
13620 rm -f core conftest.err conftest.$ac_objext \
13621     conftest$ac_exeext conftest.$ac_ext
13622 LIBS=$ac_check_lib_save_LIBS
13623 fi
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_open" >&5
13625 $as_echo "$ac_cv_lib_usb_usb_open" >&6; }
13626 if test "x$ac_cv_lib_usb_usb_open" = xyes; then :
13627
13628             LIBUSB_VER=0.1
13629
13630 $as_echo "#define HAVE_LIBUSB0 /**/" >>confdefs.h
13631
13632             found_libusb0_pkg=yes
13633
13634 else
13635
13636             as_fn_error $? "*** libusb not found! (missing -dev/-devel package?) ***\n*** prefer to install libusb-1 if you can! ***" "$LINENO" 5
13637
13638 fi
13639
13640
13641 else
13642         LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
13643         LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
13644         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13645 $as_echo "yes" >&6; }
13646
13647          LIBUSB_VER=`pkg-config --modversion libusb`
13648          LIBUSB_REQUIRES='libusb'
13649
13650 $as_echo "#define HAVE_LIBUSB0 /**/" >>confdefs.h
13651
13652          found_libusb0_pkg=yes
13653
13654 fi
13655
13656 fi
13657
13658
13659 else
13660         LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
13661         LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
13662         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13663 $as_echo "yes" >&6; }
13664
13665    LIBUSB_VER=`pkg-config --modversion libusb-1.0`
13666    LIBUSB_REQUIRES='libusb-1.0'
13667
13668 $as_echo "#define HAVE_LIBUSB1 /**/" >>confdefs.h
13669
13670    found_libusb1_pkg=yes
13671
13672 fi
13673
13674 # Optionally disable MTPZ functionality.
13675 # Check whether --enable-mtpz was given.
13676 if test "${enable_mtpz+set}" = set; then :
13677   enableval=$enable_mtpz; use_mtpz=$enableval
13678 else
13679   use_mtpz="yes"
13680 fi
13681
13682
13683 # Include MTPZ if not disabled.
13684 if test x"$use_mtpz" = "xyes" ; then
13685         # Check for libgcrypt.
13686         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgcrypt" >&5
13687 $as_echo_n "checking for libgcrypt... " >&6; }
13688         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_check_version in -lgcrypt" >&5
13689 $as_echo_n "checking for gcry_check_version in -lgcrypt... " >&6; }
13690 if ${ac_cv_lib_gcrypt_gcry_check_version+:} false; then :
13691   $as_echo_n "(cached) " >&6
13692 else
13693   ac_check_lib_save_LIBS=$LIBS
13694 LIBS="-lgcrypt  $LIBS"
13695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13696 /* end confdefs.h.  */
13697
13698 /* Override any GCC internal prototype to avoid an error.
13699    Use char because int might match the return type of a GCC
13700    builtin and then its argument prototype would still apply.  */
13701 #ifdef __cplusplus
13702 extern "C"
13703 #endif
13704 char gcry_check_version ();
13705 int
13706 main ()
13707 {
13708 return gcry_check_version ();
13709   ;
13710   return 0;
13711 }
13712 _ACEOF
13713 if ac_fn_c_try_link "$LINENO"; then :
13714   ac_cv_lib_gcrypt_gcry_check_version=yes
13715 else
13716   ac_cv_lib_gcrypt_gcry_check_version=no
13717 fi
13718 rm -f core conftest.err conftest.$ac_objext \
13719     conftest$ac_exeext conftest.$ac_ext
13720 LIBS=$ac_check_lib_save_LIBS
13721 fi
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_check_version" >&5
13723 $as_echo "$ac_cv_lib_gcrypt_gcry_check_version" >&6; }
13724 if test "x$ac_cv_lib_gcrypt_gcry_check_version" = xyes; then :
13725   cat >>confdefs.h <<_ACEOF
13726 #define HAVE_LIBGCRYPT 1
13727 _ACEOF
13728
13729   LIBS="-lgcrypt $LIBS"
13730
13731 else
13732   { $as_echo "$as_me:${as_lineno-$LINENO}: *** libgcrypt not found - disabling MTPZ support ***" >&5
13733 $as_echo "$as_me: *** libgcrypt not found - disabling MTPZ support ***" >&6;} ; use_mtpz="no"
13734 fi
13735
13736 fi
13737
13738 if test x"$use_mtpz" = "xyes" ; then
13739
13740 $as_echo "#define USE_MTPZ /**/" >>confdefs.h
13741
13742         { $as_echo "$as_me:${as_lineno-$LINENO}: MTPZ functionality enabled" >&5
13743 $as_echo "$as_me: MTPZ functionality enabled" >&6;};
13744 else
13745         { $as_echo "$as_me:${as_lineno-$LINENO}: MTPZ functionality disable" >&5
13746 $as_echo "$as_me: MTPZ functionality disable" >&6;};
13747 fi
13748
13749
13750
13751
13752
13753  if test x"$use_mtpz" = "xyes"; then
13754   MTPZ_COMPILE_TRUE=
13755   MTPZ_COMPILE_FALSE='#'
13756 else
13757   MTPZ_COMPILE_TRUE='#'
13758   MTPZ_COMPILE_FALSE=
13759 fi
13760
13761  if test x"$found_libusb1_pkg" = "xyes"; then
13762   LIBUSB1_COMPILE_TRUE=
13763   LIBUSB1_COMPILE_FALSE='#'
13764 else
13765   LIBUSB1_COMPILE_TRUE='#'
13766   LIBUSB1_COMPILE_FALSE=
13767 fi
13768
13769  if test x"$found_libusb0_pkg" = "xyes"; then
13770   LIBUSB0_COMPILE_TRUE=
13771   LIBUSB0_COMPILE_FALSE='#'
13772 else
13773   LIBUSB0_COMPILE_TRUE='#'
13774   LIBUSB0_COMPILE_FALSE=
13775 fi
13776
13777  if test x"$ac_cv_lib_openusb_openusb_init" = "xyes"; then
13778   LIBOPENUSB_COMPILE_TRUE=
13779   LIBOPENUSB_COMPILE_FALSE='#'
13780 else
13781   LIBOPENUSB_COMPILE_TRUE='#'
13782   LIBOPENUSB_COMPILE_FALSE=
13783 fi
13784
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: *** using libusb $LIBUSB_VER ***" >&5
13786 $as_echo "$as_me: *** using libusb $LIBUSB_VER ***" >&6;}
13787
13788 # Checks for header files.
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13790 $as_echo_n "checking for ANSI C header files... " >&6; }
13791 if ${ac_cv_header_stdc+:} false; then :
13792   $as_echo_n "(cached) " >&6
13793 else
13794   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13795 /* end confdefs.h.  */
13796 #include <stdlib.h>
13797 #include <stdarg.h>
13798 #include <string.h>
13799 #include <float.h>
13800
13801 int
13802 main ()
13803 {
13804
13805   ;
13806   return 0;
13807 }
13808 _ACEOF
13809 if ac_fn_c_try_compile "$LINENO"; then :
13810   ac_cv_header_stdc=yes
13811 else
13812   ac_cv_header_stdc=no
13813 fi
13814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13815
13816 if test $ac_cv_header_stdc = yes; then
13817   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13819 /* end confdefs.h.  */
13820 #include <string.h>
13821
13822 _ACEOF
13823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13824   $EGREP "memchr" >/dev/null 2>&1; then :
13825
13826 else
13827   ac_cv_header_stdc=no
13828 fi
13829 rm -f conftest*
13830
13831 fi
13832
13833 if test $ac_cv_header_stdc = yes; then
13834   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13836 /* end confdefs.h.  */
13837 #include <stdlib.h>
13838
13839 _ACEOF
13840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13841   $EGREP "free" >/dev/null 2>&1; then :
13842
13843 else
13844   ac_cv_header_stdc=no
13845 fi
13846 rm -f conftest*
13847
13848 fi
13849
13850 if test $ac_cv_header_stdc = yes; then
13851   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13852   if test "$cross_compiling" = yes; then :
13853   :
13854 else
13855   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13856 /* end confdefs.h.  */
13857 #include <ctype.h>
13858 #include <stdlib.h>
13859 #if ((' ' & 0x0FF) == 0x020)
13860 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13861 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13862 #else
13863 # define ISLOWER(c) \
13864                    (('a' <= (c) && (c) <= 'i') \
13865                      || ('j' <= (c) && (c) <= 'r') \
13866                      || ('s' <= (c) && (c) <= 'z'))
13867 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13868 #endif
13869
13870 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13871 int
13872 main ()
13873 {
13874   int i;
13875   for (i = 0; i < 256; i++)
13876     if (XOR (islower (i), ISLOWER (i))
13877         || toupper (i) != TOUPPER (i))
13878       return 2;
13879   return 0;
13880 }
13881 _ACEOF
13882 if ac_fn_c_try_run "$LINENO"; then :
13883
13884 else
13885   ac_cv_header_stdc=no
13886 fi
13887 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13888   conftest.$ac_objext conftest.beam conftest.$ac_ext
13889 fi
13890
13891 fi
13892 fi
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13894 $as_echo "$ac_cv_header_stdc" >&6; }
13895 if test $ac_cv_header_stdc = yes; then
13896
13897 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13898
13899 fi
13900
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13902 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13903 if ${ac_cv_header_time+:} false; then :
13904   $as_echo_n "(cached) " >&6
13905 else
13906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13907 /* end confdefs.h.  */
13908 #include <sys/types.h>
13909 #include <sys/time.h>
13910 #include <time.h>
13911
13912 int
13913 main ()
13914 {
13915 if ((struct tm *) 0)
13916 return 0;
13917   ;
13918   return 0;
13919 }
13920 _ACEOF
13921 if ac_fn_c_try_compile "$LINENO"; then :
13922   ac_cv_header_time=yes
13923 else
13924   ac_cv_header_time=no
13925 fi
13926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13927 fi
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13929 $as_echo "$ac_cv_header_time" >&6; }
13930 if test $ac_cv_header_time = yes; then
13931
13932 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13933
13934 fi
13935
13936 # zlib.h the day we need to decompress firmware
13937 for ac_header in ctype.h errno.h fcntl.h getopt.h libgen.h \
13938         limits.h stdio.h string.h sys/stat.h sys/time.h unistd.h \
13939         langinfo.h locale.h arpa/inet.h byteswap.h sys/uio.h
13940 do :
13941   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13942 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13943 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13944   cat >>confdefs.h <<_ACEOF
13945 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13946 _ACEOF
13947
13948 fi
13949
13950 done
13951
13952
13953 # Checks for typedefs, structures, and compiler characteristics.
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13955 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13956 if ${ac_cv_c_const+:} false; then :
13957   $as_echo_n "(cached) " >&6
13958 else
13959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13960 /* end confdefs.h.  */
13961
13962 int
13963 main ()
13964 {
13965
13966 #ifndef __cplusplus
13967   /* Ultrix mips cc rejects this sort of thing.  */
13968   typedef int charset[2];
13969   const charset cs = { 0, 0 };
13970   /* SunOS 4.1.1 cc rejects this.  */
13971   char const *const *pcpcc;
13972   char **ppc;
13973   /* NEC SVR4.0.2 mips cc rejects this.  */
13974   struct point {int x, y;};
13975   static struct point const zero = {0,0};
13976   /* AIX XL C 1.02.0.0 rejects this.
13977      It does not let you subtract one const X* pointer from another in
13978      an arm of an if-expression whose if-part is not a constant
13979      expression */
13980   const char *g = "string";
13981   pcpcc = &g + (g ? g-g : 0);
13982   /* HPUX 7.0 cc rejects these. */
13983   ++pcpcc;
13984   ppc = (char**) pcpcc;
13985   pcpcc = (char const *const *) ppc;
13986   { /* SCO 3.2v4 cc rejects this sort of thing.  */
13987     char tx;
13988     char *t = &tx;
13989     char const *s = 0 ? (char *) 0 : (char const *) 0;
13990
13991     *t++ = 0;
13992     if (s) return 0;
13993   }
13994   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13995     int x[] = {25, 17};
13996     const int *foo = &x[0];
13997     ++foo;
13998   }
13999   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14000     typedef const int *iptr;
14001     iptr p = 0;
14002     ++p;
14003   }
14004   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14005        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14006     struct s { int j; const int *ap[3]; } bx;
14007     struct s *b = &bx; b->j = 5;
14008   }
14009   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14010     const int foo = 10;
14011     if (!foo) return 0;
14012   }
14013   return !cs[0] && !zero.x;
14014 #endif
14015
14016   ;
14017   return 0;
14018 }
14019 _ACEOF
14020 if ac_fn_c_try_compile "$LINENO"; then :
14021   ac_cv_c_const=yes
14022 else
14023   ac_cv_c_const=no
14024 fi
14025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14026 fi
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14028 $as_echo "$ac_cv_c_const" >&6; }
14029 if test $ac_cv_c_const = no; then
14030
14031 $as_echo "#define const /**/" >>confdefs.h
14032
14033 fi
14034
14035 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14036 if test "x$ac_cv_type_off_t" = xyes; then :
14037
14038 else
14039
14040 cat >>confdefs.h <<_ACEOF
14041 #define off_t long int
14042 _ACEOF
14043
14044 fi
14045
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14047 $as_echo_n "checking return type of signal handlers... " >&6; }
14048 if ${ac_cv_type_signal+:} false; then :
14049   $as_echo_n "(cached) " >&6
14050 else
14051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14052 /* end confdefs.h.  */
14053 #include <sys/types.h>
14054 #include <signal.h>
14055
14056 int
14057 main ()
14058 {
14059 return *(signal (0, 0)) (0) == 1;
14060   ;
14061   return 0;
14062 }
14063 _ACEOF
14064 if ac_fn_c_try_compile "$LINENO"; then :
14065   ac_cv_type_signal=int
14066 else
14067   ac_cv_type_signal=void
14068 fi
14069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14070 fi
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14072 $as_echo "$ac_cv_type_signal" >&6; }
14073
14074 cat >>confdefs.h <<_ACEOF
14075 #define RETSIGTYPE $ac_cv_type_signal
14076 _ACEOF
14077
14078
14079 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14080 if test "x$ac_cv_type_size_t" = xyes; then :
14081
14082 else
14083
14084 cat >>confdefs.h <<_ACEOF
14085 #define size_t unsigned int
14086 _ACEOF
14087
14088 fi
14089
14090 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
14091 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
14092
14093 cat >>confdefs.h <<_ACEOF
14094 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
14095 _ACEOF
14096
14097
14098 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
14099
14100 fi
14101
14102
14103
14104 # Checks for library functions.
14105 for ac_header in stdlib.h
14106 do :
14107   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
14108 if test "x$ac_cv_header_stdlib_h" = xyes; then :
14109   cat >>confdefs.h <<_ACEOF
14110 #define HAVE_STDLIB_H 1
14111 _ACEOF
14112
14113 fi
14114
14115 done
14116
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
14118 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
14119 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
14120   $as_echo_n "(cached) " >&6
14121 else
14122   if test "$cross_compiling" = yes; then :
14123   ac_cv_func_malloc_0_nonnull=no
14124 else
14125   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14126 /* end confdefs.h.  */
14127 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
14128 # include <stdlib.h>
14129 #else
14130 char *malloc ();
14131 #endif
14132
14133 int
14134 main ()
14135 {
14136 return ! malloc (0);
14137   ;
14138   return 0;
14139 }
14140 _ACEOF
14141 if ac_fn_c_try_run "$LINENO"; then :
14142   ac_cv_func_malloc_0_nonnull=yes
14143 else
14144   ac_cv_func_malloc_0_nonnull=no
14145 fi
14146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14147   conftest.$ac_objext conftest.beam conftest.$ac_ext
14148 fi
14149
14150 fi
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
14152 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
14153 if test $ac_cv_func_malloc_0_nonnull = yes; then :
14154
14155 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
14156
14157 else
14158   $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
14159
14160    case " $LIBOBJS " in
14161   *" malloc.$ac_objext "* ) ;;
14162   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
14163  ;;
14164 esac
14165
14166
14167 $as_echo "#define malloc rpl_malloc" >>confdefs.h
14168
14169 fi
14170
14171
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
14173 $as_echo_n "checking for working memcmp... " >&6; }
14174 if ${ac_cv_func_memcmp_working+:} false; then :
14175   $as_echo_n "(cached) " >&6
14176 else
14177   if test "$cross_compiling" = yes; then :
14178   ac_cv_func_memcmp_working=no
14179 else
14180   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14181 /* end confdefs.h.  */
14182 $ac_includes_default
14183 int
14184 main ()
14185 {
14186
14187   /* Some versions of memcmp are not 8-bit clean.  */
14188   char c0 = '\100', c1 = '\200', c2 = '\201';
14189   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
14190     return 1;
14191
14192   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
14193      or more and with at least one buffer not starting on a 4-byte boundary.
14194      William Lewis provided this test program.   */
14195   {
14196     char foo[21];
14197     char bar[21];
14198     int i;
14199     for (i = 0; i < 4; i++)
14200       {
14201         char *a = foo + i;
14202         char *b = bar + i;
14203         strcpy (a, "--------01111111");
14204         strcpy (b, "--------10000000");
14205         if (memcmp (a, b, 16) >= 0)
14206           return 1;
14207       }
14208     return 0;
14209   }
14210
14211   ;
14212   return 0;
14213 }
14214 _ACEOF
14215 if ac_fn_c_try_run "$LINENO"; then :
14216   ac_cv_func_memcmp_working=yes
14217 else
14218   ac_cv_func_memcmp_working=no
14219 fi
14220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14221   conftest.$ac_objext conftest.beam conftest.$ac_ext
14222 fi
14223
14224 fi
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
14226 $as_echo "$ac_cv_func_memcmp_working" >&6; }
14227 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
14228   *" memcmp.$ac_objext "* ) ;;
14229   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14230  ;;
14231 esac
14232
14233
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
14235 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
14236 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
14237   $as_echo_n "(cached) " >&6
14238 else
14239   rm -f conftest.sym conftest.file
14240 echo >conftest.file
14241 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
14242   if test "$cross_compiling" = yes; then :
14243   ac_cv_func_lstat_dereferences_slashed_symlink=no
14244 else
14245   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14246 /* end confdefs.h.  */
14247 $ac_includes_default
14248 int
14249 main ()
14250 {
14251 struct stat sbuf;
14252      /* Linux will dereference the symlink and fail, as required by POSIX.
14253         That is better in the sense that it means we will not
14254         have to compile and use the lstat wrapper.  */
14255      return lstat ("conftest.sym/", &sbuf) == 0;
14256   ;
14257   return 0;
14258 }
14259 _ACEOF
14260 if ac_fn_c_try_run "$LINENO"; then :
14261   ac_cv_func_lstat_dereferences_slashed_symlink=yes
14262 else
14263   ac_cv_func_lstat_dereferences_slashed_symlink=no
14264 fi
14265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14266   conftest.$ac_objext conftest.beam conftest.$ac_ext
14267 fi
14268
14269 else
14270   # If the `ln -s' command failed, then we probably don't even
14271   # have an lstat function.
14272   ac_cv_func_lstat_dereferences_slashed_symlink=no
14273 fi
14274 rm -f conftest.sym conftest.file
14275
14276 fi
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
14278 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
14279
14280 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
14281
14282 cat >>confdefs.h <<_ACEOF
14283 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
14284 _ACEOF
14285
14286
14287 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
14288   case " $LIBOBJS " in
14289   *" lstat.$ac_objext "* ) ;;
14290   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
14291  ;;
14292 esac
14293
14294 fi
14295
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
14297 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
14298 if ${ac_cv_func_stat_empty_string_bug+:} false; then :
14299   $as_echo_n "(cached) " >&6
14300 else
14301   if test "$cross_compiling" = yes; then :
14302   ac_cv_func_stat_empty_string_bug=yes
14303 else
14304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14305 /* end confdefs.h.  */
14306 $ac_includes_default
14307 int
14308 main ()
14309 {
14310 struct stat sbuf;
14311   return stat ("", &sbuf) == 0;
14312   ;
14313   return 0;
14314 }
14315 _ACEOF
14316 if ac_fn_c_try_run "$LINENO"; then :
14317   ac_cv_func_stat_empty_string_bug=no
14318 else
14319   ac_cv_func_stat_empty_string_bug=yes
14320 fi
14321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14322   conftest.$ac_objext conftest.beam conftest.$ac_ext
14323 fi
14324
14325 fi
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
14327 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
14328 if test $ac_cv_func_stat_empty_string_bug = yes; then
14329   case " $LIBOBJS " in
14330   *" stat.$ac_objext "* ) ;;
14331   *) LIBOBJS="$LIBOBJS stat.$ac_objext"
14332  ;;
14333 esac
14334
14335
14336 cat >>confdefs.h <<_ACEOF
14337 #define HAVE_STAT_EMPTY_STRING_BUG 1
14338 _ACEOF
14339
14340 fi
14341
14342 for ac_func in basename memset select strdup strerror strndup strrchr strtoul usleep mkstemp
14343 do :
14344   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14345 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14346 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14347   cat >>confdefs.h <<_ACEOF
14348 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14349 _ACEOF
14350
14351 fi
14352 done
14353
14354
14355 # Switches.
14356 # Enable LFS (Large File Support)
14357 # Check whether --enable-largefile was given.
14358 if test "${enable_largefile+set}" = set; then :
14359   enableval=$enable_largefile;
14360 fi
14361
14362 if test "$enable_largefile" != no; then
14363
14364   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14365 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14366 if ${ac_cv_sys_largefile_CC+:} false; then :
14367   $as_echo_n "(cached) " >&6
14368 else
14369   ac_cv_sys_largefile_CC=no
14370      if test "$GCC" != yes; then
14371        ac_save_CC=$CC
14372        while :; do
14373          # IRIX 6.2 and later do not support large files by default,
14374          # so use the C compiler's -n32 option if that helps.
14375          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14376 /* end confdefs.h.  */
14377 #include <sys/types.h>
14378  /* Check that off_t can represent 2**63 - 1 correctly.
14379     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14380     since some C++ compilers masquerading as C compilers
14381     incorrectly reject 9223372036854775807.  */
14382 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14383   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14384                        && LARGE_OFF_T % 2147483647 == 1)
14385                       ? 1 : -1];
14386 int
14387 main ()
14388 {
14389
14390   ;
14391   return 0;
14392 }
14393 _ACEOF
14394          if ac_fn_c_try_compile "$LINENO"; then :
14395   break
14396 fi
14397 rm -f core conftest.err conftest.$ac_objext
14398          CC="$CC -n32"
14399          if ac_fn_c_try_compile "$LINENO"; then :
14400   ac_cv_sys_largefile_CC=' -n32'; break
14401 fi
14402 rm -f core conftest.err conftest.$ac_objext
14403          break
14404        done
14405        CC=$ac_save_CC
14406        rm -f conftest.$ac_ext
14407     fi
14408 fi
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14410 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
14411   if test "$ac_cv_sys_largefile_CC" != no; then
14412     CC=$CC$ac_cv_sys_largefile_CC
14413   fi
14414
14415   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14416 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14417 if ${ac_cv_sys_file_offset_bits+:} false; then :
14418   $as_echo_n "(cached) " >&6
14419 else
14420   while :; do
14421   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14422 /* end confdefs.h.  */
14423 #include <sys/types.h>
14424  /* Check that off_t can represent 2**63 - 1 correctly.
14425     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14426     since some C++ compilers masquerading as C compilers
14427     incorrectly reject 9223372036854775807.  */
14428 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14429   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14430                        && LARGE_OFF_T % 2147483647 == 1)
14431                       ? 1 : -1];
14432 int
14433 main ()
14434 {
14435
14436   ;
14437   return 0;
14438 }
14439 _ACEOF
14440 if ac_fn_c_try_compile "$LINENO"; then :
14441   ac_cv_sys_file_offset_bits=no; break
14442 fi
14443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14444   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14445 /* end confdefs.h.  */
14446 #define _FILE_OFFSET_BITS 64
14447 #include <sys/types.h>
14448  /* Check that off_t can represent 2**63 - 1 correctly.
14449     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14450     since some C++ compilers masquerading as C compilers
14451     incorrectly reject 9223372036854775807.  */
14452 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14453   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14454                        && LARGE_OFF_T % 2147483647 == 1)
14455                       ? 1 : -1];
14456 int
14457 main ()
14458 {
14459
14460   ;
14461   return 0;
14462 }
14463 _ACEOF
14464 if ac_fn_c_try_compile "$LINENO"; then :
14465   ac_cv_sys_file_offset_bits=64; break
14466 fi
14467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14468   ac_cv_sys_file_offset_bits=unknown
14469   break
14470 done
14471 fi
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14473 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14474 case $ac_cv_sys_file_offset_bits in #(
14475   no | unknown) ;;
14476   *)
14477 cat >>confdefs.h <<_ACEOF
14478 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14479 _ACEOF
14480 ;;
14481 esac
14482 rm -rf conftest*
14483   if test $ac_cv_sys_file_offset_bits = unknown; then
14484     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14485 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14486 if ${ac_cv_sys_large_files+:} false; then :
14487   $as_echo_n "(cached) " >&6
14488 else
14489   while :; do
14490   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14491 /* end confdefs.h.  */
14492 #include <sys/types.h>
14493  /* Check that off_t can represent 2**63 - 1 correctly.
14494     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14495     since some C++ compilers masquerading as C compilers
14496     incorrectly reject 9223372036854775807.  */
14497 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14498   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14499                        && LARGE_OFF_T % 2147483647 == 1)
14500                       ? 1 : -1];
14501 int
14502 main ()
14503 {
14504
14505   ;
14506   return 0;
14507 }
14508 _ACEOF
14509 if ac_fn_c_try_compile "$LINENO"; then :
14510   ac_cv_sys_large_files=no; break
14511 fi
14512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14513   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14514 /* end confdefs.h.  */
14515 #define _LARGE_FILES 1
14516 #include <sys/types.h>
14517  /* Check that off_t can represent 2**63 - 1 correctly.
14518     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14519     since some C++ compilers masquerading as C compilers
14520     incorrectly reject 9223372036854775807.  */
14521 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14522   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14523                        && LARGE_OFF_T % 2147483647 == 1)
14524                       ? 1 : -1];
14525 int
14526 main ()
14527 {
14528
14529   ;
14530   return 0;
14531 }
14532 _ACEOF
14533 if ac_fn_c_try_compile "$LINENO"; then :
14534   ac_cv_sys_large_files=1; break
14535 fi
14536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14537   ac_cv_sys_large_files=unknown
14538   break
14539 done
14540 fi
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14542 $as_echo "$ac_cv_sys_large_files" >&6; }
14543 case $ac_cv_sys_large_files in #(
14544   no | unknown) ;;
14545   *)
14546 cat >>confdefs.h <<_ACEOF
14547 #define _LARGE_FILES $ac_cv_sys_large_files
14548 _ACEOF
14549 ;;
14550 esac
14551 rm -rf conftest*
14552   fi
14553
14554
14555 fi
14556
14557 # Stick in "-Werror" if you want to be more aggressive.
14558 # (No need to use AC_SUBST on this default substituted environment variable.)
14559 # Only add these additional CFLAGS if we are using GCC. Other C compilers may
14560 # not support them.
14561 if test x"$GCC" == "xyes" ; then
14562         CFLAGS="$CFLAGS -Wall -Wmissing-prototypes"
14563 fi
14564
14565 # Output files
14566
14567 # Create a stdint.h-like file containing size-specific integer definitions
14568 # that will always be available. The <stdint.h> file is required by the
14569 # library, but we provide this anyway because the libptp2 stuff wants this
14570 # file.
14571
14572 ac_dir=`$as_dirname -- "src/_stdint.h" ||
14573 $as_expr X"src/_stdint.h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14574          X"src/_stdint.h" : 'X\(//\)[^/]' \| \
14575          X"src/_stdint.h" : 'X\(//\)$' \| \
14576          X"src/_stdint.h" : 'X\(/\)' \| . 2>/dev/null ||
14577 $as_echo X"src/_stdint.h" |
14578     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14579             s//\1/
14580             q
14581           }
14582           /^X\(\/\/\)[^/].*/{
14583             s//\1/
14584             q
14585           }
14586           /^X\(\/\/\)$/{
14587             s//\1/
14588             q
14589           }
14590           /^X\(\/\).*/{
14591             s//\1/
14592             q
14593           }
14594           s/.*/./; q'`
14595 if test "$ac_dir" != "src/_stdint.h" && test "$ac_dir" != .; then
14596   # The file is in a subdirectory.
14597   test ! -d "$ac_dir" && (as_dir="$ac_dir"; as_fn_mkdir_p)
14598 fi
14599
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t in stdint.h" >&5
14601 $as_echo_n "checking for uint8_t in stdint.h... " >&6; }
14602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14603 /* end confdefs.h.  */
14604 #include <stdint.h>
14605 _ACEOF
14606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14607   $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
14608   ac_cv_type_uint8_t=yes
14609 else
14610   ac_cv_type_uint8_t=no
14611 fi
14612 rm -f conftest*
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
14614 $as_echo "$ac_cv_type_uint8_t" >&6; }
14615 if test $ac_cv_type_uint8_t = yes; then
14616
14617 cat > "src/_stdint.h" <<EOF
14618 /* This file is generated automatically by configure */
14619 #include <stdint.h>
14620 EOF
14621 else
14622   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t in inttypes.h" >&5
14623 $as_echo_n "checking for uint8_t in inttypes.h... " >&6; }
14624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14625 /* end confdefs.h.  */
14626 #include <inttypes.h>
14627 _ACEOF
14628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14629   $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
14630   ac_cv_type_uint8_t=yes
14631 else
14632   ac_cv_type_uint8_t=no
14633 fi
14634 rm -f conftest*
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
14636 $as_echo "$ac_cv_type_uint8_t" >&6; }
14637 if test $ac_cv_type_uint8_t = yes; then
14638   cat > "src/_stdint.h" <<EOF
14639 /* This file is generated automatically by configure */
14640 #include <inttypes.h>
14641 EOF
14642 else
14643   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t in sys/types.h" >&5
14644 $as_echo_n "checking for uint8_t in sys/types.h... " >&6; }
14645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14646 /* end confdefs.h.  */
14647 #include <sys/types.h>
14648 _ACEOF
14649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14650   $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
14651   ac_cv_type_uint8_t=yes
14652 else
14653   ac_cv_type_uint8_t=no
14654 fi
14655 rm -f conftest*
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
14657 $as_echo "$ac_cv_type_uint8_t" >&6; }
14658 if test $ac_cv_type_uint8_t = yes; then
14659   cat > "src/_stdint.h" <<EOF
14660 /* This file is generated automatically by configure */
14661 #include <sys/types.h>
14662 EOF
14663 else
14664   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int8_t in sys/types.h" >&5
14665 $as_echo_n "checking for u_int8_t in sys/types.h... " >&6; }
14666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14667 /* end confdefs.h.  */
14668 #include <sys/types.h>
14669 _ACEOF
14670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14671   $EGREP "(^|[^a-zA-Z_0-9])u_int8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
14672   ac_cv_type_u_int8_t=yes
14673 else
14674   ac_cv_type_u_int8_t=no
14675 fi
14676 rm -f conftest*
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_u_int8_t" >&5
14678 $as_echo "$ac_cv_type_u_int8_t" >&6; }
14679 if test $ac_cv_type_u_int8_t = yes; then
14680   cat > "src/_stdint.h" <<EOF
14681 /* This file is generated automatically by configure */
14682 #ifndef __STDINT_H
14683 #define __STDINT_H
14684 #include <sys/types.h>
14685 typedef u_int8_t uint8_t;
14686 typedef u_int16_t uint16_t;
14687 typedef u_int32_t uint32_t;
14688 EOF
14689
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t in sys/types.h" >&5
14691 $as_echo_n "checking for u_int64_t in sys/types.h... " >&6; }
14692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14693 /* end confdefs.h.  */
14694 #include <sys/types.h>
14695 _ACEOF
14696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14697   $EGREP "(^|[^a-zA-Z_0-9])u_int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
14698   ac_cv_type_u_int64_t=yes
14699 else
14700   ac_cv_type_u_int64_t=no
14701 fi
14702 rm -f conftest*
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_u_int64_t" >&5
14704 $as_echo "$ac_cv_type_u_int64_t" >&6; }
14705 if test $ac_cv_type_u_int64_t = yes; then
14706   cat >> "src/_stdint.h" <<EOF
14707 typedef u_int64_t uint64_t;
14708 #endif /*!__STDINT_H*/
14709 EOF
14710 else
14711   cat >> "src/_stdint.h" <<EOF
14712 /* 64-bit types are not available on this system */
14713 /* typedef u_int64_t uint64_t; */
14714 #endif /*!__STDINT_H*/
14715 EOF
14716 fi
14717
14718
14719
14720 else
14721   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I can't find size-specific integer definitions on this system" >&5
14722 $as_echo "$as_me: WARNING: I can't find size-specific integer definitions on this system" >&2;}
14723 if test -e "src/_stdint.h" ; then
14724         rm -f "src/_stdint.h"
14725 fi
14726
14727 fi
14728
14729 fi
14730
14731 fi
14732
14733 fi
14734
14735
14736 # Create a header file containing NetBSD-style byte swapping macros.
14737 # This m4 macros has caused severe pain, I am considering creating a
14738 # hard-coded byte swapper that will be eternally portable.
14739
14740 ac_dir=`$as_dirname -- "src/gphoto2-endian.h" ||
14741 $as_expr X"src/gphoto2-endian.h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14742          X"src/gphoto2-endian.h" : 'X\(//\)[^/]' \| \
14743          X"src/gphoto2-endian.h" : 'X\(//\)$' \| \
14744          X"src/gphoto2-endian.h" : 'X\(/\)' \| . 2>/dev/null ||
14745 $as_echo X"src/gphoto2-endian.h" |
14746     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14747             s//\1/
14748             q
14749           }
14750           /^X\(\/\/\)[^/].*/{
14751             s//\1/
14752             q
14753           }
14754           /^X\(\/\/\)$/{
14755             s//\1/
14756             q
14757           }
14758           /^X\(\/\).*/{
14759             s//\1/
14760             q
14761           }
14762           s/.*/./; q'`
14763 if test "$ac_dir" != "src/gphoto2-endian.h" && test "$ac_dir" != .; then
14764   # The file is in a subdirectory.
14765   test ! -d "$ac_dir" && (as_dir="$ac_dir"; as_fn_mkdir_p)
14766 fi
14767
14768 # We're only interested in the target CPU, but it's not always set
14769 effective_target="$target"
14770 if test "x$effective_target" = xNONE -o "x$effective_target" = x ; then
14771         effective_target="$host"
14772 fi
14773
14774
14775 cat > "src/gphoto2-endian.h" << EOF
14776 /* This file is generated automatically by configure */
14777 /* It is valid only for the system type ${effective_target} */
14778
14779 #ifndef __BYTEORDER_H
14780 #define __BYTEORDER_H
14781
14782 EOF
14783
14784  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14785 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14786 if ${ac_cv_c_bigendian+:} false; then :
14787   $as_echo_n "(cached) " >&6
14788 else
14789   ac_cv_c_bigendian=unknown
14790     # See if we're dealing with a universal compiler.
14791     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14792 /* end confdefs.h.  */
14793 #ifndef __APPLE_CC__
14794                not a universal capable compiler
14795              #endif
14796              typedef int dummy;
14797
14798 _ACEOF
14799 if ac_fn_c_try_compile "$LINENO"; then :
14800
14801         # Check for potential -arch flags.  It is not universal unless
14802         # there are at least two -arch flags with different values.
14803         ac_arch=
14804         ac_prev=
14805         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14806          if test -n "$ac_prev"; then
14807            case $ac_word in
14808              i?86 | x86_64 | ppc | ppc64)
14809                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14810                  ac_arch=$ac_word
14811                else
14812                  ac_cv_c_bigendian=universal
14813                  break
14814                fi
14815                ;;
14816            esac
14817            ac_prev=
14818          elif test "x$ac_word" = "x-arch"; then
14819            ac_prev=arch
14820          fi
14821        done
14822 fi
14823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14824     if test $ac_cv_c_bigendian = unknown; then
14825       # See if sys/param.h defines the BYTE_ORDER macro.
14826       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14827 /* end confdefs.h.  */
14828 #include <sys/types.h>
14829              #include <sys/param.h>
14830
14831 int
14832 main ()
14833 {
14834 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14835                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14836                      && LITTLE_ENDIAN)
14837               bogus endian macros
14838              #endif
14839
14840   ;
14841   return 0;
14842 }
14843 _ACEOF
14844 if ac_fn_c_try_compile "$LINENO"; then :
14845   # It does; now see whether it defined to BIG_ENDIAN or not.
14846          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14847 /* end confdefs.h.  */
14848 #include <sys/types.h>
14849                 #include <sys/param.h>
14850
14851 int
14852 main ()
14853 {
14854 #if BYTE_ORDER != BIG_ENDIAN
14855                  not big endian
14856                 #endif
14857
14858   ;
14859   return 0;
14860 }
14861 _ACEOF
14862 if ac_fn_c_try_compile "$LINENO"; then :
14863   ac_cv_c_bigendian=yes
14864 else
14865   ac_cv_c_bigendian=no
14866 fi
14867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14868 fi
14869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14870     fi
14871     if test $ac_cv_c_bigendian = unknown; then
14872       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14873       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14874 /* end confdefs.h.  */
14875 #include <limits.h>
14876
14877 int
14878 main ()
14879 {
14880 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14881               bogus endian macros
14882              #endif
14883
14884   ;
14885   return 0;
14886 }
14887 _ACEOF
14888 if ac_fn_c_try_compile "$LINENO"; then :
14889   # It does; now see whether it defined to _BIG_ENDIAN or not.
14890          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14891 /* end confdefs.h.  */
14892 #include <limits.h>
14893
14894 int
14895 main ()
14896 {
14897 #ifndef _BIG_ENDIAN
14898                  not big endian
14899                 #endif
14900
14901   ;
14902   return 0;
14903 }
14904 _ACEOF
14905 if ac_fn_c_try_compile "$LINENO"; then :
14906   ac_cv_c_bigendian=yes
14907 else
14908   ac_cv_c_bigendian=no
14909 fi
14910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14911 fi
14912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14913     fi
14914     if test $ac_cv_c_bigendian = unknown; then
14915       # Compile a test program.
14916       if test "$cross_compiling" = yes; then :
14917   # Try to guess by grepping values from an object file.
14918          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14919 /* end confdefs.h.  */
14920 short int ascii_mm[] =
14921                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14922                 short int ascii_ii[] =
14923                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14924                 int use_ascii (int i) {
14925                   return ascii_mm[i] + ascii_ii[i];
14926                 }
14927                 short int ebcdic_ii[] =
14928                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14929                 short int ebcdic_mm[] =
14930                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14931                 int use_ebcdic (int i) {
14932                   return ebcdic_mm[i] + ebcdic_ii[i];
14933                 }
14934                 extern int foo;
14935
14936 int
14937 main ()
14938 {
14939 return use_ascii (foo) == use_ebcdic (foo);
14940   ;
14941   return 0;
14942 }
14943 _ACEOF
14944 if ac_fn_c_try_compile "$LINENO"; then :
14945   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14946               ac_cv_c_bigendian=yes
14947             fi
14948             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14949               if test "$ac_cv_c_bigendian" = unknown; then
14950                 ac_cv_c_bigendian=no
14951               else
14952                 # finding both strings is unlikely to happen, but who knows?
14953                 ac_cv_c_bigendian=unknown
14954               fi
14955             fi
14956 fi
14957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14958 else
14959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14960 /* end confdefs.h.  */
14961 $ac_includes_default
14962 int
14963 main ()
14964 {
14965
14966              /* Are we little or big endian?  From Harbison&Steele.  */
14967              union
14968              {
14969                long int l;
14970                char c[sizeof (long int)];
14971              } u;
14972              u.l = 1;
14973              return u.c[sizeof (long int) - 1] == 1;
14974
14975   ;
14976   return 0;
14977 }
14978 _ACEOF
14979 if ac_fn_c_try_run "$LINENO"; then :
14980   ac_cv_c_bigendian=no
14981 else
14982   ac_cv_c_bigendian=yes
14983 fi
14984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14985   conftest.$ac_objext conftest.beam conftest.$ac_ext
14986 fi
14987
14988     fi
14989 fi
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14991 $as_echo "$ac_cv_c_bigendian" >&6; }
14992  case $ac_cv_c_bigendian in #(
14993    yes)
14994      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14995 ;; #(
14996    no)
14997       ;; #(
14998    universal)
14999
15000 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15001
15002      ;; #(
15003    *)
15004      as_fn_error $? "unknown endianness
15005  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15006  esac
15007
15008
15009
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for le32toh in machine/endian.h" >&5
15011 $as_echo_n "checking for le32toh in machine/endian.h... " >&6; }
15012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15013 /* end confdefs.h.  */
15014
15015 #include <machine/endian.h>
15016 #ifdef le32toh
15017         symbol is present
15018 #endif
15019
15020 _ACEOF
15021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15022   $EGREP "symbol is present|\<le32toh\>" >/dev/null 2>&1; then :
15023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15024 $as_echo "yes" >&6; }
15025 HAVE_LE32TOH=1
15026  cat >> "src/gphoto2-endian.h" << EOF
15027 /* extended byte swapping macros are already available */
15028 #include <machine/endian.h>
15029
15030 EOF
15031
15032 else
15033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15034 $as_echo "no" >&6; }
15035
15036
15037
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ntohl in arpa/inet.h" >&5
15039 $as_echo_n "checking for ntohl in arpa/inet.h... " >&6; }
15040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15041 /* end confdefs.h.  */
15042
15043 #include <arpa/inet.h>
15044 #ifdef ntohl
15045         symbol is present
15046 #endif
15047
15048 _ACEOF
15049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15050   $EGREP "symbol is present|\<ntohl\>" >/dev/null 2>&1; then :
15051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15052 $as_echo "yes" >&6; }
15053 cat >> "src/gphoto2-endian.h" << EOF
15054 /* ntohl and relatives live here */
15055 #include <arpa/inet.h>
15056
15057 EOF
15058
15059 else
15060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15061 $as_echo "no" >&6; }
15062
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ntohl in netinet/in.h" >&5
15064 $as_echo_n "checking for ntohl in netinet/in.h... " >&6; }
15065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15066 /* end confdefs.h.  */
15067
15068 #include <netinet/in.h>
15069 #ifdef ntohl
15070         symbol is present
15071 #endif
15072
15073 _ACEOF
15074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15075   $EGREP "symbol is present|\<ntohl\>" >/dev/null 2>&1; then :
15076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15077 $as_echo "yes" >&6; }
15078 cat >> "src/gphoto2-endian.h" << EOF
15079 /* ntohl and relatives live here */
15080 #include <netinet/in.h>
15081
15082 EOF
15083
15084 else
15085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15086 $as_echo "no" >&6; }
15087 true
15088
15089 fi
15090 rm -f conftest*
15091
15092
15093 fi
15094 rm -f conftest*
15095
15096
15097
15098 fi
15099 rm -f conftest*
15100
15101
15102
15103
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for swap32 in machine/endian.h" >&5
15105 $as_echo_n "checking for swap32 in machine/endian.h... " >&6; }
15106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15107 /* end confdefs.h.  */
15108
15109 #include <machine/endian.h>
15110 #ifdef swap32
15111         symbol is present
15112 #endif
15113
15114 _ACEOF
15115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15116   $EGREP "symbol is present|\<swap32\>" >/dev/null 2>&1; then :
15117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15118 $as_echo "yes" >&6; }
15119 cat >> "src/gphoto2-endian.h" << EOF
15120 /* swap32 and swap16 are defined in machine/endian.h */
15121
15122 EOF
15123
15124 else
15125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15126 $as_echo "no" >&6; }
15127
15128
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap_32 in byteswap.h" >&5
15130 $as_echo_n "checking for bswap_32 in byteswap.h... " >&6; }
15131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15132 /* end confdefs.h.  */
15133
15134 #include <byteswap.h>
15135 #ifdef bswap_32
15136         symbol is present
15137 #endif
15138
15139 _ACEOF
15140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15141   $EGREP "symbol is present|\<bswap_32\>" >/dev/null 2>&1; then :
15142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15143 $as_echo "yes" >&6; }
15144 cat >> "src/gphoto2-endian.h" << EOF
15145 /* Define generic byte swapping functions */
15146 #include <byteswap.h>
15147 #define swap16(x) bswap_16(x)
15148 #define swap32(x) bswap_32(x)
15149 #define swap64(x) bswap_64(x)
15150
15151 EOF
15152
15153 else
15154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15155 $as_echo "no" >&6; }
15156
15157
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap32 in machine/endian.h" >&5
15159 $as_echo_n "checking for bswap32 in machine/endian.h... " >&6; }
15160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15161 /* end confdefs.h.  */
15162
15163 #include <machine/endian.h>
15164 #ifdef bswap32
15165         symbol is present
15166 #endif
15167
15168 _ACEOF
15169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15170   $EGREP "symbol is present|\<bswap32\>" >/dev/null 2>&1; then :
15171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15172 $as_echo "yes" >&6; }
15173          cat >> "src/gphoto2-endian.h" << EOF
15174 /* Define generic byte swapping functions */
15175 EOF
15176         if test "$HAVE_LE32TOH" != "1"; then
15177                 echo '#include <machine/endian.h>'>> "src/gphoto2-endian.h"
15178         fi
15179 cat >> "src/gphoto2-endian.h" << EOF
15180 #define swap16(x) bswap16(x)
15181 #define swap32(x) bswap32(x)
15182 #define swap64(x) bswap64(x)
15183
15184 EOF
15185
15186 else
15187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15188 $as_echo "no" >&6; }
15189
15190
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __byte_swap_long in sys/types.h" >&5
15192 $as_echo_n "checking for __byte_swap_long in sys/types.h... " >&6; }
15193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15194 /* end confdefs.h.  */
15195
15196 #include <sys/types.h>
15197 #ifdef __byte_swap_long
15198         symbol is present
15199 #endif
15200
15201 _ACEOF
15202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15203   $EGREP "symbol is present|\<__byte_swap_long\>" >/dev/null 2>&1; then :
15204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15205 $as_echo "yes" >&6; }
15206 cat >> "src/gphoto2-endian.h" << EOF
15207 /* Define generic byte swapping functions */
15208 #include <sys/types.h>
15209 #define swap16(x) __byte_swap_word(x)
15210 #define swap32(x) __byte_swap_long(x)
15211 /* No optimized 64 bit byte swapping macro is available */
15212 #define swap64(x) ((uint64_t)(((uint64_t)(x) << 56) & 0xff00000000000000ULL | \\
15213                               ((uint64_t)(x) << 40) & 0x00ff000000000000ULL | \\
15214                               ((uint64_t)(x) << 24) & 0x0000ff0000000000ULL | \\
15215                               ((uint64_t)(x) << 8)  & 0x000000ff00000000ULL | \\
15216                               ((x) >> 8)  & 0x00000000ff000000ULL | \\
15217                               ((x) >> 24) & 0x0000000000ff0000ULL | \\
15218                               ((x) >> 40) & 0x000000000000ff00ULL | \\
15219                               ((x) >> 56) & 0x00000000000000ffULL))
15220
15221 EOF
15222
15223 else
15224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15225 $as_echo "no" >&6; }
15226
15227
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NXSwapLong in machine/byte_order.h" >&5
15229 $as_echo_n "checking for NXSwapLong in machine/byte_order.h... " >&6; }
15230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15231 /* end confdefs.h.  */
15232
15233 #include <machine/byte_order.h>
15234 #ifdef NXSwapLong
15235         symbol is present
15236 #endif
15237
15238 _ACEOF
15239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15240   $EGREP "symbol is present|\<NXSwapLong\>" >/dev/null 2>&1; then :
15241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15242 $as_echo "yes" >&6; }
15243 cat >> "src/gphoto2-endian.h" << EOF
15244 /* Define generic byte swapping functions */
15245 #include <machine/byte_order.h>
15246 #define swap16(x) NXSwapShort(x)
15247 #define swap32(x) NXSwapLong(x)
15248 #define swap64(x) NXSwapLongLong(x)
15249
15250 EOF
15251
15252 else
15253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15254 $as_echo "no" >&6; }
15255
15256         if test $ac_cv_c_bigendian = yes; then
15257                 cat >> "src/gphoto2-endian.h" << EOF
15258 /* No other byte swapping functions are available on this big-endian system */
15259 #define swap16(x)       ((uint16_t)(((x) << 8) | ((uint16_t)(x) >> 8)))
15260 #define swap32(x)       ((uint32_t)(((uint32_t)(x) << 24) & 0xff000000UL | \\
15261                                     ((uint32_t)(x) << 8)  & 0x00ff0000UL | \\
15262                                     ((x) >> 8)  & 0x0000ff00UL | \\
15263                                     ((x) >> 24) & 0x000000ffUL))
15264 #define swap64(x) ((uint64_t)(((uint64_t)(x) << 56) & 0xff00000000000000ULL | \\
15265                               ((uint64_t)(x) << 40) & 0x00ff000000000000ULL | \\
15266                               ((uint64_t)(x) << 24) & 0x0000ff0000000000ULL | \\
15267                               ((uint64_t)(x) << 8)  & 0x000000ff00000000ULL | \\
15268                               ((x) >> 8)  & 0x00000000ff000000ULL | \\
15269                               ((x) >> 24) & 0x0000000000ff0000ULL | \\
15270                               ((x) >> 40) & 0x000000000000ff00ULL | \\
15271                               ((x) >> 56) & 0x00000000000000ffULL))
15272
15273 EOF
15274         else
15275  cat >> "src/gphoto2-endian.h" << EOF
15276 /* Use these as generic byteswapping macros on this little endian system */
15277 #define swap16(x)               ntohs(x)
15278 #define swap32(x)               ntohl(x)
15279 /* No optimized 64 bit byte swapping macro is available */
15280 #define swap64(x) ((uint64_t)(((uint64_t)(x) << 56) & 0xff00000000000000ULL | \\
15281                               ((uint64_t)(x) << 40) & 0x00ff000000000000ULL | \\
15282                               ((uint64_t)(x) << 24) & 0x0000ff0000000000ULL | \\
15283                               ((uint64_t)(x) << 8)  & 0x000000ff00000000ULL | \\
15284                               ((x) >> 8)  & 0x00000000ff000000ULL | \\
15285                               ((x) >> 24) & 0x0000000000ff0000ULL | \\
15286                               ((x) >> 40) & 0x000000000000ff00ULL | \\
15287                               ((x) >> 56) & 0x00000000000000ffULL))
15288
15289 EOF
15290         fi
15291
15292
15293 fi
15294 rm -f conftest*
15295
15296
15297
15298 fi
15299 rm -f conftest*
15300
15301
15302
15303 fi
15304 rm -f conftest*
15305
15306
15307
15308 fi
15309 rm -f conftest*
15310
15311
15312
15313 fi
15314 rm -f conftest*
15315
15316
15317
15318
15319 if test "$HAVE_LE32TOH" != "1"; then
15320  cat >> "src/gphoto2-endian.h" << EOF
15321 /* The byte swapping macros have the form: */
15322 /*   EENN[a]toh or htoEENN[a] where EE is be (big endian) or */
15323 /* le (little-endian), NN is 16 or 32 (number of bits) and a, */
15324 /* if present, indicates that the endian side is a pointer to an */
15325 /* array of uint8_t bytes instead of an integer of the specified length. */
15326 /* h refers to the host's ordering method. */
15327
15328 /* So, to convert a 32-bit integer stored in a buffer in little-endian */
15329 /* format into a uint32_t usable on this machine, you could use: */
15330 /*   uint32_t value = le32atoh(&buf[3]); */
15331 /* To put that value back into the buffer, you could use: */
15332 /*   htole32a(&buf[3], value); */
15333
15334 /* Define aliases for the standard byte swapping macros */
15335 /* Arguments to these macros must be properly aligned on natural word */
15336 /* boundaries in order to work properly on all architectures */
15337 #ifndef htobe16
15338 # define htobe16(x) htons(x)
15339 #endif
15340 #ifndef htobe32
15341 # define htobe32(x) htonl(x)
15342 #endif
15343 #ifndef be16toh
15344 # define be16toh(x) ntohs(x)
15345 #endif
15346 #ifndef be32toh
15347 # define be32toh(x) ntohl(x)
15348 #endif
15349
15350 #define HTOBE16(x) (x) = htobe16(x)
15351 #define HTOBE32(x) (x) = htobe32(x)
15352 #define BE32TOH(x) (x) = be32toh(x)
15353 #define BE16TOH(x) (x) = be16toh(x)
15354
15355 EOF
15356
15357  if test $ac_cv_c_bigendian = yes; then
15358   cat >> "src/gphoto2-endian.h" << EOF
15359 /* Define our own extended byte swapping macros for big-endian machines */
15360 #ifndef htole16
15361 # define htole16(x)      swap16(x)
15362 #endif
15363 #ifndef htole32
15364 # define htole32(x)      swap32(x)
15365 #endif
15366 #ifndef le16toh
15367 # define le16toh(x)      swap16(x)
15368 #endif
15369 #ifndef le32toh
15370 # define le32toh(x)      swap32(x)
15371 #endif
15372 #ifndef le64toh
15373 # define le64toh(x)      swap64(x)
15374 #endif
15375
15376 #ifndef htobe64
15377 # define htobe64(x)      (x)
15378 #endif
15379 #ifndef be64toh
15380 # define be64toh(x)      (x)
15381 #endif
15382
15383 #define HTOLE16(x)      (x) = htole16(x)
15384 #define HTOLE32(x)      (x) = htole32(x)
15385 #define LE16TOH(x)      (x) = le16toh(x)
15386 #define LE32TOH(x)      (x) = le32toh(x)
15387 #define LE64TOH(x)      (x) = le64toh(x)
15388
15389 #define HTOBE64(x)      (void) (x)
15390 #define BE64TOH(x)      (void) (x)
15391
15392 EOF
15393  else
15394   cat >> "src/gphoto2-endian.h" << EOF
15395 /* On little endian machines, these macros are null */
15396 #ifndef htole16
15397 # define htole16(x)      (x)
15398 #endif
15399 #ifndef htole32
15400 # define htole32(x)      (x)
15401 #endif
15402 #ifndef htole64
15403 # define htole64(x)      (x)
15404 #endif
15405 #ifndef le16toh
15406 # define le16toh(x)      (x)
15407 #endif
15408 #ifndef le32toh
15409 # define le32toh(x)      (x)
15410 #endif
15411 #ifndef le64toh
15412 # define le64toh(x)      (x)
15413 #endif
15414
15415 #define HTOLE16(x)      (void) (x)
15416 #define HTOLE32(x)      (void) (x)
15417 #define HTOLE64(x)      (void) (x)
15418 #define LE16TOH(x)      (void) (x)
15419 #define LE32TOH(x)      (void) (x)
15420 #define LE64TOH(x)      (void) (x)
15421
15422 /* These don't have standard aliases */
15423 #ifndef htobe64
15424 # define htobe64(x)      swap64(x)
15425 #endif
15426 #ifndef be64toh
15427 # define be64toh(x)      swap64(x)
15428 #endif
15429
15430 #define HTOBE64(x)      (x) = htobe64(x)
15431 #define BE64TOH(x)      (x) = be64toh(x)
15432
15433 EOF
15434  fi
15435 fi
15436
15437 cat >> "src/gphoto2-endian.h" << EOF
15438 /* Define the C99 standard length-specific integer types */
15439 #include <_stdint.h>
15440
15441 EOF
15442
15443 case "${effective_target}" in
15444  i[3456]86-*)
15445   cat >> "src/gphoto2-endian.h" << EOF
15446 /* Here are some macros to create integers from a byte array */
15447 /* These are used to get and put integers from/into a uint8_t array */
15448 /* with a specific endianness.  This is the most portable way to generate */
15449 /* and read messages to a network or serial device.  Each member of a */
15450 /* packet structure must be handled separately. */
15451
15452 /* The i386 and compatibles can handle unaligned memory access, */
15453 /* so use the optimized macros above to do this job */
15454 #ifndef be16atoh
15455 # define be16atoh(x)     be16toh(*(uint16_t*)(x))
15456 #endif
15457 #ifndef be32atoh
15458 # define be32atoh(x)     be32toh(*(uint32_t*)(x))
15459 #endif
15460 #ifndef be64atoh
15461 # define be64atoh(x)     be64toh(*(uint64_t*)(x))
15462 #endif
15463 #ifndef le16atoh
15464 # define le16atoh(x)     le16toh(*(uint16_t*)(x))
15465 #endif
15466 #ifndef le32atoh
15467 # define le32atoh(x)     le32toh(*(uint32_t*)(x))
15468 #endif
15469 #ifndef le64atoh
15470 # define le64atoh(x)     le64toh(*(uint64_t*)(x))
15471 #endif
15472
15473 #ifndef htob16a
15474 # define htobe16a(a,x)   *(uint16_t*)(a) = htobe16(x)
15475 #endif
15476 #ifndef htobe32a
15477 # define htobe32a(a,x)   *(uint32_t*)(a) = htobe32(x)
15478 #endif
15479 #ifndef htobe64a
15480 # define htobe64a(a,x)   *(uint64_t*)(a) = htobe64(x)
15481 #endif
15482 #ifndef htole16a
15483 # define htole16a(a,x)   *(uint16_t*)(a) = htole16(x)
15484 #endif
15485 #ifndef htole32a
15486 # define htole32a(a,x)   *(uint32_t*)(a) = htole32(x)
15487 #endif
15488 #ifndef htole64a
15489 # define htole64a(a,x)   *(uint64_t*)(a) = htole64(x)
15490 #endif
15491
15492 EOF
15493   ;;
15494
15495  *)
15496   cat >> "src/gphoto2-endian.h" << EOF
15497 /* Here are some macros to create integers from a byte array */
15498 /* These are used to get and put integers from/into a uint8_t array */
15499 /* with a specific endianness.  This is the most portable way to generate */
15500 /* and read messages to a network or serial device.  Each member of a */
15501 /* packet structure must be handled separately. */
15502
15503 /* Non-optimized but portable macros */
15504 #define be16atoh(x)     ((uint16_t)(((x)[0]<<8)|(x)[1]))
15505 #define be32atoh(x)     ((uint32_t)(((x)[0]<<24)|((x)[1]<<16)|((x)[2]<<8)|(x)[3]))
15506 #define be64atoh_x(x,off,shift)         (((uint64_t)((x)[off]))<<shift)
15507 #define be64atoh(x)     ((uint64_t)(be64atoh_x(x,0,56)|be64atoh_x(x,1,48)|be64atoh_x(x,2,40)| \\
15508         be64atoh_x(x,3,32)|be64atoh_x(x,4,24)|be64atoh_x(x,5,16)|be64atoh_x(x,6,8)|((x)[7])))
15509 #define le16atoh(x)     ((uint16_t)(((x)[1]<<8)|(x)[0]))
15510 #define le32atoh(x)     ((uint32_t)(((x)[3]<<24)|((x)[2]<<16)|((x)[1]<<8)|(x)[0]))
15511 #define le64atoh_x(x,off,shift) (((uint64_t)(x)[off])<<shift)
15512 #define le64atoh(x)     ((uint64_t)(le64atoh_x(x,7,56)|le64atoh_x(x,6,48)|le64atoh_x(x,5,40)| \\
15513         le64atoh_x(x,4,32)|le64atoh_x(x,3,24)|le64atoh_x(x,2,16)|le64atoh_x(x,1,8)|((x)[0])))
15514
15515 #define htobe16a(a,x)   (a)[0]=(uint8_t)((x)>>8), (a)[1]=(uint8_t)(x)
15516 #define htobe32a(a,x)   (a)[0]=(uint8_t)((x)>>24), (a)[1]=(uint8_t)((x)>>16), \\
15517         (a)[2]=(uint8_t)((x)>>8), (a)[3]=(uint8_t)(x)
15518 #define htobe64a(a,x)   (a)[0]=(uint8_t)((x)>>56), (a)[1]=(uint8_t)((x)>>48), \\
15519         (a)[2]=(uint8_t)((x)>>40), (a)[3]=(uint8_t)((x)>>32), \\
15520         (a)[4]=(uint8_t)((x)>>24), (a)[5]=(uint8_t)((x)>>16), \\
15521         (a)[6]=(uint8_t)((x)>>8), (a)[7]=(uint8_t)(x)
15522 #define htole16a(a,x)   (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x)
15523 #define htole32a(a,x)   (a)[3]=(uint8_t)((x)>>24), (a)[2]=(uint8_t)((x)>>16), \\
15524         (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x)
15525 #define htole64a(a,x)   (a)[7]=(uint8_t)((x)>>56), (a)[6]=(uint8_t)((x)>>48), \\
15526         (a)[5]=(uint8_t)((x)>>40), (a)[4]=(uint8_t)((x)>>32), \\
15527         (a)[3]=(uint8_t)((x)>>24), (a)[2]=(uint8_t)((x)>>16), \\
15528         (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x)
15529
15530 EOF
15531   ;;
15532 esac
15533
15534
15535 cat >> "src/gphoto2-endian.h" << EOF
15536 #endif /*__BYTEORDER_H*/
15537 EOF
15538
15539 ac_config_files="$ac_config_files src/libmtp.h doc/Doxyfile Makefile doc/Makefile src/Makefile examples/Makefile util/Makefile libmtp.sh hotplug.sh libmtp.pc"
15540
15541 cat >confcache <<\_ACEOF
15542 # This file is a shell script that caches the results of configure
15543 # tests run on this system so they can be shared between configure
15544 # scripts and configure runs, see configure's option --config-cache.
15545 # It is not useful on other systems.  If it contains results you don't
15546 # want to keep, you may remove or edit it.
15547 #
15548 # config.status only pays attention to the cache file if you give it
15549 # the --recheck option to rerun configure.
15550 #
15551 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15552 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15553 # following values.
15554
15555 _ACEOF
15556
15557 # The following way of writing the cache mishandles newlines in values,
15558 # but we know of no workaround that is simple, portable, and efficient.
15559 # So, we kill variables containing newlines.
15560 # Ultrix sh set writes to stderr and can't be redirected directly,
15561 # and sets the high bit in the cache file unless we assign to the vars.
15562 (
15563   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15564     eval ac_val=\$$ac_var
15565     case $ac_val in #(
15566     *${as_nl}*)
15567       case $ac_var in #(
15568       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15569 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15570       esac
15571       case $ac_var in #(
15572       _ | IFS | as_nl) ;; #(
15573       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15574       *) { eval $ac_var=; unset $ac_var;} ;;
15575       esac ;;
15576     esac
15577   done
15578
15579   (set) 2>&1 |
15580     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15581     *${as_nl}ac_space=\ *)
15582       # `set' does not quote correctly, so add quotes: double-quote
15583       # substitution turns \\\\ into \\, and sed turns \\ into \.
15584       sed -n \
15585         "s/'/'\\\\''/g;
15586           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15587       ;; #(
15588     *)
15589       # `set' quotes correctly as required by POSIX, so do not add quotes.
15590       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15591       ;;
15592     esac |
15593     sort
15594 ) |
15595   sed '
15596      /^ac_cv_env_/b end
15597      t clear
15598      :clear
15599      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15600      t end
15601      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15602      :end' >>confcache
15603 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15604   if test -w "$cache_file"; then
15605     if test "x$cache_file" != "x/dev/null"; then
15606       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15607 $as_echo "$as_me: updating cache $cache_file" >&6;}
15608       if test ! -f "$cache_file" || test -h "$cache_file"; then
15609         cat confcache >"$cache_file"
15610       else
15611         case $cache_file in #(
15612         */* | ?:*)
15613           mv -f confcache "$cache_file"$$ &&
15614           mv -f "$cache_file"$$ "$cache_file" ;; #(
15615         *)
15616           mv -f confcache "$cache_file" ;;
15617         esac
15618       fi
15619     fi
15620   else
15621     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15622 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15623   fi
15624 fi
15625 rm -f confcache
15626
15627 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15628 # Let make expand exec_prefix.
15629 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15630
15631 DEFS=-DHAVE_CONFIG_H
15632
15633 ac_libobjs=
15634 ac_ltlibobjs=
15635 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15636   # 1. Remove the extension, and $U if already installed.
15637   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15638   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15639   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15640   #    will be set to the directory where LIBOBJS objects are built.
15641   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15642   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15643 done
15644 LIBOBJS=$ac_libobjs
15645
15646 LTLIBOBJS=$ac_ltlibobjs
15647
15648
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15650 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15651    if test -n "$am_sleep_pid"; then
15652      # Hide warnings about reused PIDs.
15653      wait $am_sleep_pid 2>/dev/null
15654    fi
15655    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15656 $as_echo "done" >&6; }
15657  if test -n "$EXEEXT"; then
15658   am__EXEEXT_TRUE=
15659   am__EXEEXT_FALSE='#'
15660 else
15661   am__EXEEXT_TRUE='#'
15662   am__EXEEXT_FALSE=
15663 fi
15664
15665 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15666   as_fn_error $? "conditional \"AMDEP\" was never defined.
15667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15668 fi
15669 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15670   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15671 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15672 fi
15673 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
15674   as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
15675 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15676 fi
15677 if test -z "${USE_LINUX_TRUE}" && test -z "${USE_LINUX_FALSE}"; then
15678   as_fn_error $? "conditional \"USE_LINUX\" was never defined.
15679 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15680 fi
15681 if test -z "${USE_LINUX_TRUE}" && test -z "${USE_LINUX_FALSE}"; then
15682   as_fn_error $? "conditional \"USE_LINUX\" was never defined.
15683 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15684 fi
15685 if test -z "${COMPILE_MINGW32_TRUE}" && test -z "${COMPILE_MINGW32_FALSE}"; then
15686   as_fn_error $? "conditional \"COMPILE_MINGW32\" was never defined.
15687 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15688 fi
15689 if test -z "${MS_LIB_EXE_TRUE}" && test -z "${MS_LIB_EXE_FALSE}"; then
15690   as_fn_error $? "conditional \"MS_LIB_EXE\" was never defined.
15691 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15692 fi
15693 if test -z "${MTPZ_COMPILE_TRUE}" && test -z "${MTPZ_COMPILE_FALSE}"; then
15694   as_fn_error $? "conditional \"MTPZ_COMPILE\" was never defined.
15695 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15696 fi
15697 if test -z "${LIBUSB1_COMPILE_TRUE}" && test -z "${LIBUSB1_COMPILE_FALSE}"; then
15698   as_fn_error $? "conditional \"LIBUSB1_COMPILE\" was never defined.
15699 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15700 fi
15701 if test -z "${LIBUSB0_COMPILE_TRUE}" && test -z "${LIBUSB0_COMPILE_FALSE}"; then
15702   as_fn_error $? "conditional \"LIBUSB0_COMPILE\" was never defined.
15703 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15704 fi
15705 if test -z "${LIBOPENUSB_COMPILE_TRUE}" && test -z "${LIBOPENUSB_COMPILE_FALSE}"; then
15706   as_fn_error $? "conditional \"LIBOPENUSB_COMPILE\" was never defined.
15707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15708 fi
15709
15710
15711 : "${CONFIG_STATUS=./config.status}"
15712 ac_write_fail=0
15713 ac_clean_files_save=$ac_clean_files
15714 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15716 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15717 as_write_fail=0
15718 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15719 #! $SHELL
15720 # Generated by $as_me.
15721 # Run this file to recreate the current configuration.
15722 # Compiler output produced by configure, useful for debugging
15723 # configure, is in config.log if it exists.
15724
15725 debug=false
15726 ac_cs_recheck=false
15727 ac_cs_silent=false
15728
15729 SHELL=\${CONFIG_SHELL-$SHELL}
15730 export SHELL
15731 _ASEOF
15732 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15733 ## -------------------- ##
15734 ## M4sh Initialization. ##
15735 ## -------------------- ##
15736
15737 # Be more Bourne compatible
15738 DUALCASE=1; export DUALCASE # for MKS sh
15739 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15740   emulate sh
15741   NULLCMD=:
15742   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15743   # is contrary to our usage.  Disable this feature.
15744   alias -g '${1+"$@"}'='"$@"'
15745   setopt NO_GLOB_SUBST
15746 else
15747   case `(set -o) 2>/dev/null` in #(
15748   *posix*) :
15749     set -o posix ;; #(
15750   *) :
15751      ;;
15752 esac
15753 fi
15754
15755
15756 as_nl='
15757 '
15758 export as_nl
15759 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15760 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15761 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15762 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15763 # Prefer a ksh shell builtin over an external printf program on Solaris,
15764 # but without wasting forks for bash or zsh.
15765 if test -z "$BASH_VERSION$ZSH_VERSION" \
15766     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15767   as_echo='print -r --'
15768   as_echo_n='print -rn --'
15769 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15770   as_echo='printf %s\n'
15771   as_echo_n='printf %s'
15772 else
15773   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15774     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15775     as_echo_n='/usr/ucb/echo -n'
15776   else
15777     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15778     as_echo_n_body='eval
15779       arg=$1;
15780       case $arg in #(
15781       *"$as_nl"*)
15782         expr "X$arg" : "X\\(.*\\)$as_nl";
15783         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15784       esac;
15785       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15786     '
15787     export as_echo_n_body
15788     as_echo_n='sh -c $as_echo_n_body as_echo'
15789   fi
15790   export as_echo_body
15791   as_echo='sh -c $as_echo_body as_echo'
15792 fi
15793
15794 # The user is always right.
15795 if test "${PATH_SEPARATOR+set}" != set; then
15796   PATH_SEPARATOR=:
15797   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15798     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15799       PATH_SEPARATOR=';'
15800   }
15801 fi
15802
15803
15804 # IFS
15805 # We need space, tab and new line, in precisely that order.  Quoting is
15806 # there to prevent editors from complaining about space-tab.
15807 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15808 # splitting by setting IFS to empty value.)
15809 IFS=" ""        $as_nl"
15810
15811 # Find who we are.  Look in the path if we contain no directory separator.
15812 as_myself=
15813 case $0 in #((
15814   *[\\/]* ) as_myself=$0 ;;
15815   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15816 for as_dir in $PATH
15817 do
15818   IFS=$as_save_IFS
15819   test -z "$as_dir" && as_dir=.
15820     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15821   done
15822 IFS=$as_save_IFS
15823
15824      ;;
15825 esac
15826 # We did not find ourselves, most probably we were run as `sh COMMAND'
15827 # in which case we are not to be found in the path.
15828 if test "x$as_myself" = x; then
15829   as_myself=$0
15830 fi
15831 if test ! -f "$as_myself"; then
15832   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15833   exit 1
15834 fi
15835
15836 # Unset variables that we do not need and which cause bugs (e.g. in
15837 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15838 # suppresses any "Segmentation fault" message there.  '((' could
15839 # trigger a bug in pdksh 5.2.14.
15840 for as_var in BASH_ENV ENV MAIL MAILPATH
15841 do eval test x\${$as_var+set} = xset \
15842   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15843 done
15844 PS1='$ '
15845 PS2='> '
15846 PS4='+ '
15847
15848 # NLS nuisances.
15849 LC_ALL=C
15850 export LC_ALL
15851 LANGUAGE=C
15852 export LANGUAGE
15853
15854 # CDPATH.
15855 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15856
15857
15858 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15859 # ----------------------------------------
15860 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15861 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15862 # script with STATUS, using 1 if that was 0.
15863 as_fn_error ()
15864 {
15865   as_status=$1; test $as_status -eq 0 && as_status=1
15866   if test "$4"; then
15867     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15868     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15869   fi
15870   $as_echo "$as_me: error: $2" >&2
15871   as_fn_exit $as_status
15872 } # as_fn_error
15873
15874
15875 # as_fn_set_status STATUS
15876 # -----------------------
15877 # Set $? to STATUS, without forking.
15878 as_fn_set_status ()
15879 {
15880   return $1
15881 } # as_fn_set_status
15882
15883 # as_fn_exit STATUS
15884 # -----------------
15885 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15886 as_fn_exit ()
15887 {
15888   set +e
15889   as_fn_set_status $1
15890   exit $1
15891 } # as_fn_exit
15892
15893 # as_fn_unset VAR
15894 # ---------------
15895 # Portably unset VAR.
15896 as_fn_unset ()
15897 {
15898   { eval $1=; unset $1;}
15899 }
15900 as_unset=as_fn_unset
15901 # as_fn_append VAR VALUE
15902 # ----------------------
15903 # Append the text in VALUE to the end of the definition contained in VAR. Take
15904 # advantage of any shell optimizations that allow amortized linear growth over
15905 # repeated appends, instead of the typical quadratic growth present in naive
15906 # implementations.
15907 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15908   eval 'as_fn_append ()
15909   {
15910     eval $1+=\$2
15911   }'
15912 else
15913   as_fn_append ()
15914   {
15915     eval $1=\$$1\$2
15916   }
15917 fi # as_fn_append
15918
15919 # as_fn_arith ARG...
15920 # ------------------
15921 # Perform arithmetic evaluation on the ARGs, and store the result in the
15922 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15923 # must be portable across $(()) and expr.
15924 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15925   eval 'as_fn_arith ()
15926   {
15927     as_val=$(( $* ))
15928   }'
15929 else
15930   as_fn_arith ()
15931   {
15932     as_val=`expr "$@" || test $? -eq 1`
15933   }
15934 fi # as_fn_arith
15935
15936
15937 if expr a : '\(a\)' >/dev/null 2>&1 &&
15938    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15939   as_expr=expr
15940 else
15941   as_expr=false
15942 fi
15943
15944 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15945   as_basename=basename
15946 else
15947   as_basename=false
15948 fi
15949
15950 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15951   as_dirname=dirname
15952 else
15953   as_dirname=false
15954 fi
15955
15956 as_me=`$as_basename -- "$0" ||
15957 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15958          X"$0" : 'X\(//\)$' \| \
15959          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15960 $as_echo X/"$0" |
15961     sed '/^.*\/\([^/][^/]*\)\/*$/{
15962             s//\1/
15963             q
15964           }
15965           /^X\/\(\/\/\)$/{
15966             s//\1/
15967             q
15968           }
15969           /^X\/\(\/\).*/{
15970             s//\1/
15971             q
15972           }
15973           s/.*/./; q'`
15974
15975 # Avoid depending upon Character Ranges.
15976 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15977 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15978 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15979 as_cr_digits='0123456789'
15980 as_cr_alnum=$as_cr_Letters$as_cr_digits
15981
15982 ECHO_C= ECHO_N= ECHO_T=
15983 case `echo -n x` in #(((((
15984 -n*)
15985   case `echo 'xy\c'` in
15986   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15987   xy)  ECHO_C='\c';;
15988   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15989        ECHO_T=' ';;
15990   esac;;
15991 *)
15992   ECHO_N='-n';;
15993 esac
15994
15995 rm -f conf$$ conf$$.exe conf$$.file
15996 if test -d conf$$.dir; then
15997   rm -f conf$$.dir/conf$$.file
15998 else
15999   rm -f conf$$.dir
16000   mkdir conf$$.dir 2>/dev/null
16001 fi
16002 if (echo >conf$$.file) 2>/dev/null; then
16003   if ln -s conf$$.file conf$$ 2>/dev/null; then
16004     as_ln_s='ln -s'
16005     # ... but there are two gotchas:
16006     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16007     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16008     # In both cases, we have to default to `cp -pR'.
16009     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16010       as_ln_s='cp -pR'
16011   elif ln conf$$.file conf$$ 2>/dev/null; then
16012     as_ln_s=ln
16013   else
16014     as_ln_s='cp -pR'
16015   fi
16016 else
16017   as_ln_s='cp -pR'
16018 fi
16019 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16020 rmdir conf$$.dir 2>/dev/null
16021
16022
16023 # as_fn_mkdir_p
16024 # -------------
16025 # Create "$as_dir" as a directory, including parents if necessary.
16026 as_fn_mkdir_p ()
16027 {
16028
16029   case $as_dir in #(
16030   -*) as_dir=./$as_dir;;
16031   esac
16032   test -d "$as_dir" || eval $as_mkdir_p || {
16033     as_dirs=
16034     while :; do
16035       case $as_dir in #(
16036       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16037       *) as_qdir=$as_dir;;
16038       esac
16039       as_dirs="'$as_qdir' $as_dirs"
16040       as_dir=`$as_dirname -- "$as_dir" ||
16041 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16042          X"$as_dir" : 'X\(//\)[^/]' \| \
16043          X"$as_dir" : 'X\(//\)$' \| \
16044          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16045 $as_echo X"$as_dir" |
16046     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16047             s//\1/
16048             q
16049           }
16050           /^X\(\/\/\)[^/].*/{
16051             s//\1/
16052             q
16053           }
16054           /^X\(\/\/\)$/{
16055             s//\1/
16056             q
16057           }
16058           /^X\(\/\).*/{
16059             s//\1/
16060             q
16061           }
16062           s/.*/./; q'`
16063       test -d "$as_dir" && break
16064     done
16065     test -z "$as_dirs" || eval "mkdir $as_dirs"
16066   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16067
16068
16069 } # as_fn_mkdir_p
16070 if mkdir -p . 2>/dev/null; then
16071   as_mkdir_p='mkdir -p "$as_dir"'
16072 else
16073   test -d ./-p && rmdir ./-p
16074   as_mkdir_p=false
16075 fi
16076
16077
16078 # as_fn_executable_p FILE
16079 # -----------------------
16080 # Test if FILE is an executable regular file.
16081 as_fn_executable_p ()
16082 {
16083   test -f "$1" && test -x "$1"
16084 } # as_fn_executable_p
16085 as_test_x='test -x'
16086 as_executable_p=as_fn_executable_p
16087
16088 # Sed expression to map a string onto a valid CPP name.
16089 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16090
16091 # Sed expression to map a string onto a valid variable name.
16092 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16093
16094
16095 exec 6>&1
16096 ## ----------------------------------- ##
16097 ## Main body of $CONFIG_STATUS script. ##
16098 ## ----------------------------------- ##
16099 _ASEOF
16100 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16101
16102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16103 # Save the log message, to keep $0 and so on meaningful, and to
16104 # report actual input values of CONFIG_FILES etc. instead of their
16105 # values after options handling.
16106 ac_log="
16107 This file was extended by libmtp $as_me 1.1.9, which was
16108 generated by GNU Autoconf 2.69.  Invocation command line was
16109
16110   CONFIG_FILES    = $CONFIG_FILES
16111   CONFIG_HEADERS  = $CONFIG_HEADERS
16112   CONFIG_LINKS    = $CONFIG_LINKS
16113   CONFIG_COMMANDS = $CONFIG_COMMANDS
16114   $ $0 $@
16115
16116 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16117 "
16118
16119 _ACEOF
16120
16121 case $ac_config_files in *"
16122 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16123 esac
16124
16125 case $ac_config_headers in *"
16126 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16127 esac
16128
16129
16130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16131 # Files that config.status was made for.
16132 config_files="$ac_config_files"
16133 config_headers="$ac_config_headers"
16134 config_commands="$ac_config_commands"
16135
16136 _ACEOF
16137
16138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16139 ac_cs_usage="\
16140 \`$as_me' instantiates files and other configuration actions
16141 from templates according to the current configuration.  Unless the files
16142 and actions are specified as TAGs, all are instantiated by default.
16143
16144 Usage: $0 [OPTION]... [TAG]...
16145
16146   -h, --help       print this help, then exit
16147   -V, --version    print version number and configuration settings, then exit
16148       --config     print configuration, then exit
16149   -q, --quiet, --silent
16150                    do not print progress messages
16151   -d, --debug      don't remove temporary files
16152       --recheck    update $as_me by reconfiguring in the same conditions
16153       --file=FILE[:TEMPLATE]
16154                    instantiate the configuration file FILE
16155       --header=FILE[:TEMPLATE]
16156                    instantiate the configuration header FILE
16157
16158 Configuration files:
16159 $config_files
16160
16161 Configuration headers:
16162 $config_headers
16163
16164 Configuration commands:
16165 $config_commands
16166
16167 Report bugs to <libmtp-discuss@lists.sourceforge.net>."
16168
16169 _ACEOF
16170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16171 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16172 ac_cs_version="\\
16173 libmtp config.status 1.1.9
16174 configured by $0, generated by GNU Autoconf 2.69,
16175   with options \\"\$ac_cs_config\\"
16176
16177 Copyright (C) 2012 Free Software Foundation, Inc.
16178 This config.status script is free software; the Free Software Foundation
16179 gives unlimited permission to copy, distribute and modify it."
16180
16181 ac_pwd='$ac_pwd'
16182 srcdir='$srcdir'
16183 INSTALL='$INSTALL'
16184 MKDIR_P='$MKDIR_P'
16185 AWK='$AWK'
16186 test -n "\$AWK" || AWK=awk
16187 _ACEOF
16188
16189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16190 # The default lists apply if the user does not specify any file.
16191 ac_need_defaults=:
16192 while test $# != 0
16193 do
16194   case $1 in
16195   --*=?*)
16196     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16197     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16198     ac_shift=:
16199     ;;
16200   --*=)
16201     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16202     ac_optarg=
16203     ac_shift=:
16204     ;;
16205   *)
16206     ac_option=$1
16207     ac_optarg=$2
16208     ac_shift=shift
16209     ;;
16210   esac
16211
16212   case $ac_option in
16213   # Handling of the options.
16214   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16215     ac_cs_recheck=: ;;
16216   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16217     $as_echo "$ac_cs_version"; exit ;;
16218   --config | --confi | --conf | --con | --co | --c )
16219     $as_echo "$ac_cs_config"; exit ;;
16220   --debug | --debu | --deb | --de | --d | -d )
16221     debug=: ;;
16222   --file | --fil | --fi | --f )
16223     $ac_shift
16224     case $ac_optarg in
16225     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16226     '') as_fn_error $? "missing file argument" ;;
16227     esac
16228     as_fn_append CONFIG_FILES " '$ac_optarg'"
16229     ac_need_defaults=false;;
16230   --header | --heade | --head | --hea )
16231     $ac_shift
16232     case $ac_optarg in
16233     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16234     esac
16235     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16236     ac_need_defaults=false;;
16237   --he | --h)
16238     # Conflict between --help and --header
16239     as_fn_error $? "ambiguous option: \`$1'
16240 Try \`$0 --help' for more information.";;
16241   --help | --hel | -h )
16242     $as_echo "$ac_cs_usage"; exit ;;
16243   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16244   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16245     ac_cs_silent=: ;;
16246
16247   # This is an error.
16248   -*) as_fn_error $? "unrecognized option: \`$1'
16249 Try \`$0 --help' for more information." ;;
16250
16251   *) as_fn_append ac_config_targets " $1"
16252      ac_need_defaults=false ;;
16253
16254   esac
16255   shift
16256 done
16257
16258 ac_configure_extra_args=
16259
16260 if $ac_cs_silent; then
16261   exec 6>/dev/null
16262   ac_configure_extra_args="$ac_configure_extra_args --silent"
16263 fi
16264
16265 _ACEOF
16266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16267 if \$ac_cs_recheck; then
16268   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16269   shift
16270   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16271   CONFIG_SHELL='$SHELL'
16272   export CONFIG_SHELL
16273   exec "\$@"
16274 fi
16275
16276 _ACEOF
16277 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16278 exec 5>>config.log
16279 {
16280   echo
16281   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16282 ## Running $as_me. ##
16283 _ASBOX
16284   $as_echo "$ac_log"
16285 } >&5
16286
16287 _ACEOF
16288 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16289 #
16290 # INIT-COMMANDS
16291 #
16292 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16293
16294
16295 # The HP-UX ksh and POSIX shell print the target directory to stdout
16296 # if CDPATH is set.
16297 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16298
16299 sed_quote_subst='$sed_quote_subst'
16300 double_quote_subst='$double_quote_subst'
16301 delay_variable_subst='$delay_variable_subst'
16302 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16303 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16304 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16305 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16306 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16307 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16308 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16309 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16310 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16311 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16312 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16313 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16314 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16315 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16316 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16317 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16318 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16319 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16320 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16321 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16322 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16323 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16324 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16325 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16326 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16327 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16328 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16329 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16330 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16331 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16332 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16333 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16334 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16335 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16336 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16337 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16338 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16339 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16340 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16341 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16342 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16343 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16344 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16345 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16346 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16347 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16348 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16349 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16350 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16351 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16352 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16353 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16354 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16355 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16356 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16357 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16358 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16359 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16360 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16361 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16362 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16363 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16364 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16365 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16366 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16367 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16368 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16369 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16370 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16371 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16372 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16373 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16374 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16375 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16376 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16377 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16378 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16379 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16380 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16381 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16382 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16383 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16384 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16385 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16386 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16387 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16388 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16389 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16390 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16391 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16392 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16393 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16394 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16395 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16396 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16397 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16398 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16399 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16400 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16401 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16402 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16403 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16404 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16405 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16406 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16407 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16408 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16409 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16410 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16411 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16412 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16413 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16414 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16415 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16416 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16417 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16418 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16419 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16420 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16421 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16422 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16423 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16424 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16425 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16426 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16427 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16428 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16429 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16430 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16431 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16432 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16433
16434 LTCC='$LTCC'
16435 LTCFLAGS='$LTCFLAGS'
16436 compiler='$compiler_DEFAULT'
16437
16438 # A function that is used when there is no print builtin or printf.
16439 func_fallback_echo ()
16440 {
16441   eval 'cat <<_LTECHO_EOF
16442 \$1
16443 _LTECHO_EOF'
16444 }
16445
16446 # Quote evaled strings.
16447 for var in AS \
16448 DLLTOOL \
16449 OBJDUMP \
16450 SHELL \
16451 ECHO \
16452 PATH_SEPARATOR \
16453 SED \
16454 GREP \
16455 EGREP \
16456 FGREP \
16457 LD \
16458 NM \
16459 LN_S \
16460 lt_SP2NL \
16461 lt_NL2SP \
16462 reload_flag \
16463 deplibs_check_method \
16464 file_magic_cmd \
16465 file_magic_glob \
16466 want_nocaseglob \
16467 sharedlib_from_linklib_cmd \
16468 AR \
16469 AR_FLAGS \
16470 archiver_list_spec \
16471 STRIP \
16472 RANLIB \
16473 CC \
16474 CFLAGS \
16475 compiler \
16476 lt_cv_sys_global_symbol_pipe \
16477 lt_cv_sys_global_symbol_to_cdecl \
16478 lt_cv_sys_global_symbol_to_c_name_address \
16479 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16480 nm_file_list_spec \
16481 lt_prog_compiler_no_builtin_flag \
16482 lt_prog_compiler_pic \
16483 lt_prog_compiler_wl \
16484 lt_prog_compiler_static \
16485 lt_cv_prog_compiler_c_o \
16486 need_locks \
16487 MANIFEST_TOOL \
16488 DSYMUTIL \
16489 NMEDIT \
16490 LIPO \
16491 OTOOL \
16492 OTOOL64 \
16493 shrext_cmds \
16494 export_dynamic_flag_spec \
16495 whole_archive_flag_spec \
16496 compiler_needs_object \
16497 with_gnu_ld \
16498 allow_undefined_flag \
16499 no_undefined_flag \
16500 hardcode_libdir_flag_spec \
16501 hardcode_libdir_separator \
16502 exclude_expsyms \
16503 include_expsyms \
16504 file_list_spec \
16505 variables_saved_for_relink \
16506 libname_spec \
16507 library_names_spec \
16508 soname_spec \
16509 install_override_mode \
16510 finish_eval \
16511 old_striplib \
16512 striplib; do
16513     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16514     *[\\\\\\\`\\"\\\$]*)
16515       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16516       ;;
16517     *)
16518       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16519       ;;
16520     esac
16521 done
16522
16523 # Double-quote double-evaled strings.
16524 for var in reload_cmds \
16525 old_postinstall_cmds \
16526 old_postuninstall_cmds \
16527 old_archive_cmds \
16528 extract_expsyms_cmds \
16529 old_archive_from_new_cmds \
16530 old_archive_from_expsyms_cmds \
16531 archive_cmds \
16532 archive_expsym_cmds \
16533 module_cmds \
16534 module_expsym_cmds \
16535 export_symbols_cmds \
16536 prelink_cmds \
16537 postlink_cmds \
16538 postinstall_cmds \
16539 postuninstall_cmds \
16540 finish_cmds \
16541 sys_lib_search_path_spec \
16542 sys_lib_dlsearch_path_spec; do
16543     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16544     *[\\\\\\\`\\"\\\$]*)
16545       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16546       ;;
16547     *)
16548       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16549       ;;
16550     esac
16551 done
16552
16553 ac_aux_dir='$ac_aux_dir'
16554 xsi_shell='$xsi_shell'
16555 lt_shell_append='$lt_shell_append'
16556
16557 # See if we are running on zsh, and set the options which allow our
16558 # commands through without removal of \ escapes INIT.
16559 if test -n "\${ZSH_VERSION+set}" ; then
16560    setopt NO_GLOB_SUBST
16561 fi
16562
16563
16564     PACKAGE='$PACKAGE'
16565     VERSION='$VERSION'
16566     TIMESTAMP='$TIMESTAMP'
16567     RM='$RM'
16568     ofile='$ofile'
16569
16570
16571
16572
16573 _ACEOF
16574
16575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16576
16577 # Handling of arguments.
16578 for ac_config_target in $ac_config_targets
16579 do
16580   case $ac_config_target in
16581     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16582     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16583     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16584     "src/libmtp.h") CONFIG_FILES="$CONFIG_FILES src/libmtp.h" ;;
16585     "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
16586     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16587     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16588     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16589     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
16590     "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
16591     "libmtp.sh") CONFIG_FILES="$CONFIG_FILES libmtp.sh" ;;
16592     "hotplug.sh") CONFIG_FILES="$CONFIG_FILES hotplug.sh" ;;
16593     "libmtp.pc") CONFIG_FILES="$CONFIG_FILES libmtp.pc" ;;
16594
16595   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16596   esac
16597 done
16598
16599
16600 # If the user did not use the arguments to specify the items to instantiate,
16601 # then the envvar interface is used.  Set only those that are not.
16602 # We use the long form for the default assignment because of an extremely
16603 # bizarre bug on SunOS 4.1.3.
16604 if $ac_need_defaults; then
16605   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16606   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16607   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16608 fi
16609
16610 # Have a temporary directory for convenience.  Make it in the build tree
16611 # simply because there is no reason against having it here, and in addition,
16612 # creating and moving files from /tmp can sometimes cause problems.
16613 # Hook for its removal unless debugging.
16614 # Note that there is a small window in which the directory will not be cleaned:
16615 # after its creation but before its name has been assigned to `$tmp'.
16616 $debug ||
16617 {
16618   tmp= ac_tmp=
16619   trap 'exit_status=$?
16620   : "${ac_tmp:=$tmp}"
16621   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16622 ' 0
16623   trap 'as_fn_exit 1' 1 2 13 15
16624 }
16625 # Create a (secure) tmp directory for tmp files.
16626
16627 {
16628   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16629   test -d "$tmp"
16630 }  ||
16631 {
16632   tmp=./conf$$-$RANDOM
16633   (umask 077 && mkdir "$tmp")
16634 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16635 ac_tmp=$tmp
16636
16637 # Set up the scripts for CONFIG_FILES section.
16638 # No need to generate them if there are no CONFIG_FILES.
16639 # This happens for instance with `./config.status config.h'.
16640 if test -n "$CONFIG_FILES"; then
16641
16642
16643 ac_cr=`echo X | tr X '\015'`
16644 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16645 # But we know of no other shell where ac_cr would be empty at this
16646 # point, so we can use a bashism as a fallback.
16647 if test "x$ac_cr" = x; then
16648   eval ac_cr=\$\'\\r\'
16649 fi
16650 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16651 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16652   ac_cs_awk_cr='\\r'
16653 else
16654   ac_cs_awk_cr=$ac_cr
16655 fi
16656
16657 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16658 _ACEOF
16659
16660
16661 {
16662   echo "cat >conf$$subs.awk <<_ACEOF" &&
16663   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16664   echo "_ACEOF"
16665 } >conf$$subs.sh ||
16666   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16667 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16668 ac_delim='%!_!# '
16669 for ac_last_try in false false false false false :; do
16670   . ./conf$$subs.sh ||
16671     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16672
16673   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16674   if test $ac_delim_n = $ac_delim_num; then
16675     break
16676   elif $ac_last_try; then
16677     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16678   else
16679     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16680   fi
16681 done
16682 rm -f conf$$subs.sh
16683
16684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16685 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16686 _ACEOF
16687 sed -n '
16688 h
16689 s/^/S["/; s/!.*/"]=/
16690 p
16691 g
16692 s/^[^!]*!//
16693 :repl
16694 t repl
16695 s/'"$ac_delim"'$//
16696 t delim
16697 :nl
16698 h
16699 s/\(.\{148\}\)..*/\1/
16700 t more1
16701 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16702 p
16703 n
16704 b repl
16705 :more1
16706 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16707 p
16708 g
16709 s/.\{148\}//
16710 t nl
16711 :delim
16712 h
16713 s/\(.\{148\}\)..*/\1/
16714 t more2
16715 s/["\\]/\\&/g; s/^/"/; s/$/"/
16716 p
16717 b
16718 :more2
16719 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16720 p
16721 g
16722 s/.\{148\}//
16723 t delim
16724 ' <conf$$subs.awk | sed '
16725 /^[^""]/{
16726   N
16727   s/\n//
16728 }
16729 ' >>$CONFIG_STATUS || ac_write_fail=1
16730 rm -f conf$$subs.awk
16731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16732 _ACAWK
16733 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16734   for (key in S) S_is_set[key] = 1
16735   FS = "\a"
16736
16737 }
16738 {
16739   line = $ 0
16740   nfields = split(line, field, "@")
16741   substed = 0
16742   len = length(field[1])
16743   for (i = 2; i < nfields; i++) {
16744     key = field[i]
16745     keylen = length(key)
16746     if (S_is_set[key]) {
16747       value = S[key]
16748       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16749       len += length(value) + length(field[++i])
16750       substed = 1
16751     } else
16752       len += 1 + keylen
16753   }
16754
16755   print line
16756 }
16757
16758 _ACAWK
16759 _ACEOF
16760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16761 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16762   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16763 else
16764   cat
16765 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16766   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16767 _ACEOF
16768
16769 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16770 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16771 # trailing colons and then remove the whole line if VPATH becomes empty
16772 # (actually we leave an empty line to preserve line numbers).
16773 if test "x$srcdir" = x.; then
16774   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16775 h
16776 s///
16777 s/^/:/
16778 s/[      ]*$/:/
16779 s/:\$(srcdir):/:/g
16780 s/:\${srcdir}:/:/g
16781 s/:@srcdir@:/:/g
16782 s/^:*//
16783 s/:*$//
16784 x
16785 s/\(=[   ]*\).*/\1/
16786 G
16787 s/\n//
16788 s/^[^=]*=[       ]*$//
16789 }'
16790 fi
16791
16792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16793 fi # test -n "$CONFIG_FILES"
16794
16795 # Set up the scripts for CONFIG_HEADERS section.
16796 # No need to generate them if there are no CONFIG_HEADERS.
16797 # This happens for instance with `./config.status Makefile'.
16798 if test -n "$CONFIG_HEADERS"; then
16799 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16800 BEGIN {
16801 _ACEOF
16802
16803 # Transform confdefs.h into an awk script `defines.awk', embedded as
16804 # here-document in config.status, that substitutes the proper values into
16805 # config.h.in to produce config.h.
16806
16807 # Create a delimiter string that does not exist in confdefs.h, to ease
16808 # handling of long lines.
16809 ac_delim='%!_!# '
16810 for ac_last_try in false false :; do
16811   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16812   if test -z "$ac_tt"; then
16813     break
16814   elif $ac_last_try; then
16815     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16816   else
16817     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16818   fi
16819 done
16820
16821 # For the awk script, D is an array of macro values keyed by name,
16822 # likewise P contains macro parameters if any.  Preserve backslash
16823 # newline sequences.
16824
16825 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16826 sed -n '
16827 s/.\{148\}/&'"$ac_delim"'/g
16828 t rset
16829 :rset
16830 s/^[     ]*#[    ]*define[       ][      ]*/ /
16831 t def
16832 d
16833 :def
16834 s/\\$//
16835 t bsnl
16836 s/["\\]/\\&/g
16837 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16838 D["\1"]=" \3"/p
16839 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16840 d
16841 :bsnl
16842 s/["\\]/\\&/g
16843 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16844 D["\1"]=" \3\\\\\\n"\\/p
16845 t cont
16846 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16847 t cont
16848 d
16849 :cont
16850 n
16851 s/.\{148\}/&'"$ac_delim"'/g
16852 t clear
16853 :clear
16854 s/\\$//
16855 t bsnlc
16856 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16857 d
16858 :bsnlc
16859 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16860 b cont
16861 ' <confdefs.h | sed '
16862 s/'"$ac_delim"'/"\\\
16863 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16864
16865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16866   for (key in D) D_is_set[key] = 1
16867   FS = "\a"
16868 }
16869 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16870   line = \$ 0
16871   split(line, arg, " ")
16872   if (arg[1] == "#") {
16873     defundef = arg[2]
16874     mac1 = arg[3]
16875   } else {
16876     defundef = substr(arg[1], 2)
16877     mac1 = arg[2]
16878   }
16879   split(mac1, mac2, "(") #)
16880   macro = mac2[1]
16881   prefix = substr(line, 1, index(line, defundef) - 1)
16882   if (D_is_set[macro]) {
16883     # Preserve the white space surrounding the "#".
16884     print prefix "define", macro P[macro] D[macro]
16885     next
16886   } else {
16887     # Replace #undef with comments.  This is necessary, for example,
16888     # in the case of _POSIX_SOURCE, which is predefined and required
16889     # on some systems where configure will not decide to define it.
16890     if (defundef == "undef") {
16891       print "/*", prefix defundef, macro, "*/"
16892       next
16893     }
16894   }
16895 }
16896 { print }
16897 _ACAWK
16898 _ACEOF
16899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16900   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16901 fi # test -n "$CONFIG_HEADERS"
16902
16903
16904 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16905 shift
16906 for ac_tag
16907 do
16908   case $ac_tag in
16909   :[FHLC]) ac_mode=$ac_tag; continue;;
16910   esac
16911   case $ac_mode$ac_tag in
16912   :[FHL]*:*);;
16913   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16914   :[FH]-) ac_tag=-:-;;
16915   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16916   esac
16917   ac_save_IFS=$IFS
16918   IFS=:
16919   set x $ac_tag
16920   IFS=$ac_save_IFS
16921   shift
16922   ac_file=$1
16923   shift
16924
16925   case $ac_mode in
16926   :L) ac_source=$1;;
16927   :[FH])
16928     ac_file_inputs=
16929     for ac_f
16930     do
16931       case $ac_f in
16932       -) ac_f="$ac_tmp/stdin";;
16933       *) # Look for the file first in the build tree, then in the source tree
16934          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16935          # because $ac_f cannot contain `:'.
16936          test -f "$ac_f" ||
16937            case $ac_f in
16938            [\\/$]*) false;;
16939            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16940            esac ||
16941            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16942       esac
16943       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16944       as_fn_append ac_file_inputs " '$ac_f'"
16945     done
16946
16947     # Let's still pretend it is `configure' which instantiates (i.e., don't
16948     # use $as_me), people would be surprised to read:
16949     #    /* config.h.  Generated by config.status.  */
16950     configure_input='Generated from '`
16951           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16952         `' by configure.'
16953     if test x"$ac_file" != x-; then
16954       configure_input="$ac_file.  $configure_input"
16955       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16956 $as_echo "$as_me: creating $ac_file" >&6;}
16957     fi
16958     # Neutralize special characters interpreted by sed in replacement strings.
16959     case $configure_input in #(
16960     *\&* | *\|* | *\\* )
16961        ac_sed_conf_input=`$as_echo "$configure_input" |
16962        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16963     *) ac_sed_conf_input=$configure_input;;
16964     esac
16965
16966     case $ac_tag in
16967     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16968       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16969     esac
16970     ;;
16971   esac
16972
16973   ac_dir=`$as_dirname -- "$ac_file" ||
16974 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16975          X"$ac_file" : 'X\(//\)[^/]' \| \
16976          X"$ac_file" : 'X\(//\)$' \| \
16977          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16978 $as_echo X"$ac_file" |
16979     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16980             s//\1/
16981             q
16982           }
16983           /^X\(\/\/\)[^/].*/{
16984             s//\1/
16985             q
16986           }
16987           /^X\(\/\/\)$/{
16988             s//\1/
16989             q
16990           }
16991           /^X\(\/\).*/{
16992             s//\1/
16993             q
16994           }
16995           s/.*/./; q'`
16996   as_dir="$ac_dir"; as_fn_mkdir_p
16997   ac_builddir=.
16998
16999 case "$ac_dir" in
17000 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17001 *)
17002   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17003   # A ".." for each directory in $ac_dir_suffix.
17004   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17005   case $ac_top_builddir_sub in
17006   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17007   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17008   esac ;;
17009 esac
17010 ac_abs_top_builddir=$ac_pwd
17011 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17012 # for backward compatibility:
17013 ac_top_builddir=$ac_top_build_prefix
17014
17015 case $srcdir in
17016   .)  # We are building in place.
17017     ac_srcdir=.
17018     ac_top_srcdir=$ac_top_builddir_sub
17019     ac_abs_top_srcdir=$ac_pwd ;;
17020   [\\/]* | ?:[\\/]* )  # Absolute name.
17021     ac_srcdir=$srcdir$ac_dir_suffix;
17022     ac_top_srcdir=$srcdir
17023     ac_abs_top_srcdir=$srcdir ;;
17024   *) # Relative name.
17025     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17026     ac_top_srcdir=$ac_top_build_prefix$srcdir
17027     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17028 esac
17029 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17030
17031
17032   case $ac_mode in
17033   :F)
17034   #
17035   # CONFIG_FILE
17036   #
17037
17038   case $INSTALL in
17039   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17040   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17041   esac
17042   ac_MKDIR_P=$MKDIR_P
17043   case $MKDIR_P in
17044   [\\/$]* | ?:[\\/]* ) ;;
17045   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17046   esac
17047 _ACEOF
17048
17049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17050 # If the template does not know about datarootdir, expand it.
17051 # FIXME: This hack should be removed a few years after 2.60.
17052 ac_datarootdir_hack=; ac_datarootdir_seen=
17053 ac_sed_dataroot='
17054 /datarootdir/ {
17055   p
17056   q
17057 }
17058 /@datadir@/p
17059 /@docdir@/p
17060 /@infodir@/p
17061 /@localedir@/p
17062 /@mandir@/p'
17063 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17064 *datarootdir*) ac_datarootdir_seen=yes;;
17065 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17066   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17067 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17068 _ACEOF
17069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17070   ac_datarootdir_hack='
17071   s&@datadir@&$datadir&g
17072   s&@docdir@&$docdir&g
17073   s&@infodir@&$infodir&g
17074   s&@localedir@&$localedir&g
17075   s&@mandir@&$mandir&g
17076   s&\\\${datarootdir}&$datarootdir&g' ;;
17077 esac
17078 _ACEOF
17079
17080 # Neutralize VPATH when `$srcdir' = `.'.
17081 # Shell code in configure.ac might set extrasub.
17082 # FIXME: do we really want to maintain this feature?
17083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17084 ac_sed_extra="$ac_vpsub
17085 $extrasub
17086 _ACEOF
17087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17088 :t
17089 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17090 s|@configure_input@|$ac_sed_conf_input|;t t
17091 s&@top_builddir@&$ac_top_builddir_sub&;t t
17092 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17093 s&@srcdir@&$ac_srcdir&;t t
17094 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17095 s&@top_srcdir@&$ac_top_srcdir&;t t
17096 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17097 s&@builddir@&$ac_builddir&;t t
17098 s&@abs_builddir@&$ac_abs_builddir&;t t
17099 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17100 s&@INSTALL@&$ac_INSTALL&;t t
17101 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17102 $ac_datarootdir_hack
17103 "
17104 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17105   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17106
17107 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17108   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17109   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17110       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17111   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17112 which seems to be undefined.  Please make sure it is defined" >&5
17113 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17114 which seems to be undefined.  Please make sure it is defined" >&2;}
17115
17116   rm -f "$ac_tmp/stdin"
17117   case $ac_file in
17118   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17119   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17120   esac \
17121   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17122  ;;
17123   :H)
17124   #
17125   # CONFIG_HEADER
17126   #
17127   if test x"$ac_file" != x-; then
17128     {
17129       $as_echo "/* $configure_input  */" \
17130       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17131     } >"$ac_tmp/config.h" \
17132       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17133     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17134       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17135 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17136     else
17137       rm -f "$ac_file"
17138       mv "$ac_tmp/config.h" "$ac_file" \
17139         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17140     fi
17141   else
17142     $as_echo "/* $configure_input  */" \
17143       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17144       || as_fn_error $? "could not create -" "$LINENO" 5
17145   fi
17146 # Compute "$ac_file"'s index in $config_headers.
17147 _am_arg="$ac_file"
17148 _am_stamp_count=1
17149 for _am_header in $config_headers :; do
17150   case $_am_header in
17151     $_am_arg | $_am_arg:* )
17152       break ;;
17153     * )
17154       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17155   esac
17156 done
17157 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17158 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17159          X"$_am_arg" : 'X\(//\)[^/]' \| \
17160          X"$_am_arg" : 'X\(//\)$' \| \
17161          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17162 $as_echo X"$_am_arg" |
17163     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17164             s//\1/
17165             q
17166           }
17167           /^X\(\/\/\)[^/].*/{
17168             s//\1/
17169             q
17170           }
17171           /^X\(\/\/\)$/{
17172             s//\1/
17173             q
17174           }
17175           /^X\(\/\).*/{
17176             s//\1/
17177             q
17178           }
17179           s/.*/./; q'`/stamp-h$_am_stamp_count
17180  ;;
17181
17182   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17183 $as_echo "$as_me: executing $ac_file commands" >&6;}
17184  ;;
17185   esac
17186
17187
17188   case $ac_file$ac_mode in
17189     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17190   # Older Autoconf quotes --file arguments for eval, but not when files
17191   # are listed without --file.  Let's play safe and only enable the eval
17192   # if we detect the quoting.
17193   case $CONFIG_FILES in
17194   *\'*) eval set x "$CONFIG_FILES" ;;
17195   *)   set x $CONFIG_FILES ;;
17196   esac
17197   shift
17198   for mf
17199   do
17200     # Strip MF so we end up with the name of the file.
17201     mf=`echo "$mf" | sed -e 's/:.*$//'`
17202     # Check whether this is an Automake generated Makefile or not.
17203     # We used to match only the files named 'Makefile.in', but
17204     # some people rename them; so instead we look at the file content.
17205     # Grep'ing the first line is not enough: some people post-process
17206     # each Makefile.in and add a new line on top of each file to say so.
17207     # Grep'ing the whole file is not good either: AIX grep has a line
17208     # limit of 2048, but all sed's we know have understand at least 4000.
17209     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17210       dirpart=`$as_dirname -- "$mf" ||
17211 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17212          X"$mf" : 'X\(//\)[^/]' \| \
17213          X"$mf" : 'X\(//\)$' \| \
17214          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17215 $as_echo X"$mf" |
17216     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17217             s//\1/
17218             q
17219           }
17220           /^X\(\/\/\)[^/].*/{
17221             s//\1/
17222             q
17223           }
17224           /^X\(\/\/\)$/{
17225             s//\1/
17226             q
17227           }
17228           /^X\(\/\).*/{
17229             s//\1/
17230             q
17231           }
17232           s/.*/./; q'`
17233     else
17234       continue
17235     fi
17236     # Extract the definition of DEPDIR, am__include, and am__quote
17237     # from the Makefile without running 'make'.
17238     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17239     test -z "$DEPDIR" && continue
17240     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17241     test -z "$am__include" && continue
17242     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17243     # Find all dependency output files, they are included files with
17244     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17245     # simplest approach to changing $(DEPDIR) to its actual value in the
17246     # expansion.
17247     for file in `sed -n "
17248       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17249          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17250       # Make sure the directory exists.
17251       test -f "$dirpart/$file" && continue
17252       fdir=`$as_dirname -- "$file" ||
17253 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17254          X"$file" : 'X\(//\)[^/]' \| \
17255          X"$file" : 'X\(//\)$' \| \
17256          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17257 $as_echo X"$file" |
17258     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17259             s//\1/
17260             q
17261           }
17262           /^X\(\/\/\)[^/].*/{
17263             s//\1/
17264             q
17265           }
17266           /^X\(\/\/\)$/{
17267             s//\1/
17268             q
17269           }
17270           /^X\(\/\).*/{
17271             s//\1/
17272             q
17273           }
17274           s/.*/./; q'`
17275       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17276       # echo "creating $dirpart/$file"
17277       echo '# dummy' > "$dirpart/$file"
17278     done
17279   done
17280 }
17281  ;;
17282     "libtool":C)
17283
17284     # See if we are running on zsh, and set the options which allow our
17285     # commands through without removal of \ escapes.
17286     if test -n "${ZSH_VERSION+set}" ; then
17287       setopt NO_GLOB_SUBST
17288     fi
17289
17290     cfgfile="${ofile}T"
17291     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17292     $RM "$cfgfile"
17293
17294     cat <<_LT_EOF >> "$cfgfile"
17295 #! $SHELL
17296
17297 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17298 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17299 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17300 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17301 #
17302 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17303 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17304 #                 Foundation, Inc.
17305 #   Written by Gordon Matzigkeit, 1996
17306 #
17307 #   This file is part of GNU Libtool.
17308 #
17309 # GNU Libtool is free software; you can redistribute it and/or
17310 # modify it under the terms of the GNU General Public License as
17311 # published by the Free Software Foundation; either version 2 of
17312 # the License, or (at your option) any later version.
17313 #
17314 # As a special exception to the GNU General Public License,
17315 # if you distribute this file as part of a program or library that
17316 # is built using GNU Libtool, you may include this file under the
17317 # same distribution terms that you use for the rest of that program.
17318 #
17319 # GNU Libtool is distributed in the hope that it will be useful,
17320 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17321 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17322 # GNU General Public License for more details.
17323 #
17324 # You should have received a copy of the GNU General Public License
17325 # along with GNU Libtool; see the file COPYING.  If not, a copy
17326 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17327 # obtained by writing to the Free Software Foundation, Inc.,
17328 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17329
17330
17331 # The names of the tagged configurations supported by this script.
17332 available_tags=""
17333
17334 # ### BEGIN LIBTOOL CONFIG
17335
17336 # Assembler program.
17337 AS=$lt_AS
17338
17339 # DLL creation program.
17340 DLLTOOL=$lt_DLLTOOL
17341
17342 # Object dumper program.
17343 OBJDUMP=$lt_OBJDUMP
17344
17345 # Which release of libtool.m4 was used?
17346 macro_version=$macro_version
17347 macro_revision=$macro_revision
17348
17349 # Whether or not to build shared libraries.
17350 build_libtool_libs=$enable_shared
17351
17352 # Whether or not to build static libraries.
17353 build_old_libs=$enable_static
17354
17355 # What type of objects to build.
17356 pic_mode=$pic_mode
17357
17358 # Whether or not to optimize for fast installation.
17359 fast_install=$enable_fast_install
17360
17361 # Shell to use when invoking shell scripts.
17362 SHELL=$lt_SHELL
17363
17364 # An echo program that protects backslashes.
17365 ECHO=$lt_ECHO
17366
17367 # The PATH separator for the build system.
17368 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17369
17370 # The host system.
17371 host_alias=$host_alias
17372 host=$host
17373 host_os=$host_os
17374
17375 # The build system.
17376 build_alias=$build_alias
17377 build=$build
17378 build_os=$build_os
17379
17380 # A sed program that does not truncate output.
17381 SED=$lt_SED
17382
17383 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17384 Xsed="\$SED -e 1s/^X//"
17385
17386 # A grep program that handles long lines.
17387 GREP=$lt_GREP
17388
17389 # An ERE matcher.
17390 EGREP=$lt_EGREP
17391
17392 # A literal string matcher.
17393 FGREP=$lt_FGREP
17394
17395 # A BSD- or MS-compatible name lister.
17396 NM=$lt_NM
17397
17398 # Whether we need soft or hard links.
17399 LN_S=$lt_LN_S
17400
17401 # What is the maximum length of a command?
17402 max_cmd_len=$max_cmd_len
17403
17404 # Object file suffix (normally "o").
17405 objext=$ac_objext
17406
17407 # Executable file suffix (normally "").
17408 exeext=$exeext
17409
17410 # whether the shell understands "unset".
17411 lt_unset=$lt_unset
17412
17413 # turn spaces into newlines.
17414 SP2NL=$lt_lt_SP2NL
17415
17416 # turn newlines into spaces.
17417 NL2SP=$lt_lt_NL2SP
17418
17419 # convert \$build file names to \$host format.
17420 to_host_file_cmd=$lt_cv_to_host_file_cmd
17421
17422 # convert \$build files to toolchain format.
17423 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17424
17425 # Method to check whether dependent libraries are shared objects.
17426 deplibs_check_method=$lt_deplibs_check_method
17427
17428 # Command to use when deplibs_check_method = "file_magic".
17429 file_magic_cmd=$lt_file_magic_cmd
17430
17431 # How to find potential files when deplibs_check_method = "file_magic".
17432 file_magic_glob=$lt_file_magic_glob
17433
17434 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17435 want_nocaseglob=$lt_want_nocaseglob
17436
17437 # Command to associate shared and link libraries.
17438 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17439
17440 # The archiver.
17441 AR=$lt_AR
17442
17443 # Flags to create an archive.
17444 AR_FLAGS=$lt_AR_FLAGS
17445
17446 # How to feed a file listing to the archiver.
17447 archiver_list_spec=$lt_archiver_list_spec
17448
17449 # A symbol stripping program.
17450 STRIP=$lt_STRIP
17451
17452 # Commands used to install an old-style archive.
17453 RANLIB=$lt_RANLIB
17454 old_postinstall_cmds=$lt_old_postinstall_cmds
17455 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17456
17457 # Whether to use a lock for old archive extraction.
17458 lock_old_archive_extraction=$lock_old_archive_extraction
17459
17460 # A C compiler.
17461 LTCC=$lt_CC
17462
17463 # LTCC compiler flags.
17464 LTCFLAGS=$lt_CFLAGS
17465
17466 # Take the output of nm and produce a listing of raw symbols and C names.
17467 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17468
17469 # Transform the output of nm in a proper C declaration.
17470 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17471
17472 # Transform the output of nm in a C name address pair.
17473 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17474
17475 # Transform the output of nm in a C name address pair when lib prefix is needed.
17476 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17477
17478 # Specify filename containing input files for \$NM.
17479 nm_file_list_spec=$lt_nm_file_list_spec
17480
17481 # The root where to search for dependent libraries,and in which our libraries should be installed.
17482 lt_sysroot=$lt_sysroot
17483
17484 # The name of the directory that contains temporary libtool files.
17485 objdir=$objdir
17486
17487 # Used to examine libraries when file_magic_cmd begins with "file".
17488 MAGIC_CMD=$MAGIC_CMD
17489
17490 # Must we lock files when doing compilation?
17491 need_locks=$lt_need_locks
17492
17493 # Manifest tool.
17494 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17495
17496 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17497 DSYMUTIL=$lt_DSYMUTIL
17498
17499 # Tool to change global to local symbols on Mac OS X.
17500 NMEDIT=$lt_NMEDIT
17501
17502 # Tool to manipulate fat objects and archives on Mac OS X.
17503 LIPO=$lt_LIPO
17504
17505 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17506 OTOOL=$lt_OTOOL
17507
17508 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17509 OTOOL64=$lt_OTOOL64
17510
17511 # Old archive suffix (normally "a").
17512 libext=$libext
17513
17514 # Shared library suffix (normally ".so").
17515 shrext_cmds=$lt_shrext_cmds
17516
17517 # The commands to extract the exported symbol list from a shared archive.
17518 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17519
17520 # Variables whose values should be saved in libtool wrapper scripts and
17521 # restored at link time.
17522 variables_saved_for_relink=$lt_variables_saved_for_relink
17523
17524 # Do we need the "lib" prefix for modules?
17525 need_lib_prefix=$need_lib_prefix
17526
17527 # Do we need a version for libraries?
17528 need_version=$need_version
17529
17530 # Library versioning type.
17531 version_type=$version_type
17532
17533 # Shared library runtime path variable.
17534 runpath_var=$runpath_var
17535
17536 # Shared library path variable.
17537 shlibpath_var=$shlibpath_var
17538
17539 # Is shlibpath searched before the hard-coded library search path?
17540 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17541
17542 # Format of library name prefix.
17543 libname_spec=$lt_libname_spec
17544
17545 # List of archive names.  First name is the real one, the rest are links.
17546 # The last name is the one that the linker finds with -lNAME
17547 library_names_spec=$lt_library_names_spec
17548
17549 # The coded name of the library, if different from the real name.
17550 soname_spec=$lt_soname_spec
17551
17552 # Permission mode override for installation of shared libraries.
17553 install_override_mode=$lt_install_override_mode
17554
17555 # Command to use after installation of a shared archive.
17556 postinstall_cmds=$lt_postinstall_cmds
17557
17558 # Command to use after uninstallation of a shared archive.
17559 postuninstall_cmds=$lt_postuninstall_cmds
17560
17561 # Commands used to finish a libtool library installation in a directory.
17562 finish_cmds=$lt_finish_cmds
17563
17564 # As "finish_cmds", except a single script fragment to be evaled but
17565 # not shown.
17566 finish_eval=$lt_finish_eval
17567
17568 # Whether we should hardcode library paths into libraries.
17569 hardcode_into_libs=$hardcode_into_libs
17570
17571 # Compile-time system search path for libraries.
17572 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17573
17574 # Run-time system search path for libraries.
17575 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17576
17577 # Whether dlopen is supported.
17578 dlopen_support=$enable_dlopen
17579
17580 # Whether dlopen of programs is supported.
17581 dlopen_self=$enable_dlopen_self
17582
17583 # Whether dlopen of statically linked programs is supported.
17584 dlopen_self_static=$enable_dlopen_self_static
17585
17586 # Commands to strip libraries.
17587 old_striplib=$lt_old_striplib
17588 striplib=$lt_striplib
17589
17590
17591 # The linker used to build libraries.
17592 LD=$lt_LD
17593
17594 # How to create reloadable object files.
17595 reload_flag=$lt_reload_flag
17596 reload_cmds=$lt_reload_cmds
17597
17598 # Commands used to build an old-style archive.
17599 old_archive_cmds=$lt_old_archive_cmds
17600
17601 # A language specific compiler.
17602 CC=$lt_compiler
17603
17604 # Is the compiler the GNU compiler?
17605 with_gcc=$GCC
17606
17607 # Compiler flag to turn off builtin functions.
17608 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17609
17610 # Additional compiler flags for building library objects.
17611 pic_flag=$lt_lt_prog_compiler_pic
17612
17613 # How to pass a linker flag through the compiler.
17614 wl=$lt_lt_prog_compiler_wl
17615
17616 # Compiler flag to prevent dynamic linking.
17617 link_static_flag=$lt_lt_prog_compiler_static
17618
17619 # Does compiler simultaneously support -c and -o options?
17620 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17621
17622 # Whether or not to add -lc for building shared libraries.
17623 build_libtool_need_lc=$archive_cmds_need_lc
17624
17625 # Whether or not to disallow shared libs when runtime libs are static.
17626 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17627
17628 # Compiler flag to allow reflexive dlopens.
17629 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17630
17631 # Compiler flag to generate shared objects directly from archives.
17632 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17633
17634 # Whether the compiler copes with passing no objects directly.
17635 compiler_needs_object=$lt_compiler_needs_object
17636
17637 # Create an old-style archive from a shared archive.
17638 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17639
17640 # Create a temporary old-style archive to link instead of a shared archive.
17641 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17642
17643 # Commands used to build a shared archive.
17644 archive_cmds=$lt_archive_cmds
17645 archive_expsym_cmds=$lt_archive_expsym_cmds
17646
17647 # Commands used to build a loadable module if different from building
17648 # a shared archive.
17649 module_cmds=$lt_module_cmds
17650 module_expsym_cmds=$lt_module_expsym_cmds
17651
17652 # Whether we are building with GNU ld or not.
17653 with_gnu_ld=$lt_with_gnu_ld
17654
17655 # Flag that allows shared libraries with undefined symbols to be built.
17656 allow_undefined_flag=$lt_allow_undefined_flag
17657
17658 # Flag that enforces no undefined symbols.
17659 no_undefined_flag=$lt_no_undefined_flag
17660
17661 # Flag to hardcode \$libdir into a binary during linking.
17662 # This must work even if \$libdir does not exist
17663 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17664
17665 # Whether we need a single "-rpath" flag with a separated argument.
17666 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17667
17668 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17669 # DIR into the resulting binary.
17670 hardcode_direct=$hardcode_direct
17671
17672 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17673 # DIR into the resulting binary and the resulting library dependency is
17674 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17675 # library is relocated.
17676 hardcode_direct_absolute=$hardcode_direct_absolute
17677
17678 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17679 # into the resulting binary.
17680 hardcode_minus_L=$hardcode_minus_L
17681
17682 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17683 # into the resulting binary.
17684 hardcode_shlibpath_var=$hardcode_shlibpath_var
17685
17686 # Set to "yes" if building a shared library automatically hardcodes DIR
17687 # into the library and all subsequent libraries and executables linked
17688 # against it.
17689 hardcode_automatic=$hardcode_automatic
17690
17691 # Set to yes if linker adds runtime paths of dependent libraries
17692 # to runtime path list.
17693 inherit_rpath=$inherit_rpath
17694
17695 # Whether libtool must link a program against all its dependency libraries.
17696 link_all_deplibs=$link_all_deplibs
17697
17698 # Set to "yes" if exported symbols are required.
17699 always_export_symbols=$always_export_symbols
17700
17701 # The commands to list exported symbols.
17702 export_symbols_cmds=$lt_export_symbols_cmds
17703
17704 # Symbols that should not be listed in the preloaded symbols.
17705 exclude_expsyms=$lt_exclude_expsyms
17706
17707 # Symbols that must always be exported.
17708 include_expsyms=$lt_include_expsyms
17709
17710 # Commands necessary for linking programs (against libraries) with templates.
17711 prelink_cmds=$lt_prelink_cmds
17712
17713 # Commands necessary for finishing linking programs.
17714 postlink_cmds=$lt_postlink_cmds
17715
17716 # Specify filename containing input files.
17717 file_list_spec=$lt_file_list_spec
17718
17719 # How to hardcode a shared library path into an executable.
17720 hardcode_action=$hardcode_action
17721
17722 # ### END LIBTOOL CONFIG
17723
17724 _LT_EOF
17725
17726   case $host_os in
17727   aix3*)
17728     cat <<\_LT_EOF >> "$cfgfile"
17729 # AIX sometimes has problems with the GCC collect2 program.  For some
17730 # reason, if we set the COLLECT_NAMES environment variable, the problems
17731 # vanish in a puff of smoke.
17732 if test "X${COLLECT_NAMES+set}" != Xset; then
17733   COLLECT_NAMES=
17734   export COLLECT_NAMES
17735 fi
17736 _LT_EOF
17737     ;;
17738   esac
17739
17740
17741 ltmain="$ac_aux_dir/ltmain.sh"
17742
17743
17744   # We use sed instead of cat because bash on DJGPP gets confused if
17745   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17746   # text mode, it properly converts lines to CR/LF.  This bash problem
17747   # is reportedly fixed, but why not run on old versions too?
17748   sed '$q' "$ltmain" >> "$cfgfile" \
17749      || (rm -f "$cfgfile"; exit 1)
17750
17751   if test x"$xsi_shell" = xyes; then
17752   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17753 func_dirname ()\
17754 {\
17755 \    case ${1} in\
17756 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17757 \      *  ) func_dirname_result="${3}" ;;\
17758 \    esac\
17759 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17760   && mv -f "$cfgfile.tmp" "$cfgfile" \
17761     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17762 test 0 -eq $? || _lt_function_replace_fail=:
17763
17764
17765   sed -e '/^func_basename ()$/,/^} # func_basename /c\
17766 func_basename ()\
17767 {\
17768 \    func_basename_result="${1##*/}"\
17769 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17770   && mv -f "$cfgfile.tmp" "$cfgfile" \
17771     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17772 test 0 -eq $? || _lt_function_replace_fail=:
17773
17774
17775   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17776 func_dirname_and_basename ()\
17777 {\
17778 \    case ${1} in\
17779 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17780 \      *  ) func_dirname_result="${3}" ;;\
17781 \    esac\
17782 \    func_basename_result="${1##*/}"\
17783 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17784   && mv -f "$cfgfile.tmp" "$cfgfile" \
17785     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17786 test 0 -eq $? || _lt_function_replace_fail=:
17787
17788
17789   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17790 func_stripname ()\
17791 {\
17792 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17793 \    # positional parameters, so assign one to ordinary parameter first.\
17794 \    func_stripname_result=${3}\
17795 \    func_stripname_result=${func_stripname_result#"${1}"}\
17796 \    func_stripname_result=${func_stripname_result%"${2}"}\
17797 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17798   && mv -f "$cfgfile.tmp" "$cfgfile" \
17799     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17800 test 0 -eq $? || _lt_function_replace_fail=:
17801
17802
17803   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17804 func_split_long_opt ()\
17805 {\
17806 \    func_split_long_opt_name=${1%%=*}\
17807 \    func_split_long_opt_arg=${1#*=}\
17808 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17809   && mv -f "$cfgfile.tmp" "$cfgfile" \
17810     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17811 test 0 -eq $? || _lt_function_replace_fail=:
17812
17813
17814   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17815 func_split_short_opt ()\
17816 {\
17817 \    func_split_short_opt_arg=${1#??}\
17818 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17819 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17820   && mv -f "$cfgfile.tmp" "$cfgfile" \
17821     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17822 test 0 -eq $? || _lt_function_replace_fail=:
17823
17824
17825   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17826 func_lo2o ()\
17827 {\
17828 \    case ${1} in\
17829 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17830 \      *)    func_lo2o_result=${1} ;;\
17831 \    esac\
17832 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17833   && mv -f "$cfgfile.tmp" "$cfgfile" \
17834     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17835 test 0 -eq $? || _lt_function_replace_fail=:
17836
17837
17838   sed -e '/^func_xform ()$/,/^} # func_xform /c\
17839 func_xform ()\
17840 {\
17841     func_xform_result=${1%.*}.lo\
17842 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17843   && mv -f "$cfgfile.tmp" "$cfgfile" \
17844     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17845 test 0 -eq $? || _lt_function_replace_fail=:
17846
17847
17848   sed -e '/^func_arith ()$/,/^} # func_arith /c\
17849 func_arith ()\
17850 {\
17851     func_arith_result=$(( $* ))\
17852 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17853   && mv -f "$cfgfile.tmp" "$cfgfile" \
17854     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17855 test 0 -eq $? || _lt_function_replace_fail=:
17856
17857
17858   sed -e '/^func_len ()$/,/^} # func_len /c\
17859 func_len ()\
17860 {\
17861     func_len_result=${#1}\
17862 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17863   && mv -f "$cfgfile.tmp" "$cfgfile" \
17864     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17865 test 0 -eq $? || _lt_function_replace_fail=:
17866
17867 fi
17868
17869 if test x"$lt_shell_append" = xyes; then
17870   sed -e '/^func_append ()$/,/^} # func_append /c\
17871 func_append ()\
17872 {\
17873     eval "${1}+=\\${2}"\
17874 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17875   && mv -f "$cfgfile.tmp" "$cfgfile" \
17876     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17877 test 0 -eq $? || _lt_function_replace_fail=:
17878
17879
17880   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17881 func_append_quoted ()\
17882 {\
17883 \    func_quote_for_eval "${2}"\
17884 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17885 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17886   && mv -f "$cfgfile.tmp" "$cfgfile" \
17887     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17888 test 0 -eq $? || _lt_function_replace_fail=:
17889
17890
17891   # Save a `func_append' function call where possible by direct use of '+='
17892   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17893     && mv -f "$cfgfile.tmp" "$cfgfile" \
17894       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17895   test 0 -eq $? || _lt_function_replace_fail=:
17896 else
17897   # Save a `func_append' function call even when '+=' is not available
17898   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17899     && mv -f "$cfgfile.tmp" "$cfgfile" \
17900       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17901   test 0 -eq $? || _lt_function_replace_fail=:
17902 fi
17903
17904 if test x"$_lt_function_replace_fail" = x":"; then
17905   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17906 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17907 fi
17908
17909
17910    mv -f "$cfgfile" "$ofile" ||
17911     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17912   chmod +x "$ofile"
17913
17914  ;;
17915
17916   esac
17917 done # for ac_tag
17918
17919
17920 as_fn_exit 0
17921 _ACEOF
17922 ac_clean_files=$ac_clean_files_save
17923
17924 test $ac_write_fail = 0 ||
17925   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17926
17927
17928 # configure is writing to config.log, and then calls config.status.
17929 # config.status does its own redirection, appending to config.log.
17930 # Unfortunately, on DOS this fails, as config.log is still kept open
17931 # by configure, so config.status won't be able to write to it; its
17932 # output is simply discarded.  So we exec the FD to /dev/null,
17933 # effectively closing config.log, so it can be properly (re)opened and
17934 # appended to by config.status.  When coming back to configure, we
17935 # need to make the FD available again.
17936 if test "$no_create" != yes; then
17937   ac_cs_success=:
17938   ac_config_status_args=
17939   test "$silent" = yes &&
17940     ac_config_status_args="$ac_config_status_args --quiet"
17941   exec 5>/dev/null
17942   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17943   exec 5>>config.log
17944   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17945   # would make configure fail if this is the last instruction.
17946   $ac_cs_success || as_fn_exit 1
17947 fi
17948 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17949   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17950 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17951 fi
17952
17953 chmod +x hotplug.sh