Source code upload
[framework/connectivity/libgphoto2.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libgphoto2 photo camera library 2.4.11.
4 #
5 # Report bugs to <gphoto-devel@lists.sourceforge.net>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178   if (eval "$as_required") 2>/dev/null; then :
179   as_have_required=yes
180 else
181   as_have_required=no
182 fi
183   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190   IFS=$as_save_IFS
191   test -z "$as_dir" && as_dir=.
192   as_found=:
193   case $as_dir in #(
194          /*)
195            for as_base in sh bash ksh sh5; do
196              # Try only shells that exist, to save several forks.
197              as_shell=$as_dir/$as_base
198              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200   CONFIG_SHELL=$as_shell as_have_required=yes
201                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202   break 2
203 fi
204 fi
205            done;;
206        esac
207   as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211   CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216       if test "x$CONFIG_SHELL" != x; then :
217   # We cannot yet assume a decent shell, so we have to provide a
218         # neutralization value for shells without unset; and this also
219         # works around shells that cannot unset nonexistent variables.
220         # Preserve -v and -x to the replacement shell.
221         BASH_ENV=/dev/null
222         ENV=/dev/null
223         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224         export CONFIG_SHELL
225         case $- in # ((((
226           *v*x* | *x*v* ) as_opts=-vx ;;
227           *v* ) as_opts=-v ;;
228           *x* ) as_opts=-x ;;
229           * ) as_opts= ;;
230         esac
231         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 fi
233
234     if test x$as_have_required = xno; then :
235   $as_echo "$0: This script requires a shell more modern than all"
236   $as_echo "$0: the shells that I found on your system."
237   if test x${ZSH_VERSION+set} = xset ; then
238     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240   else
241     $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: gphoto-devel@lists.sourceforge.net about your system,
243 $0: including any error possibly output before this
244 $0: message. Then install a modern shell, or manually run
245 $0: the script under such a shell if you do have one."
246   fi
247   exit 1
248 fi
249 fi
250 fi
251 SHELL=${CONFIG_SHELL-/bin/sh}
252 export SHELL
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
256
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
260 # as_fn_unset VAR
261 # ---------------
262 # Portably unset VAR.
263 as_fn_unset ()
264 {
265   { eval $1=; unset $1;}
266 }
267 as_unset=as_fn_unset
268
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
272 as_fn_set_status ()
273 {
274   return $1
275 } # as_fn_set_status
276
277 # as_fn_exit STATUS
278 # -----------------
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 as_fn_exit ()
281 {
282   set +e
283   as_fn_set_status $1
284   exit $1
285 } # as_fn_exit
286
287 # as_fn_mkdir_p
288 # -------------
289 # Create "$as_dir" as a directory, including parents if necessary.
290 as_fn_mkdir_p ()
291 {
292
293   case $as_dir in #(
294   -*) as_dir=./$as_dir;;
295   esac
296   test -d "$as_dir" || eval $as_mkdir_p || {
297     as_dirs=
298     while :; do
299       case $as_dir in #(
300       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301       *) as_qdir=$as_dir;;
302       esac
303       as_dirs="'$as_qdir' $as_dirs"
304       as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306          X"$as_dir" : 'X\(//\)[^/]' \| \
307          X"$as_dir" : 'X\(//\)$' \| \
308          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\/\)[^/].*/{
315             s//\1/
316             q
317           }
318           /^X\(\/\/\)$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\).*/{
323             s//\1/
324             q
325           }
326           s/.*/./; q'`
327       test -d "$as_dir" && break
328     done
329     test -z "$as_dirs" || eval "mkdir $as_dirs"
330   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331
332
333 } # as_fn_mkdir_p
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
339 # implementations.
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341   eval 'as_fn_append ()
342   {
343     eval $1+=\$2
344   }'
345 else
346   as_fn_append ()
347   {
348     eval $1=\$$1\$2
349   }
350 fi # as_fn_append
351
352 # as_fn_arith ARG...
353 # ------------------
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358   eval 'as_fn_arith ()
359   {
360     as_val=$(( $* ))
361   }'
362 else
363   as_fn_arith ()
364   {
365     as_val=`expr "$@" || test $? -eq 1`
366   }
367 fi # as_fn_arith
368
369
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
375 as_fn_error ()
376 {
377   as_status=$1; test $as_status -eq 0 && as_status=1
378   if test "$4"; then
379     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381   fi
382   $as_echo "$as_me: error: $2" >&2
383   as_fn_exit $as_status
384 } # as_fn_error
385
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387    test "X`expr 00001 : '.*\(...\)'`" = X001; then
388   as_expr=expr
389 else
390   as_expr=false
391 fi
392
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394   as_basename=basename
395 else
396   as_basename=false
397 fi
398
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400   as_dirname=dirname
401 else
402   as_dirname=false
403 fi
404
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407          X"$0" : 'X\(//\)$' \| \
408          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 $as_echo X/"$0" |
410     sed '/^.*\/\([^/][^/]*\)\/*$/{
411             s//\1/
412             q
413           }
414           /^X\/\(\/\/\)$/{
415             s//\1/
416             q
417           }
418           /^X\/\(\/\).*/{
419             s//\1/
420             q
421           }
422           s/.*/./; q'`
423
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
430
431
432   as_lineno_1=$LINENO as_lineno_1a=$LINENO
433   as_lineno_2=$LINENO as_lineno_2a=$LINENO
434   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
437   sed -n '
438     p
439     /[$]LINENO/=
440   ' <$as_myself |
441     sed '
442       s/[$]LINENO.*/&-/
443       t lineno
444       b
445       :lineno
446       N
447       :loop
448       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449       t loop
450       s/-\n.*//
451     ' >$as_me.lineno &&
452   chmod +x "$as_me.lineno" ||
453     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
465 -n*)
466   case `echo 'xy\c'` in
467   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
468   xy)  ECHO_C='\c';;
469   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
470        ECHO_T=' ';;
471   esac;;
472 *)
473   ECHO_N='-n';;
474 esac
475
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478   rm -f conf$$.dir/conf$$.file
479 else
480   rm -f conf$$.dir
481   mkdir conf$$.dir 2>/dev/null
482 fi
483 if (echo >conf$$.file) 2>/dev/null; then
484   if ln -s conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s='ln -s'
486     # ... but there are two gotchas:
487     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489     # In both cases, we have to default to `cp -p'.
490     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491       as_ln_s='cp -p'
492   elif ln conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s=ln
494   else
495     as_ln_s='cp -p'
496   fi
497 else
498   as_ln_s='cp -p'
499 fi
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
502
503 if mkdir -p . 2>/dev/null; then
504   as_mkdir_p='mkdir -p "$as_dir"'
505 else
506   test -d ./-p && rmdir ./-p
507   as_mkdir_p=false
508 fi
509
510 if test -x / >/dev/null 2>&1; then
511   as_test_x='test -x'
512 else
513   if ls -dL / >/dev/null 2>&1; then
514     as_ls_L_option=L
515   else
516     as_ls_L_option=
517   fi
518   as_test_x='
519     eval sh -c '\''
520       if test -d "$1"; then
521         test -d "$1/.";
522       else
523         case $1 in #(
524         -*)set "./$1";;
525         esac;
526         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527         ???[sx]*):;;*)false;;esac;fi
528     '\'' sh
529   '
530 fi
531 as_executable_p=$as_test_x
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541 # Check that we are running under the correct shell.
542 SHELL=${CONFIG_SHELL-/bin/sh}
543
544 case X$lt_ECHO in
545 X*--fallback-echo)
546   # Remove one level of quotation (which was required for Make).
547   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
548   ;;
549 esac
550
551 ECHO=${lt_ECHO-echo}
552 if test "X$1" = X--no-reexec; then
553   # Discard the --no-reexec flag, and continue.
554   shift
555 elif test "X$1" = X--fallback-echo; then
556   # Avoid inline document here, it may be left over
557   :
558 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
559   # Yippee, $ECHO works!
560   :
561 else
562   # Restart under the correct shell.
563   exec $SHELL "$0" --no-reexec ${1+"$@"}
564 fi
565
566 if test "X$1" = X--fallback-echo; then
567   # used as fallback echo
568   shift
569   cat <<_LT_EOF
570 $*
571 _LT_EOF
572   exit 0
573 fi
574
575 # The HP-UX ksh and POSIX shell print the target directory to stdout
576 # if CDPATH is set.
577 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
578
579 if test -z "$lt_ECHO"; then
580   if test "X${echo_test_string+set}" != Xset; then
581     # find a string as large as possible, as long as the shell can cope with it
582     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
583       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
584       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
585          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
586       then
587         break
588       fi
589     done
590   fi
591
592   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
593      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
594      test "X$echo_testing_string" = "X$echo_test_string"; then
595     :
596   else
597     # The Solaris, AIX, and Digital Unix default echo programs unquote
598     # backslashes.  This makes it impossible to quote backslashes using
599     #   echo "$something" | sed 's/\\/\\\\/g'
600     #
601     # So, first we look for a working echo in the user's PATH.
602
603     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
604     for dir in $PATH /usr/ucb; do
605       IFS="$lt_save_ifs"
606       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
607          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
608          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
609          test "X$echo_testing_string" = "X$echo_test_string"; then
610         ECHO="$dir/echo"
611         break
612       fi
613     done
614     IFS="$lt_save_ifs"
615
616     if test "X$ECHO" = Xecho; then
617       # We didn't find a better echo, so look for alternatives.
618       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
619          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
620          test "X$echo_testing_string" = "X$echo_test_string"; then
621         # This shell has a builtin print -r that does the trick.
622         ECHO='print -r'
623       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
624            test "X$CONFIG_SHELL" != X/bin/ksh; then
625         # If we have ksh, try running configure again with it.
626         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
627         export ORIGINAL_CONFIG_SHELL
628         CONFIG_SHELL=/bin/ksh
629         export CONFIG_SHELL
630         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
631       else
632         # Try using printf.
633         ECHO='printf %s\n'
634         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
635            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
636            test "X$echo_testing_string" = "X$echo_test_string"; then
637           # Cool, printf works
638           :
639         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640              test "X$echo_testing_string" = 'X\t' &&
641              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642              test "X$echo_testing_string" = "X$echo_test_string"; then
643           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
644           export CONFIG_SHELL
645           SHELL="$CONFIG_SHELL"
646           export SHELL
647           ECHO="$CONFIG_SHELL $0 --fallback-echo"
648         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
649              test "X$echo_testing_string" = 'X\t' &&
650              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
651              test "X$echo_testing_string" = "X$echo_test_string"; then
652           ECHO="$CONFIG_SHELL $0 --fallback-echo"
653         else
654           # maybe with a smaller string...
655           prev=:
656
657           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
658             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
659             then
660               break
661             fi
662             prev="$cmd"
663           done
664
665           if test "$prev" != 'sed 50q "$0"'; then
666             echo_test_string=`eval $prev`
667             export echo_test_string
668             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
669           else
670             # Oops.  We lost completely, so just stick with echo.
671             ECHO=echo
672           fi
673         fi
674       fi
675     fi
676   fi
677 fi
678
679 # Copy echo and quote the copy suitably for passing to libtool from
680 # the Makefile, instead of quoting the original, which is used later.
681 lt_ECHO=$ECHO
682 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
683    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
684 fi
685
686
687
688
689 test -n "$DJDIR" || exec 7<&0 </dev/null
690 exec 6>&1
691
692 # Name of the host.
693 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
694 # so uname gets run too.
695 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
696
697 #
698 # Initializations.
699 #
700 ac_default_prefix=/usr/local
701 ac_clean_files=
702 ac_config_libobj_dir=.
703 LIBOBJS=
704 cross_compiling=no
705 subdirs=
706 MFLAGS=
707 MAKEFLAGS=
708
709 # Identity of this package.
710 PACKAGE_NAME='libgphoto2 photo camera library'
711 PACKAGE_TARNAME='libgphoto2'
712 PACKAGE_VERSION='2.4.11'
713 PACKAGE_STRING='libgphoto2 photo camera library 2.4.11'
714 PACKAGE_BUGREPORT='gphoto-devel@lists.sourceforge.net'
715 PACKAGE_URL=''
716
717 ac_unique_file="libgphoto2/gphoto2-version.c"
718 # Factoring default headers for most tests.
719 ac_includes_default="\
720 #include <stdio.h>
721 #ifdef HAVE_SYS_TYPES_H
722 # include <sys/types.h>
723 #endif
724 #ifdef HAVE_SYS_STAT_H
725 # include <sys/stat.h>
726 #endif
727 #ifdef STDC_HEADERS
728 # include <stdlib.h>
729 # include <stddef.h>
730 #else
731 # ifdef HAVE_STDLIB_H
732 #  include <stdlib.h>
733 # endif
734 #endif
735 #ifdef HAVE_STRING_H
736 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
737 #  include <memory.h>
738 # endif
739 # include <string.h>
740 #endif
741 #ifdef HAVE_STRINGS_H
742 # include <strings.h>
743 #endif
744 #ifdef HAVE_INTTYPES_H
745 # include <inttypes.h>
746 #endif
747 #ifdef HAVE_STDINT_H
748 # include <stdint.h>
749 #endif
750 #ifdef HAVE_UNISTD_H
751 # include <unistd.h>
752 #endif"
753
754 enable_option_checking=no
755 ac_subst_vars='am__EXEEXT_FALSE
756 am__EXEEXT_TRUE
757 LTLIBOBJS
758 LIBOBJS
759 subdirs
760 HAVE_CXX_FALSE
761 HAVE_CXX_TRUE
762 HAVE_LIBUSB_FALSE
763 HAVE_LIBUSB_TRUE
764 LIBUSB_CONFIG
765 HAVE_LIBEXIF_FALSE
766 HAVE_LIBEXIF_TRUE
767 REQUIREMENTS_FOR_LIBEXIF
768 LIBEXIF_CONFIG_PROG
769 PKG_CONFIG_LIBDIR
770 LIBEXIF_LIBS
771 LIBEXIF_CFLAGS
772 pkgconfigdir
773 hotplugusermapdir
774 hotplugdocdir
775 HAVE_LINUX_FALSE
776 HAVE_LINUX_TRUE
777 ENABLE_RPM_FALSE
778 ENABLE_RPM_TRUE
779 RPMBUILD
780 camlibdocdir
781 apidocdir
782 ENABLE_GTK_DOC_FALSE
783 ENABLE_GTK_DOC_TRUE
784 GTKDOC
785 HTML_APIDOC_INTERNALS_DIR
786 DOXYGEN_OUTPUT_DIR
787 HTML_APIDOC_DIR
788 HAVE_DOT
789 HAVE_DOT_FALSE
790 HAVE_DOT_TRUE
791 HAVE_DOXYGEN_FALSE
792 HAVE_DOXYGEN_TRUE
793 DOXYGEN
794 DOT
795 ALL_CURRENT_CAMLIBS
796 ALL_DEFINED_CAMLIBS
797 BUILD_THESE_CAMLIBS
798 CAMLIB_LIBS
799 CAMLIB_LDFLAGS
800 camlibdir
801 HAVE_UDEV_FALSE
802 HAVE_UDEV_TRUE
803 udevscriptdir
804 utilsdir
805 effective_target
806 LIBGD
807 LIBJPEG
808 POSUB
809 LTLIBINTL
810 LIBINTL
811 INTLLIBS
812 LTLIBICONV
813 LIBICONV
814 MSGMERGE
815 XGETTEXT
816 GMSGFMT
817 MSGFMT
818 USE_NLS
819 MKINSTALLDIRS
820 GETTEXT_PACKAGE
821 MAIL_GPHOTO_TRANSLATION
822 MAIL_GPHOTO_USER
823 MAIL_GPHOTO_DEVEL
824 URL_USB_MASSSTORAGE
825 URL_JPHOTO_HOME
826 URL_DIGICAM_LIST
827 URL_GPHOTO_PROJECT
828 URL_GPHOTO_HOME
829 CXXCPP
830 OTOOL64
831 OTOOL
832 LIPO
833 NMEDIT
834 DSYMUTIL
835 lt_ECHO
836 RANLIB
837 AR
838 LN_S
839 NM
840 ac_ct_DUMPBIN
841 DUMPBIN
842 LD
843 FGREP
844 EGREP
845 GREP
846 SED
847 LIBTOOL
848 OBJDUMP
849 DLLTOOL
850 AS
851 host_os
852 host_vendor
853 host_cpu
854 host
855 build_os
856 build_vendor
857 build_cpu
858 build
859 PKG_CONFIG_PATH
860 PKG_CONFIG
861 ENABLED_GP2DDB_FALSE
862 ENABLED_GP2DDB_TRUE
863 BISON
864 FLEX
865 AM_LDFLAGS
866 AM_CXXFLAGS
867 AM_CFLAGS
868 AM_CPPFLAGS
869 HAVE_GCC_FALSE
870 HAVE_GCC_TRUE
871 NO_UNUSED_CFLAGS
872 am__fastdepCXX_FALSE
873 am__fastdepCXX_TRUE
874 CXXDEPMODE
875 ac_ct_CXX
876 CXXFLAGS
877 CXX
878 CPP
879 am__fastdepCC_FALSE
880 am__fastdepCC_TRUE
881 CCDEPMODE
882 AMDEPBACKSLASH
883 AMDEP_FALSE
884 AMDEP_TRUE
885 am__quote
886 am__include
887 DEPDIR
888 OBJEXT
889 EXEEXT
890 ac_ct_CC
891 CPPFLAGS
892 LDFLAGS
893 CFLAGS
894 CC
895 LIBGPHOTO2_VERSION_INFO
896 LIBGPHOTO2_CURRENT_MIN
897 LIBGPHOTO2_CURRENT
898 LIBGPHOTO2_REVISION
899 LIBGPHOTO2_AGE
900 am__untar
901 am__tar
902 AMTAR
903 am__leading_dot
904 SET_MAKE
905 AWK
906 mkdir_p
907 MKDIR_P
908 INSTALL_STRIP_PROGRAM
909 STRIP
910 install_sh
911 MAKEINFO
912 AUTOHEADER
913 AUTOMAKE
914 AUTOCONF
915 ACLOCAL
916 VERSION
917 PACKAGE
918 CYGPATH_W
919 am__isrc
920 INSTALL_DATA
921 INSTALL_SCRIPT
922 INSTALL_PROGRAM
923 target_alias
924 host_alias
925 build_alias
926 LIBS
927 ECHO_T
928 ECHO_N
929 ECHO_C
930 DEFS
931 mandir
932 localedir
933 libdir
934 psdir
935 pdfdir
936 dvidir
937 htmldir
938 infodir
939 docdir
940 oldincludedir
941 includedir
942 localstatedir
943 sharedstatedir
944 sysconfdir
945 datadir
946 datarootdir
947 libexecdir
948 sbindir
949 bindir
950 program_transform_name
951 prefix
952 exec_prefix
953 PACKAGE_URL
954 PACKAGE_BUGREPORT
955 PACKAGE_STRING
956 PACKAGE_VERSION
957 PACKAGE_TARNAME
958 PACKAGE_NAME
959 PATH_SEPARATOR
960 SHELL'
961 ac_subst_files=''
962 ac_user_opts='
963 enable_option_checking
964 enable_dependency_tracking
965 enable_gp2ddb
966 enable_static
967 enable_shared
968 with_pic
969 enable_fast_install
970 with_gnu_ld
971 enable_libtool_lock
972 enable_nls
973 enable_rpath
974 with_libiconv_prefix
975 with_libintl_prefix
976 enable_largefile
977 with_camlibdir
978 with_drivers
979 with_doc_dir
980 enable_docs
981 with_html_dir
982 with_rpmbuild
983 with_hotplug_doc_dir
984 with_hotplug_usermap_dir
985 with_libexif
986 '
987       ac_precious_vars='build_alias
988 host_alias
989 target_alias
990 CC
991 CFLAGS
992 LDFLAGS
993 LIBS
994 CPPFLAGS
995 CPP
996 CXX
997 CXXFLAGS
998 CCC
999 PKG_CONFIG
1000 PKG_CONFIG_PATH
1001 CXXCPP
1002 utilsdir
1003 udevscriptdir
1004 LIBEXIF_CFLAGS
1005 LIBEXIF_LIBS
1006 PKG_CONFIG_LIBDIR'
1007 ac_subdirs_all='libgphoto2_port'
1008
1009 # Initialize some variables set by options.
1010 ac_init_help=
1011 ac_init_version=false
1012 ac_unrecognized_opts=
1013 ac_unrecognized_sep=
1014 # The variables have the same names as the options, with
1015 # dashes changed to underlines.
1016 cache_file=/dev/null
1017 exec_prefix=NONE
1018 no_create=
1019 no_recursion=
1020 prefix=NONE
1021 program_prefix=NONE
1022 program_suffix=NONE
1023 program_transform_name=s,x,x,
1024 silent=
1025 site=
1026 srcdir=
1027 verbose=
1028 x_includes=NONE
1029 x_libraries=NONE
1030
1031 # Installation directory options.
1032 # These are left unexpanded so users can "make install exec_prefix=/foo"
1033 # and all the variables that are supposed to be based on exec_prefix
1034 # by default will actually change.
1035 # Use braces instead of parens because sh, perl, etc. also accept them.
1036 # (The list follows the same order as the GNU Coding Standards.)
1037 bindir='${exec_prefix}/bin'
1038 sbindir='${exec_prefix}/sbin'
1039 libexecdir='${exec_prefix}/libexec'
1040 datarootdir='${prefix}/share'
1041 datadir='${datarootdir}'
1042 sysconfdir='${prefix}/etc'
1043 sharedstatedir='${prefix}/com'
1044 localstatedir='${prefix}/var'
1045 includedir='${prefix}/include'
1046 oldincludedir='/usr/include'
1047 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1048 infodir='${datarootdir}/info'
1049 htmldir='${docdir}'
1050 dvidir='${docdir}'
1051 pdfdir='${docdir}'
1052 psdir='${docdir}'
1053 libdir='${exec_prefix}/lib'
1054 localedir='${datarootdir}/locale'
1055 mandir='${datarootdir}/man'
1056
1057 ac_prev=
1058 ac_dashdash=
1059 for ac_option
1060 do
1061   # If the previous option needs an argument, assign it.
1062   if test -n "$ac_prev"; then
1063     eval $ac_prev=\$ac_option
1064     ac_prev=
1065     continue
1066   fi
1067
1068   case $ac_option in
1069   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1070   *=)   ac_optarg= ;;
1071   *)    ac_optarg=yes ;;
1072   esac
1073
1074   # Accept the important Cygnus configure options, so we can diagnose typos.
1075
1076   case $ac_dashdash$ac_option in
1077   --)
1078     ac_dashdash=yes ;;
1079
1080   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1081     ac_prev=bindir ;;
1082   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1083     bindir=$ac_optarg ;;
1084
1085   -build | --build | --buil | --bui | --bu)
1086     ac_prev=build_alias ;;
1087   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1088     build_alias=$ac_optarg ;;
1089
1090   -cache-file | --cache-file | --cache-fil | --cache-fi \
1091   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1092     ac_prev=cache_file ;;
1093   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1094   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1095     cache_file=$ac_optarg ;;
1096
1097   --config-cache | -C)
1098     cache_file=config.cache ;;
1099
1100   -datadir | --datadir | --datadi | --datad)
1101     ac_prev=datadir ;;
1102   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1103     datadir=$ac_optarg ;;
1104
1105   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1106   | --dataroo | --dataro | --datar)
1107     ac_prev=datarootdir ;;
1108   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1109   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1110     datarootdir=$ac_optarg ;;
1111
1112   -disable-* | --disable-*)
1113     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1114     # Reject names that are not valid shell variable names.
1115     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1116       as_fn_error $? "invalid feature name: $ac_useropt"
1117     ac_useropt_orig=$ac_useropt
1118     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119     case $ac_user_opts in
1120       *"
1121 "enable_$ac_useropt"
1122 "*) ;;
1123       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1124          ac_unrecognized_sep=', ';;
1125     esac
1126     eval enable_$ac_useropt=no ;;
1127
1128   -docdir | --docdir | --docdi | --doc | --do)
1129     ac_prev=docdir ;;
1130   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1131     docdir=$ac_optarg ;;
1132
1133   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1134     ac_prev=dvidir ;;
1135   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1136     dvidir=$ac_optarg ;;
1137
1138   -enable-* | --enable-*)
1139     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1140     # Reject names that are not valid shell variable names.
1141     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142       as_fn_error $? "invalid feature name: $ac_useropt"
1143     ac_useropt_orig=$ac_useropt
1144     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145     case $ac_user_opts in
1146       *"
1147 "enable_$ac_useropt"
1148 "*) ;;
1149       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1150          ac_unrecognized_sep=', ';;
1151     esac
1152     eval enable_$ac_useropt=\$ac_optarg ;;
1153
1154   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1155   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1156   | --exec | --exe | --ex)
1157     ac_prev=exec_prefix ;;
1158   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1159   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1160   | --exec=* | --exe=* | --ex=*)
1161     exec_prefix=$ac_optarg ;;
1162
1163   -gas | --gas | --ga | --g)
1164     # Obsolete; use --with-gas.
1165     with_gas=yes ;;
1166
1167   -help | --help | --hel | --he | -h)
1168     ac_init_help=long ;;
1169   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1170     ac_init_help=recursive ;;
1171   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1172     ac_init_help=short ;;
1173
1174   -host | --host | --hos | --ho)
1175     ac_prev=host_alias ;;
1176   -host=* | --host=* | --hos=* | --ho=*)
1177     host_alias=$ac_optarg ;;
1178
1179   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1180     ac_prev=htmldir ;;
1181   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1182   | --ht=*)
1183     htmldir=$ac_optarg ;;
1184
1185   -includedir | --includedir | --includedi | --included | --include \
1186   | --includ | --inclu | --incl | --inc)
1187     ac_prev=includedir ;;
1188   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1189   | --includ=* | --inclu=* | --incl=* | --inc=*)
1190     includedir=$ac_optarg ;;
1191
1192   -infodir | --infodir | --infodi | --infod | --info | --inf)
1193     ac_prev=infodir ;;
1194   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1195     infodir=$ac_optarg ;;
1196
1197   -libdir | --libdir | --libdi | --libd)
1198     ac_prev=libdir ;;
1199   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1200     libdir=$ac_optarg ;;
1201
1202   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1203   | --libexe | --libex | --libe)
1204     ac_prev=libexecdir ;;
1205   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1206   | --libexe=* | --libex=* | --libe=*)
1207     libexecdir=$ac_optarg ;;
1208
1209   -localedir | --localedir | --localedi | --localed | --locale)
1210     ac_prev=localedir ;;
1211   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1212     localedir=$ac_optarg ;;
1213
1214   -localstatedir | --localstatedir | --localstatedi | --localstated \
1215   | --localstate | --localstat | --localsta | --localst | --locals)
1216     ac_prev=localstatedir ;;
1217   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1218   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1219     localstatedir=$ac_optarg ;;
1220
1221   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1222     ac_prev=mandir ;;
1223   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1224     mandir=$ac_optarg ;;
1225
1226   -nfp | --nfp | --nf)
1227     # Obsolete; use --without-fp.
1228     with_fp=no ;;
1229
1230   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1231   | --no-cr | --no-c | -n)
1232     no_create=yes ;;
1233
1234   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1235   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1236     no_recursion=yes ;;
1237
1238   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1239   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1240   | --oldin | --oldi | --old | --ol | --o)
1241     ac_prev=oldincludedir ;;
1242   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1243   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1244   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1245     oldincludedir=$ac_optarg ;;
1246
1247   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1248     ac_prev=prefix ;;
1249   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1250     prefix=$ac_optarg ;;
1251
1252   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1253   | --program-pre | --program-pr | --program-p)
1254     ac_prev=program_prefix ;;
1255   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1256   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1257     program_prefix=$ac_optarg ;;
1258
1259   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1260   | --program-suf | --program-su | --program-s)
1261     ac_prev=program_suffix ;;
1262   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1263   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1264     program_suffix=$ac_optarg ;;
1265
1266   -program-transform-name | --program-transform-name \
1267   | --program-transform-nam | --program-transform-na \
1268   | --program-transform-n | --program-transform- \
1269   | --program-transform | --program-transfor \
1270   | --program-transfo | --program-transf \
1271   | --program-trans | --program-tran \
1272   | --progr-tra | --program-tr | --program-t)
1273     ac_prev=program_transform_name ;;
1274   -program-transform-name=* | --program-transform-name=* \
1275   | --program-transform-nam=* | --program-transform-na=* \
1276   | --program-transform-n=* | --program-transform-=* \
1277   | --program-transform=* | --program-transfor=* \
1278   | --program-transfo=* | --program-transf=* \
1279   | --program-trans=* | --program-tran=* \
1280   | --progr-tra=* | --program-tr=* | --program-t=*)
1281     program_transform_name=$ac_optarg ;;
1282
1283   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1284     ac_prev=pdfdir ;;
1285   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1286     pdfdir=$ac_optarg ;;
1287
1288   -psdir | --psdir | --psdi | --psd | --ps)
1289     ac_prev=psdir ;;
1290   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1291     psdir=$ac_optarg ;;
1292
1293   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1294   | -silent | --silent | --silen | --sile | --sil)
1295     silent=yes ;;
1296
1297   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1298     ac_prev=sbindir ;;
1299   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1300   | --sbi=* | --sb=*)
1301     sbindir=$ac_optarg ;;
1302
1303   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1304   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1305   | --sharedst | --shareds | --shared | --share | --shar \
1306   | --sha | --sh)
1307     ac_prev=sharedstatedir ;;
1308   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1309   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1310   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1311   | --sha=* | --sh=*)
1312     sharedstatedir=$ac_optarg ;;
1313
1314   -site | --site | --sit)
1315     ac_prev=site ;;
1316   -site=* | --site=* | --sit=*)
1317     site=$ac_optarg ;;
1318
1319   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1320     ac_prev=srcdir ;;
1321   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1322     srcdir=$ac_optarg ;;
1323
1324   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1325   | --syscon | --sysco | --sysc | --sys | --sy)
1326     ac_prev=sysconfdir ;;
1327   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1328   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1329     sysconfdir=$ac_optarg ;;
1330
1331   -target | --target | --targe | --targ | --tar | --ta | --t)
1332     ac_prev=target_alias ;;
1333   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1334     target_alias=$ac_optarg ;;
1335
1336   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1337     verbose=yes ;;
1338
1339   -version | --version | --versio | --versi | --vers | -V)
1340     ac_init_version=: ;;
1341
1342   -with-* | --with-*)
1343     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1344     # Reject names that are not valid shell variable names.
1345     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1346       as_fn_error $? "invalid package name: $ac_useropt"
1347     ac_useropt_orig=$ac_useropt
1348     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1349     case $ac_user_opts in
1350       *"
1351 "with_$ac_useropt"
1352 "*) ;;
1353       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1354          ac_unrecognized_sep=', ';;
1355     esac
1356     eval with_$ac_useropt=\$ac_optarg ;;
1357
1358   -without-* | --without-*)
1359     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1360     # Reject names that are not valid shell variable names.
1361     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1362       as_fn_error $? "invalid package name: $ac_useropt"
1363     ac_useropt_orig=$ac_useropt
1364     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1365     case $ac_user_opts in
1366       *"
1367 "with_$ac_useropt"
1368 "*) ;;
1369       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1370          ac_unrecognized_sep=', ';;
1371     esac
1372     eval with_$ac_useropt=no ;;
1373
1374   --x)
1375     # Obsolete; use --with-x.
1376     with_x=yes ;;
1377
1378   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1379   | --x-incl | --x-inc | --x-in | --x-i)
1380     ac_prev=x_includes ;;
1381   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1382   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1383     x_includes=$ac_optarg ;;
1384
1385   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1386   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1387     ac_prev=x_libraries ;;
1388   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1389   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1390     x_libraries=$ac_optarg ;;
1391
1392   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1393 Try \`$0 --help' for more information"
1394     ;;
1395
1396   *=*)
1397     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1398     # Reject names that are not valid shell variable names.
1399     case $ac_envvar in #(
1400       '' | [0-9]* | *[!_$as_cr_alnum]* )
1401       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1402     esac
1403     eval $ac_envvar=\$ac_optarg
1404     export $ac_envvar ;;
1405
1406   *)
1407     # FIXME: should be removed in autoconf 3.0.
1408     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1409     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1410       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1411     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1412     ;;
1413
1414   esac
1415 done
1416
1417 if test -n "$ac_prev"; then
1418   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1419   as_fn_error $? "missing argument to $ac_option"
1420 fi
1421
1422 if test -n "$ac_unrecognized_opts"; then
1423   case $enable_option_checking in
1424     no) ;;
1425     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1426     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1427   esac
1428 fi
1429
1430 # Check all directory arguments for consistency.
1431 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1432                 datadir sysconfdir sharedstatedir localstatedir includedir \
1433                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1434                 libdir localedir mandir
1435 do
1436   eval ac_val=\$$ac_var
1437   # Remove trailing slashes.
1438   case $ac_val in
1439     */ )
1440       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1441       eval $ac_var=\$ac_val;;
1442   esac
1443   # Be sure to have absolute directory names.
1444   case $ac_val in
1445     [\\/$]* | ?:[\\/]* )  continue;;
1446     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1447   esac
1448   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1449 done
1450
1451 # There might be people who depend on the old broken behavior: `$host'
1452 # used to hold the argument of --host etc.
1453 # FIXME: To remove some day.
1454 build=$build_alias
1455 host=$host_alias
1456 target=$target_alias
1457
1458 # FIXME: To remove some day.
1459 if test "x$host_alias" != x; then
1460   if test "x$build_alias" = x; then
1461     cross_compiling=maybe
1462     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1463     If a cross compiler is detected then cross compile mode will be used" >&2
1464   elif test "x$build_alias" != "x$host_alias"; then
1465     cross_compiling=yes
1466   fi
1467 fi
1468
1469 ac_tool_prefix=
1470 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1471
1472 test "$silent" = yes && exec 6>/dev/null
1473
1474
1475 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1476 ac_ls_di=`ls -di .` &&
1477 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1478   as_fn_error $? "working directory cannot be determined"
1479 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1480   as_fn_error $? "pwd does not report name of working directory"
1481
1482
1483 # Find the source files, if location was not specified.
1484 if test -z "$srcdir"; then
1485   ac_srcdir_defaulted=yes
1486   # Try the directory containing this script, then the parent directory.
1487   ac_confdir=`$as_dirname -- "$as_myself" ||
1488 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1489          X"$as_myself" : 'X\(//\)[^/]' \| \
1490          X"$as_myself" : 'X\(//\)$' \| \
1491          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1492 $as_echo X"$as_myself" |
1493     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1494             s//\1/
1495             q
1496           }
1497           /^X\(\/\/\)[^/].*/{
1498             s//\1/
1499             q
1500           }
1501           /^X\(\/\/\)$/{
1502             s//\1/
1503             q
1504           }
1505           /^X\(\/\).*/{
1506             s//\1/
1507             q
1508           }
1509           s/.*/./; q'`
1510   srcdir=$ac_confdir
1511   if test ! -r "$srcdir/$ac_unique_file"; then
1512     srcdir=..
1513   fi
1514 else
1515   ac_srcdir_defaulted=no
1516 fi
1517 if test ! -r "$srcdir/$ac_unique_file"; then
1518   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1519   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1520 fi
1521 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1522 ac_abs_confdir=`(
1523         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1524         pwd)`
1525 # When building in place, set srcdir=.
1526 if test "$ac_abs_confdir" = "$ac_pwd"; then
1527   srcdir=.
1528 fi
1529 # Remove unnecessary trailing slashes from srcdir.
1530 # Double slashes in file names in object file debugging info
1531 # mess up M-x gdb in Emacs.
1532 case $srcdir in
1533 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1534 esac
1535 for ac_var in $ac_precious_vars; do
1536   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1537   eval ac_env_${ac_var}_value=\$${ac_var}
1538   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1539   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1540 done
1541
1542 #
1543 # Report the --help message.
1544 #
1545 if test "$ac_init_help" = "long"; then
1546   # Omit some internal or obsolete options to make the list less imposing.
1547   # This message is too long to be a string in the A/UX 3.1 sh.
1548   cat <<_ACEOF
1549 \`configure' configures libgphoto2 photo camera library 2.4.11 to adapt to many kinds of systems.
1550
1551 Usage: $0 [OPTION]... [VAR=VALUE]...
1552
1553 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1554 VAR=VALUE.  See below for descriptions of some of the useful variables.
1555
1556 Defaults for the options are specified in brackets.
1557
1558 Configuration:
1559   -h, --help              display this help and exit
1560       --help=short        display options specific to this package
1561       --help=recursive    display the short help of all the included packages
1562   -V, --version           display version information and exit
1563   -q, --quiet, --silent   do not print \`checking ...' messages
1564       --cache-file=FILE   cache test results in FILE [disabled]
1565   -C, --config-cache      alias for \`--cache-file=config.cache'
1566   -n, --no-create         do not create output files
1567       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1568
1569 Installation directories:
1570   --prefix=PREFIX         install architecture-independent files in PREFIX
1571                           [$ac_default_prefix]
1572   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1573                           [PREFIX]
1574
1575 By default, \`make install' will install all the files in
1576 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1577 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1578 for instance \`--prefix=\$HOME'.
1579
1580 For better control, use the options below.
1581
1582 Fine tuning of the installation directories:
1583   --bindir=DIR            user executables [EPREFIX/bin]
1584   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1585   --libexecdir=DIR        program executables [EPREFIX/libexec]
1586   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1587   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1588   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1589   --libdir=DIR            object code libraries [EPREFIX/lib]
1590   --includedir=DIR        C header files [PREFIX/include]
1591   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1592   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1593   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1594   --infodir=DIR           info documentation [DATAROOTDIR/info]
1595   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1596   --mandir=DIR            man documentation [DATAROOTDIR/man]
1597   --docdir=DIR            documentation root [DATAROOTDIR/doc/libgphoto2]
1598   --htmldir=DIR           html documentation [DOCDIR]
1599   --dvidir=DIR            dvi documentation [DOCDIR]
1600   --pdfdir=DIR            pdf documentation [DOCDIR]
1601   --psdir=DIR             ps documentation [DOCDIR]
1602 _ACEOF
1603
1604   cat <<\_ACEOF
1605
1606 Program names:
1607   --program-prefix=PREFIX            prepend PREFIX to installed program names
1608   --program-suffix=SUFFIX            append SUFFIX to installed program names
1609   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1610
1611 System types:
1612   --build=BUILD     configure for building on BUILD [guessed]
1613   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1614 _ACEOF
1615 fi
1616
1617 if test -n "$ac_init_help"; then
1618   case $ac_init_help in
1619      short | recursive ) echo "Configuration of libgphoto2 photo camera library 2.4.11:";;
1620    esac
1621   cat <<\_ACEOF
1622
1623 Optional Features:
1624   --disable-option-checking  ignore unrecognized --enable/--with options
1625   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1626   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1627   --disable-dependency-tracking  speeds up one-time build
1628   --enable-dependency-tracking   do not reject slow dependency extractors
1629   --enable-gp2ddb         enable EXPERIMENTAL PRE-ALPHA gphoto2 device
1630                           database code
1631   --enable-static[=PKGS]  build static libraries [default=no]
1632   --enable-shared[=PKGS]  build shared libraries [default=yes]
1633   --enable-fast-install[=PKGS]
1634                           optimize for fast installation [default=yes]
1635   --disable-libtool-lock  avoid locking (might break parallel builds)
1636   --disable-nls           do not use Native Language Support
1637   --disable-rpath         do not hardcode runtime library paths
1638   --disable-largefile     omit support for large files
1639   --enable-docs           Use gtk-doc to build documentation [default=no]
1640
1641 Optional Packages:
1642   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1643   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1644   --with-pic              try to use only PIC/non-PIC objects [default=use
1645                           both]
1646   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1647   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1648   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1649   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1650   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1651   --without-libintl-prefix     don't search for libintl in includedir and libdir
1652   --with-camlibdir=<path> install camlibs in directory <path>
1653   --with-drivers=<list>   Compile drivers in <list>. Drivers may be separated
1654                           with commas. 'all' is the default and compiles all
1655                           drivers. Possible drivers are: agfa_cl20 aox ax203
1656                           barbie canon casio_qv clicksmart310 digigr8 digita
1657                           dimera3500 directory enigma13 gsmart300 hp215 iclick
1658                           jamcam jd11 jl2005a kodak_dc120 kodak_dc210
1659                           kodak_dc240 kodak_ez200 largan lg_gsm mars
1660                           panasonic_coolshot panasonic_l859 panasonic_dc1000
1661                           panasonic_dc1580 pccam300 pccam600 polaroid_pdc320
1662                           polaroid_pdc640 polaroid_pdc700 ptp2 ricoh ricoh_g3
1663                           samsung sierra sipix_blink2 sipix_web2 smal sonix
1664                           sony_dscf1 sony_dscf55 soundvision spca50x sq905
1665                           st2205 stv0674 sx330z toshiba_pdrm11
1666   --with-doc-dir=PATH     Where to install docs [default=autodetect]
1667   --with-html-dir=PATH    Where to install html docs [default=autodetect]
1668   --with-rpmbuild=PATH    Program to use for building RPMs
1669   --with-hotplug-doc-dir=PATH
1670                           Where to install hotplug scripts as docs
1671                           [default=autodetect]
1672   --with-hotplug-usermap-dir=PATH
1673                           Where to install hotplug scripts as docs
1674                           [default=autodetect]
1675   --with-libexif=PREFIX   where to find libexif, "no" or "auto"
1676
1677 Some influential environment variables:
1678   CC          C compiler command
1679   CFLAGS      C compiler flags
1680   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1681               nonstandard directory <lib dir>
1682   LIBS        libraries to pass to the linker, e.g. -l<library>
1683   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1684               you have headers in a nonstandard directory <include dir>
1685   CPP         C preprocessor
1686   CXX         C++ compiler command
1687   CXXFLAGS    C++ compiler flags
1688   PKG_CONFIG  pkg-config package config utility
1689   PKG_CONFIG_PATH
1690               directory where pkg-config looks for *.pc files
1691   CXXCPP      C++ preprocessor
1692   utilsdir    Directory where utilities like print-camera-list will be
1693               installed
1694   udevscriptdir
1695               Directory where udev scripts like check-ptp-camera will be
1696               installed
1697   LIBEXIF_CFLAGS
1698               CFLAGS for compiling with libexif
1699   LIBEXIF_LIBS
1700               LIBS to add for linking against libexif
1701   PKG_CONFIG_LIBDIR
1702               path overriding pkg-config's built-in search path
1703
1704 Use these variables to override the choices made by `configure' or to help
1705 it to find libraries and programs with nonstandard names/locations.
1706
1707 Report bugs to <gphoto-devel@lists.sourceforge.net>.
1708 _ACEOF
1709 ac_status=$?
1710 fi
1711
1712 if test "$ac_init_help" = "recursive"; then
1713   # If there are subdirs, report their specific --help.
1714   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1715     test -d "$ac_dir" ||
1716       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1717       continue
1718     ac_builddir=.
1719
1720 case "$ac_dir" in
1721 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1722 *)
1723   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1724   # A ".." for each directory in $ac_dir_suffix.
1725   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1726   case $ac_top_builddir_sub in
1727   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1728   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1729   esac ;;
1730 esac
1731 ac_abs_top_builddir=$ac_pwd
1732 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1733 # for backward compatibility:
1734 ac_top_builddir=$ac_top_build_prefix
1735
1736 case $srcdir in
1737   .)  # We are building in place.
1738     ac_srcdir=.
1739     ac_top_srcdir=$ac_top_builddir_sub
1740     ac_abs_top_srcdir=$ac_pwd ;;
1741   [\\/]* | ?:[\\/]* )  # Absolute name.
1742     ac_srcdir=$srcdir$ac_dir_suffix;
1743     ac_top_srcdir=$srcdir
1744     ac_abs_top_srcdir=$srcdir ;;
1745   *) # Relative name.
1746     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1747     ac_top_srcdir=$ac_top_build_prefix$srcdir
1748     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1749 esac
1750 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1751
1752     cd "$ac_dir" || { ac_status=$?; continue; }
1753     # Check for guested configure.
1754     if test -f "$ac_srcdir/configure.gnu"; then
1755       echo &&
1756       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1757     elif test -f "$ac_srcdir/configure"; then
1758       echo &&
1759       $SHELL "$ac_srcdir/configure" --help=recursive
1760     else
1761       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1762     fi || ac_status=$?
1763     cd "$ac_pwd" || { ac_status=$?; break; }
1764   done
1765 fi
1766
1767 test -n "$ac_init_help" && exit $ac_status
1768 if $ac_init_version; then
1769   cat <<\_ACEOF
1770 libgphoto2 photo camera library configure 2.4.11
1771 generated by GNU Autoconf 2.68
1772
1773 Copyright (C) 2010 Free Software Foundation, Inc.
1774 This configure script is free software; the Free Software Foundation
1775 gives unlimited permission to copy, distribute and modify it.
1776 _ACEOF
1777   exit
1778 fi
1779
1780 ## ------------------------ ##
1781 ## Autoconf initialization. ##
1782 ## ------------------------ ##
1783
1784 # ac_fn_c_try_compile LINENO
1785 # --------------------------
1786 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1787 ac_fn_c_try_compile ()
1788 {
1789   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790   rm -f conftest.$ac_objext
1791   if { { ac_try="$ac_compile"
1792 case "(($ac_try" in
1793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794   *) ac_try_echo=$ac_try;;
1795 esac
1796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797 $as_echo "$ac_try_echo"; } >&5
1798   (eval "$ac_compile") 2>conftest.err
1799   ac_status=$?
1800   if test -s conftest.err; then
1801     grep -v '^ *+' conftest.err >conftest.er1
1802     cat conftest.er1 >&5
1803     mv -f conftest.er1 conftest.err
1804   fi
1805   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806   test $ac_status = 0; } && {
1807          test -z "$ac_c_werror_flag" ||
1808          test ! -s conftest.err
1809        } && test -s conftest.$ac_objext; then :
1810   ac_retval=0
1811 else
1812   $as_echo "$as_me: failed program was:" >&5
1813 sed 's/^/| /' conftest.$ac_ext >&5
1814
1815         ac_retval=1
1816 fi
1817   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818   as_fn_set_status $ac_retval
1819
1820 } # ac_fn_c_try_compile
1821
1822 # ac_fn_c_try_cpp LINENO
1823 # ----------------------
1824 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1825 ac_fn_c_try_cpp ()
1826 {
1827   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828   if { { ac_try="$ac_cpp conftest.$ac_ext"
1829 case "(($ac_try" in
1830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831   *) ac_try_echo=$ac_try;;
1832 esac
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 $as_echo "$ac_try_echo"; } >&5
1835   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1836   ac_status=$?
1837   if test -s conftest.err; then
1838     grep -v '^ *+' conftest.err >conftest.er1
1839     cat conftest.er1 >&5
1840     mv -f conftest.er1 conftest.err
1841   fi
1842   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843   test $ac_status = 0; } > conftest.i && {
1844          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1845          test ! -s conftest.err
1846        }; then :
1847   ac_retval=0
1848 else
1849   $as_echo "$as_me: failed program was:" >&5
1850 sed 's/^/| /' conftest.$ac_ext >&5
1851
1852     ac_retval=1
1853 fi
1854   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855   as_fn_set_status $ac_retval
1856
1857 } # ac_fn_c_try_cpp
1858
1859 # ac_fn_cxx_try_compile LINENO
1860 # ----------------------------
1861 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1862 ac_fn_cxx_try_compile ()
1863 {
1864   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865   rm -f conftest.$ac_objext
1866   if { { ac_try="$ac_compile"
1867 case "(($ac_try" in
1868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869   *) ac_try_echo=$ac_try;;
1870 esac
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 $as_echo "$ac_try_echo"; } >&5
1873   (eval "$ac_compile") 2>conftest.err
1874   ac_status=$?
1875   if test -s conftest.err; then
1876     grep -v '^ *+' conftest.err >conftest.er1
1877     cat conftest.er1 >&5
1878     mv -f conftest.er1 conftest.err
1879   fi
1880   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881   test $ac_status = 0; } && {
1882          test -z "$ac_cxx_werror_flag" ||
1883          test ! -s conftest.err
1884        } && test -s conftest.$ac_objext; then :
1885   ac_retval=0
1886 else
1887   $as_echo "$as_me: failed program was:" >&5
1888 sed 's/^/| /' conftest.$ac_ext >&5
1889
1890         ac_retval=1
1891 fi
1892   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893   as_fn_set_status $ac_retval
1894
1895 } # ac_fn_cxx_try_compile
1896
1897 # ac_fn_c_try_link LINENO
1898 # -----------------------
1899 # Try to link conftest.$ac_ext, and return whether this succeeded.
1900 ac_fn_c_try_link ()
1901 {
1902   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903   rm -f conftest.$ac_objext conftest$ac_exeext
1904   if { { ac_try="$ac_link"
1905 case "(($ac_try" in
1906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1907   *) ac_try_echo=$ac_try;;
1908 esac
1909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910 $as_echo "$ac_try_echo"; } >&5
1911   (eval "$ac_link") 2>conftest.err
1912   ac_status=$?
1913   if test -s conftest.err; then
1914     grep -v '^ *+' conftest.err >conftest.er1
1915     cat conftest.er1 >&5
1916     mv -f conftest.er1 conftest.err
1917   fi
1918   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1919   test $ac_status = 0; } && {
1920          test -z "$ac_c_werror_flag" ||
1921          test ! -s conftest.err
1922        } && test -s conftest$ac_exeext && {
1923          test "$cross_compiling" = yes ||
1924          $as_test_x conftest$ac_exeext
1925        }; then :
1926   ac_retval=0
1927 else
1928   $as_echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1930
1931         ac_retval=1
1932 fi
1933   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1934   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1935   # interfere with the next link command; also delete a directory that is
1936   # left behind by Apple's compiler.  We do this before executing the actions.
1937   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1938   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939   as_fn_set_status $ac_retval
1940
1941 } # ac_fn_c_try_link
1942
1943 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1944 # -------------------------------------------------------
1945 # Tests whether HEADER exists and can be compiled using the include files in
1946 # INCLUDES, setting the cache variable VAR accordingly.
1947 ac_fn_c_check_header_compile ()
1948 {
1949   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1951 $as_echo_n "checking for $2... " >&6; }
1952 if eval \${$3+:} false; then :
1953   $as_echo_n "(cached) " >&6
1954 else
1955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h.  */
1957 $4
1958 #include <$2>
1959 _ACEOF
1960 if ac_fn_c_try_compile "$LINENO"; then :
1961   eval "$3=yes"
1962 else
1963   eval "$3=no"
1964 fi
1965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1966 fi
1967 eval ac_res=\$$3
1968                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969 $as_echo "$ac_res" >&6; }
1970   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971
1972 } # ac_fn_c_check_header_compile
1973
1974 # ac_fn_c_try_run LINENO
1975 # ----------------------
1976 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1977 # that executables *can* be run.
1978 ac_fn_c_try_run ()
1979 {
1980   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981   if { { ac_try="$ac_link"
1982 case "(($ac_try" in
1983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1984   *) ac_try_echo=$ac_try;;
1985 esac
1986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1987 $as_echo "$ac_try_echo"; } >&5
1988   (eval "$ac_link") 2>&5
1989   ac_status=$?
1990   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1991   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1992   { { case "(($ac_try" in
1993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1994   *) ac_try_echo=$ac_try;;
1995 esac
1996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1997 $as_echo "$ac_try_echo"; } >&5
1998   (eval "$ac_try") 2>&5
1999   ac_status=$?
2000   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001   test $ac_status = 0; }; }; then :
2002   ac_retval=0
2003 else
2004   $as_echo "$as_me: program exited with status $ac_status" >&5
2005        $as_echo "$as_me: failed program was:" >&5
2006 sed 's/^/| /' conftest.$ac_ext >&5
2007
2008        ac_retval=$ac_status
2009 fi
2010   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2011   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012   as_fn_set_status $ac_retval
2013
2014 } # ac_fn_c_try_run
2015
2016 # ac_fn_c_check_func LINENO FUNC VAR
2017 # ----------------------------------
2018 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2019 ac_fn_c_check_func ()
2020 {
2021   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2023 $as_echo_n "checking for $2... " >&6; }
2024 if eval \${$3+:} false; then :
2025   $as_echo_n "(cached) " >&6
2026 else
2027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h.  */
2029 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2030    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2031 #define $2 innocuous_$2
2032
2033 /* System header to define __stub macros and hopefully few prototypes,
2034     which can conflict with char $2 (); below.
2035     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2036     <limits.h> exists even on freestanding compilers.  */
2037
2038 #ifdef __STDC__
2039 # include <limits.h>
2040 #else
2041 # include <assert.h>
2042 #endif
2043
2044 #undef $2
2045
2046 /* Override any GCC internal prototype to avoid an error.
2047    Use char because int might match the return type of a GCC
2048    builtin and then its argument prototype would still apply.  */
2049 #ifdef __cplusplus
2050 extern "C"
2051 #endif
2052 char $2 ();
2053 /* The GNU C library defines this for functions which it implements
2054     to always fail with ENOSYS.  Some functions are actually named
2055     something starting with __ and the normal name is an alias.  */
2056 #if defined __stub_$2 || defined __stub___$2
2057 choke me
2058 #endif
2059
2060 int
2061 main ()
2062 {
2063 return $2 ();
2064   ;
2065   return 0;
2066 }
2067 _ACEOF
2068 if ac_fn_c_try_link "$LINENO"; then :
2069   eval "$3=yes"
2070 else
2071   eval "$3=no"
2072 fi
2073 rm -f core conftest.err conftest.$ac_objext \
2074     conftest$ac_exeext conftest.$ac_ext
2075 fi
2076 eval ac_res=\$$3
2077                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078 $as_echo "$ac_res" >&6; }
2079   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2080
2081 } # ac_fn_c_check_func
2082
2083 # ac_fn_cxx_try_cpp LINENO
2084 # ------------------------
2085 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2086 ac_fn_cxx_try_cpp ()
2087 {
2088   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089   if { { ac_try="$ac_cpp conftest.$ac_ext"
2090 case "(($ac_try" in
2091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2092   *) ac_try_echo=$ac_try;;
2093 esac
2094 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2095 $as_echo "$ac_try_echo"; } >&5
2096   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2097   ac_status=$?
2098   if test -s conftest.err; then
2099     grep -v '^ *+' conftest.err >conftest.er1
2100     cat conftest.er1 >&5
2101     mv -f conftest.er1 conftest.err
2102   fi
2103   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2104   test $ac_status = 0; } > conftest.i && {
2105          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2106          test ! -s conftest.err
2107        }; then :
2108   ac_retval=0
2109 else
2110   $as_echo "$as_me: failed program was:" >&5
2111 sed 's/^/| /' conftest.$ac_ext >&5
2112
2113     ac_retval=1
2114 fi
2115   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2116   as_fn_set_status $ac_retval
2117
2118 } # ac_fn_cxx_try_cpp
2119
2120 # ac_fn_cxx_try_link LINENO
2121 # -------------------------
2122 # Try to link conftest.$ac_ext, and return whether this succeeded.
2123 ac_fn_cxx_try_link ()
2124 {
2125   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2126   rm -f conftest.$ac_objext conftest$ac_exeext
2127   if { { ac_try="$ac_link"
2128 case "(($ac_try" in
2129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2130   *) ac_try_echo=$ac_try;;
2131 esac
2132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2133 $as_echo "$ac_try_echo"; } >&5
2134   (eval "$ac_link") 2>conftest.err
2135   ac_status=$?
2136   if test -s conftest.err; then
2137     grep -v '^ *+' conftest.err >conftest.er1
2138     cat conftest.er1 >&5
2139     mv -f conftest.er1 conftest.err
2140   fi
2141   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2142   test $ac_status = 0; } && {
2143          test -z "$ac_cxx_werror_flag" ||
2144          test ! -s conftest.err
2145        } && test -s conftest$ac_exeext && {
2146          test "$cross_compiling" = yes ||
2147          $as_test_x conftest$ac_exeext
2148        }; then :
2149   ac_retval=0
2150 else
2151   $as_echo "$as_me: failed program was:" >&5
2152 sed 's/^/| /' conftest.$ac_ext >&5
2153
2154         ac_retval=1
2155 fi
2156   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2157   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2158   # interfere with the next link command; also delete a directory that is
2159   # left behind by Apple's compiler.  We do this before executing the actions.
2160   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2161   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2162   as_fn_set_status $ac_retval
2163
2164 } # ac_fn_cxx_try_link
2165
2166 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2167 # -------------------------------------------------------
2168 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2169 # the include files in INCLUDES and setting the cache variable VAR
2170 # accordingly.
2171 ac_fn_c_check_header_mongrel ()
2172 {
2173   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2174   if eval \${$3+:} false; then :
2175   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2176 $as_echo_n "checking for $2... " >&6; }
2177 if eval \${$3+:} false; then :
2178   $as_echo_n "(cached) " >&6
2179 fi
2180 eval ac_res=\$$3
2181                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2182 $as_echo "$ac_res" >&6; }
2183 else
2184   # Is the header compilable?
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2186 $as_echo_n "checking $2 usability... " >&6; }
2187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188 /* end confdefs.h.  */
2189 $4
2190 #include <$2>
2191 _ACEOF
2192 if ac_fn_c_try_compile "$LINENO"; then :
2193   ac_header_compiler=yes
2194 else
2195   ac_header_compiler=no
2196 fi
2197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2199 $as_echo "$ac_header_compiler" >&6; }
2200
2201 # Is the header present?
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2203 $as_echo_n "checking $2 presence... " >&6; }
2204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205 /* end confdefs.h.  */
2206 #include <$2>
2207 _ACEOF
2208 if ac_fn_c_try_cpp "$LINENO"; then :
2209   ac_header_preproc=yes
2210 else
2211   ac_header_preproc=no
2212 fi
2213 rm -f conftest.err conftest.i conftest.$ac_ext
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2215 $as_echo "$ac_header_preproc" >&6; }
2216
2217 # So?  What about this header?
2218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2219   yes:no: )
2220     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2221 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2222     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2223 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2224     ;;
2225   no:yes:* )
2226     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2227 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2228     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2229 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2230     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2231 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2232     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2233 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2234     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2235 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2236 ( $as_echo "## ------------------------------------------------- ##
2237 ## Report this to gphoto-devel@lists.sourceforge.net ##
2238 ## ------------------------------------------------- ##"
2239      ) | sed "s/^/$as_me: WARNING:     /" >&2
2240     ;;
2241 esac
2242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2243 $as_echo_n "checking for $2... " >&6; }
2244 if eval \${$3+:} false; then :
2245   $as_echo_n "(cached) " >&6
2246 else
2247   eval "$3=\$ac_header_compiler"
2248 fi
2249 eval ac_res=\$$3
2250                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2251 $as_echo "$ac_res" >&6; }
2252 fi
2253   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2254
2255 } # ac_fn_c_check_header_mongrel
2256
2257 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2258 # -------------------------------------------
2259 # Tests whether TYPE exists after having included INCLUDES, setting cache
2260 # variable VAR accordingly.
2261 ac_fn_c_check_type ()
2262 {
2263   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2265 $as_echo_n "checking for $2... " >&6; }
2266 if eval \${$3+:} false; then :
2267   $as_echo_n "(cached) " >&6
2268 else
2269   eval "$3=no"
2270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2271 /* end confdefs.h.  */
2272 $4
2273 int
2274 main ()
2275 {
2276 if (sizeof ($2))
2277          return 0;
2278   ;
2279   return 0;
2280 }
2281 _ACEOF
2282 if ac_fn_c_try_compile "$LINENO"; then :
2283   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284 /* end confdefs.h.  */
2285 $4
2286 int
2287 main ()
2288 {
2289 if (sizeof (($2)))
2290             return 0;
2291   ;
2292   return 0;
2293 }
2294 _ACEOF
2295 if ac_fn_c_try_compile "$LINENO"; then :
2296
2297 else
2298   eval "$3=yes"
2299 fi
2300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2301 fi
2302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2303 fi
2304 eval ac_res=\$$3
2305                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2306 $as_echo "$ac_res" >&6; }
2307   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2308
2309 } # ac_fn_c_check_type
2310
2311 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2312 # ----------------------------------------------------
2313 # Tries to find if the field MEMBER exists in type AGGR, after including
2314 # INCLUDES, setting cache variable VAR accordingly.
2315 ac_fn_c_check_member ()
2316 {
2317   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2318   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2319 $as_echo_n "checking for $2.$3... " >&6; }
2320 if eval \${$4+:} false; then :
2321   $as_echo_n "(cached) " >&6
2322 else
2323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2324 /* end confdefs.h.  */
2325 $5
2326 int
2327 main ()
2328 {
2329 static $2 ac_aggr;
2330 if (ac_aggr.$3)
2331 return 0;
2332   ;
2333   return 0;
2334 }
2335 _ACEOF
2336 if ac_fn_c_try_compile "$LINENO"; then :
2337   eval "$4=yes"
2338 else
2339   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2340 /* end confdefs.h.  */
2341 $5
2342 int
2343 main ()
2344 {
2345 static $2 ac_aggr;
2346 if (sizeof ac_aggr.$3)
2347 return 0;
2348   ;
2349   return 0;
2350 }
2351 _ACEOF
2352 if ac_fn_c_try_compile "$LINENO"; then :
2353   eval "$4=yes"
2354 else
2355   eval "$4=no"
2356 fi
2357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2358 fi
2359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2360 fi
2361 eval ac_res=\$$4
2362                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2363 $as_echo "$ac_res" >&6; }
2364   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2365
2366 } # ac_fn_c_check_member
2367 cat >config.log <<_ACEOF
2368 This file contains any messages produced by compilers while
2369 running configure, to aid debugging if configure makes a mistake.
2370
2371 It was created by libgphoto2 photo camera library $as_me 2.4.11, which was
2372 generated by GNU Autoconf 2.68.  Invocation command line was
2373
2374   $ $0 $@
2375
2376 _ACEOF
2377 exec 5>>config.log
2378 {
2379 cat <<_ASUNAME
2380 ## --------- ##
2381 ## Platform. ##
2382 ## --------- ##
2383
2384 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2385 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2386 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2387 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2388 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2389
2390 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2391 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2392
2393 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2394 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2395 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2396 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2397 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2398 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2399 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2400
2401 _ASUNAME
2402
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404 for as_dir in $PATH
2405 do
2406   IFS=$as_save_IFS
2407   test -z "$as_dir" && as_dir=.
2408     $as_echo "PATH: $as_dir"
2409   done
2410 IFS=$as_save_IFS
2411
2412 } >&5
2413
2414 cat >&5 <<_ACEOF
2415
2416
2417 ## ----------- ##
2418 ## Core tests. ##
2419 ## ----------- ##
2420
2421 _ACEOF
2422
2423
2424 # Keep a trace of the command line.
2425 # Strip out --no-create and --no-recursion so they do not pile up.
2426 # Strip out --silent because we don't want to record it for future runs.
2427 # Also quote any args containing shell meta-characters.
2428 # Make two passes to allow for proper duplicate-argument suppression.
2429 ac_configure_args=
2430 ac_configure_args0=
2431 ac_configure_args1=
2432 ac_must_keep_next=false
2433 for ac_pass in 1 2
2434 do
2435   for ac_arg
2436   do
2437     case $ac_arg in
2438     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2439     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2440     | -silent | --silent | --silen | --sile | --sil)
2441       continue ;;
2442     *\'*)
2443       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2444     esac
2445     case $ac_pass in
2446     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2447     2)
2448       as_fn_append ac_configure_args1 " '$ac_arg'"
2449       if test $ac_must_keep_next = true; then
2450         ac_must_keep_next=false # Got value, back to normal.
2451       else
2452         case $ac_arg in
2453           *=* | --config-cache | -C | -disable-* | --disable-* \
2454           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2455           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2456           | -with-* | --with-* | -without-* | --without-* | --x)
2457             case "$ac_configure_args0 " in
2458               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2459             esac
2460             ;;
2461           -* ) ac_must_keep_next=true ;;
2462         esac
2463       fi
2464       as_fn_append ac_configure_args " '$ac_arg'"
2465       ;;
2466     esac
2467   done
2468 done
2469 { ac_configure_args0=; unset ac_configure_args0;}
2470 { ac_configure_args1=; unset ac_configure_args1;}
2471
2472 # When interrupted or exit'd, cleanup temporary files, and complete
2473 # config.log.  We remove comments because anyway the quotes in there
2474 # would cause problems or look ugly.
2475 # WARNING: Use '\'' to represent an apostrophe within the trap.
2476 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2477 trap 'exit_status=$?
2478   # Save into config.log some information that might help in debugging.
2479   {
2480     echo
2481
2482     $as_echo "## ---------------- ##
2483 ## Cache variables. ##
2484 ## ---------------- ##"
2485     echo
2486     # The following way of writing the cache mishandles newlines in values,
2487 (
2488   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2489     eval ac_val=\$$ac_var
2490     case $ac_val in #(
2491     *${as_nl}*)
2492       case $ac_var in #(
2493       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2494 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2495       esac
2496       case $ac_var in #(
2497       _ | IFS | as_nl) ;; #(
2498       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2499       *) { eval $ac_var=; unset $ac_var;} ;;
2500       esac ;;
2501     esac
2502   done
2503   (set) 2>&1 |
2504     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2505     *${as_nl}ac_space=\ *)
2506       sed -n \
2507         "s/'\''/'\''\\\\'\'''\''/g;
2508           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2509       ;; #(
2510     *)
2511       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2512       ;;
2513     esac |
2514     sort
2515 )
2516     echo
2517
2518     $as_echo "## ----------------- ##
2519 ## Output variables. ##
2520 ## ----------------- ##"
2521     echo
2522     for ac_var in $ac_subst_vars
2523     do
2524       eval ac_val=\$$ac_var
2525       case $ac_val in
2526       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2527       esac
2528       $as_echo "$ac_var='\''$ac_val'\''"
2529     done | sort
2530     echo
2531
2532     if test -n "$ac_subst_files"; then
2533       $as_echo "## ------------------- ##
2534 ## File substitutions. ##
2535 ## ------------------- ##"
2536       echo
2537       for ac_var in $ac_subst_files
2538       do
2539         eval ac_val=\$$ac_var
2540         case $ac_val in
2541         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2542         esac
2543         $as_echo "$ac_var='\''$ac_val'\''"
2544       done | sort
2545       echo
2546     fi
2547
2548     if test -s confdefs.h; then
2549       $as_echo "## ----------- ##
2550 ## confdefs.h. ##
2551 ## ----------- ##"
2552       echo
2553       cat confdefs.h
2554       echo
2555     fi
2556     test "$ac_signal" != 0 &&
2557       $as_echo "$as_me: caught signal $ac_signal"
2558     $as_echo "$as_me: exit $exit_status"
2559   } >&5
2560   rm -f core *.core core.conftest.* &&
2561     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2562     exit $exit_status
2563 ' 0
2564 for ac_signal in 1 2 13 15; do
2565   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2566 done
2567 ac_signal=0
2568
2569 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2570 rm -f -r conftest* confdefs.h
2571
2572 $as_echo "/* confdefs.h */" > confdefs.h
2573
2574 # Predefined preprocessor variables.
2575
2576 cat >>confdefs.h <<_ACEOF
2577 #define PACKAGE_NAME "$PACKAGE_NAME"
2578 _ACEOF
2579
2580 cat >>confdefs.h <<_ACEOF
2581 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2582 _ACEOF
2583
2584 cat >>confdefs.h <<_ACEOF
2585 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2586 _ACEOF
2587
2588 cat >>confdefs.h <<_ACEOF
2589 #define PACKAGE_STRING "$PACKAGE_STRING"
2590 _ACEOF
2591
2592 cat >>confdefs.h <<_ACEOF
2593 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2594 _ACEOF
2595
2596 cat >>confdefs.h <<_ACEOF
2597 #define PACKAGE_URL "$PACKAGE_URL"
2598 _ACEOF
2599
2600
2601 # Let the site file select an alternate cache file if it wants to.
2602 # Prefer an explicitly selected file to automatically selected ones.
2603 ac_site_file1=NONE
2604 ac_site_file2=NONE
2605 if test -n "$CONFIG_SITE"; then
2606   # We do not want a PATH search for config.site.
2607   case $CONFIG_SITE in #((
2608     -*)  ac_site_file1=./$CONFIG_SITE;;
2609     */*) ac_site_file1=$CONFIG_SITE;;
2610     *)   ac_site_file1=./$CONFIG_SITE;;
2611   esac
2612 elif test "x$prefix" != xNONE; then
2613   ac_site_file1=$prefix/share/config.site
2614   ac_site_file2=$prefix/etc/config.site
2615 else
2616   ac_site_file1=$ac_default_prefix/share/config.site
2617   ac_site_file2=$ac_default_prefix/etc/config.site
2618 fi
2619 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2620 do
2621   test "x$ac_site_file" = xNONE && continue
2622   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2623     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2624 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2625     sed 's/^/| /' "$ac_site_file" >&5
2626     . "$ac_site_file" \
2627       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2629 as_fn_error $? "failed to load site script $ac_site_file
2630 See \`config.log' for more details" "$LINENO" 5; }
2631   fi
2632 done
2633
2634 if test -r "$cache_file"; then
2635   # Some versions of bash will fail to source /dev/null (special files
2636   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2637   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2638     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2639 $as_echo "$as_me: loading cache $cache_file" >&6;}
2640     case $cache_file in
2641       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2642       *)                      . "./$cache_file";;
2643     esac
2644   fi
2645 else
2646   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2647 $as_echo "$as_me: creating cache $cache_file" >&6;}
2648   >$cache_file
2649 fi
2650
2651 # Check that the precious variables saved in the cache have kept the same
2652 # value.
2653 ac_cache_corrupted=false
2654 for ac_var in $ac_precious_vars; do
2655   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2656   eval ac_new_set=\$ac_env_${ac_var}_set
2657   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2658   eval ac_new_val=\$ac_env_${ac_var}_value
2659   case $ac_old_set,$ac_new_set in
2660     set,)
2661       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2662 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2663       ac_cache_corrupted=: ;;
2664     ,set)
2665       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2666 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2667       ac_cache_corrupted=: ;;
2668     ,);;
2669     *)
2670       if test "x$ac_old_val" != "x$ac_new_val"; then
2671         # differences in whitespace do not lead to failure.
2672         ac_old_val_w=`echo x $ac_old_val`
2673         ac_new_val_w=`echo x $ac_new_val`
2674         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2675           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2676 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2677           ac_cache_corrupted=:
2678         else
2679           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2680 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2681           eval $ac_var=\$ac_old_val
2682         fi
2683         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2684 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2685         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2686 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2687       fi;;
2688   esac
2689   # Pass precious variables to config.status.
2690   if test "$ac_new_set" = set; then
2691     case $ac_new_val in
2692     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2693     *) ac_arg=$ac_var=$ac_new_val ;;
2694     esac
2695     case " $ac_configure_args " in
2696       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2697       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2698     esac
2699   fi
2700 done
2701 if $ac_cache_corrupted; then
2702   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2704   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2705 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2706   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2707 fi
2708 ## -------------------- ##
2709 ## Main body of script. ##
2710 ## -------------------- ##
2711
2712 ac_ext=c
2713 ac_cpp='$CPP $CPPFLAGS'
2714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2717
2718
2719
2720 ac_config_headers="$ac_config_headers config.h"
2721
2722
2723 ac_aux_dir=
2724 for ac_dir in auto-aux "$srcdir"/auto-aux; do
2725   if test -f "$ac_dir/install-sh"; then
2726     ac_aux_dir=$ac_dir
2727     ac_install_sh="$ac_aux_dir/install-sh -c"
2728     break
2729   elif test -f "$ac_dir/install.sh"; then
2730     ac_aux_dir=$ac_dir
2731     ac_install_sh="$ac_aux_dir/install.sh -c"
2732     break
2733   elif test -f "$ac_dir/shtool"; then
2734     ac_aux_dir=$ac_dir
2735     ac_install_sh="$ac_aux_dir/shtool install -c"
2736     break
2737   fi
2738 done
2739 if test -z "$ac_aux_dir"; then
2740   as_fn_error $? "cannot find install-sh, install.sh, or shtool in auto-aux \"$srcdir\"/auto-aux" "$LINENO" 5
2741 fi
2742
2743 # These three variables are undocumented and unsupported,
2744 # and are intended to be withdrawn in a future Autoconf release.
2745 # They can cause serious problems if a builder's source tree is in a directory
2746 # whose full name contains unusual characters.
2747 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2748 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2749 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2750
2751
2752 am__api_version='1.11'
2753
2754 # Find a good install program.  We prefer a C program (faster),
2755 # so one script is as good as another.  But avoid the broken or
2756 # incompatible versions:
2757 # SysV /etc/install, /usr/sbin/install
2758 # SunOS /usr/etc/install
2759 # IRIX /sbin/install
2760 # AIX /bin/install
2761 # AmigaOS /C/install, which installs bootblocks on floppy discs
2762 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2763 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2764 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2765 # OS/2's system install, which has a completely different semantic
2766 # ./install, which can be erroneously created by make from ./install.sh.
2767 # Reject install programs that cannot install multiple files.
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2769 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2770 if test -z "$INSTALL"; then
2771 if ${ac_cv_path_install+:} false; then :
2772   $as_echo_n "(cached) " >&6
2773 else
2774   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 for as_dir in $PATH
2776 do
2777   IFS=$as_save_IFS
2778   test -z "$as_dir" && as_dir=.
2779     # Account for people who put trailing slashes in PATH elements.
2780 case $as_dir/ in #((
2781   ./ | .// | /[cC]/* | \
2782   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2783   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2784   /usr/ucb/* ) ;;
2785   *)
2786     # OSF1 and SCO ODT 3.0 have their own names for install.
2787     # Don't use installbsd from OSF since it installs stuff as root
2788     # by default.
2789     for ac_prog in ginstall scoinst install; do
2790       for ac_exec_ext in '' $ac_executable_extensions; do
2791         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2792           if test $ac_prog = install &&
2793             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2794             # AIX install.  It has an incompatible calling convention.
2795             :
2796           elif test $ac_prog = install &&
2797             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2798             # program-specific install script used by HP pwplus--don't use.
2799             :
2800           else
2801             rm -rf conftest.one conftest.two conftest.dir
2802             echo one > conftest.one
2803             echo two > conftest.two
2804             mkdir conftest.dir
2805             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2806               test -s conftest.one && test -s conftest.two &&
2807               test -s conftest.dir/conftest.one &&
2808               test -s conftest.dir/conftest.two
2809             then
2810               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2811               break 3
2812             fi
2813           fi
2814         fi
2815       done
2816     done
2817     ;;
2818 esac
2819
2820   done
2821 IFS=$as_save_IFS
2822
2823 rm -rf conftest.one conftest.two conftest.dir
2824
2825 fi
2826   if test "${ac_cv_path_install+set}" = set; then
2827     INSTALL=$ac_cv_path_install
2828   else
2829     # As a last resort, use the slow shell script.  Don't cache a
2830     # value for INSTALL within a source directory, because that will
2831     # break other packages using the cache if that directory is
2832     # removed, or if the value is a relative name.
2833     INSTALL=$ac_install_sh
2834   fi
2835 fi
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2837 $as_echo "$INSTALL" >&6; }
2838
2839 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2840 # It thinks the first close brace ends the variable substitution.
2841 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2842
2843 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2844
2845 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2846
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2848 $as_echo_n "checking whether build environment is sane... " >&6; }
2849 # Just in case
2850 sleep 1
2851 echo timestamp > conftest.file
2852 # Reject unsafe characters in $srcdir or the absolute working directory
2853 # name.  Accept space and tab only in the latter.
2854 am_lf='
2855 '
2856 case `pwd` in
2857   *[\\\"\#\$\&\'\`$am_lf]*)
2858     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2859 esac
2860 case $srcdir in
2861   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2862     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2863 esac
2864
2865 # Do `set' in a subshell so we don't clobber the current shell's
2866 # arguments.  Must try -L first in case configure is actually a
2867 # symlink; some systems play weird games with the mod time of symlinks
2868 # (eg FreeBSD returns the mod time of the symlink's containing
2869 # directory).
2870 if (
2871    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2872    if test "$*" = "X"; then
2873       # -L didn't work.
2874       set X `ls -t "$srcdir/configure" conftest.file`
2875    fi
2876    rm -f conftest.file
2877    if test "$*" != "X $srcdir/configure conftest.file" \
2878       && test "$*" != "X conftest.file $srcdir/configure"; then
2879
2880       # If neither matched, then we have a broken ls.  This can happen
2881       # if, for instance, CONFIG_SHELL is bash and it inherits a
2882       # broken ls alias from the environment.  This has actually
2883       # happened.  Such a system could not be considered "sane".
2884       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2885 alias in your environment" "$LINENO" 5
2886    fi
2887
2888    test "$2" = conftest.file
2889    )
2890 then
2891    # Ok.
2892    :
2893 else
2894    as_fn_error $? "newly created file is older than distributed files!
2895 Check your system clock" "$LINENO" 5
2896 fi
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2898 $as_echo "yes" >&6; }
2899 test "$program_prefix" != NONE &&
2900   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2901 # Use a double $ so make ignores it.
2902 test "$program_suffix" != NONE &&
2903   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2904 # Double any \ or $.
2905 # By default was `s,x,x', remove it if useless.
2906 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2907 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2908
2909 # expand $ac_aux_dir to an absolute path
2910 am_aux_dir=`cd $ac_aux_dir && pwd`
2911
2912 if test x"${MISSING+set}" != xset; then
2913   case $am_aux_dir in
2914   *\ * | *\     *)
2915     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2916   *)
2917     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2918   esac
2919 fi
2920 # Use eval to expand $SHELL
2921 if eval "$MISSING --run true"; then
2922   am_missing_run="$MISSING --run "
2923 else
2924   am_missing_run=
2925   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2926 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2927 fi
2928
2929 if test x"${install_sh}" != xset; then
2930   case $am_aux_dir in
2931   *\ * | *\     *)
2932     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2933   *)
2934     install_sh="\${SHELL} $am_aux_dir/install-sh"
2935   esac
2936 fi
2937
2938 # Installed binaries are usually stripped using `strip' when the user
2939 # run `make install-strip'.  However `strip' might not be the right
2940 # tool to use in cross-compilation environments, therefore Automake
2941 # will honor the `STRIP' environment variable to overrule this program.
2942 if test "$cross_compiling" != no; then
2943   if test -n "$ac_tool_prefix"; then
2944   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2945 set dummy ${ac_tool_prefix}strip; ac_word=$2
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2947 $as_echo_n "checking for $ac_word... " >&6; }
2948 if ${ac_cv_prog_STRIP+:} false; then :
2949   $as_echo_n "(cached) " >&6
2950 else
2951   if test -n "$STRIP"; then
2952   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2953 else
2954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955 for as_dir in $PATH
2956 do
2957   IFS=$as_save_IFS
2958   test -z "$as_dir" && as_dir=.
2959     for ac_exec_ext in '' $ac_executable_extensions; do
2960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2961     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2962     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2963     break 2
2964   fi
2965 done
2966   done
2967 IFS=$as_save_IFS
2968
2969 fi
2970 fi
2971 STRIP=$ac_cv_prog_STRIP
2972 if test -n "$STRIP"; then
2973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2974 $as_echo "$STRIP" >&6; }
2975 else
2976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977 $as_echo "no" >&6; }
2978 fi
2979
2980
2981 fi
2982 if test -z "$ac_cv_prog_STRIP"; then
2983   ac_ct_STRIP=$STRIP
2984   # Extract the first word of "strip", so it can be a program name with args.
2985 set dummy strip; ac_word=$2
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2987 $as_echo_n "checking for $ac_word... " >&6; }
2988 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2989   $as_echo_n "(cached) " >&6
2990 else
2991   if test -n "$ac_ct_STRIP"; then
2992   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2993 else
2994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995 for as_dir in $PATH
2996 do
2997   IFS=$as_save_IFS
2998   test -z "$as_dir" && as_dir=.
2999     for ac_exec_ext in '' $ac_executable_extensions; do
3000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3001     ac_cv_prog_ac_ct_STRIP="strip"
3002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3003     break 2
3004   fi
3005 done
3006   done
3007 IFS=$as_save_IFS
3008
3009 fi
3010 fi
3011 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3012 if test -n "$ac_ct_STRIP"; then
3013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3014 $as_echo "$ac_ct_STRIP" >&6; }
3015 else
3016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3017 $as_echo "no" >&6; }
3018 fi
3019
3020   if test "x$ac_ct_STRIP" = x; then
3021     STRIP=":"
3022   else
3023     case $cross_compiling:$ac_tool_warned in
3024 yes:)
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3027 ac_tool_warned=yes ;;
3028 esac
3029     STRIP=$ac_ct_STRIP
3030   fi
3031 else
3032   STRIP="$ac_cv_prog_STRIP"
3033 fi
3034
3035 fi
3036 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3037
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3039 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3040 if test -z "$MKDIR_P"; then
3041   if ${ac_cv_path_mkdir+:} false; then :
3042   $as_echo_n "(cached) " >&6
3043 else
3044   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3046 do
3047   IFS=$as_save_IFS
3048   test -z "$as_dir" && as_dir=.
3049     for ac_prog in mkdir gmkdir; do
3050          for ac_exec_ext in '' $ac_executable_extensions; do
3051            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3052            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3053              'mkdir (GNU coreutils) '* | \
3054              'mkdir (coreutils) '* | \
3055              'mkdir (fileutils) '4.1*)
3056                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3057                break 3;;
3058            esac
3059          done
3060        done
3061   done
3062 IFS=$as_save_IFS
3063
3064 fi
3065
3066   test -d ./--version && rmdir ./--version
3067   if test "${ac_cv_path_mkdir+set}" = set; then
3068     MKDIR_P="$ac_cv_path_mkdir -p"
3069   else
3070     # As a last resort, use the slow shell script.  Don't cache a
3071     # value for MKDIR_P within a source directory, because that will
3072     # break other packages using the cache if that directory is
3073     # removed, or if the value is a relative name.
3074     MKDIR_P="$ac_install_sh -d"
3075   fi
3076 fi
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3078 $as_echo "$MKDIR_P" >&6; }
3079
3080 mkdir_p="$MKDIR_P"
3081 case $mkdir_p in
3082   [\\/$]* | ?:[\\/]*) ;;
3083   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3084 esac
3085
3086 for ac_prog in gawk mawk nawk awk
3087 do
3088   # Extract the first word of "$ac_prog", so it can be a program name with args.
3089 set dummy $ac_prog; ac_word=$2
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091 $as_echo_n "checking for $ac_word... " >&6; }
3092 if ${ac_cv_prog_AWK+:} false; then :
3093   $as_echo_n "(cached) " >&6
3094 else
3095   if test -n "$AWK"; then
3096   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3097 else
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099 for as_dir in $PATH
3100 do
3101   IFS=$as_save_IFS
3102   test -z "$as_dir" && as_dir=.
3103     for ac_exec_ext in '' $ac_executable_extensions; do
3104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3105     ac_cv_prog_AWK="$ac_prog"
3106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3107     break 2
3108   fi
3109 done
3110   done
3111 IFS=$as_save_IFS
3112
3113 fi
3114 fi
3115 AWK=$ac_cv_prog_AWK
3116 if test -n "$AWK"; then
3117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3118 $as_echo "$AWK" >&6; }
3119 else
3120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121 $as_echo "no" >&6; }
3122 fi
3123
3124
3125   test -n "$AWK" && break
3126 done
3127
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3129 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3130 set x ${MAKE-make}
3131 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3132 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3133   $as_echo_n "(cached) " >&6
3134 else
3135   cat >conftest.make <<\_ACEOF
3136 SHELL = /bin/sh
3137 all:
3138         @echo '@@@%%%=$(MAKE)=@@@%%%'
3139 _ACEOF
3140 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3141 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3142   *@@@%%%=?*=@@@%%%*)
3143     eval ac_cv_prog_make_${ac_make}_set=yes;;
3144   *)
3145     eval ac_cv_prog_make_${ac_make}_set=no;;
3146 esac
3147 rm -f conftest.make
3148 fi
3149 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3151 $as_echo "yes" >&6; }
3152   SET_MAKE=
3153 else
3154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3155 $as_echo "no" >&6; }
3156   SET_MAKE="MAKE=${MAKE-make}"
3157 fi
3158
3159 rm -rf .tst 2>/dev/null
3160 mkdir .tst 2>/dev/null
3161 if test -d .tst; then
3162   am__leading_dot=.
3163 else
3164   am__leading_dot=_
3165 fi
3166 rmdir .tst 2>/dev/null
3167
3168 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3169   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3170   # is not polluted with repeated "-I."
3171   am__isrc=' -I$(srcdir)'
3172   # test to see if srcdir already configured
3173   if test -f $srcdir/config.status; then
3174     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3175   fi
3176 fi
3177
3178 # test whether we have cygpath
3179 if test -z "$CYGPATH_W"; then
3180   if (cygpath --version) >/dev/null 2>/dev/null; then
3181     CYGPATH_W='cygpath -w'
3182   else
3183     CYGPATH_W=echo
3184   fi
3185 fi
3186
3187
3188 # Define the identity of the package.
3189  PACKAGE='libgphoto2'
3190  VERSION='2.4.11'
3191
3192
3193 cat >>confdefs.h <<_ACEOF
3194 #define PACKAGE "$PACKAGE"
3195 _ACEOF
3196
3197
3198 cat >>confdefs.h <<_ACEOF
3199 #define VERSION "$VERSION"
3200 _ACEOF
3201
3202 # Some tools Automake needs.
3203
3204 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3205
3206
3207 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3208
3209
3210 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3211
3212
3213 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3214
3215
3216 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3217
3218 # We need awk for the "check" target.  The system "awk" is bad on
3219 # some platforms.
3220 # Always define AMTAR for backward compatibility.
3221
3222 AMTAR=${AMTAR-"${am_missing_run}tar"}
3223
3224 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3225
3226
3227
3228
3229
3230
3231
3232 # make sure "cd" doesn't print anything on stdout
3233 if test x"${CDPATH+set}" = xset
3234 then
3235         CDPATH=:
3236         export CDPATH
3237 fi
3238
3239 # make sure $() command substitution works
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX sh \$() command substitution" >&5
3241 $as_echo_n "checking for POSIX sh \$() command substitution... " >&6; }
3242 if test "x$(pwd)" = "x`pwd`" && test "y$(echo "foobar")" = "y`echo foobar`" # ''''
3243 then
3244         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3245 $as_echo "yes" >&6; }
3246 else
3247         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248 $as_echo "no" >&6; }
3249         uname=`uname 2>&1` # ''
3250         uname_a=`uname -a 2>&1` # ''
3251         as_fn_error $? "
3252
3253 * POSIX sh \$() command substition does not work with this shell.
3254 *
3255 * You are running a very rare species of shell. Please report this
3256 * sighting to <${PACKAGE_BUGREPORT}>:
3257 * SHELL=${SHELL}
3258 * uname=${uname}
3259 * uname-a=${uname_a}
3260 * Please also include your OS and version.
3261 *
3262 * Run this configure script using a better (i.e. POSIX compliant) shell.
3263 " "$LINENO" 5
3264 fi
3265
3266
3267
3268 gp_config_len="30"
3269 gp_config_empty=""
3270 gp_config_len3="$(expr "$gp_config_len" - 3)"
3271 n="$gp_config_len"
3272 while test "$n" -gt 0; do
3273       gp_config_empty="${gp_config_empty} "
3274       n="$(expr "$n" - 1)"
3275 done
3276 gp_config_msg="
3277 Configuration (${PACKAGE_TARNAME} ${PACKAGE_VERSION}):
3278 "
3279
3280
3281 gp_config_msg="${gp_config_msg}
3282   Build
3283 "
3284
3285
3286 gp_config_msg_len="$(expr "Source code location" : '.*')"
3287 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
3288         gp_config_msg_lhs="$(expr "Source code location" : "\(.\{0,${gp_config_len3}\}\)")..:"
3289 else
3290         gp_config_msg_lhs="$(expr "Source code location:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
3291 fi
3292 gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} ${srcdir}
3293 "
3294
3295
3296
3297 LIBGPHOTO2_AGE=4
3298
3299 LIBGPHOTO2_REVISION=0
3300
3301 LIBGPHOTO2_CURRENT=6
3302
3303 LIBGPHOTO2_CURRENT_MIN=`expr $LIBGPHOTO2_CURRENT - $LIBGPHOTO2_AGE`
3304
3305 LIBGPHOTO2_VERSION_INFO=$LIBGPHOTO2_CURRENT:$LIBGPHOTO2_REVISION:$LIBGPHOTO2_AGE
3306
3307
3308
3309 AM_CPPFLAGS="$CPPFLAGS"
3310
3311 AM_CPPFLAGS="$AM_CPPFLAGS -I\$(top_srcdir)"
3312 AM_CPPFLAGS="$AM_CPPFLAGS -I\$(top_builddir)"
3313 AM_CPPFLAGS="$AM_CPPFLAGS -I\$(top_srcdir)/libgphoto2_port"
3314 AM_CPPFLAGS="$AM_CPPFLAGS -I\$(top_srcdir)/libgphoto2"
3315 AM_CPPFLAGS="$AM_CPPFLAGS -I\$(top_builddir)/libgphoto2"
3316
3317
3318
3319 ac_ext=c
3320 ac_cpp='$CPP $CPPFLAGS'
3321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3324 if test -n "$ac_tool_prefix"; then
3325   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3326 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3328 $as_echo_n "checking for $ac_word... " >&6; }
3329 if ${ac_cv_prog_CC+:} false; then :
3330   $as_echo_n "(cached) " >&6
3331 else
3332   if test -n "$CC"; then
3333   ac_cv_prog_CC="$CC" # Let the user override the test.
3334 else
3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336 for as_dir in $PATH
3337 do
3338   IFS=$as_save_IFS
3339   test -z "$as_dir" && as_dir=.
3340     for ac_exec_ext in '' $ac_executable_extensions; do
3341   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3342     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3344     break 2
3345   fi
3346 done
3347   done
3348 IFS=$as_save_IFS
3349
3350 fi
3351 fi
3352 CC=$ac_cv_prog_CC
3353 if test -n "$CC"; then
3354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3355 $as_echo "$CC" >&6; }
3356 else
3357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3358 $as_echo "no" >&6; }
3359 fi
3360
3361
3362 fi
3363 if test -z "$ac_cv_prog_CC"; then
3364   ac_ct_CC=$CC
3365   # Extract the first word of "gcc", so it can be a program name with args.
3366 set dummy gcc; ac_word=$2
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3368 $as_echo_n "checking for $ac_word... " >&6; }
3369 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3370   $as_echo_n "(cached) " >&6
3371 else
3372   if test -n "$ac_ct_CC"; then
3373   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3374 else
3375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376 for as_dir in $PATH
3377 do
3378   IFS=$as_save_IFS
3379   test -z "$as_dir" && as_dir=.
3380     for ac_exec_ext in '' $ac_executable_extensions; do
3381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3382     ac_cv_prog_ac_ct_CC="gcc"
3383     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3384     break 2
3385   fi
3386 done
3387   done
3388 IFS=$as_save_IFS
3389
3390 fi
3391 fi
3392 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3393 if test -n "$ac_ct_CC"; then
3394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3395 $as_echo "$ac_ct_CC" >&6; }
3396 else
3397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3398 $as_echo "no" >&6; }
3399 fi
3400
3401   if test "x$ac_ct_CC" = x; then
3402     CC=""
3403   else
3404     case $cross_compiling:$ac_tool_warned in
3405 yes:)
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3408 ac_tool_warned=yes ;;
3409 esac
3410     CC=$ac_ct_CC
3411   fi
3412 else
3413   CC="$ac_cv_prog_CC"
3414 fi
3415
3416 if test -z "$CC"; then
3417           if test -n "$ac_tool_prefix"; then
3418     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3419 set dummy ${ac_tool_prefix}cc; ac_word=$2
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3421 $as_echo_n "checking for $ac_word... " >&6; }
3422 if ${ac_cv_prog_CC+:} false; then :
3423   $as_echo_n "(cached) " >&6
3424 else
3425   if test -n "$CC"; then
3426   ac_cv_prog_CC="$CC" # Let the user override the test.
3427 else
3428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429 for as_dir in $PATH
3430 do
3431   IFS=$as_save_IFS
3432   test -z "$as_dir" && as_dir=.
3433     for ac_exec_ext in '' $ac_executable_extensions; do
3434   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3435     ac_cv_prog_CC="${ac_tool_prefix}cc"
3436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3437     break 2
3438   fi
3439 done
3440   done
3441 IFS=$as_save_IFS
3442
3443 fi
3444 fi
3445 CC=$ac_cv_prog_CC
3446 if test -n "$CC"; then
3447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3448 $as_echo "$CC" >&6; }
3449 else
3450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3451 $as_echo "no" >&6; }
3452 fi
3453
3454
3455   fi
3456 fi
3457 if test -z "$CC"; then
3458   # Extract the first word of "cc", so it can be a program name with args.
3459 set dummy cc; ac_word=$2
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3461 $as_echo_n "checking for $ac_word... " >&6; }
3462 if ${ac_cv_prog_CC+:} false; then :
3463   $as_echo_n "(cached) " >&6
3464 else
3465   if test -n "$CC"; then
3466   ac_cv_prog_CC="$CC" # Let the user override the test.
3467 else
3468   ac_prog_rejected=no
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 for as_dir in $PATH
3471 do
3472   IFS=$as_save_IFS
3473   test -z "$as_dir" && as_dir=.
3474     for ac_exec_ext in '' $ac_executable_extensions; do
3475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3476     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3477        ac_prog_rejected=yes
3478        continue
3479      fi
3480     ac_cv_prog_CC="cc"
3481     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3482     break 2
3483   fi
3484 done
3485   done
3486 IFS=$as_save_IFS
3487
3488 if test $ac_prog_rejected = yes; then
3489   # We found a bogon in the path, so make sure we never use it.
3490   set dummy $ac_cv_prog_CC
3491   shift
3492   if test $# != 0; then
3493     # We chose a different compiler from the bogus one.
3494     # However, it has the same basename, so the bogon will be chosen
3495     # first if we set CC to just the basename; use the full file name.
3496     shift
3497     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3498   fi
3499 fi
3500 fi
3501 fi
3502 CC=$ac_cv_prog_CC
3503 if test -n "$CC"; then
3504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3505 $as_echo "$CC" >&6; }
3506 else
3507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3508 $as_echo "no" >&6; }
3509 fi
3510
3511
3512 fi
3513 if test -z "$CC"; then
3514   if test -n "$ac_tool_prefix"; then
3515   for ac_prog in cl.exe
3516   do
3517     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3518 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3520 $as_echo_n "checking for $ac_word... " >&6; }
3521 if ${ac_cv_prog_CC+:} false; then :
3522   $as_echo_n "(cached) " >&6
3523 else
3524   if test -n "$CC"; then
3525   ac_cv_prog_CC="$CC" # Let the user override the test.
3526 else
3527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3528 for as_dir in $PATH
3529 do
3530   IFS=$as_save_IFS
3531   test -z "$as_dir" && as_dir=.
3532     for ac_exec_ext in '' $ac_executable_extensions; do
3533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3534     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3536     break 2
3537   fi
3538 done
3539   done
3540 IFS=$as_save_IFS
3541
3542 fi
3543 fi
3544 CC=$ac_cv_prog_CC
3545 if test -n "$CC"; then
3546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3547 $as_echo "$CC" >&6; }
3548 else
3549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3550 $as_echo "no" >&6; }
3551 fi
3552
3553
3554     test -n "$CC" && break
3555   done
3556 fi
3557 if test -z "$CC"; then
3558   ac_ct_CC=$CC
3559   for ac_prog in cl.exe
3560 do
3561   # Extract the first word of "$ac_prog", so it can be a program name with args.
3562 set dummy $ac_prog; ac_word=$2
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3564 $as_echo_n "checking for $ac_word... " >&6; }
3565 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3566   $as_echo_n "(cached) " >&6
3567 else
3568   if test -n "$ac_ct_CC"; then
3569   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3570 else
3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572 for as_dir in $PATH
3573 do
3574   IFS=$as_save_IFS
3575   test -z "$as_dir" && as_dir=.
3576     for ac_exec_ext in '' $ac_executable_extensions; do
3577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3578     ac_cv_prog_ac_ct_CC="$ac_prog"
3579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3580     break 2
3581   fi
3582 done
3583   done
3584 IFS=$as_save_IFS
3585
3586 fi
3587 fi
3588 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3589 if test -n "$ac_ct_CC"; then
3590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3591 $as_echo "$ac_ct_CC" >&6; }
3592 else
3593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3594 $as_echo "no" >&6; }
3595 fi
3596
3597
3598   test -n "$ac_ct_CC" && break
3599 done
3600
3601   if test "x$ac_ct_CC" = x; then
3602     CC=""
3603   else
3604     case $cross_compiling:$ac_tool_warned in
3605 yes:)
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3608 ac_tool_warned=yes ;;
3609 esac
3610     CC=$ac_ct_CC
3611   fi
3612 fi
3613
3614 fi
3615
3616
3617 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3619 as_fn_error $? "no acceptable C compiler found in \$PATH
3620 See \`config.log' for more details" "$LINENO" 5; }
3621
3622 # Provide some information about the compiler.
3623 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3624 set X $ac_compile
3625 ac_compiler=$2
3626 for ac_option in --version -v -V -qversion; do
3627   { { ac_try="$ac_compiler $ac_option >&5"
3628 case "(($ac_try" in
3629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630   *) ac_try_echo=$ac_try;;
3631 esac
3632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3633 $as_echo "$ac_try_echo"; } >&5
3634   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3635   ac_status=$?
3636   if test -s conftest.err; then
3637     sed '10a\
3638 ... rest of stderr output deleted ...
3639          10q' conftest.err >conftest.er1
3640     cat conftest.er1 >&5
3641   fi
3642   rm -f conftest.er1 conftest.err
3643   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3644   test $ac_status = 0; }
3645 done
3646
3647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3648 /* end confdefs.h.  */
3649
3650 int
3651 main ()
3652 {
3653
3654   ;
3655   return 0;
3656 }
3657 _ACEOF
3658 ac_clean_files_save=$ac_clean_files
3659 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3660 # Try to create an executable without -o first, disregard a.out.
3661 # It will help us diagnose broken compilers, and finding out an intuition
3662 # of exeext.
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3664 $as_echo_n "checking whether the C compiler works... " >&6; }
3665 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3666
3667 # The possible output files:
3668 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3669
3670 ac_rmfiles=
3671 for ac_file in $ac_files
3672 do
3673   case $ac_file in
3674     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3675     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3676   esac
3677 done
3678 rm -f $ac_rmfiles
3679
3680 if { { ac_try="$ac_link_default"
3681 case "(($ac_try" in
3682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683   *) ac_try_echo=$ac_try;;
3684 esac
3685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3686 $as_echo "$ac_try_echo"; } >&5
3687   (eval "$ac_link_default") 2>&5
3688   ac_status=$?
3689   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3690   test $ac_status = 0; }; then :
3691   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3692 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3693 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3694 # so that the user can short-circuit this test for compilers unknown to
3695 # Autoconf.
3696 for ac_file in $ac_files ''
3697 do
3698   test -f "$ac_file" || continue
3699   case $ac_file in
3700     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3701         ;;
3702     [ab].out )
3703         # We found the default executable, but exeext='' is most
3704         # certainly right.
3705         break;;
3706     *.* )
3707         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3708         then :; else
3709            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3710         fi
3711         # We set ac_cv_exeext here because the later test for it is not
3712         # safe: cross compilers may not add the suffix if given an `-o'
3713         # argument, so we may need to know it at that point already.
3714         # Even if this section looks crufty: it has the advantage of
3715         # actually working.
3716         break;;
3717     * )
3718         break;;
3719   esac
3720 done
3721 test "$ac_cv_exeext" = no && ac_cv_exeext=
3722
3723 else
3724   ac_file=''
3725 fi
3726 if test -z "$ac_file"; then :
3727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 $as_echo "no" >&6; }
3729 $as_echo "$as_me: failed program was:" >&5
3730 sed 's/^/| /' conftest.$ac_ext >&5
3731
3732 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3734 as_fn_error 77 "C compiler cannot create executables
3735 See \`config.log' for more details" "$LINENO" 5; }
3736 else
3737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3738 $as_echo "yes" >&6; }
3739 fi
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3741 $as_echo_n "checking for C compiler default output file name... " >&6; }
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3743 $as_echo "$ac_file" >&6; }
3744 ac_exeext=$ac_cv_exeext
3745
3746 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3747 ac_clean_files=$ac_clean_files_save
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3749 $as_echo_n "checking for suffix of executables... " >&6; }
3750 if { { ac_try="$ac_link"
3751 case "(($ac_try" in
3752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3753   *) ac_try_echo=$ac_try;;
3754 esac
3755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3756 $as_echo "$ac_try_echo"; } >&5
3757   (eval "$ac_link") 2>&5
3758   ac_status=$?
3759   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3760   test $ac_status = 0; }; then :
3761   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3762 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3763 # work properly (i.e., refer to `conftest.exe'), while it won't with
3764 # `rm'.
3765 for ac_file in conftest.exe conftest conftest.*; do
3766   test -f "$ac_file" || continue
3767   case $ac_file in
3768     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3769     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3770           break;;
3771     * ) break;;
3772   esac
3773 done
3774 else
3775   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3777 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3778 See \`config.log' for more details" "$LINENO" 5; }
3779 fi
3780 rm -f conftest conftest$ac_cv_exeext
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3782 $as_echo "$ac_cv_exeext" >&6; }
3783
3784 rm -f conftest.$ac_ext
3785 EXEEXT=$ac_cv_exeext
3786 ac_exeext=$EXEEXT
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h.  */
3789 #include <stdio.h>
3790 int
3791 main ()
3792 {
3793 FILE *f = fopen ("conftest.out", "w");
3794  return ferror (f) || fclose (f) != 0;
3795
3796   ;
3797   return 0;
3798 }
3799 _ACEOF
3800 ac_clean_files="$ac_clean_files conftest.out"
3801 # Check that the compiler produces executables we can run.  If not, either
3802 # the compiler is broken, or we cross compile.
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3804 $as_echo_n "checking whether we are cross compiling... " >&6; }
3805 if test "$cross_compiling" != yes; then
3806   { { ac_try="$ac_link"
3807 case "(($ac_try" in
3808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3809   *) ac_try_echo=$ac_try;;
3810 esac
3811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3812 $as_echo "$ac_try_echo"; } >&5
3813   (eval "$ac_link") 2>&5
3814   ac_status=$?
3815   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3816   test $ac_status = 0; }
3817   if { ac_try='./conftest$ac_cv_exeext'
3818   { { case "(($ac_try" in
3819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820   *) ac_try_echo=$ac_try;;
3821 esac
3822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3823 $as_echo "$ac_try_echo"; } >&5
3824   (eval "$ac_try") 2>&5
3825   ac_status=$?
3826   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3827   test $ac_status = 0; }; }; then
3828     cross_compiling=no
3829   else
3830     if test "$cross_compiling" = maybe; then
3831         cross_compiling=yes
3832     else
3833         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3835 as_fn_error $? "cannot run C compiled programs.
3836 If you meant to cross compile, use \`--host'.
3837 See \`config.log' for more details" "$LINENO" 5; }
3838     fi
3839   fi
3840 fi
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3842 $as_echo "$cross_compiling" >&6; }
3843
3844 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3845 ac_clean_files=$ac_clean_files_save
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3847 $as_echo_n "checking for suffix of object files... " >&6; }
3848 if ${ac_cv_objext+:} false; then :
3849   $as_echo_n "(cached) " >&6
3850 else
3851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852 /* end confdefs.h.  */
3853
3854 int
3855 main ()
3856 {
3857
3858   ;
3859   return 0;
3860 }
3861 _ACEOF
3862 rm -f conftest.o conftest.obj
3863 if { { ac_try="$ac_compile"
3864 case "(($ac_try" in
3865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866   *) ac_try_echo=$ac_try;;
3867 esac
3868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3869 $as_echo "$ac_try_echo"; } >&5
3870   (eval "$ac_compile") 2>&5
3871   ac_status=$?
3872   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3873   test $ac_status = 0; }; then :
3874   for ac_file in conftest.o conftest.obj conftest.*; do
3875   test -f "$ac_file" || continue;
3876   case $ac_file in
3877     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3878     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3879        break;;
3880   esac
3881 done
3882 else
3883   $as_echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.$ac_ext >&5
3885
3886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3888 as_fn_error $? "cannot compute suffix of object files: cannot compile
3889 See \`config.log' for more details" "$LINENO" 5; }
3890 fi
3891 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3892 fi
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3894 $as_echo "$ac_cv_objext" >&6; }
3895 OBJEXT=$ac_cv_objext
3896 ac_objext=$OBJEXT
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3898 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3899 if ${ac_cv_c_compiler_gnu+:} false; then :
3900   $as_echo_n "(cached) " >&6
3901 else
3902   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3903 /* end confdefs.h.  */
3904
3905 int
3906 main ()
3907 {
3908 #ifndef __GNUC__
3909        choke me
3910 #endif
3911
3912   ;
3913   return 0;
3914 }
3915 _ACEOF
3916 if ac_fn_c_try_compile "$LINENO"; then :
3917   ac_compiler_gnu=yes
3918 else
3919   ac_compiler_gnu=no
3920 fi
3921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3922 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3923
3924 fi
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3926 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3927 if test $ac_compiler_gnu = yes; then
3928   GCC=yes
3929 else
3930   GCC=
3931 fi
3932 ac_test_CFLAGS=${CFLAGS+set}
3933 ac_save_CFLAGS=$CFLAGS
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3935 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3936 if ${ac_cv_prog_cc_g+:} false; then :
3937   $as_echo_n "(cached) " >&6
3938 else
3939   ac_save_c_werror_flag=$ac_c_werror_flag
3940    ac_c_werror_flag=yes
3941    ac_cv_prog_cc_g=no
3942    CFLAGS="-g"
3943    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3944 /* end confdefs.h.  */
3945
3946 int
3947 main ()
3948 {
3949
3950   ;
3951   return 0;
3952 }
3953 _ACEOF
3954 if ac_fn_c_try_compile "$LINENO"; then :
3955   ac_cv_prog_cc_g=yes
3956 else
3957   CFLAGS=""
3958       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h.  */
3960
3961 int
3962 main ()
3963 {
3964
3965   ;
3966   return 0;
3967 }
3968 _ACEOF
3969 if ac_fn_c_try_compile "$LINENO"; then :
3970
3971 else
3972   ac_c_werror_flag=$ac_save_c_werror_flag
3973          CFLAGS="-g"
3974          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3975 /* end confdefs.h.  */
3976
3977 int
3978 main ()
3979 {
3980
3981   ;
3982   return 0;
3983 }
3984 _ACEOF
3985 if ac_fn_c_try_compile "$LINENO"; then :
3986   ac_cv_prog_cc_g=yes
3987 fi
3988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3989 fi
3990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3991 fi
3992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3993    ac_c_werror_flag=$ac_save_c_werror_flag
3994 fi
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3996 $as_echo "$ac_cv_prog_cc_g" >&6; }
3997 if test "$ac_test_CFLAGS" = set; then
3998   CFLAGS=$ac_save_CFLAGS
3999 elif test $ac_cv_prog_cc_g = yes; then
4000   if test "$GCC" = yes; then
4001     CFLAGS="-g -O2"
4002   else
4003     CFLAGS="-g"
4004   fi
4005 else
4006   if test "$GCC" = yes; then
4007     CFLAGS="-O2"
4008   else
4009     CFLAGS=
4010   fi
4011 fi
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4013 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4014 if ${ac_cv_prog_cc_c89+:} false; then :
4015   $as_echo_n "(cached) " >&6
4016 else
4017   ac_cv_prog_cc_c89=no
4018 ac_save_CC=$CC
4019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020 /* end confdefs.h.  */
4021 #include <stdarg.h>
4022 #include <stdio.h>
4023 #include <sys/types.h>
4024 #include <sys/stat.h>
4025 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4026 struct buf { int x; };
4027 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4028 static char *e (p, i)
4029      char **p;
4030      int i;
4031 {
4032   return p[i];
4033 }
4034 static char *f (char * (*g) (char **, int), char **p, ...)
4035 {
4036   char *s;
4037   va_list v;
4038   va_start (v,p);
4039   s = g (p, va_arg (v,int));
4040   va_end (v);
4041   return s;
4042 }
4043
4044 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4045    function prototypes and stuff, but not '\xHH' hex character constants.
4046    These don't provoke an error unfortunately, instead are silently treated
4047    as 'x'.  The following induces an error, until -std is added to get
4048    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4049    array size at least.  It's necessary to write '\x00'==0 to get something
4050    that's true only with -std.  */
4051 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4052
4053 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4054    inside strings and character constants.  */
4055 #define FOO(x) 'x'
4056 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4057
4058 int test (int i, double x);
4059 struct s1 {int (*f) (int a);};
4060 struct s2 {int (*f) (double a);};
4061 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4062 int argc;
4063 char **argv;
4064 int
4065 main ()
4066 {
4067 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4068   ;
4069   return 0;
4070 }
4071 _ACEOF
4072 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4073         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4074 do
4075   CC="$ac_save_CC $ac_arg"
4076   if ac_fn_c_try_compile "$LINENO"; then :
4077   ac_cv_prog_cc_c89=$ac_arg
4078 fi
4079 rm -f core conftest.err conftest.$ac_objext
4080   test "x$ac_cv_prog_cc_c89" != "xno" && break
4081 done
4082 rm -f conftest.$ac_ext
4083 CC=$ac_save_CC
4084
4085 fi
4086 # AC_CACHE_VAL
4087 case "x$ac_cv_prog_cc_c89" in
4088   x)
4089     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4090 $as_echo "none needed" >&6; } ;;
4091   xno)
4092     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4093 $as_echo "unsupported" >&6; } ;;
4094   *)
4095     CC="$CC $ac_cv_prog_cc_c89"
4096     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4097 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4098 esac
4099 if test "x$ac_cv_prog_cc_c89" != xno; then :
4100
4101 fi
4102
4103 ac_ext=c
4104 ac_cpp='$CPP $CPPFLAGS'
4105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4108 DEPDIR="${am__leading_dot}deps"
4109
4110 ac_config_commands="$ac_config_commands depfiles"
4111
4112
4113 am_make=${MAKE-make}
4114 cat > confinc << 'END'
4115 am__doit:
4116         @echo this is the am__doit target
4117 .PHONY: am__doit
4118 END
4119 # If we don't find an include directive, just comment out the code.
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4121 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4122 am__include="#"
4123 am__quote=
4124 _am_result=none
4125 # First try GNU make style include.
4126 echo "include confinc" > confmf
4127 # Ignore all kinds of additional output from `make'.
4128 case `$am_make -s -f confmf 2> /dev/null` in #(
4129 *the\ am__doit\ target*)
4130   am__include=include
4131   am__quote=
4132   _am_result=GNU
4133   ;;
4134 esac
4135 # Now try BSD make style include.
4136 if test "$am__include" = "#"; then
4137    echo '.include "confinc"' > confmf
4138    case `$am_make -s -f confmf 2> /dev/null` in #(
4139    *the\ am__doit\ target*)
4140      am__include=.include
4141      am__quote="\""
4142      _am_result=BSD
4143      ;;
4144    esac
4145 fi
4146
4147
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4149 $as_echo "$_am_result" >&6; }
4150 rm -f confinc confmf
4151
4152 # Check whether --enable-dependency-tracking was given.
4153 if test "${enable_dependency_tracking+set}" = set; then :
4154   enableval=$enable_dependency_tracking;
4155 fi
4156
4157 if test "x$enable_dependency_tracking" != xno; then
4158   am_depcomp="$ac_aux_dir/depcomp"
4159   AMDEPBACKSLASH='\'
4160 fi
4161  if test "x$enable_dependency_tracking" != xno; then
4162   AMDEP_TRUE=
4163   AMDEP_FALSE='#'
4164 else
4165   AMDEP_TRUE='#'
4166   AMDEP_FALSE=
4167 fi
4168
4169
4170
4171 depcc="$CC"   am_compiler_list=
4172
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4174 $as_echo_n "checking dependency style of $depcc... " >&6; }
4175 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4176   $as_echo_n "(cached) " >&6
4177 else
4178   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4179   # We make a subdir and do the tests there.  Otherwise we can end up
4180   # making bogus files that we don't know about and never remove.  For
4181   # instance it was reported that on HP-UX the gcc test will end up
4182   # making a dummy file named `D' -- because `-MD' means `put the output
4183   # in D'.
4184   mkdir conftest.dir
4185   # Copy depcomp to subdir because otherwise we won't find it if we're
4186   # using a relative directory.
4187   cp "$am_depcomp" conftest.dir
4188   cd conftest.dir
4189   # We will build objects and dependencies in a subdirectory because
4190   # it helps to detect inapplicable dependency modes.  For instance
4191   # both Tru64's cc and ICC support -MD to output dependencies as a
4192   # side effect of compilation, but ICC will put the dependencies in
4193   # the current directory while Tru64 will put them in the object
4194   # directory.
4195   mkdir sub
4196
4197   am_cv_CC_dependencies_compiler_type=none
4198   if test "$am_compiler_list" = ""; then
4199      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4200   fi
4201   am__universal=false
4202   case " $depcc " in #(
4203      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4204      esac
4205
4206   for depmode in $am_compiler_list; do
4207     # Setup a source with many dependencies, because some compilers
4208     # like to wrap large dependency lists on column 80 (with \), and
4209     # we should not choose a depcomp mode which is confused by this.
4210     #
4211     # We need to recreate these files for each test, as the compiler may
4212     # overwrite some of them when testing with obscure command lines.
4213     # This happens at least with the AIX C compiler.
4214     : > sub/conftest.c
4215     for i in 1 2 3 4 5 6; do
4216       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4217       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4218       # Solaris 8's {/usr,}/bin/sh.
4219       touch sub/conftst$i.h
4220     done
4221     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4222
4223     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4224     # mode.  It turns out that the SunPro C++ compiler does not properly
4225     # handle `-M -o', and we need to detect this.  Also, some Intel
4226     # versions had trouble with output in subdirs
4227     am__obj=sub/conftest.${OBJEXT-o}
4228     am__minus_obj="-o $am__obj"
4229     case $depmode in
4230     gcc)
4231       # This depmode causes a compiler race in universal mode.
4232       test "$am__universal" = false || continue
4233       ;;
4234     nosideeffect)
4235       # after this tag, mechanisms are not by side-effect, so they'll
4236       # only be used when explicitly requested
4237       if test "x$enable_dependency_tracking" = xyes; then
4238         continue
4239       else
4240         break
4241       fi
4242       ;;
4243     msvisualcpp | msvcmsys)
4244       # This compiler won't grok `-c -o', but also, the minuso test has
4245       # not run yet.  These depmodes are late enough in the game, and
4246       # so weak that their functioning should not be impacted.
4247       am__obj=conftest.${OBJEXT-o}
4248       am__minus_obj=
4249       ;;
4250     none) break ;;
4251     esac
4252     if depmode=$depmode \
4253        source=sub/conftest.c object=$am__obj \
4254        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4255        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4256          >/dev/null 2>conftest.err &&
4257        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4258        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4259        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4260        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4261       # icc doesn't choke on unknown options, it will just issue warnings
4262       # or remarks (even with -Werror).  So we grep stderr for any message
4263       # that says an option was ignored or not supported.
4264       # When given -MP, icc 7.0 and 7.1 complain thusly:
4265       #   icc: Command line warning: ignoring option '-M'; no argument required
4266       # The diagnosis changed in icc 8.0:
4267       #   icc: Command line remark: option '-MP' not supported
4268       if (grep 'ignoring option' conftest.err ||
4269           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4270         am_cv_CC_dependencies_compiler_type=$depmode
4271         break
4272       fi
4273     fi
4274   done
4275
4276   cd ..
4277   rm -rf conftest.dir
4278 else
4279   am_cv_CC_dependencies_compiler_type=none
4280 fi
4281
4282 fi
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4284 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4285 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4286
4287  if
4288   test "x$enable_dependency_tracking" != xno \
4289   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4290   am__fastdepCC_TRUE=
4291   am__fastdepCC_FALSE='#'
4292 else
4293   am__fastdepCC_TRUE='#'
4294   am__fastdepCC_FALSE=
4295 fi
4296
4297
4298 ac_ext=c
4299 ac_cpp='$CPP $CPPFLAGS'
4300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4304 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4305 # On Suns, sometimes $CPP names a directory.
4306 if test -n "$CPP" && test -d "$CPP"; then
4307   CPP=
4308 fi
4309 if test -z "$CPP"; then
4310   if ${ac_cv_prog_CPP+:} false; then :
4311   $as_echo_n "(cached) " >&6
4312 else
4313       # Double quotes because CPP needs to be expanded
4314     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4315     do
4316       ac_preproc_ok=false
4317 for ac_c_preproc_warn_flag in '' yes
4318 do
4319   # Use a header file that comes with gcc, so configuring glibc
4320   # with a fresh cross-compiler works.
4321   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4322   # <limits.h> exists even on freestanding compilers.
4323   # On the NeXT, cc -E runs the code through the compiler's parser,
4324   # not just through cpp. "Syntax error" is here to catch this case.
4325   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326 /* end confdefs.h.  */
4327 #ifdef __STDC__
4328 # include <limits.h>
4329 #else
4330 # include <assert.h>
4331 #endif
4332                      Syntax error
4333 _ACEOF
4334 if ac_fn_c_try_cpp "$LINENO"; then :
4335
4336 else
4337   # Broken: fails on valid input.
4338 continue
4339 fi
4340 rm -f conftest.err conftest.i conftest.$ac_ext
4341
4342   # OK, works on sane cases.  Now check whether nonexistent headers
4343   # can be detected and how.
4344   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4345 /* end confdefs.h.  */
4346 #include <ac_nonexistent.h>
4347 _ACEOF
4348 if ac_fn_c_try_cpp "$LINENO"; then :
4349   # Broken: success on invalid input.
4350 continue
4351 else
4352   # Passes both tests.
4353 ac_preproc_ok=:
4354 break
4355 fi
4356 rm -f conftest.err conftest.i conftest.$ac_ext
4357
4358 done
4359 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4360 rm -f conftest.i conftest.err conftest.$ac_ext
4361 if $ac_preproc_ok; then :
4362   break
4363 fi
4364
4365     done
4366     ac_cv_prog_CPP=$CPP
4367
4368 fi
4369   CPP=$ac_cv_prog_CPP
4370 else
4371   ac_cv_prog_CPP=$CPP
4372 fi
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4374 $as_echo "$CPP" >&6; }
4375 ac_preproc_ok=false
4376 for ac_c_preproc_warn_flag in '' yes
4377 do
4378   # Use a header file that comes with gcc, so configuring glibc
4379   # with a fresh cross-compiler works.
4380   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4381   # <limits.h> exists even on freestanding compilers.
4382   # On the NeXT, cc -E runs the code through the compiler's parser,
4383   # not just through cpp. "Syntax error" is here to catch this case.
4384   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h.  */
4386 #ifdef __STDC__
4387 # include <limits.h>
4388 #else
4389 # include <assert.h>
4390 #endif
4391                      Syntax error
4392 _ACEOF
4393 if ac_fn_c_try_cpp "$LINENO"; then :
4394
4395 else
4396   # Broken: fails on valid input.
4397 continue
4398 fi
4399 rm -f conftest.err conftest.i conftest.$ac_ext
4400
4401   # OK, works on sane cases.  Now check whether nonexistent headers
4402   # can be detected and how.
4403   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404 /* end confdefs.h.  */
4405 #include <ac_nonexistent.h>
4406 _ACEOF
4407 if ac_fn_c_try_cpp "$LINENO"; then :
4408   # Broken: success on invalid input.
4409 continue
4410 else
4411   # Passes both tests.
4412 ac_preproc_ok=:
4413 break
4414 fi
4415 rm -f conftest.err conftest.i conftest.$ac_ext
4416
4417 done
4418 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4419 rm -f conftest.i conftest.err conftest.$ac_ext
4420 if $ac_preproc_ok; then :
4421
4422 else
4423   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4425 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4426 See \`config.log' for more details" "$LINENO" 5; }
4427 fi
4428
4429 ac_ext=c
4430 ac_cpp='$CPP $CPPFLAGS'
4431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4434
4435 ac_ext=cpp
4436 ac_cpp='$CXXCPP $CPPFLAGS'
4437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4440 if test -z "$CXX"; then
4441   if test -n "$CCC"; then
4442     CXX=$CCC
4443   else
4444     if test -n "$ac_tool_prefix"; then
4445   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4446   do
4447     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4448 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4450 $as_echo_n "checking for $ac_word... " >&6; }
4451 if ${ac_cv_prog_CXX+:} false; then :
4452   $as_echo_n "(cached) " >&6
4453 else
4454   if test -n "$CXX"; then
4455   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4456 else
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 for as_dir in $PATH
4459 do
4460   IFS=$as_save_IFS
4461   test -z "$as_dir" && as_dir=.
4462     for ac_exec_ext in '' $ac_executable_extensions; do
4463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4464     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4466     break 2
4467   fi
4468 done
4469   done
4470 IFS=$as_save_IFS
4471
4472 fi
4473 fi
4474 CXX=$ac_cv_prog_CXX
4475 if test -n "$CXX"; then
4476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4477 $as_echo "$CXX" >&6; }
4478 else
4479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4480 $as_echo "no" >&6; }
4481 fi
4482
4483
4484     test -n "$CXX" && break
4485   done
4486 fi
4487 if test -z "$CXX"; then
4488   ac_ct_CXX=$CXX
4489   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4490 do
4491   # Extract the first word of "$ac_prog", so it can be a program name with args.
4492 set dummy $ac_prog; ac_word=$2
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4494 $as_echo_n "checking for $ac_word... " >&6; }
4495 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4496   $as_echo_n "(cached) " >&6
4497 else
4498   if test -n "$ac_ct_CXX"; then
4499   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4500 else
4501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502 for as_dir in $PATH
4503 do
4504   IFS=$as_save_IFS
4505   test -z "$as_dir" && as_dir=.
4506     for ac_exec_ext in '' $ac_executable_extensions; do
4507   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4508     ac_cv_prog_ac_ct_CXX="$ac_prog"
4509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4510     break 2
4511   fi
4512 done
4513   done
4514 IFS=$as_save_IFS
4515
4516 fi
4517 fi
4518 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4519 if test -n "$ac_ct_CXX"; then
4520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4521 $as_echo "$ac_ct_CXX" >&6; }
4522 else
4523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4524 $as_echo "no" >&6; }
4525 fi
4526
4527
4528   test -n "$ac_ct_CXX" && break
4529 done
4530
4531   if test "x$ac_ct_CXX" = x; then
4532     CXX="g++"
4533   else
4534     case $cross_compiling:$ac_tool_warned in
4535 yes:)
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4538 ac_tool_warned=yes ;;
4539 esac
4540     CXX=$ac_ct_CXX
4541   fi
4542 fi
4543
4544   fi
4545 fi
4546 # Provide some information about the compiler.
4547 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4548 set X $ac_compile
4549 ac_compiler=$2
4550 for ac_option in --version -v -V -qversion; do
4551   { { ac_try="$ac_compiler $ac_option >&5"
4552 case "(($ac_try" in
4553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4554   *) ac_try_echo=$ac_try;;
4555 esac
4556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4557 $as_echo "$ac_try_echo"; } >&5
4558   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4559   ac_status=$?
4560   if test -s conftest.err; then
4561     sed '10a\
4562 ... rest of stderr output deleted ...
4563          10q' conftest.err >conftest.er1
4564     cat conftest.er1 >&5
4565   fi
4566   rm -f conftest.er1 conftest.err
4567   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4568   test $ac_status = 0; }
4569 done
4570
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4572 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4573 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4574   $as_echo_n "(cached) " >&6
4575 else
4576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4577 /* end confdefs.h.  */
4578
4579 int
4580 main ()
4581 {
4582 #ifndef __GNUC__
4583        choke me
4584 #endif
4585
4586   ;
4587   return 0;
4588 }
4589 _ACEOF
4590 if ac_fn_cxx_try_compile "$LINENO"; then :
4591   ac_compiler_gnu=yes
4592 else
4593   ac_compiler_gnu=no
4594 fi
4595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4596 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4597
4598 fi
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4600 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4601 if test $ac_compiler_gnu = yes; then
4602   GXX=yes
4603 else
4604   GXX=
4605 fi
4606 ac_test_CXXFLAGS=${CXXFLAGS+set}
4607 ac_save_CXXFLAGS=$CXXFLAGS
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4609 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4610 if ${ac_cv_prog_cxx_g+:} false; then :
4611   $as_echo_n "(cached) " >&6
4612 else
4613   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4614    ac_cxx_werror_flag=yes
4615    ac_cv_prog_cxx_g=no
4616    CXXFLAGS="-g"
4617    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618 /* end confdefs.h.  */
4619
4620 int
4621 main ()
4622 {
4623
4624   ;
4625   return 0;
4626 }
4627 _ACEOF
4628 if ac_fn_cxx_try_compile "$LINENO"; then :
4629   ac_cv_prog_cxx_g=yes
4630 else
4631   CXXFLAGS=""
4632       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4633 /* end confdefs.h.  */
4634
4635 int
4636 main ()
4637 {
4638
4639   ;
4640   return 0;
4641 }
4642 _ACEOF
4643 if ac_fn_cxx_try_compile "$LINENO"; then :
4644
4645 else
4646   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4647          CXXFLAGS="-g"
4648          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4649 /* end confdefs.h.  */
4650
4651 int
4652 main ()
4653 {
4654
4655   ;
4656   return 0;
4657 }
4658 _ACEOF
4659 if ac_fn_cxx_try_compile "$LINENO"; then :
4660   ac_cv_prog_cxx_g=yes
4661 fi
4662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4663 fi
4664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4665 fi
4666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4667    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4668 fi
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4670 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4671 if test "$ac_test_CXXFLAGS" = set; then
4672   CXXFLAGS=$ac_save_CXXFLAGS
4673 elif test $ac_cv_prog_cxx_g = yes; then
4674   if test "$GXX" = yes; then
4675     CXXFLAGS="-g -O2"
4676   else
4677     CXXFLAGS="-g"
4678   fi
4679 else
4680   if test "$GXX" = yes; then
4681     CXXFLAGS="-O2"
4682   else
4683     CXXFLAGS=
4684   fi
4685 fi
4686 ac_ext=c
4687 ac_cpp='$CPP $CPPFLAGS'
4688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4691
4692 depcc="$CXX"  am_compiler_list=
4693
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4695 $as_echo_n "checking dependency style of $depcc... " >&6; }
4696 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4697   $as_echo_n "(cached) " >&6
4698 else
4699   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4700   # We make a subdir and do the tests there.  Otherwise we can end up
4701   # making bogus files that we don't know about and never remove.  For
4702   # instance it was reported that on HP-UX the gcc test will end up
4703   # making a dummy file named `D' -- because `-MD' means `put the output
4704   # in D'.
4705   mkdir conftest.dir
4706   # Copy depcomp to subdir because otherwise we won't find it if we're
4707   # using a relative directory.
4708   cp "$am_depcomp" conftest.dir
4709   cd conftest.dir
4710   # We will build objects and dependencies in a subdirectory because
4711   # it helps to detect inapplicable dependency modes.  For instance
4712   # both Tru64's cc and ICC support -MD to output dependencies as a
4713   # side effect of compilation, but ICC will put the dependencies in
4714   # the current directory while Tru64 will put them in the object
4715   # directory.
4716   mkdir sub
4717
4718   am_cv_CXX_dependencies_compiler_type=none
4719   if test "$am_compiler_list" = ""; then
4720      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4721   fi
4722   am__universal=false
4723   case " $depcc " in #(
4724      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4725      esac
4726
4727   for depmode in $am_compiler_list; do
4728     # Setup a source with many dependencies, because some compilers
4729     # like to wrap large dependency lists on column 80 (with \), and
4730     # we should not choose a depcomp mode which is confused by this.
4731     #
4732     # We need to recreate these files for each test, as the compiler may
4733     # overwrite some of them when testing with obscure command lines.
4734     # This happens at least with the AIX C compiler.
4735     : > sub/conftest.c
4736     for i in 1 2 3 4 5 6; do
4737       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4738       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4739       # Solaris 8's {/usr,}/bin/sh.
4740       touch sub/conftst$i.h
4741     done
4742     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4743
4744     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4745     # mode.  It turns out that the SunPro C++ compiler does not properly
4746     # handle `-M -o', and we need to detect this.  Also, some Intel
4747     # versions had trouble with output in subdirs
4748     am__obj=sub/conftest.${OBJEXT-o}
4749     am__minus_obj="-o $am__obj"
4750     case $depmode in
4751     gcc)
4752       # This depmode causes a compiler race in universal mode.
4753       test "$am__universal" = false || continue
4754       ;;
4755     nosideeffect)
4756       # after this tag, mechanisms are not by side-effect, so they'll
4757       # only be used when explicitly requested
4758       if test "x$enable_dependency_tracking" = xyes; then
4759         continue
4760       else
4761         break
4762       fi
4763       ;;
4764     msvisualcpp | msvcmsys)
4765       # This compiler won't grok `-c -o', but also, the minuso test has
4766       # not run yet.  These depmodes are late enough in the game, and
4767       # so weak that their functioning should not be impacted.
4768       am__obj=conftest.${OBJEXT-o}
4769       am__minus_obj=
4770       ;;
4771     none) break ;;
4772     esac
4773     if depmode=$depmode \
4774        source=sub/conftest.c object=$am__obj \
4775        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4776        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4777          >/dev/null 2>conftest.err &&
4778        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4779        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4780        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4781        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4782       # icc doesn't choke on unknown options, it will just issue warnings
4783       # or remarks (even with -Werror).  So we grep stderr for any message
4784       # that says an option was ignored or not supported.
4785       # When given -MP, icc 7.0 and 7.1 complain thusly:
4786       #   icc: Command line warning: ignoring option '-M'; no argument required
4787       # The diagnosis changed in icc 8.0:
4788       #   icc: Command line remark: option '-MP' not supported
4789       if (grep 'ignoring option' conftest.err ||
4790           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4791         am_cv_CXX_dependencies_compiler_type=$depmode
4792         break
4793       fi
4794     fi
4795   done
4796
4797   cd ..
4798   rm -rf conftest.dir
4799 else
4800   am_cv_CXX_dependencies_compiler_type=none
4801 fi
4802
4803 fi
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4805 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4806 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4807
4808  if
4809   test "x$enable_dependency_tracking" != xno \
4810   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4811   am__fastdepCXX_TRUE=
4812   am__fastdepCXX_FALSE='#'
4813 else
4814   am__fastdepCXX_TRUE='#'
4815   am__fastdepCXX_FALSE=
4816 fi
4817
4818
4819
4820 if test "x$CC" != xcc; then
4821   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4822 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4823 else
4824   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4825 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4826 fi
4827 set dummy $CC; ac_cc=`$as_echo "$2" |
4828                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4829 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4830   $as_echo_n "(cached) " >&6
4831 else
4832   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833 /* end confdefs.h.  */
4834
4835 int
4836 main ()
4837 {
4838
4839   ;
4840   return 0;
4841 }
4842 _ACEOF
4843 # Make sure it works both with $CC and with simple cc.
4844 # We do the test twice because some compilers refuse to overwrite an
4845 # existing .o file with -o, though they will create one.
4846 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4847 rm -f conftest2.*
4848 if { { case "(($ac_try" in
4849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4850   *) ac_try_echo=$ac_try;;
4851 esac
4852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4853 $as_echo "$ac_try_echo"; } >&5
4854   (eval "$ac_try") 2>&5
4855   ac_status=$?
4856   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4857   test $ac_status = 0; } &&
4858    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4860   *) ac_try_echo=$ac_try;;
4861 esac
4862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4863 $as_echo "$ac_try_echo"; } >&5
4864   (eval "$ac_try") 2>&5
4865   ac_status=$?
4866   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4867   test $ac_status = 0; };
4868 then
4869   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4870   if test "x$CC" != xcc; then
4871     # Test first that cc exists at all.
4872     if { ac_try='cc -c conftest.$ac_ext >&5'
4873   { { case "(($ac_try" in
4874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4875   *) ac_try_echo=$ac_try;;
4876 esac
4877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4878 $as_echo "$ac_try_echo"; } >&5
4879   (eval "$ac_try") 2>&5
4880   ac_status=$?
4881   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4882   test $ac_status = 0; }; }; then
4883       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4884       rm -f conftest2.*
4885       if { { case "(($ac_try" in
4886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4887   *) ac_try_echo=$ac_try;;
4888 esac
4889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4890 $as_echo "$ac_try_echo"; } >&5
4891   (eval "$ac_try") 2>&5
4892   ac_status=$?
4893   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4894   test $ac_status = 0; } &&
4895          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4897   *) ac_try_echo=$ac_try;;
4898 esac
4899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4900 $as_echo "$ac_try_echo"; } >&5
4901   (eval "$ac_try") 2>&5
4902   ac_status=$?
4903   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4904   test $ac_status = 0; };
4905       then
4906         # cc works too.
4907         :
4908       else
4909         # cc exists but doesn't like -o.
4910         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4911       fi
4912     fi
4913   fi
4914 else
4915   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4916 fi
4917 rm -f core conftest*
4918
4919 fi
4920 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4922 $as_echo "yes" >&6; }
4923 else
4924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925 $as_echo "no" >&6; }
4926
4927 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4928
4929 fi
4930
4931 # FIXME: we rely on the cache variable name because
4932 # there is no other way.
4933 set dummy $CC
4934 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4935 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4936 if test "$am_t" != yes; then
4937    # Losing compiler, so override with the script.
4938    # FIXME: It is wrong to rewrite CC.
4939    # But if we don't then we get into trouble of one sort or another.
4940    # A longer-term fix would be to have automake use am__CC in this case,
4941    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4942    CC="$am_aux_dir/compile $CC"
4943 fi
4944
4945
4946
4947 SED=${SED-sed}
4948
4949
4950 # Make sure that the *FLAGS given at ./configure time will be active by
4951 # default in AM_*FLAGS
4952 AM_CPPFLAGS="$AM_CPPFLAGS $CPPFLAGS"
4953 AM_CFLAGS="$AM_CFLAGS $CFLAGS"
4954 AM_CXXFLAGS="$AM_CXXFLAGS $CXXFLAGS"
4955 AM_LDFLAGS="$AM_LDFLAGS $LDFLAGS"
4956
4957 if test "x$GCC" = "xyes"; then
4958         AM_CPPFLAGS="$AM_CPPFLAGS -Wall"
4959         # AM_CFLAGS="$AM_CFLAGS --std=c99 -Wall -Wextra -Werror -pedantic"
4960         AM_CFLAGS="$AM_CFLAGS -Wall"
4961         # AM_CFLAGS="$AM_CFLAGS -Wno-pointer-sign -Wno-unused -Wno-sign-compare"
4962         AM_CFLAGS="$AM_CFLAGS -Wmissing-declarations -Wmissing-prototypes"
4963         AM_LDFLAGS="$AM_LDFLAGS -Wall"
4964         # FIXME: Check for --enable-debug here
4965         AM_CPPFLAGS="$AM_CPPFLAGS -g"
4966         AM_LDFLAGS="$AM_LDFLAGS -g"
4967         NO_UNUSED_CFLAGS=-Wno-unused
4968
4969 fi
4970  if test "x$GCC" = "xyes"; then
4971   HAVE_GCC_TRUE=
4972   HAVE_GCC_FALSE='#'
4973 else
4974   HAVE_GCC_TRUE='#'
4975   HAVE_GCC_FALSE=
4976 fi
4977
4978
4979 # Activate internal code
4980 AM_CPPFLAGS="$AM_CPPFLAGS -D_GPHOTO2_INTERNAL_CODE"
4981
4982 # Activate Samsung patch
4983 AM_CPPFLAGS="$AM_CPPFLAGS -D_GPHOTO2_SAMSUNG_PATCH_"
4984
4985 # CPPFLAGS: C PreProcessor flags
4986
4987 # CFLAGS: C compiler flags
4988
4989 # CXXFLAGS: C++ compiler flags
4990
4991 # LDFLAGS: Linker flags
4992
4993
4994 # Define compiler flags for later compile tests
4995 # Note: Do NOT add specific libraries and stuff to the generic _FLAGS.
4996 #       Put these into LIBFOO_CFLAGS and LIBFOO_LIBS instead.
4997 CFLAGS="$AM_CFLAGS"
4998 CPPFLAGS="$AM_CPPFLAGS"
4999
5000
5001 try_gp2ddb=false
5002 msg_gp2ddb=""
5003 gp_msg_dp2ddb="no"
5004
5005 # Check whether --enable-gp2ddb was given.
5006 if test "${enable_gp2ddb+set}" = set; then :
5007   enableval=$enable_gp2ddb;
5008         if test "x$enableval" = "xyes"; then
5009                 try_gp2ddb=true
5010                 msg_dp2ddb="(--enable-gp2ddb detected)"
5011         elif test "x$enableval" = "xno"; then
5012                 try_gp2ddb=false
5013                 msg_dp2ddb="(--disable-gp2ddb detected)"
5014         fi
5015
5016 fi
5017
5018
5019 # Extract the first word of "flex", so it can be a program name with args.
5020 set dummy flex; ac_word=$2
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5022 $as_echo_n "checking for $ac_word... " >&6; }
5023 if ${ac_cv_path_FLEX+:} false; then :
5024   $as_echo_n "(cached) " >&6
5025 else
5026   case $FLEX in
5027   [\\/]* | ?:[\\/]*)
5028   ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
5029   ;;
5030   *)
5031   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 for as_dir in $PATH
5033 do
5034   IFS=$as_save_IFS
5035   test -z "$as_dir" && as_dir=.
5036     for ac_exec_ext in '' $ac_executable_extensions; do
5037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5038     ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
5039     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5040     break 2
5041   fi
5042 done
5043   done
5044 IFS=$as_save_IFS
5045
5046   ;;
5047 esac
5048 fi
5049 FLEX=$ac_cv_path_FLEX
5050 if test -n "$FLEX"; then
5051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5052 $as_echo "$FLEX" >&6; }
5053 else
5054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5055 $as_echo "no" >&6; }
5056 fi
5057
5058
5059
5060 # Extract the first word of "bison", so it can be a program name with args.
5061 set dummy bison; ac_word=$2
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5063 $as_echo_n "checking for $ac_word... " >&6; }
5064 if ${ac_cv_path_BISON+:} false; then :
5065   $as_echo_n "(cached) " >&6
5066 else
5067   case $BISON in
5068   [\\/]* | ?:[\\/]*)
5069   ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
5070   ;;
5071   *)
5072   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 for as_dir in $PATH
5074 do
5075   IFS=$as_save_IFS
5076   test -z "$as_dir" && as_dir=.
5077     for ac_exec_ext in '' $ac_executable_extensions; do
5078   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5079     ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
5080     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5081     break 2
5082   fi
5083 done
5084   done
5085 IFS=$as_save_IFS
5086
5087   ;;
5088 esac
5089 fi
5090 BISON=$ac_cv_path_BISON
5091 if test -n "$BISON"; then
5092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5093 $as_echo "$BISON" >&6; }
5094 else
5095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5096 $as_echo "no" >&6; }
5097 fi
5098
5099
5100
5101
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable GP2DDB" >&5
5103 $as_echo_n "checking whether to enable GP2DDB... " >&6; }
5104 if "$try_gp2ddb"; then
5105    if test -x "$FLEX" && test -x "$BISON"; then
5106       gp_msg_dp2ddb="yes $msg_dp2ddb"
5107    else
5108       as_fn_error $? "Fatal: GP2DDB support requires flex and bison!
5109
5110 Aborting configuration.
5111
5112 Install flex and bison into your PATH or run configure with --disable-gp2ddb
5113 to disable GP2DDB support.
5114 " "$LINENO" 5
5115    fi
5116 else
5117       gp_msg_dp2ddb="no $msg_dp2ddb"
5118 fi
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gp_msg_gp2ddb}" >&5
5120 $as_echo "${gp_msg_gp2ddb}" >&6; }
5121
5122  if "$try_gp2ddb" && test -x "$FLEX" && test -x "$BISON"; then
5123   ENABLED_GP2DDB_TRUE=
5124   ENABLED_GP2DDB_FALSE='#'
5125 else
5126   ENABLED_GP2DDB_TRUE='#'
5127   ENABLED_GP2DDB_FALSE=
5128 fi
5129
5130
5131 if "$try_gp2ddb" && test -x "$FLEX" && test -x "$BISON"; then
5132         gp_msg_gp2ddb="yes $msg_gp2ddb"
5133
5134 $as_echo "#define ENABLED_GP2DDB 1" >>confdefs.h
5135
5136 else
5137         gp_msg_gp2ddb="no $msg_gp2ddb"
5138 fi
5139
5140 gp_config_msg_len="$(expr "GP2DDB support" : '.*')"
5141 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
5142         gp_config_msg_lhs="$(expr "GP2DDB support" : "\(.\{0,${gp_config_len3}\}\)")..:"
5143 else
5144         gp_config_msg_lhs="$(expr "GP2DDB support:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
5145 fi
5146 gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} ${gp_msg_gp2ddb} (EXPERIMENTAL)
5147 "
5148
5149
5150
5151 #
5152 # [GP_PKG_CONFIG]
5153 #
5154
5155 export PKG_CONFIG
5156
5157 export PKG_CONFIG_PATH
5158
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PKG_CONFIG_PATH" >&5
5160 $as_echo_n "checking PKG_CONFIG_PATH... " >&6; }
5161 if test "x${PKG_CONFIG_PATH}" = "x"; then
5162         { $as_echo "$as_me:${as_lineno-$LINENO}: result: empty" >&5
5163 $as_echo "empty" >&6; }
5164 else
5165         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PKG_CONFIG_PATH}" >&5
5166 $as_echo "${PKG_CONFIG_PATH}" >&6; }
5167 fi
5168
5169 # Extract the first word of "pkg-config", so it can be a program name with args.
5170 set dummy pkg-config; ac_word=$2
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5172 $as_echo_n "checking for $ac_word... " >&6; }
5173 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5174   $as_echo_n "(cached) " >&6
5175 else
5176   case $PKG_CONFIG in
5177   [\\/]* | ?:[\\/]*)
5178   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5179   ;;
5180   *)
5181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 for as_dir in $PATH
5183 do
5184   IFS=$as_save_IFS
5185   test -z "$as_dir" && as_dir=.
5186     for ac_exec_ext in '' $ac_executable_extensions; do
5187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5188     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5189     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5190     break 2
5191   fi
5192 done
5193   done
5194 IFS=$as_save_IFS
5195
5196   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="false"
5197   ;;
5198 esac
5199 fi
5200 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5201 if test -n "$PKG_CONFIG"; then
5202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5203 $as_echo "$PKG_CONFIG" >&6; }
5204 else
5205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5206 $as_echo "no" >&6; }
5207 fi
5208
5209
5210 if test "$PKG_CONFIG" = "false"; then
5211 as_fn_error $? "
5212 *** Build requires pkg-config
5213 ***
5214 *** Possible solutions:
5215 ***   - set PKG_CONFIG to where your pkg-config is located
5216 ***   - set PATH to include the directory where pkg-config is installed
5217 ***   - get it from http://freedesktop.org/software/pkgconfig/ and install it
5218 " "$LINENO" 5
5219 fi
5220
5221
5222
5223 # Check whether --enable-static was given.
5224 if test "${enable_static+set}" = set; then :
5225   enableval=$enable_static; p=${PACKAGE-default}
5226     case $enableval in
5227     yes) enable_static=yes ;;
5228     no) enable_static=no ;;
5229     *)
5230      enable_static=no
5231       # Look at the argument we got.  We use all the common list separators.
5232       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5233       for pkg in $enableval; do
5234         IFS="$lt_save_ifs"
5235         if test "X$pkg" = "X$p"; then
5236           enable_static=yes
5237         fi
5238       done
5239       IFS="$lt_save_ifs"
5240       ;;
5241     esac
5242 else
5243   enable_static=no
5244 fi
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254 # Make sure we can run config.sub.
5255 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5256   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5257
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5259 $as_echo_n "checking build system type... " >&6; }
5260 if ${ac_cv_build+:} false; then :
5261   $as_echo_n "(cached) " >&6
5262 else
5263   ac_build_alias=$build_alias
5264 test "x$ac_build_alias" = x &&
5265   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5266 test "x$ac_build_alias" = x &&
5267   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5268 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5269   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5270
5271 fi
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5273 $as_echo "$ac_cv_build" >&6; }
5274 case $ac_cv_build in
5275 *-*-*) ;;
5276 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5277 esac
5278 build=$ac_cv_build
5279 ac_save_IFS=$IFS; IFS='-'
5280 set x $ac_cv_build
5281 shift
5282 build_cpu=$1
5283 build_vendor=$2
5284 shift; shift
5285 # Remember, the first character of IFS is used to create $*,
5286 # except with old shells:
5287 build_os=$*
5288 IFS=$ac_save_IFS
5289 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5290
5291
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5293 $as_echo_n "checking host system type... " >&6; }
5294 if ${ac_cv_host+:} false; then :
5295   $as_echo_n "(cached) " >&6
5296 else
5297   if test "x$host_alias" = x; then
5298   ac_cv_host=$ac_cv_build
5299 else
5300   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5301     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5302 fi
5303
5304 fi
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5306 $as_echo "$ac_cv_host" >&6; }
5307 case $ac_cv_host in
5308 *-*-*) ;;
5309 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5310 esac
5311 host=$ac_cv_host
5312 ac_save_IFS=$IFS; IFS='-'
5313 set x $ac_cv_host
5314 shift
5315 host_cpu=$1
5316 host_vendor=$2
5317 shift; shift
5318 # Remember, the first character of IFS is used to create $*,
5319 # except with old shells:
5320 host_os=$*
5321 IFS=$ac_save_IFS
5322 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5323
5324
5325 enable_win32_dll=yes
5326
5327 case $host in
5328 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
5329   if test -n "$ac_tool_prefix"; then
5330   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5331 set dummy ${ac_tool_prefix}as; ac_word=$2
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5333 $as_echo_n "checking for $ac_word... " >&6; }
5334 if ${ac_cv_prog_AS+:} false; then :
5335   $as_echo_n "(cached) " >&6
5336 else
5337   if test -n "$AS"; then
5338   ac_cv_prog_AS="$AS" # Let the user override the test.
5339 else
5340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341 for as_dir in $PATH
5342 do
5343   IFS=$as_save_IFS
5344   test -z "$as_dir" && as_dir=.
5345     for ac_exec_ext in '' $ac_executable_extensions; do
5346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5347     ac_cv_prog_AS="${ac_tool_prefix}as"
5348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5349     break 2
5350   fi
5351 done
5352   done
5353 IFS=$as_save_IFS
5354
5355 fi
5356 fi
5357 AS=$ac_cv_prog_AS
5358 if test -n "$AS"; then
5359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5360 $as_echo "$AS" >&6; }
5361 else
5362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5363 $as_echo "no" >&6; }
5364 fi
5365
5366
5367 fi
5368 if test -z "$ac_cv_prog_AS"; then
5369   ac_ct_AS=$AS
5370   # Extract the first word of "as", so it can be a program name with args.
5371 set dummy as; ac_word=$2
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5373 $as_echo_n "checking for $ac_word... " >&6; }
5374 if ${ac_cv_prog_ac_ct_AS+:} false; then :
5375   $as_echo_n "(cached) " >&6
5376 else
5377   if test -n "$ac_ct_AS"; then
5378   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5379 else
5380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5381 for as_dir in $PATH
5382 do
5383   IFS=$as_save_IFS
5384   test -z "$as_dir" && as_dir=.
5385     for ac_exec_ext in '' $ac_executable_extensions; do
5386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5387     ac_cv_prog_ac_ct_AS="as"
5388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5389     break 2
5390   fi
5391 done
5392   done
5393 IFS=$as_save_IFS
5394
5395 fi
5396 fi
5397 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5398 if test -n "$ac_ct_AS"; then
5399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5400 $as_echo "$ac_ct_AS" >&6; }
5401 else
5402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5403 $as_echo "no" >&6; }
5404 fi
5405
5406   if test "x$ac_ct_AS" = x; then
5407     AS="false"
5408   else
5409     case $cross_compiling:$ac_tool_warned in
5410 yes:)
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5412 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5413 ac_tool_warned=yes ;;
5414 esac
5415     AS=$ac_ct_AS
5416   fi
5417 else
5418   AS="$ac_cv_prog_AS"
5419 fi
5420
5421   if test -n "$ac_tool_prefix"; then
5422   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5423 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5425 $as_echo_n "checking for $ac_word... " >&6; }
5426 if ${ac_cv_prog_DLLTOOL+:} false; then :
5427   $as_echo_n "(cached) " >&6
5428 else
5429   if test -n "$DLLTOOL"; then
5430   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5431 else
5432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433 for as_dir in $PATH
5434 do
5435   IFS=$as_save_IFS
5436   test -z "$as_dir" && as_dir=.
5437     for ac_exec_ext in '' $ac_executable_extensions; do
5438   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5439     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5440     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5441     break 2
5442   fi
5443 done
5444   done
5445 IFS=$as_save_IFS
5446
5447 fi
5448 fi
5449 DLLTOOL=$ac_cv_prog_DLLTOOL
5450 if test -n "$DLLTOOL"; then
5451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5452 $as_echo "$DLLTOOL" >&6; }
5453 else
5454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5455 $as_echo "no" >&6; }
5456 fi
5457
5458
5459 fi
5460 if test -z "$ac_cv_prog_DLLTOOL"; then
5461   ac_ct_DLLTOOL=$DLLTOOL
5462   # Extract the first word of "dlltool", so it can be a program name with args.
5463 set dummy dlltool; ac_word=$2
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5465 $as_echo_n "checking for $ac_word... " >&6; }
5466 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5467   $as_echo_n "(cached) " >&6
5468 else
5469   if test -n "$ac_ct_DLLTOOL"; then
5470   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5471 else
5472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473 for as_dir in $PATH
5474 do
5475   IFS=$as_save_IFS
5476   test -z "$as_dir" && as_dir=.
5477     for ac_exec_ext in '' $ac_executable_extensions; do
5478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5479     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5481     break 2
5482   fi
5483 done
5484   done
5485 IFS=$as_save_IFS
5486
5487 fi
5488 fi
5489 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5490 if test -n "$ac_ct_DLLTOOL"; then
5491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5492 $as_echo "$ac_ct_DLLTOOL" >&6; }
5493 else
5494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5495 $as_echo "no" >&6; }
5496 fi
5497
5498   if test "x$ac_ct_DLLTOOL" = x; then
5499     DLLTOOL="false"
5500   else
5501     case $cross_compiling:$ac_tool_warned in
5502 yes:)
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5505 ac_tool_warned=yes ;;
5506 esac
5507     DLLTOOL=$ac_ct_DLLTOOL
5508   fi
5509 else
5510   DLLTOOL="$ac_cv_prog_DLLTOOL"
5511 fi
5512
5513   if test -n "$ac_tool_prefix"; then
5514   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5515 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5517 $as_echo_n "checking for $ac_word... " >&6; }
5518 if ${ac_cv_prog_OBJDUMP+:} false; then :
5519   $as_echo_n "(cached) " >&6
5520 else
5521   if test -n "$OBJDUMP"; then
5522   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5523 else
5524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525 for as_dir in $PATH
5526 do
5527   IFS=$as_save_IFS
5528   test -z "$as_dir" && as_dir=.
5529     for ac_exec_ext in '' $ac_executable_extensions; do
5530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5531     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5533     break 2
5534   fi
5535 done
5536   done
5537 IFS=$as_save_IFS
5538
5539 fi
5540 fi
5541 OBJDUMP=$ac_cv_prog_OBJDUMP
5542 if test -n "$OBJDUMP"; then
5543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5544 $as_echo "$OBJDUMP" >&6; }
5545 else
5546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5547 $as_echo "no" >&6; }
5548 fi
5549
5550
5551 fi
5552 if test -z "$ac_cv_prog_OBJDUMP"; then
5553   ac_ct_OBJDUMP=$OBJDUMP
5554   # Extract the first word of "objdump", so it can be a program name with args.
5555 set dummy objdump; ac_word=$2
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5557 $as_echo_n "checking for $ac_word... " >&6; }
5558 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5559   $as_echo_n "(cached) " >&6
5560 else
5561   if test -n "$ac_ct_OBJDUMP"; then
5562   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5563 else
5564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565 for as_dir in $PATH
5566 do
5567   IFS=$as_save_IFS
5568   test -z "$as_dir" && as_dir=.
5569     for ac_exec_ext in '' $ac_executable_extensions; do
5570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5571     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5572     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5573     break 2
5574   fi
5575 done
5576   done
5577 IFS=$as_save_IFS
5578
5579 fi
5580 fi
5581 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5582 if test -n "$ac_ct_OBJDUMP"; then
5583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5584 $as_echo "$ac_ct_OBJDUMP" >&6; }
5585 else
5586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5587 $as_echo "no" >&6; }
5588 fi
5589
5590   if test "x$ac_ct_OBJDUMP" = x; then
5591     OBJDUMP="false"
5592   else
5593     case $cross_compiling:$ac_tool_warned in
5594 yes:)
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5597 ac_tool_warned=yes ;;
5598 esac
5599     OBJDUMP=$ac_ct_OBJDUMP
5600   fi
5601 else
5602   OBJDUMP="$ac_cv_prog_OBJDUMP"
5603 fi
5604
5605   ;;
5606 esac
5607
5608 test -z "$AS" && AS=as
5609
5610
5611
5612
5613
5614 test -z "$DLLTOOL" && DLLTOOL=dlltool
5615
5616
5617
5618
5619
5620 test -z "$OBJDUMP" && OBJDUMP=objdump
5621
5622
5623
5624
5625
5626
5627
5628 enable_dlopen=yes
5629
5630
5631
5632 case `pwd` in
5633   *\ * | *\     *)
5634     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5635 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5636 esac
5637
5638
5639
5640 macro_version='2.2.6b'
5641 macro_revision='1.3017'
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655 ltmain="$ac_aux_dir/ltmain.sh"
5656
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5658 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5659 if ${ac_cv_path_SED+:} false; then :
5660   $as_echo_n "(cached) " >&6
5661 else
5662             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5663      for ac_i in 1 2 3 4 5 6 7; do
5664        ac_script="$ac_script$as_nl$ac_script"
5665      done
5666      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5667      { ac_script=; unset ac_script;}
5668      if test -z "$SED"; then
5669   ac_path_SED_found=false
5670   # Loop through the user's path and test for each of PROGNAME-LIST
5671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672 for as_dir in $PATH
5673 do
5674   IFS=$as_save_IFS
5675   test -z "$as_dir" && as_dir=.
5676     for ac_prog in sed gsed; do
5677     for ac_exec_ext in '' $ac_executable_extensions; do
5678       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5679       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5680 # Check for GNU ac_path_SED and select it if it is found.
5681   # Check for GNU $ac_path_SED
5682 case `"$ac_path_SED" --version 2>&1` in
5683 *GNU*)
5684   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5685 *)
5686   ac_count=0
5687   $as_echo_n 0123456789 >"conftest.in"
5688   while :
5689   do
5690     cat "conftest.in" "conftest.in" >"conftest.tmp"
5691     mv "conftest.tmp" "conftest.in"
5692     cp "conftest.in" "conftest.nl"
5693     $as_echo '' >> "conftest.nl"
5694     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5695     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5696     as_fn_arith $ac_count + 1 && ac_count=$as_val
5697     if test $ac_count -gt ${ac_path_SED_max-0}; then
5698       # Best one so far, save it but keep looking for a better one
5699       ac_cv_path_SED="$ac_path_SED"
5700       ac_path_SED_max=$ac_count
5701     fi
5702     # 10*(2^10) chars as input seems more than enough
5703     test $ac_count -gt 10 && break
5704   done
5705   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5706 esac
5707
5708       $ac_path_SED_found && break 3
5709     done
5710   done
5711   done
5712 IFS=$as_save_IFS
5713   if test -z "$ac_cv_path_SED"; then
5714     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5715   fi
5716 else
5717   ac_cv_path_SED=$SED
5718 fi
5719
5720 fi
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5722 $as_echo "$ac_cv_path_SED" >&6; }
5723  SED="$ac_cv_path_SED"
5724   rm -f conftest.sed
5725
5726 test -z "$SED" && SED=sed
5727 Xsed="$SED -e 1s/^X//"
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5740 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5741 if ${ac_cv_path_GREP+:} false; then :
5742   $as_echo_n "(cached) " >&6
5743 else
5744   if test -z "$GREP"; then
5745   ac_path_GREP_found=false
5746   # Loop through the user's path and test for each of PROGNAME-LIST
5747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5748 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5749 do
5750   IFS=$as_save_IFS
5751   test -z "$as_dir" && as_dir=.
5752     for ac_prog in grep ggrep; do
5753     for ac_exec_ext in '' $ac_executable_extensions; do
5754       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5755       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5756 # Check for GNU ac_path_GREP and select it if it is found.
5757   # Check for GNU $ac_path_GREP
5758 case `"$ac_path_GREP" --version 2>&1` in
5759 *GNU*)
5760   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5761 *)
5762   ac_count=0
5763   $as_echo_n 0123456789 >"conftest.in"
5764   while :
5765   do
5766     cat "conftest.in" "conftest.in" >"conftest.tmp"
5767     mv "conftest.tmp" "conftest.in"
5768     cp "conftest.in" "conftest.nl"
5769     $as_echo 'GREP' >> "conftest.nl"
5770     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5771     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5772     as_fn_arith $ac_count + 1 && ac_count=$as_val
5773     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5774       # Best one so far, save it but keep looking for a better one
5775       ac_cv_path_GREP="$ac_path_GREP"
5776       ac_path_GREP_max=$ac_count
5777     fi
5778     # 10*(2^10) chars as input seems more than enough
5779     test $ac_count -gt 10 && break
5780   done
5781   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5782 esac
5783
5784       $ac_path_GREP_found && break 3
5785     done
5786   done
5787   done
5788 IFS=$as_save_IFS
5789   if test -z "$ac_cv_path_GREP"; then
5790     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5791   fi
5792 else
5793   ac_cv_path_GREP=$GREP
5794 fi
5795
5796 fi
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5798 $as_echo "$ac_cv_path_GREP" >&6; }
5799  GREP="$ac_cv_path_GREP"
5800
5801
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5803 $as_echo_n "checking for egrep... " >&6; }
5804 if ${ac_cv_path_EGREP+:} false; then :
5805   $as_echo_n "(cached) " >&6
5806 else
5807   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5808    then ac_cv_path_EGREP="$GREP -E"
5809    else
5810      if test -z "$EGREP"; then
5811   ac_path_EGREP_found=false
5812   # Loop through the user's path and test for each of PROGNAME-LIST
5813   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5814 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5815 do
5816   IFS=$as_save_IFS
5817   test -z "$as_dir" && as_dir=.
5818     for ac_prog in egrep; do
5819     for ac_exec_ext in '' $ac_executable_extensions; do
5820       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5821       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5822 # Check for GNU ac_path_EGREP and select it if it is found.
5823   # Check for GNU $ac_path_EGREP
5824 case `"$ac_path_EGREP" --version 2>&1` in
5825 *GNU*)
5826   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5827 *)
5828   ac_count=0
5829   $as_echo_n 0123456789 >"conftest.in"
5830   while :
5831   do
5832     cat "conftest.in" "conftest.in" >"conftest.tmp"
5833     mv "conftest.tmp" "conftest.in"
5834     cp "conftest.in" "conftest.nl"
5835     $as_echo 'EGREP' >> "conftest.nl"
5836     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5837     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5838     as_fn_arith $ac_count + 1 && ac_count=$as_val
5839     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5840       # Best one so far, save it but keep looking for a better one
5841       ac_cv_path_EGREP="$ac_path_EGREP"
5842       ac_path_EGREP_max=$ac_count
5843     fi
5844     # 10*(2^10) chars as input seems more than enough
5845     test $ac_count -gt 10 && break
5846   done
5847   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5848 esac
5849
5850       $ac_path_EGREP_found && break 3
5851     done
5852   done
5853   done
5854 IFS=$as_save_IFS
5855   if test -z "$ac_cv_path_EGREP"; then
5856     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5857   fi
5858 else
5859   ac_cv_path_EGREP=$EGREP
5860 fi
5861
5862    fi
5863 fi
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5865 $as_echo "$ac_cv_path_EGREP" >&6; }
5866  EGREP="$ac_cv_path_EGREP"
5867
5868
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5870 $as_echo_n "checking for fgrep... " >&6; }
5871 if ${ac_cv_path_FGREP+:} false; then :
5872   $as_echo_n "(cached) " >&6
5873 else
5874   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5875    then ac_cv_path_FGREP="$GREP -F"
5876    else
5877      if test -z "$FGREP"; then
5878   ac_path_FGREP_found=false
5879   # Loop through the user's path and test for each of PROGNAME-LIST
5880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5882 do
5883   IFS=$as_save_IFS
5884   test -z "$as_dir" && as_dir=.
5885     for ac_prog in fgrep; do
5886     for ac_exec_ext in '' $ac_executable_extensions; do
5887       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5888       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5889 # Check for GNU ac_path_FGREP and select it if it is found.
5890   # Check for GNU $ac_path_FGREP
5891 case `"$ac_path_FGREP" --version 2>&1` in
5892 *GNU*)
5893   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5894 *)
5895   ac_count=0
5896   $as_echo_n 0123456789 >"conftest.in"
5897   while :
5898   do
5899     cat "conftest.in" "conftest.in" >"conftest.tmp"
5900     mv "conftest.tmp" "conftest.in"
5901     cp "conftest.in" "conftest.nl"
5902     $as_echo 'FGREP' >> "conftest.nl"
5903     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5904     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5905     as_fn_arith $ac_count + 1 && ac_count=$as_val
5906     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5907       # Best one so far, save it but keep looking for a better one
5908       ac_cv_path_FGREP="$ac_path_FGREP"
5909       ac_path_FGREP_max=$ac_count
5910     fi
5911     # 10*(2^10) chars as input seems more than enough
5912     test $ac_count -gt 10 && break
5913   done
5914   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5915 esac
5916
5917       $ac_path_FGREP_found && break 3
5918     done
5919   done
5920   done
5921 IFS=$as_save_IFS
5922   if test -z "$ac_cv_path_FGREP"; then
5923     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5924   fi
5925 else
5926   ac_cv_path_FGREP=$FGREP
5927 fi
5928
5929    fi
5930 fi
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5932 $as_echo "$ac_cv_path_FGREP" >&6; }
5933  FGREP="$ac_cv_path_FGREP"
5934
5935
5936 test -z "$GREP" && GREP=grep
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956 # Check whether --with-gnu-ld was given.
5957 if test "${with_gnu_ld+set}" = set; then :
5958   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5959 else
5960   with_gnu_ld=no
5961 fi
5962
5963 ac_prog=ld
5964 if test "$GCC" = yes; then
5965   # Check if gcc -print-prog-name=ld gives a path.
5966   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5967 $as_echo_n "checking for ld used by $CC... " >&6; }
5968   case $host in
5969   *-*-mingw*)
5970     # gcc leaves a trailing carriage return which upsets mingw
5971     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5972   *)
5973     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5974   esac
5975   case $ac_prog in
5976     # Accept absolute paths.
5977     [\\/]* | ?:[\\/]*)
5978       re_direlt='/[^/][^/]*/\.\./'
5979       # Canonicalize the pathname of ld
5980       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5981       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5982         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5983       done
5984       test -z "$LD" && LD="$ac_prog"
5985       ;;
5986   "")
5987     # If it fails, then pretend we aren't using GCC.
5988     ac_prog=ld
5989     ;;
5990   *)
5991     # If it is relative, then search for the first ld in PATH.
5992     with_gnu_ld=unknown
5993     ;;
5994   esac
5995 elif test "$with_gnu_ld" = yes; then
5996   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5997 $as_echo_n "checking for GNU ld... " >&6; }
5998 else
5999   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6000 $as_echo_n "checking for non-GNU ld... " >&6; }
6001 fi
6002 if ${lt_cv_path_LD+:} false; then :
6003   $as_echo_n "(cached) " >&6
6004 else
6005   if test -z "$LD"; then
6006   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6007   for ac_dir in $PATH; do
6008     IFS="$lt_save_ifs"
6009     test -z "$ac_dir" && ac_dir=.
6010     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6011       lt_cv_path_LD="$ac_dir/$ac_prog"
6012       # Check to see if the program is GNU ld.  I'd rather use --version,
6013       # but apparently some variants of GNU ld only accept -v.
6014       # Break only if it was the GNU/non-GNU ld that we prefer.
6015       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6016       *GNU* | *'with BFD'*)
6017         test "$with_gnu_ld" != no && break
6018         ;;
6019       *)
6020         test "$with_gnu_ld" != yes && break
6021         ;;
6022       esac
6023     fi
6024   done
6025   IFS="$lt_save_ifs"
6026 else
6027   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6028 fi
6029 fi
6030
6031 LD="$lt_cv_path_LD"
6032 if test -n "$LD"; then
6033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6034 $as_echo "$LD" >&6; }
6035 else
6036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6037 $as_echo "no" >&6; }
6038 fi
6039 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6041 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6042 if ${lt_cv_prog_gnu_ld+:} false; then :
6043   $as_echo_n "(cached) " >&6
6044 else
6045   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6046 case `$LD -v 2>&1 </dev/null` in
6047 *GNU* | *'with BFD'*)
6048   lt_cv_prog_gnu_ld=yes
6049   ;;
6050 *)
6051   lt_cv_prog_gnu_ld=no
6052   ;;
6053 esac
6054 fi
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6056 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6057 with_gnu_ld=$lt_cv_prog_gnu_ld
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6068 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6069 if ${lt_cv_path_NM+:} false; then :
6070   $as_echo_n "(cached) " >&6
6071 else
6072   if test -n "$NM"; then
6073   # Let the user override the test.
6074   lt_cv_path_NM="$NM"
6075 else
6076   lt_nm_to_check="${ac_tool_prefix}nm"
6077   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6078     lt_nm_to_check="$lt_nm_to_check nm"
6079   fi
6080   for lt_tmp_nm in $lt_nm_to_check; do
6081     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6082     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6083       IFS="$lt_save_ifs"
6084       test -z "$ac_dir" && ac_dir=.
6085       tmp_nm="$ac_dir/$lt_tmp_nm"
6086       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6087         # Check to see if the nm accepts a BSD-compat flag.
6088         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6089         #   nm: unknown option "B" ignored
6090         # Tru64's nm complains that /dev/null is an invalid object file
6091         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6092         */dev/null* | *'Invalid file or object type'*)
6093           lt_cv_path_NM="$tmp_nm -B"
6094           break
6095           ;;
6096         *)
6097           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6098           */dev/null*)
6099             lt_cv_path_NM="$tmp_nm -p"
6100             break
6101             ;;
6102           *)
6103             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6104             continue # so that we can try to find one that supports BSD flags
6105             ;;
6106           esac
6107           ;;
6108         esac
6109       fi
6110     done
6111     IFS="$lt_save_ifs"
6112   done
6113   : ${lt_cv_path_NM=no}
6114 fi
6115 fi
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6117 $as_echo "$lt_cv_path_NM" >&6; }
6118 if test "$lt_cv_path_NM" != "no"; then
6119   NM="$lt_cv_path_NM"
6120 else
6121   # Didn't find any BSD compatible name lister, look for dumpbin.
6122   if test -n "$ac_tool_prefix"; then
6123   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6124   do
6125     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6126 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6128 $as_echo_n "checking for $ac_word... " >&6; }
6129 if ${ac_cv_prog_DUMPBIN+:} false; then :
6130   $as_echo_n "(cached) " >&6
6131 else
6132   if test -n "$DUMPBIN"; then
6133   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6134 else
6135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136 for as_dir in $PATH
6137 do
6138   IFS=$as_save_IFS
6139   test -z "$as_dir" && as_dir=.
6140     for ac_exec_ext in '' $ac_executable_extensions; do
6141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6142     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6144     break 2
6145   fi
6146 done
6147   done
6148 IFS=$as_save_IFS
6149
6150 fi
6151 fi
6152 DUMPBIN=$ac_cv_prog_DUMPBIN
6153 if test -n "$DUMPBIN"; then
6154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6155 $as_echo "$DUMPBIN" >&6; }
6156 else
6157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6158 $as_echo "no" >&6; }
6159 fi
6160
6161
6162     test -n "$DUMPBIN" && break
6163   done
6164 fi
6165 if test -z "$DUMPBIN"; then
6166   ac_ct_DUMPBIN=$DUMPBIN
6167   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6168 do
6169   # Extract the first word of "$ac_prog", so it can be a program name with args.
6170 set dummy $ac_prog; ac_word=$2
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6172 $as_echo_n "checking for $ac_word... " >&6; }
6173 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6174   $as_echo_n "(cached) " >&6
6175 else
6176   if test -n "$ac_ct_DUMPBIN"; then
6177   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6178 else
6179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180 for as_dir in $PATH
6181 do
6182   IFS=$as_save_IFS
6183   test -z "$as_dir" && as_dir=.
6184     for ac_exec_ext in '' $ac_executable_extensions; do
6185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6186     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6188     break 2
6189   fi
6190 done
6191   done
6192 IFS=$as_save_IFS
6193
6194 fi
6195 fi
6196 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6197 if test -n "$ac_ct_DUMPBIN"; then
6198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6199 $as_echo "$ac_ct_DUMPBIN" >&6; }
6200 else
6201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6202 $as_echo "no" >&6; }
6203 fi
6204
6205
6206   test -n "$ac_ct_DUMPBIN" && break
6207 done
6208
6209   if test "x$ac_ct_DUMPBIN" = x; then
6210     DUMPBIN=":"
6211   else
6212     case $cross_compiling:$ac_tool_warned in
6213 yes:)
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6216 ac_tool_warned=yes ;;
6217 esac
6218     DUMPBIN=$ac_ct_DUMPBIN
6219   fi
6220 fi
6221
6222
6223   if test "$DUMPBIN" != ":"; then
6224     NM="$DUMPBIN"
6225   fi
6226 fi
6227 test -z "$NM" && NM=nm
6228
6229
6230
6231
6232
6233
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6235 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6236 if ${lt_cv_nm_interface+:} false; then :
6237   $as_echo_n "(cached) " >&6
6238 else
6239   lt_cv_nm_interface="BSD nm"
6240   echo "int some_variable = 0;" > conftest.$ac_ext
6241   (eval echo "\"\$as_me:6241: $ac_compile\"" >&5)
6242   (eval "$ac_compile" 2>conftest.err)
6243   cat conftest.err >&5
6244   (eval echo "\"\$as_me:6244: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6245   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6246   cat conftest.err >&5
6247   (eval echo "\"\$as_me:6247: output\"" >&5)
6248   cat conftest.out >&5
6249   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6250     lt_cv_nm_interface="MS dumpbin"
6251   fi
6252   rm -f conftest*
6253 fi
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6255 $as_echo "$lt_cv_nm_interface" >&6; }
6256
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6258 $as_echo_n "checking whether ln -s works... " >&6; }
6259 LN_S=$as_ln_s
6260 if test "$LN_S" = "ln -s"; then
6261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6262 $as_echo "yes" >&6; }
6263 else
6264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6265 $as_echo "no, using $LN_S" >&6; }
6266 fi
6267
6268 # find the maximum length of command line arguments
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6270 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6271 if ${lt_cv_sys_max_cmd_len+:} false; then :
6272   $as_echo_n "(cached) " >&6
6273 else
6274     i=0
6275   teststring="ABCD"
6276
6277   case $build_os in
6278   msdosdjgpp*)
6279     # On DJGPP, this test can blow up pretty badly due to problems in libc
6280     # (any single argument exceeding 2000 bytes causes a buffer overrun
6281     # during glob expansion).  Even if it were fixed, the result of this
6282     # check would be larger than it should be.
6283     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6284     ;;
6285
6286   gnu*)
6287     # Under GNU Hurd, this test is not required because there is
6288     # no limit to the length of command line arguments.
6289     # Libtool will interpret -1 as no limit whatsoever
6290     lt_cv_sys_max_cmd_len=-1;
6291     ;;
6292
6293   cygwin* | mingw* | cegcc*)
6294     # On Win9x/ME, this test blows up -- it succeeds, but takes
6295     # about 5 minutes as the teststring grows exponentially.
6296     # Worse, since 9x/ME are not pre-emptively multitasking,
6297     # you end up with a "frozen" computer, even though with patience
6298     # the test eventually succeeds (with a max line length of 256k).
6299     # Instead, let's just punt: use the minimum linelength reported by
6300     # all of the supported platforms: 8192 (on NT/2K/XP).
6301     lt_cv_sys_max_cmd_len=8192;
6302     ;;
6303
6304   amigaos*)
6305     # On AmigaOS with pdksh, this test takes hours, literally.
6306     # So we just punt and use a minimum line length of 8192.
6307     lt_cv_sys_max_cmd_len=8192;
6308     ;;
6309
6310   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6311     # This has been around since 386BSD, at least.  Likely further.
6312     if test -x /sbin/sysctl; then
6313       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6314     elif test -x /usr/sbin/sysctl; then
6315       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6316     else
6317       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6318     fi
6319     # And add a safety zone
6320     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6321     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6322     ;;
6323
6324   interix*)
6325     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6326     lt_cv_sys_max_cmd_len=196608
6327     ;;
6328
6329   osf*)
6330     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6331     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6332     # nice to cause kernel panics so lets avoid the loop below.
6333     # First set a reasonable default.
6334     lt_cv_sys_max_cmd_len=16384
6335     #
6336     if test -x /sbin/sysconfig; then
6337       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6338         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6339       esac
6340     fi
6341     ;;
6342   sco3.2v5*)
6343     lt_cv_sys_max_cmd_len=102400
6344     ;;
6345   sysv5* | sco5v6* | sysv4.2uw2*)
6346     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6347     if test -n "$kargmax"; then
6348       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6349     else
6350       lt_cv_sys_max_cmd_len=32768
6351     fi
6352     ;;
6353   *)
6354     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6355     if test -n "$lt_cv_sys_max_cmd_len"; then
6356       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6357       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6358     else
6359       # Make teststring a little bigger before we do anything with it.
6360       # a 1K string should be a reasonable start.
6361       for i in 1 2 3 4 5 6 7 8 ; do
6362         teststring=$teststring$teststring
6363       done
6364       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6365       # If test is not a shell built-in, we'll probably end up computing a
6366       # maximum length that is only half of the actual maximum length, but
6367       # we can't tell.
6368       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6369                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6370               test $i != 17 # 1/2 MB should be enough
6371       do
6372         i=`expr $i + 1`
6373         teststring=$teststring$teststring
6374       done
6375       # Only check the string length outside the loop.
6376       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6377       teststring=
6378       # Add a significant safety factor because C++ compilers can tack on
6379       # massive amounts of additional arguments before passing them to the
6380       # linker.  It appears as though 1/2 is a usable value.
6381       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6382     fi
6383     ;;
6384   esac
6385
6386 fi
6387
6388 if test -n $lt_cv_sys_max_cmd_len ; then
6389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6390 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6391 else
6392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6393 $as_echo "none" >&6; }
6394 fi
6395 max_cmd_len=$lt_cv_sys_max_cmd_len
6396
6397
6398
6399
6400
6401
6402 : ${CP="cp -f"}
6403 : ${MV="mv -f"}
6404 : ${RM="rm -f"}
6405
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6407 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6408 # Try some XSI features
6409 xsi_shell=no
6410 ( _lt_dummy="a/b/c"
6411   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6412       = c,a/b,, \
6413     && eval 'test $(( 1 + 1 )) -eq 2 \
6414     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6415   && xsi_shell=yes
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6417 $as_echo "$xsi_shell" >&6; }
6418
6419
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6421 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6422 lt_shell_append=no
6423 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6424     >/dev/null 2>&1 \
6425   && lt_shell_append=yes
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6427 $as_echo "$lt_shell_append" >&6; }
6428
6429
6430 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6431   lt_unset=unset
6432 else
6433   lt_unset=false
6434 fi
6435
6436
6437
6438
6439
6440 # test EBCDIC or ASCII
6441 case `echo X|tr X '\101'` in
6442  A) # ASCII based system
6443     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6444   lt_SP2NL='tr \040 \012'
6445   lt_NL2SP='tr \015\012 \040\040'
6446   ;;
6447  *) # EBCDIC based system
6448   lt_SP2NL='tr \100 \n'
6449   lt_NL2SP='tr \r\n \100\100'
6450   ;;
6451 esac
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6462 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6463 if ${lt_cv_ld_reload_flag+:} false; then :
6464   $as_echo_n "(cached) " >&6
6465 else
6466   lt_cv_ld_reload_flag='-r'
6467 fi
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6469 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6470 reload_flag=$lt_cv_ld_reload_flag
6471 case $reload_flag in
6472 "" | " "*) ;;
6473 *) reload_flag=" $reload_flag" ;;
6474 esac
6475 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6476 case $host_os in
6477   darwin*)
6478     if test "$GCC" = yes; then
6479       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6480     else
6481       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6482     fi
6483     ;;
6484 esac
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494 if test -n "$ac_tool_prefix"; then
6495   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6496 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6498 $as_echo_n "checking for $ac_word... " >&6; }
6499 if ${ac_cv_prog_OBJDUMP+:} false; then :
6500   $as_echo_n "(cached) " >&6
6501 else
6502   if test -n "$OBJDUMP"; then
6503   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6504 else
6505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506 for as_dir in $PATH
6507 do
6508   IFS=$as_save_IFS
6509   test -z "$as_dir" && as_dir=.
6510     for ac_exec_ext in '' $ac_executable_extensions; do
6511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6512     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6514     break 2
6515   fi
6516 done
6517   done
6518 IFS=$as_save_IFS
6519
6520 fi
6521 fi
6522 OBJDUMP=$ac_cv_prog_OBJDUMP
6523 if test -n "$OBJDUMP"; then
6524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6525 $as_echo "$OBJDUMP" >&6; }
6526 else
6527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6528 $as_echo "no" >&6; }
6529 fi
6530
6531
6532 fi
6533 if test -z "$ac_cv_prog_OBJDUMP"; then
6534   ac_ct_OBJDUMP=$OBJDUMP
6535   # Extract the first word of "objdump", so it can be a program name with args.
6536 set dummy objdump; ac_word=$2
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6538 $as_echo_n "checking for $ac_word... " >&6; }
6539 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6540   $as_echo_n "(cached) " >&6
6541 else
6542   if test -n "$ac_ct_OBJDUMP"; then
6543   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6544 else
6545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546 for as_dir in $PATH
6547 do
6548   IFS=$as_save_IFS
6549   test -z "$as_dir" && as_dir=.
6550     for ac_exec_ext in '' $ac_executable_extensions; do
6551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6552     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6554     break 2
6555   fi
6556 done
6557   done
6558 IFS=$as_save_IFS
6559
6560 fi
6561 fi
6562 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6563 if test -n "$ac_ct_OBJDUMP"; then
6564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6565 $as_echo "$ac_ct_OBJDUMP" >&6; }
6566 else
6567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6568 $as_echo "no" >&6; }
6569 fi
6570
6571   if test "x$ac_ct_OBJDUMP" = x; then
6572     OBJDUMP="false"
6573   else
6574     case $cross_compiling:$ac_tool_warned in
6575 yes:)
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6578 ac_tool_warned=yes ;;
6579 esac
6580     OBJDUMP=$ac_ct_OBJDUMP
6581   fi
6582 else
6583   OBJDUMP="$ac_cv_prog_OBJDUMP"
6584 fi
6585
6586 test -z "$OBJDUMP" && OBJDUMP=objdump
6587
6588
6589
6590
6591
6592
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6594 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6595 if ${lt_cv_deplibs_check_method+:} false; then :
6596   $as_echo_n "(cached) " >&6
6597 else
6598   lt_cv_file_magic_cmd='$MAGIC_CMD'
6599 lt_cv_file_magic_test_file=
6600 lt_cv_deplibs_check_method='unknown'
6601 # Need to set the preceding variable on all platforms that support
6602 # interlibrary dependencies.
6603 # 'none' -- dependencies not supported.
6604 # `unknown' -- same as none, but documents that we really don't know.
6605 # 'pass_all' -- all dependencies passed with no checks.
6606 # 'test_compile' -- check by making test program.
6607 # 'file_magic [[regex]]' -- check by looking for files in library path
6608 # which responds to the $file_magic_cmd with a given extended regex.
6609 # If you have `file' or equivalent on your system and you're not sure
6610 # whether `pass_all' will *always* work, you probably want this one.
6611
6612 case $host_os in
6613 aix[4-9]*)
6614   lt_cv_deplibs_check_method=pass_all
6615   ;;
6616
6617 beos*)
6618   lt_cv_deplibs_check_method=pass_all
6619   ;;
6620
6621 bsdi[45]*)
6622   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6623   lt_cv_file_magic_cmd='/usr/bin/file -L'
6624   lt_cv_file_magic_test_file=/shlib/libc.so
6625   ;;
6626
6627 cygwin*)
6628   # func_win32_libid is a shell function defined in ltmain.sh
6629   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6630   lt_cv_file_magic_cmd='func_win32_libid'
6631   ;;
6632
6633 mingw* | pw32*)
6634   # Base MSYS/MinGW do not provide the 'file' command needed by
6635   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6636   # unless we find 'file', for example because we are cross-compiling.
6637   if ( file / ) >/dev/null 2>&1; then
6638     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6639     lt_cv_file_magic_cmd='func_win32_libid'
6640   else
6641     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6642     lt_cv_file_magic_cmd='$OBJDUMP -f'
6643   fi
6644   ;;
6645
6646 cegcc)
6647   # use the weaker test based on 'objdump'. See mingw*.
6648   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6649   lt_cv_file_magic_cmd='$OBJDUMP -f'
6650   ;;
6651
6652 darwin* | rhapsody*)
6653   lt_cv_deplibs_check_method=pass_all
6654   ;;
6655
6656 freebsd* | dragonfly*)
6657   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6658     case $host_cpu in
6659     i*86 )
6660       # Not sure whether the presence of OpenBSD here was a mistake.
6661       # Let's accept both of them until this is cleared up.
6662       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6663       lt_cv_file_magic_cmd=/usr/bin/file
6664       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6665       ;;
6666     esac
6667   else
6668     lt_cv_deplibs_check_method=pass_all
6669   fi
6670   ;;
6671
6672 gnu*)
6673   lt_cv_deplibs_check_method=pass_all
6674   ;;
6675
6676 hpux10.20* | hpux11*)
6677   lt_cv_file_magic_cmd=/usr/bin/file
6678   case $host_cpu in
6679   ia64*)
6680     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6681     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6682     ;;
6683   hppa*64*)
6684     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6685     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6686     ;;
6687   *)
6688     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6689     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6690     ;;
6691   esac
6692   ;;
6693
6694 interix[3-9]*)
6695   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6696   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6697   ;;
6698
6699 irix5* | irix6* | nonstopux*)
6700   case $LD in
6701   *-32|*"-32 ") libmagic=32-bit;;
6702   *-n32|*"-n32 ") libmagic=N32;;
6703   *-64|*"-64 ") libmagic=64-bit;;
6704   *) libmagic=never-match;;
6705   esac
6706   lt_cv_deplibs_check_method=pass_all
6707   ;;
6708
6709 # This must be Linux ELF.
6710 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6711   lt_cv_deplibs_check_method=pass_all
6712   ;;
6713
6714 netbsd* | netbsdelf*-gnu)
6715   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6716     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6717   else
6718     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6719   fi
6720   ;;
6721
6722 newos6*)
6723   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6724   lt_cv_file_magic_cmd=/usr/bin/file
6725   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6726   ;;
6727
6728 *nto* | *qnx*)
6729   lt_cv_deplibs_check_method=pass_all
6730   ;;
6731
6732 openbsd*)
6733   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6734     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6735   else
6736     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6737   fi
6738   ;;
6739
6740 osf3* | osf4* | osf5*)
6741   lt_cv_deplibs_check_method=pass_all
6742   ;;
6743
6744 rdos*)
6745   lt_cv_deplibs_check_method=pass_all
6746   ;;
6747
6748 solaris*)
6749   lt_cv_deplibs_check_method=pass_all
6750   ;;
6751
6752 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6753   lt_cv_deplibs_check_method=pass_all
6754   ;;
6755
6756 sysv4 | sysv4.3*)
6757   case $host_vendor in
6758   motorola)
6759     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]'
6760     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6761     ;;
6762   ncr)
6763     lt_cv_deplibs_check_method=pass_all
6764     ;;
6765   sequent)
6766     lt_cv_file_magic_cmd='/bin/file'
6767     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6768     ;;
6769   sni)
6770     lt_cv_file_magic_cmd='/bin/file'
6771     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6772     lt_cv_file_magic_test_file=/lib/libc.so
6773     ;;
6774   siemens)
6775     lt_cv_deplibs_check_method=pass_all
6776     ;;
6777   pc)
6778     lt_cv_deplibs_check_method=pass_all
6779     ;;
6780   esac
6781   ;;
6782
6783 tpf*)
6784   lt_cv_deplibs_check_method=pass_all
6785   ;;
6786 esac
6787
6788 fi
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6790 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6791 file_magic_cmd=$lt_cv_file_magic_cmd
6792 deplibs_check_method=$lt_cv_deplibs_check_method
6793 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806 if test -n "$ac_tool_prefix"; then
6807   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6808 set dummy ${ac_tool_prefix}ar; ac_word=$2
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6810 $as_echo_n "checking for $ac_word... " >&6; }
6811 if ${ac_cv_prog_AR+:} false; then :
6812   $as_echo_n "(cached) " >&6
6813 else
6814   if test -n "$AR"; then
6815   ac_cv_prog_AR="$AR" # Let the user override the test.
6816 else
6817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818 for as_dir in $PATH
6819 do
6820   IFS=$as_save_IFS
6821   test -z "$as_dir" && as_dir=.
6822     for ac_exec_ext in '' $ac_executable_extensions; do
6823   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6824     ac_cv_prog_AR="${ac_tool_prefix}ar"
6825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6826     break 2
6827   fi
6828 done
6829   done
6830 IFS=$as_save_IFS
6831
6832 fi
6833 fi
6834 AR=$ac_cv_prog_AR
6835 if test -n "$AR"; then
6836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6837 $as_echo "$AR" >&6; }
6838 else
6839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840 $as_echo "no" >&6; }
6841 fi
6842
6843
6844 fi
6845 if test -z "$ac_cv_prog_AR"; then
6846   ac_ct_AR=$AR
6847   # Extract the first word of "ar", so it can be a program name with args.
6848 set dummy ar; ac_word=$2
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6850 $as_echo_n "checking for $ac_word... " >&6; }
6851 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6852   $as_echo_n "(cached) " >&6
6853 else
6854   if test -n "$ac_ct_AR"; then
6855   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6856 else
6857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858 for as_dir in $PATH
6859 do
6860   IFS=$as_save_IFS
6861   test -z "$as_dir" && as_dir=.
6862     for ac_exec_ext in '' $ac_executable_extensions; do
6863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6864     ac_cv_prog_ac_ct_AR="ar"
6865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6866     break 2
6867   fi
6868 done
6869   done
6870 IFS=$as_save_IFS
6871
6872 fi
6873 fi
6874 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6875 if test -n "$ac_ct_AR"; then
6876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6877 $as_echo "$ac_ct_AR" >&6; }
6878 else
6879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6880 $as_echo "no" >&6; }
6881 fi
6882
6883   if test "x$ac_ct_AR" = x; then
6884     AR="false"
6885   else
6886     case $cross_compiling:$ac_tool_warned in
6887 yes:)
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6890 ac_tool_warned=yes ;;
6891 esac
6892     AR=$ac_ct_AR
6893   fi
6894 else
6895   AR="$ac_cv_prog_AR"
6896 fi
6897
6898 test -z "$AR" && AR=ar
6899 test -z "$AR_FLAGS" && AR_FLAGS=cru
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911 if test -n "$ac_tool_prefix"; then
6912   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6913 set dummy ${ac_tool_prefix}strip; ac_word=$2
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6915 $as_echo_n "checking for $ac_word... " >&6; }
6916 if ${ac_cv_prog_STRIP+:} false; then :
6917   $as_echo_n "(cached) " >&6
6918 else
6919   if test -n "$STRIP"; then
6920   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6921 else
6922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923 for as_dir in $PATH
6924 do
6925   IFS=$as_save_IFS
6926   test -z "$as_dir" && as_dir=.
6927     for ac_exec_ext in '' $ac_executable_extensions; do
6928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6929     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6930     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6931     break 2
6932   fi
6933 done
6934   done
6935 IFS=$as_save_IFS
6936
6937 fi
6938 fi
6939 STRIP=$ac_cv_prog_STRIP
6940 if test -n "$STRIP"; then
6941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6942 $as_echo "$STRIP" >&6; }
6943 else
6944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6945 $as_echo "no" >&6; }
6946 fi
6947
6948
6949 fi
6950 if test -z "$ac_cv_prog_STRIP"; then
6951   ac_ct_STRIP=$STRIP
6952   # Extract the first word of "strip", so it can be a program name with args.
6953 set dummy strip; ac_word=$2
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6955 $as_echo_n "checking for $ac_word... " >&6; }
6956 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6957   $as_echo_n "(cached) " >&6
6958 else
6959   if test -n "$ac_ct_STRIP"; then
6960   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6961 else
6962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963 for as_dir in $PATH
6964 do
6965   IFS=$as_save_IFS
6966   test -z "$as_dir" && as_dir=.
6967     for ac_exec_ext in '' $ac_executable_extensions; do
6968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6969     ac_cv_prog_ac_ct_STRIP="strip"
6970     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6971     break 2
6972   fi
6973 done
6974   done
6975 IFS=$as_save_IFS
6976
6977 fi
6978 fi
6979 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6980 if test -n "$ac_ct_STRIP"; then
6981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6982 $as_echo "$ac_ct_STRIP" >&6; }
6983 else
6984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6985 $as_echo "no" >&6; }
6986 fi
6987
6988   if test "x$ac_ct_STRIP" = x; then
6989     STRIP=":"
6990   else
6991     case $cross_compiling:$ac_tool_warned in
6992 yes:)
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6995 ac_tool_warned=yes ;;
6996 esac
6997     STRIP=$ac_ct_STRIP
6998   fi
6999 else
7000   STRIP="$ac_cv_prog_STRIP"
7001 fi
7002
7003 test -z "$STRIP" && STRIP=:
7004
7005
7006
7007
7008
7009
7010 if test -n "$ac_tool_prefix"; then
7011   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7012 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7014 $as_echo_n "checking for $ac_word... " >&6; }
7015 if ${ac_cv_prog_RANLIB+:} false; then :
7016   $as_echo_n "(cached) " >&6
7017 else
7018   if test -n "$RANLIB"; then
7019   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7020 else
7021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7022 for as_dir in $PATH
7023 do
7024   IFS=$as_save_IFS
7025   test -z "$as_dir" && as_dir=.
7026     for ac_exec_ext in '' $ac_executable_extensions; do
7027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7028     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7029     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7030     break 2
7031   fi
7032 done
7033   done
7034 IFS=$as_save_IFS
7035
7036 fi
7037 fi
7038 RANLIB=$ac_cv_prog_RANLIB
7039 if test -n "$RANLIB"; then
7040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7041 $as_echo "$RANLIB" >&6; }
7042 else
7043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7044 $as_echo "no" >&6; }
7045 fi
7046
7047
7048 fi
7049 if test -z "$ac_cv_prog_RANLIB"; then
7050   ac_ct_RANLIB=$RANLIB
7051   # Extract the first word of "ranlib", so it can be a program name with args.
7052 set dummy ranlib; ac_word=$2
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7054 $as_echo_n "checking for $ac_word... " >&6; }
7055 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7056   $as_echo_n "(cached) " >&6
7057 else
7058   if test -n "$ac_ct_RANLIB"; then
7059   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7060 else
7061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062 for as_dir in $PATH
7063 do
7064   IFS=$as_save_IFS
7065   test -z "$as_dir" && as_dir=.
7066     for ac_exec_ext in '' $ac_executable_extensions; do
7067   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7068     ac_cv_prog_ac_ct_RANLIB="ranlib"
7069     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7070     break 2
7071   fi
7072 done
7073   done
7074 IFS=$as_save_IFS
7075
7076 fi
7077 fi
7078 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7079 if test -n "$ac_ct_RANLIB"; then
7080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7081 $as_echo "$ac_ct_RANLIB" >&6; }
7082 else
7083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7084 $as_echo "no" >&6; }
7085 fi
7086
7087   if test "x$ac_ct_RANLIB" = x; then
7088     RANLIB=":"
7089   else
7090     case $cross_compiling:$ac_tool_warned in
7091 yes:)
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7093 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7094 ac_tool_warned=yes ;;
7095 esac
7096     RANLIB=$ac_ct_RANLIB
7097   fi
7098 else
7099   RANLIB="$ac_cv_prog_RANLIB"
7100 fi
7101
7102 test -z "$RANLIB" && RANLIB=:
7103
7104
7105
7106
7107
7108
7109 # Determine commands to create old-style static archives.
7110 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7111 old_postinstall_cmds='chmod 644 $oldlib'
7112 old_postuninstall_cmds=
7113
7114 if test -n "$RANLIB"; then
7115   case $host_os in
7116   openbsd*)
7117     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7118     ;;
7119   *)
7120     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7121     ;;
7122   esac
7123   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7124 fi
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159 # If no C compiler was specified, use CC.
7160 LTCC=${LTCC-"$CC"}
7161
7162 # If no C compiler flags were specified, use CFLAGS.
7163 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7164
7165 # Allow CC to be a program name with arguments.
7166 compiler=$CC
7167
7168
7169 # Check for command to grab the raw symbol name followed by C symbol from nm.
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7171 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7172 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7173   $as_echo_n "(cached) " >&6
7174 else
7175
7176 # These are sane defaults that work on at least a few old systems.
7177 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7178
7179 # Character class describing NM global symbol codes.
7180 symcode='[BCDEGRST]'
7181
7182 # Regexp to match symbols that can be accessed directly from C.
7183 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7184
7185 # Define system-specific variables.
7186 case $host_os in
7187 aix*)
7188   symcode='[BCDT]'
7189   ;;
7190 cygwin* | mingw* | pw32* | cegcc*)
7191   symcode='[ABCDGISTW]'
7192   ;;
7193 hpux*)
7194   if test "$host_cpu" = ia64; then
7195     symcode='[ABCDEGRST]'
7196   fi
7197   ;;
7198 irix* | nonstopux*)
7199   symcode='[BCDEGRST]'
7200   ;;
7201 osf*)
7202   symcode='[BCDEGQRST]'
7203   ;;
7204 solaris*)
7205   symcode='[BDRT]'
7206   ;;
7207 sco3.2v5*)
7208   symcode='[DT]'
7209   ;;
7210 sysv4.2uw2*)
7211   symcode='[DT]'
7212   ;;
7213 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7214   symcode='[ABDT]'
7215   ;;
7216 sysv4)
7217   symcode='[DFNSTU]'
7218   ;;
7219 esac
7220
7221 # If we're using GNU nm, then use its standard symbol codes.
7222 case `$NM -V 2>&1` in
7223 *GNU* | *'with BFD'*)
7224   symcode='[ABCDGIRSTW]' ;;
7225 esac
7226
7227 # Transform an extracted symbol line into a proper C declaration.
7228 # Some systems (esp. on ia64) link data and code symbols differently,
7229 # so use this general approach.
7230 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7231
7232 # Transform an extracted symbol line into symbol name and symbol address
7233 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7234 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'"
7235
7236 # Handle CRLF in mingw tool chain
7237 opt_cr=
7238 case $build_os in
7239 mingw*)
7240   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7241   ;;
7242 esac
7243
7244 # Try without a prefix underscore, then with it.
7245 for ac_symprfx in "" "_"; do
7246
7247   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7248   symxfrm="\\1 $ac_symprfx\\2 \\2"
7249
7250   # Write the raw and C identifiers.
7251   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7252     # Fake it for dumpbin and say T for any non-static function
7253     # and D for any global variable.
7254     # Also find C++ and __fastcall symbols from MSVC++,
7255     # which start with @ or ?.
7256     lt_cv_sys_global_symbol_pipe="$AWK '"\
7257 "     {last_section=section; section=\$ 3};"\
7258 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7259 "     \$ 0!~/External *\|/{next};"\
7260 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7261 "     {if(hide[section]) next};"\
7262 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7263 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7264 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7265 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7266 "     ' prfx=^$ac_symprfx"
7267   else
7268     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7269   fi
7270
7271   # Check to see that the pipe works correctly.
7272   pipe_works=no
7273
7274   rm -f conftest*
7275   cat > conftest.$ac_ext <<_LT_EOF
7276 #ifdef __cplusplus
7277 extern "C" {
7278 #endif
7279 char nm_test_var;
7280 void nm_test_func(void);
7281 void nm_test_func(void){}
7282 #ifdef __cplusplus
7283 }
7284 #endif
7285 int main(){nm_test_var='a';nm_test_func();return(0);}
7286 _LT_EOF
7287
7288   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7289   (eval $ac_compile) 2>&5
7290   ac_status=$?
7291   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7292   test $ac_status = 0; }; then
7293     # Now try to grab the symbols.
7294     nlist=conftest.nm
7295     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7296   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7297   ac_status=$?
7298   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7299   test $ac_status = 0; } && test -s "$nlist"; then
7300       # Try sorting and uniquifying the output.
7301       if sort "$nlist" | uniq > "$nlist"T; then
7302         mv -f "$nlist"T "$nlist"
7303       else
7304         rm -f "$nlist"T
7305       fi
7306
7307       # Make sure that we snagged all the symbols we need.
7308       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7309         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7310           cat <<_LT_EOF > conftest.$ac_ext
7311 #ifdef __cplusplus
7312 extern "C" {
7313 #endif
7314
7315 _LT_EOF
7316           # Now generate the symbol file.
7317           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7318
7319           cat <<_LT_EOF >> conftest.$ac_ext
7320
7321 /* The mapping between symbol names and symbols.  */
7322 const struct {
7323   const char *name;
7324   void       *address;
7325 }
7326 lt__PROGRAM__LTX_preloaded_symbols[] =
7327 {
7328   { "@PROGRAM@", (void *) 0 },
7329 _LT_EOF
7330           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7331           cat <<\_LT_EOF >> conftest.$ac_ext
7332   {0, (void *) 0}
7333 };
7334
7335 /* This works around a problem in FreeBSD linker */
7336 #ifdef FREEBSD_WORKAROUND
7337 static const void *lt_preloaded_setup() {
7338   return lt__PROGRAM__LTX_preloaded_symbols;
7339 }
7340 #endif
7341
7342 #ifdef __cplusplus
7343 }
7344 #endif
7345 _LT_EOF
7346           # Now try linking the two files.
7347           mv conftest.$ac_objext conftstm.$ac_objext
7348           lt_save_LIBS="$LIBS"
7349           lt_save_CFLAGS="$CFLAGS"
7350           LIBS="conftstm.$ac_objext"
7351           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7352           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7353   (eval $ac_link) 2>&5
7354   ac_status=$?
7355   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7356   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357             pipe_works=yes
7358           fi
7359           LIBS="$lt_save_LIBS"
7360           CFLAGS="$lt_save_CFLAGS"
7361         else
7362           echo "cannot find nm_test_func in $nlist" >&5
7363         fi
7364       else
7365         echo "cannot find nm_test_var in $nlist" >&5
7366       fi
7367     else
7368       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7369     fi
7370   else
7371     echo "$progname: failed program was:" >&5
7372     cat conftest.$ac_ext >&5
7373   fi
7374   rm -rf conftest* conftst*
7375
7376   # Do not use the global_symbol_pipe unless it works.
7377   if test "$pipe_works" = yes; then
7378     break
7379   else
7380     lt_cv_sys_global_symbol_pipe=
7381   fi
7382 done
7383
7384 fi
7385
7386 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7387   lt_cv_sys_global_symbol_to_cdecl=
7388 fi
7389 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7391 $as_echo "failed" >&6; }
7392 else
7393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7394 $as_echo "ok" >&6; }
7395 fi
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419 # Check whether --enable-libtool-lock was given.
7420 if test "${enable_libtool_lock+set}" = set; then :
7421   enableval=$enable_libtool_lock;
7422 fi
7423
7424 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7425
7426 # Some flags need to be propagated to the compiler or linker for good
7427 # libtool support.
7428 case $host in
7429 ia64-*-hpux*)
7430   # Find out which ABI we are using.
7431   echo 'int i;' > conftest.$ac_ext
7432   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7433   (eval $ac_compile) 2>&5
7434   ac_status=$?
7435   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7436   test $ac_status = 0; }; then
7437     case `/usr/bin/file conftest.$ac_objext` in
7438       *ELF-32*)
7439         HPUX_IA64_MODE="32"
7440         ;;
7441       *ELF-64*)
7442         HPUX_IA64_MODE="64"
7443         ;;
7444     esac
7445   fi
7446   rm -rf conftest*
7447   ;;
7448 *-*-irix6*)
7449   # Find out which ABI we are using.
7450   echo '#line 7450 "configure"' > conftest.$ac_ext
7451   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7452   (eval $ac_compile) 2>&5
7453   ac_status=$?
7454   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7455   test $ac_status = 0; }; then
7456     if test "$lt_cv_prog_gnu_ld" = yes; then
7457       case `/usr/bin/file conftest.$ac_objext` in
7458         *32-bit*)
7459           LD="${LD-ld} -melf32bsmip"
7460           ;;
7461         *N32*)
7462           LD="${LD-ld} -melf32bmipn32"
7463           ;;
7464         *64-bit*)
7465           LD="${LD-ld} -melf64bmip"
7466         ;;
7467       esac
7468     else
7469       case `/usr/bin/file conftest.$ac_objext` in
7470         *32-bit*)
7471           LD="${LD-ld} -32"
7472           ;;
7473         *N32*)
7474           LD="${LD-ld} -n32"
7475           ;;
7476         *64-bit*)
7477           LD="${LD-ld} -64"
7478           ;;
7479       esac
7480     fi
7481   fi
7482   rm -rf conftest*
7483   ;;
7484
7485 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7486 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7487   # Find out which ABI we are using.
7488   echo 'int i;' > conftest.$ac_ext
7489   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7490   (eval $ac_compile) 2>&5
7491   ac_status=$?
7492   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7493   test $ac_status = 0; }; then
7494     case `/usr/bin/file conftest.o` in
7495       *32-bit*)
7496         case $host in
7497           x86_64-*kfreebsd*-gnu)
7498             LD="${LD-ld} -m elf_i386_fbsd"
7499             ;;
7500           x86_64-*linux*)
7501             LD="${LD-ld} -m elf_i386"
7502             ;;
7503           ppc64-*linux*|powerpc64-*linux*)
7504             LD="${LD-ld} -m elf32ppclinux"
7505             ;;
7506           s390x-*linux*)
7507             LD="${LD-ld} -m elf_s390"
7508             ;;
7509           sparc64-*linux*)
7510             LD="${LD-ld} -m elf32_sparc"
7511             ;;
7512         esac
7513         ;;
7514       *64-bit*)
7515         case $host in
7516           x86_64-*kfreebsd*-gnu)
7517             LD="${LD-ld} -m elf_x86_64_fbsd"
7518             ;;
7519           x86_64-*linux*)
7520             LD="${LD-ld} -m elf_x86_64"
7521             ;;
7522           ppc*-*linux*|powerpc*-*linux*)
7523             LD="${LD-ld} -m elf64ppc"
7524             ;;
7525           s390*-*linux*|s390*-*tpf*)
7526             LD="${LD-ld} -m elf64_s390"
7527             ;;
7528           sparc*-*linux*)
7529             LD="${LD-ld} -m elf64_sparc"
7530             ;;
7531         esac
7532         ;;
7533     esac
7534   fi
7535   rm -rf conftest*
7536   ;;
7537
7538 *-*-sco3.2v5*)
7539   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7540   SAVE_CFLAGS="$CFLAGS"
7541   CFLAGS="$CFLAGS -belf"
7542   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7543 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7544 if ${lt_cv_cc_needs_belf+:} false; then :
7545   $as_echo_n "(cached) " >&6
7546 else
7547   ac_ext=c
7548 ac_cpp='$CPP $CPPFLAGS'
7549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7552
7553      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7554 /* end confdefs.h.  */
7555
7556 int
7557 main ()
7558 {
7559
7560   ;
7561   return 0;
7562 }
7563 _ACEOF
7564 if ac_fn_c_try_link "$LINENO"; then :
7565   lt_cv_cc_needs_belf=yes
7566 else
7567   lt_cv_cc_needs_belf=no
7568 fi
7569 rm -f core conftest.err conftest.$ac_objext \
7570     conftest$ac_exeext conftest.$ac_ext
7571      ac_ext=c
7572 ac_cpp='$CPP $CPPFLAGS'
7573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7576
7577 fi
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7579 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7580   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7581     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7582     CFLAGS="$SAVE_CFLAGS"
7583   fi
7584   ;;
7585 sparc*-*solaris*)
7586   # Find out which ABI we are using.
7587   echo 'int i;' > conftest.$ac_ext
7588   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7589   (eval $ac_compile) 2>&5
7590   ac_status=$?
7591   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7592   test $ac_status = 0; }; then
7593     case `/usr/bin/file conftest.o` in
7594     *64-bit*)
7595       case $lt_cv_prog_gnu_ld in
7596       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7597       *)
7598         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7599           LD="${LD-ld} -64"
7600         fi
7601         ;;
7602       esac
7603       ;;
7604     esac
7605   fi
7606   rm -rf conftest*
7607   ;;
7608 esac
7609
7610 need_locks="$enable_libtool_lock"
7611
7612
7613   case $host_os in
7614     rhapsody* | darwin*)
7615     if test -n "$ac_tool_prefix"; then
7616   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7617 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7619 $as_echo_n "checking for $ac_word... " >&6; }
7620 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7621   $as_echo_n "(cached) " >&6
7622 else
7623   if test -n "$DSYMUTIL"; then
7624   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7625 else
7626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627 for as_dir in $PATH
7628 do
7629   IFS=$as_save_IFS
7630   test -z "$as_dir" && as_dir=.
7631     for ac_exec_ext in '' $ac_executable_extensions; do
7632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7633     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7635     break 2
7636   fi
7637 done
7638   done
7639 IFS=$as_save_IFS
7640
7641 fi
7642 fi
7643 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7644 if test -n "$DSYMUTIL"; then
7645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7646 $as_echo "$DSYMUTIL" >&6; }
7647 else
7648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7649 $as_echo "no" >&6; }
7650 fi
7651
7652
7653 fi
7654 if test -z "$ac_cv_prog_DSYMUTIL"; then
7655   ac_ct_DSYMUTIL=$DSYMUTIL
7656   # Extract the first word of "dsymutil", so it can be a program name with args.
7657 set dummy dsymutil; ac_word=$2
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7659 $as_echo_n "checking for $ac_word... " >&6; }
7660 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7661   $as_echo_n "(cached) " >&6
7662 else
7663   if test -n "$ac_ct_DSYMUTIL"; then
7664   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7665 else
7666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7667 for as_dir in $PATH
7668 do
7669   IFS=$as_save_IFS
7670   test -z "$as_dir" && as_dir=.
7671     for ac_exec_ext in '' $ac_executable_extensions; do
7672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7673     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7675     break 2
7676   fi
7677 done
7678   done
7679 IFS=$as_save_IFS
7680
7681 fi
7682 fi
7683 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7684 if test -n "$ac_ct_DSYMUTIL"; then
7685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7686 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7687 else
7688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689 $as_echo "no" >&6; }
7690 fi
7691
7692   if test "x$ac_ct_DSYMUTIL" = x; then
7693     DSYMUTIL=":"
7694   else
7695     case $cross_compiling:$ac_tool_warned in
7696 yes:)
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7699 ac_tool_warned=yes ;;
7700 esac
7701     DSYMUTIL=$ac_ct_DSYMUTIL
7702   fi
7703 else
7704   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7705 fi
7706
7707     if test -n "$ac_tool_prefix"; then
7708   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7709 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7711 $as_echo_n "checking for $ac_word... " >&6; }
7712 if ${ac_cv_prog_NMEDIT+:} false; then :
7713   $as_echo_n "(cached) " >&6
7714 else
7715   if test -n "$NMEDIT"; then
7716   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7717 else
7718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719 for as_dir in $PATH
7720 do
7721   IFS=$as_save_IFS
7722   test -z "$as_dir" && as_dir=.
7723     for ac_exec_ext in '' $ac_executable_extensions; do
7724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7725     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7726     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7727     break 2
7728   fi
7729 done
7730   done
7731 IFS=$as_save_IFS
7732
7733 fi
7734 fi
7735 NMEDIT=$ac_cv_prog_NMEDIT
7736 if test -n "$NMEDIT"; then
7737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7738 $as_echo "$NMEDIT" >&6; }
7739 else
7740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7741 $as_echo "no" >&6; }
7742 fi
7743
7744
7745 fi
7746 if test -z "$ac_cv_prog_NMEDIT"; then
7747   ac_ct_NMEDIT=$NMEDIT
7748   # Extract the first word of "nmedit", so it can be a program name with args.
7749 set dummy nmedit; ac_word=$2
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7751 $as_echo_n "checking for $ac_word... " >&6; }
7752 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7753   $as_echo_n "(cached) " >&6
7754 else
7755   if test -n "$ac_ct_NMEDIT"; then
7756   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7757 else
7758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7759 for as_dir in $PATH
7760 do
7761   IFS=$as_save_IFS
7762   test -z "$as_dir" && as_dir=.
7763     for ac_exec_ext in '' $ac_executable_extensions; do
7764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7765     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7766     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7767     break 2
7768   fi
7769 done
7770   done
7771 IFS=$as_save_IFS
7772
7773 fi
7774 fi
7775 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7776 if test -n "$ac_ct_NMEDIT"; then
7777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7778 $as_echo "$ac_ct_NMEDIT" >&6; }
7779 else
7780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7781 $as_echo "no" >&6; }
7782 fi
7783
7784   if test "x$ac_ct_NMEDIT" = x; then
7785     NMEDIT=":"
7786   else
7787     case $cross_compiling:$ac_tool_warned in
7788 yes:)
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7791 ac_tool_warned=yes ;;
7792 esac
7793     NMEDIT=$ac_ct_NMEDIT
7794   fi
7795 else
7796   NMEDIT="$ac_cv_prog_NMEDIT"
7797 fi
7798
7799     if test -n "$ac_tool_prefix"; then
7800   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7801 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7803 $as_echo_n "checking for $ac_word... " >&6; }
7804 if ${ac_cv_prog_LIPO+:} false; then :
7805   $as_echo_n "(cached) " >&6
7806 else
7807   if test -n "$LIPO"; then
7808   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7809 else
7810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7811 for as_dir in $PATH
7812 do
7813   IFS=$as_save_IFS
7814   test -z "$as_dir" && as_dir=.
7815     for ac_exec_ext in '' $ac_executable_extensions; do
7816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7817     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7818     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7819     break 2
7820   fi
7821 done
7822   done
7823 IFS=$as_save_IFS
7824
7825 fi
7826 fi
7827 LIPO=$ac_cv_prog_LIPO
7828 if test -n "$LIPO"; then
7829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7830 $as_echo "$LIPO" >&6; }
7831 else
7832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7833 $as_echo "no" >&6; }
7834 fi
7835
7836
7837 fi
7838 if test -z "$ac_cv_prog_LIPO"; then
7839   ac_ct_LIPO=$LIPO
7840   # Extract the first word of "lipo", so it can be a program name with args.
7841 set dummy lipo; ac_word=$2
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7843 $as_echo_n "checking for $ac_word... " >&6; }
7844 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7845   $as_echo_n "(cached) " >&6
7846 else
7847   if test -n "$ac_ct_LIPO"; then
7848   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7849 else
7850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7851 for as_dir in $PATH
7852 do
7853   IFS=$as_save_IFS
7854   test -z "$as_dir" && as_dir=.
7855     for ac_exec_ext in '' $ac_executable_extensions; do
7856   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7857     ac_cv_prog_ac_ct_LIPO="lipo"
7858     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7859     break 2
7860   fi
7861 done
7862   done
7863 IFS=$as_save_IFS
7864
7865 fi
7866 fi
7867 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7868 if test -n "$ac_ct_LIPO"; then
7869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7870 $as_echo "$ac_ct_LIPO" >&6; }
7871 else
7872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873 $as_echo "no" >&6; }
7874 fi
7875
7876   if test "x$ac_ct_LIPO" = x; then
7877     LIPO=":"
7878   else
7879     case $cross_compiling:$ac_tool_warned in
7880 yes:)
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7883 ac_tool_warned=yes ;;
7884 esac
7885     LIPO=$ac_ct_LIPO
7886   fi
7887 else
7888   LIPO="$ac_cv_prog_LIPO"
7889 fi
7890
7891     if test -n "$ac_tool_prefix"; then
7892   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7893 set dummy ${ac_tool_prefix}otool; ac_word=$2
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7895 $as_echo_n "checking for $ac_word... " >&6; }
7896 if ${ac_cv_prog_OTOOL+:} false; then :
7897   $as_echo_n "(cached) " >&6
7898 else
7899   if test -n "$OTOOL"; then
7900   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7901 else
7902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903 for as_dir in $PATH
7904 do
7905   IFS=$as_save_IFS
7906   test -z "$as_dir" && as_dir=.
7907     for ac_exec_ext in '' $ac_executable_extensions; do
7908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7909     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7910     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7911     break 2
7912   fi
7913 done
7914   done
7915 IFS=$as_save_IFS
7916
7917 fi
7918 fi
7919 OTOOL=$ac_cv_prog_OTOOL
7920 if test -n "$OTOOL"; then
7921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7922 $as_echo "$OTOOL" >&6; }
7923 else
7924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7925 $as_echo "no" >&6; }
7926 fi
7927
7928
7929 fi
7930 if test -z "$ac_cv_prog_OTOOL"; then
7931   ac_ct_OTOOL=$OTOOL
7932   # Extract the first word of "otool", so it can be a program name with args.
7933 set dummy otool; ac_word=$2
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7935 $as_echo_n "checking for $ac_word... " >&6; }
7936 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7937   $as_echo_n "(cached) " >&6
7938 else
7939   if test -n "$ac_ct_OTOOL"; then
7940   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7941 else
7942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7943 for as_dir in $PATH
7944 do
7945   IFS=$as_save_IFS
7946   test -z "$as_dir" && as_dir=.
7947     for ac_exec_ext in '' $ac_executable_extensions; do
7948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7949     ac_cv_prog_ac_ct_OTOOL="otool"
7950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7951     break 2
7952   fi
7953 done
7954   done
7955 IFS=$as_save_IFS
7956
7957 fi
7958 fi
7959 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7960 if test -n "$ac_ct_OTOOL"; then
7961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7962 $as_echo "$ac_ct_OTOOL" >&6; }
7963 else
7964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965 $as_echo "no" >&6; }
7966 fi
7967
7968   if test "x$ac_ct_OTOOL" = x; then
7969     OTOOL=":"
7970   else
7971     case $cross_compiling:$ac_tool_warned in
7972 yes:)
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7975 ac_tool_warned=yes ;;
7976 esac
7977     OTOOL=$ac_ct_OTOOL
7978   fi
7979 else
7980   OTOOL="$ac_cv_prog_OTOOL"
7981 fi
7982
7983     if test -n "$ac_tool_prefix"; then
7984   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7985 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7987 $as_echo_n "checking for $ac_word... " >&6; }
7988 if ${ac_cv_prog_OTOOL64+:} false; then :
7989   $as_echo_n "(cached) " >&6
7990 else
7991   if test -n "$OTOOL64"; then
7992   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7993 else
7994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7995 for as_dir in $PATH
7996 do
7997   IFS=$as_save_IFS
7998   test -z "$as_dir" && as_dir=.
7999     for ac_exec_ext in '' $ac_executable_extensions; do
8000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8001     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8003     break 2
8004   fi
8005 done
8006   done
8007 IFS=$as_save_IFS
8008
8009 fi
8010 fi
8011 OTOOL64=$ac_cv_prog_OTOOL64
8012 if test -n "$OTOOL64"; then
8013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8014 $as_echo "$OTOOL64" >&6; }
8015 else
8016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8017 $as_echo "no" >&6; }
8018 fi
8019
8020
8021 fi
8022 if test -z "$ac_cv_prog_OTOOL64"; then
8023   ac_ct_OTOOL64=$OTOOL64
8024   # Extract the first word of "otool64", so it can be a program name with args.
8025 set dummy otool64; ac_word=$2
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8027 $as_echo_n "checking for $ac_word... " >&6; }
8028 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8029   $as_echo_n "(cached) " >&6
8030 else
8031   if test -n "$ac_ct_OTOOL64"; then
8032   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8033 else
8034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8035 for as_dir in $PATH
8036 do
8037   IFS=$as_save_IFS
8038   test -z "$as_dir" && as_dir=.
8039     for ac_exec_ext in '' $ac_executable_extensions; do
8040   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8041     ac_cv_prog_ac_ct_OTOOL64="otool64"
8042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8043     break 2
8044   fi
8045 done
8046   done
8047 IFS=$as_save_IFS
8048
8049 fi
8050 fi
8051 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8052 if test -n "$ac_ct_OTOOL64"; then
8053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8054 $as_echo "$ac_ct_OTOOL64" >&6; }
8055 else
8056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8057 $as_echo "no" >&6; }
8058 fi
8059
8060   if test "x$ac_ct_OTOOL64" = x; then
8061     OTOOL64=":"
8062   else
8063     case $cross_compiling:$ac_tool_warned in
8064 yes:)
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8067 ac_tool_warned=yes ;;
8068 esac
8069     OTOOL64=$ac_ct_OTOOL64
8070   fi
8071 else
8072   OTOOL64="$ac_cv_prog_OTOOL64"
8073 fi
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8102 $as_echo_n "checking for -single_module linker flag... " >&6; }
8103 if ${lt_cv_apple_cc_single_mod+:} false; then :
8104   $as_echo_n "(cached) " >&6
8105 else
8106   lt_cv_apple_cc_single_mod=no
8107       if test -z "${LT_MULTI_MODULE}"; then
8108         # By default we will add the -single_module flag. You can override
8109         # by either setting the environment variable LT_MULTI_MODULE
8110         # non-empty at configure time, or by adding -multi_module to the
8111         # link flags.
8112         rm -rf libconftest.dylib*
8113         echo "int foo(void){return 1;}" > conftest.c
8114         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8115 -dynamiclib -Wl,-single_module conftest.c" >&5
8116         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8117           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8118         _lt_result=$?
8119         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8120           lt_cv_apple_cc_single_mod=yes
8121         else
8122           cat conftest.err >&5
8123         fi
8124         rm -rf libconftest.dylib*
8125         rm -f conftest.*
8126       fi
8127 fi
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8129 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8130     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8131 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8132 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8133   $as_echo_n "(cached) " >&6
8134 else
8135   lt_cv_ld_exported_symbols_list=no
8136       save_LDFLAGS=$LDFLAGS
8137       echo "_main" > conftest.sym
8138       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8139       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8140 /* end confdefs.h.  */
8141
8142 int
8143 main ()
8144 {
8145
8146   ;
8147   return 0;
8148 }
8149 _ACEOF
8150 if ac_fn_c_try_link "$LINENO"; then :
8151   lt_cv_ld_exported_symbols_list=yes
8152 else
8153   lt_cv_ld_exported_symbols_list=no
8154 fi
8155 rm -f core conftest.err conftest.$ac_objext \
8156     conftest$ac_exeext conftest.$ac_ext
8157         LDFLAGS="$save_LDFLAGS"
8158
8159 fi
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8161 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8162     case $host_os in
8163     rhapsody* | darwin1.[012])
8164       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8165     darwin1.*)
8166       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8167     darwin*) # darwin 5.x on
8168       # if running on 10.5 or later, the deployment target defaults
8169       # to the OS version, if on x86, and 10.4, the deployment
8170       # target defaults to 10.4. Don't you love it?
8171       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8172         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8173           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8174         10.[012]*)
8175           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8176         10.*)
8177           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8178       esac
8179     ;;
8180   esac
8181     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8182       _lt_dar_single_mod='$single_module'
8183     fi
8184     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8185       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8186     else
8187       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8188     fi
8189     if test "$DSYMUTIL" != ":"; then
8190       _lt_dsymutil='~$DSYMUTIL $lib || :'
8191     else
8192       _lt_dsymutil=
8193     fi
8194     ;;
8195   esac
8196
8197
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8199 $as_echo_n "checking for ANSI C header files... " >&6; }
8200 if ${ac_cv_header_stdc+:} false; then :
8201   $as_echo_n "(cached) " >&6
8202 else
8203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8204 /* end confdefs.h.  */
8205 #include <stdlib.h>
8206 #include <stdarg.h>
8207 #include <string.h>
8208 #include <float.h>
8209
8210 int
8211 main ()
8212 {
8213
8214   ;
8215   return 0;
8216 }
8217 _ACEOF
8218 if ac_fn_c_try_compile "$LINENO"; then :
8219   ac_cv_header_stdc=yes
8220 else
8221   ac_cv_header_stdc=no
8222 fi
8223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8224
8225 if test $ac_cv_header_stdc = yes; then
8226   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8227   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8228 /* end confdefs.h.  */
8229 #include <string.h>
8230
8231 _ACEOF
8232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8233   $EGREP "memchr" >/dev/null 2>&1; then :
8234
8235 else
8236   ac_cv_header_stdc=no
8237 fi
8238 rm -f conftest*
8239
8240 fi
8241
8242 if test $ac_cv_header_stdc = yes; then
8243   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8245 /* end confdefs.h.  */
8246 #include <stdlib.h>
8247
8248 _ACEOF
8249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8250   $EGREP "free" >/dev/null 2>&1; then :
8251
8252 else
8253   ac_cv_header_stdc=no
8254 fi
8255 rm -f conftest*
8256
8257 fi
8258
8259 if test $ac_cv_header_stdc = yes; then
8260   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8261   if test "$cross_compiling" = yes; then :
8262   :
8263 else
8264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8265 /* end confdefs.h.  */
8266 #include <ctype.h>
8267 #include <stdlib.h>
8268 #if ((' ' & 0x0FF) == 0x020)
8269 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8270 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8271 #else
8272 # define ISLOWER(c) \
8273                    (('a' <= (c) && (c) <= 'i') \
8274                      || ('j' <= (c) && (c) <= 'r') \
8275                      || ('s' <= (c) && (c) <= 'z'))
8276 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8277 #endif
8278
8279 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8280 int
8281 main ()
8282 {
8283   int i;
8284   for (i = 0; i < 256; i++)
8285     if (XOR (islower (i), ISLOWER (i))
8286         || toupper (i) != TOUPPER (i))
8287       return 2;
8288   return 0;
8289 }
8290 _ACEOF
8291 if ac_fn_c_try_run "$LINENO"; then :
8292
8293 else
8294   ac_cv_header_stdc=no
8295 fi
8296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8297   conftest.$ac_objext conftest.beam conftest.$ac_ext
8298 fi
8299
8300 fi
8301 fi
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8303 $as_echo "$ac_cv_header_stdc" >&6; }
8304 if test $ac_cv_header_stdc = yes; then
8305
8306 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8307
8308 fi
8309
8310 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8311 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8312                   inttypes.h stdint.h unistd.h
8313 do :
8314   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8315 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8316 "
8317 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8318   cat >>confdefs.h <<_ACEOF
8319 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8320 _ACEOF
8321
8322 fi
8323
8324 done
8325
8326
8327 for ac_header in dlfcn.h
8328 do :
8329   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8330 "
8331 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8332   cat >>confdefs.h <<_ACEOF
8333 #define HAVE_DLFCN_H 1
8334 _ACEOF
8335
8336 fi
8337
8338 done
8339
8340
8341
8342 ac_ext=cpp
8343 ac_cpp='$CXXCPP $CPPFLAGS'
8344 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8345 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8346 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8347 if test -z "$CXX"; then
8348   if test -n "$CCC"; then
8349     CXX=$CCC
8350   else
8351     if test -n "$ac_tool_prefix"; then
8352   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8353   do
8354     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8355 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8357 $as_echo_n "checking for $ac_word... " >&6; }
8358 if ${ac_cv_prog_CXX+:} false; then :
8359   $as_echo_n "(cached) " >&6
8360 else
8361   if test -n "$CXX"; then
8362   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8363 else
8364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365 for as_dir in $PATH
8366 do
8367   IFS=$as_save_IFS
8368   test -z "$as_dir" && as_dir=.
8369     for ac_exec_ext in '' $ac_executable_extensions; do
8370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8371     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8372     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8373     break 2
8374   fi
8375 done
8376   done
8377 IFS=$as_save_IFS
8378
8379 fi
8380 fi
8381 CXX=$ac_cv_prog_CXX
8382 if test -n "$CXX"; then
8383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8384 $as_echo "$CXX" >&6; }
8385 else
8386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8387 $as_echo "no" >&6; }
8388 fi
8389
8390
8391     test -n "$CXX" && break
8392   done
8393 fi
8394 if test -z "$CXX"; then
8395   ac_ct_CXX=$CXX
8396   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8397 do
8398   # Extract the first word of "$ac_prog", so it can be a program name with args.
8399 set dummy $ac_prog; ac_word=$2
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8401 $as_echo_n "checking for $ac_word... " >&6; }
8402 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
8403   $as_echo_n "(cached) " >&6
8404 else
8405   if test -n "$ac_ct_CXX"; then
8406   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8407 else
8408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8409 for as_dir in $PATH
8410 do
8411   IFS=$as_save_IFS
8412   test -z "$as_dir" && as_dir=.
8413     for ac_exec_ext in '' $ac_executable_extensions; do
8414   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8415     ac_cv_prog_ac_ct_CXX="$ac_prog"
8416     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8417     break 2
8418   fi
8419 done
8420   done
8421 IFS=$as_save_IFS
8422
8423 fi
8424 fi
8425 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8426 if test -n "$ac_ct_CXX"; then
8427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8428 $as_echo "$ac_ct_CXX" >&6; }
8429 else
8430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8431 $as_echo "no" >&6; }
8432 fi
8433
8434
8435   test -n "$ac_ct_CXX" && break
8436 done
8437
8438   if test "x$ac_ct_CXX" = x; then
8439     CXX="g++"
8440   else
8441     case $cross_compiling:$ac_tool_warned in
8442 yes:)
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8445 ac_tool_warned=yes ;;
8446 esac
8447     CXX=$ac_ct_CXX
8448   fi
8449 fi
8450
8451   fi
8452 fi
8453 # Provide some information about the compiler.
8454 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8455 set X $ac_compile
8456 ac_compiler=$2
8457 for ac_option in --version -v -V -qversion; do
8458   { { ac_try="$ac_compiler $ac_option >&5"
8459 case "(($ac_try" in
8460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8461   *) ac_try_echo=$ac_try;;
8462 esac
8463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8464 $as_echo "$ac_try_echo"; } >&5
8465   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8466   ac_status=$?
8467   if test -s conftest.err; then
8468     sed '10a\
8469 ... rest of stderr output deleted ...
8470          10q' conftest.err >conftest.er1
8471     cat conftest.er1 >&5
8472   fi
8473   rm -f conftest.er1 conftest.err
8474   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8475   test $ac_status = 0; }
8476 done
8477
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8479 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8480 if ${ac_cv_cxx_compiler_gnu+:} false; then :
8481   $as_echo_n "(cached) " >&6
8482 else
8483   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8484 /* end confdefs.h.  */
8485
8486 int
8487 main ()
8488 {
8489 #ifndef __GNUC__
8490        choke me
8491 #endif
8492
8493   ;
8494   return 0;
8495 }
8496 _ACEOF
8497 if ac_fn_cxx_try_compile "$LINENO"; then :
8498   ac_compiler_gnu=yes
8499 else
8500   ac_compiler_gnu=no
8501 fi
8502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8503 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8504
8505 fi
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8507 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8508 if test $ac_compiler_gnu = yes; then
8509   GXX=yes
8510 else
8511   GXX=
8512 fi
8513 ac_test_CXXFLAGS=${CXXFLAGS+set}
8514 ac_save_CXXFLAGS=$CXXFLAGS
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8516 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8517 if ${ac_cv_prog_cxx_g+:} false; then :
8518   $as_echo_n "(cached) " >&6
8519 else
8520   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8521    ac_cxx_werror_flag=yes
8522    ac_cv_prog_cxx_g=no
8523    CXXFLAGS="-g"
8524    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8525 /* end confdefs.h.  */
8526
8527 int
8528 main ()
8529 {
8530
8531   ;
8532   return 0;
8533 }
8534 _ACEOF
8535 if ac_fn_cxx_try_compile "$LINENO"; then :
8536   ac_cv_prog_cxx_g=yes
8537 else
8538   CXXFLAGS=""
8539       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8540 /* end confdefs.h.  */
8541
8542 int
8543 main ()
8544 {
8545
8546   ;
8547   return 0;
8548 }
8549 _ACEOF
8550 if ac_fn_cxx_try_compile "$LINENO"; then :
8551
8552 else
8553   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8554          CXXFLAGS="-g"
8555          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8556 /* end confdefs.h.  */
8557
8558 int
8559 main ()
8560 {
8561
8562   ;
8563   return 0;
8564 }
8565 _ACEOF
8566 if ac_fn_cxx_try_compile "$LINENO"; then :
8567   ac_cv_prog_cxx_g=yes
8568 fi
8569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8570 fi
8571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8572 fi
8573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8574    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8575 fi
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8577 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8578 if test "$ac_test_CXXFLAGS" = set; then
8579   CXXFLAGS=$ac_save_CXXFLAGS
8580 elif test $ac_cv_prog_cxx_g = yes; then
8581   if test "$GXX" = yes; then
8582     CXXFLAGS="-g -O2"
8583   else
8584     CXXFLAGS="-g"
8585   fi
8586 else
8587   if test "$GXX" = yes; then
8588     CXXFLAGS="-O2"
8589   else
8590     CXXFLAGS=
8591   fi
8592 fi
8593 ac_ext=c
8594 ac_cpp='$CPP $CPPFLAGS'
8595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8598
8599 depcc="$CXX"  am_compiler_list=
8600
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8602 $as_echo_n "checking dependency style of $depcc... " >&6; }
8603 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
8604   $as_echo_n "(cached) " >&6
8605 else
8606   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8607   # We make a subdir and do the tests there.  Otherwise we can end up
8608   # making bogus files that we don't know about and never remove.  For
8609   # instance it was reported that on HP-UX the gcc test will end up
8610   # making a dummy file named `D' -- because `-MD' means `put the output
8611   # in D'.
8612   mkdir conftest.dir
8613   # Copy depcomp to subdir because otherwise we won't find it if we're
8614   # using a relative directory.
8615   cp "$am_depcomp" conftest.dir
8616   cd conftest.dir
8617   # We will build objects and dependencies in a subdirectory because
8618   # it helps to detect inapplicable dependency modes.  For instance
8619   # both Tru64's cc and ICC support -MD to output dependencies as a
8620   # side effect of compilation, but ICC will put the dependencies in
8621   # the current directory while Tru64 will put them in the object
8622   # directory.
8623   mkdir sub
8624
8625   am_cv_CXX_dependencies_compiler_type=none
8626   if test "$am_compiler_list" = ""; then
8627      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8628   fi
8629   am__universal=false
8630   case " $depcc " in #(
8631      *\ -arch\ *\ -arch\ *) am__universal=true ;;
8632      esac
8633
8634   for depmode in $am_compiler_list; do
8635     # Setup a source with many dependencies, because some compilers
8636     # like to wrap large dependency lists on column 80 (with \), and
8637     # we should not choose a depcomp mode which is confused by this.
8638     #
8639     # We need to recreate these files for each test, as the compiler may
8640     # overwrite some of them when testing with obscure command lines.
8641     # This happens at least with the AIX C compiler.
8642     : > sub/conftest.c
8643     for i in 1 2 3 4 5 6; do
8644       echo '#include "conftst'$i'.h"' >> sub/conftest.c
8645       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8646       # Solaris 8's {/usr,}/bin/sh.
8647       touch sub/conftst$i.h
8648     done
8649     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8650
8651     # We check with `-c' and `-o' for the sake of the "dashmstdout"
8652     # mode.  It turns out that the SunPro C++ compiler does not properly
8653     # handle `-M -o', and we need to detect this.  Also, some Intel
8654     # versions had trouble with output in subdirs
8655     am__obj=sub/conftest.${OBJEXT-o}
8656     am__minus_obj="-o $am__obj"
8657     case $depmode in
8658     gcc)
8659       # This depmode causes a compiler race in universal mode.
8660       test "$am__universal" = false || continue
8661       ;;
8662     nosideeffect)
8663       # after this tag, mechanisms are not by side-effect, so they'll
8664       # only be used when explicitly requested
8665       if test "x$enable_dependency_tracking" = xyes; then
8666         continue
8667       else
8668         break
8669       fi
8670       ;;
8671     msvisualcpp | msvcmsys)
8672       # This compiler won't grok `-c -o', but also, the minuso test has
8673       # not run yet.  These depmodes are late enough in the game, and
8674       # so weak that their functioning should not be impacted.
8675       am__obj=conftest.${OBJEXT-o}
8676       am__minus_obj=
8677       ;;
8678     none) break ;;
8679     esac
8680     if depmode=$depmode \
8681        source=sub/conftest.c object=$am__obj \
8682        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8683        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8684          >/dev/null 2>conftest.err &&
8685        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8686        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8687        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8688        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8689       # icc doesn't choke on unknown options, it will just issue warnings
8690       # or remarks (even with -Werror).  So we grep stderr for any message
8691       # that says an option was ignored or not supported.
8692       # When given -MP, icc 7.0 and 7.1 complain thusly:
8693       #   icc: Command line warning: ignoring option '-M'; no argument required
8694       # The diagnosis changed in icc 8.0:
8695       #   icc: Command line remark: option '-MP' not supported
8696       if (grep 'ignoring option' conftest.err ||
8697           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8698         am_cv_CXX_dependencies_compiler_type=$depmode
8699         break
8700       fi
8701     fi
8702   done
8703
8704   cd ..
8705   rm -rf conftest.dir
8706 else
8707   am_cv_CXX_dependencies_compiler_type=none
8708 fi
8709
8710 fi
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8712 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8713 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8714
8715  if
8716   test "x$enable_dependency_tracking" != xno \
8717   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8718   am__fastdepCXX_TRUE=
8719   am__fastdepCXX_FALSE='#'
8720 else
8721   am__fastdepCXX_TRUE='#'
8722   am__fastdepCXX_FALSE=
8723 fi
8724
8725
8726 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8727     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8728     (test "X$CXX" != "Xg++"))) ; then
8729   ac_ext=cpp
8730 ac_cpp='$CXXCPP $CPPFLAGS'
8731 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8732 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8733 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8735 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8736 if test -z "$CXXCPP"; then
8737   if ${ac_cv_prog_CXXCPP+:} false; then :
8738   $as_echo_n "(cached) " >&6
8739 else
8740       # Double quotes because CXXCPP needs to be expanded
8741     for CXXCPP in "$CXX -E" "/lib/cpp"
8742     do
8743       ac_preproc_ok=false
8744 for ac_cxx_preproc_warn_flag in '' yes
8745 do
8746   # Use a header file that comes with gcc, so configuring glibc
8747   # with a fresh cross-compiler works.
8748   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8749   # <limits.h> exists even on freestanding compilers.
8750   # On the NeXT, cc -E runs the code through the compiler's parser,
8751   # not just through cpp. "Syntax error" is here to catch this case.
8752   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8753 /* end confdefs.h.  */
8754 #ifdef __STDC__
8755 # include <limits.h>
8756 #else
8757 # include <assert.h>
8758 #endif
8759                      Syntax error
8760 _ACEOF
8761 if ac_fn_cxx_try_cpp "$LINENO"; then :
8762
8763 else
8764   # Broken: fails on valid input.
8765 continue
8766 fi
8767 rm -f conftest.err conftest.i conftest.$ac_ext
8768
8769   # OK, works on sane cases.  Now check whether nonexistent headers
8770   # can be detected and how.
8771   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8772 /* end confdefs.h.  */
8773 #include <ac_nonexistent.h>
8774 _ACEOF
8775 if ac_fn_cxx_try_cpp "$LINENO"; then :
8776   # Broken: success on invalid input.
8777 continue
8778 else
8779   # Passes both tests.
8780 ac_preproc_ok=:
8781 break
8782 fi
8783 rm -f conftest.err conftest.i conftest.$ac_ext
8784
8785 done
8786 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8787 rm -f conftest.i conftest.err conftest.$ac_ext
8788 if $ac_preproc_ok; then :
8789   break
8790 fi
8791
8792     done
8793     ac_cv_prog_CXXCPP=$CXXCPP
8794
8795 fi
8796   CXXCPP=$ac_cv_prog_CXXCPP
8797 else
8798   ac_cv_prog_CXXCPP=$CXXCPP
8799 fi
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8801 $as_echo "$CXXCPP" >&6; }
8802 ac_preproc_ok=false
8803 for ac_cxx_preproc_warn_flag in '' yes
8804 do
8805   # Use a header file that comes with gcc, so configuring glibc
8806   # with a fresh cross-compiler works.
8807   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8808   # <limits.h> exists even on freestanding compilers.
8809   # On the NeXT, cc -E runs the code through the compiler's parser,
8810   # not just through cpp. "Syntax error" is here to catch this case.
8811   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8812 /* end confdefs.h.  */
8813 #ifdef __STDC__
8814 # include <limits.h>
8815 #else
8816 # include <assert.h>
8817 #endif
8818                      Syntax error
8819 _ACEOF
8820 if ac_fn_cxx_try_cpp "$LINENO"; then :
8821
8822 else
8823   # Broken: fails on valid input.
8824 continue
8825 fi
8826 rm -f conftest.err conftest.i conftest.$ac_ext
8827
8828   # OK, works on sane cases.  Now check whether nonexistent headers
8829   # can be detected and how.
8830   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8831 /* end confdefs.h.  */
8832 #include <ac_nonexistent.h>
8833 _ACEOF
8834 if ac_fn_cxx_try_cpp "$LINENO"; then :
8835   # Broken: success on invalid input.
8836 continue
8837 else
8838   # Passes both tests.
8839 ac_preproc_ok=:
8840 break
8841 fi
8842 rm -f conftest.err conftest.i conftest.$ac_ext
8843
8844 done
8845 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8846 rm -f conftest.i conftest.err conftest.$ac_ext
8847 if $ac_preproc_ok; then :
8848
8849 else
8850   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8852 _lt_caught_CXX_error=yes; }
8853 fi
8854
8855 ac_ext=c
8856 ac_cpp='$CPP $CPPFLAGS'
8857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8860
8861 else
8862   _lt_caught_CXX_error=yes
8863 fi
8864
8865
8866
8867
8868
8869 # Set options
8870
8871
8872
8873
8874
8875             # Check whether --enable-shared was given.
8876 if test "${enable_shared+set}" = set; then :
8877   enableval=$enable_shared; p=${PACKAGE-default}
8878     case $enableval in
8879     yes) enable_shared=yes ;;
8880     no) enable_shared=no ;;
8881     *)
8882       enable_shared=no
8883       # Look at the argument we got.  We use all the common list separators.
8884       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8885       for pkg in $enableval; do
8886         IFS="$lt_save_ifs"
8887         if test "X$pkg" = "X$p"; then
8888           enable_shared=yes
8889         fi
8890       done
8891       IFS="$lt_save_ifs"
8892       ;;
8893     esac
8894 else
8895   enable_shared=yes
8896 fi
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908 # Check whether --with-pic was given.
8909 if test "${with_pic+set}" = set; then :
8910   withval=$with_pic; pic_mode="$withval"
8911 else
8912   pic_mode=default
8913 fi
8914
8915
8916 test -z "$pic_mode" && pic_mode=default
8917
8918
8919
8920
8921
8922
8923
8924   # Check whether --enable-fast-install was given.
8925 if test "${enable_fast_install+set}" = set; then :
8926   enableval=$enable_fast_install; p=${PACKAGE-default}
8927     case $enableval in
8928     yes) enable_fast_install=yes ;;
8929     no) enable_fast_install=no ;;
8930     *)
8931       enable_fast_install=no
8932       # Look at the argument we got.  We use all the common list separators.
8933       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8934       for pkg in $enableval; do
8935         IFS="$lt_save_ifs"
8936         if test "X$pkg" = "X$p"; then
8937           enable_fast_install=yes
8938         fi
8939       done
8940       IFS="$lt_save_ifs"
8941       ;;
8942     esac
8943 else
8944   enable_fast_install=yes
8945 fi
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957 # This can be used to rebuild libtool when needed
8958 LIBTOOL_DEPS="$ltmain"
8959
8960 # Always use our own libtool.
8961 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987 test -z "$LN_S" && LN_S="ln -s"
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002 if test -n "${ZSH_VERSION+set}" ; then
9003    setopt NO_GLOB_SUBST
9004 fi
9005
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9007 $as_echo_n "checking for objdir... " >&6; }
9008 if ${lt_cv_objdir+:} false; then :
9009   $as_echo_n "(cached) " >&6
9010 else
9011   rm -f .libs 2>/dev/null
9012 mkdir .libs 2>/dev/null
9013 if test -d .libs; then
9014   lt_cv_objdir=.libs
9015 else
9016   # MS-DOS does not allow filenames that begin with a dot.
9017   lt_cv_objdir=_libs
9018 fi
9019 rmdir .libs 2>/dev/null
9020 fi
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9022 $as_echo "$lt_cv_objdir" >&6; }
9023 objdir=$lt_cv_objdir
9024
9025
9026
9027
9028
9029 cat >>confdefs.h <<_ACEOF
9030 #define LT_OBJDIR "$lt_cv_objdir/"
9031 _ACEOF
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049 case $host_os in
9050 aix3*)
9051   # AIX sometimes has problems with the GCC collect2 program.  For some
9052   # reason, if we set the COLLECT_NAMES environment variable, the problems
9053   # vanish in a puff of smoke.
9054   if test "X${COLLECT_NAMES+set}" != Xset; then
9055     COLLECT_NAMES=
9056     export COLLECT_NAMES
9057   fi
9058   ;;
9059 esac
9060
9061 # Sed substitution that helps us do robust quoting.  It backslashifies
9062 # metacharacters that are still active within double-quoted strings.
9063 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9064
9065 # Same as above, but do not quote variable references.
9066 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9067
9068 # Sed substitution to delay expansion of an escaped shell variable in a
9069 # double_quote_subst'ed string.
9070 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9071
9072 # Sed substitution to delay expansion of an escaped single quote.
9073 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9074
9075 # Sed substitution to avoid accidental globbing in evaled expressions
9076 no_glob_subst='s/\*/\\\*/g'
9077
9078 # Global variables:
9079 ofile=libtool
9080 can_build_shared=yes
9081
9082 # All known linkers require a `.a' archive for static linking (except MSVC,
9083 # which needs '.lib').
9084 libext=a
9085
9086 with_gnu_ld="$lt_cv_prog_gnu_ld"
9087
9088 old_CC="$CC"
9089 old_CFLAGS="$CFLAGS"
9090
9091 # Set sane defaults for various variables
9092 test -z "$CC" && CC=cc
9093 test -z "$LTCC" && LTCC=$CC
9094 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9095 test -z "$LD" && LD=ld
9096 test -z "$ac_objext" && ac_objext=o
9097
9098 for cc_temp in $compiler""; do
9099   case $cc_temp in
9100     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9101     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9102     \-*) ;;
9103     *) break;;
9104   esac
9105 done
9106 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9107
9108
9109 # Only perform the check for file, if the check method requires it
9110 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9111 case $deplibs_check_method in
9112 file_magic*)
9113   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9114     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9115 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9116 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9117   $as_echo_n "(cached) " >&6
9118 else
9119   case $MAGIC_CMD in
9120 [\\/*] |  ?:[\\/]*)
9121   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9122   ;;
9123 *)
9124   lt_save_MAGIC_CMD="$MAGIC_CMD"
9125   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9126   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9127   for ac_dir in $ac_dummy; do
9128     IFS="$lt_save_ifs"
9129     test -z "$ac_dir" && ac_dir=.
9130     if test -f $ac_dir/${ac_tool_prefix}file; then
9131       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9132       if test -n "$file_magic_test_file"; then
9133         case $deplibs_check_method in
9134         "file_magic "*)
9135           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9136           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9137           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9138             $EGREP "$file_magic_regex" > /dev/null; then
9139             :
9140           else
9141             cat <<_LT_EOF 1>&2
9142
9143 *** Warning: the command libtool uses to detect shared libraries,
9144 *** $file_magic_cmd, produces output that libtool cannot recognize.
9145 *** The result is that libtool may fail to recognize shared libraries
9146 *** as such.  This will affect the creation of libtool libraries that
9147 *** depend on shared libraries, but programs linked with such libtool
9148 *** libraries will work regardless of this problem.  Nevertheless, you
9149 *** may want to report the problem to your system manager and/or to
9150 *** bug-libtool@gnu.org
9151
9152 _LT_EOF
9153           fi ;;
9154         esac
9155       fi
9156       break
9157     fi
9158   done
9159   IFS="$lt_save_ifs"
9160   MAGIC_CMD="$lt_save_MAGIC_CMD"
9161   ;;
9162 esac
9163 fi
9164
9165 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9166 if test -n "$MAGIC_CMD"; then
9167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9168 $as_echo "$MAGIC_CMD" >&6; }
9169 else
9170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9171 $as_echo "no" >&6; }
9172 fi
9173
9174
9175
9176
9177
9178 if test -z "$lt_cv_path_MAGIC_CMD"; then
9179   if test -n "$ac_tool_prefix"; then
9180     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9181 $as_echo_n "checking for file... " >&6; }
9182 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9183   $as_echo_n "(cached) " >&6
9184 else
9185   case $MAGIC_CMD in
9186 [\\/*] |  ?:[\\/]*)
9187   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9188   ;;
9189 *)
9190   lt_save_MAGIC_CMD="$MAGIC_CMD"
9191   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9192   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9193   for ac_dir in $ac_dummy; do
9194     IFS="$lt_save_ifs"
9195     test -z "$ac_dir" && ac_dir=.
9196     if test -f $ac_dir/file; then
9197       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9198       if test -n "$file_magic_test_file"; then
9199         case $deplibs_check_method in
9200         "file_magic "*)
9201           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9202           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9203           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9204             $EGREP "$file_magic_regex" > /dev/null; then
9205             :
9206           else
9207             cat <<_LT_EOF 1>&2
9208
9209 *** Warning: the command libtool uses to detect shared libraries,
9210 *** $file_magic_cmd, produces output that libtool cannot recognize.
9211 *** The result is that libtool may fail to recognize shared libraries
9212 *** as such.  This will affect the creation of libtool libraries that
9213 *** depend on shared libraries, but programs linked with such libtool
9214 *** libraries will work regardless of this problem.  Nevertheless, you
9215 *** may want to report the problem to your system manager and/or to
9216 *** bug-libtool@gnu.org
9217
9218 _LT_EOF
9219           fi ;;
9220         esac
9221       fi
9222       break
9223     fi
9224   done
9225   IFS="$lt_save_ifs"
9226   MAGIC_CMD="$lt_save_MAGIC_CMD"
9227   ;;
9228 esac
9229 fi
9230
9231 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9232 if test -n "$MAGIC_CMD"; then
9233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9234 $as_echo "$MAGIC_CMD" >&6; }
9235 else
9236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9237 $as_echo "no" >&6; }
9238 fi
9239
9240
9241   else
9242     MAGIC_CMD=:
9243   fi
9244 fi
9245
9246   fi
9247   ;;
9248 esac
9249
9250 # Use C for the default configuration in the libtool script
9251
9252 lt_save_CC="$CC"
9253 ac_ext=c
9254 ac_cpp='$CPP $CPPFLAGS'
9255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9258
9259
9260 # Source file extension for C test sources.
9261 ac_ext=c
9262
9263 # Object file extension for compiled C test sources.
9264 objext=o
9265 objext=$objext
9266
9267 # Code to be used in simple compile tests
9268 lt_simple_compile_test_code="int some_variable = 0;"
9269
9270 # Code to be used in simple link tests
9271 lt_simple_link_test_code='int main(){return(0);}'
9272
9273
9274
9275
9276
9277
9278
9279 # If no C compiler was specified, use CC.
9280 LTCC=${LTCC-"$CC"}
9281
9282 # If no C compiler flags were specified, use CFLAGS.
9283 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9284
9285 # Allow CC to be a program name with arguments.
9286 compiler=$CC
9287
9288 # Save the default compiler, since it gets overwritten when the other
9289 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9290 compiler_DEFAULT=$CC
9291
9292 # save warnings/boilerplate of simple test code
9293 ac_outfile=conftest.$ac_objext
9294 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9295 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9296 _lt_compiler_boilerplate=`cat conftest.err`
9297 $RM conftest*
9298
9299 ac_outfile=conftest.$ac_objext
9300 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9301 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9302 _lt_linker_boilerplate=`cat conftest.err`
9303 $RM -r conftest*
9304
9305
9306 ## CAVEAT EMPTOR:
9307 ## There is no encapsulation within the following macros, do not change
9308 ## the running order or otherwise move them around unless you know exactly
9309 ## what you are doing...
9310 if test -n "$compiler"; then
9311
9312 lt_prog_compiler_no_builtin_flag=
9313
9314 if test "$GCC" = yes; then
9315   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9316
9317   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9318 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9319 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9320   $as_echo_n "(cached) " >&6
9321 else
9322   lt_cv_prog_compiler_rtti_exceptions=no
9323    ac_outfile=conftest.$ac_objext
9324    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9325    lt_compiler_flag="-fno-rtti -fno-exceptions"
9326    # Insert the option either (1) after the last *FLAGS variable, or
9327    # (2) before a word containing "conftest.", or (3) at the end.
9328    # Note that $ac_compile itself does not contain backslashes and begins
9329    # with a dollar sign (not a hyphen), so the echo should work correctly.
9330    # The option is referenced via a variable to avoid confusing sed.
9331    lt_compile=`echo "$ac_compile" | $SED \
9332    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9333    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9334    -e 's:$: $lt_compiler_flag:'`
9335    (eval echo "\"\$as_me:9335: $lt_compile\"" >&5)
9336    (eval "$lt_compile" 2>conftest.err)
9337    ac_status=$?
9338    cat conftest.err >&5
9339    echo "$as_me:9339: \$? = $ac_status" >&5
9340    if (exit $ac_status) && test -s "$ac_outfile"; then
9341      # The compiler can only warn and ignore the option if not recognized
9342      # So say no if there are warnings other than the usual output.
9343      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9344      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9345      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9346        lt_cv_prog_compiler_rtti_exceptions=yes
9347      fi
9348    fi
9349    $RM conftest*
9350
9351 fi
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9353 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9354
9355 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9356     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9357 else
9358     :
9359 fi
9360
9361 fi
9362
9363
9364
9365
9366
9367
9368   lt_prog_compiler_wl=
9369 lt_prog_compiler_pic=
9370 lt_prog_compiler_static=
9371
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9373 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9374
9375   if test "$GCC" = yes; then
9376     lt_prog_compiler_wl='-Wl,'
9377     lt_prog_compiler_static='-static'
9378
9379     case $host_os in
9380       aix*)
9381       # All AIX code is PIC.
9382       if test "$host_cpu" = ia64; then
9383         # AIX 5 now supports IA64 processor
9384         lt_prog_compiler_static='-Bstatic'
9385       fi
9386       ;;
9387
9388     amigaos*)
9389       case $host_cpu in
9390       powerpc)
9391             # see comment about AmigaOS4 .so support
9392             lt_prog_compiler_pic='-fPIC'
9393         ;;
9394       m68k)
9395             # FIXME: we need at least 68020 code to build shared libraries, but
9396             # adding the `-m68020' flag to GCC prevents building anything better,
9397             # like `-m68040'.
9398             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9399         ;;
9400       esac
9401       ;;
9402
9403     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9404       # PIC is the default for these OSes.
9405       ;;
9406
9407     mingw* | cygwin* | pw32* | os2* | cegcc*)
9408       # This hack is so that the source file can tell whether it is being
9409       # built for inclusion in a dll (and should export symbols for example).
9410       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9411       # (--disable-auto-import) libraries
9412       lt_prog_compiler_pic='-DDLL_EXPORT'
9413       ;;
9414
9415     darwin* | rhapsody*)
9416       # PIC is the default on this platform
9417       # Common symbols not allowed in MH_DYLIB files
9418       lt_prog_compiler_pic='-fno-common'
9419       ;;
9420
9421     hpux*)
9422       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9423       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9424       # sets the default TLS model and affects inlining.
9425       case $host_cpu in
9426       hppa*64*)
9427         # +Z the default
9428         ;;
9429       *)
9430         lt_prog_compiler_pic='-fPIC'
9431         ;;
9432       esac
9433       ;;
9434
9435     interix[3-9]*)
9436       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9437       # Instead, we relocate shared libraries at runtime.
9438       ;;
9439
9440     msdosdjgpp*)
9441       # Just because we use GCC doesn't mean we suddenly get shared libraries
9442       # on systems that don't support them.
9443       lt_prog_compiler_can_build_shared=no
9444       enable_shared=no
9445       ;;
9446
9447     *nto* | *qnx*)
9448       # QNX uses GNU C++, but need to define -shared option too, otherwise
9449       # it will coredump.
9450       lt_prog_compiler_pic='-fPIC -shared'
9451       ;;
9452
9453     sysv4*MP*)
9454       if test -d /usr/nec; then
9455         lt_prog_compiler_pic=-Kconform_pic
9456       fi
9457       ;;
9458
9459     *)
9460       lt_prog_compiler_pic='-fPIC'
9461       ;;
9462     esac
9463   else
9464     # PORTME Check for flag to pass linker flags through the system compiler.
9465     case $host_os in
9466     aix*)
9467       lt_prog_compiler_wl='-Wl,'
9468       if test "$host_cpu" = ia64; then
9469         # AIX 5 now supports IA64 processor
9470         lt_prog_compiler_static='-Bstatic'
9471       else
9472         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9473       fi
9474       ;;
9475
9476     mingw* | cygwin* | pw32* | os2* | cegcc*)
9477       # This hack is so that the source file can tell whether it is being
9478       # built for inclusion in a dll (and should export symbols for example).
9479       lt_prog_compiler_pic='-DDLL_EXPORT'
9480       ;;
9481
9482     hpux9* | hpux10* | hpux11*)
9483       lt_prog_compiler_wl='-Wl,'
9484       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9485       # not for PA HP-UX.
9486       case $host_cpu in
9487       hppa*64*|ia64*)
9488         # +Z the default
9489         ;;
9490       *)
9491         lt_prog_compiler_pic='+Z'
9492         ;;
9493       esac
9494       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9495       lt_prog_compiler_static='${wl}-a ${wl}archive'
9496       ;;
9497
9498     irix5* | irix6* | nonstopux*)
9499       lt_prog_compiler_wl='-Wl,'
9500       # PIC (with -KPIC) is the default.
9501       lt_prog_compiler_static='-non_shared'
9502       ;;
9503
9504     linux* | k*bsd*-gnu | kopensolaris*-gnu)
9505       case $cc_basename in
9506       # old Intel for x86_64 which still supported -KPIC.
9507       ecc*)
9508         lt_prog_compiler_wl='-Wl,'
9509         lt_prog_compiler_pic='-KPIC'
9510         lt_prog_compiler_static='-static'
9511         ;;
9512       # icc used to be incompatible with GCC.
9513       # ICC 10 doesn't accept -KPIC any more.
9514       icc* | ifort*)
9515         lt_prog_compiler_wl='-Wl,'
9516         lt_prog_compiler_pic='-fPIC'
9517         lt_prog_compiler_static='-static'
9518         ;;
9519       # Lahey Fortran 8.1.
9520       lf95*)
9521         lt_prog_compiler_wl='-Wl,'
9522         lt_prog_compiler_pic='--shared'
9523         lt_prog_compiler_static='--static'
9524         ;;
9525       pgcc* | pgf77* | pgf90* | pgf95*)
9526         # Portland Group compilers (*not* the Pentium gcc compiler,
9527         # which looks to be a dead project)
9528         lt_prog_compiler_wl='-Wl,'
9529         lt_prog_compiler_pic='-fpic'
9530         lt_prog_compiler_static='-Bstatic'
9531         ;;
9532       ccc*)
9533         lt_prog_compiler_wl='-Wl,'
9534         # All Alpha code is PIC.
9535         lt_prog_compiler_static='-non_shared'
9536         ;;
9537       xl*)
9538         # IBM XL C 8.0/Fortran 10.1 on PPC
9539         lt_prog_compiler_wl='-Wl,'
9540         lt_prog_compiler_pic='-qpic'
9541         lt_prog_compiler_static='-qstaticlink'
9542         ;;
9543       *)
9544         case `$CC -V 2>&1 | sed 5q` in
9545         *Sun\ C*)
9546           # Sun C 5.9
9547           lt_prog_compiler_pic='-KPIC'
9548           lt_prog_compiler_static='-Bstatic'
9549           lt_prog_compiler_wl='-Wl,'
9550           ;;
9551         *Sun\ F*)
9552           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9553           lt_prog_compiler_pic='-KPIC'
9554           lt_prog_compiler_static='-Bstatic'
9555           lt_prog_compiler_wl=''
9556           ;;
9557         esac
9558         ;;
9559       esac
9560       ;;
9561
9562     newsos6)
9563       lt_prog_compiler_pic='-KPIC'
9564       lt_prog_compiler_static='-Bstatic'
9565       ;;
9566
9567     *nto* | *qnx*)
9568       # QNX uses GNU C++, but need to define -shared option too, otherwise
9569       # it will coredump.
9570       lt_prog_compiler_pic='-fPIC -shared'
9571       ;;
9572
9573     osf3* | osf4* | osf5*)
9574       lt_prog_compiler_wl='-Wl,'
9575       # All OSF/1 code is PIC.
9576       lt_prog_compiler_static='-non_shared'
9577       ;;
9578
9579     rdos*)
9580       lt_prog_compiler_static='-non_shared'
9581       ;;
9582
9583     solaris*)
9584       lt_prog_compiler_pic='-KPIC'
9585       lt_prog_compiler_static='-Bstatic'
9586       case $cc_basename in
9587       f77* | f90* | f95*)
9588         lt_prog_compiler_wl='-Qoption ld ';;
9589       *)
9590         lt_prog_compiler_wl='-Wl,';;
9591       esac
9592       ;;
9593
9594     sunos4*)
9595       lt_prog_compiler_wl='-Qoption ld '
9596       lt_prog_compiler_pic='-PIC'
9597       lt_prog_compiler_static='-Bstatic'
9598       ;;
9599
9600     sysv4 | sysv4.2uw2* | sysv4.3*)
9601       lt_prog_compiler_wl='-Wl,'
9602       lt_prog_compiler_pic='-KPIC'
9603       lt_prog_compiler_static='-Bstatic'
9604       ;;
9605
9606     sysv4*MP*)
9607       if test -d /usr/nec ;then
9608         lt_prog_compiler_pic='-Kconform_pic'
9609         lt_prog_compiler_static='-Bstatic'
9610       fi
9611       ;;
9612
9613     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9614       lt_prog_compiler_wl='-Wl,'
9615       lt_prog_compiler_pic='-KPIC'
9616       lt_prog_compiler_static='-Bstatic'
9617       ;;
9618
9619     unicos*)
9620       lt_prog_compiler_wl='-Wl,'
9621       lt_prog_compiler_can_build_shared=no
9622       ;;
9623
9624     uts4*)
9625       lt_prog_compiler_pic='-pic'
9626       lt_prog_compiler_static='-Bstatic'
9627       ;;
9628
9629     *)
9630       lt_prog_compiler_can_build_shared=no
9631       ;;
9632     esac
9633   fi
9634
9635 case $host_os in
9636   # For platforms which do not support PIC, -DPIC is meaningless:
9637   *djgpp*)
9638     lt_prog_compiler_pic=
9639     ;;
9640   *)
9641     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9642     ;;
9643 esac
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9645 $as_echo "$lt_prog_compiler_pic" >&6; }
9646
9647
9648
9649
9650
9651
9652 #
9653 # Check to make sure the PIC flag actually works.
9654 #
9655 if test -n "$lt_prog_compiler_pic"; then
9656   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9657 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9658 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9659   $as_echo_n "(cached) " >&6
9660 else
9661   lt_cv_prog_compiler_pic_works=no
9662    ac_outfile=conftest.$ac_objext
9663    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9664    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9665    # Insert the option either (1) after the last *FLAGS variable, or
9666    # (2) before a word containing "conftest.", or (3) at the end.
9667    # Note that $ac_compile itself does not contain backslashes and begins
9668    # with a dollar sign (not a hyphen), so the echo should work correctly.
9669    # The option is referenced via a variable to avoid confusing sed.
9670    lt_compile=`echo "$ac_compile" | $SED \
9671    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9672    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9673    -e 's:$: $lt_compiler_flag:'`
9674    (eval echo "\"\$as_me:9674: $lt_compile\"" >&5)
9675    (eval "$lt_compile" 2>conftest.err)
9676    ac_status=$?
9677    cat conftest.err >&5
9678    echo "$as_me:9678: \$? = $ac_status" >&5
9679    if (exit $ac_status) && test -s "$ac_outfile"; then
9680      # The compiler can only warn and ignore the option if not recognized
9681      # So say no if there are warnings other than the usual output.
9682      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9683      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9684      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9685        lt_cv_prog_compiler_pic_works=yes
9686      fi
9687    fi
9688    $RM conftest*
9689
9690 fi
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9692 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9693
9694 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9695     case $lt_prog_compiler_pic in
9696      "" | " "*) ;;
9697      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9698      esac
9699 else
9700     lt_prog_compiler_pic=
9701      lt_prog_compiler_can_build_shared=no
9702 fi
9703
9704 fi
9705
9706
9707
9708
9709
9710
9711 #
9712 # Check to make sure the static flag actually works.
9713 #
9714 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9716 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9717 if ${lt_cv_prog_compiler_static_works+:} false; then :
9718   $as_echo_n "(cached) " >&6
9719 else
9720   lt_cv_prog_compiler_static_works=no
9721    save_LDFLAGS="$LDFLAGS"
9722    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9723    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9724    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9725      # The linker can only warn and ignore the option if not recognized
9726      # So say no if there are warnings
9727      if test -s conftest.err; then
9728        # Append any errors to the config.log.
9729        cat conftest.err 1>&5
9730        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9731        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9732        if diff conftest.exp conftest.er2 >/dev/null; then
9733          lt_cv_prog_compiler_static_works=yes
9734        fi
9735      else
9736        lt_cv_prog_compiler_static_works=yes
9737      fi
9738    fi
9739    $RM -r conftest*
9740    LDFLAGS="$save_LDFLAGS"
9741
9742 fi
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9744 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9745
9746 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9747     :
9748 else
9749     lt_prog_compiler_static=
9750 fi
9751
9752
9753
9754
9755
9756
9757
9758   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9759 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9760 if ${lt_cv_prog_compiler_c_o+:} false; then :
9761   $as_echo_n "(cached) " >&6
9762 else
9763   lt_cv_prog_compiler_c_o=no
9764    $RM -r conftest 2>/dev/null
9765    mkdir conftest
9766    cd conftest
9767    mkdir out
9768    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9769
9770    lt_compiler_flag="-o out/conftest2.$ac_objext"
9771    # Insert the option either (1) after the last *FLAGS variable, or
9772    # (2) before a word containing "conftest.", or (3) at the end.
9773    # Note that $ac_compile itself does not contain backslashes and begins
9774    # with a dollar sign (not a hyphen), so the echo should work correctly.
9775    lt_compile=`echo "$ac_compile" | $SED \
9776    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9777    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9778    -e 's:$: $lt_compiler_flag:'`
9779    (eval echo "\"\$as_me:9779: $lt_compile\"" >&5)
9780    (eval "$lt_compile" 2>out/conftest.err)
9781    ac_status=$?
9782    cat out/conftest.err >&5
9783    echo "$as_me:9783: \$? = $ac_status" >&5
9784    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9785    then
9786      # The compiler can only warn and ignore the option if not recognized
9787      # So say no if there are warnings
9788      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9789      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9790      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9791        lt_cv_prog_compiler_c_o=yes
9792      fi
9793    fi
9794    chmod u+w . 2>&5
9795    $RM conftest*
9796    # SGI C++ compiler will create directory out/ii_files/ for
9797    # template instantiation
9798    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9799    $RM out/* && rmdir out
9800    cd ..
9801    $RM -r conftest
9802    $RM conftest*
9803
9804 fi
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9806 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9807
9808
9809
9810
9811
9812
9813   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9814 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9815 if ${lt_cv_prog_compiler_c_o+:} false; then :
9816   $as_echo_n "(cached) " >&6
9817 else
9818   lt_cv_prog_compiler_c_o=no
9819    $RM -r conftest 2>/dev/null
9820    mkdir conftest
9821    cd conftest
9822    mkdir out
9823    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9824
9825    lt_compiler_flag="-o out/conftest2.$ac_objext"
9826    # Insert the option either (1) after the last *FLAGS variable, or
9827    # (2) before a word containing "conftest.", or (3) at the end.
9828    # Note that $ac_compile itself does not contain backslashes and begins
9829    # with a dollar sign (not a hyphen), so the echo should work correctly.
9830    lt_compile=`echo "$ac_compile" | $SED \
9831    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9832    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9833    -e 's:$: $lt_compiler_flag:'`
9834    (eval echo "\"\$as_me:9834: $lt_compile\"" >&5)
9835    (eval "$lt_compile" 2>out/conftest.err)
9836    ac_status=$?
9837    cat out/conftest.err >&5
9838    echo "$as_me:9838: \$? = $ac_status" >&5
9839    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9840    then
9841      # The compiler can only warn and ignore the option if not recognized
9842      # So say no if there are warnings
9843      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9844      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9845      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9846        lt_cv_prog_compiler_c_o=yes
9847      fi
9848    fi
9849    chmod u+w . 2>&5
9850    $RM conftest*
9851    # SGI C++ compiler will create directory out/ii_files/ for
9852    # template instantiation
9853    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9854    $RM out/* && rmdir out
9855    cd ..
9856    $RM -r conftest
9857    $RM conftest*
9858
9859 fi
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9861 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9862
9863
9864
9865
9866 hard_links="nottested"
9867 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9868   # do not overwrite the value of need_locks provided by the user
9869   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9870 $as_echo_n "checking if we can lock with hard links... " >&6; }
9871   hard_links=yes
9872   $RM conftest*
9873   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9874   touch conftest.a
9875   ln conftest.a conftest.b 2>&5 || hard_links=no
9876   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9878 $as_echo "$hard_links" >&6; }
9879   if test "$hard_links" = no; then
9880     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9881 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9882     need_locks=warn
9883   fi
9884 else
9885   need_locks=no
9886 fi
9887
9888
9889
9890
9891
9892
9893   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9894 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9895
9896   runpath_var=
9897   allow_undefined_flag=
9898   always_export_symbols=no
9899   archive_cmds=
9900   archive_expsym_cmds=
9901   compiler_needs_object=no
9902   enable_shared_with_static_runtimes=no
9903   export_dynamic_flag_spec=
9904   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9905   hardcode_automatic=no
9906   hardcode_direct=no
9907   hardcode_direct_absolute=no
9908   hardcode_libdir_flag_spec=
9909   hardcode_libdir_flag_spec_ld=
9910   hardcode_libdir_separator=
9911   hardcode_minus_L=no
9912   hardcode_shlibpath_var=unsupported
9913   inherit_rpath=no
9914   link_all_deplibs=unknown
9915   module_cmds=
9916   module_expsym_cmds=
9917   old_archive_from_new_cmds=
9918   old_archive_from_expsyms_cmds=
9919   thread_safe_flag_spec=
9920   whole_archive_flag_spec=
9921   # include_expsyms should be a list of space-separated symbols to be *always*
9922   # included in the symbol list
9923   include_expsyms=
9924   # exclude_expsyms can be an extended regexp of symbols to exclude
9925   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9926   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9927   # as well as any symbol that contains `d'.
9928   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9929   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9930   # platforms (ab)use it in PIC code, but their linkers get confused if
9931   # the symbol is explicitly referenced.  Since portable code cannot
9932   # rely on this symbol name, it's probably fine to never include it in
9933   # preloaded symbol tables.
9934   # Exclude shared library initialization/finalization symbols.
9935   extract_expsyms_cmds=
9936
9937   case $host_os in
9938   cygwin* | mingw* | pw32* | cegcc*)
9939     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9940     # When not using gcc, we currently assume that we are using
9941     # Microsoft Visual C++.
9942     if test "$GCC" != yes; then
9943       with_gnu_ld=no
9944     fi
9945     ;;
9946   interix*)
9947     # we just hope/assume this is gcc and not c89 (= MSVC++)
9948     with_gnu_ld=yes
9949     ;;
9950   openbsd*)
9951     with_gnu_ld=no
9952     ;;
9953   linux* | k*bsd*-gnu)
9954     link_all_deplibs=no
9955     ;;
9956   esac
9957
9958   ld_shlibs=yes
9959   if test "$with_gnu_ld" = yes; then
9960     # If archive_cmds runs LD, not CC, wlarc should be empty
9961     wlarc='${wl}'
9962
9963     # Set some defaults for GNU ld with shared library support. These
9964     # are reset later if shared libraries are not supported. Putting them
9965     # here allows them to be overridden if necessary.
9966     runpath_var=LD_RUN_PATH
9967     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9968     export_dynamic_flag_spec='${wl}--export-dynamic'
9969     # ancient GNU ld didn't support --whole-archive et. al.
9970     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9971       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9972     else
9973       whole_archive_flag_spec=
9974     fi
9975     supports_anon_versioning=no
9976     case `$LD -v 2>&1` in
9977       *GNU\ gold*) supports_anon_versioning=yes ;;
9978       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9979       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9980       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9981       *\ 2.11.*) ;; # other 2.11 versions
9982       *) supports_anon_versioning=yes ;;
9983     esac
9984
9985     # See if GNU ld supports shared libraries.
9986     case $host_os in
9987     aix[3-9]*)
9988       # On AIX/PPC, the GNU linker is very broken
9989       if test "$host_cpu" != ia64; then
9990         ld_shlibs=no
9991         cat <<_LT_EOF 1>&2
9992
9993 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9994 *** to be unable to reliably create shared libraries on AIX.
9995 *** Therefore, libtool is disabling shared libraries support.  If you
9996 *** really care for shared libraries, you may want to modify your PATH
9997 *** so that a non-GNU linker is found, and then restart.
9998
9999 _LT_EOF
10000       fi
10001       ;;
10002
10003     amigaos*)
10004       case $host_cpu in
10005       powerpc)
10006             # see comment about AmigaOS4 .so support
10007             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10008             archive_expsym_cmds=''
10009         ;;
10010       m68k)
10011             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)'
10012             hardcode_libdir_flag_spec='-L$libdir'
10013             hardcode_minus_L=yes
10014         ;;
10015       esac
10016       ;;
10017
10018     beos*)
10019       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10020         allow_undefined_flag=unsupported
10021         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10022         # support --undefined.  This deserves some investigation.  FIXME
10023         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10024       else
10025         ld_shlibs=no
10026       fi
10027       ;;
10028
10029     cygwin* | mingw* | pw32* | cegcc*)
10030       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10031       # as there is no search path for DLLs.
10032       hardcode_libdir_flag_spec='-L$libdir'
10033       allow_undefined_flag=unsupported
10034       always_export_symbols=no
10035       enable_shared_with_static_runtimes=yes
10036       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10037
10038       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10039         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10040         # If the export-symbols file already is a .def file (1st line
10041         # is EXPORTS), use it as is; otherwise, prepend...
10042         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10043           cp $export_symbols $output_objdir/$soname.def;
10044         else
10045           echo EXPORTS > $output_objdir/$soname.def;
10046           cat $export_symbols >> $output_objdir/$soname.def;
10047         fi~
10048         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10049       else
10050         ld_shlibs=no
10051       fi
10052       ;;
10053
10054     interix[3-9]*)
10055       hardcode_direct=no
10056       hardcode_shlibpath_var=no
10057       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10058       export_dynamic_flag_spec='${wl}-E'
10059       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10060       # Instead, shared libraries are loaded at an image base (0x10000000 by
10061       # default) and relocated if they conflict, which is a slow very memory
10062       # consuming and fragmenting process.  To avoid this, we pick a random,
10063       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10064       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10065       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10066       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'
10067       ;;
10068
10069     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10070       tmp_diet=no
10071       if test "$host_os" = linux-dietlibc; then
10072         case $cc_basename in
10073           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10074         esac
10075       fi
10076       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10077          && test "$tmp_diet" = no
10078       then
10079         tmp_addflag=
10080         tmp_sharedflag='-shared'
10081         case $cc_basename,$host_cpu in
10082         pgcc*)                          # Portland Group C compiler
10083           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10084           tmp_addflag=' $pic_flag'
10085           ;;
10086         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10087           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10088           tmp_addflag=' $pic_flag -Mnomain' ;;
10089         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10090           tmp_addflag=' -i_dynamic' ;;
10091         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10092           tmp_addflag=' -i_dynamic -nofor_main' ;;
10093         ifc* | ifort*)                  # Intel Fortran compiler
10094           tmp_addflag=' -nofor_main' ;;
10095         lf95*)                          # Lahey Fortran 8.1
10096           whole_archive_flag_spec=
10097           tmp_sharedflag='--shared' ;;
10098         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10099           tmp_sharedflag='-qmkshrobj'
10100           tmp_addflag= ;;
10101         esac
10102         case `$CC -V 2>&1 | sed 5q` in
10103         *Sun\ C*)                       # Sun C 5.9
10104           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10105           compiler_needs_object=yes
10106           tmp_sharedflag='-G' ;;
10107         *Sun\ F*)                       # Sun Fortran 8.3
10108           tmp_sharedflag='-G' ;;
10109         esac
10110         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10111
10112         if test "x$supports_anon_versioning" = xyes; then
10113           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10114             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10115             echo "local: *; };" >> $output_objdir/$libname.ver~
10116             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10117         fi
10118
10119         case $cc_basename in
10120         xlf*)
10121           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10122           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10123           hardcode_libdir_flag_spec=
10124           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10125           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10126           if test "x$supports_anon_versioning" = xyes; then
10127             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10128               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10129               echo "local: *; };" >> $output_objdir/$libname.ver~
10130               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10131           fi
10132           ;;
10133         esac
10134       else
10135         ld_shlibs=no
10136       fi
10137       ;;
10138
10139     netbsd* | netbsdelf*-gnu)
10140       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10141         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10142         wlarc=
10143       else
10144         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10145         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10146       fi
10147       ;;
10148
10149     solaris*)
10150       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10151         ld_shlibs=no
10152         cat <<_LT_EOF 1>&2
10153
10154 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10155 *** create shared libraries on Solaris systems.  Therefore, libtool
10156 *** is disabling shared libraries support.  We urge you to upgrade GNU
10157 *** binutils to release 2.9.1 or newer.  Another option is to modify
10158 *** your PATH or compiler configuration so that the native linker is
10159 *** used, and then restart.
10160
10161 _LT_EOF
10162       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10163         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10164         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10165       else
10166         ld_shlibs=no
10167       fi
10168       ;;
10169
10170     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10171       case `$LD -v 2>&1` in
10172         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10173         ld_shlibs=no
10174         cat <<_LT_EOF 1>&2
10175
10176 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10177 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10178 *** is disabling shared libraries support.  We urge you to upgrade GNU
10179 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10180 *** your PATH or compiler configuration so that the native linker is
10181 *** used, and then restart.
10182
10183 _LT_EOF
10184         ;;
10185         *)
10186           # For security reasons, it is highly recommended that you always
10187           # use absolute paths for naming shared libraries, and exclude the
10188           # DT_RUNPATH tag from executables and libraries.  But doing so
10189           # requires that you compile everything twice, which is a pain.
10190           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10191             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10192             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10193             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10194           else
10195             ld_shlibs=no
10196           fi
10197         ;;
10198       esac
10199       ;;
10200
10201     sunos4*)
10202       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10203       wlarc=
10204       hardcode_direct=yes
10205       hardcode_shlibpath_var=no
10206       ;;
10207
10208     *)
10209       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10210         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10211         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10212       else
10213         ld_shlibs=no
10214       fi
10215       ;;
10216     esac
10217
10218     if test "$ld_shlibs" = no; then
10219       runpath_var=
10220       hardcode_libdir_flag_spec=
10221       export_dynamic_flag_spec=
10222       whole_archive_flag_spec=
10223     fi
10224   else
10225     # PORTME fill in a description of your system's linker (not GNU ld)
10226     case $host_os in
10227     aix3*)
10228       allow_undefined_flag=unsupported
10229       always_export_symbols=yes
10230       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'
10231       # Note: this linker hardcodes the directories in LIBPATH if there
10232       # are no directories specified by -L.
10233       hardcode_minus_L=yes
10234       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10235         # Neither direct hardcoding nor static linking is supported with a
10236         # broken collect2.
10237         hardcode_direct=unsupported
10238       fi
10239       ;;
10240
10241     aix[4-9]*)
10242       if test "$host_cpu" = ia64; then
10243         # On IA64, the linker does run time linking by default, so we don't
10244         # have to do anything special.
10245         aix_use_runtimelinking=no
10246         exp_sym_flag='-Bexport'
10247         no_entry_flag=""
10248       else
10249         # If we're using GNU nm, then we don't want the "-C" option.
10250         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10251         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10252           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10253         else
10254           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'
10255         fi
10256         aix_use_runtimelinking=no
10257
10258         # Test if we are trying to use run time linking or normal
10259         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10260         # need to do runtime linking.
10261         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10262           for ld_flag in $LDFLAGS; do
10263           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10264             aix_use_runtimelinking=yes
10265             break
10266           fi
10267           done
10268           ;;
10269         esac
10270
10271         exp_sym_flag='-bexport'
10272         no_entry_flag='-bnoentry'
10273       fi
10274
10275       # When large executables or shared objects are built, AIX ld can
10276       # have problems creating the table of contents.  If linking a library
10277       # or program results in "error TOC overflow" add -mminimal-toc to
10278       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10279       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10280
10281       archive_cmds=''
10282       hardcode_direct=yes
10283       hardcode_direct_absolute=yes
10284       hardcode_libdir_separator=':'
10285       link_all_deplibs=yes
10286       file_list_spec='${wl}-f,'
10287
10288       if test "$GCC" = yes; then
10289         case $host_os in aix4.[012]|aix4.[012].*)
10290         # We only want to do this on AIX 4.2 and lower, the check
10291         # below for broken collect2 doesn't work under 4.3+
10292           collect2name=`${CC} -print-prog-name=collect2`
10293           if test -f "$collect2name" &&
10294            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10295           then
10296           # We have reworked collect2
10297           :
10298           else
10299           # We have old collect2
10300           hardcode_direct=unsupported
10301           # It fails to find uninstalled libraries when the uninstalled
10302           # path is not listed in the libpath.  Setting hardcode_minus_L
10303           # to unsupported forces relinking
10304           hardcode_minus_L=yes
10305           hardcode_libdir_flag_spec='-L$libdir'
10306           hardcode_libdir_separator=
10307           fi
10308           ;;
10309         esac
10310         shared_flag='-shared'
10311         if test "$aix_use_runtimelinking" = yes; then
10312           shared_flag="$shared_flag "'${wl}-G'
10313         fi
10314         link_all_deplibs=no
10315       else
10316         # not using gcc
10317         if test "$host_cpu" = ia64; then
10318         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10319         # chokes on -Wl,-G. The following line is correct:
10320           shared_flag='-G'
10321         else
10322           if test "$aix_use_runtimelinking" = yes; then
10323             shared_flag='${wl}-G'
10324           else
10325             shared_flag='${wl}-bM:SRE'
10326           fi
10327         fi
10328       fi
10329
10330       export_dynamic_flag_spec='${wl}-bexpall'
10331       # It seems that -bexpall does not export symbols beginning with
10332       # underscore (_), so it is better to generate a list of symbols to export.
10333       always_export_symbols=yes
10334       if test "$aix_use_runtimelinking" = yes; then
10335         # Warning - without using the other runtime loading flags (-brtl),
10336         # -berok will link without error, but may produce a broken library.
10337         allow_undefined_flag='-berok'
10338         # Determine the default libpath from the value encoded in an
10339         # empty executable.
10340         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10341 /* end confdefs.h.  */
10342
10343 int
10344 main ()
10345 {
10346
10347   ;
10348   return 0;
10349 }
10350 _ACEOF
10351 if ac_fn_c_try_link "$LINENO"; then :
10352
10353 lt_aix_libpath_sed='
10354     /Import File Strings/,/^$/ {
10355         /^0/ {
10356             s/^0  *\(.*\)$/\1/
10357             p
10358         }
10359     }'
10360 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10361 # Check for a 64-bit object if we didn't find anything.
10362 if test -z "$aix_libpath"; then
10363   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10364 fi
10365 fi
10366 rm -f core conftest.err conftest.$ac_objext \
10367     conftest$ac_exeext conftest.$ac_ext
10368 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10369
10370         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10371         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10372       else
10373         if test "$host_cpu" = ia64; then
10374           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10375           allow_undefined_flag="-z nodefs"
10376           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"
10377         else
10378          # Determine the default libpath from the value encoded in an
10379          # empty executable.
10380          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10381 /* end confdefs.h.  */
10382
10383 int
10384 main ()
10385 {
10386
10387   ;
10388   return 0;
10389 }
10390 _ACEOF
10391 if ac_fn_c_try_link "$LINENO"; then :
10392
10393 lt_aix_libpath_sed='
10394     /Import File Strings/,/^$/ {
10395         /^0/ {
10396             s/^0  *\(.*\)$/\1/
10397             p
10398         }
10399     }'
10400 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10401 # Check for a 64-bit object if we didn't find anything.
10402 if test -z "$aix_libpath"; then
10403   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10404 fi
10405 fi
10406 rm -f core conftest.err conftest.$ac_objext \
10407     conftest$ac_exeext conftest.$ac_ext
10408 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10409
10410          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10411           # Warning - without using the other run time loading flags,
10412           # -berok will link without error, but may produce a broken library.
10413           no_undefined_flag=' ${wl}-bernotok'
10414           allow_undefined_flag=' ${wl}-berok'
10415           # Exported symbols can be pulled into shared objects from archives
10416           whole_archive_flag_spec='$convenience'
10417           archive_cmds_need_lc=yes
10418           # This is similar to how AIX traditionally builds its shared libraries.
10419           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'
10420         fi
10421       fi
10422       ;;
10423
10424     amigaos*)
10425       case $host_cpu in
10426       powerpc)
10427             # see comment about AmigaOS4 .so support
10428             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10429             archive_expsym_cmds=''
10430         ;;
10431       m68k)
10432             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)'
10433             hardcode_libdir_flag_spec='-L$libdir'
10434             hardcode_minus_L=yes
10435         ;;
10436       esac
10437       ;;
10438
10439     bsdi[45]*)
10440       export_dynamic_flag_spec=-rdynamic
10441       ;;
10442
10443     cygwin* | mingw* | pw32* | cegcc*)
10444       # When not using gcc, we currently assume that we are using
10445       # Microsoft Visual C++.
10446       # hardcode_libdir_flag_spec is actually meaningless, as there is
10447       # no search path for DLLs.
10448       hardcode_libdir_flag_spec=' '
10449       allow_undefined_flag=unsupported
10450       # Tell ltmain to make .lib files, not .a files.
10451       libext=lib
10452       # Tell ltmain to make .dll files, not .so files.
10453       shrext_cmds=".dll"
10454       # FIXME: Setting linknames here is a bad hack.
10455       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10456       # The linker will automatically build a .lib file if we build a DLL.
10457       old_archive_from_new_cmds='true'
10458       # FIXME: Should let the user specify the lib program.
10459       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10460       fix_srcfile_path='`cygpath -w "$srcfile"`'
10461       enable_shared_with_static_runtimes=yes
10462       ;;
10463
10464     darwin* | rhapsody*)
10465
10466
10467   archive_cmds_need_lc=no
10468   hardcode_direct=no
10469   hardcode_automatic=yes
10470   hardcode_shlibpath_var=unsupported
10471   whole_archive_flag_spec=''
10472   link_all_deplibs=yes
10473   allow_undefined_flag="$_lt_dar_allow_undefined"
10474   case $cc_basename in
10475      ifort*) _lt_dar_can_shared=yes ;;
10476      *) _lt_dar_can_shared=$GCC ;;
10477   esac
10478   if test "$_lt_dar_can_shared" = "yes"; then
10479     output_verbose_link_cmd=echo
10480     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10481     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10482     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}"
10483     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}"
10484
10485   else
10486   ld_shlibs=no
10487   fi
10488
10489       ;;
10490
10491     dgux*)
10492       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10493       hardcode_libdir_flag_spec='-L$libdir'
10494       hardcode_shlibpath_var=no
10495       ;;
10496
10497     freebsd1*)
10498       ld_shlibs=no
10499       ;;
10500
10501     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10502     # support.  Future versions do this automatically, but an explicit c++rt0.o
10503     # does not break anything, and helps significantly (at the cost of a little
10504     # extra space).
10505     freebsd2.2*)
10506       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10507       hardcode_libdir_flag_spec='-R$libdir'
10508       hardcode_direct=yes
10509       hardcode_shlibpath_var=no
10510       ;;
10511
10512     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10513     freebsd2*)
10514       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10515       hardcode_direct=yes
10516       hardcode_minus_L=yes
10517       hardcode_shlibpath_var=no
10518       ;;
10519
10520     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10521     freebsd* | dragonfly*)
10522       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10523       hardcode_libdir_flag_spec='-R$libdir'
10524       hardcode_direct=yes
10525       hardcode_shlibpath_var=no
10526       ;;
10527
10528     hpux9*)
10529       if test "$GCC" = yes; then
10530         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10531       else
10532         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'
10533       fi
10534       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10535       hardcode_libdir_separator=:
10536       hardcode_direct=yes
10537
10538       # hardcode_minus_L: Not really in the search PATH,
10539       # but as the default location of the library.
10540       hardcode_minus_L=yes
10541       export_dynamic_flag_spec='${wl}-E'
10542       ;;
10543
10544     hpux10*)
10545       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10546         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10547       else
10548         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10549       fi
10550       if test "$with_gnu_ld" = no; then
10551         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10552         hardcode_libdir_flag_spec_ld='+b $libdir'
10553         hardcode_libdir_separator=:
10554         hardcode_direct=yes
10555         hardcode_direct_absolute=yes
10556         export_dynamic_flag_spec='${wl}-E'
10557         # hardcode_minus_L: Not really in the search PATH,
10558         # but as the default location of the library.
10559         hardcode_minus_L=yes
10560       fi
10561       ;;
10562
10563     hpux11*)
10564       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10565         case $host_cpu in
10566         hppa*64*)
10567           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10568           ;;
10569         ia64*)
10570           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10571           ;;
10572         *)
10573           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10574           ;;
10575         esac
10576       else
10577         case $host_cpu in
10578         hppa*64*)
10579           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10580           ;;
10581         ia64*)
10582           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10583           ;;
10584         *)
10585           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10586           ;;
10587         esac
10588       fi
10589       if test "$with_gnu_ld" = no; then
10590         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10591         hardcode_libdir_separator=:
10592
10593         case $host_cpu in
10594         hppa*64*|ia64*)
10595           hardcode_direct=no
10596           hardcode_shlibpath_var=no
10597           ;;
10598         *)
10599           hardcode_direct=yes
10600           hardcode_direct_absolute=yes
10601           export_dynamic_flag_spec='${wl}-E'
10602
10603           # hardcode_minus_L: Not really in the search PATH,
10604           # but as the default location of the library.
10605           hardcode_minus_L=yes
10606           ;;
10607         esac
10608       fi
10609       ;;
10610
10611     irix5* | irix6* | nonstopux*)
10612       if test "$GCC" = yes; then
10613         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10614         # Try to use the -exported_symbol ld option, if it does not
10615         # work, assume that -exports_file does not work either and
10616         # implicitly export all symbols.
10617         save_LDFLAGS="$LDFLAGS"
10618         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10619         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10620 /* end confdefs.h.  */
10621 int foo(void) {}
10622 _ACEOF
10623 if ac_fn_c_try_link "$LINENO"; then :
10624   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10625
10626 fi
10627 rm -f core conftest.err conftest.$ac_objext \
10628     conftest$ac_exeext conftest.$ac_ext
10629         LDFLAGS="$save_LDFLAGS"
10630       else
10631         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10632         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10633       fi
10634       archive_cmds_need_lc='no'
10635       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10636       hardcode_libdir_separator=:
10637       inherit_rpath=yes
10638       link_all_deplibs=yes
10639       ;;
10640
10641     netbsd* | netbsdelf*-gnu)
10642       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10643         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10644       else
10645         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10646       fi
10647       hardcode_libdir_flag_spec='-R$libdir'
10648       hardcode_direct=yes
10649       hardcode_shlibpath_var=no
10650       ;;
10651
10652     newsos6)
10653       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10654       hardcode_direct=yes
10655       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10656       hardcode_libdir_separator=:
10657       hardcode_shlibpath_var=no
10658       ;;
10659
10660     *nto* | *qnx*)
10661       ;;
10662
10663     openbsd*)
10664       if test -f /usr/libexec/ld.so; then
10665         hardcode_direct=yes
10666         hardcode_shlibpath_var=no
10667         hardcode_direct_absolute=yes
10668         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10669           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10670           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10671           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10672           export_dynamic_flag_spec='${wl}-E'
10673         else
10674           case $host_os in
10675            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10676              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10677              hardcode_libdir_flag_spec='-R$libdir'
10678              ;;
10679            *)
10680              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10681              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10682              ;;
10683           esac
10684         fi
10685       else
10686         ld_shlibs=no
10687       fi
10688       ;;
10689
10690     os2*)
10691       hardcode_libdir_flag_spec='-L$libdir'
10692       hardcode_minus_L=yes
10693       allow_undefined_flag=unsupported
10694       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'
10695       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10696       ;;
10697
10698     osf3*)
10699       if test "$GCC" = yes; then
10700         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10701         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10702       else
10703         allow_undefined_flag=' -expect_unresolved \*'
10704         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10705       fi
10706       archive_cmds_need_lc='no'
10707       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10708       hardcode_libdir_separator=:
10709       ;;
10710
10711     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10712       if test "$GCC" = yes; then
10713         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10714         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10715         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10716       else
10717         allow_undefined_flag=' -expect_unresolved \*'
10718         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10719         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~
10720         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10721
10722         # Both c and cxx compiler support -rpath directly
10723         hardcode_libdir_flag_spec='-rpath $libdir'
10724       fi
10725       archive_cmds_need_lc='no'
10726       hardcode_libdir_separator=:
10727       ;;
10728
10729     solaris*)
10730       no_undefined_flag=' -z defs'
10731       if test "$GCC" = yes; then
10732         wlarc='${wl}'
10733         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10734         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10735           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10736       else
10737         case `$CC -V 2>&1` in
10738         *"Compilers 5.0"*)
10739           wlarc=''
10740           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10741           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10742           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10743           ;;
10744         *)
10745           wlarc='${wl}'
10746           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10747           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10748           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10749           ;;
10750         esac
10751       fi
10752       hardcode_libdir_flag_spec='-R$libdir'
10753       hardcode_shlibpath_var=no
10754       case $host_os in
10755       solaris2.[0-5] | solaris2.[0-5].*) ;;
10756       *)
10757         # The compiler driver will combine and reorder linker options,
10758         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10759         # but is careful enough not to reorder.
10760         # Supported since Solaris 2.6 (maybe 2.5.1?)
10761         if test "$GCC" = yes; then
10762           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10763         else
10764           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10765         fi
10766         ;;
10767       esac
10768       link_all_deplibs=yes
10769       ;;
10770
10771     sunos4*)
10772       if test "x$host_vendor" = xsequent; then
10773         # Use $CC to link under sequent, because it throws in some extra .o
10774         # files that make .init and .fini sections work.
10775         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10776       else
10777         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10778       fi
10779       hardcode_libdir_flag_spec='-L$libdir'
10780       hardcode_direct=yes
10781       hardcode_minus_L=yes
10782       hardcode_shlibpath_var=no
10783       ;;
10784
10785     sysv4)
10786       case $host_vendor in
10787         sni)
10788           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10789           hardcode_direct=yes # is this really true???
10790         ;;
10791         siemens)
10792           ## LD is ld it makes a PLAMLIB
10793           ## CC just makes a GrossModule.
10794           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10795           reload_cmds='$CC -r -o $output$reload_objs'
10796           hardcode_direct=no
10797         ;;
10798         motorola)
10799           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10800           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10801         ;;
10802       esac
10803       runpath_var='LD_RUN_PATH'
10804       hardcode_shlibpath_var=no
10805       ;;
10806
10807     sysv4.3*)
10808       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10809       hardcode_shlibpath_var=no
10810       export_dynamic_flag_spec='-Bexport'
10811       ;;
10812
10813     sysv4*MP*)
10814       if test -d /usr/nec; then
10815         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10816         hardcode_shlibpath_var=no
10817         runpath_var=LD_RUN_PATH
10818         hardcode_runpath_var=yes
10819         ld_shlibs=yes
10820       fi
10821       ;;
10822
10823     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10824       no_undefined_flag='${wl}-z,text'
10825       archive_cmds_need_lc=no
10826       hardcode_shlibpath_var=no
10827       runpath_var='LD_RUN_PATH'
10828
10829       if test "$GCC" = yes; then
10830         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10831         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10832       else
10833         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10834         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10835       fi
10836       ;;
10837
10838     sysv5* | sco3.2v5* | sco5v6*)
10839       # Note: We can NOT use -z defs as we might desire, because we do not
10840       # link with -lc, and that would cause any symbols used from libc to
10841       # always be unresolved, which means just about no library would
10842       # ever link correctly.  If we're not using GNU ld we use -z text
10843       # though, which does catch some bad symbols but isn't as heavy-handed
10844       # as -z defs.
10845       no_undefined_flag='${wl}-z,text'
10846       allow_undefined_flag='${wl}-z,nodefs'
10847       archive_cmds_need_lc=no
10848       hardcode_shlibpath_var=no
10849       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10850       hardcode_libdir_separator=':'
10851       link_all_deplibs=yes
10852       export_dynamic_flag_spec='${wl}-Bexport'
10853       runpath_var='LD_RUN_PATH'
10854
10855       if test "$GCC" = yes; then
10856         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10857         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10858       else
10859         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10860         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10861       fi
10862       ;;
10863
10864     uts4*)
10865       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10866       hardcode_libdir_flag_spec='-L$libdir'
10867       hardcode_shlibpath_var=no
10868       ;;
10869
10870     *)
10871       ld_shlibs=no
10872       ;;
10873     esac
10874
10875     if test x$host_vendor = xsni; then
10876       case $host in
10877       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10878         export_dynamic_flag_spec='${wl}-Blargedynsym'
10879         ;;
10880       esac
10881     fi
10882   fi
10883
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10885 $as_echo "$ld_shlibs" >&6; }
10886 test "$ld_shlibs" = no && can_build_shared=no
10887
10888 with_gnu_ld=$with_gnu_ld
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904 #
10905 # Do we need to explicitly link libc?
10906 #
10907 case "x$archive_cmds_need_lc" in
10908 x|xyes)
10909   # Assume -lc should be added
10910   archive_cmds_need_lc=yes
10911
10912   if test "$enable_shared" = yes && test "$GCC" = yes; then
10913     case $archive_cmds in
10914     *'~'*)
10915       # FIXME: we may have to deal with multi-command sequences.
10916       ;;
10917     '$CC '*)
10918       # Test whether the compiler implicitly links with -lc since on some
10919       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10920       # to ld, don't add -lc before -lgcc.
10921       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10922 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10923       $RM conftest*
10924       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10925
10926       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10927   (eval $ac_compile) 2>&5
10928   ac_status=$?
10929   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10930   test $ac_status = 0; } 2>conftest.err; then
10931         soname=conftest
10932         lib=conftest
10933         libobjs=conftest.$ac_objext
10934         deplibs=
10935         wl=$lt_prog_compiler_wl
10936         pic_flag=$lt_prog_compiler_pic
10937         compiler_flags=-v
10938         linker_flags=-v
10939         verstring=
10940         output_objdir=.
10941         libname=conftest
10942         lt_save_allow_undefined_flag=$allow_undefined_flag
10943         allow_undefined_flag=
10944         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10945   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10946   ac_status=$?
10947   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10948   test $ac_status = 0; }
10949         then
10950           archive_cmds_need_lc=no
10951         else
10952           archive_cmds_need_lc=yes
10953         fi
10954         allow_undefined_flag=$lt_save_allow_undefined_flag
10955       else
10956         cat conftest.err 1>&5
10957       fi
10958       $RM conftest*
10959       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10960 $as_echo "$archive_cmds_need_lc" >&6; }
10961       ;;
10962     esac
10963   fi
10964   ;;
10965 esac
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11124 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11125
11126 if test "$GCC" = yes; then
11127   case $host_os in
11128     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11129     *) lt_awk_arg="/^libraries:/" ;;
11130   esac
11131   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11132   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11133     # if the path contains ";" then we assume it to be the separator
11134     # otherwise default to the standard path separator (i.e. ":") - it is
11135     # assumed that no part of a normal pathname contains ";" but that should
11136     # okay in the real world where ";" in dirpaths is itself problematic.
11137     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11138   else
11139     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11140   fi
11141   # Ok, now we have the path, separated by spaces, we can step through it
11142   # and add multilib dir if necessary.
11143   lt_tmp_lt_search_path_spec=
11144   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11145   for lt_sys_path in $lt_search_path_spec; do
11146     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11147       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11148     else
11149       test -d "$lt_sys_path" && \
11150         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11151     fi
11152   done
11153   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11154 BEGIN {RS=" "; FS="/|\n";} {
11155   lt_foo="";
11156   lt_count=0;
11157   for (lt_i = NF; lt_i > 0; lt_i--) {
11158     if ($lt_i != "" && $lt_i != ".") {
11159       if ($lt_i == "..") {
11160         lt_count++;
11161       } else {
11162         if (lt_count == 0) {
11163           lt_foo="/" $lt_i lt_foo;
11164         } else {
11165           lt_count--;
11166         }
11167       }
11168     }
11169   }
11170   if (lt_foo != "") { lt_freq[lt_foo]++; }
11171   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11172 }'`
11173   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11174 else
11175   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11176 fi
11177 library_names_spec=
11178 libname_spec='lib$name'
11179 soname_spec=
11180 shrext_cmds=".so"
11181 postinstall_cmds=
11182 postuninstall_cmds=
11183 finish_cmds=
11184 finish_eval=
11185 shlibpath_var=
11186 shlibpath_overrides_runpath=unknown
11187 version_type=none
11188 dynamic_linker="$host_os ld.so"
11189 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11190 need_lib_prefix=unknown
11191 hardcode_into_libs=no
11192
11193 # when you set need_version to no, make sure it does not cause -set_version
11194 # flags to be left without arguments
11195 need_version=unknown
11196
11197 case $host_os in
11198 aix3*)
11199   version_type=linux
11200   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11201   shlibpath_var=LIBPATH
11202
11203   # AIX 3 has no versioning support, so we append a major version to the name.
11204   soname_spec='${libname}${release}${shared_ext}$major'
11205   ;;
11206
11207 aix[4-9]*)
11208   version_type=linux
11209   need_lib_prefix=no
11210   need_version=no
11211   hardcode_into_libs=yes
11212   if test "$host_cpu" = ia64; then
11213     # AIX 5 supports IA64
11214     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11215     shlibpath_var=LD_LIBRARY_PATH
11216   else
11217     # With GCC up to 2.95.x, collect2 would create an import file
11218     # for dependence libraries.  The import file would start with
11219     # the line `#! .'.  This would cause the generated library to
11220     # depend on `.', always an invalid library.  This was fixed in
11221     # development snapshots of GCC prior to 3.0.
11222     case $host_os in
11223       aix4 | aix4.[01] | aix4.[01].*)
11224       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11225            echo ' yes '
11226            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11227         :
11228       else
11229         can_build_shared=no
11230       fi
11231       ;;
11232     esac
11233     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11234     # soname into executable. Probably we can add versioning support to
11235     # collect2, so additional links can be useful in future.
11236     if test "$aix_use_runtimelinking" = yes; then
11237       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11238       # instead of lib<name>.a to let people know that these are not
11239       # typical AIX shared libraries.
11240       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11241     else
11242       # We preserve .a as extension for shared libraries through AIX4.2
11243       # and later when we are not doing run time linking.
11244       library_names_spec='${libname}${release}.a $libname.a'
11245       soname_spec='${libname}${release}${shared_ext}$major'
11246     fi
11247     shlibpath_var=LIBPATH
11248   fi
11249   ;;
11250
11251 amigaos*)
11252   case $host_cpu in
11253   powerpc)
11254     # Since July 2007 AmigaOS4 officially supports .so libraries.
11255     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11256     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11257     ;;
11258   m68k)
11259     library_names_spec='$libname.ixlibrary $libname.a'
11260     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11261     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11262     ;;
11263   esac
11264   ;;
11265
11266 beos*)
11267   library_names_spec='${libname}${shared_ext}'
11268   dynamic_linker="$host_os ld.so"
11269   shlibpath_var=LIBRARY_PATH
11270   ;;
11271
11272 bsdi[45]*)
11273   version_type=linux
11274   need_version=no
11275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11276   soname_spec='${libname}${release}${shared_ext}$major'
11277   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11278   shlibpath_var=LD_LIBRARY_PATH
11279   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11280   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11281   # the default ld.so.conf also contains /usr/contrib/lib and
11282   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11283   # libtool to hard-code these into programs
11284   ;;
11285
11286 cygwin* | mingw* | pw32* | cegcc*)
11287   version_type=windows
11288   shrext_cmds=".dll"
11289   need_version=no
11290   need_lib_prefix=no
11291
11292   case $GCC,$host_os in
11293   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11294     library_names_spec='$libname.dll.a'
11295     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11296     postinstall_cmds='base_file=`basename \${file}`~
11297       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11298       dldir=$destdir/`dirname \$dlpath`~
11299       test -d \$dldir || mkdir -p \$dldir~
11300       $install_prog $dir/$dlname \$dldir/$dlname~
11301       chmod a+x \$dldir/$dlname~
11302       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11303         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11304       fi'
11305     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11306       dlpath=$dir/\$dldll~
11307        $RM \$dlpath'
11308     shlibpath_overrides_runpath=yes
11309
11310     case $host_os in
11311     cygwin*)
11312       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11313       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11314       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11315       ;;
11316     mingw* | cegcc*)
11317       # MinGW DLLs use traditional 'lib' prefix
11318       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11319       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11320       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11321         # It is most probably a Windows format PATH printed by
11322         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11323         # path with ; separators, and with drive letters. We can handle the
11324         # drive letters (cygwin fileutils understands them), so leave them,
11325         # especially as we might pass files found there to a mingw objdump,
11326         # which wouldn't understand a cygwinified path. Ahh.
11327         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11328       else
11329         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11330       fi
11331       ;;
11332     pw32*)
11333       # pw32 DLLs use 'pw' prefix rather than 'lib'
11334       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11335       ;;
11336     esac
11337     ;;
11338
11339   *)
11340     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11341     ;;
11342   esac
11343   dynamic_linker='Win32 ld.exe'
11344   # FIXME: first we should search . and the directory the executable is in
11345   shlibpath_var=PATH
11346   ;;
11347
11348 darwin* | rhapsody*)
11349   dynamic_linker="$host_os dyld"
11350   version_type=darwin
11351   need_lib_prefix=no
11352   need_version=no
11353   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11354   soname_spec='${libname}${release}${major}$shared_ext'
11355   shlibpath_overrides_runpath=yes
11356   shlibpath_var=DYLD_LIBRARY_PATH
11357   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11358
11359   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11360   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11361   ;;
11362
11363 dgux*)
11364   version_type=linux
11365   need_lib_prefix=no
11366   need_version=no
11367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11368   soname_spec='${libname}${release}${shared_ext}$major'
11369   shlibpath_var=LD_LIBRARY_PATH
11370   ;;
11371
11372 freebsd1*)
11373   dynamic_linker=no
11374   ;;
11375
11376 freebsd* | dragonfly*)
11377   # DragonFly does not have aout.  When/if they implement a new
11378   # versioning mechanism, adjust this.
11379   if test -x /usr/bin/objformat; then
11380     objformat=`/usr/bin/objformat`
11381   else
11382     case $host_os in
11383     freebsd[123]*) objformat=aout ;;
11384     *) objformat=elf ;;
11385     esac
11386   fi
11387   version_type=freebsd-$objformat
11388   case $version_type in
11389     freebsd-elf*)
11390       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11391       need_version=no
11392       need_lib_prefix=no
11393       ;;
11394     freebsd-*)
11395       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11396       need_version=yes
11397       ;;
11398   esac
11399   shlibpath_var=LD_LIBRARY_PATH
11400   case $host_os in
11401   freebsd2*)
11402     shlibpath_overrides_runpath=yes
11403     ;;
11404   freebsd3.[01]* | freebsdelf3.[01]*)
11405     shlibpath_overrides_runpath=yes
11406     hardcode_into_libs=yes
11407     ;;
11408   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11409   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11410     shlibpath_overrides_runpath=no
11411     hardcode_into_libs=yes
11412     ;;
11413   *) # from 4.6 on, and DragonFly
11414     shlibpath_overrides_runpath=yes
11415     hardcode_into_libs=yes
11416     ;;
11417   esac
11418   ;;
11419
11420 gnu*)
11421   version_type=linux
11422   need_lib_prefix=no
11423   need_version=no
11424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11425   soname_spec='${libname}${release}${shared_ext}$major'
11426   shlibpath_var=LD_LIBRARY_PATH
11427   hardcode_into_libs=yes
11428   ;;
11429
11430 hpux9* | hpux10* | hpux11*)
11431   # Give a soname corresponding to the major version so that dld.sl refuses to
11432   # link against other versions.
11433   version_type=sunos
11434   need_lib_prefix=no
11435   need_version=no
11436   case $host_cpu in
11437   ia64*)
11438     shrext_cmds='.so'
11439     hardcode_into_libs=yes
11440     dynamic_linker="$host_os dld.so"
11441     shlibpath_var=LD_LIBRARY_PATH
11442     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11443     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11444     soname_spec='${libname}${release}${shared_ext}$major'
11445     if test "X$HPUX_IA64_MODE" = X32; then
11446       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11447     else
11448       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11449     fi
11450     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11451     ;;
11452   hppa*64*)
11453     shrext_cmds='.sl'
11454     hardcode_into_libs=yes
11455     dynamic_linker="$host_os dld.sl"
11456     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11457     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11458     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11459     soname_spec='${libname}${release}${shared_ext}$major'
11460     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11461     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11462     ;;
11463   *)
11464     shrext_cmds='.sl'
11465     dynamic_linker="$host_os dld.sl"
11466     shlibpath_var=SHLIB_PATH
11467     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11468     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11469     soname_spec='${libname}${release}${shared_ext}$major'
11470     ;;
11471   esac
11472   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11473   postinstall_cmds='chmod 555 $lib'
11474   ;;
11475
11476 interix[3-9]*)
11477   version_type=linux
11478   need_lib_prefix=no
11479   need_version=no
11480   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11481   soname_spec='${libname}${release}${shared_ext}$major'
11482   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11483   shlibpath_var=LD_LIBRARY_PATH
11484   shlibpath_overrides_runpath=no
11485   hardcode_into_libs=yes
11486   ;;
11487
11488 irix5* | irix6* | nonstopux*)
11489   case $host_os in
11490     nonstopux*) version_type=nonstopux ;;
11491     *)
11492         if test "$lt_cv_prog_gnu_ld" = yes; then
11493                 version_type=linux
11494         else
11495                 version_type=irix
11496         fi ;;
11497   esac
11498   need_lib_prefix=no
11499   need_version=no
11500   soname_spec='${libname}${release}${shared_ext}$major'
11501   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11502   case $host_os in
11503   irix5* | nonstopux*)
11504     libsuff= shlibsuff=
11505     ;;
11506   *)
11507     case $LD in # libtool.m4 will add one of these switches to LD
11508     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11509       libsuff= shlibsuff= libmagic=32-bit;;
11510     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11511       libsuff=32 shlibsuff=N32 libmagic=N32;;
11512     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11513       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11514     *) libsuff= shlibsuff= libmagic=never-match;;
11515     esac
11516     ;;
11517   esac
11518   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11519   shlibpath_overrides_runpath=no
11520   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11521   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11522   hardcode_into_libs=yes
11523   ;;
11524
11525 # No shared lib support for Linux oldld, aout, or coff.
11526 linux*oldld* | linux*aout* | linux*coff*)
11527   dynamic_linker=no
11528   ;;
11529
11530 # This must be Linux ELF.
11531 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11532   version_type=linux
11533   need_lib_prefix=no
11534   need_version=no
11535   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11536   soname_spec='${libname}${release}${shared_ext}$major'
11537   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11538   shlibpath_var=LD_LIBRARY_PATH
11539   shlibpath_overrides_runpath=no
11540   # Some binutils ld are patched to set DT_RUNPATH
11541   save_LDFLAGS=$LDFLAGS
11542   save_libdir=$libdir
11543   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11544        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11545   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11546 /* end confdefs.h.  */
11547
11548 int
11549 main ()
11550 {
11551
11552   ;
11553   return 0;
11554 }
11555 _ACEOF
11556 if ac_fn_c_try_link "$LINENO"; then :
11557   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11558   shlibpath_overrides_runpath=yes
11559 fi
11560 fi
11561 rm -f core conftest.err conftest.$ac_objext \
11562     conftest$ac_exeext conftest.$ac_ext
11563   LDFLAGS=$save_LDFLAGS
11564   libdir=$save_libdir
11565
11566   # This implies no fast_install, which is unacceptable.
11567   # Some rework will be needed to allow for fast_install
11568   # before this can be enabled.
11569   hardcode_into_libs=yes
11570
11571   # Append ld.so.conf contents to the search path
11572   if test -f /etc/ld.so.conf; then
11573     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11574     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11575   fi
11576
11577   # We used to test for /lib/ld.so.1 and disable shared libraries on
11578   # powerpc, because MkLinux only supported shared libraries with the
11579   # GNU dynamic linker.  Since this was broken with cross compilers,
11580   # most powerpc-linux boxes support dynamic linking these days and
11581   # people can always --disable-shared, the test was removed, and we
11582   # assume the GNU/Linux dynamic linker is in use.
11583   dynamic_linker='GNU/Linux ld.so'
11584   ;;
11585
11586 netbsdelf*-gnu)
11587   version_type=linux
11588   need_lib_prefix=no
11589   need_version=no
11590   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11591   soname_spec='${libname}${release}${shared_ext}$major'
11592   shlibpath_var=LD_LIBRARY_PATH
11593   shlibpath_overrides_runpath=no
11594   hardcode_into_libs=yes
11595   dynamic_linker='NetBSD ld.elf_so'
11596   ;;
11597
11598 netbsd*)
11599   version_type=sunos
11600   need_lib_prefix=no
11601   need_version=no
11602   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11603     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11604     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11605     dynamic_linker='NetBSD (a.out) ld.so'
11606   else
11607     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11608     soname_spec='${libname}${release}${shared_ext}$major'
11609     dynamic_linker='NetBSD ld.elf_so'
11610   fi
11611   shlibpath_var=LD_LIBRARY_PATH
11612   shlibpath_overrides_runpath=yes
11613   hardcode_into_libs=yes
11614   ;;
11615
11616 newsos6)
11617   version_type=linux
11618   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11619   shlibpath_var=LD_LIBRARY_PATH
11620   shlibpath_overrides_runpath=yes
11621   ;;
11622
11623 *nto* | *qnx*)
11624   version_type=qnx
11625   need_lib_prefix=no
11626   need_version=no
11627   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11628   soname_spec='${libname}${release}${shared_ext}$major'
11629   shlibpath_var=LD_LIBRARY_PATH
11630   shlibpath_overrides_runpath=no
11631   hardcode_into_libs=yes
11632   dynamic_linker='ldqnx.so'
11633   ;;
11634
11635 openbsd*)
11636   version_type=sunos
11637   sys_lib_dlsearch_path_spec="/usr/lib"
11638   need_lib_prefix=no
11639   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11640   case $host_os in
11641     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11642     *)                          need_version=no  ;;
11643   esac
11644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11645   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11646   shlibpath_var=LD_LIBRARY_PATH
11647   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11648     case $host_os in
11649       openbsd2.[89] | openbsd2.[89].*)
11650         shlibpath_overrides_runpath=no
11651         ;;
11652       *)
11653         shlibpath_overrides_runpath=yes
11654         ;;
11655       esac
11656   else
11657     shlibpath_overrides_runpath=yes
11658   fi
11659   ;;
11660
11661 os2*)
11662   libname_spec='$name'
11663   shrext_cmds=".dll"
11664   need_lib_prefix=no
11665   library_names_spec='$libname${shared_ext} $libname.a'
11666   dynamic_linker='OS/2 ld.exe'
11667   shlibpath_var=LIBPATH
11668   ;;
11669
11670 osf3* | osf4* | osf5*)
11671   version_type=osf
11672   need_lib_prefix=no
11673   need_version=no
11674   soname_spec='${libname}${release}${shared_ext}$major'
11675   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11676   shlibpath_var=LD_LIBRARY_PATH
11677   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11678   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11679   ;;
11680
11681 rdos*)
11682   dynamic_linker=no
11683   ;;
11684
11685 solaris*)
11686   version_type=linux
11687   need_lib_prefix=no
11688   need_version=no
11689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11690   soname_spec='${libname}${release}${shared_ext}$major'
11691   shlibpath_var=LD_LIBRARY_PATH
11692   shlibpath_overrides_runpath=yes
11693   hardcode_into_libs=yes
11694   # ldd complains unless libraries are executable
11695   postinstall_cmds='chmod +x $lib'
11696   ;;
11697
11698 sunos4*)
11699   version_type=sunos
11700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11701   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11702   shlibpath_var=LD_LIBRARY_PATH
11703   shlibpath_overrides_runpath=yes
11704   if test "$with_gnu_ld" = yes; then
11705     need_lib_prefix=no
11706   fi
11707   need_version=yes
11708   ;;
11709
11710 sysv4 | sysv4.3*)
11711   version_type=linux
11712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11713   soname_spec='${libname}${release}${shared_ext}$major'
11714   shlibpath_var=LD_LIBRARY_PATH
11715   case $host_vendor in
11716     sni)
11717       shlibpath_overrides_runpath=no
11718       need_lib_prefix=no
11719       runpath_var=LD_RUN_PATH
11720       ;;
11721     siemens)
11722       need_lib_prefix=no
11723       ;;
11724     motorola)
11725       need_lib_prefix=no
11726       need_version=no
11727       shlibpath_overrides_runpath=no
11728       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11729       ;;
11730   esac
11731   ;;
11732
11733 sysv4*MP*)
11734   if test -d /usr/nec ;then
11735     version_type=linux
11736     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11737     soname_spec='$libname${shared_ext}.$major'
11738     shlibpath_var=LD_LIBRARY_PATH
11739   fi
11740   ;;
11741
11742 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11743   version_type=freebsd-elf
11744   need_lib_prefix=no
11745   need_version=no
11746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11747   soname_spec='${libname}${release}${shared_ext}$major'
11748   shlibpath_var=LD_LIBRARY_PATH
11749   shlibpath_overrides_runpath=yes
11750   hardcode_into_libs=yes
11751   if test "$with_gnu_ld" = yes; then
11752     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11753   else
11754     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11755     case $host_os in
11756       sco3.2v5*)
11757         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11758         ;;
11759     esac
11760   fi
11761   sys_lib_dlsearch_path_spec='/usr/lib'
11762   ;;
11763
11764 tpf*)
11765   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11766   version_type=linux
11767   need_lib_prefix=no
11768   need_version=no
11769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11770   shlibpath_var=LD_LIBRARY_PATH
11771   shlibpath_overrides_runpath=no
11772   hardcode_into_libs=yes
11773   ;;
11774
11775 uts4*)
11776   version_type=linux
11777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11778   soname_spec='${libname}${release}${shared_ext}$major'
11779   shlibpath_var=LD_LIBRARY_PATH
11780   ;;
11781
11782 *)
11783   dynamic_linker=no
11784   ;;
11785 esac
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11787 $as_echo "$dynamic_linker" >&6; }
11788 test "$dynamic_linker" = no && can_build_shared=no
11789
11790 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11791 if test "$GCC" = yes; then
11792   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11793 fi
11794
11795 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11796   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11797 fi
11798 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11799   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11800 fi
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11889 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11890 hardcode_action=
11891 if test -n "$hardcode_libdir_flag_spec" ||
11892    test -n "$runpath_var" ||
11893    test "X$hardcode_automatic" = "Xyes" ; then
11894
11895   # We can hardcode non-existent directories.
11896   if test "$hardcode_direct" != no &&
11897      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11898      # have to relink, otherwise we might link with an installed library
11899      # when we should be linking with a yet-to-be-installed one
11900      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11901      test "$hardcode_minus_L" != no; then
11902     # Linking always hardcodes the temporary library directory.
11903     hardcode_action=relink
11904   else
11905     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11906     hardcode_action=immediate
11907   fi
11908 else
11909   # We cannot hardcode anything, or else we can only hardcode existing
11910   # directories.
11911   hardcode_action=unsupported
11912 fi
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11914 $as_echo "$hardcode_action" >&6; }
11915
11916 if test "$hardcode_action" = relink ||
11917    test "$inherit_rpath" = yes; then
11918   # Fast installation is not supported
11919   enable_fast_install=no
11920 elif test "$shlibpath_overrides_runpath" = yes ||
11921      test "$enable_shared" = no; then
11922   # Fast installation is not necessary
11923   enable_fast_install=needless
11924 fi
11925
11926
11927
11928
11929
11930
11931   if test "x$enable_dlopen" != xyes; then
11932   enable_dlopen=unknown
11933   enable_dlopen_self=unknown
11934   enable_dlopen_self_static=unknown
11935 else
11936   lt_cv_dlopen=no
11937   lt_cv_dlopen_libs=
11938
11939   case $host_os in
11940   beos*)
11941     lt_cv_dlopen="load_add_on"
11942     lt_cv_dlopen_libs=
11943     lt_cv_dlopen_self=yes
11944     ;;
11945
11946   mingw* | pw32* | cegcc*)
11947     lt_cv_dlopen="LoadLibrary"
11948     lt_cv_dlopen_libs=
11949     ;;
11950
11951   cygwin*)
11952     lt_cv_dlopen="dlopen"
11953     lt_cv_dlopen_libs=
11954     ;;
11955
11956   darwin*)
11957   # if libdl is installed we need to link against it
11958     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11959 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11960 if ${ac_cv_lib_dl_dlopen+:} false; then :
11961   $as_echo_n "(cached) " >&6
11962 else
11963   ac_check_lib_save_LIBS=$LIBS
11964 LIBS="-ldl  $LIBS"
11965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11966 /* end confdefs.h.  */
11967
11968 /* Override any GCC internal prototype to avoid an error.
11969    Use char because int might match the return type of a GCC
11970    builtin and then its argument prototype would still apply.  */
11971 #ifdef __cplusplus
11972 extern "C"
11973 #endif
11974 char dlopen ();
11975 int
11976 main ()
11977 {
11978 return dlopen ();
11979   ;
11980   return 0;
11981 }
11982 _ACEOF
11983 if ac_fn_c_try_link "$LINENO"; then :
11984   ac_cv_lib_dl_dlopen=yes
11985 else
11986   ac_cv_lib_dl_dlopen=no
11987 fi
11988 rm -f core conftest.err conftest.$ac_objext \
11989     conftest$ac_exeext conftest.$ac_ext
11990 LIBS=$ac_check_lib_save_LIBS
11991 fi
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11993 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11994 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11995   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11996 else
11997
11998     lt_cv_dlopen="dyld"
11999     lt_cv_dlopen_libs=
12000     lt_cv_dlopen_self=yes
12001
12002 fi
12003
12004     ;;
12005
12006   *)
12007     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12008 if test "x$ac_cv_func_shl_load" = xyes; then :
12009   lt_cv_dlopen="shl_load"
12010 else
12011   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12012 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12013 if ${ac_cv_lib_dld_shl_load+:} false; then :
12014   $as_echo_n "(cached) " >&6
12015 else
12016   ac_check_lib_save_LIBS=$LIBS
12017 LIBS="-ldld  $LIBS"
12018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12019 /* end confdefs.h.  */
12020
12021 /* Override any GCC internal prototype to avoid an error.
12022    Use char because int might match the return type of a GCC
12023    builtin and then its argument prototype would still apply.  */
12024 #ifdef __cplusplus
12025 extern "C"
12026 #endif
12027 char shl_load ();
12028 int
12029 main ()
12030 {
12031 return shl_load ();
12032   ;
12033   return 0;
12034 }
12035 _ACEOF
12036 if ac_fn_c_try_link "$LINENO"; then :
12037   ac_cv_lib_dld_shl_load=yes
12038 else
12039   ac_cv_lib_dld_shl_load=no
12040 fi
12041 rm -f core conftest.err conftest.$ac_objext \
12042     conftest$ac_exeext conftest.$ac_ext
12043 LIBS=$ac_check_lib_save_LIBS
12044 fi
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12046 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12047 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12048   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12049 else
12050   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12051 if test "x$ac_cv_func_dlopen" = xyes; then :
12052   lt_cv_dlopen="dlopen"
12053 else
12054   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12055 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12056 if ${ac_cv_lib_dl_dlopen+:} false; then :
12057   $as_echo_n "(cached) " >&6
12058 else
12059   ac_check_lib_save_LIBS=$LIBS
12060 LIBS="-ldl  $LIBS"
12061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12062 /* end confdefs.h.  */
12063
12064 /* Override any GCC internal prototype to avoid an error.
12065    Use char because int might match the return type of a GCC
12066    builtin and then its argument prototype would still apply.  */
12067 #ifdef __cplusplus
12068 extern "C"
12069 #endif
12070 char dlopen ();
12071 int
12072 main ()
12073 {
12074 return dlopen ();
12075   ;
12076   return 0;
12077 }
12078 _ACEOF
12079 if ac_fn_c_try_link "$LINENO"; then :
12080   ac_cv_lib_dl_dlopen=yes
12081 else
12082   ac_cv_lib_dl_dlopen=no
12083 fi
12084 rm -f core conftest.err conftest.$ac_objext \
12085     conftest$ac_exeext conftest.$ac_ext
12086 LIBS=$ac_check_lib_save_LIBS
12087 fi
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12089 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12090 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12091   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12092 else
12093   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12094 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12095 if ${ac_cv_lib_svld_dlopen+:} false; then :
12096   $as_echo_n "(cached) " >&6
12097 else
12098   ac_check_lib_save_LIBS=$LIBS
12099 LIBS="-lsvld  $LIBS"
12100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12101 /* end confdefs.h.  */
12102
12103 /* Override any GCC internal prototype to avoid an error.
12104    Use char because int might match the return type of a GCC
12105    builtin and then its argument prototype would still apply.  */
12106 #ifdef __cplusplus
12107 extern "C"
12108 #endif
12109 char dlopen ();
12110 int
12111 main ()
12112 {
12113 return dlopen ();
12114   ;
12115   return 0;
12116 }
12117 _ACEOF
12118 if ac_fn_c_try_link "$LINENO"; then :
12119   ac_cv_lib_svld_dlopen=yes
12120 else
12121   ac_cv_lib_svld_dlopen=no
12122 fi
12123 rm -f core conftest.err conftest.$ac_objext \
12124     conftest$ac_exeext conftest.$ac_ext
12125 LIBS=$ac_check_lib_save_LIBS
12126 fi
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12128 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12129 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12130   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12131 else
12132   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12133 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12134 if ${ac_cv_lib_dld_dld_link+:} false; then :
12135   $as_echo_n "(cached) " >&6
12136 else
12137   ac_check_lib_save_LIBS=$LIBS
12138 LIBS="-ldld  $LIBS"
12139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12140 /* end confdefs.h.  */
12141
12142 /* Override any GCC internal prototype to avoid an error.
12143    Use char because int might match the return type of a GCC
12144    builtin and then its argument prototype would still apply.  */
12145 #ifdef __cplusplus
12146 extern "C"
12147 #endif
12148 char dld_link ();
12149 int
12150 main ()
12151 {
12152 return dld_link ();
12153   ;
12154   return 0;
12155 }
12156 _ACEOF
12157 if ac_fn_c_try_link "$LINENO"; then :
12158   ac_cv_lib_dld_dld_link=yes
12159 else
12160   ac_cv_lib_dld_dld_link=no
12161 fi
12162 rm -f core conftest.err conftest.$ac_objext \
12163     conftest$ac_exeext conftest.$ac_ext
12164 LIBS=$ac_check_lib_save_LIBS
12165 fi
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12167 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12168 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12169   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12170 fi
12171
12172
12173 fi
12174
12175
12176 fi
12177
12178
12179 fi
12180
12181
12182 fi
12183
12184
12185 fi
12186
12187     ;;
12188   esac
12189
12190   if test "x$lt_cv_dlopen" != xno; then
12191     enable_dlopen=yes
12192   else
12193     enable_dlopen=no
12194   fi
12195
12196   case $lt_cv_dlopen in
12197   dlopen)
12198     save_CPPFLAGS="$CPPFLAGS"
12199     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12200
12201     save_LDFLAGS="$LDFLAGS"
12202     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12203
12204     save_LIBS="$LIBS"
12205     LIBS="$lt_cv_dlopen_libs $LIBS"
12206
12207     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12208 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12209 if ${lt_cv_dlopen_self+:} false; then :
12210   $as_echo_n "(cached) " >&6
12211 else
12212           if test "$cross_compiling" = yes; then :
12213   lt_cv_dlopen_self=cross
12214 else
12215   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12216   lt_status=$lt_dlunknown
12217   cat > conftest.$ac_ext <<_LT_EOF
12218 #line 12218 "configure"
12219 #include "confdefs.h"
12220
12221 #if HAVE_DLFCN_H
12222 #include <dlfcn.h>
12223 #endif
12224
12225 #include <stdio.h>
12226
12227 #ifdef RTLD_GLOBAL
12228 #  define LT_DLGLOBAL           RTLD_GLOBAL
12229 #else
12230 #  ifdef DL_GLOBAL
12231 #    define LT_DLGLOBAL         DL_GLOBAL
12232 #  else
12233 #    define LT_DLGLOBAL         0
12234 #  endif
12235 #endif
12236
12237 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12238    find out it does not work in some platform. */
12239 #ifndef LT_DLLAZY_OR_NOW
12240 #  ifdef RTLD_LAZY
12241 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12242 #  else
12243 #    ifdef DL_LAZY
12244 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12245 #    else
12246 #      ifdef RTLD_NOW
12247 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12248 #      else
12249 #        ifdef DL_NOW
12250 #          define LT_DLLAZY_OR_NOW      DL_NOW
12251 #        else
12252 #          define LT_DLLAZY_OR_NOW      0
12253 #        endif
12254 #      endif
12255 #    endif
12256 #  endif
12257 #endif
12258
12259 void fnord() { int i=42;}
12260 int main ()
12261 {
12262   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12263   int status = $lt_dlunknown;
12264
12265   if (self)
12266     {
12267       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12268       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12269       /* dlclose (self); */
12270     }
12271   else
12272     puts (dlerror ());
12273
12274   return status;
12275 }
12276 _LT_EOF
12277   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12278   (eval $ac_link) 2>&5
12279   ac_status=$?
12280   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12281   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12282     (./conftest; exit; ) >&5 2>/dev/null
12283     lt_status=$?
12284     case x$lt_status in
12285       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12286       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12287       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12288     esac
12289   else :
12290     # compilation failed
12291     lt_cv_dlopen_self=no
12292   fi
12293 fi
12294 rm -fr conftest*
12295
12296
12297 fi
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12299 $as_echo "$lt_cv_dlopen_self" >&6; }
12300
12301     if test "x$lt_cv_dlopen_self" = xyes; then
12302       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12303       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12304 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12305 if ${lt_cv_dlopen_self_static+:} false; then :
12306   $as_echo_n "(cached) " >&6
12307 else
12308           if test "$cross_compiling" = yes; then :
12309   lt_cv_dlopen_self_static=cross
12310 else
12311   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12312   lt_status=$lt_dlunknown
12313   cat > conftest.$ac_ext <<_LT_EOF
12314 #line 12314 "configure"
12315 #include "confdefs.h"
12316
12317 #if HAVE_DLFCN_H
12318 #include <dlfcn.h>
12319 #endif
12320
12321 #include <stdio.h>
12322
12323 #ifdef RTLD_GLOBAL
12324 #  define LT_DLGLOBAL           RTLD_GLOBAL
12325 #else
12326 #  ifdef DL_GLOBAL
12327 #    define LT_DLGLOBAL         DL_GLOBAL
12328 #  else
12329 #    define LT_DLGLOBAL         0
12330 #  endif
12331 #endif
12332
12333 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12334    find out it does not work in some platform. */
12335 #ifndef LT_DLLAZY_OR_NOW
12336 #  ifdef RTLD_LAZY
12337 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12338 #  else
12339 #    ifdef DL_LAZY
12340 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12341 #    else
12342 #      ifdef RTLD_NOW
12343 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12344 #      else
12345 #        ifdef DL_NOW
12346 #          define LT_DLLAZY_OR_NOW      DL_NOW
12347 #        else
12348 #          define LT_DLLAZY_OR_NOW      0
12349 #        endif
12350 #      endif
12351 #    endif
12352 #  endif
12353 #endif
12354
12355 void fnord() { int i=42;}
12356 int main ()
12357 {
12358   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12359   int status = $lt_dlunknown;
12360
12361   if (self)
12362     {
12363       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12364       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12365       /* dlclose (self); */
12366     }
12367   else
12368     puts (dlerror ());
12369
12370   return status;
12371 }
12372 _LT_EOF
12373   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12374   (eval $ac_link) 2>&5
12375   ac_status=$?
12376   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12377   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12378     (./conftest; exit; ) >&5 2>/dev/null
12379     lt_status=$?
12380     case x$lt_status in
12381       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12382       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12383       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12384     esac
12385   else :
12386     # compilation failed
12387     lt_cv_dlopen_self_static=no
12388   fi
12389 fi
12390 rm -fr conftest*
12391
12392
12393 fi
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12395 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12396     fi
12397
12398     CPPFLAGS="$save_CPPFLAGS"
12399     LDFLAGS="$save_LDFLAGS"
12400     LIBS="$save_LIBS"
12401     ;;
12402   esac
12403
12404   case $lt_cv_dlopen_self in
12405   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12406   *) enable_dlopen_self=unknown ;;
12407   esac
12408
12409   case $lt_cv_dlopen_self_static in
12410   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12411   *) enable_dlopen_self_static=unknown ;;
12412   esac
12413 fi
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431 striplib=
12432 old_striplib=
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12434 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12435 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12436   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12437   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12439 $as_echo "yes" >&6; }
12440 else
12441 # FIXME - insert some real tests, host_os isn't really good enough
12442   case $host_os in
12443   darwin*)
12444     if test -n "$STRIP" ; then
12445       striplib="$STRIP -x"
12446       old_striplib="$STRIP -S"
12447       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12448 $as_echo "yes" >&6; }
12449     else
12450       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12451 $as_echo "no" >&6; }
12452     fi
12453     ;;
12454   *)
12455     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12456 $as_echo "no" >&6; }
12457     ;;
12458   esac
12459 fi
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472   # Report which library types will actually be built
12473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12474 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12476 $as_echo "$can_build_shared" >&6; }
12477
12478   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12479 $as_echo_n "checking whether to build shared libraries... " >&6; }
12480   test "$can_build_shared" = "no" && enable_shared=no
12481
12482   # On AIX, shared libraries and static libraries use the same namespace, and
12483   # are all built from PIC.
12484   case $host_os in
12485   aix3*)
12486     test "$enable_shared" = yes && enable_static=no
12487     if test -n "$RANLIB"; then
12488       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12489       postinstall_cmds='$RANLIB $lib'
12490     fi
12491     ;;
12492
12493   aix[4-9]*)
12494     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12495       test "$enable_shared" = yes && enable_static=no
12496     fi
12497     ;;
12498   esac
12499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12500 $as_echo "$enable_shared" >&6; }
12501
12502   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12503 $as_echo_n "checking whether to build static libraries... " >&6; }
12504   # Make sure either enable_shared or enable_static is yes.
12505   test "$enable_shared" = yes || enable_static=yes
12506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12507 $as_echo "$enable_static" >&6; }
12508
12509
12510
12511
12512 fi
12513 ac_ext=c
12514 ac_cpp='$CPP $CPPFLAGS'
12515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12518
12519 CC="$lt_save_CC"
12520
12521
12522 ac_ext=cpp
12523 ac_cpp='$CXXCPP $CPPFLAGS'
12524 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12525 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12526 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12527
12528 archive_cmds_need_lc_CXX=no
12529 allow_undefined_flag_CXX=
12530 always_export_symbols_CXX=no
12531 archive_expsym_cmds_CXX=
12532 compiler_needs_object_CXX=no
12533 export_dynamic_flag_spec_CXX=
12534 hardcode_direct_CXX=no
12535 hardcode_direct_absolute_CXX=no
12536 hardcode_libdir_flag_spec_CXX=
12537 hardcode_libdir_flag_spec_ld_CXX=
12538 hardcode_libdir_separator_CXX=
12539 hardcode_minus_L_CXX=no
12540 hardcode_shlibpath_var_CXX=unsupported
12541 hardcode_automatic_CXX=no
12542 inherit_rpath_CXX=no
12543 module_cmds_CXX=
12544 module_expsym_cmds_CXX=
12545 link_all_deplibs_CXX=unknown
12546 old_archive_cmds_CXX=$old_archive_cmds
12547 no_undefined_flag_CXX=
12548 whole_archive_flag_spec_CXX=
12549 enable_shared_with_static_runtimes_CXX=no
12550
12551 # Source file extension for C++ test sources.
12552 ac_ext=cpp
12553
12554 # Object file extension for compiled C++ test sources.
12555 objext=o
12556 objext_CXX=$objext
12557
12558 # No sense in running all these tests if we already determined that
12559 # the CXX compiler isn't working.  Some variables (like enable_shared)
12560 # are currently assumed to apply to all compilers on this platform,
12561 # and will be corrupted by setting them based on a non-working compiler.
12562 if test "$_lt_caught_CXX_error" != yes; then
12563   # Code to be used in simple compile tests
12564   lt_simple_compile_test_code="int some_variable = 0;"
12565
12566   # Code to be used in simple link tests
12567   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12568
12569   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12570
12571
12572
12573
12574
12575
12576 # If no C compiler was specified, use CC.
12577 LTCC=${LTCC-"$CC"}
12578
12579 # If no C compiler flags were specified, use CFLAGS.
12580 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12581
12582 # Allow CC to be a program name with arguments.
12583 compiler=$CC
12584
12585
12586   # save warnings/boilerplate of simple test code
12587   ac_outfile=conftest.$ac_objext
12588 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12589 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12590 _lt_compiler_boilerplate=`cat conftest.err`
12591 $RM conftest*
12592
12593   ac_outfile=conftest.$ac_objext
12594 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12595 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12596 _lt_linker_boilerplate=`cat conftest.err`
12597 $RM -r conftest*
12598
12599
12600   # Allow CC to be a program name with arguments.
12601   lt_save_CC=$CC
12602   lt_save_LD=$LD
12603   lt_save_GCC=$GCC
12604   GCC=$GXX
12605   lt_save_with_gnu_ld=$with_gnu_ld
12606   lt_save_path_LD=$lt_cv_path_LD
12607   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12608     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12609   else
12610     $as_unset lt_cv_prog_gnu_ld
12611   fi
12612   if test -n "${lt_cv_path_LDCXX+set}"; then
12613     lt_cv_path_LD=$lt_cv_path_LDCXX
12614   else
12615     $as_unset lt_cv_path_LD
12616   fi
12617   test -z "${LDCXX+set}" || LD=$LDCXX
12618   CC=${CXX-"c++"}
12619   compiler=$CC
12620   compiler_CXX=$CC
12621   for cc_temp in $compiler""; do
12622   case $cc_temp in
12623     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12624     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12625     \-*) ;;
12626     *) break;;
12627   esac
12628 done
12629 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12630
12631
12632   if test -n "$compiler"; then
12633     # We don't want -fno-exception when compiling C++ code, so set the
12634     # no_builtin_flag separately
12635     if test "$GXX" = yes; then
12636       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12637     else
12638       lt_prog_compiler_no_builtin_flag_CXX=
12639     fi
12640
12641     if test "$GXX" = yes; then
12642       # Set up default GNU C++ configuration
12643
12644
12645
12646 # Check whether --with-gnu-ld was given.
12647 if test "${with_gnu_ld+set}" = set; then :
12648   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12649 else
12650   with_gnu_ld=no
12651 fi
12652
12653 ac_prog=ld
12654 if test "$GCC" = yes; then
12655   # Check if gcc -print-prog-name=ld gives a path.
12656   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12657 $as_echo_n "checking for ld used by $CC... " >&6; }
12658   case $host in
12659   *-*-mingw*)
12660     # gcc leaves a trailing carriage return which upsets mingw
12661     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12662   *)
12663     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12664   esac
12665   case $ac_prog in
12666     # Accept absolute paths.
12667     [\\/]* | ?:[\\/]*)
12668       re_direlt='/[^/][^/]*/\.\./'
12669       # Canonicalize the pathname of ld
12670       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12671       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12672         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12673       done
12674       test -z "$LD" && LD="$ac_prog"
12675       ;;
12676   "")
12677     # If it fails, then pretend we aren't using GCC.
12678     ac_prog=ld
12679     ;;
12680   *)
12681     # If it is relative, then search for the first ld in PATH.
12682     with_gnu_ld=unknown
12683     ;;
12684   esac
12685 elif test "$with_gnu_ld" = yes; then
12686   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12687 $as_echo_n "checking for GNU ld... " >&6; }
12688 else
12689   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12690 $as_echo_n "checking for non-GNU ld... " >&6; }
12691 fi
12692 if ${lt_cv_path_LD+:} false; then :
12693   $as_echo_n "(cached) " >&6
12694 else
12695   if test -z "$LD"; then
12696   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12697   for ac_dir in $PATH; do
12698     IFS="$lt_save_ifs"
12699     test -z "$ac_dir" && ac_dir=.
12700     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12701       lt_cv_path_LD="$ac_dir/$ac_prog"
12702       # Check to see if the program is GNU ld.  I'd rather use --version,
12703       # but apparently some variants of GNU ld only accept -v.
12704       # Break only if it was the GNU/non-GNU ld that we prefer.
12705       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12706       *GNU* | *'with BFD'*)
12707         test "$with_gnu_ld" != no && break
12708         ;;
12709       *)
12710         test "$with_gnu_ld" != yes && break
12711         ;;
12712       esac
12713     fi
12714   done
12715   IFS="$lt_save_ifs"
12716 else
12717   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12718 fi
12719 fi
12720
12721 LD="$lt_cv_path_LD"
12722 if test -n "$LD"; then
12723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12724 $as_echo "$LD" >&6; }
12725 else
12726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12727 $as_echo "no" >&6; }
12728 fi
12729 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12731 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12732 if ${lt_cv_prog_gnu_ld+:} false; then :
12733   $as_echo_n "(cached) " >&6
12734 else
12735   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12736 case `$LD -v 2>&1 </dev/null` in
12737 *GNU* | *'with BFD'*)
12738   lt_cv_prog_gnu_ld=yes
12739   ;;
12740 *)
12741   lt_cv_prog_gnu_ld=no
12742   ;;
12743 esac
12744 fi
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12746 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12747 with_gnu_ld=$lt_cv_prog_gnu_ld
12748
12749
12750
12751
12752
12753
12754
12755       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12756       # archiving commands below assume that GNU ld is being used.
12757       if test "$with_gnu_ld" = yes; then
12758         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12759         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12760
12761         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12762         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12763
12764         # If archive_cmds runs LD, not CC, wlarc should be empty
12765         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12766         #     investigate it a little bit more. (MM)
12767         wlarc='${wl}'
12768
12769         # ancient GNU ld didn't support --whole-archive et. al.
12770         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12771           $GREP 'no-whole-archive' > /dev/null; then
12772           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12773         else
12774           whole_archive_flag_spec_CXX=
12775         fi
12776       else
12777         with_gnu_ld=no
12778         wlarc=
12779
12780         # A generic and very simple default shared library creation
12781         # command for GNU C++ for the case where it uses the native
12782         # linker, instead of GNU ld.  If possible, this setting should
12783         # overridden to take advantage of the native linker features on
12784         # the platform it is being used on.
12785         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12786       fi
12787
12788       # Commands to make compiler produce verbose output that lists
12789       # what "hidden" libraries, object files and flags are used when
12790       # linking a shared library.
12791       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12792
12793     else
12794       GXX=no
12795       with_gnu_ld=no
12796       wlarc=
12797     fi
12798
12799     # PORTME: fill in a description of your system's C++ link characteristics
12800     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12801 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12802     ld_shlibs_CXX=yes
12803     case $host_os in
12804       aix3*)
12805         # FIXME: insert proper C++ library support
12806         ld_shlibs_CXX=no
12807         ;;
12808       aix[4-9]*)
12809         if test "$host_cpu" = ia64; then
12810           # On IA64, the linker does run time linking by default, so we don't
12811           # have to do anything special.
12812           aix_use_runtimelinking=no
12813           exp_sym_flag='-Bexport'
12814           no_entry_flag=""
12815         else
12816           aix_use_runtimelinking=no
12817
12818           # Test if we are trying to use run time linking or normal
12819           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12820           # need to do runtime linking.
12821           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12822             for ld_flag in $LDFLAGS; do
12823               case $ld_flag in
12824               *-brtl*)
12825                 aix_use_runtimelinking=yes
12826                 break
12827                 ;;
12828               esac
12829             done
12830             ;;
12831           esac
12832
12833           exp_sym_flag='-bexport'
12834           no_entry_flag='-bnoentry'
12835         fi
12836
12837         # When large executables or shared objects are built, AIX ld can
12838         # have problems creating the table of contents.  If linking a library
12839         # or program results in "error TOC overflow" add -mminimal-toc to
12840         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12841         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12842
12843         archive_cmds_CXX=''
12844         hardcode_direct_CXX=yes
12845         hardcode_direct_absolute_CXX=yes
12846         hardcode_libdir_separator_CXX=':'
12847         link_all_deplibs_CXX=yes
12848         file_list_spec_CXX='${wl}-f,'
12849
12850         if test "$GXX" = yes; then
12851           case $host_os in aix4.[012]|aix4.[012].*)
12852           # We only want to do this on AIX 4.2 and lower, the check
12853           # below for broken collect2 doesn't work under 4.3+
12854           collect2name=`${CC} -print-prog-name=collect2`
12855           if test -f "$collect2name" &&
12856              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12857           then
12858             # We have reworked collect2
12859             :
12860           else
12861             # We have old collect2
12862             hardcode_direct_CXX=unsupported
12863             # It fails to find uninstalled libraries when the uninstalled
12864             # path is not listed in the libpath.  Setting hardcode_minus_L
12865             # to unsupported forces relinking
12866             hardcode_minus_L_CXX=yes
12867             hardcode_libdir_flag_spec_CXX='-L$libdir'
12868             hardcode_libdir_separator_CXX=
12869           fi
12870           esac
12871           shared_flag='-shared'
12872           if test "$aix_use_runtimelinking" = yes; then
12873             shared_flag="$shared_flag "'${wl}-G'
12874           fi
12875         else
12876           # not using gcc
12877           if test "$host_cpu" = ia64; then
12878           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12879           # chokes on -Wl,-G. The following line is correct:
12880           shared_flag='-G'
12881           else
12882             if test "$aix_use_runtimelinking" = yes; then
12883               shared_flag='${wl}-G'
12884             else
12885               shared_flag='${wl}-bM:SRE'
12886             fi
12887           fi
12888         fi
12889
12890         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12891         # It seems that -bexpall does not export symbols beginning with
12892         # underscore (_), so it is better to generate a list of symbols to
12893         # export.
12894         always_export_symbols_CXX=yes
12895         if test "$aix_use_runtimelinking" = yes; then
12896           # Warning - without using the other runtime loading flags (-brtl),
12897           # -berok will link without error, but may produce a broken library.
12898           allow_undefined_flag_CXX='-berok'
12899           # Determine the default libpath from the value encoded in an empty
12900           # executable.
12901           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12902 /* end confdefs.h.  */
12903
12904 int
12905 main ()
12906 {
12907
12908   ;
12909   return 0;
12910 }
12911 _ACEOF
12912 if ac_fn_cxx_try_link "$LINENO"; then :
12913
12914 lt_aix_libpath_sed='
12915     /Import File Strings/,/^$/ {
12916         /^0/ {
12917             s/^0  *\(.*\)$/\1/
12918             p
12919         }
12920     }'
12921 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12922 # Check for a 64-bit object if we didn't find anything.
12923 if test -z "$aix_libpath"; then
12924   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12925 fi
12926 fi
12927 rm -f core conftest.err conftest.$ac_objext \
12928     conftest$ac_exeext conftest.$ac_ext
12929 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12930
12931           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12932
12933           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12934         else
12935           if test "$host_cpu" = ia64; then
12936             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12937             allow_undefined_flag_CXX="-z nodefs"
12938             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12939           else
12940             # Determine the default libpath from the value encoded in an
12941             # empty executable.
12942             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12943 /* end confdefs.h.  */
12944
12945 int
12946 main ()
12947 {
12948
12949   ;
12950   return 0;
12951 }
12952 _ACEOF
12953 if ac_fn_cxx_try_link "$LINENO"; then :
12954
12955 lt_aix_libpath_sed='
12956     /Import File Strings/,/^$/ {
12957         /^0/ {
12958             s/^0  *\(.*\)$/\1/
12959             p
12960         }
12961     }'
12962 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12963 # Check for a 64-bit object if we didn't find anything.
12964 if test -z "$aix_libpath"; then
12965   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12966 fi
12967 fi
12968 rm -f core conftest.err conftest.$ac_objext \
12969     conftest$ac_exeext conftest.$ac_ext
12970 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12971
12972             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12973             # Warning - without using the other run time loading flags,
12974             # -berok will link without error, but may produce a broken library.
12975             no_undefined_flag_CXX=' ${wl}-bernotok'
12976             allow_undefined_flag_CXX=' ${wl}-berok'
12977             # Exported symbols can be pulled into shared objects from archives
12978             whole_archive_flag_spec_CXX='$convenience'
12979             archive_cmds_need_lc_CXX=yes
12980             # This is similar to how AIX traditionally builds its shared
12981             # libraries.
12982             archive_expsym_cmds_CXX="\$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'
12983           fi
12984         fi
12985         ;;
12986
12987       beos*)
12988         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12989           allow_undefined_flag_CXX=unsupported
12990           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12991           # support --undefined.  This deserves some investigation.  FIXME
12992           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12993         else
12994           ld_shlibs_CXX=no
12995         fi
12996         ;;
12997
12998       chorus*)
12999         case $cc_basename in
13000           *)
13001           # FIXME: insert proper C++ library support
13002           ld_shlibs_CXX=no
13003           ;;
13004         esac
13005         ;;
13006
13007       cygwin* | mingw* | pw32* | cegcc*)
13008         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13009         # as there is no search path for DLLs.
13010         hardcode_libdir_flag_spec_CXX='-L$libdir'
13011         allow_undefined_flag_CXX=unsupported
13012         always_export_symbols_CXX=no
13013         enable_shared_with_static_runtimes_CXX=yes
13014
13015         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13016           archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13017           # If the export-symbols file already is a .def file (1st line
13018           # is EXPORTS), use it as is; otherwise, prepend...
13019           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13020             cp $export_symbols $output_objdir/$soname.def;
13021           else
13022             echo EXPORTS > $output_objdir/$soname.def;
13023             cat $export_symbols >> $output_objdir/$soname.def;
13024           fi~
13025           $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13026         else
13027           ld_shlibs_CXX=no
13028         fi
13029         ;;
13030       darwin* | rhapsody*)
13031
13032
13033   archive_cmds_need_lc_CXX=no
13034   hardcode_direct_CXX=no
13035   hardcode_automatic_CXX=yes
13036   hardcode_shlibpath_var_CXX=unsupported
13037   whole_archive_flag_spec_CXX=''
13038   link_all_deplibs_CXX=yes
13039   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13040   case $cc_basename in
13041      ifort*) _lt_dar_can_shared=yes ;;
13042      *) _lt_dar_can_shared=$GCC ;;
13043   esac
13044   if test "$_lt_dar_can_shared" = "yes"; then
13045     output_verbose_link_cmd=echo
13046     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13047     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13048     archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13049     module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13050        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13051       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13052       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13053     fi
13054
13055   else
13056   ld_shlibs_CXX=no
13057   fi
13058
13059         ;;
13060
13061       dgux*)
13062         case $cc_basename in
13063           ec++*)
13064             # FIXME: insert proper C++ library support
13065             ld_shlibs_CXX=no
13066             ;;
13067           ghcx*)
13068             # Green Hills C++ Compiler
13069             # FIXME: insert proper C++ library support
13070             ld_shlibs_CXX=no
13071             ;;
13072           *)
13073             # FIXME: insert proper C++ library support
13074             ld_shlibs_CXX=no
13075             ;;
13076         esac
13077         ;;
13078
13079       freebsd[12]*)
13080         # C++ shared libraries reported to be fairly broken before
13081         # switch to ELF
13082         ld_shlibs_CXX=no
13083         ;;
13084
13085       freebsd-elf*)
13086         archive_cmds_need_lc_CXX=no
13087         ;;
13088
13089       freebsd* | dragonfly*)
13090         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13091         # conventions
13092         ld_shlibs_CXX=yes
13093         ;;
13094
13095       gnu*)
13096         ;;
13097
13098       hpux9*)
13099         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13100         hardcode_libdir_separator_CXX=:
13101         export_dynamic_flag_spec_CXX='${wl}-E'
13102         hardcode_direct_CXX=yes
13103         hardcode_minus_L_CXX=yes # Not in the search PATH,
13104                                              # but as the default
13105                                              # location of the library.
13106
13107         case $cc_basename in
13108           CC*)
13109             # FIXME: insert proper C++ library support
13110             ld_shlibs_CXX=no
13111             ;;
13112           aCC*)
13113             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13114             # Commands to make compiler produce verbose output that lists
13115             # what "hidden" libraries, object files and flags are used when
13116             # linking a shared library.
13117             #
13118             # There doesn't appear to be a way to prevent this compiler from
13119             # explicitly linking system object files so we need to strip them
13120             # from the output so that they don't get included in the library
13121             # dependencies.
13122             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13123             ;;
13124           *)
13125             if test "$GXX" = yes; then
13126               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13127             else
13128               # FIXME: insert proper C++ library support
13129               ld_shlibs_CXX=no
13130             fi
13131             ;;
13132         esac
13133         ;;
13134
13135       hpux10*|hpux11*)
13136         if test $with_gnu_ld = no; then
13137           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13138           hardcode_libdir_separator_CXX=:
13139
13140           case $host_cpu in
13141             hppa*64*|ia64*)
13142               ;;
13143             *)
13144               export_dynamic_flag_spec_CXX='${wl}-E'
13145               ;;
13146           esac
13147         fi
13148         case $host_cpu in
13149           hppa*64*|ia64*)
13150             hardcode_direct_CXX=no
13151             hardcode_shlibpath_var_CXX=no
13152             ;;
13153           *)
13154             hardcode_direct_CXX=yes
13155             hardcode_direct_absolute_CXX=yes
13156             hardcode_minus_L_CXX=yes # Not in the search PATH,
13157                                                  # but as the default
13158                                                  # location of the library.
13159             ;;
13160         esac
13161
13162         case $cc_basename in
13163           CC*)
13164             # FIXME: insert proper C++ library support
13165             ld_shlibs_CXX=no
13166             ;;
13167           aCC*)
13168             case $host_cpu in
13169               hppa*64*)
13170                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13171                 ;;
13172               ia64*)
13173                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13174                 ;;
13175               *)
13176                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13177                 ;;
13178             esac
13179             # Commands to make compiler produce verbose output that lists
13180             # what "hidden" libraries, object files and flags are used when
13181             # linking a shared library.
13182             #
13183             # There doesn't appear to be a way to prevent this compiler from
13184             # explicitly linking system object files so we need to strip them
13185             # from the output so that they don't get included in the library
13186             # dependencies.
13187             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13188             ;;
13189           *)
13190             if test "$GXX" = yes; then
13191               if test $with_gnu_ld = no; then
13192                 case $host_cpu in
13193                   hppa*64*)
13194                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13195                     ;;
13196                   ia64*)
13197                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13198                     ;;
13199                   *)
13200                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13201                     ;;
13202                 esac
13203               fi
13204             else
13205               # FIXME: insert proper C++ library support
13206               ld_shlibs_CXX=no
13207             fi
13208             ;;
13209         esac
13210         ;;
13211
13212       interix[3-9]*)
13213         hardcode_direct_CXX=no
13214         hardcode_shlibpath_var_CXX=no
13215         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13216         export_dynamic_flag_spec_CXX='${wl}-E'
13217         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13218         # Instead, shared libraries are loaded at an image base (0x10000000 by
13219         # default) and relocated if they conflict, which is a slow very memory
13220         # consuming and fragmenting process.  To avoid this, we pick a random,
13221         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13222         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13223         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13224         archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13225         ;;
13226       irix5* | irix6*)
13227         case $cc_basename in
13228           CC*)
13229             # SGI C++
13230             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13231
13232             # Archives containing C++ object files must be created using
13233             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13234             # necessary to make sure instantiated templates are included
13235             # in the archive.
13236             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13237             ;;
13238           *)
13239             if test "$GXX" = yes; then
13240               if test "$with_gnu_ld" = no; then
13241                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13242               else
13243                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13244               fi
13245             fi
13246             link_all_deplibs_CXX=yes
13247             ;;
13248         esac
13249         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13250         hardcode_libdir_separator_CXX=:
13251         inherit_rpath_CXX=yes
13252         ;;
13253
13254       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13255         case $cc_basename in
13256           KCC*)
13257             # Kuck and Associates, Inc. (KAI) C++ Compiler
13258
13259             # KCC will only create a shared library if the output file
13260             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13261             # to its proper name (with version) after linking.
13262             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13263             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13264             # Commands to make compiler produce verbose output that lists
13265             # what "hidden" libraries, object files and flags are used when
13266             # linking a shared library.
13267             #
13268             # There doesn't appear to be a way to prevent this compiler from
13269             # explicitly linking system object files so we need to strip them
13270             # from the output so that they don't get included in the library
13271             # dependencies.
13272             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13273
13274             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13275             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13276
13277             # Archives containing C++ object files must be created using
13278             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13279             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13280             ;;
13281           icpc* | ecpc* )
13282             # Intel C++
13283             with_gnu_ld=yes
13284             # version 8.0 and above of icpc choke on multiply defined symbols
13285             # if we add $predep_objects and $postdep_objects, however 7.1 and
13286             # earlier do not add the objects themselves.
13287             case `$CC -V 2>&1` in
13288               *"Version 7."*)
13289                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13290                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13291                 ;;
13292               *)  # Version 8.0 or newer
13293                 tmp_idyn=
13294                 case $host_cpu in
13295                   ia64*) tmp_idyn=' -i_dynamic';;
13296                 esac
13297                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13298                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13299                 ;;
13300             esac
13301             archive_cmds_need_lc_CXX=no
13302             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13303             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13304             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13305             ;;
13306           pgCC* | pgcpp*)
13307             # Portland Group C++ compiler
13308             case `$CC -V` in
13309             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13310               prelink_cmds_CXX='tpldir=Template.dir~
13311                 rm -rf $tpldir~
13312                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13313                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13314               old_archive_cmds_CXX='tpldir=Template.dir~
13315                 rm -rf $tpldir~
13316                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13317                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13318                 $RANLIB $oldlib'
13319               archive_cmds_CXX='tpldir=Template.dir~
13320                 rm -rf $tpldir~
13321                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13322                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13323               archive_expsym_cmds_CXX='tpldir=Template.dir~
13324                 rm -rf $tpldir~
13325                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13326                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13327               ;;
13328             *) # Version 6 will use weak symbols
13329               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13330               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13331               ;;
13332             esac
13333
13334             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13335             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13336             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13337             ;;
13338           cxx*)
13339             # Compaq C++
13340             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13341             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13342
13343             runpath_var=LD_RUN_PATH
13344             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13345             hardcode_libdir_separator_CXX=:
13346
13347             # Commands to make compiler produce verbose output that lists
13348             # what "hidden" libraries, object files and flags are used when
13349             # linking a shared library.
13350             #
13351             # There doesn't appear to be a way to prevent this compiler from
13352             # explicitly linking system object files so we need to strip them
13353             # from the output so that they don't get included in the library
13354             # dependencies.
13355             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13356             ;;
13357           xl*)
13358             # IBM XL 8.0 on PPC, with GNU ld
13359             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13360             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13361             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13362             if test "x$supports_anon_versioning" = xyes; then
13363               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13364                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13365                 echo "local: *; };" >> $output_objdir/$libname.ver~
13366                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13367             fi
13368             ;;
13369           *)
13370             case `$CC -V 2>&1 | sed 5q` in
13371             *Sun\ C*)
13372               # Sun C++ 5.9
13373               no_undefined_flag_CXX=' -zdefs'
13374               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13375               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13376               hardcode_libdir_flag_spec_CXX='-R$libdir'
13377               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13378               compiler_needs_object_CXX=yes
13379
13380               # Not sure whether something based on
13381               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13382               # would be better.
13383               output_verbose_link_cmd='echo'
13384
13385               # Archives containing C++ object files must be created using
13386               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13387               # necessary to make sure instantiated templates are included
13388               # in the archive.
13389               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13390               ;;
13391             esac
13392             ;;
13393         esac
13394         ;;
13395
13396       lynxos*)
13397         # FIXME: insert proper C++ library support
13398         ld_shlibs_CXX=no
13399         ;;
13400
13401       m88k*)
13402         # FIXME: insert proper C++ library support
13403         ld_shlibs_CXX=no
13404         ;;
13405
13406       mvs*)
13407         case $cc_basename in
13408           cxx*)
13409             # FIXME: insert proper C++ library support
13410             ld_shlibs_CXX=no
13411             ;;
13412           *)
13413             # FIXME: insert proper C++ library support
13414             ld_shlibs_CXX=no
13415             ;;
13416         esac
13417         ;;
13418
13419       netbsd*)
13420         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13421           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13422           wlarc=
13423           hardcode_libdir_flag_spec_CXX='-R$libdir'
13424           hardcode_direct_CXX=yes
13425           hardcode_shlibpath_var_CXX=no
13426         fi
13427         # Workaround some broken pre-1.5 toolchains
13428         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13429         ;;
13430
13431       *nto* | *qnx*)
13432         ld_shlibs_CXX=yes
13433         ;;
13434
13435       openbsd2*)
13436         # C++ shared libraries are fairly broken
13437         ld_shlibs_CXX=no
13438         ;;
13439
13440       openbsd*)
13441         if test -f /usr/libexec/ld.so; then
13442           hardcode_direct_CXX=yes
13443           hardcode_shlibpath_var_CXX=no
13444           hardcode_direct_absolute_CXX=yes
13445           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13446           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13447           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13448             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13449             export_dynamic_flag_spec_CXX='${wl}-E'
13450             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13451           fi
13452           output_verbose_link_cmd=echo
13453         else
13454           ld_shlibs_CXX=no
13455         fi
13456         ;;
13457
13458       osf3* | osf4* | osf5*)
13459         case $cc_basename in
13460           KCC*)
13461             # Kuck and Associates, Inc. (KAI) C++ Compiler
13462
13463             # KCC will only create a shared library if the output file
13464             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13465             # to its proper name (with version) after linking.
13466             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13467
13468             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13469             hardcode_libdir_separator_CXX=:
13470
13471             # Archives containing C++ object files must be created using
13472             # the KAI C++ compiler.
13473             case $host in
13474               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13475               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13476             esac
13477             ;;
13478           RCC*)
13479             # Rational C++ 2.4.1
13480             # FIXME: insert proper C++ library support
13481             ld_shlibs_CXX=no
13482             ;;
13483           cxx*)
13484             case $host in
13485               osf3*)
13486                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13487                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13488                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13489                 ;;
13490               *)
13491                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13492                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13493                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13494                   echo "-hidden">> $lib.exp~
13495                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13496                   $RM $lib.exp'
13497                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13498                 ;;
13499             esac
13500
13501             hardcode_libdir_separator_CXX=:
13502
13503             # Commands to make compiler produce verbose output that lists
13504             # what "hidden" libraries, object files and flags are used when
13505             # linking a shared library.
13506             #
13507             # There doesn't appear to be a way to prevent this compiler from
13508             # explicitly linking system object files so we need to strip them
13509             # from the output so that they don't get included in the library
13510             # dependencies.
13511             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13512             ;;
13513           *)
13514             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13515               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13516               case $host in
13517                 osf3*)
13518                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13519                   ;;
13520                 *)
13521                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13522                   ;;
13523               esac
13524
13525               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13526               hardcode_libdir_separator_CXX=:
13527
13528               # Commands to make compiler produce verbose output that lists
13529               # what "hidden" libraries, object files and flags are used when
13530               # linking a shared library.
13531               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13532
13533             else
13534               # FIXME: insert proper C++ library support
13535               ld_shlibs_CXX=no
13536             fi
13537             ;;
13538         esac
13539         ;;
13540
13541       psos*)
13542         # FIXME: insert proper C++ library support
13543         ld_shlibs_CXX=no
13544         ;;
13545
13546       sunos4*)
13547         case $cc_basename in
13548           CC*)
13549             # Sun C++ 4.x
13550             # FIXME: insert proper C++ library support
13551             ld_shlibs_CXX=no
13552             ;;
13553           lcc*)
13554             # Lucid
13555             # FIXME: insert proper C++ library support
13556             ld_shlibs_CXX=no
13557             ;;
13558           *)
13559             # FIXME: insert proper C++ library support
13560             ld_shlibs_CXX=no
13561             ;;
13562         esac
13563         ;;
13564
13565       solaris*)
13566         case $cc_basename in
13567           CC*)
13568             # Sun C++ 4.2, 5.x and Centerline C++
13569             archive_cmds_need_lc_CXX=yes
13570             no_undefined_flag_CXX=' -zdefs'
13571             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13572             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13573               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13574
13575             hardcode_libdir_flag_spec_CXX='-R$libdir'
13576             hardcode_shlibpath_var_CXX=no
13577             case $host_os in
13578               solaris2.[0-5] | solaris2.[0-5].*) ;;
13579               *)
13580                 # The compiler driver will combine and reorder linker options,
13581                 # but understands `-z linker_flag'.
13582                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13583                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13584                 ;;
13585             esac
13586             link_all_deplibs_CXX=yes
13587
13588             output_verbose_link_cmd='echo'
13589
13590             # Archives containing C++ object files must be created using
13591             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13592             # necessary to make sure instantiated templates are included
13593             # in the archive.
13594             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13595             ;;
13596           gcx*)
13597             # Green Hills C++ Compiler
13598             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13599
13600             # The C++ compiler must be used to create the archive.
13601             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13602             ;;
13603           *)
13604             # GNU C++ compiler with Solaris linker
13605             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13606               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13607               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13608                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13609                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13610                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13611
13612                 # Commands to make compiler produce verbose output that lists
13613                 # what "hidden" libraries, object files and flags are used when
13614                 # linking a shared library.
13615                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13616               else
13617                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13618                 # platform.
13619                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13620                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13621                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13622
13623                 # Commands to make compiler produce verbose output that lists
13624                 # what "hidden" libraries, object files and flags are used when
13625                 # linking a shared library.
13626                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13627               fi
13628
13629               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13630               case $host_os in
13631                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13632                 *)
13633                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13634                   ;;
13635               esac
13636             fi
13637             ;;
13638         esac
13639         ;;
13640
13641     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13642       no_undefined_flag_CXX='${wl}-z,text'
13643       archive_cmds_need_lc_CXX=no
13644       hardcode_shlibpath_var_CXX=no
13645       runpath_var='LD_RUN_PATH'
13646
13647       case $cc_basename in
13648         CC*)
13649           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13650           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13651           ;;
13652         *)
13653           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13654           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13655           ;;
13656       esac
13657       ;;
13658
13659       sysv5* | sco3.2v5* | sco5v6*)
13660         # Note: We can NOT use -z defs as we might desire, because we do not
13661         # link with -lc, and that would cause any symbols used from libc to
13662         # always be unresolved, which means just about no library would
13663         # ever link correctly.  If we're not using GNU ld we use -z text
13664         # though, which does catch some bad symbols but isn't as heavy-handed
13665         # as -z defs.
13666         no_undefined_flag_CXX='${wl}-z,text'
13667         allow_undefined_flag_CXX='${wl}-z,nodefs'
13668         archive_cmds_need_lc_CXX=no
13669         hardcode_shlibpath_var_CXX=no
13670         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13671         hardcode_libdir_separator_CXX=':'
13672         link_all_deplibs_CXX=yes
13673         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13674         runpath_var='LD_RUN_PATH'
13675
13676         case $cc_basename in
13677           CC*)
13678             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13679             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13680             ;;
13681           *)
13682             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13683             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13684             ;;
13685         esac
13686       ;;
13687
13688       tandem*)
13689         case $cc_basename in
13690           NCC*)
13691             # NonStop-UX NCC 3.20
13692             # FIXME: insert proper C++ library support
13693             ld_shlibs_CXX=no
13694             ;;
13695           *)
13696             # FIXME: insert proper C++ library support
13697             ld_shlibs_CXX=no
13698             ;;
13699         esac
13700         ;;
13701
13702       vxworks*)
13703         # FIXME: insert proper C++ library support
13704         ld_shlibs_CXX=no
13705         ;;
13706
13707       *)
13708         # FIXME: insert proper C++ library support
13709         ld_shlibs_CXX=no
13710         ;;
13711     esac
13712
13713     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13714 $as_echo "$ld_shlibs_CXX" >&6; }
13715     test "$ld_shlibs_CXX" = no && can_build_shared=no
13716
13717     GCC_CXX="$GXX"
13718     LD_CXX="$LD"
13719
13720     ## CAVEAT EMPTOR:
13721     ## There is no encapsulation within the following macros, do not change
13722     ## the running order or otherwise move them around unless you know exactly
13723     ## what you are doing...
13724     # Dependencies to place before and after the object being linked:
13725 predep_objects_CXX=
13726 postdep_objects_CXX=
13727 predeps_CXX=
13728 postdeps_CXX=
13729 compiler_lib_search_path_CXX=
13730
13731 cat > conftest.$ac_ext <<_LT_EOF
13732 class Foo
13733 {
13734 public:
13735   Foo (void) { a = 0; }
13736 private:
13737   int a;
13738 };
13739 _LT_EOF
13740
13741 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13742   (eval $ac_compile) 2>&5
13743   ac_status=$?
13744   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13745   test $ac_status = 0; }; then
13746   # Parse the compiler output and extract the necessary
13747   # objects, libraries and library flags.
13748
13749   # Sentinel used to keep track of whether or not we are before
13750   # the conftest object file.
13751   pre_test_object_deps_done=no
13752
13753   for p in `eval "$output_verbose_link_cmd"`; do
13754     case $p in
13755
13756     -L* | -R* | -l*)
13757        # Some compilers place space between "-{L,R}" and the path.
13758        # Remove the space.
13759        if test $p = "-L" ||
13760           test $p = "-R"; then
13761          prev=$p
13762          continue
13763        else
13764          prev=
13765        fi
13766
13767        if test "$pre_test_object_deps_done" = no; then
13768          case $p in
13769          -L* | -R*)
13770            # Internal compiler library paths should come after those
13771            # provided the user.  The postdeps already come after the
13772            # user supplied libs so there is no need to process them.
13773            if test -z "$compiler_lib_search_path_CXX"; then
13774              compiler_lib_search_path_CXX="${prev}${p}"
13775            else
13776              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13777            fi
13778            ;;
13779          # The "-l" case would never come before the object being
13780          # linked, so don't bother handling this case.
13781          esac
13782        else
13783          if test -z "$postdeps_CXX"; then
13784            postdeps_CXX="${prev}${p}"
13785          else
13786            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13787          fi
13788        fi
13789        ;;
13790
13791     *.$objext)
13792        # This assumes that the test object file only shows up
13793        # once in the compiler output.
13794        if test "$p" = "conftest.$objext"; then
13795          pre_test_object_deps_done=yes
13796          continue
13797        fi
13798
13799        if test "$pre_test_object_deps_done" = no; then
13800          if test -z "$predep_objects_CXX"; then
13801            predep_objects_CXX="$p"
13802          else
13803            predep_objects_CXX="$predep_objects_CXX $p"
13804          fi
13805        else
13806          if test -z "$postdep_objects_CXX"; then
13807            postdep_objects_CXX="$p"
13808          else
13809            postdep_objects_CXX="$postdep_objects_CXX $p"
13810          fi
13811        fi
13812        ;;
13813
13814     *) ;; # Ignore the rest.
13815
13816     esac
13817   done
13818
13819   # Clean up.
13820   rm -f a.out a.exe
13821 else
13822   echo "libtool.m4: error: problem compiling CXX test program"
13823 fi
13824
13825 $RM -f confest.$objext
13826
13827 # PORTME: override above test on systems where it is broken
13828 case $host_os in
13829 interix[3-9]*)
13830   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13831   # hack all around it, let's just trust "g++" to DTRT.
13832   predep_objects_CXX=
13833   postdep_objects_CXX=
13834   postdeps_CXX=
13835   ;;
13836
13837 linux*)
13838   case `$CC -V 2>&1 | sed 5q` in
13839   *Sun\ C*)
13840     # Sun C++ 5.9
13841
13842     # The more standards-conforming stlport4 library is
13843     # incompatible with the Cstd library. Avoid specifying
13844     # it if it's in CXXFLAGS. Ignore libCrun as
13845     # -library=stlport4 depends on it.
13846     case " $CXX $CXXFLAGS " in
13847     *" -library=stlport4 "*)
13848       solaris_use_stlport4=yes
13849       ;;
13850     esac
13851
13852     if test "$solaris_use_stlport4" != yes; then
13853       postdeps_CXX='-library=Cstd -library=Crun'
13854     fi
13855     ;;
13856   esac
13857   ;;
13858
13859 solaris*)
13860   case $cc_basename in
13861   CC*)
13862     # The more standards-conforming stlport4 library is
13863     # incompatible with the Cstd library. Avoid specifying
13864     # it if it's in CXXFLAGS. Ignore libCrun as
13865     # -library=stlport4 depends on it.
13866     case " $CXX $CXXFLAGS " in
13867     *" -library=stlport4 "*)
13868       solaris_use_stlport4=yes
13869       ;;
13870     esac
13871
13872     # Adding this requires a known-good setup of shared libraries for
13873     # Sun compiler versions before 5.6, else PIC objects from an old
13874     # archive will be linked into the output, leading to subtle bugs.
13875     if test "$solaris_use_stlport4" != yes; then
13876       postdeps_CXX='-library=Cstd -library=Crun'
13877     fi
13878     ;;
13879   esac
13880   ;;
13881 esac
13882
13883
13884 case " $postdeps_CXX " in
13885 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13886 esac
13887  compiler_lib_search_dirs_CXX=
13888 if test -n "${compiler_lib_search_path_CXX}"; then
13889  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13890 fi
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922     lt_prog_compiler_wl_CXX=
13923 lt_prog_compiler_pic_CXX=
13924 lt_prog_compiler_static_CXX=
13925
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13927 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13928
13929   # C++ specific cases for pic, static, wl, etc.
13930   if test "$GXX" = yes; then
13931     lt_prog_compiler_wl_CXX='-Wl,'
13932     lt_prog_compiler_static_CXX='-static'
13933
13934     case $host_os in
13935     aix*)
13936       # All AIX code is PIC.
13937       if test "$host_cpu" = ia64; then
13938         # AIX 5 now supports IA64 processor
13939         lt_prog_compiler_static_CXX='-Bstatic'
13940       fi
13941       ;;
13942
13943     amigaos*)
13944       case $host_cpu in
13945       powerpc)
13946             # see comment about AmigaOS4 .so support
13947             lt_prog_compiler_pic_CXX='-fPIC'
13948         ;;
13949       m68k)
13950             # FIXME: we need at least 68020 code to build shared libraries, but
13951             # adding the `-m68020' flag to GCC prevents building anything better,
13952             # like `-m68040'.
13953             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13954         ;;
13955       esac
13956       ;;
13957
13958     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13959       # PIC is the default for these OSes.
13960       ;;
13961     mingw* | cygwin* | os2* | pw32* | cegcc*)
13962       # This hack is so that the source file can tell whether it is being
13963       # built for inclusion in a dll (and should export symbols for example).
13964       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13965       # (--disable-auto-import) libraries
13966       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13967       ;;
13968     darwin* | rhapsody*)
13969       # PIC is the default on this platform
13970       # Common symbols not allowed in MH_DYLIB files
13971       lt_prog_compiler_pic_CXX='-fno-common'
13972       ;;
13973     *djgpp*)
13974       # DJGPP does not support shared libraries at all
13975       lt_prog_compiler_pic_CXX=
13976       ;;
13977     interix[3-9]*)
13978       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13979       # Instead, we relocate shared libraries at runtime.
13980       ;;
13981     sysv4*MP*)
13982       if test -d /usr/nec; then
13983         lt_prog_compiler_pic_CXX=-Kconform_pic
13984       fi
13985       ;;
13986     hpux*)
13987       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13988       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13989       # sets the default TLS model and affects inlining.
13990       case $host_cpu in
13991       hppa*64*)
13992         ;;
13993       *)
13994         lt_prog_compiler_pic_CXX='-fPIC'
13995         ;;
13996       esac
13997       ;;
13998     *qnx* | *nto*)
13999       # QNX uses GNU C++, but need to define -shared option too, otherwise
14000       # it will coredump.
14001       lt_prog_compiler_pic_CXX='-fPIC -shared'
14002       ;;
14003     *)
14004       lt_prog_compiler_pic_CXX='-fPIC'
14005       ;;
14006     esac
14007   else
14008     case $host_os in
14009       aix[4-9]*)
14010         # All AIX code is PIC.
14011         if test "$host_cpu" = ia64; then
14012           # AIX 5 now supports IA64 processor
14013           lt_prog_compiler_static_CXX='-Bstatic'
14014         else
14015           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14016         fi
14017         ;;
14018       chorus*)
14019         case $cc_basename in
14020         cxch68*)
14021           # Green Hills C++ Compiler
14022           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14023           ;;
14024         esac
14025         ;;
14026       dgux*)
14027         case $cc_basename in
14028           ec++*)
14029             lt_prog_compiler_pic_CXX='-KPIC'
14030             ;;
14031           ghcx*)
14032             # Green Hills C++ Compiler
14033             lt_prog_compiler_pic_CXX='-pic'
14034             ;;
14035           *)
14036             ;;
14037         esac
14038         ;;
14039       freebsd* | dragonfly*)
14040         # FreeBSD uses GNU C++
14041         ;;
14042       hpux9* | hpux10* | hpux11*)
14043         case $cc_basename in
14044           CC*)
14045             lt_prog_compiler_wl_CXX='-Wl,'
14046             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14047             if test "$host_cpu" != ia64; then
14048               lt_prog_compiler_pic_CXX='+Z'
14049             fi
14050             ;;
14051           aCC*)
14052             lt_prog_compiler_wl_CXX='-Wl,'
14053             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14054             case $host_cpu in
14055             hppa*64*|ia64*)
14056               # +Z the default
14057               ;;
14058             *)
14059               lt_prog_compiler_pic_CXX='+Z'
14060               ;;
14061             esac
14062             ;;
14063           *)
14064             ;;
14065         esac
14066         ;;
14067       interix*)
14068         # This is c89, which is MS Visual C++ (no shared libs)
14069         # Anyone wants to do a port?
14070         ;;
14071       irix5* | irix6* | nonstopux*)
14072         case $cc_basename in
14073           CC*)
14074             lt_prog_compiler_wl_CXX='-Wl,'
14075             lt_prog_compiler_static_CXX='-non_shared'
14076             # CC pic flag -KPIC is the default.
14077             ;;
14078           *)
14079             ;;
14080         esac
14081         ;;
14082       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14083         case $cc_basename in
14084           KCC*)
14085             # KAI C++ Compiler
14086             lt_prog_compiler_wl_CXX='--backend -Wl,'
14087             lt_prog_compiler_pic_CXX='-fPIC'
14088             ;;
14089           ecpc* )
14090             # old Intel C++ for x86_64 which still supported -KPIC.
14091             lt_prog_compiler_wl_CXX='-Wl,'
14092             lt_prog_compiler_pic_CXX='-KPIC'
14093             lt_prog_compiler_static_CXX='-static'
14094             ;;
14095           icpc* )
14096             # Intel C++, used to be incompatible with GCC.
14097             # ICC 10 doesn't accept -KPIC any more.
14098             lt_prog_compiler_wl_CXX='-Wl,'
14099             lt_prog_compiler_pic_CXX='-fPIC'
14100             lt_prog_compiler_static_CXX='-static'
14101             ;;
14102           pgCC* | pgcpp*)
14103             # Portland Group C++ compiler
14104             lt_prog_compiler_wl_CXX='-Wl,'
14105             lt_prog_compiler_pic_CXX='-fpic'
14106             lt_prog_compiler_static_CXX='-Bstatic'
14107             ;;
14108           cxx*)
14109             # Compaq C++
14110             # Make sure the PIC flag is empty.  It appears that all Alpha
14111             # Linux and Compaq Tru64 Unix objects are PIC.
14112             lt_prog_compiler_pic_CXX=
14113             lt_prog_compiler_static_CXX='-non_shared'
14114             ;;
14115           xlc* | xlC*)
14116             # IBM XL 8.0 on PPC
14117             lt_prog_compiler_wl_CXX='-Wl,'
14118             lt_prog_compiler_pic_CXX='-qpic'
14119             lt_prog_compiler_static_CXX='-qstaticlink'
14120             ;;
14121           *)
14122             case `$CC -V 2>&1 | sed 5q` in
14123             *Sun\ C*)
14124               # Sun C++ 5.9
14125               lt_prog_compiler_pic_CXX='-KPIC'
14126               lt_prog_compiler_static_CXX='-Bstatic'
14127               lt_prog_compiler_wl_CXX='-Qoption ld '
14128               ;;
14129             esac
14130             ;;
14131         esac
14132         ;;
14133       lynxos*)
14134         ;;
14135       m88k*)
14136         ;;
14137       mvs*)
14138         case $cc_basename in
14139           cxx*)
14140             lt_prog_compiler_pic_CXX='-W c,exportall'
14141             ;;
14142           *)
14143             ;;
14144         esac
14145         ;;
14146       netbsd* | netbsdelf*-gnu)
14147         ;;
14148       *qnx* | *nto*)
14149         # QNX uses GNU C++, but need to define -shared option too, otherwise
14150         # it will coredump.
14151         lt_prog_compiler_pic_CXX='-fPIC -shared'
14152         ;;
14153       osf3* | osf4* | osf5*)
14154         case $cc_basename in
14155           KCC*)
14156             lt_prog_compiler_wl_CXX='--backend -Wl,'
14157             ;;
14158           RCC*)
14159             # Rational C++ 2.4.1
14160             lt_prog_compiler_pic_CXX='-pic'
14161             ;;
14162           cxx*)
14163             # Digital/Compaq C++
14164             lt_prog_compiler_wl_CXX='-Wl,'
14165             # Make sure the PIC flag is empty.  It appears that all Alpha
14166             # Linux and Compaq Tru64 Unix objects are PIC.
14167             lt_prog_compiler_pic_CXX=
14168             lt_prog_compiler_static_CXX='-non_shared'
14169             ;;
14170           *)
14171             ;;
14172         esac
14173         ;;
14174       psos*)
14175         ;;
14176       solaris*)
14177         case $cc_basename in
14178           CC*)
14179             # Sun C++ 4.2, 5.x and Centerline C++
14180             lt_prog_compiler_pic_CXX='-KPIC'
14181             lt_prog_compiler_static_CXX='-Bstatic'
14182             lt_prog_compiler_wl_CXX='-Qoption ld '
14183             ;;
14184           gcx*)
14185             # Green Hills C++ Compiler
14186             lt_prog_compiler_pic_CXX='-PIC'
14187             ;;
14188           *)
14189             ;;
14190         esac
14191         ;;
14192       sunos4*)
14193         case $cc_basename in
14194           CC*)
14195             # Sun C++ 4.x
14196             lt_prog_compiler_pic_CXX='-pic'
14197             lt_prog_compiler_static_CXX='-Bstatic'
14198             ;;
14199           lcc*)
14200             # Lucid
14201             lt_prog_compiler_pic_CXX='-pic'
14202             ;;
14203           *)
14204             ;;
14205         esac
14206         ;;
14207       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14208         case $cc_basename in
14209           CC*)
14210             lt_prog_compiler_wl_CXX='-Wl,'
14211             lt_prog_compiler_pic_CXX='-KPIC'
14212             lt_prog_compiler_static_CXX='-Bstatic'
14213             ;;
14214         esac
14215         ;;
14216       tandem*)
14217         case $cc_basename in
14218           NCC*)
14219             # NonStop-UX NCC 3.20
14220             lt_prog_compiler_pic_CXX='-KPIC'
14221             ;;
14222           *)
14223             ;;
14224         esac
14225         ;;
14226       vxworks*)
14227         ;;
14228       *)
14229         lt_prog_compiler_can_build_shared_CXX=no
14230         ;;
14231     esac
14232   fi
14233
14234 case $host_os in
14235   # For platforms which do not support PIC, -DPIC is meaningless:
14236   *djgpp*)
14237     lt_prog_compiler_pic_CXX=
14238     ;;
14239   *)
14240     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14241     ;;
14242 esac
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14244 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14245
14246
14247
14248 #
14249 # Check to make sure the PIC flag actually works.
14250 #
14251 if test -n "$lt_prog_compiler_pic_CXX"; then
14252   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14253 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14254 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14255   $as_echo_n "(cached) " >&6
14256 else
14257   lt_cv_prog_compiler_pic_works_CXX=no
14258    ac_outfile=conftest.$ac_objext
14259    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14260    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14261    # Insert the option either (1) after the last *FLAGS variable, or
14262    # (2) before a word containing "conftest.", or (3) at the end.
14263    # Note that $ac_compile itself does not contain backslashes and begins
14264    # with a dollar sign (not a hyphen), so the echo should work correctly.
14265    # The option is referenced via a variable to avoid confusing sed.
14266    lt_compile=`echo "$ac_compile" | $SED \
14267    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14268    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14269    -e 's:$: $lt_compiler_flag:'`
14270    (eval echo "\"\$as_me:14270: $lt_compile\"" >&5)
14271    (eval "$lt_compile" 2>conftest.err)
14272    ac_status=$?
14273    cat conftest.err >&5
14274    echo "$as_me:14274: \$? = $ac_status" >&5
14275    if (exit $ac_status) && test -s "$ac_outfile"; then
14276      # The compiler can only warn and ignore the option if not recognized
14277      # So say no if there are warnings other than the usual output.
14278      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14279      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14280      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14281        lt_cv_prog_compiler_pic_works_CXX=yes
14282      fi
14283    fi
14284    $RM conftest*
14285
14286 fi
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14288 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14289
14290 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14291     case $lt_prog_compiler_pic_CXX in
14292      "" | " "*) ;;
14293      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14294      esac
14295 else
14296     lt_prog_compiler_pic_CXX=
14297      lt_prog_compiler_can_build_shared_CXX=no
14298 fi
14299
14300 fi
14301
14302
14303
14304 #
14305 # Check to make sure the static flag actually works.
14306 #
14307 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14309 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14310 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14311   $as_echo_n "(cached) " >&6
14312 else
14313   lt_cv_prog_compiler_static_works_CXX=no
14314    save_LDFLAGS="$LDFLAGS"
14315    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14316    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14317    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14318      # The linker can only warn and ignore the option if not recognized
14319      # So say no if there are warnings
14320      if test -s conftest.err; then
14321        # Append any errors to the config.log.
14322        cat conftest.err 1>&5
14323        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14324        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14325        if diff conftest.exp conftest.er2 >/dev/null; then
14326          lt_cv_prog_compiler_static_works_CXX=yes
14327        fi
14328      else
14329        lt_cv_prog_compiler_static_works_CXX=yes
14330      fi
14331    fi
14332    $RM -r conftest*
14333    LDFLAGS="$save_LDFLAGS"
14334
14335 fi
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14337 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14338
14339 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14340     :
14341 else
14342     lt_prog_compiler_static_CXX=
14343 fi
14344
14345
14346
14347
14348     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14349 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14350 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14351   $as_echo_n "(cached) " >&6
14352 else
14353   lt_cv_prog_compiler_c_o_CXX=no
14354    $RM -r conftest 2>/dev/null
14355    mkdir conftest
14356    cd conftest
14357    mkdir out
14358    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14359
14360    lt_compiler_flag="-o out/conftest2.$ac_objext"
14361    # Insert the option either (1) after the last *FLAGS variable, or
14362    # (2) before a word containing "conftest.", or (3) at the end.
14363    # Note that $ac_compile itself does not contain backslashes and begins
14364    # with a dollar sign (not a hyphen), so the echo should work correctly.
14365    lt_compile=`echo "$ac_compile" | $SED \
14366    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14367    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14368    -e 's:$: $lt_compiler_flag:'`
14369    (eval echo "\"\$as_me:14369: $lt_compile\"" >&5)
14370    (eval "$lt_compile" 2>out/conftest.err)
14371    ac_status=$?
14372    cat out/conftest.err >&5
14373    echo "$as_me:14373: \$? = $ac_status" >&5
14374    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14375    then
14376      # The compiler can only warn and ignore the option if not recognized
14377      # So say no if there are warnings
14378      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14379      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14380      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14381        lt_cv_prog_compiler_c_o_CXX=yes
14382      fi
14383    fi
14384    chmod u+w . 2>&5
14385    $RM conftest*
14386    # SGI C++ compiler will create directory out/ii_files/ for
14387    # template instantiation
14388    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14389    $RM out/* && rmdir out
14390    cd ..
14391    $RM -r conftest
14392    $RM conftest*
14393
14394 fi
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14396 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14397
14398
14399
14400     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14401 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14402 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14403   $as_echo_n "(cached) " >&6
14404 else
14405   lt_cv_prog_compiler_c_o_CXX=no
14406    $RM -r conftest 2>/dev/null
14407    mkdir conftest
14408    cd conftest
14409    mkdir out
14410    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14411
14412    lt_compiler_flag="-o out/conftest2.$ac_objext"
14413    # Insert the option either (1) after the last *FLAGS variable, or
14414    # (2) before a word containing "conftest.", or (3) at the end.
14415    # Note that $ac_compile itself does not contain backslashes and begins
14416    # with a dollar sign (not a hyphen), so the echo should work correctly.
14417    lt_compile=`echo "$ac_compile" | $SED \
14418    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14419    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14420    -e 's:$: $lt_compiler_flag:'`
14421    (eval echo "\"\$as_me:14421: $lt_compile\"" >&5)
14422    (eval "$lt_compile" 2>out/conftest.err)
14423    ac_status=$?
14424    cat out/conftest.err >&5
14425    echo "$as_me:14425: \$? = $ac_status" >&5
14426    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14427    then
14428      # The compiler can only warn and ignore the option if not recognized
14429      # So say no if there are warnings
14430      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14431      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14432      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14433        lt_cv_prog_compiler_c_o_CXX=yes
14434      fi
14435    fi
14436    chmod u+w . 2>&5
14437    $RM conftest*
14438    # SGI C++ compiler will create directory out/ii_files/ for
14439    # template instantiation
14440    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14441    $RM out/* && rmdir out
14442    cd ..
14443    $RM -r conftest
14444    $RM conftest*
14445
14446 fi
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14448 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14449
14450
14451
14452
14453 hard_links="nottested"
14454 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14455   # do not overwrite the value of need_locks provided by the user
14456   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14457 $as_echo_n "checking if we can lock with hard links... " >&6; }
14458   hard_links=yes
14459   $RM conftest*
14460   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14461   touch conftest.a
14462   ln conftest.a conftest.b 2>&5 || hard_links=no
14463   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14465 $as_echo "$hard_links" >&6; }
14466   if test "$hard_links" = no; then
14467     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14468 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14469     need_locks=warn
14470   fi
14471 else
14472   need_locks=no
14473 fi
14474
14475
14476
14477     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14478 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14479
14480   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14481   case $host_os in
14482   aix[4-9]*)
14483     # If we're using GNU nm, then we don't want the "-C" option.
14484     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14485     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14486       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14487     else
14488       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14489     fi
14490     ;;
14491   pw32*)
14492     export_symbols_cmds_CXX="$ltdll_cmds"
14493   ;;
14494   cygwin* | mingw* | cegcc*)
14495     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14496   ;;
14497   linux* | k*bsd*-gnu)
14498     link_all_deplibs_CXX=no
14499   ;;
14500   *)
14501     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14502   ;;
14503   esac
14504   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14505
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14507 $as_echo "$ld_shlibs_CXX" >&6; }
14508 test "$ld_shlibs_CXX" = no && can_build_shared=no
14509
14510 with_gnu_ld_CXX=$with_gnu_ld
14511
14512
14513
14514
14515
14516
14517 #
14518 # Do we need to explicitly link libc?
14519 #
14520 case "x$archive_cmds_need_lc_CXX" in
14521 x|xyes)
14522   # Assume -lc should be added
14523   archive_cmds_need_lc_CXX=yes
14524
14525   if test "$enable_shared" = yes && test "$GCC" = yes; then
14526     case $archive_cmds_CXX in
14527     *'~'*)
14528       # FIXME: we may have to deal with multi-command sequences.
14529       ;;
14530     '$CC '*)
14531       # Test whether the compiler implicitly links with -lc since on some
14532       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14533       # to ld, don't add -lc before -lgcc.
14534       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14535 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14536       $RM conftest*
14537       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14538
14539       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14540   (eval $ac_compile) 2>&5
14541   ac_status=$?
14542   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14543   test $ac_status = 0; } 2>conftest.err; then
14544         soname=conftest
14545         lib=conftest
14546         libobjs=conftest.$ac_objext
14547         deplibs=
14548         wl=$lt_prog_compiler_wl_CXX
14549         pic_flag=$lt_prog_compiler_pic_CXX
14550         compiler_flags=-v
14551         linker_flags=-v
14552         verstring=
14553         output_objdir=.
14554         libname=conftest
14555         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14556         allow_undefined_flag_CXX=
14557         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14558   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14559   ac_status=$?
14560   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14561   test $ac_status = 0; }
14562         then
14563           archive_cmds_need_lc_CXX=no
14564         else
14565           archive_cmds_need_lc_CXX=yes
14566         fi
14567         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14568       else
14569         cat conftest.err 1>&5
14570       fi
14571       $RM conftest*
14572       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14573 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14574       ;;
14575     esac
14576   fi
14577   ;;
14578 esac
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14644 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14645
14646 library_names_spec=
14647 libname_spec='lib$name'
14648 soname_spec=
14649 shrext_cmds=".so"
14650 postinstall_cmds=
14651 postuninstall_cmds=
14652 finish_cmds=
14653 finish_eval=
14654 shlibpath_var=
14655 shlibpath_overrides_runpath=unknown
14656 version_type=none
14657 dynamic_linker="$host_os ld.so"
14658 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14659 need_lib_prefix=unknown
14660 hardcode_into_libs=no
14661
14662 # when you set need_version to no, make sure it does not cause -set_version
14663 # flags to be left without arguments
14664 need_version=unknown
14665
14666 case $host_os in
14667 aix3*)
14668   version_type=linux
14669   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14670   shlibpath_var=LIBPATH
14671
14672   # AIX 3 has no versioning support, so we append a major version to the name.
14673   soname_spec='${libname}${release}${shared_ext}$major'
14674   ;;
14675
14676 aix[4-9]*)
14677   version_type=linux
14678   need_lib_prefix=no
14679   need_version=no
14680   hardcode_into_libs=yes
14681   if test "$host_cpu" = ia64; then
14682     # AIX 5 supports IA64
14683     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14684     shlibpath_var=LD_LIBRARY_PATH
14685   else
14686     # With GCC up to 2.95.x, collect2 would create an import file
14687     # for dependence libraries.  The import file would start with
14688     # the line `#! .'.  This would cause the generated library to
14689     # depend on `.', always an invalid library.  This was fixed in
14690     # development snapshots of GCC prior to 3.0.
14691     case $host_os in
14692       aix4 | aix4.[01] | aix4.[01].*)
14693       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14694            echo ' yes '
14695            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14696         :
14697       else
14698         can_build_shared=no
14699       fi
14700       ;;
14701     esac
14702     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14703     # soname into executable. Probably we can add versioning support to
14704     # collect2, so additional links can be useful in future.
14705     if test "$aix_use_runtimelinking" = yes; then
14706       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14707       # instead of lib<name>.a to let people know that these are not
14708       # typical AIX shared libraries.
14709       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14710     else
14711       # We preserve .a as extension for shared libraries through AIX4.2
14712       # and later when we are not doing run time linking.
14713       library_names_spec='${libname}${release}.a $libname.a'
14714       soname_spec='${libname}${release}${shared_ext}$major'
14715     fi
14716     shlibpath_var=LIBPATH
14717   fi
14718   ;;
14719
14720 amigaos*)
14721   case $host_cpu in
14722   powerpc)
14723     # Since July 2007 AmigaOS4 officially supports .so libraries.
14724     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14725     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14726     ;;
14727   m68k)
14728     library_names_spec='$libname.ixlibrary $libname.a'
14729     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14730     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14731     ;;
14732   esac
14733   ;;
14734
14735 beos*)
14736   library_names_spec='${libname}${shared_ext}'
14737   dynamic_linker="$host_os ld.so"
14738   shlibpath_var=LIBRARY_PATH
14739   ;;
14740
14741 bsdi[45]*)
14742   version_type=linux
14743   need_version=no
14744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14745   soname_spec='${libname}${release}${shared_ext}$major'
14746   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14747   shlibpath_var=LD_LIBRARY_PATH
14748   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14749   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14750   # the default ld.so.conf also contains /usr/contrib/lib and
14751   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14752   # libtool to hard-code these into programs
14753   ;;
14754
14755 cygwin* | mingw* | pw32* | cegcc*)
14756   version_type=windows
14757   shrext_cmds=".dll"
14758   need_version=no
14759   need_lib_prefix=no
14760
14761   case $GCC,$host_os in
14762   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14763     library_names_spec='$libname.dll.a'
14764     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14765     postinstall_cmds='base_file=`basename \${file}`~
14766       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14767       dldir=$destdir/`dirname \$dlpath`~
14768       test -d \$dldir || mkdir -p \$dldir~
14769       $install_prog $dir/$dlname \$dldir/$dlname~
14770       chmod a+x \$dldir/$dlname~
14771       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14772         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14773       fi'
14774     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14775       dlpath=$dir/\$dldll~
14776        $RM \$dlpath'
14777     shlibpath_overrides_runpath=yes
14778
14779     case $host_os in
14780     cygwin*)
14781       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14782       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14783       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14784       ;;
14785     mingw* | cegcc*)
14786       # MinGW DLLs use traditional 'lib' prefix
14787       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14788       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14789       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14790         # It is most probably a Windows format PATH printed by
14791         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14792         # path with ; separators, and with drive letters. We can handle the
14793         # drive letters (cygwin fileutils understands them), so leave them,
14794         # especially as we might pass files found there to a mingw objdump,
14795         # which wouldn't understand a cygwinified path. Ahh.
14796         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14797       else
14798         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14799       fi
14800       ;;
14801     pw32*)
14802       # pw32 DLLs use 'pw' prefix rather than 'lib'
14803       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14804       ;;
14805     esac
14806     ;;
14807
14808   *)
14809     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14810     ;;
14811   esac
14812   dynamic_linker='Win32 ld.exe'
14813   # FIXME: first we should search . and the directory the executable is in
14814   shlibpath_var=PATH
14815   ;;
14816
14817 darwin* | rhapsody*)
14818   dynamic_linker="$host_os dyld"
14819   version_type=darwin
14820   need_lib_prefix=no
14821   need_version=no
14822   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14823   soname_spec='${libname}${release}${major}$shared_ext'
14824   shlibpath_overrides_runpath=yes
14825   shlibpath_var=DYLD_LIBRARY_PATH
14826   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14827
14828   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14829   ;;
14830
14831 dgux*)
14832   version_type=linux
14833   need_lib_prefix=no
14834   need_version=no
14835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14836   soname_spec='${libname}${release}${shared_ext}$major'
14837   shlibpath_var=LD_LIBRARY_PATH
14838   ;;
14839
14840 freebsd1*)
14841   dynamic_linker=no
14842   ;;
14843
14844 freebsd* | dragonfly*)
14845   # DragonFly does not have aout.  When/if they implement a new
14846   # versioning mechanism, adjust this.
14847   if test -x /usr/bin/objformat; then
14848     objformat=`/usr/bin/objformat`
14849   else
14850     case $host_os in
14851     freebsd[123]*) objformat=aout ;;
14852     *) objformat=elf ;;
14853     esac
14854   fi
14855   version_type=freebsd-$objformat
14856   case $version_type in
14857     freebsd-elf*)
14858       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14859       need_version=no
14860       need_lib_prefix=no
14861       ;;
14862     freebsd-*)
14863       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14864       need_version=yes
14865       ;;
14866   esac
14867   shlibpath_var=LD_LIBRARY_PATH
14868   case $host_os in
14869   freebsd2*)
14870     shlibpath_overrides_runpath=yes
14871     ;;
14872   freebsd3.[01]* | freebsdelf3.[01]*)
14873     shlibpath_overrides_runpath=yes
14874     hardcode_into_libs=yes
14875     ;;
14876   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14877   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14878     shlibpath_overrides_runpath=no
14879     hardcode_into_libs=yes
14880     ;;
14881   *) # from 4.6 on, and DragonFly
14882     shlibpath_overrides_runpath=yes
14883     hardcode_into_libs=yes
14884     ;;
14885   esac
14886   ;;
14887
14888 gnu*)
14889   version_type=linux
14890   need_lib_prefix=no
14891   need_version=no
14892   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14893   soname_spec='${libname}${release}${shared_ext}$major'
14894   shlibpath_var=LD_LIBRARY_PATH
14895   hardcode_into_libs=yes
14896   ;;
14897
14898 hpux9* | hpux10* | hpux11*)
14899   # Give a soname corresponding to the major version so that dld.sl refuses to
14900   # link against other versions.
14901   version_type=sunos
14902   need_lib_prefix=no
14903   need_version=no
14904   case $host_cpu in
14905   ia64*)
14906     shrext_cmds='.so'
14907     hardcode_into_libs=yes
14908     dynamic_linker="$host_os dld.so"
14909     shlibpath_var=LD_LIBRARY_PATH
14910     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14911     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14912     soname_spec='${libname}${release}${shared_ext}$major'
14913     if test "X$HPUX_IA64_MODE" = X32; then
14914       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14915     else
14916       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14917     fi
14918     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14919     ;;
14920   hppa*64*)
14921     shrext_cmds='.sl'
14922     hardcode_into_libs=yes
14923     dynamic_linker="$host_os dld.sl"
14924     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14925     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14926     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14927     soname_spec='${libname}${release}${shared_ext}$major'
14928     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14929     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14930     ;;
14931   *)
14932     shrext_cmds='.sl'
14933     dynamic_linker="$host_os dld.sl"
14934     shlibpath_var=SHLIB_PATH
14935     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14936     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14937     soname_spec='${libname}${release}${shared_ext}$major'
14938     ;;
14939   esac
14940   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14941   postinstall_cmds='chmod 555 $lib'
14942   ;;
14943
14944 interix[3-9]*)
14945   version_type=linux
14946   need_lib_prefix=no
14947   need_version=no
14948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14949   soname_spec='${libname}${release}${shared_ext}$major'
14950   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14951   shlibpath_var=LD_LIBRARY_PATH
14952   shlibpath_overrides_runpath=no
14953   hardcode_into_libs=yes
14954   ;;
14955
14956 irix5* | irix6* | nonstopux*)
14957   case $host_os in
14958     nonstopux*) version_type=nonstopux ;;
14959     *)
14960         if test "$lt_cv_prog_gnu_ld" = yes; then
14961                 version_type=linux
14962         else
14963                 version_type=irix
14964         fi ;;
14965   esac
14966   need_lib_prefix=no
14967   need_version=no
14968   soname_spec='${libname}${release}${shared_ext}$major'
14969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14970   case $host_os in
14971   irix5* | nonstopux*)
14972     libsuff= shlibsuff=
14973     ;;
14974   *)
14975     case $LD in # libtool.m4 will add one of these switches to LD
14976     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14977       libsuff= shlibsuff= libmagic=32-bit;;
14978     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14979       libsuff=32 shlibsuff=N32 libmagic=N32;;
14980     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14981       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14982     *) libsuff= shlibsuff= libmagic=never-match;;
14983     esac
14984     ;;
14985   esac
14986   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14987   shlibpath_overrides_runpath=no
14988   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14989   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14990   hardcode_into_libs=yes
14991   ;;
14992
14993 # No shared lib support for Linux oldld, aout, or coff.
14994 linux*oldld* | linux*aout* | linux*coff*)
14995   dynamic_linker=no
14996   ;;
14997
14998 # This must be Linux ELF.
14999 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15000   version_type=linux
15001   need_lib_prefix=no
15002   need_version=no
15003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15004   soname_spec='${libname}${release}${shared_ext}$major'
15005   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15006   shlibpath_var=LD_LIBRARY_PATH
15007   shlibpath_overrides_runpath=no
15008   # Some binutils ld are patched to set DT_RUNPATH
15009   save_LDFLAGS=$LDFLAGS
15010   save_libdir=$libdir
15011   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15012        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15014 /* end confdefs.h.  */
15015
15016 int
15017 main ()
15018 {
15019
15020   ;
15021   return 0;
15022 }
15023 _ACEOF
15024 if ac_fn_cxx_try_link "$LINENO"; then :
15025   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15026   shlibpath_overrides_runpath=yes
15027 fi
15028 fi
15029 rm -f core conftest.err conftest.$ac_objext \
15030     conftest$ac_exeext conftest.$ac_ext
15031   LDFLAGS=$save_LDFLAGS
15032   libdir=$save_libdir
15033
15034   # This implies no fast_install, which is unacceptable.
15035   # Some rework will be needed to allow for fast_install
15036   # before this can be enabled.
15037   hardcode_into_libs=yes
15038
15039   # Append ld.so.conf contents to the search path
15040   if test -f /etc/ld.so.conf; then
15041     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15042     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15043   fi
15044
15045   # We used to test for /lib/ld.so.1 and disable shared libraries on
15046   # powerpc, because MkLinux only supported shared libraries with the
15047   # GNU dynamic linker.  Since this was broken with cross compilers,
15048   # most powerpc-linux boxes support dynamic linking these days and
15049   # people can always --disable-shared, the test was removed, and we
15050   # assume the GNU/Linux dynamic linker is in use.
15051   dynamic_linker='GNU/Linux ld.so'
15052   ;;
15053
15054 netbsdelf*-gnu)
15055   version_type=linux
15056   need_lib_prefix=no
15057   need_version=no
15058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15059   soname_spec='${libname}${release}${shared_ext}$major'
15060   shlibpath_var=LD_LIBRARY_PATH
15061   shlibpath_overrides_runpath=no
15062   hardcode_into_libs=yes
15063   dynamic_linker='NetBSD ld.elf_so'
15064   ;;
15065
15066 netbsd*)
15067   version_type=sunos
15068   need_lib_prefix=no
15069   need_version=no
15070   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15071     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15072     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15073     dynamic_linker='NetBSD (a.out) ld.so'
15074   else
15075     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15076     soname_spec='${libname}${release}${shared_ext}$major'
15077     dynamic_linker='NetBSD ld.elf_so'
15078   fi
15079   shlibpath_var=LD_LIBRARY_PATH
15080   shlibpath_overrides_runpath=yes
15081   hardcode_into_libs=yes
15082   ;;
15083
15084 newsos6)
15085   version_type=linux
15086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15087   shlibpath_var=LD_LIBRARY_PATH
15088   shlibpath_overrides_runpath=yes
15089   ;;
15090
15091 *nto* | *qnx*)
15092   version_type=qnx
15093   need_lib_prefix=no
15094   need_version=no
15095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15096   soname_spec='${libname}${release}${shared_ext}$major'
15097   shlibpath_var=LD_LIBRARY_PATH
15098   shlibpath_overrides_runpath=no
15099   hardcode_into_libs=yes
15100   dynamic_linker='ldqnx.so'
15101   ;;
15102
15103 openbsd*)
15104   version_type=sunos
15105   sys_lib_dlsearch_path_spec="/usr/lib"
15106   need_lib_prefix=no
15107   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15108   case $host_os in
15109     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15110     *)                          need_version=no  ;;
15111   esac
15112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15113   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15114   shlibpath_var=LD_LIBRARY_PATH
15115   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15116     case $host_os in
15117       openbsd2.[89] | openbsd2.[89].*)
15118         shlibpath_overrides_runpath=no
15119         ;;
15120       *)
15121         shlibpath_overrides_runpath=yes
15122         ;;
15123       esac
15124   else
15125     shlibpath_overrides_runpath=yes
15126   fi
15127   ;;
15128
15129 os2*)
15130   libname_spec='$name'
15131   shrext_cmds=".dll"
15132   need_lib_prefix=no
15133   library_names_spec='$libname${shared_ext} $libname.a'
15134   dynamic_linker='OS/2 ld.exe'
15135   shlibpath_var=LIBPATH
15136   ;;
15137
15138 osf3* | osf4* | osf5*)
15139   version_type=osf
15140   need_lib_prefix=no
15141   need_version=no
15142   soname_spec='${libname}${release}${shared_ext}$major'
15143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15144   shlibpath_var=LD_LIBRARY_PATH
15145   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15146   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15147   ;;
15148
15149 rdos*)
15150   dynamic_linker=no
15151   ;;
15152
15153 solaris*)
15154   version_type=linux
15155   need_lib_prefix=no
15156   need_version=no
15157   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15158   soname_spec='${libname}${release}${shared_ext}$major'
15159   shlibpath_var=LD_LIBRARY_PATH
15160   shlibpath_overrides_runpath=yes
15161   hardcode_into_libs=yes
15162   # ldd complains unless libraries are executable
15163   postinstall_cmds='chmod +x $lib'
15164   ;;
15165
15166 sunos4*)
15167   version_type=sunos
15168   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15169   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15170   shlibpath_var=LD_LIBRARY_PATH
15171   shlibpath_overrides_runpath=yes
15172   if test "$with_gnu_ld" = yes; then
15173     need_lib_prefix=no
15174   fi
15175   need_version=yes
15176   ;;
15177
15178 sysv4 | sysv4.3*)
15179   version_type=linux
15180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15181   soname_spec='${libname}${release}${shared_ext}$major'
15182   shlibpath_var=LD_LIBRARY_PATH
15183   case $host_vendor in
15184     sni)
15185       shlibpath_overrides_runpath=no
15186       need_lib_prefix=no
15187       runpath_var=LD_RUN_PATH
15188       ;;
15189     siemens)
15190       need_lib_prefix=no
15191       ;;
15192     motorola)
15193       need_lib_prefix=no
15194       need_version=no
15195       shlibpath_overrides_runpath=no
15196       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15197       ;;
15198   esac
15199   ;;
15200
15201 sysv4*MP*)
15202   if test -d /usr/nec ;then
15203     version_type=linux
15204     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15205     soname_spec='$libname${shared_ext}.$major'
15206     shlibpath_var=LD_LIBRARY_PATH
15207   fi
15208   ;;
15209
15210 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15211   version_type=freebsd-elf
15212   need_lib_prefix=no
15213   need_version=no
15214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15215   soname_spec='${libname}${release}${shared_ext}$major'
15216   shlibpath_var=LD_LIBRARY_PATH
15217   shlibpath_overrides_runpath=yes
15218   hardcode_into_libs=yes
15219   if test "$with_gnu_ld" = yes; then
15220     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15221   else
15222     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15223     case $host_os in
15224       sco3.2v5*)
15225         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15226         ;;
15227     esac
15228   fi
15229   sys_lib_dlsearch_path_spec='/usr/lib'
15230   ;;
15231
15232 tpf*)
15233   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15234   version_type=linux
15235   need_lib_prefix=no
15236   need_version=no
15237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15238   shlibpath_var=LD_LIBRARY_PATH
15239   shlibpath_overrides_runpath=no
15240   hardcode_into_libs=yes
15241   ;;
15242
15243 uts4*)
15244   version_type=linux
15245   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15246   soname_spec='${libname}${release}${shared_ext}$major'
15247   shlibpath_var=LD_LIBRARY_PATH
15248   ;;
15249
15250 *)
15251   dynamic_linker=no
15252   ;;
15253 esac
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15255 $as_echo "$dynamic_linker" >&6; }
15256 test "$dynamic_linker" = no && can_build_shared=no
15257
15258 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15259 if test "$GCC" = yes; then
15260   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15261 fi
15262
15263 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15264   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15265 fi
15266 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15267   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15268 fi
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15306 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15307 hardcode_action_CXX=
15308 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15309    test -n "$runpath_var_CXX" ||
15310    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15311
15312   # We can hardcode non-existent directories.
15313   if test "$hardcode_direct_CXX" != no &&
15314      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15315      # have to relink, otherwise we might link with an installed library
15316      # when we should be linking with a yet-to-be-installed one
15317      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15318      test "$hardcode_minus_L_CXX" != no; then
15319     # Linking always hardcodes the temporary library directory.
15320     hardcode_action_CXX=relink
15321   else
15322     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15323     hardcode_action_CXX=immediate
15324   fi
15325 else
15326   # We cannot hardcode anything, or else we can only hardcode existing
15327   # directories.
15328   hardcode_action_CXX=unsupported
15329 fi
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15331 $as_echo "$hardcode_action_CXX" >&6; }
15332
15333 if test "$hardcode_action_CXX" = relink ||
15334    test "$inherit_rpath_CXX" = yes; then
15335   # Fast installation is not supported
15336   enable_fast_install=no
15337 elif test "$shlibpath_overrides_runpath" = yes ||
15338      test "$enable_shared" = no; then
15339   # Fast installation is not necessary
15340   enable_fast_install=needless
15341 fi
15342
15343
15344
15345
15346
15347
15348
15349   fi # test -n "$compiler"
15350
15351   CC=$lt_save_CC
15352   LDCXX=$LD
15353   LD=$lt_save_LD
15354   GCC=$lt_save_GCC
15355   with_gnu_ld=$lt_save_with_gnu_ld
15356   lt_cv_path_LDCXX=$lt_cv_path_LD
15357   lt_cv_path_LD=$lt_save_path_LD
15358   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15359   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15360 fi # test "$_lt_caught_CXX_error" != yes
15361
15362 ac_ext=c
15363 ac_cpp='$CPP $CPPFLAGS'
15364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380         ac_config_commands="$ac_config_commands libtool"
15381
15382
15383
15384
15385 # Only expand once:
15386
15387
15388
15389 #GP_LIB_LTDL
15390
15391
15392 # report on compiler/libtool setup
15393
15394 gp_config_msg_len="$(expr "Compiler" : '.*')"
15395 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
15396         gp_config_msg_lhs="$(expr "Compiler" : "\(.\{0,${gp_config_len3}\}\)")..:"
15397 else
15398         gp_config_msg_lhs="$(expr "Compiler:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
15399 fi
15400 gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} ${CC}
15401 "
15402
15403 #GP_CONFIG_MSG([libltdl includes],[$LTDLINCL])
15404 #GP_CONFIG_MSG([libltdl library],[$LIBLTDL])
15405
15406
15407 cat >>confdefs.h <<_ACEOF
15408 #define HAVE_CC "$CC"
15409 _ACEOF
15410
15411
15412
15413
15414
15415
15416
15417 URL_GPHOTO_HOME="http://www.gphoto.org/"
15418
15419
15420 cat >>confdefs.h <<_ACEOF
15421 #define URL_GPHOTO_HOME "http://www.gphoto.org/"
15422 _ACEOF
15423
15424
15425
15426 URL_GPHOTO_PROJECT="http://sourceforge.net/projects/gphoto"
15427
15428
15429 cat >>confdefs.h <<_ACEOF
15430 #define URL_GPHOTO_PROJECT "http://sourceforge.net/projects/gphoto"
15431 _ACEOF
15432
15433
15434
15435
15436 URL_DIGICAM_LIST="http://www.teaser.fr/~hfiguiere/linux/digicam.html"
15437
15438
15439 cat >>confdefs.h <<_ACEOF
15440 #define URL_DIGICAM_LIST "http://www.teaser.fr/~hfiguiere/linux/digicam.html"
15441 _ACEOF
15442
15443
15444
15445
15446 URL_JPHOTO_HOME="http://jphoto.sourceforge.net/"
15447
15448
15449 cat >>confdefs.h <<_ACEOF
15450 #define URL_JPHOTO_HOME "http://jphoto.sourceforge.net/"
15451 _ACEOF
15452
15453
15454
15455
15456 URL_USB_MASSSTORAGE="http://www.linux-usb.org/USB-guide/x498.html"
15457
15458
15459 cat >>confdefs.h <<_ACEOF
15460 #define URL_USB_MASSSTORAGE "http://www.linux-usb.org/USB-guide/x498.html"
15461 _ACEOF
15462
15463
15464
15465
15466 MAIL_GPHOTO_DEVEL="<gphoto-devel@lists.sourceforge.net>"
15467
15468
15469 cat >>confdefs.h <<_ACEOF
15470 #define MAIL_GPHOTO_DEVEL "<gphoto-devel@lists.sourceforge.net>"
15471 _ACEOF
15472
15473
15474
15475
15476 MAIL_GPHOTO_USER="<gphoto-user@lists.sourceforge.net>"
15477
15478
15479 cat >>confdefs.h <<_ACEOF
15480 #define MAIL_GPHOTO_USER "<gphoto-user@lists.sourceforge.net>"
15481 _ACEOF
15482
15483
15484
15485
15486 MAIL_GPHOTO_TRANSLATION="<gphoto-translation@lists.sourceforge.net>"
15487
15488
15489 cat >>confdefs.h <<_ACEOF
15490 #define MAIL_GPHOTO_TRANSLATION "<gphoto-translation@lists.sourceforge.net>"
15491 _ACEOF
15492
15493
15494
15495
15496
15497
15498 gp_config_msg="${gp_config_msg}
15499   Features
15500 "
15501
15502
15503
15504 ALL_LINGUAS="da de es eu fr hu it ja nl pl ru sv uk vi zh_CN"
15505
15506 GETTEXT_PACKAGE="${PACKAGE}-${LIBGPHOTO2_CURRENT_MIN}"
15507
15508 cat >>confdefs.h <<_ACEOF
15509 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
15510 _ACEOF
15511
15512
15513 sed_cmds="s|^DOMAIN.*|DOMAIN = ${GETTEXT_PACKAGE}|"
15514 sed_cmds="${sed_cmds};s|^COPYRIGHT_HOLDER.*|COPYRIGHT_HOLDER = The gPhoto Team|"
15515
15516 if test -n "$PACKAGE_BUGREPORT"; then
15517    sed_mb="${PACKAGE_BUGREPORT}"
15518 else
15519    as_fn_error $? "
15520 *** Your configure.{ac,in} is wrong.
15521 *** Either define PACKAGE_BUGREPORT (by using the 4-parameter AC INIT syntax)
15522 *** or give GP_GETTEXT_HACK the third parameter.
15523 ***
15524 " "$LINENO" 5
15525 fi
15526
15527 sed_cmds="${sed_cmds};s|^MSGID_BUGS_ADDRESS.*|MSGID_BUGS_ADDRESS = ${sed_mb}|"
15528 # Not so sure whether this hack is all *that* evil...
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po/Makevars requiring hack" >&5
15530 $as_echo_n "checking for po/Makevars requiring hack... " >&6; }
15531 if test -f "${srcdir}/po/Makevars.template"; then
15532    sed "$sed_cmds" < "${srcdir}/po/Makevars.template" > "${srcdir}/po/Makevars"
15533    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, done." >&5
15534 $as_echo "yes, done." >&6; }
15535 else
15536    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15537 $as_echo "no" >&6; }
15538 fi
15539
15540
15541
15542         MKINSTALLDIRS=
15543   if test -n "$ac_aux_dir"; then
15544     case "$ac_aux_dir" in
15545       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
15546       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
15547     esac
15548   fi
15549   if test -z "$MKINSTALLDIRS"; then
15550     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15551   fi
15552
15553
15554
15555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15556 $as_echo_n "checking whether NLS is requested... " >&6; }
15557     # Check whether --enable-nls was given.
15558 if test "${enable_nls+set}" = set; then :
15559   enableval=$enable_nls; USE_NLS=$enableval
15560 else
15561   USE_NLS=yes
15562 fi
15563
15564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15565 $as_echo "$USE_NLS" >&6; }
15566
15567
15568
15569
15570
15571
15572 # Prepare PATH_SEPARATOR.
15573 # The user is always right.
15574 if test "${PATH_SEPARATOR+set}" != set; then
15575   echo "#! /bin/sh" >conf$$.sh
15576   echo  "exit 0"   >>conf$$.sh
15577   chmod +x conf$$.sh
15578   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15579     PATH_SEPARATOR=';'
15580   else
15581     PATH_SEPARATOR=:
15582   fi
15583   rm -f conf$$.sh
15584 fi
15585
15586 # Find out how to test for executable files. Don't use a zero-byte file,
15587 # as systems may use methods other than mode bits to determine executability.
15588 cat >conf$$.file <<_ASEOF
15589 #! /bin/sh
15590 exit 0
15591 _ASEOF
15592 chmod +x conf$$.file
15593 if test -x conf$$.file >/dev/null 2>&1; then
15594   ac_executable_p="test -x"
15595 else
15596   ac_executable_p="test -f"
15597 fi
15598 rm -f conf$$.file
15599
15600 # Extract the first word of "msgfmt", so it can be a program name with args.
15601 set dummy msgfmt; ac_word=$2
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15603 $as_echo_n "checking for $ac_word... " >&6; }
15604 if ${ac_cv_path_MSGFMT+:} false; then :
15605   $as_echo_n "(cached) " >&6
15606 else
15607   case "$MSGFMT" in
15608   [\\/]* | ?:[\\/]*)
15609     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15610     ;;
15611   *)
15612     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15613     for ac_dir in $PATH; do
15614       IFS="$ac_save_IFS"
15615       test -z "$ac_dir" && ac_dir=.
15616       for ac_exec_ext in '' $ac_executable_extensions; do
15617         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15618           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15619      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15620             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15621             break 2
15622           fi
15623         fi
15624       done
15625     done
15626     IFS="$ac_save_IFS"
15627   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15628     ;;
15629 esac
15630 fi
15631 MSGFMT="$ac_cv_path_MSGFMT"
15632 if test "$MSGFMT" != ":"; then
15633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15634 $as_echo "$MSGFMT" >&6; }
15635 else
15636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15637 $as_echo "no" >&6; }
15638 fi
15639
15640   # Extract the first word of "gmsgfmt", so it can be a program name with args.
15641 set dummy gmsgfmt; ac_word=$2
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15643 $as_echo_n "checking for $ac_word... " >&6; }
15644 if ${ac_cv_path_GMSGFMT+:} false; then :
15645   $as_echo_n "(cached) " >&6
15646 else
15647   case $GMSGFMT in
15648   [\\/]* | ?:[\\/]*)
15649   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15650   ;;
15651   *)
15652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15653 for as_dir in $PATH
15654 do
15655   IFS=$as_save_IFS
15656   test -z "$as_dir" && as_dir=.
15657     for ac_exec_ext in '' $ac_executable_extensions; do
15658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15659     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15661     break 2
15662   fi
15663 done
15664   done
15665 IFS=$as_save_IFS
15666
15667   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15668   ;;
15669 esac
15670 fi
15671 GMSGFMT=$ac_cv_path_GMSGFMT
15672 if test -n "$GMSGFMT"; then
15673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15674 $as_echo "$GMSGFMT" >&6; }
15675 else
15676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15677 $as_echo "no" >&6; }
15678 fi
15679
15680
15681
15682
15683 # Prepare PATH_SEPARATOR.
15684 # The user is always right.
15685 if test "${PATH_SEPARATOR+set}" != set; then
15686   echo "#! /bin/sh" >conf$$.sh
15687   echo  "exit 0"   >>conf$$.sh
15688   chmod +x conf$$.sh
15689   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15690     PATH_SEPARATOR=';'
15691   else
15692     PATH_SEPARATOR=:
15693   fi
15694   rm -f conf$$.sh
15695 fi
15696
15697 # Find out how to test for executable files. Don't use a zero-byte file,
15698 # as systems may use methods other than mode bits to determine executability.
15699 cat >conf$$.file <<_ASEOF
15700 #! /bin/sh
15701 exit 0
15702 _ASEOF
15703 chmod +x conf$$.file
15704 if test -x conf$$.file >/dev/null 2>&1; then
15705   ac_executable_p="test -x"
15706 else
15707   ac_executable_p="test -f"
15708 fi
15709 rm -f conf$$.file
15710
15711 # Extract the first word of "xgettext", so it can be a program name with args.
15712 set dummy xgettext; ac_word=$2
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15714 $as_echo_n "checking for $ac_word... " >&6; }
15715 if ${ac_cv_path_XGETTEXT+:} false; then :
15716   $as_echo_n "(cached) " >&6
15717 else
15718   case "$XGETTEXT" in
15719   [\\/]* | ?:[\\/]*)
15720     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15721     ;;
15722   *)
15723     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15724     for ac_dir in $PATH; do
15725       IFS="$ac_save_IFS"
15726       test -z "$ac_dir" && ac_dir=.
15727       for ac_exec_ext in '' $ac_executable_extensions; do
15728         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15729           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
15730      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15731             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
15732             break 2
15733           fi
15734         fi
15735       done
15736     done
15737     IFS="$ac_save_IFS"
15738   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15739     ;;
15740 esac
15741 fi
15742 XGETTEXT="$ac_cv_path_XGETTEXT"
15743 if test "$XGETTEXT" != ":"; then
15744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15745 $as_echo "$XGETTEXT" >&6; }
15746 else
15747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15748 $as_echo "no" >&6; }
15749 fi
15750
15751     rm -f messages.po
15752
15753
15754 # Prepare PATH_SEPARATOR.
15755 # The user is always right.
15756 if test "${PATH_SEPARATOR+set}" != set; then
15757   echo "#! /bin/sh" >conf$$.sh
15758   echo  "exit 0"   >>conf$$.sh
15759   chmod +x conf$$.sh
15760   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15761     PATH_SEPARATOR=';'
15762   else
15763     PATH_SEPARATOR=:
15764   fi
15765   rm -f conf$$.sh
15766 fi
15767
15768 # Find out how to test for executable files. Don't use a zero-byte file,
15769 # as systems may use methods other than mode bits to determine executability.
15770 cat >conf$$.file <<_ASEOF
15771 #! /bin/sh
15772 exit 0
15773 _ASEOF
15774 chmod +x conf$$.file
15775 if test -x conf$$.file >/dev/null 2>&1; then
15776   ac_executable_p="test -x"
15777 else
15778   ac_executable_p="test -f"
15779 fi
15780 rm -f conf$$.file
15781
15782 # Extract the first word of "msgmerge", so it can be a program name with args.
15783 set dummy msgmerge; ac_word=$2
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15785 $as_echo_n "checking for $ac_word... " >&6; }
15786 if ${ac_cv_path_MSGMERGE+:} false; then :
15787   $as_echo_n "(cached) " >&6
15788 else
15789   case "$MSGMERGE" in
15790   [\\/]* | ?:[\\/]*)
15791     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15792     ;;
15793   *)
15794     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15795     for ac_dir in $PATH; do
15796       IFS="$ac_save_IFS"
15797       test -z "$ac_dir" && ac_dir=.
15798       for ac_exec_ext in '' $ac_executable_extensions; do
15799         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15800           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
15801             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
15802             break 2
15803           fi
15804         fi
15805       done
15806     done
15807     IFS="$ac_save_IFS"
15808   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15809     ;;
15810 esac
15811 fi
15812 MSGMERGE="$ac_cv_path_MSGMERGE"
15813 if test "$MSGMERGE" != ":"; then
15814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
15815 $as_echo "$MSGMERGE" >&6; }
15816 else
15817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15818 $as_echo "no" >&6; }
15819 fi
15820
15821
15822       if test "$GMSGFMT" != ":"; then
15823             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
15824        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15825       : ;
15826     else
15827       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
15828       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
15829 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
15830       GMSGFMT=":"
15831     fi
15832   fi
15833
15834       if test "$XGETTEXT" != ":"; then
15835             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
15836        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15837       : ;
15838     else
15839       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
15840 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
15841       XGETTEXT=":"
15842     fi
15843         rm -f messages.po
15844   fi
15845
15846   ac_config_commands="$ac_config_commands default-1"
15847
15848
15849
15850       if test "X$prefix" = "XNONE"; then
15851     acl_final_prefix="$ac_default_prefix"
15852   else
15853     acl_final_prefix="$prefix"
15854   fi
15855   if test "X$exec_prefix" = "XNONE"; then
15856     acl_final_exec_prefix='${prefix}'
15857   else
15858     acl_final_exec_prefix="$exec_prefix"
15859   fi
15860   acl_save_prefix="$prefix"
15861   prefix="$acl_final_prefix"
15862   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
15863   prefix="$acl_save_prefix"
15864
15865
15866 # Check whether --with-gnu-ld was given.
15867 if test "${with_gnu_ld+set}" = set; then :
15868   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15869 else
15870   with_gnu_ld=no
15871 fi
15872
15873 # Prepare PATH_SEPARATOR.
15874 # The user is always right.
15875 if test "${PATH_SEPARATOR+set}" != set; then
15876   echo "#! /bin/sh" >conf$$.sh
15877   echo  "exit 0"   >>conf$$.sh
15878   chmod +x conf$$.sh
15879   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15880     PATH_SEPARATOR=';'
15881   else
15882     PATH_SEPARATOR=:
15883   fi
15884   rm -f conf$$.sh
15885 fi
15886 ac_prog=ld
15887 if test "$GCC" = yes; then
15888   # Check if gcc -print-prog-name=ld gives a path.
15889   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
15890 $as_echo_n "checking for ld used by GCC... " >&6; }
15891   case $host in
15892   *-*-mingw*)
15893     # gcc leaves a trailing carriage return which upsets mingw
15894     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15895   *)
15896     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15897   esac
15898   case $ac_prog in
15899     # Accept absolute paths.
15900     [\\/]* | [A-Za-z]:[\\/]*)
15901       re_direlt='/[^/][^/]*/\.\./'
15902       # Canonicalize the path of ld
15903       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
15904       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15905         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
15906       done
15907       test -z "$LD" && LD="$ac_prog"
15908       ;;
15909   "")
15910     # If it fails, then pretend we aren't using GCC.
15911     ac_prog=ld
15912     ;;
15913   *)
15914     # If it is relative, then search for the first ld in PATH.
15915     with_gnu_ld=unknown
15916     ;;
15917   esac
15918 elif test "$with_gnu_ld" = yes; then
15919   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15920 $as_echo_n "checking for GNU ld... " >&6; }
15921 else
15922   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15923 $as_echo_n "checking for non-GNU ld... " >&6; }
15924 fi
15925 if ${acl_cv_path_LD+:} false; then :
15926   $as_echo_n "(cached) " >&6
15927 else
15928   if test -z "$LD"; then
15929   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
15930   for ac_dir in $PATH; do
15931     test -z "$ac_dir" && ac_dir=.
15932     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15933       acl_cv_path_LD="$ac_dir/$ac_prog"
15934       # Check to see if the program is GNU ld.  I'd rather use --version,
15935       # but apparently some GNU ld's only accept -v.
15936       # Break only if it was the GNU/non-GNU ld that we prefer.
15937       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
15938       *GNU* | *'with BFD'*)
15939         test "$with_gnu_ld" != no && break ;;
15940       *)
15941         test "$with_gnu_ld" != yes && break ;;
15942       esac
15943     fi
15944   done
15945   IFS="$ac_save_ifs"
15946 else
15947   acl_cv_path_LD="$LD" # Let the user override the test with a path.
15948 fi
15949 fi
15950
15951 LD="$acl_cv_path_LD"
15952 if test -n "$LD"; then
15953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15954 $as_echo "$LD" >&6; }
15955 else
15956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15957 $as_echo "no" >&6; }
15958 fi
15959 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15961 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15962 if ${acl_cv_prog_gnu_ld+:} false; then :
15963   $as_echo_n "(cached) " >&6
15964 else
15965   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15966 case `$LD -v 2>&1 </dev/null` in
15967 *GNU* | *'with BFD'*)
15968   acl_cv_prog_gnu_ld=yes ;;
15969 *)
15970   acl_cv_prog_gnu_ld=no ;;
15971 esac
15972 fi
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
15974 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
15975 with_gnu_ld=$acl_cv_prog_gnu_ld
15976
15977
15978
15979                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
15980 $as_echo_n "checking for shared library run path origin... " >&6; }
15981 if ${acl_cv_rpath+:} false; then :
15982   $as_echo_n "(cached) " >&6
15983 else
15984
15985     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
15986     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
15987     . ./conftest.sh
15988     rm -f ./conftest.sh
15989     acl_cv_rpath=done
15990
15991 fi
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
15993 $as_echo "$acl_cv_rpath" >&6; }
15994   wl="$acl_cv_wl"
15995   libext="$acl_cv_libext"
15996   shlibext="$acl_cv_shlibext"
15997   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
15998   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
15999   hardcode_direct="$acl_cv_hardcode_direct"
16000   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16001     # Check whether --enable-rpath was given.
16002 if test "${enable_rpath+set}" = set; then :
16003   enableval=$enable_rpath; :
16004 else
16005   enable_rpath=yes
16006 fi
16007
16008
16009
16010
16011
16012
16013
16014
16015     use_additional=yes
16016
16017   acl_save_prefix="$prefix"
16018   prefix="$acl_final_prefix"
16019   acl_save_exec_prefix="$exec_prefix"
16020   exec_prefix="$acl_final_exec_prefix"
16021
16022     eval additional_includedir=\"$includedir\"
16023     eval additional_libdir=\"$libdir\"
16024
16025   exec_prefix="$acl_save_exec_prefix"
16026   prefix="$acl_save_prefix"
16027
16028
16029 # Check whether --with-libiconv-prefix was given.
16030 if test "${with_libiconv_prefix+set}" = set; then :
16031   withval=$with_libiconv_prefix;
16032     if test "X$withval" = "Xno"; then
16033       use_additional=no
16034     else
16035       if test "X$withval" = "X"; then
16036
16037   acl_save_prefix="$prefix"
16038   prefix="$acl_final_prefix"
16039   acl_save_exec_prefix="$exec_prefix"
16040   exec_prefix="$acl_final_exec_prefix"
16041
16042           eval additional_includedir=\"$includedir\"
16043           eval additional_libdir=\"$libdir\"
16044
16045   exec_prefix="$acl_save_exec_prefix"
16046   prefix="$acl_save_prefix"
16047
16048       else
16049         additional_includedir="$withval/include"
16050         additional_libdir="$withval/lib"
16051       fi
16052     fi
16053
16054 fi
16055
16056       LIBICONV=
16057   LTLIBICONV=
16058   INCICONV=
16059   rpathdirs=
16060   ltrpathdirs=
16061   names_already_handled=
16062   names_next_round='iconv '
16063   while test -n "$names_next_round"; do
16064     names_this_round="$names_next_round"
16065     names_next_round=
16066     for name in $names_this_round; do
16067       already_handled=
16068       for n in $names_already_handled; do
16069         if test "$n" = "$name"; then
16070           already_handled=yes
16071           break
16072         fi
16073       done
16074       if test -z "$already_handled"; then
16075         names_already_handled="$names_already_handled $name"
16076                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16077         eval value=\"\$HAVE_LIB$uppername\"
16078         if test -n "$value"; then
16079           if test "$value" = yes; then
16080             eval value=\"\$LIB$uppername\"
16081             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16082             eval value=\"\$LTLIB$uppername\"
16083             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16084           else
16085                                     :
16086           fi
16087         else
16088                               found_dir=
16089           found_la=
16090           found_so=
16091           found_a=
16092           if test $use_additional = yes; then
16093             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16094               found_dir="$additional_libdir"
16095               found_so="$additional_libdir/lib$name.$shlibext"
16096               if test -f "$additional_libdir/lib$name.la"; then
16097                 found_la="$additional_libdir/lib$name.la"
16098               fi
16099             else
16100               if test -f "$additional_libdir/lib$name.$libext"; then
16101                 found_dir="$additional_libdir"
16102                 found_a="$additional_libdir/lib$name.$libext"
16103                 if test -f "$additional_libdir/lib$name.la"; then
16104                   found_la="$additional_libdir/lib$name.la"
16105                 fi
16106               fi
16107             fi
16108           fi
16109           if test "X$found_dir" = "X"; then
16110             for x in $LDFLAGS $LTLIBICONV; do
16111
16112   acl_save_prefix="$prefix"
16113   prefix="$acl_final_prefix"
16114   acl_save_exec_prefix="$exec_prefix"
16115   exec_prefix="$acl_final_exec_prefix"
16116   eval x=\"$x\"
16117   exec_prefix="$acl_save_exec_prefix"
16118   prefix="$acl_save_prefix"
16119
16120               case "$x" in
16121                 -L*)
16122                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16123                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16124                     found_dir="$dir"
16125                     found_so="$dir/lib$name.$shlibext"
16126                     if test -f "$dir/lib$name.la"; then
16127                       found_la="$dir/lib$name.la"
16128                     fi
16129                   else
16130                     if test -f "$dir/lib$name.$libext"; then
16131                       found_dir="$dir"
16132                       found_a="$dir/lib$name.$libext"
16133                       if test -f "$dir/lib$name.la"; then
16134                         found_la="$dir/lib$name.la"
16135                       fi
16136                     fi
16137                   fi
16138                   ;;
16139               esac
16140               if test "X$found_dir" != "X"; then
16141                 break
16142               fi
16143             done
16144           fi
16145           if test "X$found_dir" != "X"; then
16146                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16147             if test "X$found_so" != "X"; then
16148                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16149                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16150               else
16151                                                                                 haveit=
16152                 for x in $ltrpathdirs; do
16153                   if test "X$x" = "X$found_dir"; then
16154                     haveit=yes
16155                     break
16156                   fi
16157                 done
16158                 if test -z "$haveit"; then
16159                   ltrpathdirs="$ltrpathdirs $found_dir"
16160                 fi
16161                                 if test "$hardcode_direct" = yes; then
16162                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16163                 else
16164                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16165                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16166                                                             haveit=
16167                     for x in $rpathdirs; do
16168                       if test "X$x" = "X$found_dir"; then
16169                         haveit=yes
16170                         break
16171                       fi
16172                     done
16173                     if test -z "$haveit"; then
16174                       rpathdirs="$rpathdirs $found_dir"
16175                     fi
16176                   else
16177                                                                                 haveit=
16178                     for x in $LDFLAGS $LIBICONV; do
16179
16180   acl_save_prefix="$prefix"
16181   prefix="$acl_final_prefix"
16182   acl_save_exec_prefix="$exec_prefix"
16183   exec_prefix="$acl_final_exec_prefix"
16184   eval x=\"$x\"
16185   exec_prefix="$acl_save_exec_prefix"
16186   prefix="$acl_save_prefix"
16187
16188                       if test "X$x" = "X-L$found_dir"; then
16189                         haveit=yes
16190                         break
16191                       fi
16192                     done
16193                     if test -z "$haveit"; then
16194                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16195                     fi
16196                     if test "$hardcode_minus_L" != no; then
16197                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16198                     else
16199                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16200                     fi
16201                   fi
16202                 fi
16203               fi
16204             else
16205               if test "X$found_a" != "X"; then
16206                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16207               else
16208                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16209               fi
16210             fi
16211                         additional_includedir=
16212             case "$found_dir" in
16213               */lib | */lib/)
16214                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16215                 additional_includedir="$basedir/include"
16216                 ;;
16217             esac
16218             if test "X$additional_includedir" != "X"; then
16219                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
16220                 haveit=
16221                 if test "X$additional_includedir" = "X/usr/local/include"; then
16222                   if test -n "$GCC"; then
16223                     case $host_os in
16224                       linux*) haveit=yes;;
16225                     esac
16226                   fi
16227                 fi
16228                 if test -z "$haveit"; then
16229                   for x in $CPPFLAGS $INCICONV; do
16230
16231   acl_save_prefix="$prefix"
16232   prefix="$acl_final_prefix"
16233   acl_save_exec_prefix="$exec_prefix"
16234   exec_prefix="$acl_final_exec_prefix"
16235   eval x=\"$x\"
16236   exec_prefix="$acl_save_exec_prefix"
16237   prefix="$acl_save_prefix"
16238
16239                     if test "X$x" = "X-I$additional_includedir"; then
16240                       haveit=yes
16241                       break
16242                     fi
16243                   done
16244                   if test -z "$haveit"; then
16245                     if test -d "$additional_includedir"; then
16246                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16247                     fi
16248                   fi
16249                 fi
16250               fi
16251             fi
16252                         if test -n "$found_la"; then
16253                                                         save_libdir="$libdir"
16254               case "$found_la" in
16255                 */* | *\\*) . "$found_la" ;;
16256                 *) . "./$found_la" ;;
16257               esac
16258               libdir="$save_libdir"
16259                             for dep in $dependency_libs; do
16260                 case "$dep" in
16261                   -L*)
16262                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16263                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
16264                       haveit=
16265                       if test "X$additional_libdir" = "X/usr/local/lib"; then
16266                         if test -n "$GCC"; then
16267                           case $host_os in
16268                             linux*) haveit=yes;;
16269                           esac
16270                         fi
16271                       fi
16272                       if test -z "$haveit"; then
16273                         haveit=
16274                         for x in $LDFLAGS $LIBICONV; do
16275
16276   acl_save_prefix="$prefix"
16277   prefix="$acl_final_prefix"
16278   acl_save_exec_prefix="$exec_prefix"
16279   exec_prefix="$acl_final_exec_prefix"
16280   eval x=\"$x\"
16281   exec_prefix="$acl_save_exec_prefix"
16282   prefix="$acl_save_prefix"
16283
16284                           if test "X$x" = "X-L$additional_libdir"; then
16285                             haveit=yes
16286                             break
16287                           fi
16288                         done
16289                         if test -z "$haveit"; then
16290                           if test -d "$additional_libdir"; then
16291                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16292                           fi
16293                         fi
16294                         haveit=
16295                         for x in $LDFLAGS $LTLIBICONV; do
16296
16297   acl_save_prefix="$prefix"
16298   prefix="$acl_final_prefix"
16299   acl_save_exec_prefix="$exec_prefix"
16300   exec_prefix="$acl_final_exec_prefix"
16301   eval x=\"$x\"
16302   exec_prefix="$acl_save_exec_prefix"
16303   prefix="$acl_save_prefix"
16304
16305                           if test "X$x" = "X-L$additional_libdir"; then
16306                             haveit=yes
16307                             break
16308                           fi
16309                         done
16310                         if test -z "$haveit"; then
16311                           if test -d "$additional_libdir"; then
16312                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16313                           fi
16314                         fi
16315                       fi
16316                     fi
16317                     ;;
16318                   -R*)
16319                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
16320                     if test "$enable_rpath" != no; then
16321                                                                   haveit=
16322                       for x in $rpathdirs; do
16323                         if test "X$x" = "X$dir"; then
16324                           haveit=yes
16325                           break
16326                         fi
16327                       done
16328                       if test -z "$haveit"; then
16329                         rpathdirs="$rpathdirs $dir"
16330                       fi
16331                                                                   haveit=
16332                       for x in $ltrpathdirs; do
16333                         if test "X$x" = "X$dir"; then
16334                           haveit=yes
16335                           break
16336                         fi
16337                       done
16338                       if test -z "$haveit"; then
16339                         ltrpathdirs="$ltrpathdirs $dir"
16340                       fi
16341                     fi
16342                     ;;
16343                   -l*)
16344                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16345                     ;;
16346                   *.la)
16347                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16348                     ;;
16349                   *)
16350                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16351                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16352                     ;;
16353                 esac
16354               done
16355             fi
16356           else
16357                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16358             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16359           fi
16360         fi
16361       fi
16362     done
16363   done
16364   if test "X$rpathdirs" != "X"; then
16365     if test -n "$hardcode_libdir_separator"; then
16366                         alldirs=
16367       for found_dir in $rpathdirs; do
16368         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16369       done
16370             acl_save_libdir="$libdir"
16371       libdir="$alldirs"
16372       eval flag=\"$hardcode_libdir_flag_spec\"
16373       libdir="$acl_save_libdir"
16374       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16375     else
16376             for found_dir in $rpathdirs; do
16377         acl_save_libdir="$libdir"
16378         libdir="$found_dir"
16379         eval flag=\"$hardcode_libdir_flag_spec\"
16380         libdir="$acl_save_libdir"
16381         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16382       done
16383     fi
16384   fi
16385   if test "X$ltrpathdirs" != "X"; then
16386             for found_dir in $ltrpathdirs; do
16387       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16388     done
16389   fi
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16409 $as_echo_n "checking whether NLS is requested... " >&6; }
16410     # Check whether --enable-nls was given.
16411 if test "${enable_nls+set}" = set; then :
16412   enableval=$enable_nls; USE_NLS=$enableval
16413 else
16414   USE_NLS=yes
16415 fi
16416
16417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16418 $as_echo "$USE_NLS" >&6; }
16419
16420
16421
16422
16423   LIBINTL=
16424   LTLIBINTL=
16425   POSUB=
16426
16427     if test "$USE_NLS" = "yes"; then
16428     gt_use_preinstalled_gnugettext=no
16429
16430
16431
16432
16433
16434
16435         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
16436 $as_echo_n "checking for GNU gettext in libc... " >&6; }
16437 if ${gt_cv_func_gnugettext1_libc+:} false; then :
16438   $as_echo_n "(cached) " >&6
16439 else
16440   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16441 /* end confdefs.h.  */
16442 #include <libintl.h>
16443 extern int _nl_msg_cat_cntr;
16444 extern int *_nl_domain_bindings;
16445 int
16446 main ()
16447 {
16448 bindtextdomain ("", "");
16449 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
16450   ;
16451   return 0;
16452 }
16453 _ACEOF
16454 if ac_fn_c_try_link "$LINENO"; then :
16455   gt_cv_func_gnugettext1_libc=yes
16456 else
16457   gt_cv_func_gnugettext1_libc=no
16458 fi
16459 rm -f core conftest.err conftest.$ac_objext \
16460     conftest$ac_exeext conftest.$ac_ext
16461 fi
16462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
16463 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
16464
16465         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
16466
16467
16468
16469
16470
16471           am_save_CPPFLAGS="$CPPFLAGS"
16472
16473   for element in $INCICONV; do
16474     haveit=
16475     for x in $CPPFLAGS; do
16476
16477   acl_save_prefix="$prefix"
16478   prefix="$acl_final_prefix"
16479   acl_save_exec_prefix="$exec_prefix"
16480   exec_prefix="$acl_final_exec_prefix"
16481   eval x=\"$x\"
16482   exec_prefix="$acl_save_exec_prefix"
16483   prefix="$acl_save_prefix"
16484
16485       if test "X$x" = "X$element"; then
16486         haveit=yes
16487         break
16488       fi
16489     done
16490     if test -z "$haveit"; then
16491       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16492     fi
16493   done
16494
16495
16496   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
16497 $as_echo_n "checking for iconv... " >&6; }
16498 if ${am_cv_func_iconv+:} false; then :
16499   $as_echo_n "(cached) " >&6
16500 else
16501
16502     am_cv_func_iconv="no, consider installing GNU libiconv"
16503     am_cv_lib_iconv=no
16504     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16505 /* end confdefs.h.  */
16506 #include <stdlib.h>
16507 #include <iconv.h>
16508 int
16509 main ()
16510 {
16511 iconv_t cd = iconv_open("","");
16512        iconv(cd,NULL,NULL,NULL,NULL);
16513        iconv_close(cd);
16514   ;
16515   return 0;
16516 }
16517 _ACEOF
16518 if ac_fn_c_try_link "$LINENO"; then :
16519   am_cv_func_iconv=yes
16520 fi
16521 rm -f core conftest.err conftest.$ac_objext \
16522     conftest$ac_exeext conftest.$ac_ext
16523     if test "$am_cv_func_iconv" != yes; then
16524       am_save_LIBS="$LIBS"
16525       LIBS="$LIBS $LIBICONV"
16526       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16527 /* end confdefs.h.  */
16528 #include <stdlib.h>
16529 #include <iconv.h>
16530 int
16531 main ()
16532 {
16533 iconv_t cd = iconv_open("","");
16534          iconv(cd,NULL,NULL,NULL,NULL);
16535          iconv_close(cd);
16536   ;
16537   return 0;
16538 }
16539 _ACEOF
16540 if ac_fn_c_try_link "$LINENO"; then :
16541   am_cv_lib_iconv=yes
16542         am_cv_func_iconv=yes
16543 fi
16544 rm -f core conftest.err conftest.$ac_objext \
16545     conftest$ac_exeext conftest.$ac_ext
16546       LIBS="$am_save_LIBS"
16547     fi
16548
16549 fi
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
16551 $as_echo "$am_cv_func_iconv" >&6; }
16552   if test "$am_cv_func_iconv" = yes; then
16553
16554 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
16555
16556   fi
16557   if test "$am_cv_lib_iconv" = yes; then
16558     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
16559 $as_echo_n "checking how to link with libiconv... " >&6; }
16560     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
16561 $as_echo "$LIBICONV" >&6; }
16562   else
16563             CPPFLAGS="$am_save_CPPFLAGS"
16564     LIBICONV=
16565     LTLIBICONV=
16566   fi
16567
16568
16569
16570
16571
16572
16573     use_additional=yes
16574
16575   acl_save_prefix="$prefix"
16576   prefix="$acl_final_prefix"
16577   acl_save_exec_prefix="$exec_prefix"
16578   exec_prefix="$acl_final_exec_prefix"
16579
16580     eval additional_includedir=\"$includedir\"
16581     eval additional_libdir=\"$libdir\"
16582
16583   exec_prefix="$acl_save_exec_prefix"
16584   prefix="$acl_save_prefix"
16585
16586
16587 # Check whether --with-libintl-prefix was given.
16588 if test "${with_libintl_prefix+set}" = set; then :
16589   withval=$with_libintl_prefix;
16590     if test "X$withval" = "Xno"; then
16591       use_additional=no
16592     else
16593       if test "X$withval" = "X"; then
16594
16595   acl_save_prefix="$prefix"
16596   prefix="$acl_final_prefix"
16597   acl_save_exec_prefix="$exec_prefix"
16598   exec_prefix="$acl_final_exec_prefix"
16599
16600           eval additional_includedir=\"$includedir\"
16601           eval additional_libdir=\"$libdir\"
16602
16603   exec_prefix="$acl_save_exec_prefix"
16604   prefix="$acl_save_prefix"
16605
16606       else
16607         additional_includedir="$withval/include"
16608         additional_libdir="$withval/lib"
16609       fi
16610     fi
16611
16612 fi
16613
16614       LIBINTL=
16615   LTLIBINTL=
16616   INCINTL=
16617   rpathdirs=
16618   ltrpathdirs=
16619   names_already_handled=
16620   names_next_round='intl '
16621   while test -n "$names_next_round"; do
16622     names_this_round="$names_next_round"
16623     names_next_round=
16624     for name in $names_this_round; do
16625       already_handled=
16626       for n in $names_already_handled; do
16627         if test "$n" = "$name"; then
16628           already_handled=yes
16629           break
16630         fi
16631       done
16632       if test -z "$already_handled"; then
16633         names_already_handled="$names_already_handled $name"
16634                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16635         eval value=\"\$HAVE_LIB$uppername\"
16636         if test -n "$value"; then
16637           if test "$value" = yes; then
16638             eval value=\"\$LIB$uppername\"
16639             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
16640             eval value=\"\$LTLIB$uppername\"
16641             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
16642           else
16643                                     :
16644           fi
16645         else
16646                               found_dir=
16647           found_la=
16648           found_so=
16649           found_a=
16650           if test $use_additional = yes; then
16651             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16652               found_dir="$additional_libdir"
16653               found_so="$additional_libdir/lib$name.$shlibext"
16654               if test -f "$additional_libdir/lib$name.la"; then
16655                 found_la="$additional_libdir/lib$name.la"
16656               fi
16657             else
16658               if test -f "$additional_libdir/lib$name.$libext"; then
16659                 found_dir="$additional_libdir"
16660                 found_a="$additional_libdir/lib$name.$libext"
16661                 if test -f "$additional_libdir/lib$name.la"; then
16662                   found_la="$additional_libdir/lib$name.la"
16663                 fi
16664               fi
16665             fi
16666           fi
16667           if test "X$found_dir" = "X"; then
16668             for x in $LDFLAGS $LTLIBINTL; do
16669
16670   acl_save_prefix="$prefix"
16671   prefix="$acl_final_prefix"
16672   acl_save_exec_prefix="$exec_prefix"
16673   exec_prefix="$acl_final_exec_prefix"
16674   eval x=\"$x\"
16675   exec_prefix="$acl_save_exec_prefix"
16676   prefix="$acl_save_prefix"
16677
16678               case "$x" in
16679                 -L*)
16680                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16681                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16682                     found_dir="$dir"
16683                     found_so="$dir/lib$name.$shlibext"
16684                     if test -f "$dir/lib$name.la"; then
16685                       found_la="$dir/lib$name.la"
16686                     fi
16687                   else
16688                     if test -f "$dir/lib$name.$libext"; then
16689                       found_dir="$dir"
16690                       found_a="$dir/lib$name.$libext"
16691                       if test -f "$dir/lib$name.la"; then
16692                         found_la="$dir/lib$name.la"
16693                       fi
16694                     fi
16695                   fi
16696                   ;;
16697               esac
16698               if test "X$found_dir" != "X"; then
16699                 break
16700               fi
16701             done
16702           fi
16703           if test "X$found_dir" != "X"; then
16704                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
16705             if test "X$found_so" != "X"; then
16706                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16707                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16708               else
16709                                                                                 haveit=
16710                 for x in $ltrpathdirs; do
16711                   if test "X$x" = "X$found_dir"; then
16712                     haveit=yes
16713                     break
16714                   fi
16715                 done
16716                 if test -z "$haveit"; then
16717                   ltrpathdirs="$ltrpathdirs $found_dir"
16718                 fi
16719                                 if test "$hardcode_direct" = yes; then
16720                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16721                 else
16722                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16723                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16724                                                             haveit=
16725                     for x in $rpathdirs; do
16726                       if test "X$x" = "X$found_dir"; then
16727                         haveit=yes
16728                         break
16729                       fi
16730                     done
16731                     if test -z "$haveit"; then
16732                       rpathdirs="$rpathdirs $found_dir"
16733                     fi
16734                   else
16735                                                                                 haveit=
16736                     for x in $LDFLAGS $LIBINTL; do
16737
16738   acl_save_prefix="$prefix"
16739   prefix="$acl_final_prefix"
16740   acl_save_exec_prefix="$exec_prefix"
16741   exec_prefix="$acl_final_exec_prefix"
16742   eval x=\"$x\"
16743   exec_prefix="$acl_save_exec_prefix"
16744   prefix="$acl_save_prefix"
16745
16746                       if test "X$x" = "X-L$found_dir"; then
16747                         haveit=yes
16748                         break
16749                       fi
16750                     done
16751                     if test -z "$haveit"; then
16752                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
16753                     fi
16754                     if test "$hardcode_minus_L" != no; then
16755                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16756                     else
16757                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16758                     fi
16759                   fi
16760                 fi
16761               fi
16762             else
16763               if test "X$found_a" != "X"; then
16764                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
16765               else
16766                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
16767               fi
16768             fi
16769                         additional_includedir=
16770             case "$found_dir" in
16771               */lib | */lib/)
16772                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16773                 additional_includedir="$basedir/include"
16774                 ;;
16775             esac
16776             if test "X$additional_includedir" != "X"; then
16777                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
16778                 haveit=
16779                 if test "X$additional_includedir" = "X/usr/local/include"; then
16780                   if test -n "$GCC"; then
16781                     case $host_os in
16782                       linux*) haveit=yes;;
16783                     esac
16784                   fi
16785                 fi
16786                 if test -z "$haveit"; then
16787                   for x in $CPPFLAGS $INCINTL; do
16788
16789   acl_save_prefix="$prefix"
16790   prefix="$acl_final_prefix"
16791   acl_save_exec_prefix="$exec_prefix"
16792   exec_prefix="$acl_final_exec_prefix"
16793   eval x=\"$x\"
16794   exec_prefix="$acl_save_exec_prefix"
16795   prefix="$acl_save_prefix"
16796
16797                     if test "X$x" = "X-I$additional_includedir"; then
16798                       haveit=yes
16799                       break
16800                     fi
16801                   done
16802                   if test -z "$haveit"; then
16803                     if test -d "$additional_includedir"; then
16804                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
16805                     fi
16806                   fi
16807                 fi
16808               fi
16809             fi
16810                         if test -n "$found_la"; then
16811                                                         save_libdir="$libdir"
16812               case "$found_la" in
16813                 */* | *\\*) . "$found_la" ;;
16814                 *) . "./$found_la" ;;
16815               esac
16816               libdir="$save_libdir"
16817                             for dep in $dependency_libs; do
16818                 case "$dep" in
16819                   -L*)
16820                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16821                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
16822                       haveit=
16823                       if test "X$additional_libdir" = "X/usr/local/lib"; then
16824                         if test -n "$GCC"; then
16825                           case $host_os in
16826                             linux*) haveit=yes;;
16827                           esac
16828                         fi
16829                       fi
16830                       if test -z "$haveit"; then
16831                         haveit=
16832                         for x in $LDFLAGS $LIBINTL; do
16833
16834   acl_save_prefix="$prefix"
16835   prefix="$acl_final_prefix"
16836   acl_save_exec_prefix="$exec_prefix"
16837   exec_prefix="$acl_final_exec_prefix"
16838   eval x=\"$x\"
16839   exec_prefix="$acl_save_exec_prefix"
16840   prefix="$acl_save_prefix"
16841
16842                           if test "X$x" = "X-L$additional_libdir"; then
16843                             haveit=yes
16844                             break
16845                           fi
16846                         done
16847                         if test -z "$haveit"; then
16848                           if test -d "$additional_libdir"; then
16849                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
16850                           fi
16851                         fi
16852                         haveit=
16853                         for x in $LDFLAGS $LTLIBINTL; do
16854
16855   acl_save_prefix="$prefix"
16856   prefix="$acl_final_prefix"
16857   acl_save_exec_prefix="$exec_prefix"
16858   exec_prefix="$acl_final_exec_prefix"
16859   eval x=\"$x\"
16860   exec_prefix="$acl_save_exec_prefix"
16861   prefix="$acl_save_prefix"
16862
16863                           if test "X$x" = "X-L$additional_libdir"; then
16864                             haveit=yes
16865                             break
16866                           fi
16867                         done
16868                         if test -z "$haveit"; then
16869                           if test -d "$additional_libdir"; then
16870                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
16871                           fi
16872                         fi
16873                       fi
16874                     fi
16875                     ;;
16876                   -R*)
16877                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
16878                     if test "$enable_rpath" != no; then
16879                                                                   haveit=
16880                       for x in $rpathdirs; do
16881                         if test "X$x" = "X$dir"; then
16882                           haveit=yes
16883                           break
16884                         fi
16885                       done
16886                       if test -z "$haveit"; then
16887                         rpathdirs="$rpathdirs $dir"
16888                       fi
16889                                                                   haveit=
16890                       for x in $ltrpathdirs; do
16891                         if test "X$x" = "X$dir"; then
16892                           haveit=yes
16893                           break
16894                         fi
16895                       done
16896                       if test -z "$haveit"; then
16897                         ltrpathdirs="$ltrpathdirs $dir"
16898                       fi
16899                     fi
16900                     ;;
16901                   -l*)
16902                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16903                     ;;
16904                   *.la)
16905                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16906                     ;;
16907                   *)
16908                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
16909                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
16910                     ;;
16911                 esac
16912               done
16913             fi
16914           else
16915                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16916             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
16917           fi
16918         fi
16919       fi
16920     done
16921   done
16922   if test "X$rpathdirs" != "X"; then
16923     if test -n "$hardcode_libdir_separator"; then
16924                         alldirs=
16925       for found_dir in $rpathdirs; do
16926         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16927       done
16928             acl_save_libdir="$libdir"
16929       libdir="$alldirs"
16930       eval flag=\"$hardcode_libdir_flag_spec\"
16931       libdir="$acl_save_libdir"
16932       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16933     else
16934             for found_dir in $rpathdirs; do
16935         acl_save_libdir="$libdir"
16936         libdir="$found_dir"
16937         eval flag=\"$hardcode_libdir_flag_spec\"
16938         libdir="$acl_save_libdir"
16939         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16940       done
16941     fi
16942   fi
16943   if test "X$ltrpathdirs" != "X"; then
16944             for found_dir in $ltrpathdirs; do
16945       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
16946     done
16947   fi
16948
16949           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
16950 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
16951 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
16952   $as_echo_n "(cached) " >&6
16953 else
16954   gt_save_CPPFLAGS="$CPPFLAGS"
16955             CPPFLAGS="$CPPFLAGS $INCINTL"
16956             gt_save_LIBS="$LIBS"
16957             LIBS="$LIBS $LIBINTL"
16958                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16959 /* end confdefs.h.  */
16960 #include <libintl.h>
16961 extern int _nl_msg_cat_cntr;
16962 extern
16963 #ifdef __cplusplus
16964 "C"
16965 #endif
16966 const char *_nl_expand_alias ();
16967 int
16968 main ()
16969 {
16970 bindtextdomain ("", "");
16971 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
16972   ;
16973   return 0;
16974 }
16975 _ACEOF
16976 if ac_fn_c_try_link "$LINENO"; then :
16977   gt_cv_func_gnugettext1_libintl=yes
16978 else
16979   gt_cv_func_gnugettext1_libintl=no
16980 fi
16981 rm -f core conftest.err conftest.$ac_objext \
16982     conftest$ac_exeext conftest.$ac_ext
16983                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
16984               LIBS="$LIBS $LIBICONV"
16985               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16986 /* end confdefs.h.  */
16987 #include <libintl.h>
16988 extern int _nl_msg_cat_cntr;
16989 extern
16990 #ifdef __cplusplus
16991 "C"
16992 #endif
16993 const char *_nl_expand_alias ();
16994 int
16995 main ()
16996 {
16997 bindtextdomain ("", "");
16998 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
16999   ;
17000   return 0;
17001 }
17002 _ACEOF
17003 if ac_fn_c_try_link "$LINENO"; then :
17004   LIBINTL="$LIBINTL $LIBICONV"
17005                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17006                 gt_cv_func_gnugettext1_libintl=yes
17007
17008 fi
17009 rm -f core conftest.err conftest.$ac_objext \
17010     conftest$ac_exeext conftest.$ac_ext
17011             fi
17012             CPPFLAGS="$gt_save_CPPFLAGS"
17013             LIBS="$gt_save_LIBS"
17014 fi
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
17016 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
17017         fi
17018
17019                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
17020            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
17021                 && test "$PACKAGE" != gettext-runtime \
17022                 && test "$PACKAGE" != gettext-tools; }; then
17023           gt_use_preinstalled_gnugettext=yes
17024         else
17025                     LIBINTL=
17026           LTLIBINTL=
17027           INCINTL=
17028         fi
17029
17030
17031
17032     if test "$gt_use_preinstalled_gnugettext" = "yes" \
17033        || test "$nls_cv_use_gnu_gettext" = "yes"; then
17034
17035 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
17036
17037     else
17038       USE_NLS=no
17039     fi
17040   fi
17041
17042   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17043 $as_echo_n "checking whether to use NLS... " >&6; }
17044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17045 $as_echo "$USE_NLS" >&6; }
17046   if test "$USE_NLS" = "yes"; then
17047     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
17048 $as_echo_n "checking where the gettext function comes from... " >&6; }
17049     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17050       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17051         gt_source="external libintl"
17052       else
17053         gt_source="libc"
17054       fi
17055     else
17056       gt_source="included intl directory"
17057     fi
17058     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
17059 $as_echo "$gt_source" >&6; }
17060   fi
17061
17062   if test "$USE_NLS" = "yes"; then
17063
17064     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17065       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17066         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
17067 $as_echo_n "checking how to link with libintl... " >&6; }
17068         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
17069 $as_echo "$LIBINTL" >&6; }
17070
17071   for element in $INCINTL; do
17072     haveit=
17073     for x in $CPPFLAGS; do
17074
17075   acl_save_prefix="$prefix"
17076   prefix="$acl_final_prefix"
17077   acl_save_exec_prefix="$exec_prefix"
17078   exec_prefix="$acl_final_exec_prefix"
17079   eval x=\"$x\"
17080   exec_prefix="$acl_save_exec_prefix"
17081   prefix="$acl_save_prefix"
17082
17083       if test "X$x" = "X$element"; then
17084         haveit=yes
17085         break
17086       fi
17087     done
17088     if test -z "$haveit"; then
17089       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17090     fi
17091   done
17092
17093       fi
17094
17095
17096 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
17097
17098
17099 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
17100
17101     fi
17102
17103         POSUB=po
17104   fi
17105
17106
17107
17108     INTLLIBS="$LIBINTL"
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119 # Prepare PATH_SEPARATOR.
17120 # The user is always right.
17121 if test "${PATH_SEPARATOR+set}" != set; then
17122   echo "#! /bin/sh" >conf$$.sh
17123   echo  "exit 0"   >>conf$$.sh
17124   chmod +x conf$$.sh
17125   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17126     PATH_SEPARATOR=';'
17127   else
17128     PATH_SEPARATOR=:
17129   fi
17130   rm -f conf$$.sh
17131 fi
17132
17133 # Find out how to test for executable files. Don't use a zero-byte file,
17134 # as systems may use methods other than mode bits to determine executability.
17135 cat >conf$$.file <<_ASEOF
17136 #! /bin/sh
17137 exit 0
17138 _ASEOF
17139 chmod +x conf$$.file
17140 if test -x conf$$.file >/dev/null 2>&1; then
17141   ac_executable_p="test -x"
17142 else
17143   ac_executable_p="test -f"
17144 fi
17145 rm -f conf$$.file
17146
17147 # Extract the first word of "msgfmt", so it can be a program name with args.
17148 set dummy msgfmt; ac_word=$2
17149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17150 $as_echo_n "checking for $ac_word... " >&6; }
17151 if ${ac_cv_path_MSGFMT+:} false; then :
17152   $as_echo_n "(cached) " >&6
17153 else
17154   case "$MSGFMT" in
17155   [\\/]* | ?:[\\/]*)
17156     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17157     ;;
17158   *)
17159     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17160     for ac_dir in $PATH; do
17161       IFS="$ac_save_IFS"
17162       test -z "$ac_dir" && ac_dir=.
17163       for ac_exec_ext in '' $ac_executable_extensions; do
17164         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17165           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
17166      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17167             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17168             break 2
17169           fi
17170         fi
17171       done
17172     done
17173     IFS="$ac_save_IFS"
17174   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17175     ;;
17176 esac
17177 fi
17178 MSGFMT="$ac_cv_path_MSGFMT"
17179 if test "$MSGFMT" != ":"; then
17180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17181 $as_echo "$MSGFMT" >&6; }
17182 else
17183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17184 $as_echo "no" >&6; }
17185 fi
17186
17187   # Extract the first word of "gmsgfmt", so it can be a program name with args.
17188 set dummy gmsgfmt; ac_word=$2
17189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17190 $as_echo_n "checking for $ac_word... " >&6; }
17191 if ${ac_cv_path_GMSGFMT+:} false; then :
17192   $as_echo_n "(cached) " >&6
17193 else
17194   case $GMSGFMT in
17195   [\\/]* | ?:[\\/]*)
17196   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17197   ;;
17198   *)
17199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17200 for as_dir in $PATH
17201 do
17202   IFS=$as_save_IFS
17203   test -z "$as_dir" && as_dir=.
17204     for ac_exec_ext in '' $ac_executable_extensions; do
17205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17206     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17208     break 2
17209   fi
17210 done
17211   done
17212 IFS=$as_save_IFS
17213
17214   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17215   ;;
17216 esac
17217 fi
17218 GMSGFMT=$ac_cv_path_GMSGFMT
17219 if test -n "$GMSGFMT"; then
17220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17221 $as_echo "$GMSGFMT" >&6; }
17222 else
17223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17224 $as_echo "no" >&6; }
17225 fi
17226
17227
17228
17229
17230 # Prepare PATH_SEPARATOR.
17231 # The user is always right.
17232 if test "${PATH_SEPARATOR+set}" != set; then
17233   echo "#! /bin/sh" >conf$$.sh
17234   echo  "exit 0"   >>conf$$.sh
17235   chmod +x conf$$.sh
17236   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17237     PATH_SEPARATOR=';'
17238   else
17239     PATH_SEPARATOR=:
17240   fi
17241   rm -f conf$$.sh
17242 fi
17243
17244 # Find out how to test for executable files. Don't use a zero-byte file,
17245 # as systems may use methods other than mode bits to determine executability.
17246 cat >conf$$.file <<_ASEOF
17247 #! /bin/sh
17248 exit 0
17249 _ASEOF
17250 chmod +x conf$$.file
17251 if test -x conf$$.file >/dev/null 2>&1; then
17252   ac_executable_p="test -x"
17253 else
17254   ac_executable_p="test -f"
17255 fi
17256 rm -f conf$$.file
17257
17258 # Extract the first word of "xgettext", so it can be a program name with args.
17259 set dummy xgettext; ac_word=$2
17260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17261 $as_echo_n "checking for $ac_word... " >&6; }
17262 if ${ac_cv_path_XGETTEXT+:} false; then :
17263   $as_echo_n "(cached) " >&6
17264 else
17265   case "$XGETTEXT" in
17266   [\\/]* | ?:[\\/]*)
17267     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17268     ;;
17269   *)
17270     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17271     for ac_dir in $PATH; do
17272       IFS="$ac_save_IFS"
17273       test -z "$ac_dir" && ac_dir=.
17274       for ac_exec_ext in '' $ac_executable_extensions; do
17275         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17276           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17277      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17278             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17279             break 2
17280           fi
17281         fi
17282       done
17283     done
17284     IFS="$ac_save_IFS"
17285   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17286     ;;
17287 esac
17288 fi
17289 XGETTEXT="$ac_cv_path_XGETTEXT"
17290 if test "$XGETTEXT" != ":"; then
17291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17292 $as_echo "$XGETTEXT" >&6; }
17293 else
17294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17295 $as_echo "no" >&6; }
17296 fi
17297
17298     rm -f messages.po
17299
17300
17301 # Prepare PATH_SEPARATOR.
17302 # The user is always right.
17303 if test "${PATH_SEPARATOR+set}" != set; then
17304   echo "#! /bin/sh" >conf$$.sh
17305   echo  "exit 0"   >>conf$$.sh
17306   chmod +x conf$$.sh
17307   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17308     PATH_SEPARATOR=';'
17309   else
17310     PATH_SEPARATOR=:
17311   fi
17312   rm -f conf$$.sh
17313 fi
17314
17315 # Find out how to test for executable files. Don't use a zero-byte file,
17316 # as systems may use methods other than mode bits to determine executability.
17317 cat >conf$$.file <<_ASEOF
17318 #! /bin/sh
17319 exit 0
17320 _ASEOF
17321 chmod +x conf$$.file
17322 if test -x conf$$.file >/dev/null 2>&1; then
17323   ac_executable_p="test -x"
17324 else
17325   ac_executable_p="test -f"
17326 fi
17327 rm -f conf$$.file
17328
17329 # Extract the first word of "msgmerge", so it can be a program name with args.
17330 set dummy msgmerge; ac_word=$2
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17332 $as_echo_n "checking for $ac_word... " >&6; }
17333 if ${ac_cv_path_MSGMERGE+:} false; then :
17334   $as_echo_n "(cached) " >&6
17335 else
17336   case "$MSGMERGE" in
17337   [\\/]* | ?:[\\/]*)
17338     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17339     ;;
17340   *)
17341     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17342     for ac_dir in $PATH; do
17343       IFS="$ac_save_IFS"
17344       test -z "$ac_dir" && ac_dir=.
17345       for ac_exec_ext in '' $ac_executable_extensions; do
17346         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17347           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
17348             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17349             break 2
17350           fi
17351         fi
17352       done
17353     done
17354     IFS="$ac_save_IFS"
17355   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17356     ;;
17357 esac
17358 fi
17359 MSGMERGE="$ac_cv_path_MSGMERGE"
17360 if test "$MSGMERGE" != ":"; then
17361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17362 $as_echo "$MSGMERGE" >&6; }
17363 else
17364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17365 $as_echo "no" >&6; }
17366 fi
17367
17368
17369       if test "$GMSGFMT" != ":"; then
17370             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17371        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17372       : ;
17373     else
17374       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17375       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17376 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17377       GMSGFMT=":"
17378     fi
17379   fi
17380
17381       if test "$XGETTEXT" != ":"; then
17382             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17383        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17384       : ;
17385     else
17386       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17387 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17388       XGETTEXT=":"
17389     fi
17390         rm -f messages.po
17391   fi
17392
17393   ac_config_commands="$ac_config_commands default-2"
17394
17395
17396
17397
17398
17399
17400
17401           am_save_CPPFLAGS="$CPPFLAGS"
17402
17403   for element in $INCICONV; do
17404     haveit=
17405     for x in $CPPFLAGS; do
17406
17407   acl_save_prefix="$prefix"
17408   prefix="$acl_final_prefix"
17409   acl_save_exec_prefix="$exec_prefix"
17410   exec_prefix="$acl_final_exec_prefix"
17411   eval x=\"$x\"
17412   exec_prefix="$acl_save_exec_prefix"
17413   prefix="$acl_save_prefix"
17414
17415       if test "X$x" = "X$element"; then
17416         haveit=yes
17417         break
17418       fi
17419     done
17420     if test -z "$haveit"; then
17421       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17422     fi
17423   done
17424
17425
17426   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17427 $as_echo_n "checking for iconv... " >&6; }
17428 if ${am_cv_func_iconv+:} false; then :
17429   $as_echo_n "(cached) " >&6
17430 else
17431
17432     am_cv_func_iconv="no, consider installing GNU libiconv"
17433     am_cv_lib_iconv=no
17434     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17435 /* end confdefs.h.  */
17436 #include <stdlib.h>
17437 #include <iconv.h>
17438 int
17439 main ()
17440 {
17441 iconv_t cd = iconv_open("","");
17442        iconv(cd,NULL,NULL,NULL,NULL);
17443        iconv_close(cd);
17444   ;
17445   return 0;
17446 }
17447 _ACEOF
17448 if ac_fn_c_try_link "$LINENO"; then :
17449   am_cv_func_iconv=yes
17450 fi
17451 rm -f core conftest.err conftest.$ac_objext \
17452     conftest$ac_exeext conftest.$ac_ext
17453     if test "$am_cv_func_iconv" != yes; then
17454       am_save_LIBS="$LIBS"
17455       LIBS="$LIBS $LIBICONV"
17456       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17457 /* end confdefs.h.  */
17458 #include <stdlib.h>
17459 #include <iconv.h>
17460 int
17461 main ()
17462 {
17463 iconv_t cd = iconv_open("","");
17464          iconv(cd,NULL,NULL,NULL,NULL);
17465          iconv_close(cd);
17466   ;
17467   return 0;
17468 }
17469 _ACEOF
17470 if ac_fn_c_try_link "$LINENO"; then :
17471   am_cv_lib_iconv=yes
17472         am_cv_func_iconv=yes
17473 fi
17474 rm -f core conftest.err conftest.$ac_objext \
17475     conftest$ac_exeext conftest.$ac_ext
17476       LIBS="$am_save_LIBS"
17477     fi
17478
17479 fi
17480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17481 $as_echo "$am_cv_func_iconv" >&6; }
17482   if test "$am_cv_func_iconv" = yes; then
17483
17484 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17485
17486   fi
17487   if test "$am_cv_lib_iconv" = yes; then
17488     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17489 $as_echo_n "checking how to link with libiconv... " >&6; }
17490     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17491 $as_echo "$LIBICONV" >&6; }
17492   else
17493             CPPFLAGS="$am_save_CPPFLAGS"
17494     LIBICONV=
17495     LTLIBICONV=
17496   fi
17497
17498
17499
17500   if test "$am_cv_func_iconv" = yes; then
17501     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
17502 $as_echo_n "checking for iconv declaration... " >&6; }
17503     if ${am_cv_proto_iconv+:} false; then :
17504   $as_echo_n "(cached) " >&6
17505 else
17506
17507       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17508 /* end confdefs.h.  */
17509
17510 #include <stdlib.h>
17511 #include <iconv.h>
17512 extern
17513 #ifdef __cplusplus
17514 "C"
17515 #endif
17516 #if defined(__STDC__) || defined(__cplusplus)
17517 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17518 #else
17519 size_t iconv();
17520 #endif
17521
17522 int
17523 main ()
17524 {
17525
17526   ;
17527   return 0;
17528 }
17529 _ACEOF
17530 if ac_fn_c_try_compile "$LINENO"; then :
17531   am_cv_proto_iconv_arg1=""
17532 else
17533   am_cv_proto_iconv_arg1="const"
17534 fi
17535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17536       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);"
17537 fi
17538
17539     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
17540     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
17541          }$am_cv_proto_iconv" >&5
17542 $as_echo "${ac_t:-
17543          }$am_cv_proto_iconv" >&6; }
17544
17545 cat >>confdefs.h <<_ACEOF
17546 #define ICONV_CONST $am_cv_proto_iconv_arg1
17547 _ACEOF
17548
17549   fi
17550
17551
17552
17553
17554 if test "x${BUILD_INCLUDED_LIBINTL}" = "xyes"; then
17555    AM_CFLAGS="${AM_CFLAGS} -I\$(top_srcdir)/intl"
17556 fi
17557
17558 gp_config_msg_len="$(expr "Use translations" : '.*')"
17559 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
17560         gp_config_msg_lhs="$(expr "Use translations" : "\(.\{0,${gp_config_len3}\}\)")..:"
17561 else
17562         gp_config_msg_lhs="$(expr "Use translations:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
17563 fi
17564 gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} ${USE_NLS}
17565 "
17566
17567 if test "x$USE_NLS" = "xyes" && test "${BUILD_INCLUDED_LIBINTL}"; then
17568
17569 gp_config_msg_len="$(expr "Use included libintl" : '.*')"
17570 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
17571         gp_config_msg_lhs="$(expr "Use included libintl" : "\(.\{0,${gp_config_len3}\}\)")..:"
17572 else
17573         gp_config_msg_lhs="$(expr "Use included libintl:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
17574 fi
17575 gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} ${BUILD_INCLUDED_LIBINTL}
17576 "
17577
17578 fi
17579
17580
17581 # same trick as with libdl:
17582 # if gettext() doesn't require linking against libintl,
17583 # we don't have to check for gettext in libintl. Otherwise
17584 # we may even require libintl.
17585
17586 localedir="\$(datadir)/locale"
17587
17588 AM_CPPFLAGS="$AM_CPPFLAGS -DLOCALEDIR=\\\"${localedir}\\\""
17589
17590 # Check whether --enable-largefile was given.
17591 if test "${enable_largefile+set}" = set; then :
17592   enableval=$enable_largefile;
17593 fi
17594
17595 if test "$enable_largefile" != no; then
17596
17597   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
17598 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17599 if ${ac_cv_sys_largefile_CC+:} false; then :
17600   $as_echo_n "(cached) " >&6
17601 else
17602   ac_cv_sys_largefile_CC=no
17603      if test "$GCC" != yes; then
17604        ac_save_CC=$CC
17605        while :; do
17606          # IRIX 6.2 and later do not support large files by default,
17607          # so use the C compiler's -n32 option if that helps.
17608          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17609 /* end confdefs.h.  */
17610 #include <sys/types.h>
17611  /* Check that off_t can represent 2**63 - 1 correctly.
17612     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17613     since some C++ compilers masquerading as C compilers
17614     incorrectly reject 9223372036854775807.  */
17615 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17616   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17617                        && LARGE_OFF_T % 2147483647 == 1)
17618                       ? 1 : -1];
17619 int
17620 main ()
17621 {
17622
17623   ;
17624   return 0;
17625 }
17626 _ACEOF
17627          if ac_fn_c_try_compile "$LINENO"; then :
17628   break
17629 fi
17630 rm -f core conftest.err conftest.$ac_objext
17631          CC="$CC -n32"
17632          if ac_fn_c_try_compile "$LINENO"; then :
17633   ac_cv_sys_largefile_CC=' -n32'; break
17634 fi
17635 rm -f core conftest.err conftest.$ac_objext
17636          break
17637        done
17638        CC=$ac_save_CC
17639        rm -f conftest.$ac_ext
17640     fi
17641 fi
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
17643 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
17644   if test "$ac_cv_sys_largefile_CC" != no; then
17645     CC=$CC$ac_cv_sys_largefile_CC
17646   fi
17647
17648   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17649 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17650 if ${ac_cv_sys_file_offset_bits+:} false; then :
17651   $as_echo_n "(cached) " >&6
17652 else
17653   while :; do
17654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17655 /* end confdefs.h.  */
17656 #include <sys/types.h>
17657  /* Check that off_t can represent 2**63 - 1 correctly.
17658     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17659     since some C++ compilers masquerading as C compilers
17660     incorrectly reject 9223372036854775807.  */
17661 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17662   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17663                        && LARGE_OFF_T % 2147483647 == 1)
17664                       ? 1 : -1];
17665 int
17666 main ()
17667 {
17668
17669   ;
17670   return 0;
17671 }
17672 _ACEOF
17673 if ac_fn_c_try_compile "$LINENO"; then :
17674   ac_cv_sys_file_offset_bits=no; break
17675 fi
17676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17678 /* end confdefs.h.  */
17679 #define _FILE_OFFSET_BITS 64
17680 #include <sys/types.h>
17681  /* Check that off_t can represent 2**63 - 1 correctly.
17682     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17683     since some C++ compilers masquerading as C compilers
17684     incorrectly reject 9223372036854775807.  */
17685 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17686   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17687                        && LARGE_OFF_T % 2147483647 == 1)
17688                       ? 1 : -1];
17689 int
17690 main ()
17691 {
17692
17693   ;
17694   return 0;
17695 }
17696 _ACEOF
17697 if ac_fn_c_try_compile "$LINENO"; then :
17698   ac_cv_sys_file_offset_bits=64; break
17699 fi
17700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17701   ac_cv_sys_file_offset_bits=unknown
17702   break
17703 done
17704 fi
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
17706 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17707 case $ac_cv_sys_file_offset_bits in #(
17708   no | unknown) ;;
17709   *)
17710 cat >>confdefs.h <<_ACEOF
17711 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17712 _ACEOF
17713 ;;
17714 esac
17715 rm -rf conftest*
17716   if test $ac_cv_sys_file_offset_bits = unknown; then
17717     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
17718 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17719 if ${ac_cv_sys_large_files+:} false; then :
17720   $as_echo_n "(cached) " >&6
17721 else
17722   while :; do
17723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17724 /* end confdefs.h.  */
17725 #include <sys/types.h>
17726  /* Check that off_t can represent 2**63 - 1 correctly.
17727     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17728     since some C++ compilers masquerading as C compilers
17729     incorrectly reject 9223372036854775807.  */
17730 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17731   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17732                        && LARGE_OFF_T % 2147483647 == 1)
17733                       ? 1 : -1];
17734 int
17735 main ()
17736 {
17737
17738   ;
17739   return 0;
17740 }
17741 _ACEOF
17742 if ac_fn_c_try_compile "$LINENO"; then :
17743   ac_cv_sys_large_files=no; break
17744 fi
17745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17746   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17747 /* end confdefs.h.  */
17748 #define _LARGE_FILES 1
17749 #include <sys/types.h>
17750  /* Check that off_t can represent 2**63 - 1 correctly.
17751     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17752     since some C++ compilers masquerading as C compilers
17753     incorrectly reject 9223372036854775807.  */
17754 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17755   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17756                        && LARGE_OFF_T % 2147483647 == 1)
17757                       ? 1 : -1];
17758 int
17759 main ()
17760 {
17761
17762   ;
17763   return 0;
17764 }
17765 _ACEOF
17766 if ac_fn_c_try_compile "$LINENO"; then :
17767   ac_cv_sys_large_files=1; break
17768 fi
17769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17770   ac_cv_sys_large_files=unknown
17771   break
17772 done
17773 fi
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
17775 $as_echo "$ac_cv_sys_large_files" >&6; }
17776 case $ac_cv_sys_large_files in #(
17777   no | unknown) ;;
17778   *)
17779 cat >>confdefs.h <<_ACEOF
17780 #define _LARGE_FILES $ac_cv_sys_large_files
17781 _ACEOF
17782 ;;
17783 esac
17784 rm -rf conftest*
17785   fi
17786 fi
17787
17788
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -libs" >&5
17790 $as_echo_n "checking for main in -libs... " >&6; }
17791 if ${ac_cv_lib_ibs_main+:} false; then :
17792   $as_echo_n "(cached) " >&6
17793 else
17794   ac_check_lib_save_LIBS=$LIBS
17795 LIBS="-libs  $LIBS"
17796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17797 /* end confdefs.h.  */
17798
17799
17800 int
17801 main ()
17802 {
17803 return main ();
17804   ;
17805   return 0;
17806 }
17807 _ACEOF
17808 if ac_fn_c_try_link "$LINENO"; then :
17809   ac_cv_lib_ibs_main=yes
17810 else
17811   ac_cv_lib_ibs_main=no
17812 fi
17813 rm -f core conftest.err conftest.$ac_objext \
17814     conftest$ac_exeext conftest.$ac_ext
17815 LIBS=$ac_check_lib_save_LIBS
17816 fi
17817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibs_main" >&5
17818 $as_echo "$ac_cv_lib_ibs_main" >&6; }
17819 if test "x$ac_cv_lib_ibs_main" = xyes; then :
17820   cat >>confdefs.h <<_ACEOF
17821 #define HAVE_LIBIBS 1
17822 _ACEOF
17823
17824   LIBS="-libs $LIBS"
17825
17826 fi
17827
17828
17829
17830 LIBJPEG=""
17831 libjpeg_msg="no"
17832
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_start_decompress in -ljpeg" >&5
17834 $as_echo_n "checking for jpeg_start_decompress in -ljpeg... " >&6; }
17835 if ${ac_cv_lib_jpeg_jpeg_start_decompress+:} false; then :
17836   $as_echo_n "(cached) " >&6
17837 else
17838   ac_check_lib_save_LIBS=$LIBS
17839 LIBS="-ljpeg  $LIBS"
17840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17841 /* end confdefs.h.  */
17842
17843 /* Override any GCC internal prototype to avoid an error.
17844    Use char because int might match the return type of a GCC
17845    builtin and then its argument prototype would still apply.  */
17846 #ifdef __cplusplus
17847 extern "C"
17848 #endif
17849 char jpeg_start_decompress ();
17850 int
17851 main ()
17852 {
17853 return jpeg_start_decompress ();
17854   ;
17855   return 0;
17856 }
17857 _ACEOF
17858 if ac_fn_c_try_link "$LINENO"; then :
17859   ac_cv_lib_jpeg_jpeg_start_decompress=yes
17860 else
17861   ac_cv_lib_jpeg_jpeg_start_decompress=no
17862 fi
17863 rm -f core conftest.err conftest.$ac_objext \
17864     conftest$ac_exeext conftest.$ac_ext
17865 LIBS=$ac_check_lib_save_LIBS
17866 fi
17867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
17868 $as_echo "$ac_cv_lib_jpeg_jpeg_start_decompress" >&6; }
17869 if test "x$ac_cv_lib_jpeg_jpeg_start_decompress" = xyes; then :
17870
17871         ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
17872 if test "x$ac_cv_header_jpeglib_h" = xyes; then :
17873
17874
17875 $as_echo "#define HAVE_LIBJPEG 1" >>confdefs.h
17876
17877                 LIBJPEG="-ljpeg"
17878                 libjpeg_msg="yes"
17879
17880 fi
17881
17882
17883
17884 fi
17885
17886
17887 gp_config_msg_len="$(expr "JPEG mangling support" : '.*')"
17888 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
17889         gp_config_msg_lhs="$(expr "JPEG mangling support" : "\(.\{0,${gp_config_len3}\}\)")..:"
17890 else
17891         gp_config_msg_lhs="$(expr "JPEG mangling support:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
17892 fi
17893 gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} ${libjpeg_msg}
17894 "
17895
17896
17897 LIBGD=""
17898 libgd_msg="no"
17899
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateTrueColor in -lgd" >&5
17901 $as_echo_n "checking for gdImageCreateTrueColor in -lgd... " >&6; }
17902 if ${ac_cv_lib_gd_gdImageCreateTrueColor+:} false; then :
17903   $as_echo_n "(cached) " >&6
17904 else
17905   ac_check_lib_save_LIBS=$LIBS
17906 LIBS="-lgd  $LIBS"
17907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17908 /* end confdefs.h.  */
17909
17910 /* Override any GCC internal prototype to avoid an error.
17911    Use char because int might match the return type of a GCC
17912    builtin and then its argument prototype would still apply.  */
17913 #ifdef __cplusplus
17914 extern "C"
17915 #endif
17916 char gdImageCreateTrueColor ();
17917 int
17918 main ()
17919 {
17920 return gdImageCreateTrueColor ();
17921   ;
17922   return 0;
17923 }
17924 _ACEOF
17925 if ac_fn_c_try_link "$LINENO"; then :
17926   ac_cv_lib_gd_gdImageCreateTrueColor=yes
17927 else
17928   ac_cv_lib_gd_gdImageCreateTrueColor=no
17929 fi
17930 rm -f core conftest.err conftest.$ac_objext \
17931     conftest$ac_exeext conftest.$ac_ext
17932 LIBS=$ac_check_lib_save_LIBS
17933 fi
17934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateTrueColor" >&5
17935 $as_echo "$ac_cv_lib_gd_gdImageCreateTrueColor" >&6; }
17936 if test "x$ac_cv_lib_gd_gdImageCreateTrueColor" = xyes; then :
17937
17938         ac_fn_c_check_header_mongrel "$LINENO" "gd.h" "ac_cv_header_gd_h" "$ac_includes_default"
17939 if test "x$ac_cv_header_gd_h" = xyes; then :
17940
17941
17942 $as_echo "#define HAVE_GD 1" >>confdefs.h
17943
17944                 LIBGD="-lgd"
17945                 libgd_msg="yes"
17946
17947 fi
17948
17949
17950
17951 fi
17952
17953
17954 gp_config_msg_len="$(expr "GD conversion support" : '.*')"
17955 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
17956         gp_config_msg_lhs="$(expr "GD conversion support" : "\(.\{0,${gp_config_len3}\}\)")..:"
17957 else
17958         gp_config_msg_lhs="$(expr "GD conversion support:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
17959 fi
17960 gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} ${libgd_msg}
17961 "
17962
17963
17964 ac_header_dirent=no
17965 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
17966   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
17967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
17968 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
17969 if eval \${$as_ac_Header+:} false; then :
17970   $as_echo_n "(cached) " >&6
17971 else
17972   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17973 /* end confdefs.h.  */
17974 #include <sys/types.h>
17975 #include <$ac_hdr>
17976
17977 int
17978 main ()
17979 {
17980 if ((DIR *) 0)
17981 return 0;
17982   ;
17983   return 0;
17984 }
17985 _ACEOF
17986 if ac_fn_c_try_compile "$LINENO"; then :
17987   eval "$as_ac_Header=yes"
17988 else
17989   eval "$as_ac_Header=no"
17990 fi
17991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17992 fi
17993 eval ac_res=\$$as_ac_Header
17994                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17995 $as_echo "$ac_res" >&6; }
17996 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17997   cat >>confdefs.h <<_ACEOF
17998 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
17999 _ACEOF
18000
18001 ac_header_dirent=$ac_hdr; break
18002 fi
18003
18004 done
18005 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
18006 if test $ac_header_dirent = dirent.h; then
18007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18008 $as_echo_n "checking for library containing opendir... " >&6; }
18009 if ${ac_cv_search_opendir+:} false; then :
18010   $as_echo_n "(cached) " >&6
18011 else
18012   ac_func_search_save_LIBS=$LIBS
18013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18014 /* end confdefs.h.  */
18015
18016 /* Override any GCC internal prototype to avoid an error.
18017    Use char because int might match the return type of a GCC
18018    builtin and then its argument prototype would still apply.  */
18019 #ifdef __cplusplus
18020 extern "C"
18021 #endif
18022 char opendir ();
18023 int
18024 main ()
18025 {
18026 return opendir ();
18027   ;
18028   return 0;
18029 }
18030 _ACEOF
18031 for ac_lib in '' dir; do
18032   if test -z "$ac_lib"; then
18033     ac_res="none required"
18034   else
18035     ac_res=-l$ac_lib
18036     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18037   fi
18038   if ac_fn_c_try_link "$LINENO"; then :
18039   ac_cv_search_opendir=$ac_res
18040 fi
18041 rm -f core conftest.err conftest.$ac_objext \
18042     conftest$ac_exeext
18043   if ${ac_cv_search_opendir+:} false; then :
18044   break
18045 fi
18046 done
18047 if ${ac_cv_search_opendir+:} false; then :
18048
18049 else
18050   ac_cv_search_opendir=no
18051 fi
18052 rm conftest.$ac_ext
18053 LIBS=$ac_func_search_save_LIBS
18054 fi
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18056 $as_echo "$ac_cv_search_opendir" >&6; }
18057 ac_res=$ac_cv_search_opendir
18058 if test "$ac_res" != no; then :
18059   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18060
18061 fi
18062
18063 else
18064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18065 $as_echo_n "checking for library containing opendir... " >&6; }
18066 if ${ac_cv_search_opendir+:} false; then :
18067   $as_echo_n "(cached) " >&6
18068 else
18069   ac_func_search_save_LIBS=$LIBS
18070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18071 /* end confdefs.h.  */
18072
18073 /* Override any GCC internal prototype to avoid an error.
18074    Use char because int might match the return type of a GCC
18075    builtin and then its argument prototype would still apply.  */
18076 #ifdef __cplusplus
18077 extern "C"
18078 #endif
18079 char opendir ();
18080 int
18081 main ()
18082 {
18083 return opendir ();
18084   ;
18085   return 0;
18086 }
18087 _ACEOF
18088 for ac_lib in '' x; do
18089   if test -z "$ac_lib"; then
18090     ac_res="none required"
18091   else
18092     ac_res=-l$ac_lib
18093     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18094   fi
18095   if ac_fn_c_try_link "$LINENO"; then :
18096   ac_cv_search_opendir=$ac_res
18097 fi
18098 rm -f core conftest.err conftest.$ac_objext \
18099     conftest$ac_exeext
18100   if ${ac_cv_search_opendir+:} false; then :
18101   break
18102 fi
18103 done
18104 if ${ac_cv_search_opendir+:} false; then :
18105
18106 else
18107   ac_cv_search_opendir=no
18108 fi
18109 rm conftest.$ac_ext
18110 LIBS=$ac_func_search_save_LIBS
18111 fi
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18113 $as_echo "$ac_cv_search_opendir" >&6; }
18114 ac_res=$ac_cv_search_opendir
18115 if test "$ac_res" != no; then :
18116   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18117
18118 fi
18119
18120 fi
18121
18122 # before _HEADER_STDC
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
18124 $as_echo_n "checking for ANSI C header files... " >&6; }
18125 if ${ac_cv_header_stdc+:} false; then :
18126   $as_echo_n "(cached) " >&6
18127 else
18128   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18129 /* end confdefs.h.  */
18130 #include <stdlib.h>
18131 #include <stdarg.h>
18132 #include <string.h>
18133 #include <float.h>
18134
18135 int
18136 main ()
18137 {
18138
18139   ;
18140   return 0;
18141 }
18142 _ACEOF
18143 if ac_fn_c_try_compile "$LINENO"; then :
18144   ac_cv_header_stdc=yes
18145 else
18146   ac_cv_header_stdc=no
18147 fi
18148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18149
18150 if test $ac_cv_header_stdc = yes; then
18151   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18152   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18153 /* end confdefs.h.  */
18154 #include <string.h>
18155
18156 _ACEOF
18157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18158   $EGREP "memchr" >/dev/null 2>&1; then :
18159
18160 else
18161   ac_cv_header_stdc=no
18162 fi
18163 rm -f conftest*
18164
18165 fi
18166
18167 if test $ac_cv_header_stdc = yes; then
18168   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18169   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18170 /* end confdefs.h.  */
18171 #include <stdlib.h>
18172
18173 _ACEOF
18174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18175   $EGREP "free" >/dev/null 2>&1; then :
18176
18177 else
18178   ac_cv_header_stdc=no
18179 fi
18180 rm -f conftest*
18181
18182 fi
18183
18184 if test $ac_cv_header_stdc = yes; then
18185   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18186   if test "$cross_compiling" = yes; then :
18187   :
18188 else
18189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18190 /* end confdefs.h.  */
18191 #include <ctype.h>
18192 #include <stdlib.h>
18193 #if ((' ' & 0x0FF) == 0x020)
18194 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18195 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18196 #else
18197 # define ISLOWER(c) \
18198                    (('a' <= (c) && (c) <= 'i') \
18199                      || ('j' <= (c) && (c) <= 'r') \
18200                      || ('s' <= (c) && (c) <= 'z'))
18201 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18202 #endif
18203
18204 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18205 int
18206 main ()
18207 {
18208   int i;
18209   for (i = 0; i < 256; i++)
18210     if (XOR (islower (i), ISLOWER (i))
18211         || toupper (i) != TOUPPER (i))
18212       return 2;
18213   return 0;
18214 }
18215 _ACEOF
18216 if ac_fn_c_try_run "$LINENO"; then :
18217
18218 else
18219   ac_cv_header_stdc=no
18220 fi
18221 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18222   conftest.$ac_objext conftest.beam conftest.$ac_ext
18223 fi
18224
18225 fi
18226 fi
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18228 $as_echo "$ac_cv_header_stdc" >&6; }
18229 if test $ac_cv_header_stdc = yes; then
18230
18231 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
18232
18233 fi
18234
18235 # after _HEADER_STDC
18236 for ac_header in sys/param.h sys/select.h locale.h memory.h getopt.h unistd.h mcheck.h limits.h sys/time.h
18237 do :
18238   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18239 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18240 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18241   cat >>confdefs.h <<_ACEOF
18242 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18243 _ACEOF
18244
18245 fi
18246
18247 done
18248
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18250 $as_echo_n "checking for inline... " >&6; }
18251 if ${ac_cv_c_inline+:} false; then :
18252   $as_echo_n "(cached) " >&6
18253 else
18254   ac_cv_c_inline=no
18255 for ac_kw in inline __inline__ __inline; do
18256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18257 /* end confdefs.h.  */
18258 #ifndef __cplusplus
18259 typedef int foo_t;
18260 static $ac_kw foo_t static_foo () {return 0; }
18261 $ac_kw foo_t foo () {return 0; }
18262 #endif
18263
18264 _ACEOF
18265 if ac_fn_c_try_compile "$LINENO"; then :
18266   ac_cv_c_inline=$ac_kw
18267 fi
18268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18269   test "$ac_cv_c_inline" != no && break
18270 done
18271
18272 fi
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18274 $as_echo "$ac_cv_c_inline" >&6; }
18275
18276 case $ac_cv_c_inline in
18277   inline | yes) ;;
18278   *)
18279     case $ac_cv_c_inline in
18280       no) ac_val=;;
18281       *) ac_val=$ac_cv_c_inline;;
18282     esac
18283     cat >>confdefs.h <<_ACEOF
18284 #ifndef __cplusplus
18285 #define inline $ac_val
18286 #endif
18287 _ACEOF
18288     ;;
18289 esac
18290
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18292 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18293 if ${ac_cv_c_const+:} false; then :
18294   $as_echo_n "(cached) " >&6
18295 else
18296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18297 /* end confdefs.h.  */
18298
18299 int
18300 main ()
18301 {
18302 /* FIXME: Include the comments suggested by Paul. */
18303 #ifndef __cplusplus
18304   /* Ultrix mips cc rejects this.  */
18305   typedef int charset[2];
18306   const charset cs;
18307   /* SunOS 4.1.1 cc rejects this.  */
18308   char const *const *pcpcc;
18309   char **ppc;
18310   /* NEC SVR4.0.2 mips cc rejects this.  */
18311   struct point {int x, y;};
18312   static struct point const zero = {0,0};
18313   /* AIX XL C 1.02.0.0 rejects this.
18314      It does not let you subtract one const X* pointer from another in
18315      an arm of an if-expression whose if-part is not a constant
18316      expression */
18317   const char *g = "string";
18318   pcpcc = &g + (g ? g-g : 0);
18319   /* HPUX 7.0 cc rejects these. */
18320   ++pcpcc;
18321   ppc = (char**) pcpcc;
18322   pcpcc = (char const *const *) ppc;
18323   { /* SCO 3.2v4 cc rejects this.  */
18324     char *t;
18325     char const *s = 0 ? (char *) 0 : (char const *) 0;
18326
18327     *t++ = 0;
18328     if (s) return 0;
18329   }
18330   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18331     int x[] = {25, 17};
18332     const int *foo = &x[0];
18333     ++foo;
18334   }
18335   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18336     typedef const int *iptr;
18337     iptr p = 0;
18338     ++p;
18339   }
18340   { /* AIX XL C 1.02.0.0 rejects this saying
18341        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18342     struct s { int j; const int *ap[3]; };
18343     struct s *b; b->j = 5;
18344   }
18345   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18346     const int foo = 10;
18347     if (!foo) return 0;
18348   }
18349   return !cs[0] && !zero.x;
18350 #endif
18351
18352   ;
18353   return 0;
18354 }
18355 _ACEOF
18356 if ac_fn_c_try_compile "$LINENO"; then :
18357   ac_cv_c_const=yes
18358 else
18359   ac_cv_c_const=no
18360 fi
18361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18362 fi
18363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18364 $as_echo "$ac_cv_c_const" >&6; }
18365 if test $ac_cv_c_const = no; then
18366
18367 $as_echo "#define const /**/" >>confdefs.h
18368
18369 fi
18370
18371
18372
18373
18374 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18375 if test "x$ac_cv_type_size_t" = xyes; then :
18376
18377 else
18378
18379 cat >>confdefs.h <<_ACEOF
18380 #define size_t unsigned int
18381 _ACEOF
18382
18383 fi
18384
18385
18386 for ac_func in getopt getopt_long mkdir strdup strncpy strcpy snprintf sprintf vsnprintf gmtime_r statfs
18387 do :
18388   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18389 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18390 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18391   cat >>confdefs.h <<_ACEOF
18392 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18393 _ACEOF
18394
18395 fi
18396 done
18397
18398
18399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
18400 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
18401 if ${ac_cv_struct_tm+:} false; then :
18402   $as_echo_n "(cached) " >&6
18403 else
18404   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18405 /* end confdefs.h.  */
18406 #include <sys/types.h>
18407 #include <time.h>
18408
18409 int
18410 main ()
18411 {
18412 struct tm tm;
18413                                      int *p = &tm.tm_sec;
18414                                      return !p;
18415   ;
18416   return 0;
18417 }
18418 _ACEOF
18419 if ac_fn_c_try_compile "$LINENO"; then :
18420   ac_cv_struct_tm=time.h
18421 else
18422   ac_cv_struct_tm=sys/time.h
18423 fi
18424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18425 fi
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
18427 $as_echo "$ac_cv_struct_tm" >&6; }
18428 if test $ac_cv_struct_tm = sys/time.h; then
18429
18430 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
18431
18432 fi
18433
18434
18435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
18436 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
18437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18438 /* end confdefs.h.  */
18439
18440 #include <sys/types.h>
18441 #include <$ac_cv_struct_tm>
18442
18443 int
18444 main ()
18445 {
18446
18447 struct tm tm;
18448 tm.tm_gmtoff;
18449
18450   ;
18451   return 0;
18452 }
18453 _ACEOF
18454 if ac_fn_c_try_compile "$LINENO"; then :
18455
18456
18457 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
18458
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18460 $as_echo "yes" >&6; }
18461
18462 else
18463
18464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18465 $as_echo "no" >&6; }
18466
18467 fi
18468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18469
18470 for ac_header in sys/mount.h sys/statfs.h sys/user.h sys/vfs.h
18471 do :
18472   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18473 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
18474 #include <sys/types.h>
18475 #if HAVE_SYS_PARAM_H
18476 # include <sys/param.h>
18477 #endif
18478
18479 "
18480 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18481   cat >>confdefs.h <<_ACEOF
18482 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18483 _ACEOF
18484
18485 fi
18486
18487 done
18488
18489
18490 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "
18491 #include <sys/types.h>
18492 #ifdef HAVE_SYS_PARAM_H
18493 # include <sys/param.h>
18494 #endif
18495 #ifdef HAVE_SYS_MOUNT_H
18496 # include <sys/mount.h>
18497 #endif
18498 #ifdef HAVE_SYS_VFS_H
18499 # include <sys/vfs.h>
18500 #endif
18501 #ifdef HAVE_SYS_STATFS_H
18502 # include <sys/statfs.h>
18503 #endif
18504
18505 "
18506 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
18507
18508 cat >>confdefs.h <<_ACEOF
18509 #define HAVE_STRUCT_STATFS_F_BFREE 1
18510 _ACEOF
18511
18512
18513 fi
18514 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "
18515 #include <sys/types.h>
18516 #ifdef HAVE_SYS_PARAM_H
18517 # include <sys/param.h>
18518 #endif
18519 #ifdef HAVE_SYS_MOUNT_H
18520 # include <sys/mount.h>
18521 #endif
18522 #ifdef HAVE_SYS_VFS_H
18523 # include <sys/vfs.h>
18524 #endif
18525 #ifdef HAVE_SYS_STATFS_H
18526 # include <sys/statfs.h>
18527 #endif
18528
18529 "
18530 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
18531
18532 cat >>confdefs.h <<_ACEOF
18533 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
18534 _ACEOF
18535
18536
18537 fi
18538 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "
18539 #include <sys/types.h>
18540 #ifdef HAVE_SYS_PARAM_H
18541 # include <sys/param.h>
18542 #endif
18543 #ifdef HAVE_SYS_MOUNT_H
18544 # include <sys/mount.h>
18545 #endif
18546 #ifdef HAVE_SYS_VFS_H
18547 # include <sys/vfs.h>
18548 #endif
18549 #ifdef HAVE_SYS_STATFS_H
18550 # include <sys/statfs.h>
18551 #endif
18552
18553 "
18554 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
18555
18556 cat >>confdefs.h <<_ACEOF
18557 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
18558 _ACEOF
18559
18560
18561 fi
18562
18563
18564 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "
18565 #ifdef HAVE_SYS_STATVFS_H
18566 # include <sys/statvfs.h>
18567 #endif
18568
18569 "
18570 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
18571
18572 cat >>confdefs.h <<_ACEOF
18573 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
18574 _ACEOF
18575
18576
18577 fi
18578
18579
18580
18581
18582
18583
18584 ac_dir=`echo "libgphoto2/_stdint.h"|sed 's%/[^/][^/]*$%%'`
18585 if test "$ac_dir" != "libgphoto2/_stdint.h" && test "$ac_dir" != .; then
18586   # The file is in a subdirectory.
18587   test ! -d "$ac_dir" && mkdir "$ac_dir"
18588 fi
18589
18590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t in stdint.h" >&5
18591 $as_echo_n "checking for uint8_t in stdint.h... " >&6; }
18592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18593 /* end confdefs.h.  */
18594 #include <stdint.h>
18595 _ACEOF
18596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18597   $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
18598   ac_cv_type_uint8_t=yes
18599 else
18600   ac_cv_type_uint8_t=no
18601 fi
18602 rm -f conftest*
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
18604 $as_echo "$ac_cv_type_uint8_t" >&6; }
18605 if test $ac_cv_type_uint8_t = yes; then
18606
18607 cat > "libgphoto2/_stdint.h" <<EOF
18608 /* This file is generated automatically by configure */
18609 #include <stdint.h>
18610 EOF
18611 else
18612   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t in inttypes.h" >&5
18613 $as_echo_n "checking for uint8_t in inttypes.h... " >&6; }
18614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18615 /* end confdefs.h.  */
18616 #include <inttypes.h>
18617 _ACEOF
18618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18619   $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
18620   ac_cv_type_uint8_t=yes
18621 else
18622   ac_cv_type_uint8_t=no
18623 fi
18624 rm -f conftest*
18625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
18626 $as_echo "$ac_cv_type_uint8_t" >&6; }
18627 if test $ac_cv_type_uint8_t = yes; then
18628   cat > "libgphoto2/_stdint.h" <<EOF
18629 /* This file is generated automatically by configure */
18630 #include <inttypes.h>
18631 EOF
18632 else
18633   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t in sys/types.h" >&5
18634 $as_echo_n "checking for uint8_t in sys/types.h... " >&6; }
18635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18636 /* end confdefs.h.  */
18637 #include <sys/types.h>
18638 _ACEOF
18639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18640   $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
18641   ac_cv_type_uint8_t=yes
18642 else
18643   ac_cv_type_uint8_t=no
18644 fi
18645 rm -f conftest*
18646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
18647 $as_echo "$ac_cv_type_uint8_t" >&6; }
18648 if test $ac_cv_type_uint8_t = yes; then
18649   cat > "libgphoto2/_stdint.h" <<EOF
18650 /* This file is generated automatically by configure */
18651 #include <sys/types.h>
18652 EOF
18653 else
18654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int8_t in sys/types.h" >&5
18655 $as_echo_n "checking for u_int8_t in sys/types.h... " >&6; }
18656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18657 /* end confdefs.h.  */
18658 #include <sys/types.h>
18659 _ACEOF
18660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18661   $EGREP "(^|[^a-zA-Z_0-9])u_int8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
18662   ac_cv_type_u_int8_t=yes
18663 else
18664   ac_cv_type_u_int8_t=no
18665 fi
18666 rm -f conftest*
18667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_u_int8_t" >&5
18668 $as_echo "$ac_cv_type_u_int8_t" >&6; }
18669 if test $ac_cv_type_u_int8_t = yes; then
18670   cat > "libgphoto2/_stdint.h" <<EOF
18671 /* This file is generated automatically by configure */
18672 #ifndef __STDINT_H
18673 #define __STDINT_H
18674 #include <sys/types.h>
18675 typedef u_int8_t uint8_t;
18676 typedef u_int16_t uint16_t;
18677 typedef u_int32_t uint32_t;
18678 EOF
18679
18680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t in sys/types.h" >&5
18681 $as_echo_n "checking for u_int64_t in sys/types.h... " >&6; }
18682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18683 /* end confdefs.h.  */
18684 #include <sys/types.h>
18685 _ACEOF
18686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18687   $EGREP "(^|[^a-zA-Z_0-9])u_int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
18688   ac_cv_type_u_int64_t=yes
18689 else
18690   ac_cv_type_u_int64_t=no
18691 fi
18692 rm -f conftest*
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_u_int64_t" >&5
18694 $as_echo "$ac_cv_type_u_int64_t" >&6; }
18695 if test $ac_cv_type_u_int64_t = yes; then
18696   cat >> "libgphoto2/_stdint.h" <<EOF
18697 typedef u_int64_t uint64_t;
18698 #endif /*!__STDINT_H*/
18699 EOF
18700 else
18701   cat >> "libgphoto2/_stdint.h" <<EOF
18702 /* 64-bit types are not available on this system */
18703 /* typedef u_int64_t uint64_t; */
18704 #endif /*!__STDINT_H*/
18705 EOF
18706 fi
18707
18708
18709
18710 else
18711   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I can't find size-specific integer definitions on this system" >&5
18712 $as_echo "$as_me: WARNING: I can't find size-specific integer definitions on this system" >&2;}
18713 if test -e "libgphoto2/_stdint.h" ; then
18714         rm -f "libgphoto2/_stdint.h"
18715 fi
18716
18717 fi
18718
18719 fi
18720
18721 fi
18722
18723 fi
18724
18725
18726
18727 ac_dir=`$as_dirname -- "libgphoto2/gphoto2-endian.h" ||
18728 $as_expr X"libgphoto2/gphoto2-endian.h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18729          X"libgphoto2/gphoto2-endian.h" : 'X\(//\)[^/]' \| \
18730          X"libgphoto2/gphoto2-endian.h" : 'X\(//\)$' \| \
18731          X"libgphoto2/gphoto2-endian.h" : 'X\(/\)' \| . 2>/dev/null ||
18732 $as_echo X"libgphoto2/gphoto2-endian.h" |
18733     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18734             s//\1/
18735             q
18736           }
18737           /^X\(\/\/\)[^/].*/{
18738             s//\1/
18739             q
18740           }
18741           /^X\(\/\/\)$/{
18742             s//\1/
18743             q
18744           }
18745           /^X\(\/\).*/{
18746             s//\1/
18747             q
18748           }
18749           s/.*/./; q'`
18750 if test "$ac_dir" != "libgphoto2/gphoto2-endian.h" && test "$ac_dir" != .; then
18751   # The file is in a subdirectory.
18752   test ! -d "$ac_dir" && as_dir="$ac_dir"; as_fn_mkdir_p
18753 fi
18754
18755 # We're only interested in the target CPU, but it's not always set
18756 effective_target="$target"
18757 if test "x$effective_target" = xNONE -o "x$effective_target" = x ; then
18758         effective_target="$host"
18759 fi
18760
18761
18762 cat > "libgphoto2/gphoto2-endian.h" << EOF
18763 /* This file is generated automatically by configure */
18764 /* It is valid only for the system type ${effective_target} */
18765
18766 #ifndef __BYTEORDER_H
18767 #define __BYTEORDER_H
18768
18769 EOF
18770
18771  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
18772 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
18773 if ${ac_cv_c_bigendian+:} false; then :
18774   $as_echo_n "(cached) " >&6
18775 else
18776   ac_cv_c_bigendian=unknown
18777     # See if we're dealing with a universal compiler.
18778     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18779 /* end confdefs.h.  */
18780 #ifndef __APPLE_CC__
18781                not a universal capable compiler
18782              #endif
18783              typedef int dummy;
18784
18785 _ACEOF
18786 if ac_fn_c_try_compile "$LINENO"; then :
18787
18788         # Check for potential -arch flags.  It is not universal unless
18789         # there are at least two -arch flags with different values.
18790         ac_arch=
18791         ac_prev=
18792         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
18793          if test -n "$ac_prev"; then
18794            case $ac_word in
18795              i?86 | x86_64 | ppc | ppc64)
18796                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
18797                  ac_arch=$ac_word
18798                else
18799                  ac_cv_c_bigendian=universal
18800                  break
18801                fi
18802                ;;
18803            esac
18804            ac_prev=
18805          elif test "x$ac_word" = "x-arch"; then
18806            ac_prev=arch
18807          fi
18808        done
18809 fi
18810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18811     if test $ac_cv_c_bigendian = unknown; then
18812       # See if sys/param.h defines the BYTE_ORDER macro.
18813       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18814 /* end confdefs.h.  */
18815 #include <sys/types.h>
18816              #include <sys/param.h>
18817
18818 int
18819 main ()
18820 {
18821 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
18822                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
18823                      && LITTLE_ENDIAN)
18824               bogus endian macros
18825              #endif
18826
18827   ;
18828   return 0;
18829 }
18830 _ACEOF
18831 if ac_fn_c_try_compile "$LINENO"; then :
18832   # It does; now see whether it defined to BIG_ENDIAN or not.
18833          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18834 /* end confdefs.h.  */
18835 #include <sys/types.h>
18836                 #include <sys/param.h>
18837
18838 int
18839 main ()
18840 {
18841 #if BYTE_ORDER != BIG_ENDIAN
18842                  not big endian
18843                 #endif
18844
18845   ;
18846   return 0;
18847 }
18848 _ACEOF
18849 if ac_fn_c_try_compile "$LINENO"; then :
18850   ac_cv_c_bigendian=yes
18851 else
18852   ac_cv_c_bigendian=no
18853 fi
18854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18855 fi
18856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18857     fi
18858     if test $ac_cv_c_bigendian = unknown; then
18859       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
18860       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18861 /* end confdefs.h.  */
18862 #include <limits.h>
18863
18864 int
18865 main ()
18866 {
18867 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
18868               bogus endian macros
18869              #endif
18870
18871   ;
18872   return 0;
18873 }
18874 _ACEOF
18875 if ac_fn_c_try_compile "$LINENO"; then :
18876   # It does; now see whether it defined to _BIG_ENDIAN or not.
18877          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18878 /* end confdefs.h.  */
18879 #include <limits.h>
18880
18881 int
18882 main ()
18883 {
18884 #ifndef _BIG_ENDIAN
18885                  not big endian
18886                 #endif
18887
18888   ;
18889   return 0;
18890 }
18891 _ACEOF
18892 if ac_fn_c_try_compile "$LINENO"; then :
18893   ac_cv_c_bigendian=yes
18894 else
18895   ac_cv_c_bigendian=no
18896 fi
18897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18898 fi
18899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18900     fi
18901     if test $ac_cv_c_bigendian = unknown; then
18902       # Compile a test program.
18903       if test "$cross_compiling" = yes; then :
18904   # Try to guess by grepping values from an object file.
18905          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18906 /* end confdefs.h.  */
18907 short int ascii_mm[] =
18908                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
18909                 short int ascii_ii[] =
18910                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
18911                 int use_ascii (int i) {
18912                   return ascii_mm[i] + ascii_ii[i];
18913                 }
18914                 short int ebcdic_ii[] =
18915                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
18916                 short int ebcdic_mm[] =
18917                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
18918                 int use_ebcdic (int i) {
18919                   return ebcdic_mm[i] + ebcdic_ii[i];
18920                 }
18921                 extern int foo;
18922
18923 int
18924 main ()
18925 {
18926 return use_ascii (foo) == use_ebcdic (foo);
18927   ;
18928   return 0;
18929 }
18930 _ACEOF
18931 if ac_fn_c_try_compile "$LINENO"; then :
18932   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
18933               ac_cv_c_bigendian=yes
18934             fi
18935             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
18936               if test "$ac_cv_c_bigendian" = unknown; then
18937                 ac_cv_c_bigendian=no
18938               else
18939                 # finding both strings is unlikely to happen, but who knows?
18940                 ac_cv_c_bigendian=unknown
18941               fi
18942             fi
18943 fi
18944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18945 else
18946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18947 /* end confdefs.h.  */
18948 $ac_includes_default
18949 int
18950 main ()
18951 {
18952
18953              /* Are we little or big endian?  From Harbison&Steele.  */
18954              union
18955              {
18956                long int l;
18957                char c[sizeof (long int)];
18958              } u;
18959              u.l = 1;
18960              return u.c[sizeof (long int) - 1] == 1;
18961
18962   ;
18963   return 0;
18964 }
18965 _ACEOF
18966 if ac_fn_c_try_run "$LINENO"; then :
18967   ac_cv_c_bigendian=no
18968 else
18969   ac_cv_c_bigendian=yes
18970 fi
18971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18972   conftest.$ac_objext conftest.beam conftest.$ac_ext
18973 fi
18974
18975     fi
18976 fi
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
18978 $as_echo "$ac_cv_c_bigendian" >&6; }
18979  case $ac_cv_c_bigendian in #(
18980    yes)
18981      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
18982 ;; #(
18983    no)
18984       ;; #(
18985    universal)
18986
18987 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
18988
18989      ;; #(
18990    *)
18991      as_fn_error $? "unknown endianness
18992  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
18993  esac
18994
18995
18996
18997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for le32toh in machine/endian.h" >&5
18998 $as_echo_n "checking for le32toh in machine/endian.h... " >&6; }
18999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19000 /* end confdefs.h.  */
19001
19002 #include <machine/endian.h>
19003 #ifdef le32toh
19004         symbol is present
19005 #endif
19006
19007 _ACEOF
19008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19009   $EGREP "symbol is present|\<le32toh\>" >/dev/null 2>&1; then :
19010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19011 $as_echo "yes" >&6; }
19012 HAVE_LE32TOH=1
19013  cat >> "libgphoto2/gphoto2-endian.h" << EOF
19014 /* extended byte swapping macros are already available */
19015 #include <machine/endian.h>
19016
19017 EOF
19018
19019 else
19020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19021 $as_echo "no" >&6; }
19022
19023
19024
19025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ntohl in arpa/inet.h" >&5
19026 $as_echo_n "checking for ntohl in arpa/inet.h... " >&6; }
19027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19028 /* end confdefs.h.  */
19029
19030 #include <arpa/inet.h>
19031 #ifdef ntohl
19032         symbol is present
19033 #endif
19034
19035 _ACEOF
19036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19037   $EGREP "symbol is present|\<ntohl\>" >/dev/null 2>&1; then :
19038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19039 $as_echo "yes" >&6; }
19040 cat >> "libgphoto2/gphoto2-endian.h" << EOF
19041 /* ntohl and relatives live here */
19042 #include <arpa/inet.h>
19043
19044 EOF
19045
19046 else
19047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19048 $as_echo "no" >&6; }
19049
19050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ntohl in netinet/in.h" >&5
19051 $as_echo_n "checking for ntohl in netinet/in.h... " >&6; }
19052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19053 /* end confdefs.h.  */
19054
19055 #include <netinet/in.h>
19056 #ifdef ntohl
19057         symbol is present
19058 #endif
19059
19060 _ACEOF
19061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19062   $EGREP "symbol is present|\<ntohl\>" >/dev/null 2>&1; then :
19063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19064 $as_echo "yes" >&6; }
19065 cat >> "libgphoto2/gphoto2-endian.h" << EOF
19066 /* ntohl and relatives live here */
19067 #include <netinet/in.h>
19068
19069 EOF
19070
19071 else
19072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19073 $as_echo "no" >&6; }
19074 true
19075
19076 fi
19077 rm -f conftest*
19078
19079
19080 fi
19081 rm -f conftest*
19082
19083
19084
19085 fi
19086 rm -f conftest*
19087
19088
19089
19090
19091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for swap32 in machine/endian.h" >&5
19092 $as_echo_n "checking for swap32 in machine/endian.h... " >&6; }
19093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19094 /* end confdefs.h.  */
19095
19096 #include <machine/endian.h>
19097 #ifdef swap32
19098         symbol is present
19099 #endif
19100
19101 _ACEOF
19102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19103   $EGREP "symbol is present|\<swap32\>" >/dev/null 2>&1; then :
19104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19105 $as_echo "yes" >&6; }
19106 cat >> "libgphoto2/gphoto2-endian.h" << EOF
19107 /* swap32 and swap16 are defined in machine/endian.h */
19108
19109 EOF
19110
19111 else
19112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19113 $as_echo "no" >&6; }
19114
19115
19116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap_32 in byteswap.h" >&5
19117 $as_echo_n "checking for bswap_32 in byteswap.h... " >&6; }
19118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19119 /* end confdefs.h.  */
19120
19121 #include <byteswap.h>
19122 #ifdef bswap_32
19123         symbol is present
19124 #endif
19125
19126 _ACEOF
19127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19128   $EGREP "symbol is present|\<bswap_32\>" >/dev/null 2>&1; then :
19129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19130 $as_echo "yes" >&6; }
19131 cat >> "libgphoto2/gphoto2-endian.h" << EOF
19132 /* Define generic byte swapping functions */
19133 #include <byteswap.h>
19134 #define swap16(x) bswap_16(x)
19135 #define swap32(x) bswap_32(x)
19136 #define swap64(x) bswap_64(x)
19137
19138 EOF
19139
19140 else
19141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19142 $as_echo "no" >&6; }
19143
19144
19145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap32 in machine/endian.h" >&5
19146 $as_echo_n "checking for bswap32 in machine/endian.h... " >&6; }
19147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19148 /* end confdefs.h.  */
19149
19150 #include <machine/endian.h>
19151 #ifdef bswap32
19152         symbol is present
19153 #endif
19154
19155 _ACEOF
19156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19157   $EGREP "symbol is present|\<bswap32\>" >/dev/null 2>&1; then :
19158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19159 $as_echo "yes" >&6; }
19160          cat >> "libgphoto2/gphoto2-endian.h" << EOF
19161 /* Define generic byte swapping functions */
19162 EOF
19163         if test "$HAVE_LE32TOH" != "1"; then
19164                 echo '#include <machine/endian.h>'>> "libgphoto2/gphoto2-endian.h"
19165         fi
19166 cat >> "libgphoto2/gphoto2-endian.h" << EOF
19167 #define swap16(x) bswap16(x)
19168 #define swap32(x) bswap32(x)
19169 #define swap64(x) bswap64(x)
19170
19171 EOF
19172
19173 else
19174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19175 $as_echo "no" >&6; }
19176
19177
19178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __byte_swap_long in sys/types.h" >&5
19179 $as_echo_n "checking for __byte_swap_long in sys/types.h... " >&6; }
19180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19181 /* end confdefs.h.  */
19182
19183 #include <sys/types.h>
19184 #ifdef __byte_swap_long
19185         symbol is present
19186 #endif
19187
19188 _ACEOF
19189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19190   $EGREP "symbol is present|\<__byte_swap_long\>" >/dev/null 2>&1; then :
19191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19192 $as_echo "yes" >&6; }
19193 cat >> "libgphoto2/gphoto2-endian.h" << EOF
19194 /* Define generic byte swapping functions */
19195 #include <sys/types.h>
19196 #define swap16(x) __byte_swap_word(x)
19197 #define swap32(x) __byte_swap_long(x)
19198 /* No optimized 64 bit byte swapping macro is available */
19199 #define swap64(x) ((uint64_t)(((uint64_t)(x) << 56) & 0xff00000000000000ULL | \\
19200                               ((uint64_t)(x) << 40) & 0x00ff000000000000ULL | \\
19201                               ((uint64_t)(x) << 24) & 0x0000ff0000000000ULL | \\
19202                               ((uint64_t)(x) << 8)  & 0x000000ff00000000ULL | \\
19203                               ((x) >> 8)  & 0x00000000ff000000ULL | \\
19204                               ((x) >> 24) & 0x0000000000ff0000ULL | \\
19205                               ((x) >> 40) & 0x000000000000ff00ULL | \\
19206                               ((x) >> 56) & 0x00000000000000ffULL))
19207
19208 EOF
19209
19210 else
19211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19212 $as_echo "no" >&6; }
19213
19214
19215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NXSwapLong in machine/byte_order.h" >&5
19216 $as_echo_n "checking for NXSwapLong in machine/byte_order.h... " >&6; }
19217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19218 /* end confdefs.h.  */
19219
19220 #include <machine/byte_order.h>
19221 #ifdef NXSwapLong
19222         symbol is present
19223 #endif
19224
19225 _ACEOF
19226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19227   $EGREP "symbol is present|\<NXSwapLong\>" >/dev/null 2>&1; then :
19228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19229 $as_echo "yes" >&6; }
19230 cat >> "libgphoto2/gphoto2-endian.h" << EOF
19231 /* Define generic byte swapping functions */
19232 #include <machine/byte_order.h>
19233 #define swap16(x) NXSwapShort(x)
19234 #define swap32(x) NXSwapLong(x)
19235 #define swap64(x) NXSwapLongLong(x)
19236
19237 EOF
19238
19239 else
19240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19241 $as_echo "no" >&6; }
19242
19243         if test $ac_cv_c_bigendian = yes; then
19244                 cat >> "libgphoto2/gphoto2-endian.h" << EOF
19245 /* No other byte swapping functions are available on this big-endian system */
19246 #define swap16(x)       ((uint16_t)(((x) << 8) | ((uint16_t)(x) >> 8)))
19247 #define swap32(x)       ((uint32_t)(((uint32_t)(x) << 24) & 0xff000000UL | \\
19248                                     ((uint32_t)(x) << 8)  & 0x00ff0000UL | \\
19249                                     ((x) >> 8)  & 0x0000ff00UL | \\
19250                                     ((x) >> 24) & 0x000000ffUL))
19251 #define swap64(x) ((uint64_t)(((uint64_t)(x) << 56) & 0xff00000000000000ULL | \\
19252                               ((uint64_t)(x) << 40) & 0x00ff000000000000ULL | \\
19253                               ((uint64_t)(x) << 24) & 0x0000ff0000000000ULL | \\
19254                               ((uint64_t)(x) << 8)  & 0x000000ff00000000ULL | \\
19255                               ((x) >> 8)  & 0x00000000ff000000ULL | \\
19256                               ((x) >> 24) & 0x0000000000ff0000ULL | \\
19257                               ((x) >> 40) & 0x000000000000ff00ULL | \\
19258                               ((x) >> 56) & 0x00000000000000ffULL))
19259
19260 EOF
19261         else
19262  cat >> "libgphoto2/gphoto2-endian.h" << EOF
19263 /* Use these as generic byteswapping macros on this little endian system */
19264 #define swap16(x)               ntohs(x)
19265 #define swap32(x)               ntohl(x)
19266 /* No optimized 64 bit byte swapping macro is available */
19267 #define swap64(x) ((uint64_t)(((uint64_t)(x) << 56) & 0xff00000000000000ULL | \\
19268                               ((uint64_t)(x) << 40) & 0x00ff000000000000ULL | \\
19269                               ((uint64_t)(x) << 24) & 0x0000ff0000000000ULL | \\
19270                               ((uint64_t)(x) << 8)  & 0x000000ff00000000ULL | \\
19271                               ((x) >> 8)  & 0x00000000ff000000ULL | \\
19272                               ((x) >> 24) & 0x0000000000ff0000ULL | \\
19273                               ((x) >> 40) & 0x000000000000ff00ULL | \\
19274                               ((x) >> 56) & 0x00000000000000ffULL))
19275
19276 EOF
19277         fi
19278
19279
19280 fi
19281 rm -f conftest*
19282
19283
19284
19285 fi
19286 rm -f conftest*
19287
19288
19289
19290 fi
19291 rm -f conftest*
19292
19293
19294
19295 fi
19296 rm -f conftest*
19297
19298
19299
19300 fi
19301 rm -f conftest*
19302
19303
19304
19305
19306 if test "$HAVE_LE32TOH" != "1"; then
19307  cat >> "libgphoto2/gphoto2-endian.h" << EOF
19308 /* The byte swapping macros have the form: */
19309 /*   EENN[a]toh or htoEENN[a] where EE is be (big endian) or */
19310 /* le (little-endian), NN is 16 or 32 (number of bits) and a, */
19311 /* if present, indicates that the endian side is a pointer to an */
19312 /* array of uint8_t bytes instead of an integer of the specified length. */
19313 /* h refers to the host's ordering method. */
19314
19315 /* So, to convert a 32-bit integer stored in a buffer in little-endian */
19316 /* format into a uint32_t usable on this machine, you could use: */
19317 /*   uint32_t value = le32atoh(&buf[3]); */
19318 /* To put that value back into the buffer, you could use: */
19319 /*   htole32a(&buf[3], value); */
19320
19321 /* Define aliases for the standard byte swapping macros */
19322 /* Arguments to these macros must be properly aligned on natural word */
19323 /* boundaries in order to work properly on all architectures */
19324 #ifndef htobe16
19325 # define htobe16(x) htons(x)
19326 #endif
19327 #ifndef htobe32
19328 # define htobe32(x) htonl(x)
19329 #endif
19330 #ifndef be16toh
19331 # define be16toh(x) ntohs(x)
19332 #endif
19333 #ifndef be32toh
19334 # define be32toh(x) ntohl(x)
19335 #endif
19336
19337 #define HTOBE16(x) (x) = htobe16(x)
19338 #define HTOBE32(x) (x) = htobe32(x)
19339 #define BE32TOH(x) (x) = be32toh(x)
19340 #define BE16TOH(x) (x) = be16toh(x)
19341
19342 EOF
19343
19344  if test $ac_cv_c_bigendian = yes; then
19345   cat >> "libgphoto2/gphoto2-endian.h" << EOF
19346 /* Define our own extended byte swapping macros for big-endian machines */
19347 #ifndef htole16
19348 # define htole16(x)      swap16(x)
19349 #endif
19350 #ifndef htole32
19351 # define htole32(x)      swap32(x)
19352 #endif
19353 #ifndef le16toh
19354 # define le16toh(x)      swap16(x)
19355 #endif
19356 #ifndef le32toh
19357 # define le32toh(x)      swap32(x)
19358 #endif
19359 #ifndef le64toh
19360 # define le64toh(x)      swap64(x)
19361 #endif
19362
19363 #ifndef htobe64
19364 # define htobe64(x)      (x)
19365 #endif
19366 #ifndef be64toh
19367 # define be64toh(x)      (x)
19368 #endif
19369
19370 #define HTOLE16(x)      (x) = htole16(x)
19371 #define HTOLE32(x)      (x) = htole32(x)
19372 #define LE16TOH(x)      (x) = le16toh(x)
19373 #define LE32TOH(x)      (x) = le32toh(x)
19374 #define LE64TOH(x)      (x) = le64toh(x)
19375
19376 #define HTOBE64(x)      (void) (x)
19377 #define BE64TOH(x)      (void) (x)
19378
19379 EOF
19380  else
19381   cat >> "libgphoto2/gphoto2-endian.h" << EOF
19382 /* On little endian machines, these macros are null */
19383 #ifndef htole16
19384 # define htole16(x)      (x)
19385 #endif
19386 #ifndef htole32
19387 # define htole32(x)      (x)
19388 #endif
19389 #ifndef htole64
19390 # define htole64(x)      (x)
19391 #endif
19392 #ifndef le16toh
19393 # define le16toh(x)      (x)
19394 #endif
19395 #ifndef le32toh
19396 # define le32toh(x)      (x)
19397 #endif
19398 #ifndef le64toh
19399 # define le64toh(x)      (x)
19400 #endif
19401
19402 #define HTOLE16(x)      (void) (x)
19403 #define HTOLE32(x)      (void) (x)
19404 #define HTOLE64(x)      (void) (x)
19405 #define LE16TOH(x)      (void) (x)
19406 #define LE32TOH(x)      (void) (x)
19407 #define LE64TOH(x)      (void) (x)
19408
19409 /* These don't have standard aliases */
19410 #ifndef htobe64
19411 # define htobe64(x)      swap64(x)
19412 #endif
19413 #ifndef be64toh
19414 # define be64toh(x)      swap64(x)
19415 #endif
19416
19417 #define HTOBE64(x)      (x) = htobe64(x)
19418 #define BE64TOH(x)      (x) = be64toh(x)
19419
19420 EOF
19421  fi
19422 fi
19423
19424 cat >> "libgphoto2/gphoto2-endian.h" << EOF
19425 /* Define the C99 standard length-specific integer types */
19426 #include <_stdint.h>
19427
19428 EOF
19429
19430 case "${effective_target}" in
19431  i[3456]86-*)
19432   cat >> "libgphoto2/gphoto2-endian.h" << EOF
19433 /* Here are some macros to create integers from a byte array */
19434 /* These are used to get and put integers from/into a uint8_t array */
19435 /* with a specific endianness.  This is the most portable way to generate */
19436 /* and read messages to a network or serial device.  Each member of a */
19437 /* packet structure must be handled separately. */
19438
19439 /* The i386 and compatibles can handle unaligned memory access, */
19440 /* so use the optimized macros above to do this job */
19441 #ifndef be16atoh
19442 # define be16atoh(x)     be16toh(*(uint16_t*)(x))
19443 #endif
19444 #ifndef be32atoh
19445 # define be32atoh(x)     be32toh(*(uint32_t*)(x))
19446 #endif
19447 #ifndef be64atoh
19448 # define be64atoh(x)     be64toh(*(uint64_t*)(x))
19449 #endif
19450 #ifndef le16atoh
19451 # define le16atoh(x)     le16toh(*(uint16_t*)(x))
19452 #endif
19453 #ifndef le32atoh
19454 # define le32atoh(x)     le32toh(*(uint32_t*)(x))
19455 #endif
19456 #ifndef le64atoh
19457 # define le64atoh(x)     le64toh(*(uint64_t*)(x))
19458 #endif
19459
19460 #ifndef htob16a
19461 # define htobe16a(a,x)   *(uint16_t*)(a) = htobe16(x)
19462 #endif
19463 #ifndef htobe32a
19464 # define htobe32a(a,x)   *(uint32_t*)(a) = htobe32(x)
19465 #endif
19466 #ifndef htobe64a
19467 # define htobe64a(a,x)   *(uint64_t*)(a) = htobe64(x)
19468 #endif
19469 #ifndef htole16a
19470 # define htole16a(a,x)   *(uint16_t*)(a) = htole16(x)
19471 #endif
19472 #ifndef htole32a
19473 # define htole32a(a,x)   *(uint32_t*)(a) = htole32(x)
19474 #endif
19475 #ifndef htole64a
19476 # define htole64a(a,x)   *(uint64_t*)(a) = htole64(x)
19477 #endif
19478
19479 EOF
19480   ;;
19481
19482  *)
19483   cat >> "libgphoto2/gphoto2-endian.h" << EOF
19484 /* Here are some macros to create integers from a byte array */
19485 /* These are used to get and put integers from/into a uint8_t array */
19486 /* with a specific endianness.  This is the most portable way to generate */
19487 /* and read messages to a network or serial device.  Each member of a */
19488 /* packet structure must be handled separately. */
19489
19490 /* Non-optimized but portable macros */
19491 #define be16atoh(x)     ((uint16_t)(((x)[0]<<8)|(x)[1]))
19492 #define be32atoh(x)     ((uint32_t)(((x)[0]<<24)|((x)[1]<<16)|((x)[2]<<8)|(x)[3]))
19493 #define be64atoh_x(x,off,shift)         (((uint64_t)((x)[off]))<<shift)
19494 #define be64atoh(x)     ((uint64_t)(be64atoh_x(x,0,56)|be64atoh_x(x,1,48)|be64atoh_x(x,2,40)| \\
19495         be64atoh_x(x,3,32)|be64atoh_x(x,4,24)|be64atoh_x(x,5,16)|be64atoh_x(x,6,8)|((x)[7])))
19496 #define le16atoh(x)     ((uint16_t)(((x)[1]<<8)|(x)[0]))
19497 #define le32atoh(x)     ((uint32_t)(((x)[3]<<24)|((x)[2]<<16)|((x)[1]<<8)|(x)[0]))
19498 #define le64atoh_x(x,off,shift) (((uint64_t)(x)[off])<<shift)
19499 #define le64atoh(x)     ((uint64_t)(le64atoh_x(x,7,56)|le64atoh_x(x,6,48)|le64atoh_x(x,5,40)| \\
19500         le64atoh_x(x,4,32)|le64atoh_x(x,3,24)|le64atoh_x(x,2,16)|le64atoh_x(x,1,8)|((x)[0])))
19501
19502 #define htobe16a(a,x)   (a)[0]=(uint8_t)((x)>>8), (a)[1]=(uint8_t)(x)
19503 #define htobe32a(a,x)   (a)[0]=(uint8_t)((x)>>24), (a)[1]=(uint8_t)((x)>>16), \\
19504         (a)[2]=(uint8_t)((x)>>8), (a)[3]=(uint8_t)(x)
19505 #define htobe64a(a,x)   (a)[0]=(uint8_t)((x)>>56), (a)[1]=(uint8_t)((x)>>48), \\
19506         (a)[2]=(uint8_t)((x)>>40), (a)[3]=(uint8_t)((x)>>32), \\
19507         (a)[4]=(uint8_t)((x)>>24), (a)[5]=(uint8_t)((x)>>16), \\
19508         (a)[6]=(uint8_t)((x)>>8), (a)[7]=(uint8_t)(x)
19509 #define htole16a(a,x)   (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x)
19510 #define htole32a(a,x)   (a)[3]=(uint8_t)((x)>>24), (a)[2]=(uint8_t)((x)>>16), \\
19511         (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x)
19512 #define htole64a(a,x)   (a)[7]=(uint8_t)((x)>>56), (a)[6]=(uint8_t)((x)>>48), \\
19513         (a)[5]=(uint8_t)((x)>>40), (a)[4]=(uint8_t)((x)>>32), \\
19514         (a)[3]=(uint8_t)((x)>>24), (a)[2]=(uint8_t)((x)>>16), \\
19515         (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x)
19516
19517 EOF
19518   ;;
19519 esac
19520
19521
19522 cat >> "libgphoto2/gphoto2-endian.h" << EOF
19523 #endif /*__BYTEORDER_H*/
19524 EOF
19525
19526
19527
19528
19529
19530
19531
19532
19533
19534 if test "x${utilsdir}" = "x"; then utilsdir="\${libdir}/\${PACKAGE_TARNAME}"; fi
19535
19536
19537
19538 if test "x${udevscriptdir}" = "x"; then udevscriptdir="\${libdir}/udev"; fi
19539
19540
19541  if if echo "$host"|grep -i linux >/dev/null ; then true; fi ; then
19542   HAVE_UDEV_TRUE=
19543   HAVE_UDEV_FALSE='#'
19544 else
19545   HAVE_UDEV_TRUE='#'
19546   HAVE_UDEV_FALSE=
19547 fi
19548
19549
19550
19551
19552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install camlibs" >&5
19553 $as_echo_n "checking where to install camlibs... " >&6; }
19554
19555 # Check whether --with-camlibdir was given.
19556 if test "${with_camlibdir+set}" = set; then :
19557   withval=$with_camlibdir;
19558         camlibdir="$withval"
19559
19560 else
19561
19562         camlibdir="\${libdir}/${PACKAGE_TARNAME}/${PACKAGE_VERSION}"
19563
19564 fi
19565
19566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${camlibdir}" >&5
19567 $as_echo "${camlibdir}" >&6; }
19568
19569 AM_CPPFLAGS="$AM_CPPFLAGS -DCAMLIBS=\\\"\$(camlibdir)\\\""
19570
19571 CAMLIB_LDFLAGS="-module -no-undefined -avoid-version -export-dynamic"
19572 CAMLIB_LDFLAGS="$CAMLIB_LDFLAGS -export-symbols \$(top_srcdir)/camlibs/camlib.sym"
19573 CAMLIB_LDFLAGS=${CAMLIB_LDFLAGS}
19574
19575 CAMLIB_LIBS="\$(top_builddir)/libgphoto2/libgphoto2.la"
19576
19577
19578
19579
19580 # GP_CAMLIB(agfa_cl20)
19581 # GP_CAMLIB(aox)
19582 # GP_CAMLIB(ax203)
19583 # GP_CAMLIB(barbie)
19584 # GP_CAMLIB(canon)
19585 # GP_CAMLIB(casio_qv)
19586 # GP_CAMLIB(clicksmart310)
19587 # GP_CAMLIB(digigr8)
19588 # GP_CAMLIB(digita)
19589 # GP_CAMLIB(dimera3500)
19590 # GP_CAMLIB(directory)
19591 # GP_CAMLIB(enigma13)
19592 # GP_CAMLIB(gsmart300)
19593 # GP_CAMLIB(hp215)
19594 # GP_CAMLIB(iclick)
19595 # GP_CAMLIB(jamcam)
19596 # GP_CAMLIB(jd11)
19597 # GP_CAMLIB(jl2005a)
19598 # GP_CAMLIB(kodak_dc120)
19599 # GP_CAMLIB(kodak_dc210)
19600 # GP_CAMLIB(kodak_dc240)
19601 # GP_CAMLIB(kodak_ez200)
19602 # GP_CAMLIB(largan)
19603 # GP_CAMLIB(lg_gsm)
19604 # GP_CAMLIB(mars)
19605 # GP_CAMLIB(panasonic_coolshot)
19606 # GP_CAMLIB(panasonic_l859)
19607 # GP_CAMLIB(panasonic_dc1000)
19608 # GP_CAMLIB(panasonic_dc1580)
19609 # GP_CAMLIB(pccam300)
19610 # GP_CAMLIB(pccam600)
19611 # GP_CAMLIB(polaroid_pdc320)
19612 # GP_CAMLIB(polaroid_pdc640)
19613 # GP_CAMLIB(polaroid_pdc700)
19614 # GP_CAMLIB(ptp2)
19615 # GP_CAMLIB(ricoh)
19616 # GP_CAMLIB(ricoh_g3)
19617 # GP_CAMLIB(samsung)
19618 # GP_CAMLIB(sierra)
19619 # GP_CAMLIB(sipix_blink,obsolete)
19620 # GP_CAMLIB(sipix_blink2)
19621 # GP_CAMLIB(sipix_web2)
19622 # GP_CAMLIB(smal)
19623 # GP_CAMLIB(sonix)
19624 # GP_CAMLIB(sony_dscf1)
19625 # GP_CAMLIB(sony_dscf55)
19626 # GP_CAMLIB(soundvision)
19627 # GP_CAMLIB(spca50x)
19628 # GP_CAMLIB(sq905)
19629 # GP_CAMLIB(st2205)
19630 # GP_CAMLIB(stv0674)
19631 # GP_CAMLIB(sx330z)
19632 # GP_CAMLIB(template,obsolete)
19633 # GP_CAMLIB(toshiba_pdrm11)
19634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which drivers to compile" >&5
19635 $as_echo_n "checking which drivers to compile... " >&6; }
19636
19637 # Check whether --with-drivers was given.
19638 if test "${with_drivers+set}" = set; then :
19639   withval=$with_drivers; drivers="$withval"
19640 else
19641   drivers="all"
19642 fi
19643 ALL_DEFINED_CAMLIBS="agfa_cl20 aox ax203 barbie canon casio_qv clicksmart310 digigr8 digita dimera3500 directory enigma13 gsmart300 hp215 iclick jamcam jd11 jl2005a kodak_dc120 kodak_dc210 kodak_dc240 kodak_ez200 largan lg_gsm mars panasonic_coolshot panasonic_l859 panasonic_dc1000 panasonic_dc1580 pccam300 pccam600 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ptp2 ricoh ricoh_g3 samsung sierra sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 st2205 stv0674 sx330z toshiba_pdrm11 sipix_blink template"
19644 ALL_CURRENT_CAMLIBS="agfa_cl20 aox ax203 barbie canon casio_qv clicksmart310 digigr8 digita dimera3500 directory enigma13 gsmart300 hp215 iclick jamcam jd11 jl2005a kodak_dc120 kodak_dc210 kodak_dc240 kodak_ez200 largan lg_gsm mars panasonic_coolshot panasonic_l859 panasonic_dc1000 panasonic_dc1580 pccam300 pccam600 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ptp2 ricoh ricoh_g3 samsung sierra sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 st2205 stv0674 sx330z toshiba_pdrm11"
19645 BUILD_THESE_CAMLIBS_BASE=""
19646 if test "$drivers" = "all"; then
19647         BUILD_THESE_CAMLIBS_BASE="$ALL_CURRENT_CAMLIBS"
19648         { $as_echo "$as_me:${as_lineno-$LINENO}: result: all" >&5
19649 $as_echo "all" >&6; }
19650 else
19651         # drivers=$(echo $drivers | sed 's/,/ /g')
19652         IFS_save="$IFS"
19653         IFS=",$IFS"
19654         for driver in $drivers; do
19655                 IFS="$IFS_save"
19656                 found=false
19657                 for camlib in ${ALL_DEFINED_CAMLIBS}; do
19658                         if test "$driver" = "$camlib"; then
19659                                 BUILD_THESE_CAMLIBS_BASE="$BUILD_THESE_CAMLIBS_BASE $driver"
19660                                 found=:
19661                                 break
19662                         fi
19663                 done
19664                 if $found; then :; else
19665                         as_fn_error $? "Unknown driver $driver!" "$LINENO" 5
19666                 fi
19667         done
19668         if test "x$BUILD_THESE_CAMLIBS_BASE" = "x canon" ; then
19669                 # Gentoo mode... if user just said "canon", add "ptp2" ... should save support requests.
19670                 BUILD_THESE_CAMLIBS_BASE="$BUILD_THESE_CAMLIBS_BASE ptp2"
19671                 camlibs="$camlibs ptp2"
19672                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19673                         You have just selected the old canon driver. However most current Canons
19674                         are supported by the PTP2 driver.
19675                         Autoselecting ptp2 driver too to avoid support requests.
19676                 " >&5
19677 $as_echo "$as_me: WARNING:
19678                         You have just selected the old canon driver. However most current Canons
19679                         are supported by the PTP2 driver.
19680                         Autoselecting ptp2 driver too to avoid support requests.
19681                 " >&2;}
19682         fi
19683         IFS="$IFS_save"
19684         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $drivers" >&5
19685 $as_echo "$drivers" >&6; }
19686 fi
19687 BUILD_THESE_CAMLIBS=""
19688 for f in $BUILD_THESE_CAMLIBS_BASE
19689 do
19690     BUILD_THESE_CAMLIBS="${BUILD_THESE_CAMLIBS}${BUILD_THESE_CAMLIBS+ }${f}.la"
19691 done
19692
19693
19694
19695
19696
19697
19698
19699 # Check whether --with-doc-dir was given.
19700 if test "${with_doc_dir+set}" = set; then :
19701   withval=$with_doc_dir;
19702 fi
19703
19704
19705 # check for the main ("root") documentation directory
19706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking main docdir" >&5
19707 $as_echo_n "checking main docdir... " >&6; }
19708
19709 if test "x${with_doc_dir}" != "x"
19710 then # docdir is given as parameter
19711     docdir="${with_doc_dir}"
19712     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${docdir} (from parameter)" >&5
19713 $as_echo "${docdir} (from parameter)" >&6; }
19714 else # otherwise invent a docdir hopefully compatible with system policy
19715     if test -d "/usr/share/doc"
19716     then
19717         maindocdir='${prefix}/share/doc'
19718         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${maindocdir} (FHS style)" >&5
19719 $as_echo "${maindocdir} (FHS style)" >&6; }
19720     elif test -d "/usr/doc"
19721     then
19722         maindocdir='${prefix}/doc'
19723         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${maindocdir} (old style)" >&5
19724 $as_echo "${maindocdir} (old style)" >&6; }
19725     else
19726         maindocdir='${datadir}/doc'
19727         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${maindocdir} (default value)" >&5
19728 $as_echo "${maindocdir} (default value)" >&6; }
19729     fi
19730     { $as_echo "$as_me:${as_lineno-$LINENO}: checking package docdir" >&5
19731 $as_echo_n "checking package docdir... " >&6; }
19732     # check whether to include package version into documentation path
19733     # FIXME: doesn't work properly.
19734     if ls -d /usr/{share/,}doc/make-0-9* > /dev/null 2>&1
19735     then
19736         docdir="${maindocdir}/${PACKAGE}-${VERSION}"
19737         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${docdir} (redhat style)" >&5
19738 $as_echo "${docdir} (redhat style)" >&6; }
19739     else
19740         docdir="${maindocdir}/${PACKAGE}"
19741         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${docdir} (default style)" >&5
19742 $as_echo "${docdir} (default style)" >&6; }
19743     fi
19744 fi
19745
19746
19747 # Extract the first word of "dot", so it can be a program name with args.
19748 set dummy dot; ac_word=$2
19749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19750 $as_echo_n "checking for $ac_word... " >&6; }
19751 if ${ac_cv_path_DOT+:} false; then :
19752   $as_echo_n "(cached) " >&6
19753 else
19754   case $DOT in
19755   [\\/]* | ?:[\\/]*)
19756   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
19757   ;;
19758   *)
19759   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19760 for as_dir in $PATH
19761 do
19762   IFS=$as_save_IFS
19763   test -z "$as_dir" && as_dir=.
19764     for ac_exec_ext in '' $ac_executable_extensions; do
19765   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19766     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
19767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19768     break 2
19769   fi
19770 done
19771   done
19772 IFS=$as_save_IFS
19773
19774   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
19775   ;;
19776 esac
19777 fi
19778 DOT=$ac_cv_path_DOT
19779 if test -n "$DOT"; then
19780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
19781 $as_echo "$DOT" >&6; }
19782 else
19783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19784 $as_echo "no" >&6; }
19785 fi
19786
19787
19788 # Extract the first word of "doxygen", so it can be a program name with args.
19789 set dummy doxygen; ac_word=$2
19790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19791 $as_echo_n "checking for $ac_word... " >&6; }
19792 if ${ac_cv_path_DOXYGEN+:} false; then :
19793   $as_echo_n "(cached) " >&6
19794 else
19795   case $DOXYGEN in
19796   [\\/]* | ?:[\\/]*)
19797   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
19798   ;;
19799   *)
19800   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19801 for as_dir in $PATH
19802 do
19803   IFS=$as_save_IFS
19804   test -z "$as_dir" && as_dir=.
19805     for ac_exec_ext in '' $ac_executable_extensions; do
19806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19807     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
19808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19809     break 2
19810   fi
19811 done
19812   done
19813 IFS=$as_save_IFS
19814
19815   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="false"
19816   ;;
19817 esac
19818 fi
19819 DOXYGEN=$ac_cv_path_DOXYGEN
19820 if test -n "$DOXYGEN"; then
19821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
19822 $as_echo "$DOXYGEN" >&6; }
19823 else
19824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19825 $as_echo "no" >&6; }
19826 fi
19827
19828
19829  if test "x$DOXYGEN" != "xfalse"; then
19830   HAVE_DOXYGEN_TRUE=
19831   HAVE_DOXYGEN_FALSE='#'
19832 else
19833   HAVE_DOXYGEN_TRUE='#'
19834   HAVE_DOXYGEN_FALSE=
19835 fi
19836
19837  if test "x$DOT" != "xfalse"; then
19838   HAVE_DOT_TRUE=
19839   HAVE_DOT_FALSE='#'
19840 else
19841   HAVE_DOT_TRUE='#'
19842   HAVE_DOT_FALSE=
19843 fi
19844
19845 if test "x$DOT" != "xfalse"; then
19846         HAVE_DOT=YES
19847
19848 else
19849         HAVE_DOT=NO
19850
19851 fi
19852 HTML_APIDOC_DIR="${PACKAGE_TARNAME}-api.html"
19853
19854 DOXYGEN_OUTPUT_DIR=doxygen-output
19855
19856 HTML_APIDOC_INTERNALS_DIR="${PACKAGE_TARNAME}-internals.html"
19857
19858
19859 # docdir has to be determined in advance
19860
19861
19862 # ---------------------------------------------------------------------------
19863 # gtk-doc: We use gtk-doc for building our documentation. However, we
19864 #          require the user to explicitely request the build.
19865 # ---------------------------------------------------------------------------
19866 try_gtkdoc=false
19867 gtkdoc_msg="no (not requested)"
19868 have_gtkdoc=false
19869 # Check whether --enable-docs was given.
19870 if test "${enable_docs+set}" = set; then :
19871   enableval=$enable_docs;
19872         if test x$enableval = xyes; then
19873                 try_gtkdoc=true
19874         fi
19875
19876 fi
19877
19878 if $try_gtkdoc; then
19879         # Extract the first word of "gtkdoc-mkdb", so it can be a program name with args.
19880 set dummy gtkdoc-mkdb; ac_word=$2
19881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19882 $as_echo_n "checking for $ac_word... " >&6; }
19883 if ${ac_cv_path_GTKDOC+:} false; then :
19884   $as_echo_n "(cached) " >&6
19885 else
19886   case $GTKDOC in
19887   [\\/]* | ?:[\\/]*)
19888   ac_cv_path_GTKDOC="$GTKDOC" # Let the user override the test with a path.
19889   ;;
19890   *)
19891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19892 for as_dir in $PATH
19893 do
19894   IFS=$as_save_IFS
19895   test -z "$as_dir" && as_dir=.
19896     for ac_exec_ext in '' $ac_executable_extensions; do
19897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19898     ac_cv_path_GTKDOC="$as_dir/$ac_word$ac_exec_ext"
19899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19900     break 2
19901   fi
19902 done
19903   done
19904 IFS=$as_save_IFS
19905
19906   ;;
19907 esac
19908 fi
19909 GTKDOC=$ac_cv_path_GTKDOC
19910 if test -n "$GTKDOC"; then
19911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC" >&5
19912 $as_echo "$GTKDOC" >&6; }
19913 else
19914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19915 $as_echo "no" >&6; }
19916 fi
19917
19918
19919         if test -n "${GTKDOC}"; then
19920                 have_gtkdoc=true
19921                 gtkdoc_msg="yes"
19922         else
19923                 gtkdoc_msg="no (http://www.gtk.org/rdp/download.html)"
19924         fi
19925 fi
19926  if $have_gtkdoc; then
19927   ENABLE_GTK_DOC_TRUE=
19928   ENABLE_GTK_DOC_FALSE='#'
19929 else
19930   ENABLE_GTK_DOC_TRUE='#'
19931   ENABLE_GTK_DOC_FALSE=
19932 fi
19933
19934
19935 gp_config_msg_len="$(expr "build API docs with gtk-doc" : '.*')"
19936 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
19937         gp_config_msg_lhs="$(expr "build API docs with gtk-doc" : "\(.\{0,${gp_config_len3}\}\)")..:"
19938 else
19939         gp_config_msg_lhs="$(expr "build API docs with gtk-doc:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
19940 fi
19941 gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} $gtkdoc_msg
19942 "
19943
19944
19945
19946 # ---------------------------------------------------------------------------
19947 # Give the user the possibility to install html documentation in a
19948 # user-defined location.
19949 # ---------------------------------------------------------------------------
19950
19951 # Check whether --with-html-dir was given.
19952 if test "${with_html_dir+set}" = set; then :
19953   withval=$with_html_dir;
19954 fi
19955
19956
19957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html dir" >&5
19958 $as_echo_n "checking for html dir... " >&6; }
19959 if test "x${with_html_dir}" = "x" ; then
19960     htmldir="${docdir}/html"
19961     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${htmldir} (default)" >&5
19962 $as_echo "${htmldir} (default)" >&6; }
19963 else
19964     htmldir="${with_html_dir}"
19965     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${htmldir} (from parameter)" >&5
19966 $as_echo "${htmldir} (from parameter)" >&6; }
19967 fi
19968
19969 apidocdir="${htmldir}/api"
19970
19971
19972 camlibdocdir='${docdir}/camlibs'
19973
19974
19975
19976
19977
19978 # Check whether --with-rpmbuild was given.
19979 if test "${with_rpmbuild+set}" = set; then :
19980   withval=$with_rpmbuild;
19981 fi
19982
19983
19984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmbuild or rpm" >&5
19985 $as_echo_n "checking for rpmbuild or rpm... " >&6; }
19986 if test -x "${with_rpmbuild}"
19987 then
19988     RPMBUILD="${with_rpmbuild}"
19989     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${RPMBUILD} (from parameter)" >&5
19990 $as_echo "${RPMBUILD} (from parameter)" >&6; }
19991 else
19992     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using autodetection" >&5
19993 $as_echo "using autodetection" >&6; }
19994     for ac_prog in rpmbuild rpm
19995 do
19996   # Extract the first word of "$ac_prog", so it can be a program name with args.
19997 set dummy $ac_prog; ac_word=$2
19998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19999 $as_echo_n "checking for $ac_word... " >&6; }
20000 if ${ac_cv_prog_RPMBUILD+:} false; then :
20001   $as_echo_n "(cached) " >&6
20002 else
20003   if test -n "$RPMBUILD"; then
20004   ac_cv_prog_RPMBUILD="$RPMBUILD" # Let the user override the test.
20005 else
20006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20007 for as_dir in $PATH
20008 do
20009   IFS=$as_save_IFS
20010   test -z "$as_dir" && as_dir=.
20011     for ac_exec_ext in '' $ac_executable_extensions; do
20012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20013     ac_cv_prog_RPMBUILD="$ac_prog"
20014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20015     break 2
20016   fi
20017 done
20018   done
20019 IFS=$as_save_IFS
20020
20021 fi
20022 fi
20023 RPMBUILD=$ac_cv_prog_RPMBUILD
20024 if test -n "$RPMBUILD"; then
20025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPMBUILD" >&5
20026 $as_echo "$RPMBUILD" >&6; }
20027 else
20028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20029 $as_echo "no" >&6; }
20030 fi
20031
20032
20033   test -n "$RPMBUILD" && break
20034 done
20035 test -n "$RPMBUILD" || RPMBUILD="false"
20036
20037     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmbuild or rpm" >&5
20038 $as_echo_n "checking for rpmbuild or rpm... " >&6; }
20039     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${RPMBUILD} (autodetected)" >&5
20040 $as_echo "${RPMBUILD} (autodetected)" >&6; }
20041 fi
20042
20043  if test "$RPMBUILD" != "false"; then
20044   ENABLE_RPM_TRUE=
20045   ENABLE_RPM_FALSE='#'
20046 else
20047   ENABLE_RPM_TRUE='#'
20048   ENABLE_RPM_FALSE=
20049 fi
20050
20051
20052
20053         # effective_target has to be determined in advance
20054
20055
20056         is_linux=false
20057         case "$effective_target" in
20058                 *linux*)
20059                         is_linux=true
20060                         ;;
20061         esac
20062          if "$is_linux"; then
20063   HAVE_LINUX_TRUE=
20064   HAVE_LINUX_FALSE='#'
20065 else
20066   HAVE_LINUX_TRUE='#'
20067   HAVE_LINUX_FALSE=
20068 fi
20069
20070
20071         # required for docdir
20072         # FIXME: Implicit dependency
20073         # AC_REQUIRE(GP_CHECK_DOC_DIR)
20074
20075
20076 # Check whether --with-hotplug-doc-dir was given.
20077 if test "${with_hotplug_doc_dir+set}" = set; then :
20078   withval=$with_hotplug_doc_dir;
20079 fi
20080
20081
20082         if "$is_linux"; then
20083                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hotplug doc dir" >&5
20084 $as_echo_n "checking for hotplug doc dir... " >&6; }
20085                 if test "x${with_hotplug_doc_dir}" != "x"
20086                 then # given as parameter
20087                     hotplugdocdir="${with_hotplug_doc_dir}"
20088                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${hotplugdocdir} (from parameter)" >&5
20089 $as_echo "${hotplugdocdir} (from parameter)" >&6; }
20090                 else # start at docdir
20091                     hotplugdocdir="${docdir}/linux-hotplug"
20092                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${hotplugdocdir} (default)" >&5
20093 $as_echo "${hotplugdocdir} (default)" >&6; }
20094                 fi
20095         else
20096                 hotplugdocdir=""
20097         fi
20098
20099
20100 # Check whether --with-hotplug-usermap-dir was given.
20101 if test "${with_hotplug_usermap_dir+set}" = set; then :
20102   withval=$with_hotplug_usermap_dir;
20103 fi
20104
20105
20106         if "$is_linux"; then
20107                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hotplug usermap dir" >&5
20108 $as_echo_n "checking for hotplug usermap dir... " >&6; }
20109                 if test "x${with_hotplug_usermap_dir}" != "x"
20110                 then # given as parameter
20111                     hotplugusermapdir="${with_hotplug_usermap_dir}"
20112                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${hotplugusermapdir} (from parameter)" >&5
20113 $as_echo "${hotplugusermapdir} (from parameter)" >&6; }
20114                 else # start at docdir
20115                     hotplugusermapdir="${docdir}/linux-hotplug"
20116                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${hotplugusermapdir} (default)" >&5
20117 $as_echo "${hotplugusermapdir} (default)" >&6; }
20118                 fi
20119         else
20120                 hotplugusermapdir=""
20121         fi
20122
20123         # Let us hope that automake does not create "" directories
20124         # on non-Linux systems now.
20125
20126
20127
20128
20129 pkgconfigdir='${libdir}/pkgconfig'
20130
20131
20132
20133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dynamic library extension" >&5
20134 $as_echo_n "checking for dynamic library extension... " >&6; }
20135 soext=""
20136 case "$host" in
20137         *linux*)        soext=".so" ;;
20138         *sunos*)        soext=".so" ;;
20139         *solaris*)      soext=".so" ;;
20140         *bsd*)          soext=".so" ;;
20141         *darwin*)       soext=".dylib" ;;
20142         *w32*)          soext=".dll" ;;
20143 esac
20144 if test "x$soext" = "x"; then
20145         soext=".so"
20146         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${soext}" >&5
20147 $as_echo "${soext}" >&6; }
20148         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
20149 Host system \"${host}\" not recognized, defaulting to \"${soext}\".
20150 " >&5
20151 $as_echo "$as_me: WARNING:
20152 Host system \"${host}\" not recognized, defaulting to \"${soext}\".
20153 " >&2;}
20154 else
20155         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${soext}" >&5
20156 $as_echo "${soext}" >&6; }
20157 fi
20158
20159
20160
20161
20162
20163
20164
20165 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20166         if test -n "$ac_tool_prefix"; then
20167   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20168 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20170 $as_echo_n "checking for $ac_word... " >&6; }
20171 if ${ac_cv_path_PKG_CONFIG+:} false; then :
20172   $as_echo_n "(cached) " >&6
20173 else
20174   case $PKG_CONFIG in
20175   [\\/]* | ?:[\\/]*)
20176   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20177   ;;
20178   *)
20179   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20180 for as_dir in $PATH
20181 do
20182   IFS=$as_save_IFS
20183   test -z "$as_dir" && as_dir=.
20184     for ac_exec_ext in '' $ac_executable_extensions; do
20185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20186     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20188     break 2
20189   fi
20190 done
20191   done
20192 IFS=$as_save_IFS
20193
20194   ;;
20195 esac
20196 fi
20197 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20198 if test -n "$PKG_CONFIG"; then
20199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20200 $as_echo "$PKG_CONFIG" >&6; }
20201 else
20202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20203 $as_echo "no" >&6; }
20204 fi
20205
20206
20207 fi
20208 if test -z "$ac_cv_path_PKG_CONFIG"; then
20209   ac_pt_PKG_CONFIG=$PKG_CONFIG
20210   # Extract the first word of "pkg-config", so it can be a program name with args.
20211 set dummy pkg-config; ac_word=$2
20212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20213 $as_echo_n "checking for $ac_word... " >&6; }
20214 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
20215   $as_echo_n "(cached) " >&6
20216 else
20217   case $ac_pt_PKG_CONFIG in
20218   [\\/]* | ?:[\\/]*)
20219   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20220   ;;
20221   *)
20222   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20223 for as_dir in $PATH
20224 do
20225   IFS=$as_save_IFS
20226   test -z "$as_dir" && as_dir=.
20227     for ac_exec_ext in '' $ac_executable_extensions; do
20228   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20229     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20230     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20231     break 2
20232   fi
20233 done
20234   done
20235 IFS=$as_save_IFS
20236
20237   ;;
20238 esac
20239 fi
20240 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20241 if test -n "$ac_pt_PKG_CONFIG"; then
20242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
20243 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
20244 else
20245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20246 $as_echo "no" >&6; }
20247 fi
20248
20249   if test "x$ac_pt_PKG_CONFIG" = x; then
20250     PKG_CONFIG=""
20251   else
20252     case $cross_compiling:$ac_tool_warned in
20253 yes:)
20254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20256 ac_tool_warned=yes ;;
20257 esac
20258     PKG_CONFIG=$ac_pt_PKG_CONFIG
20259   fi
20260 else
20261   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20262 fi
20263
20264 fi
20265 if test -n "$PKG_CONFIG"; then
20266         _pkg_min_version=0.9.0
20267         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
20268 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
20269         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20270                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20271 $as_echo "yes" >&6; }
20272         else
20273                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20274 $as_echo "no" >&6; }
20275                 PKG_CONFIG=""
20276         fi
20277 fi
20278
20279 # ----------------------------------------------------------------------
20280 # [GP_CHECK_LIBRARY]([LIBEXIF],[libexif],[>= 0.6.13],
20281 #                    [libexif/exif-data.h],[exif_data_new],
20282 #                    [...],[...],[default-on])
20283 # http://www.sourceforge.net/projects/libexif
20284 # ----------------------------------------------------------------------
20285 # Use _CFLAGS and _LIBS given to configure.
20286 # This makes it possible to set these vars in a configure script
20287 # and AC_CONFIG_SUBDIRS this configure.
20288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexif to use" >&5
20289 $as_echo_n "checking for libexif to use... " >&6; }
20290 REQUIREMENTS_FOR_LIBEXIF="libexif >= 0.6.13"
20291 userdef_LIBEXIF=no
20292 have_LIBEXIF=no
20293 if test "x${LIBEXIF_LIBS}" = "x" && test "x${LIBEXIF_CFLAGS}" = "x"; then
20294         # define --with/--without argument
20295                                 try_LIBEXIF=auto
20296
20297 # Check whether --with-libexif was given.
20298 if test "${with_libexif+set}" = set; then :
20299   withval=$with_libexif; try_LIBEXIF="$withval"
20300 fi
20301
20302         if test "x${try_LIBEXIF}" = "xno"; then
20303               REQUIREMENTS_FOR_LIBEXIF=
20304         fi
20305         if test "x${try_LIBEXIF}" = "xauto"; then try_LIBEXIF=autodetect; fi
20306         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${try_LIBEXIF}" >&5
20307 $as_echo "${try_LIBEXIF}" >&6; }
20308                 if test "x${try_LIBEXIF}" = "xautodetect"; then
20309                 # OK, we have to autodetect.
20310                 # We start autodetection with the cleanest known method: pkg-config
20311                 if test "x${have_LIBEXIF}" = "xno"; then
20312                         # we need that line break after the PKG_CHECK_MODULES
20313
20314 pkg_failed=no
20315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBEXIF" >&5
20316 $as_echo_n "checking for LIBEXIF... " >&6; }
20317
20318 if test -n "$LIBEXIF_CFLAGS"; then
20319     pkg_cv_LIBEXIF_CFLAGS="$LIBEXIF_CFLAGS"
20320  elif test -n "$PKG_CONFIG"; then
20321     if test -n "$PKG_CONFIG" && \
20322     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libexif >= 0.6.13\""; } >&5
20323   ($PKG_CONFIG --exists --print-errors "libexif >= 0.6.13") 2>&5
20324   ac_status=$?
20325   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20326   test $ac_status = 0; }; then
20327   pkg_cv_LIBEXIF_CFLAGS=`$PKG_CONFIG --cflags "libexif >= 0.6.13" 2>/dev/null`
20328 else
20329   pkg_failed=yes
20330 fi
20331  else
20332     pkg_failed=untried
20333 fi
20334 if test -n "$LIBEXIF_LIBS"; then
20335     pkg_cv_LIBEXIF_LIBS="$LIBEXIF_LIBS"
20336  elif test -n "$PKG_CONFIG"; then
20337     if test -n "$PKG_CONFIG" && \
20338     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libexif >= 0.6.13\""; } >&5
20339   ($PKG_CONFIG --exists --print-errors "libexif >= 0.6.13") 2>&5
20340   ac_status=$?
20341   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20342   test $ac_status = 0; }; then
20343   pkg_cv_LIBEXIF_LIBS=`$PKG_CONFIG --libs "libexif >= 0.6.13" 2>/dev/null`
20344 else
20345   pkg_failed=yes
20346 fi
20347  else
20348     pkg_failed=untried
20349 fi
20350
20351
20352
20353 if test $pkg_failed = yes; then
20354         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20355 $as_echo "no" >&6; }
20356
20357 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20358         _pkg_short_errors_supported=yes
20359 else
20360         _pkg_short_errors_supported=no
20361 fi
20362         if test $_pkg_short_errors_supported = yes; then
20363                 LIBEXIF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libexif >= 0.6.13" 2>&1`
20364         else
20365                 LIBEXIF_PKG_ERRORS=`$PKG_CONFIG --print-errors "libexif >= 0.6.13" 2>&1`
20366         fi
20367         # Put the nasty error message in config.log where it belongs
20368         echo "$LIBEXIF_PKG_ERRORS" >&5
20369
20370         :
20371 elif test $pkg_failed = untried; then
20372         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20373 $as_echo "no" >&6; }
20374         :
20375 else
20376         LIBEXIF_CFLAGS=$pkg_cv_LIBEXIF_CFLAGS
20377         LIBEXIF_LIBS=$pkg_cv_LIBEXIF_LIBS
20378         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20379 $as_echo "yes" >&6; }
20380         have_LIBEXIF=yes
20381 fi
20382                 fi
20383                 # If pkg-config didn't find anything, try the libfoo-config program
20384                 # certain known libraries ship with.
20385                 if test "x${have_LIBEXIF}" = "xno"; then
20386                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking libexif config program" >&5
20387 $as_echo_n "checking libexif config program... " >&6; }
20388                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
20389 $as_echo "none" >&6; }
20390                         # Extract the first word of "gp_lib_config", so it can be a program name with args.
20391 set dummy none; ac_word=$2
20392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20393 $as_echo_n "checking for $ac_word... " >&6; }
20394 if ${ac_cv_path_LIBEXIF_CONFIG_PROG+:} false; then :
20395   $as_echo_n "(cached) " >&6
20396 else
20397   case $LIBEXIF_CONFIG_PROG in
20398   [\\/]* | ?:[\\/]*)
20399   ac_cv_path_LIBEXIF_CONFIG_PROG="$LIBEXIF_CONFIG_PROG" # Let the user override the test with a path.
20400   ;;
20401   *)
20402   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20403 for as_dir in $PATH
20404 do
20405   IFS=$as_save_IFS
20406   test -z "$as_dir" && as_dir=.
20407     for ac_exec_ext in '' $ac_executable_extensions; do
20408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20409     ac_cv_path_LIBEXIF_CONFIG_PROG="$as_dir/$ac_word$ac_exec_ext"
20410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20411     break 2
20412   fi
20413 done
20414   done
20415 IFS=$as_save_IFS
20416
20417   ;;
20418 esac
20419 fi
20420 LIBEXIF_CONFIG_PROG=$ac_cv_path_LIBEXIF_CONFIG_PROG
20421 if test -n "$LIBEXIF_CONFIG_PROG"; then
20422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXIF_CONFIG_PROG" >&5
20423 $as_echo "$LIBEXIF_CONFIG_PROG" >&6; }
20424 else
20425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20426 $as_echo "no" >&6; }
20427 fi
20428
20429
20430                         if test -n "${LIBEXIF_CONFIG_PROG}" &&
20431                                 test "${LIBEXIF_CONFIG_PROG}" != "none"; then
20432
20433                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexif version according to none" >&5
20434 $as_echo_n "checking for libexif version according to none... " >&6; }
20435                                                                 _LIBEXIF_COMPN="-lt"
20436                                                                 # split requested version number using m4 regexps
20437                                 _LIBEXIF_REQ_1="0"
20438                                 _LIBEXIF_REQ_2="6"
20439                                 _LIBEXIF_REQ_3="13"
20440                                 _LIBEXIF_REQ_4=""
20441                                 # split installed version number via shell and sed
20442                                 _LIBEXIF_VERSION="$("${LIBEXIF_CONFIG_PROG}" --version | sed 's/^.* //')"
20443                                 _LIBEXIF_VER_1="$(echo "${_LIBEXIF_VERSION}" | sed 's/\([0-9]*\).*/\1/g')"
20444                                 _LIBEXIF_VER_2="$(echo "${_LIBEXIF_VERSION}" | sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/g')"
20445                                 _LIBEXIF_VER_3="$(echo "${_LIBEXIF_VERSION}" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/g')"
20446                                 _LIBEXIF_VER_4="$(echo "${_LIBEXIF_VERSION}" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)\(.*\)/\4/g')"
20447                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_LIBEXIF_VERSION}" >&5
20448 $as_echo "${_LIBEXIF_VERSION}" >&6; }
20449                                 _tmp=false
20450                                 if   test "${_LIBEXIF_VER_1}" "${_LIBEXIF_COMPN}" "${_LIBEXIF_REQ_1}"; then _tmp=true;
20451                                 elif test "${_LIBEXIF_VER_2}" "${_LIBEXIF_COMPN}" "${_LIBEXIF_REQ_2}"; then _tmp=true;
20452                                 elif test "${_LIBEXIF_VER_3}" "${_LIBEXIF_COMPN}" "${_LIBEXIF_REQ_3}"; then _tmp=true;
20453                                 elif test "x${_LIBEXIF_VER_4}" = "x" && test "x${_LIBEXIF_REQ_4}" != "x"; then _tmp=true;
20454                                 elif test "${_LIBEXIF_VER_4}" "${_LIBEXIF_COMPN}" "${_LIBEXIF_REQ_4}"; then _tmp=true;
20455                                 fi
20456                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libexif version is matching requirement >= 0.6.13" >&5
20457 $as_echo_n "checking if libexif version is matching requirement >= 0.6.13... " >&6; }
20458                                 if "${_tmp}"; then
20459                                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20460 $as_echo "no" >&6; }
20461                                    as_fn_error $? "Version requirement libexif >= 0.6.13 not met. Found: ${_LIBEXIF_VERSION}" "$LINENO" 5
20462                                 else
20463                                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20464 $as_echo "yes" >&6; }
20465                                 fi
20466                                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexif parameters from none" >&5
20467 $as_echo_n "checking for libexif parameters from none... " >&6; }
20468                                 LIBEXIF_LIBS="$(${LIBEXIF_CONFIG_PROG} --libs || echo "*error*")"
20469                                 LIBEXIF_CFLAGS="$(${LIBEXIF_CONFIG_PROG} --cflags || echo "*error*")"
20470                                 if test "x${LIBEXIF_LIBS}" = "*error*" ||
20471                                         test "x${LIBEXIF_CFLAGS}" = "*error*"; then
20472                                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
20473 $as_echo "error" >&6; }
20474                                 else
20475                                         have_LIBEXIF=yes
20476                                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
20477 $as_echo "ok" >&6; }
20478                                 fi
20479                         fi
20480                                         fi
20481                 # Version requirement given, so we do not rely on probing.
20482         elif test "x${try_LIBEXIF}" = "xno"; then
20483                 :
20484         else
20485                 # We've been given a prefix to look in for library libexif.
20486                 # We start looking for libexif.la files first.
20487                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexif.la file in ${try_LIBEXIF}" >&5
20488 $as_echo_n "checking for libexif.la file in ${try_LIBEXIF}... " >&6; }
20489                 if test -f "${try_LIBEXIF}/lib/libexif.la"; then
20490                         LIBEXIF_LIBS="${try_LIBEXIF}/lib/libexif.la"
20491                         LIBEXIF_CFLAGS="-I${try_LIBEXIF}/include"
20492                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: libtool file $LIBEXIF_LIBS (good)" >&5
20493 $as_echo "libtool file $LIBEXIF_LIBS (good)" >&6; }
20494                         have_LIBEXIF=yes
20495                 elif test -f "${try_LIBEXIF}/lib64/libexif.la"; then # HACK
20496                         LIBEXIF_LIBS="${try_LIBEXIF}/lib64/libexif.la"
20497                         LIBEXIF_CFLAGS="-I${try_LIBEXIF}/include"
20498                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: libtool file $LIBEXIF_LIBS (good)" >&5
20499 $as_echo "libtool file $LIBEXIF_LIBS (good)" >&6; }
20500                         have_LIBEXIF=yes
20501                 else
20502                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: wild guess that something is in $try_LIBEXIF" >&5
20503 $as_echo "wild guess that something is in $try_LIBEXIF" >&6; }
20504                         LIBEXIF_LIBS="-L${try_LIBEXIF}/lib -l$(echo "libexif" | sed 's/^lib//')"
20505                         LIBEXIF_CFLAGS="-I${try_LIBEXIF}/include"
20506                         have_LIBEXIF=yes
20507                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
20508 * Warning:
20509 *   libtool file libexif.la could not be found.
20510 *   We may be linking against the WRONG library.
20511 " >&5
20512 $as_echo "$as_me: WARNING:
20513 * Warning:
20514 *   libtool file libexif.la could not be found.
20515 *   We may be linking against the WRONG library.
20516 " >&2;}
20517                 fi
20518         fi
20519 elif test "x${LIBEXIF_LIBS}" != "x" && test "x${LIBEXIF_CFLAGS}" != "x"; then
20520         { $as_echo "$as_me:${as_lineno-$LINENO}: result: user-defined" >&5
20521 $as_echo "user-defined" >&6; }
20522         userdef_LIBEXIF=yes
20523         have_LIBEXIF=yes
20524 else
20525         { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken call" >&5
20526 $as_echo "broken call" >&6; }
20527         as_fn_error $? "
20528 * Fatal:
20529 * When calling configure for ${PACKAGE_TARNAME}
20530 *     ${PACKAGE_NAME}
20531 * either set both LIBEXIF_LIBS *and* LIBEXIF_CFLAGS
20532 * or neither.
20533 " "$LINENO" 5
20534 fi
20535
20536 if test "x${have_LIBEXIF}" = "xyes"; then
20537 # ACTION-IF-FOUND
20538
20539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we use a version of libexif with ExifData.ifd[]" >&5
20540 $as_echo_n "checking whether we use a version of libexif with ExifData.ifd[]... " >&6; }
20541 # Check for libexif version
20542 CPPFLAGS_save="$CPPFLAGS"
20543 CPPFLAGS="$LIBEXIF_CFLAGS"
20544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20545 /* end confdefs.h.  */
20546
20547 /* CC=$CC */
20548 /* CPPFLAGS=${CPPFLAGS} */
20549 /* LDFLAGS=${LDFLAGS} */
20550 #include <libexif/exif-data.h>
20551 #include <libexif/exif-content.h>
20552
20553 _ACEOF
20554 if ac_fn_c_try_compile "$LINENO"; then :
20555
20556
20557 $as_echo "#define HAVE_LIBEXIF_IFD 1" >>confdefs.h
20558
20559    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20560 $as_echo "yes" >&6; }
20561
20562 else
20563
20564    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20565 $as_echo "no" >&6; }
20566
20567 fi
20568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20569 CPPFLAGS="$CPPFLAGS_save"
20570
20571 fi
20572 if test "x${have_LIBEXIF}" = "xyes"; then
20573 CPPFLAGS_save="$CPPFLAGS"
20574 CPPFLAGS="${LIBEXIF_CFLAGS}"
20575 ac_fn_c_check_header_mongrel "$LINENO" "libexif/exif-data.h" "ac_cv_header_libexif_exif_data_h" "$ac_includes_default"
20576 if test "x$ac_cv_header_libexif_exif_data_h" = xyes; then :
20577   have_LIBEXIF=yes
20578 else
20579   have_LIBEXIF=no
20580 fi
20581
20582
20583 CPPFLAGS="$CPPFLAGS_save"
20584 fi
20585 if test "x${userdef_LIBEXIF}" = "xno" && test "x${have_LIBEXIF}" = "xyes"; then
20586         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function exif_data_new in libexif" >&5
20587 $as_echo_n "checking for function exif_data_new in libexif... " >&6; }
20588         LIBS_save="$LIBS"
20589         LIBS="${LIBEXIF_LIBS}"
20590         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20591 /* end confdefs.h.  */
20592
20593 /* Override any GCC internal prototype to avoid an error.
20594    Use char because int might match the return type of a GCC
20595    builtin and then its argument prototype would still apply.  */
20596 #ifdef __cplusplus
20597 extern "C"
20598 #endif
20599 char exif_data_new ();
20600 int
20601 main ()
20602 {
20603 return exif_data_new ();
20604   ;
20605   return 0;
20606 }
20607 _ACEOF
20608 if ac_fn_c_try_link "$LINENO"; then :
20609
20610 else
20611   have_LIBEXIF=no
20612 fi
20613 rm -f core conftest.err conftest.$ac_objext \
20614     conftest$ac_exeext conftest.$ac_ext
20615         LIBS="$LIBS_save"
20616         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_LIBEXIF}" >&5
20617 $as_echo "${have_LIBEXIF}" >&6; }
20618 fi
20619  if test "x$have_LIBEXIF" = "xyes"; then
20620   HAVE_LIBEXIF_TRUE=
20621   HAVE_LIBEXIF_FALSE='#'
20622 else
20623   HAVE_LIBEXIF_TRUE='#'
20624   HAVE_LIBEXIF_FALSE=
20625 fi
20626
20627 if test "x$have_LIBEXIF" = "xyes"; then
20628
20629 $as_echo "#define HAVE_LIBEXIF 1" >>confdefs.h
20630
20631
20632 gp_config_msg_len="$(expr "libexif" : '.*')"
20633 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
20634         gp_config_msg_lhs="$(expr "libexif" : "\(.\{0,${gp_config_len3}\}\)")..:"
20635 else
20636         gp_config_msg_lhs="$(expr "libexif:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
20637 fi
20638 gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} yes
20639 "
20640         { $as_echo "$as_me:${as_lineno-$LINENO}: checking libexif library flags" >&5
20641 $as_echo_n "checking libexif library flags... " >&6; }
20642         { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"${LIBEXIF_LIBS}\"" >&5
20643 $as_echo "\"${LIBEXIF_LIBS}\"" >&6; }
20644         { $as_echo "$as_me:${as_lineno-$LINENO}: checking libexif cpp flags" >&5
20645 $as_echo_n "checking libexif cpp flags... " >&6; }
20646         { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"${LIBEXIF_CFLAGS}\"" >&5
20647 $as_echo "\"${LIBEXIF_CFLAGS}\"" >&6; }
20648 else
20649
20650 gp_config_msg_len="$(expr "libexif" : '.*')"
20651 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
20652         gp_config_msg_lhs="$(expr "libexif" : "\(.\{0,${gp_config_len3}\}\)")..:"
20653 else
20654         gp_config_msg_lhs="$(expr "libexif:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
20655 fi
20656 gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} no
20657 "
20658 fi
20659
20660
20661 # Extract the first word of "libusb-config", so it can be a program name with args.
20662 set dummy libusb-config; ac_word=$2
20663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20664 $as_echo_n "checking for $ac_word... " >&6; }
20665 if ${ac_cv_path_LIBUSB_CONFIG+:} false; then :
20666   $as_echo_n "(cached) " >&6
20667 else
20668   case $LIBUSB_CONFIG in
20669   [\\/]* | ?:[\\/]*)
20670   ac_cv_path_LIBUSB_CONFIG="$LIBUSB_CONFIG" # Let the user override the test with a path.
20671   ;;
20672   *)
20673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20674 for as_dir in $PATH
20675 do
20676   IFS=$as_save_IFS
20677   test -z "$as_dir" && as_dir=.
20678     for ac_exec_ext in '' $ac_executable_extensions; do
20679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20680     ac_cv_path_LIBUSB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20681     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20682     break 2
20683   fi
20684 done
20685   done
20686 IFS=$as_save_IFS
20687
20688   ;;
20689 esac
20690 fi
20691 LIBUSB_CONFIG=$ac_cv_path_LIBUSB_CONFIG
20692 if test -n "$LIBUSB_CONFIG"; then
20693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBUSB_CONFIG" >&5
20694 $as_echo "$LIBUSB_CONFIG" >&6; }
20695 else
20696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20697 $as_echo "no" >&6; }
20698 fi
20699
20700
20701  if test -n "${LIBUSB_CONFIG}"; then
20702   HAVE_LIBUSB_TRUE=
20703   HAVE_LIBUSB_FALSE='#'
20704 else
20705   HAVE_LIBUSB_TRUE='#'
20706   HAVE_LIBUSB_FALSE=
20707 fi
20708
20709
20710
20711  if test -n "$CXX" && test "X$CXX" != "Xno"; then
20712   HAVE_CXX_TRUE=
20713   HAVE_CXX_FALSE='#'
20714 else
20715   HAVE_CXX_TRUE='#'
20716   HAVE_CXX_FALSE=
20717 fi
20718
20719
20720
20721 if test -d "$srcdir/libgphoto2_port"; then
20722
20723
20724 subdirs="$subdirs libgphoto2_port"
20725
20726 else
20727         as_fn_error $? "
20728 *** Hey, where have you hidden my libgphoto2_port?
20729 *** I needed that!
20730 " "$LINENO" 5
20731 fi
20732
20733
20734 # ---------------------------------------------------------------------------
20735 # Create output files
20736 # ---------------------------------------------------------------------------
20737 ac_config_files="$ac_config_files README Makefile gphoto2-config camlibs/Makefile libgphoto2/Makefile libgphoto2.pc libgphoto2-uninstalled.pc examples/Makefile tests/Makefile tests/check-camera-list.sh tests/ddb/Makefile tests/ddb/check-ddb.sh packaging/Makefile packaging/linux-hotplug/Makefile packaging/generic/Makefile packaging/rpm/Makefile packaging/rpm/package.spec po/Makefile.in doc/Makefile doc/Doxyfile doc/api/Makefile"
20738
20739 cat >confcache <<\_ACEOF
20740 # This file is a shell script that caches the results of configure
20741 # tests run on this system so they can be shared between configure
20742 # scripts and configure runs, see configure's option --config-cache.
20743 # It is not useful on other systems.  If it contains results you don't
20744 # want to keep, you may remove or edit it.
20745 #
20746 # config.status only pays attention to the cache file if you give it
20747 # the --recheck option to rerun configure.
20748 #
20749 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20750 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20751 # following values.
20752
20753 _ACEOF
20754
20755 # The following way of writing the cache mishandles newlines in values,
20756 # but we know of no workaround that is simple, portable, and efficient.
20757 # So, we kill variables containing newlines.
20758 # Ultrix sh set writes to stderr and can't be redirected directly,
20759 # and sets the high bit in the cache file unless we assign to the vars.
20760 (
20761   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20762     eval ac_val=\$$ac_var
20763     case $ac_val in #(
20764     *${as_nl}*)
20765       case $ac_var in #(
20766       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20767 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20768       esac
20769       case $ac_var in #(
20770       _ | IFS | as_nl) ;; #(
20771       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20772       *) { eval $ac_var=; unset $ac_var;} ;;
20773       esac ;;
20774     esac
20775   done
20776
20777   (set) 2>&1 |
20778     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20779     *${as_nl}ac_space=\ *)
20780       # `set' does not quote correctly, so add quotes: double-quote
20781       # substitution turns \\\\ into \\, and sed turns \\ into \.
20782       sed -n \
20783         "s/'/'\\\\''/g;
20784           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20785       ;; #(
20786     *)
20787       # `set' quotes correctly as required by POSIX, so do not add quotes.
20788       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20789       ;;
20790     esac |
20791     sort
20792 ) |
20793   sed '
20794      /^ac_cv_env_/b end
20795      t clear
20796      :clear
20797      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20798      t end
20799      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20800      :end' >>confcache
20801 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20802   if test -w "$cache_file"; then
20803     if test "x$cache_file" != "x/dev/null"; then
20804       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20805 $as_echo "$as_me: updating cache $cache_file" >&6;}
20806       if test ! -f "$cache_file" || test -h "$cache_file"; then
20807         cat confcache >"$cache_file"
20808       else
20809         case $cache_file in #(
20810         */* | ?:*)
20811           mv -f confcache "$cache_file"$$ &&
20812           mv -f "$cache_file"$$ "$cache_file" ;; #(
20813         *)
20814           mv -f confcache "$cache_file" ;;
20815         esac
20816       fi
20817     fi
20818   else
20819     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20820 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20821   fi
20822 fi
20823 rm -f confcache
20824
20825 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20826 # Let make expand exec_prefix.
20827 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20828
20829 DEFS=-DHAVE_CONFIG_H
20830
20831 ac_libobjs=
20832 ac_ltlibobjs=
20833 U=
20834 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20835   # 1. Remove the extension, and $U if already installed.
20836   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20837   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20838   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20839   #    will be set to the directory where LIBOBJS objects are built.
20840   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20841   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20842 done
20843 LIBOBJS=$ac_libobjs
20844
20845 LTLIBOBJS=$ac_ltlibobjs
20846
20847
20848  if test -n "$EXEEXT"; then
20849   am__EXEEXT_TRUE=
20850   am__EXEEXT_FALSE='#'
20851 else
20852   am__EXEEXT_TRUE='#'
20853   am__EXEEXT_FALSE=
20854 fi
20855
20856 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20857   as_fn_error $? "conditional \"AMDEP\" was never defined.
20858 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20859 fi
20860 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20861   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20862 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20863 fi
20864 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20865   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20866 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20867 fi
20868 if test -z "${HAVE_GCC_TRUE}" && test -z "${HAVE_GCC_FALSE}"; then
20869   as_fn_error $? "conditional \"HAVE_GCC\" was never defined.
20870 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20871 fi
20872 if test -z "${ENABLED_GP2DDB_TRUE}" && test -z "${ENABLED_GP2DDB_FALSE}"; then
20873   as_fn_error $? "conditional \"ENABLED_GP2DDB\" was never defined.
20874 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20875 fi
20876 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20877   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20878 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20879 fi
20880
20881 if test -z "${HAVE_UDEV_TRUE}" && test -z "${HAVE_UDEV_FALSE}"; then
20882   as_fn_error $? "conditional \"HAVE_UDEV\" was never defined.
20883 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20884 fi
20885 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
20886   as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
20887 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20888 fi
20889 if test -z "${HAVE_DOT_TRUE}" && test -z "${HAVE_DOT_FALSE}"; then
20890   as_fn_error $? "conditional \"HAVE_DOT\" was never defined.
20891 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20892 fi
20893 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
20894   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
20895 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20896 fi
20897 if test -z "${ENABLE_RPM_TRUE}" && test -z "${ENABLE_RPM_FALSE}"; then
20898   as_fn_error $? "conditional \"ENABLE_RPM\" was never defined.
20899 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20900 fi
20901 if test -z "${HAVE_LINUX_TRUE}" && test -z "${HAVE_LINUX_FALSE}"; then
20902   as_fn_error $? "conditional \"HAVE_LINUX\" was never defined.
20903 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20904 fi
20905 if test -z "${HAVE_LIBEXIF_TRUE}" && test -z "${HAVE_LIBEXIF_FALSE}"; then
20906   as_fn_error $? "conditional \"HAVE_LIBEXIF\" was never defined.
20907 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20908 fi
20909 if test -z "${HAVE_LIBUSB_TRUE}" && test -z "${HAVE_LIBUSB_FALSE}"; then
20910   as_fn_error $? "conditional \"HAVE_LIBUSB\" was never defined.
20911 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20912 fi
20913 if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then
20914   as_fn_error $? "conditional \"HAVE_CXX\" was never defined.
20915 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20916 fi
20917
20918 : "${CONFIG_STATUS=./config.status}"
20919 ac_write_fail=0
20920 ac_clean_files_save=$ac_clean_files
20921 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20922 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20923 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20924 as_write_fail=0
20925 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20926 #! $SHELL
20927 # Generated by $as_me.
20928 # Run this file to recreate the current configuration.
20929 # Compiler output produced by configure, useful for debugging
20930 # configure, is in config.log if it exists.
20931
20932 debug=false
20933 ac_cs_recheck=false
20934 ac_cs_silent=false
20935
20936 SHELL=\${CONFIG_SHELL-$SHELL}
20937 export SHELL
20938 _ASEOF
20939 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20940 ## -------------------- ##
20941 ## M4sh Initialization. ##
20942 ## -------------------- ##
20943
20944 # Be more Bourne compatible
20945 DUALCASE=1; export DUALCASE # for MKS sh
20946 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20947   emulate sh
20948   NULLCMD=:
20949   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20950   # is contrary to our usage.  Disable this feature.
20951   alias -g '${1+"$@"}'='"$@"'
20952   setopt NO_GLOB_SUBST
20953 else
20954   case `(set -o) 2>/dev/null` in #(
20955   *posix*) :
20956     set -o posix ;; #(
20957   *) :
20958      ;;
20959 esac
20960 fi
20961
20962
20963 as_nl='
20964 '
20965 export as_nl
20966 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20967 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20968 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20969 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20970 # Prefer a ksh shell builtin over an external printf program on Solaris,
20971 # but without wasting forks for bash or zsh.
20972 if test -z "$BASH_VERSION$ZSH_VERSION" \
20973     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20974   as_echo='print -r --'
20975   as_echo_n='print -rn --'
20976 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20977   as_echo='printf %s\n'
20978   as_echo_n='printf %s'
20979 else
20980   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20981     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20982     as_echo_n='/usr/ucb/echo -n'
20983   else
20984     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20985     as_echo_n_body='eval
20986       arg=$1;
20987       case $arg in #(
20988       *"$as_nl"*)
20989         expr "X$arg" : "X\\(.*\\)$as_nl";
20990         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20991       esac;
20992       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20993     '
20994     export as_echo_n_body
20995     as_echo_n='sh -c $as_echo_n_body as_echo'
20996   fi
20997   export as_echo_body
20998   as_echo='sh -c $as_echo_body as_echo'
20999 fi
21000
21001 # The user is always right.
21002 if test "${PATH_SEPARATOR+set}" != set; then
21003   PATH_SEPARATOR=:
21004   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21005     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21006       PATH_SEPARATOR=';'
21007   }
21008 fi
21009
21010
21011 # IFS
21012 # We need space, tab and new line, in precisely that order.  Quoting is
21013 # there to prevent editors from complaining about space-tab.
21014 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21015 # splitting by setting IFS to empty value.)
21016 IFS=" ""        $as_nl"
21017
21018 # Find who we are.  Look in the path if we contain no directory separator.
21019 as_myself=
21020 case $0 in #((
21021   *[\\/]* ) as_myself=$0 ;;
21022   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21023 for as_dir in $PATH
21024 do
21025   IFS=$as_save_IFS
21026   test -z "$as_dir" && as_dir=.
21027     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21028   done
21029 IFS=$as_save_IFS
21030
21031      ;;
21032 esac
21033 # We did not find ourselves, most probably we were run as `sh COMMAND'
21034 # in which case we are not to be found in the path.
21035 if test "x$as_myself" = x; then
21036   as_myself=$0
21037 fi
21038 if test ! -f "$as_myself"; then
21039   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21040   exit 1
21041 fi
21042
21043 # Unset variables that we do not need and which cause bugs (e.g. in
21044 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
21045 # suppresses any "Segmentation fault" message there.  '((' could
21046 # trigger a bug in pdksh 5.2.14.
21047 for as_var in BASH_ENV ENV MAIL MAILPATH
21048 do eval test x\${$as_var+set} = xset \
21049   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21050 done
21051 PS1='$ '
21052 PS2='> '
21053 PS4='+ '
21054
21055 # NLS nuisances.
21056 LC_ALL=C
21057 export LC_ALL
21058 LANGUAGE=C
21059 export LANGUAGE
21060
21061 # CDPATH.
21062 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21063
21064
21065 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21066 # ----------------------------------------
21067 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21068 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21069 # script with STATUS, using 1 if that was 0.
21070 as_fn_error ()
21071 {
21072   as_status=$1; test $as_status -eq 0 && as_status=1
21073   if test "$4"; then
21074     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21075     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21076   fi
21077   $as_echo "$as_me: error: $2" >&2
21078   as_fn_exit $as_status
21079 } # as_fn_error
21080
21081
21082 # as_fn_set_status STATUS
21083 # -----------------------
21084 # Set $? to STATUS, without forking.
21085 as_fn_set_status ()
21086 {
21087   return $1
21088 } # as_fn_set_status
21089
21090 # as_fn_exit STATUS
21091 # -----------------
21092 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21093 as_fn_exit ()
21094 {
21095   set +e
21096   as_fn_set_status $1
21097   exit $1
21098 } # as_fn_exit
21099
21100 # as_fn_unset VAR
21101 # ---------------
21102 # Portably unset VAR.
21103 as_fn_unset ()
21104 {
21105   { eval $1=; unset $1;}
21106 }
21107 as_unset=as_fn_unset
21108 # as_fn_append VAR VALUE
21109 # ----------------------
21110 # Append the text in VALUE to the end of the definition contained in VAR. Take
21111 # advantage of any shell optimizations that allow amortized linear growth over
21112 # repeated appends, instead of the typical quadratic growth present in naive
21113 # implementations.
21114 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21115   eval 'as_fn_append ()
21116   {
21117     eval $1+=\$2
21118   }'
21119 else
21120   as_fn_append ()
21121   {
21122     eval $1=\$$1\$2
21123   }
21124 fi # as_fn_append
21125
21126 # as_fn_arith ARG...
21127 # ------------------
21128 # Perform arithmetic evaluation on the ARGs, and store the result in the
21129 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21130 # must be portable across $(()) and expr.
21131 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21132   eval 'as_fn_arith ()
21133   {
21134     as_val=$(( $* ))
21135   }'
21136 else
21137   as_fn_arith ()
21138   {
21139     as_val=`expr "$@" || test $? -eq 1`
21140   }
21141 fi # as_fn_arith
21142
21143
21144 if expr a : '\(a\)' >/dev/null 2>&1 &&
21145    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21146   as_expr=expr
21147 else
21148   as_expr=false
21149 fi
21150
21151 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21152   as_basename=basename
21153 else
21154   as_basename=false
21155 fi
21156
21157 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21158   as_dirname=dirname
21159 else
21160   as_dirname=false
21161 fi
21162
21163 as_me=`$as_basename -- "$0" ||
21164 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21165          X"$0" : 'X\(//\)$' \| \
21166          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21167 $as_echo X/"$0" |
21168     sed '/^.*\/\([^/][^/]*\)\/*$/{
21169             s//\1/
21170             q
21171           }
21172           /^X\/\(\/\/\)$/{
21173             s//\1/
21174             q
21175           }
21176           /^X\/\(\/\).*/{
21177             s//\1/
21178             q
21179           }
21180           s/.*/./; q'`
21181
21182 # Avoid depending upon Character Ranges.
21183 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21184 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21185 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21186 as_cr_digits='0123456789'
21187 as_cr_alnum=$as_cr_Letters$as_cr_digits
21188
21189 ECHO_C= ECHO_N= ECHO_T=
21190 case `echo -n x` in #(((((
21191 -n*)
21192   case `echo 'xy\c'` in
21193   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21194   xy)  ECHO_C='\c';;
21195   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21196        ECHO_T=' ';;
21197   esac;;
21198 *)
21199   ECHO_N='-n';;
21200 esac
21201
21202 rm -f conf$$ conf$$.exe conf$$.file
21203 if test -d conf$$.dir; then
21204   rm -f conf$$.dir/conf$$.file
21205 else
21206   rm -f conf$$.dir
21207   mkdir conf$$.dir 2>/dev/null
21208 fi
21209 if (echo >conf$$.file) 2>/dev/null; then
21210   if ln -s conf$$.file conf$$ 2>/dev/null; then
21211     as_ln_s='ln -s'
21212     # ... but there are two gotchas:
21213     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21214     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21215     # In both cases, we have to default to `cp -p'.
21216     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21217       as_ln_s='cp -p'
21218   elif ln conf$$.file conf$$ 2>/dev/null; then
21219     as_ln_s=ln
21220   else
21221     as_ln_s='cp -p'
21222   fi
21223 else
21224   as_ln_s='cp -p'
21225 fi
21226 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21227 rmdir conf$$.dir 2>/dev/null
21228
21229
21230 # as_fn_mkdir_p
21231 # -------------
21232 # Create "$as_dir" as a directory, including parents if necessary.
21233 as_fn_mkdir_p ()
21234 {
21235
21236   case $as_dir in #(
21237   -*) as_dir=./$as_dir;;
21238   esac
21239   test -d "$as_dir" || eval $as_mkdir_p || {
21240     as_dirs=
21241     while :; do
21242       case $as_dir in #(
21243       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21244       *) as_qdir=$as_dir;;
21245       esac
21246       as_dirs="'$as_qdir' $as_dirs"
21247       as_dir=`$as_dirname -- "$as_dir" ||
21248 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21249          X"$as_dir" : 'X\(//\)[^/]' \| \
21250          X"$as_dir" : 'X\(//\)$' \| \
21251          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21252 $as_echo X"$as_dir" |
21253     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21254             s//\1/
21255             q
21256           }
21257           /^X\(\/\/\)[^/].*/{
21258             s//\1/
21259             q
21260           }
21261           /^X\(\/\/\)$/{
21262             s//\1/
21263             q
21264           }
21265           /^X\(\/\).*/{
21266             s//\1/
21267             q
21268           }
21269           s/.*/./; q'`
21270       test -d "$as_dir" && break
21271     done
21272     test -z "$as_dirs" || eval "mkdir $as_dirs"
21273   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21274
21275
21276 } # as_fn_mkdir_p
21277 if mkdir -p . 2>/dev/null; then
21278   as_mkdir_p='mkdir -p "$as_dir"'
21279 else
21280   test -d ./-p && rmdir ./-p
21281   as_mkdir_p=false
21282 fi
21283
21284 if test -x / >/dev/null 2>&1; then
21285   as_test_x='test -x'
21286 else
21287   if ls -dL / >/dev/null 2>&1; then
21288     as_ls_L_option=L
21289   else
21290     as_ls_L_option=
21291   fi
21292   as_test_x='
21293     eval sh -c '\''
21294       if test -d "$1"; then
21295         test -d "$1/.";
21296       else
21297         case $1 in #(
21298         -*)set "./$1";;
21299         esac;
21300         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
21301         ???[sx]*):;;*)false;;esac;fi
21302     '\'' sh
21303   '
21304 fi
21305 as_executable_p=$as_test_x
21306
21307 # Sed expression to map a string onto a valid CPP name.
21308 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21309
21310 # Sed expression to map a string onto a valid variable name.
21311 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21312
21313
21314 exec 6>&1
21315 ## ----------------------------------- ##
21316 ## Main body of $CONFIG_STATUS script. ##
21317 ## ----------------------------------- ##
21318 _ASEOF
21319 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21320
21321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21322 # Save the log message, to keep $0 and so on meaningful, and to
21323 # report actual input values of CONFIG_FILES etc. instead of their
21324 # values after options handling.
21325 ac_log="
21326 This file was extended by libgphoto2 photo camera library $as_me 2.4.11, which was
21327 generated by GNU Autoconf 2.68.  Invocation command line was
21328
21329   CONFIG_FILES    = $CONFIG_FILES
21330   CONFIG_HEADERS  = $CONFIG_HEADERS
21331   CONFIG_LINKS    = $CONFIG_LINKS
21332   CONFIG_COMMANDS = $CONFIG_COMMANDS
21333   $ $0 $@
21334
21335 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21336 "
21337
21338 _ACEOF
21339
21340 case $ac_config_files in *"
21341 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21342 esac
21343
21344 case $ac_config_headers in *"
21345 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21346 esac
21347
21348
21349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21350 # Files that config.status was made for.
21351 config_files="$ac_config_files"
21352 config_headers="$ac_config_headers"
21353 config_commands="$ac_config_commands"
21354
21355 _ACEOF
21356
21357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21358 ac_cs_usage="\
21359 \`$as_me' instantiates files and other configuration actions
21360 from templates according to the current configuration.  Unless the files
21361 and actions are specified as TAGs, all are instantiated by default.
21362
21363 Usage: $0 [OPTION]... [TAG]...
21364
21365   -h, --help       print this help, then exit
21366   -V, --version    print version number and configuration settings, then exit
21367       --config     print configuration, then exit
21368   -q, --quiet, --silent
21369                    do not print progress messages
21370   -d, --debug      don't remove temporary files
21371       --recheck    update $as_me by reconfiguring in the same conditions
21372       --file=FILE[:TEMPLATE]
21373                    instantiate the configuration file FILE
21374       --header=FILE[:TEMPLATE]
21375                    instantiate the configuration header FILE
21376
21377 Configuration files:
21378 $config_files
21379
21380 Configuration headers:
21381 $config_headers
21382
21383 Configuration commands:
21384 $config_commands
21385
21386 Report bugs to <gphoto-devel@lists.sourceforge.net>."
21387
21388 _ACEOF
21389 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21390 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21391 ac_cs_version="\\
21392 libgphoto2 photo camera library config.status 2.4.11
21393 configured by $0, generated by GNU Autoconf 2.68,
21394   with options \\"\$ac_cs_config\\"
21395
21396 Copyright (C) 2010 Free Software Foundation, Inc.
21397 This config.status script is free software; the Free Software Foundation
21398 gives unlimited permission to copy, distribute and modify it."
21399
21400 ac_pwd='$ac_pwd'
21401 srcdir='$srcdir'
21402 INSTALL='$INSTALL'
21403 MKDIR_P='$MKDIR_P'
21404 AWK='$AWK'
21405 test -n "\$AWK" || AWK=awk
21406 _ACEOF
21407
21408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21409 # The default lists apply if the user does not specify any file.
21410 ac_need_defaults=:
21411 while test $# != 0
21412 do
21413   case $1 in
21414   --*=?*)
21415     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21416     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21417     ac_shift=:
21418     ;;
21419   --*=)
21420     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21421     ac_optarg=
21422     ac_shift=:
21423     ;;
21424   *)
21425     ac_option=$1
21426     ac_optarg=$2
21427     ac_shift=shift
21428     ;;
21429   esac
21430
21431   case $ac_option in
21432   # Handling of the options.
21433   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21434     ac_cs_recheck=: ;;
21435   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21436     $as_echo "$ac_cs_version"; exit ;;
21437   --config | --confi | --conf | --con | --co | --c )
21438     $as_echo "$ac_cs_config"; exit ;;
21439   --debug | --debu | --deb | --de | --d | -d )
21440     debug=: ;;
21441   --file | --fil | --fi | --f )
21442     $ac_shift
21443     case $ac_optarg in
21444     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21445     '') as_fn_error $? "missing file argument" ;;
21446     esac
21447     as_fn_append CONFIG_FILES " '$ac_optarg'"
21448     ac_need_defaults=false;;
21449   --header | --heade | --head | --hea )
21450     $ac_shift
21451     case $ac_optarg in
21452     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21453     esac
21454     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21455     ac_need_defaults=false;;
21456   --he | --h)
21457     # Conflict between --help and --header
21458     as_fn_error $? "ambiguous option: \`$1'
21459 Try \`$0 --help' for more information.";;
21460   --help | --hel | -h )
21461     $as_echo "$ac_cs_usage"; exit ;;
21462   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21463   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21464     ac_cs_silent=: ;;
21465
21466   # This is an error.
21467   -*) as_fn_error $? "unrecognized option: \`$1'
21468 Try \`$0 --help' for more information." ;;
21469
21470   *) as_fn_append ac_config_targets " $1"
21471      ac_need_defaults=false ;;
21472
21473   esac
21474   shift
21475 done
21476
21477 ac_configure_extra_args=
21478
21479 if $ac_cs_silent; then
21480   exec 6>/dev/null
21481   ac_configure_extra_args="$ac_configure_extra_args --silent"
21482 fi
21483
21484 _ACEOF
21485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21486 if \$ac_cs_recheck; then
21487   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21488   shift
21489   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21490   CONFIG_SHELL='$SHELL'
21491   export CONFIG_SHELL
21492   exec "\$@"
21493 fi
21494
21495 _ACEOF
21496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21497 exec 5>>config.log
21498 {
21499   echo
21500   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21501 ## Running $as_me. ##
21502 _ASBOX
21503   $as_echo "$ac_log"
21504 } >&5
21505
21506 _ACEOF
21507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21508 #
21509 # INIT-COMMANDS
21510 #
21511 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21512
21513
21514 # The HP-UX ksh and POSIX shell print the target directory to stdout
21515 # if CDPATH is set.
21516 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21517
21518 sed_quote_subst='$sed_quote_subst'
21519 double_quote_subst='$double_quote_subst'
21520 delay_variable_subst='$delay_variable_subst'
21521 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
21522 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
21523 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
21524 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
21525 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
21526 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
21527 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
21528 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
21529 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
21530 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
21531 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
21532 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
21533 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
21534 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
21535 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
21536 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
21537 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
21538 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
21539 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
21540 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
21541 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
21542 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
21543 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
21544 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
21545 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
21546 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
21547 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
21548 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
21549 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
21550 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
21551 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21552 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
21553 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
21554 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
21555 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21556 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
21557 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
21558 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21559 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21560 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21561 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
21562 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21563 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
21564 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
21565 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
21566 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
21567 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
21568 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21569 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
21570 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
21571 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
21572 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
21573 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
21574 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
21575 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
21576 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
21577 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
21578 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
21579 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
21580 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
21581 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
21582 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
21583 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
21584 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
21585 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21586 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21587 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
21588 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
21589 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21590 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21591 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
21592 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21593 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21594 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21595 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21596 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21597 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21598 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
21599 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21600 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21601 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21602 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
21603 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
21604 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
21605 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
21606 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
21607 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21608 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
21609 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
21610 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
21611 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
21612 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
21613 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21614 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21615 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21616 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21617 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
21618 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
21619 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21620 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
21621 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
21622 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21623 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21624 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
21625 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21626 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
21627 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21628 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21629 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21630 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21631 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
21632 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
21633 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21634 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21635 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
21636 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
21637 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
21638 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
21639 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
21640 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
21641 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
21642 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
21643 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
21644 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
21645 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
21646 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
21647 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21648 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21649 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21650 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21651 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21652 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21653 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21654 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21655 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21656 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21657 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21658 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21659 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21660 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21661 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21662 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21663 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21664 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21665 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21666 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21667 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21668 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21669 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21670 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21671 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21672 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21673 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21674 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21675 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21676 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21677 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21678 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21679 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21680 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21681 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21682 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21683 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21684 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21685 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21686 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21687 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21688 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21689 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21690 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21691 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21692 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21693 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21694
21695 LTCC='$LTCC'
21696 LTCFLAGS='$LTCFLAGS'
21697 compiler='$compiler_DEFAULT'
21698
21699 # Quote evaled strings.
21700 for var in SED \
21701 GREP \
21702 EGREP \
21703 FGREP \
21704 LD \
21705 NM \
21706 LN_S \
21707 lt_SP2NL \
21708 lt_NL2SP \
21709 reload_flag \
21710 deplibs_check_method \
21711 file_magic_cmd \
21712 AR \
21713 AR_FLAGS \
21714 STRIP \
21715 RANLIB \
21716 CC \
21717 CFLAGS \
21718 compiler \
21719 lt_cv_sys_global_symbol_pipe \
21720 lt_cv_sys_global_symbol_to_cdecl \
21721 lt_cv_sys_global_symbol_to_c_name_address \
21722 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21723 SHELL \
21724 ECHO \
21725 lt_prog_compiler_no_builtin_flag \
21726 lt_prog_compiler_wl \
21727 lt_prog_compiler_pic \
21728 lt_prog_compiler_static \
21729 lt_cv_prog_compiler_c_o \
21730 need_locks \
21731 DSYMUTIL \
21732 NMEDIT \
21733 LIPO \
21734 OTOOL \
21735 OTOOL64 \
21736 shrext_cmds \
21737 export_dynamic_flag_spec \
21738 whole_archive_flag_spec \
21739 compiler_needs_object \
21740 with_gnu_ld \
21741 allow_undefined_flag \
21742 no_undefined_flag \
21743 hardcode_libdir_flag_spec \
21744 hardcode_libdir_flag_spec_ld \
21745 hardcode_libdir_separator \
21746 fix_srcfile_path \
21747 exclude_expsyms \
21748 include_expsyms \
21749 file_list_spec \
21750 variables_saved_for_relink \
21751 libname_spec \
21752 library_names_spec \
21753 soname_spec \
21754 finish_eval \
21755 old_striplib \
21756 striplib \
21757 compiler_lib_search_dirs \
21758 predep_objects \
21759 postdep_objects \
21760 predeps \
21761 postdeps \
21762 compiler_lib_search_path \
21763 LD_CXX \
21764 compiler_CXX \
21765 lt_prog_compiler_no_builtin_flag_CXX \
21766 lt_prog_compiler_wl_CXX \
21767 lt_prog_compiler_pic_CXX \
21768 lt_prog_compiler_static_CXX \
21769 lt_cv_prog_compiler_c_o_CXX \
21770 export_dynamic_flag_spec_CXX \
21771 whole_archive_flag_spec_CXX \
21772 compiler_needs_object_CXX \
21773 with_gnu_ld_CXX \
21774 allow_undefined_flag_CXX \
21775 no_undefined_flag_CXX \
21776 hardcode_libdir_flag_spec_CXX \
21777 hardcode_libdir_flag_spec_ld_CXX \
21778 hardcode_libdir_separator_CXX \
21779 fix_srcfile_path_CXX \
21780 exclude_expsyms_CXX \
21781 include_expsyms_CXX \
21782 file_list_spec_CXX \
21783 compiler_lib_search_dirs_CXX \
21784 predep_objects_CXX \
21785 postdep_objects_CXX \
21786 predeps_CXX \
21787 postdeps_CXX \
21788 compiler_lib_search_path_CXX; do
21789     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21790     *[\\\\\\\`\\"\\\$]*)
21791       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21792       ;;
21793     *)
21794       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21795       ;;
21796     esac
21797 done
21798
21799 # Double-quote double-evaled strings.
21800 for var in reload_cmds \
21801 old_postinstall_cmds \
21802 old_postuninstall_cmds \
21803 old_archive_cmds \
21804 extract_expsyms_cmds \
21805 old_archive_from_new_cmds \
21806 old_archive_from_expsyms_cmds \
21807 archive_cmds \
21808 archive_expsym_cmds \
21809 module_cmds \
21810 module_expsym_cmds \
21811 export_symbols_cmds \
21812 prelink_cmds \
21813 postinstall_cmds \
21814 postuninstall_cmds \
21815 finish_cmds \
21816 sys_lib_search_path_spec \
21817 sys_lib_dlsearch_path_spec \
21818 old_archive_cmds_CXX \
21819 old_archive_from_new_cmds_CXX \
21820 old_archive_from_expsyms_cmds_CXX \
21821 archive_cmds_CXX \
21822 archive_expsym_cmds_CXX \
21823 module_cmds_CXX \
21824 module_expsym_cmds_CXX \
21825 export_symbols_cmds_CXX \
21826 prelink_cmds_CXX; do
21827     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21828     *[\\\\\\\`\\"\\\$]*)
21829       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21830       ;;
21831     *)
21832       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21833       ;;
21834     esac
21835 done
21836
21837 # Fix-up fallback echo if it was mangled by the above quoting rules.
21838 case \$lt_ECHO in
21839 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21840   ;;
21841 esac
21842
21843 ac_aux_dir='$ac_aux_dir'
21844 xsi_shell='$xsi_shell'
21845 lt_shell_append='$lt_shell_append'
21846
21847 # See if we are running on zsh, and set the options which allow our
21848 # commands through without removal of \ escapes INIT.
21849 if test -n "\${ZSH_VERSION+set}" ; then
21850    setopt NO_GLOB_SUBST
21851 fi
21852
21853
21854     PACKAGE='$PACKAGE'
21855     VERSION='$VERSION'
21856     TIMESTAMP='$TIMESTAMP'
21857     RM='$RM'
21858     ofile='$ofile'
21859
21860
21861
21862
21863
21864 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
21865     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
21866     # from automake.
21867     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
21868     # Capture the value of LINGUAS because we need it to compute CATALOGS.
21869     LINGUAS="${LINGUAS-%UNSET%}"
21870
21871 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
21872     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
21873     # from automake.
21874     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
21875     # Capture the value of LINGUAS because we need it to compute CATALOGS.
21876     LINGUAS="${LINGUAS-%UNSET%}"
21877
21878
21879 _ACEOF
21880
21881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21882
21883 # Handling of arguments.
21884 for ac_config_target in $ac_config_targets
21885 do
21886   case $ac_config_target in
21887     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21888     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21889     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21890     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
21891     "default-2") CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
21892     "README") CONFIG_FILES="$CONFIG_FILES README" ;;
21893     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21894     "gphoto2-config") CONFIG_FILES="$CONFIG_FILES gphoto2-config" ;;
21895     "camlibs/Makefile") CONFIG_FILES="$CONFIG_FILES camlibs/Makefile" ;;
21896     "libgphoto2/Makefile") CONFIG_FILES="$CONFIG_FILES libgphoto2/Makefile" ;;
21897     "libgphoto2.pc") CONFIG_FILES="$CONFIG_FILES libgphoto2.pc" ;;
21898     "libgphoto2-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES libgphoto2-uninstalled.pc" ;;
21899     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
21900     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
21901     "tests/check-camera-list.sh") CONFIG_FILES="$CONFIG_FILES tests/check-camera-list.sh" ;;
21902     "tests/ddb/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ddb/Makefile" ;;
21903     "tests/ddb/check-ddb.sh") CONFIG_FILES="$CONFIG_FILES tests/ddb/check-ddb.sh" ;;
21904     "packaging/Makefile") CONFIG_FILES="$CONFIG_FILES packaging/Makefile" ;;
21905     "packaging/linux-hotplug/Makefile") CONFIG_FILES="$CONFIG_FILES packaging/linux-hotplug/Makefile" ;;
21906     "packaging/generic/Makefile") CONFIG_FILES="$CONFIG_FILES packaging/generic/Makefile" ;;
21907     "packaging/rpm/Makefile") CONFIG_FILES="$CONFIG_FILES packaging/rpm/Makefile" ;;
21908     "packaging/rpm/package.spec") CONFIG_FILES="$CONFIG_FILES packaging/rpm/package.spec" ;;
21909     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
21910     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21911     "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
21912     "doc/api/Makefile") CONFIG_FILES="$CONFIG_FILES doc/api/Makefile" ;;
21913
21914   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21915   esac
21916 done
21917
21918
21919 # If the user did not use the arguments to specify the items to instantiate,
21920 # then the envvar interface is used.  Set only those that are not.
21921 # We use the long form for the default assignment because of an extremely
21922 # bizarre bug on SunOS 4.1.3.
21923 if $ac_need_defaults; then
21924   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21925   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21926   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21927 fi
21928
21929 # Have a temporary directory for convenience.  Make it in the build tree
21930 # simply because there is no reason against having it here, and in addition,
21931 # creating and moving files from /tmp can sometimes cause problems.
21932 # Hook for its removal unless debugging.
21933 # Note that there is a small window in which the directory will not be cleaned:
21934 # after its creation but before its name has been assigned to `$tmp'.
21935 $debug ||
21936 {
21937   tmp= ac_tmp=
21938   trap 'exit_status=$?
21939   : "${ac_tmp:=$tmp}"
21940   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21941 ' 0
21942   trap 'as_fn_exit 1' 1 2 13 15
21943 }
21944 # Create a (secure) tmp directory for tmp files.
21945
21946 {
21947   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21948   test -d "$tmp"
21949 }  ||
21950 {
21951   tmp=./conf$$-$RANDOM
21952   (umask 077 && mkdir "$tmp")
21953 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21954 ac_tmp=$tmp
21955
21956 # Set up the scripts for CONFIG_FILES section.
21957 # No need to generate them if there are no CONFIG_FILES.
21958 # This happens for instance with `./config.status config.h'.
21959 if test -n "$CONFIG_FILES"; then
21960
21961
21962 ac_cr=`echo X | tr X '\015'`
21963 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21964 # But we know of no other shell where ac_cr would be empty at this
21965 # point, so we can use a bashism as a fallback.
21966 if test "x$ac_cr" = x; then
21967   eval ac_cr=\$\'\\r\'
21968 fi
21969 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21970 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21971   ac_cs_awk_cr='\\r'
21972 else
21973   ac_cs_awk_cr=$ac_cr
21974 fi
21975
21976 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21977 _ACEOF
21978
21979
21980 {
21981   echo "cat >conf$$subs.awk <<_ACEOF" &&
21982   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21983   echo "_ACEOF"
21984 } >conf$$subs.sh ||
21985   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21986 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21987 ac_delim='%!_!# '
21988 for ac_last_try in false false false false false :; do
21989   . ./conf$$subs.sh ||
21990     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21991
21992   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21993   if test $ac_delim_n = $ac_delim_num; then
21994     break
21995   elif $ac_last_try; then
21996     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21997   else
21998     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21999   fi
22000 done
22001 rm -f conf$$subs.sh
22002
22003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22004 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22005 _ACEOF
22006 sed -n '
22007 h
22008 s/^/S["/; s/!.*/"]=/
22009 p
22010 g
22011 s/^[^!]*!//
22012 :repl
22013 t repl
22014 s/'"$ac_delim"'$//
22015 t delim
22016 :nl
22017 h
22018 s/\(.\{148\}\)..*/\1/
22019 t more1
22020 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22021 p
22022 n
22023 b repl
22024 :more1
22025 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22026 p
22027 g
22028 s/.\{148\}//
22029 t nl
22030 :delim
22031 h
22032 s/\(.\{148\}\)..*/\1/
22033 t more2
22034 s/["\\]/\\&/g; s/^/"/; s/$/"/
22035 p
22036 b
22037 :more2
22038 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22039 p
22040 g
22041 s/.\{148\}//
22042 t delim
22043 ' <conf$$subs.awk | sed '
22044 /^[^""]/{
22045   N
22046   s/\n//
22047 }
22048 ' >>$CONFIG_STATUS || ac_write_fail=1
22049 rm -f conf$$subs.awk
22050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22051 _ACAWK
22052 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22053   for (key in S) S_is_set[key] = 1
22054   FS = "\a"
22055
22056 }
22057 {
22058   line = $ 0
22059   nfields = split(line, field, "@")
22060   substed = 0
22061   len = length(field[1])
22062   for (i = 2; i < nfields; i++) {
22063     key = field[i]
22064     keylen = length(key)
22065     if (S_is_set[key]) {
22066       value = S[key]
22067       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22068       len += length(value) + length(field[++i])
22069       substed = 1
22070     } else
22071       len += 1 + keylen
22072   }
22073
22074   print line
22075 }
22076
22077 _ACAWK
22078 _ACEOF
22079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22080 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22081   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22082 else
22083   cat
22084 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22085   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22086 _ACEOF
22087
22088 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22089 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22090 # trailing colons and then remove the whole line if VPATH becomes empty
22091 # (actually we leave an empty line to preserve line numbers).
22092 if test "x$srcdir" = x.; then
22093   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
22094 h
22095 s///
22096 s/^/:/
22097 s/[      ]*$/:/
22098 s/:\$(srcdir):/:/g
22099 s/:\${srcdir}:/:/g
22100 s/:@srcdir@:/:/g
22101 s/^:*//
22102 s/:*$//
22103 x
22104 s/\(=[   ]*\).*/\1/
22105 G
22106 s/\n//
22107 s/^[^=]*=[       ]*$//
22108 }'
22109 fi
22110
22111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22112 fi # test -n "$CONFIG_FILES"
22113
22114 # Set up the scripts for CONFIG_HEADERS section.
22115 # No need to generate them if there are no CONFIG_HEADERS.
22116 # This happens for instance with `./config.status Makefile'.
22117 if test -n "$CONFIG_HEADERS"; then
22118 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22119 BEGIN {
22120 _ACEOF
22121
22122 # Transform confdefs.h into an awk script `defines.awk', embedded as
22123 # here-document in config.status, that substitutes the proper values into
22124 # config.h.in to produce config.h.
22125
22126 # Create a delimiter string that does not exist in confdefs.h, to ease
22127 # handling of long lines.
22128 ac_delim='%!_!# '
22129 for ac_last_try in false false :; do
22130   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22131   if test -z "$ac_tt"; then
22132     break
22133   elif $ac_last_try; then
22134     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22135   else
22136     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22137   fi
22138 done
22139
22140 # For the awk script, D is an array of macro values keyed by name,
22141 # likewise P contains macro parameters if any.  Preserve backslash
22142 # newline sequences.
22143
22144 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22145 sed -n '
22146 s/.\{148\}/&'"$ac_delim"'/g
22147 t rset
22148 :rset
22149 s/^[     ]*#[    ]*define[       ][      ]*/ /
22150 t def
22151 d
22152 :def
22153 s/\\$//
22154 t bsnl
22155 s/["\\]/\\&/g
22156 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
22157 D["\1"]=" \3"/p
22158 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
22159 d
22160 :bsnl
22161 s/["\\]/\\&/g
22162 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
22163 D["\1"]=" \3\\\\\\n"\\/p
22164 t cont
22165 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22166 t cont
22167 d
22168 :cont
22169 n
22170 s/.\{148\}/&'"$ac_delim"'/g
22171 t clear
22172 :clear
22173 s/\\$//
22174 t bsnlc
22175 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22176 d
22177 :bsnlc
22178 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22179 b cont
22180 ' <confdefs.h | sed '
22181 s/'"$ac_delim"'/"\\\
22182 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22183
22184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22185   for (key in D) D_is_set[key] = 1
22186   FS = "\a"
22187 }
22188 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22189   line = \$ 0
22190   split(line, arg, " ")
22191   if (arg[1] == "#") {
22192     defundef = arg[2]
22193     mac1 = arg[3]
22194   } else {
22195     defundef = substr(arg[1], 2)
22196     mac1 = arg[2]
22197   }
22198   split(mac1, mac2, "(") #)
22199   macro = mac2[1]
22200   prefix = substr(line, 1, index(line, defundef) - 1)
22201   if (D_is_set[macro]) {
22202     # Preserve the white space surrounding the "#".
22203     print prefix "define", macro P[macro] D[macro]
22204     next
22205   } else {
22206     # Replace #undef with comments.  This is necessary, for example,
22207     # in the case of _POSIX_SOURCE, which is predefined and required
22208     # on some systems where configure will not decide to define it.
22209     if (defundef == "undef") {
22210       print "/*", prefix defundef, macro, "*/"
22211       next
22212     }
22213   }
22214 }
22215 { print }
22216 _ACAWK
22217 _ACEOF
22218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22219   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22220 fi # test -n "$CONFIG_HEADERS"
22221
22222
22223 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22224 shift
22225 for ac_tag
22226 do
22227   case $ac_tag in
22228   :[FHLC]) ac_mode=$ac_tag; continue;;
22229   esac
22230   case $ac_mode$ac_tag in
22231   :[FHL]*:*);;
22232   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22233   :[FH]-) ac_tag=-:-;;
22234   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22235   esac
22236   ac_save_IFS=$IFS
22237   IFS=:
22238   set x $ac_tag
22239   IFS=$ac_save_IFS
22240   shift
22241   ac_file=$1
22242   shift
22243
22244   case $ac_mode in
22245   :L) ac_source=$1;;
22246   :[FH])
22247     ac_file_inputs=
22248     for ac_f
22249     do
22250       case $ac_f in
22251       -) ac_f="$ac_tmp/stdin";;
22252       *) # Look for the file first in the build tree, then in the source tree
22253          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22254          # because $ac_f cannot contain `:'.
22255          test -f "$ac_f" ||
22256            case $ac_f in
22257            [\\/$]*) false;;
22258            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22259            esac ||
22260            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22261       esac
22262       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22263       as_fn_append ac_file_inputs " '$ac_f'"
22264     done
22265
22266     # Let's still pretend it is `configure' which instantiates (i.e., don't
22267     # use $as_me), people would be surprised to read:
22268     #    /* config.h.  Generated by config.status.  */
22269     configure_input='Generated from '`
22270           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22271         `' by configure.'
22272     if test x"$ac_file" != x-; then
22273       configure_input="$ac_file.  $configure_input"
22274       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22275 $as_echo "$as_me: creating $ac_file" >&6;}
22276     fi
22277     # Neutralize special characters interpreted by sed in replacement strings.
22278     case $configure_input in #(
22279     *\&* | *\|* | *\\* )
22280        ac_sed_conf_input=`$as_echo "$configure_input" |
22281        sed 's/[\\\\&|]/\\\\&/g'`;; #(
22282     *) ac_sed_conf_input=$configure_input;;
22283     esac
22284
22285     case $ac_tag in
22286     *:-:* | *:-) cat >"$ac_tmp/stdin" \
22287       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22288     esac
22289     ;;
22290   esac
22291
22292   ac_dir=`$as_dirname -- "$ac_file" ||
22293 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22294          X"$ac_file" : 'X\(//\)[^/]' \| \
22295          X"$ac_file" : 'X\(//\)$' \| \
22296          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22297 $as_echo X"$ac_file" |
22298     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22299             s//\1/
22300             q
22301           }
22302           /^X\(\/\/\)[^/].*/{
22303             s//\1/
22304             q
22305           }
22306           /^X\(\/\/\)$/{
22307             s//\1/
22308             q
22309           }
22310           /^X\(\/\).*/{
22311             s//\1/
22312             q
22313           }
22314           s/.*/./; q'`
22315   as_dir="$ac_dir"; as_fn_mkdir_p
22316   ac_builddir=.
22317
22318 case "$ac_dir" in
22319 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22320 *)
22321   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22322   # A ".." for each directory in $ac_dir_suffix.
22323   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22324   case $ac_top_builddir_sub in
22325   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22326   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22327   esac ;;
22328 esac
22329 ac_abs_top_builddir=$ac_pwd
22330 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22331 # for backward compatibility:
22332 ac_top_builddir=$ac_top_build_prefix
22333
22334 case $srcdir in
22335   .)  # We are building in place.
22336     ac_srcdir=.
22337     ac_top_srcdir=$ac_top_builddir_sub
22338     ac_abs_top_srcdir=$ac_pwd ;;
22339   [\\/]* | ?:[\\/]* )  # Absolute name.
22340     ac_srcdir=$srcdir$ac_dir_suffix;
22341     ac_top_srcdir=$srcdir
22342     ac_abs_top_srcdir=$srcdir ;;
22343   *) # Relative name.
22344     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22345     ac_top_srcdir=$ac_top_build_prefix$srcdir
22346     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22347 esac
22348 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22349
22350
22351   case $ac_mode in
22352   :F)
22353   #
22354   # CONFIG_FILE
22355   #
22356
22357   case $INSTALL in
22358   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22359   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22360   esac
22361   ac_MKDIR_P=$MKDIR_P
22362   case $MKDIR_P in
22363   [\\/$]* | ?:[\\/]* ) ;;
22364   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22365   esac
22366 _ACEOF
22367
22368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22369 # If the template does not know about datarootdir, expand it.
22370 # FIXME: This hack should be removed a few years after 2.60.
22371 ac_datarootdir_hack=; ac_datarootdir_seen=
22372 ac_sed_dataroot='
22373 /datarootdir/ {
22374   p
22375   q
22376 }
22377 /@datadir@/p
22378 /@docdir@/p
22379 /@infodir@/p
22380 /@localedir@/p
22381 /@mandir@/p'
22382 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22383 *datarootdir*) ac_datarootdir_seen=yes;;
22384 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22385   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22386 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22387 _ACEOF
22388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22389   ac_datarootdir_hack='
22390   s&@datadir@&$datadir&g
22391   s&@docdir@&$docdir&g
22392   s&@infodir@&$infodir&g
22393   s&@localedir@&$localedir&g
22394   s&@mandir@&$mandir&g
22395   s&\\\${datarootdir}&$datarootdir&g' ;;
22396 esac
22397 _ACEOF
22398
22399 # Neutralize VPATH when `$srcdir' = `.'.
22400 # Shell code in configure.ac might set extrasub.
22401 # FIXME: do we really want to maintain this feature?
22402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22403 ac_sed_extra="$ac_vpsub
22404 $extrasub
22405 _ACEOF
22406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22407 :t
22408 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22409 s|@configure_input@|$ac_sed_conf_input|;t t
22410 s&@top_builddir@&$ac_top_builddir_sub&;t t
22411 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22412 s&@srcdir@&$ac_srcdir&;t t
22413 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22414 s&@top_srcdir@&$ac_top_srcdir&;t t
22415 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22416 s&@builddir@&$ac_builddir&;t t
22417 s&@abs_builddir@&$ac_abs_builddir&;t t
22418 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22419 s&@INSTALL@&$ac_INSTALL&;t t
22420 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22421 $ac_datarootdir_hack
22422 "
22423 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22424   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22425
22426 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22427   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22428   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
22429       "$ac_tmp/out"`; test -z "$ac_out"; } &&
22430   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22431 which seems to be undefined.  Please make sure it is defined" >&5
22432 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22433 which seems to be undefined.  Please make sure it is defined" >&2;}
22434
22435   rm -f "$ac_tmp/stdin"
22436   case $ac_file in
22437   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22438   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22439   esac \
22440   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22441  ;;
22442   :H)
22443   #
22444   # CONFIG_HEADER
22445   #
22446   if test x"$ac_file" != x-; then
22447     {
22448       $as_echo "/* $configure_input  */" \
22449       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22450     } >"$ac_tmp/config.h" \
22451       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22452     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22453       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22454 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22455     else
22456       rm -f "$ac_file"
22457       mv "$ac_tmp/config.h" "$ac_file" \
22458         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22459     fi
22460   else
22461     $as_echo "/* $configure_input  */" \
22462       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22463       || as_fn_error $? "could not create -" "$LINENO" 5
22464   fi
22465 # Compute "$ac_file"'s index in $config_headers.
22466 _am_arg="$ac_file"
22467 _am_stamp_count=1
22468 for _am_header in $config_headers :; do
22469   case $_am_header in
22470     $_am_arg | $_am_arg:* )
22471       break ;;
22472     * )
22473       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22474   esac
22475 done
22476 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22477 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22478          X"$_am_arg" : 'X\(//\)[^/]' \| \
22479          X"$_am_arg" : 'X\(//\)$' \| \
22480          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22481 $as_echo X"$_am_arg" |
22482     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22483             s//\1/
22484             q
22485           }
22486           /^X\(\/\/\)[^/].*/{
22487             s//\1/
22488             q
22489           }
22490           /^X\(\/\/\)$/{
22491             s//\1/
22492             q
22493           }
22494           /^X\(\/\).*/{
22495             s//\1/
22496             q
22497           }
22498           s/.*/./; q'`/stamp-h$_am_stamp_count
22499  ;;
22500
22501   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22502 $as_echo "$as_me: executing $ac_file commands" >&6;}
22503  ;;
22504   esac
22505
22506
22507   case $ac_file$ac_mode in
22508     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22509   # Autoconf 2.62 quotes --file arguments for eval, but not when files
22510   # are listed without --file.  Let's play safe and only enable the eval
22511   # if we detect the quoting.
22512   case $CONFIG_FILES in
22513   *\'*) eval set x "$CONFIG_FILES" ;;
22514   *)   set x $CONFIG_FILES ;;
22515   esac
22516   shift
22517   for mf
22518   do
22519     # Strip MF so we end up with the name of the file.
22520     mf=`echo "$mf" | sed -e 's/:.*$//'`
22521     # Check whether this is an Automake generated Makefile or not.
22522     # We used to match only the files named `Makefile.in', but
22523     # some people rename them; so instead we look at the file content.
22524     # Grep'ing the first line is not enough: some people post-process
22525     # each Makefile.in and add a new line on top of each file to say so.
22526     # Grep'ing the whole file is not good either: AIX grep has a line
22527     # limit of 2048, but all sed's we know have understand at least 4000.
22528     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22529       dirpart=`$as_dirname -- "$mf" ||
22530 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22531          X"$mf" : 'X\(//\)[^/]' \| \
22532          X"$mf" : 'X\(//\)$' \| \
22533          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22534 $as_echo X"$mf" |
22535     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22536             s//\1/
22537             q
22538           }
22539           /^X\(\/\/\)[^/].*/{
22540             s//\1/
22541             q
22542           }
22543           /^X\(\/\/\)$/{
22544             s//\1/
22545             q
22546           }
22547           /^X\(\/\).*/{
22548             s//\1/
22549             q
22550           }
22551           s/.*/./; q'`
22552     else
22553       continue
22554     fi
22555     # Extract the definition of DEPDIR, am__include, and am__quote
22556     # from the Makefile without running `make'.
22557     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22558     test -z "$DEPDIR" && continue
22559     am__include=`sed -n 's/^am__include = //p' < "$mf"`
22560     test -z "am__include" && continue
22561     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22562     # When using ansi2knr, U may be empty or an underscore; expand it
22563     U=`sed -n 's/^U = //p' < "$mf"`
22564     # Find all dependency output files, they are included files with
22565     # $(DEPDIR) in their names.  We invoke sed twice because it is the
22566     # simplest approach to changing $(DEPDIR) to its actual value in the
22567     # expansion.
22568     for file in `sed -n "
22569       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22570          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22571       # Make sure the directory exists.
22572       test -f "$dirpart/$file" && continue
22573       fdir=`$as_dirname -- "$file" ||
22574 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22575          X"$file" : 'X\(//\)[^/]' \| \
22576          X"$file" : 'X\(//\)$' \| \
22577          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22578 $as_echo X"$file" |
22579     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22580             s//\1/
22581             q
22582           }
22583           /^X\(\/\/\)[^/].*/{
22584             s//\1/
22585             q
22586           }
22587           /^X\(\/\/\)$/{
22588             s//\1/
22589             q
22590           }
22591           /^X\(\/\).*/{
22592             s//\1/
22593             q
22594           }
22595           s/.*/./; q'`
22596       as_dir=$dirpart/$fdir; as_fn_mkdir_p
22597       # echo "creating $dirpart/$file"
22598       echo '# dummy' > "$dirpart/$file"
22599     done
22600   done
22601 }
22602  ;;
22603     "libtool":C)
22604
22605     # See if we are running on zsh, and set the options which allow our
22606     # commands through without removal of \ escapes.
22607     if test -n "${ZSH_VERSION+set}" ; then
22608       setopt NO_GLOB_SUBST
22609     fi
22610
22611     cfgfile="${ofile}T"
22612     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22613     $RM "$cfgfile"
22614
22615     cat <<_LT_EOF >> "$cfgfile"
22616 #! $SHELL
22617
22618 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22619 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22620 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22621 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22622 #
22623 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22624 #                 2006, 2007, 2008 Free Software Foundation, Inc.
22625 #   Written by Gordon Matzigkeit, 1996
22626 #
22627 #   This file is part of GNU Libtool.
22628 #
22629 # GNU Libtool is free software; you can redistribute it and/or
22630 # modify it under the terms of the GNU General Public License as
22631 # published by the Free Software Foundation; either version 2 of
22632 # the License, or (at your option) any later version.
22633 #
22634 # As a special exception to the GNU General Public License,
22635 # if you distribute this file as part of a program or library that
22636 # is built using GNU Libtool, you may include this file under the
22637 # same distribution terms that you use for the rest of that program.
22638 #
22639 # GNU Libtool is distributed in the hope that it will be useful,
22640 # but WITHOUT ANY WARRANTY; without even the implied warranty of
22641 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22642 # GNU General Public License for more details.
22643 #
22644 # You should have received a copy of the GNU General Public License
22645 # along with GNU Libtool; see the file COPYING.  If not, a copy
22646 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22647 # obtained by writing to the Free Software Foundation, Inc.,
22648 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22649
22650
22651 # The names of the tagged configurations supported by this script.
22652 available_tags="CXX "
22653
22654 # ### BEGIN LIBTOOL CONFIG
22655
22656 # Whether or not to build static libraries.
22657 build_old_libs=$enable_static
22658
22659 # Assembler program.
22660 AS=$AS
22661
22662 # DLL creation program.
22663 DLLTOOL=$DLLTOOL
22664
22665 # Object dumper program.
22666 OBJDUMP=$OBJDUMP
22667
22668 # Which release of libtool.m4 was used?
22669 macro_version=$macro_version
22670 macro_revision=$macro_revision
22671
22672 # Whether or not to build shared libraries.
22673 build_libtool_libs=$enable_shared
22674
22675 # What type of objects to build.
22676 pic_mode=$pic_mode
22677
22678 # Whether or not to optimize for fast installation.
22679 fast_install=$enable_fast_install
22680
22681 # The host system.
22682 host_alias=$host_alias
22683 host=$host
22684 host_os=$host_os
22685
22686 # The build system.
22687 build_alias=$build_alias
22688 build=$build
22689 build_os=$build_os
22690
22691 # A sed program that does not truncate output.
22692 SED=$lt_SED
22693
22694 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22695 Xsed="\$SED -e 1s/^X//"
22696
22697 # A grep program that handles long lines.
22698 GREP=$lt_GREP
22699
22700 # An ERE matcher.
22701 EGREP=$lt_EGREP
22702
22703 # A literal string matcher.
22704 FGREP=$lt_FGREP
22705
22706 # A BSD- or MS-compatible name lister.
22707 NM=$lt_NM
22708
22709 # Whether we need soft or hard links.
22710 LN_S=$lt_LN_S
22711
22712 # What is the maximum length of a command?
22713 max_cmd_len=$max_cmd_len
22714
22715 # Object file suffix (normally "o").
22716 objext=$ac_objext
22717
22718 # Executable file suffix (normally "").
22719 exeext=$exeext
22720
22721 # whether the shell understands "unset".
22722 lt_unset=$lt_unset
22723
22724 # turn spaces into newlines.
22725 SP2NL=$lt_lt_SP2NL
22726
22727 # turn newlines into spaces.
22728 NL2SP=$lt_lt_NL2SP
22729
22730 # How to create reloadable object files.
22731 reload_flag=$lt_reload_flag
22732 reload_cmds=$lt_reload_cmds
22733
22734 # Method to check whether dependent libraries are shared objects.
22735 deplibs_check_method=$lt_deplibs_check_method
22736
22737 # Command to use when deplibs_check_method == "file_magic".
22738 file_magic_cmd=$lt_file_magic_cmd
22739
22740 # The archiver.
22741 AR=$lt_AR
22742 AR_FLAGS=$lt_AR_FLAGS
22743
22744 # A symbol stripping program.
22745 STRIP=$lt_STRIP
22746
22747 # Commands used to install an old-style archive.
22748 RANLIB=$lt_RANLIB
22749 old_postinstall_cmds=$lt_old_postinstall_cmds
22750 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22751
22752 # A C compiler.
22753 LTCC=$lt_CC
22754
22755 # LTCC compiler flags.
22756 LTCFLAGS=$lt_CFLAGS
22757
22758 # Take the output of nm and produce a listing of raw symbols and C names.
22759 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22760
22761 # Transform the output of nm in a proper C declaration.
22762 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22763
22764 # Transform the output of nm in a C name address pair.
22765 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22766
22767 # Transform the output of nm in a C name address pair when lib prefix is needed.
22768 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22769
22770 # The name of the directory that contains temporary libtool files.
22771 objdir=$objdir
22772
22773 # Shell to use when invoking shell scripts.
22774 SHELL=$lt_SHELL
22775
22776 # An echo program that does not interpret backslashes.
22777 ECHO=$lt_ECHO
22778
22779 # Used to examine libraries when file_magic_cmd begins with "file".
22780 MAGIC_CMD=$MAGIC_CMD
22781
22782 # Must we lock files when doing compilation?
22783 need_locks=$lt_need_locks
22784
22785 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22786 DSYMUTIL=$lt_DSYMUTIL
22787
22788 # Tool to change global to local symbols on Mac OS X.
22789 NMEDIT=$lt_NMEDIT
22790
22791 # Tool to manipulate fat objects and archives on Mac OS X.
22792 LIPO=$lt_LIPO
22793
22794 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22795 OTOOL=$lt_OTOOL
22796
22797 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22798 OTOOL64=$lt_OTOOL64
22799
22800 # Old archive suffix (normally "a").
22801 libext=$libext
22802
22803 # Shared library suffix (normally ".so").
22804 shrext_cmds=$lt_shrext_cmds
22805
22806 # The commands to extract the exported symbol list from a shared archive.
22807 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22808
22809 # Variables whose values should be saved in libtool wrapper scripts and
22810 # restored at link time.
22811 variables_saved_for_relink=$lt_variables_saved_for_relink
22812
22813 # Do we need the "lib" prefix for modules?
22814 need_lib_prefix=$need_lib_prefix
22815
22816 # Do we need a version for libraries?
22817 need_version=$need_version
22818
22819 # Library versioning type.
22820 version_type=$version_type
22821
22822 # Shared library runtime path variable.
22823 runpath_var=$runpath_var
22824
22825 # Shared library path variable.
22826 shlibpath_var=$shlibpath_var
22827
22828 # Is shlibpath searched before the hard-coded library search path?
22829 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22830
22831 # Format of library name prefix.
22832 libname_spec=$lt_libname_spec
22833
22834 # List of archive names.  First name is the real one, the rest are links.
22835 # The last name is the one that the linker finds with -lNAME
22836 library_names_spec=$lt_library_names_spec
22837
22838 # The coded name of the library, if different from the real name.
22839 soname_spec=$lt_soname_spec
22840
22841 # Command to use after installation of a shared archive.
22842 postinstall_cmds=$lt_postinstall_cmds
22843
22844 # Command to use after uninstallation of a shared archive.
22845 postuninstall_cmds=$lt_postuninstall_cmds
22846
22847 # Commands used to finish a libtool library installation in a directory.
22848 finish_cmds=$lt_finish_cmds
22849
22850 # As "finish_cmds", except a single script fragment to be evaled but
22851 # not shown.
22852 finish_eval=$lt_finish_eval
22853
22854 # Whether we should hardcode library paths into libraries.
22855 hardcode_into_libs=$hardcode_into_libs
22856
22857 # Compile-time system search path for libraries.
22858 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22859
22860 # Run-time system search path for libraries.
22861 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22862
22863 # Whether dlopen is supported.
22864 dlopen_support=$enable_dlopen
22865
22866 # Whether dlopen of programs is supported.
22867 dlopen_self=$enable_dlopen_self
22868
22869 # Whether dlopen of statically linked programs is supported.
22870 dlopen_self_static=$enable_dlopen_self_static
22871
22872 # Commands to strip libraries.
22873 old_striplib=$lt_old_striplib
22874 striplib=$lt_striplib
22875
22876
22877 # The linker used to build libraries.
22878 LD=$lt_LD
22879
22880 # Commands used to build an old-style archive.
22881 old_archive_cmds=$lt_old_archive_cmds
22882
22883 # A language specific compiler.
22884 CC=$lt_compiler
22885
22886 # Is the compiler the GNU compiler?
22887 with_gcc=$GCC
22888
22889 # Compiler flag to turn off builtin functions.
22890 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22891
22892 # How to pass a linker flag through the compiler.
22893 wl=$lt_lt_prog_compiler_wl
22894
22895 # Additional compiler flags for building library objects.
22896 pic_flag=$lt_lt_prog_compiler_pic
22897
22898 # Compiler flag to prevent dynamic linking.
22899 link_static_flag=$lt_lt_prog_compiler_static
22900
22901 # Does compiler simultaneously support -c and -o options?
22902 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22903
22904 # Whether or not to add -lc for building shared libraries.
22905 build_libtool_need_lc=$archive_cmds_need_lc
22906
22907 # Whether or not to disallow shared libs when runtime libs are static.
22908 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22909
22910 # Compiler flag to allow reflexive dlopens.
22911 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22912
22913 # Compiler flag to generate shared objects directly from archives.
22914 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22915
22916 # Whether the compiler copes with passing no objects directly.
22917 compiler_needs_object=$lt_compiler_needs_object
22918
22919 # Create an old-style archive from a shared archive.
22920 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22921
22922 # Create a temporary old-style archive to link instead of a shared archive.
22923 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22924
22925 # Commands used to build a shared archive.
22926 archive_cmds=$lt_archive_cmds
22927 archive_expsym_cmds=$lt_archive_expsym_cmds
22928
22929 # Commands used to build a loadable module if different from building
22930 # a shared archive.
22931 module_cmds=$lt_module_cmds
22932 module_expsym_cmds=$lt_module_expsym_cmds
22933
22934 # Whether we are building with GNU ld or not.
22935 with_gnu_ld=$lt_with_gnu_ld
22936
22937 # Flag that allows shared libraries with undefined symbols to be built.
22938 allow_undefined_flag=$lt_allow_undefined_flag
22939
22940 # Flag that enforces no undefined symbols.
22941 no_undefined_flag=$lt_no_undefined_flag
22942
22943 # Flag to hardcode \$libdir into a binary during linking.
22944 # This must work even if \$libdir does not exist
22945 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22946
22947 # If ld is used when linking, flag to hardcode \$libdir into a binary
22948 # during linking.  This must work even if \$libdir does not exist.
22949 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22950
22951 # Whether we need a single "-rpath" flag with a separated argument.
22952 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22953
22954 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22955 # DIR into the resulting binary.
22956 hardcode_direct=$hardcode_direct
22957
22958 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22959 # DIR into the resulting binary and the resulting library dependency is
22960 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22961 # library is relocated.
22962 hardcode_direct_absolute=$hardcode_direct_absolute
22963
22964 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22965 # into the resulting binary.
22966 hardcode_minus_L=$hardcode_minus_L
22967
22968 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22969 # into the resulting binary.
22970 hardcode_shlibpath_var=$hardcode_shlibpath_var
22971
22972 # Set to "yes" if building a shared library automatically hardcodes DIR
22973 # into the library and all subsequent libraries and executables linked
22974 # against it.
22975 hardcode_automatic=$hardcode_automatic
22976
22977 # Set to yes if linker adds runtime paths of dependent libraries
22978 # to runtime path list.
22979 inherit_rpath=$inherit_rpath
22980
22981 # Whether libtool must link a program against all its dependency libraries.
22982 link_all_deplibs=$link_all_deplibs
22983
22984 # Fix the shell variable \$srcfile for the compiler.
22985 fix_srcfile_path=$lt_fix_srcfile_path
22986
22987 # Set to "yes" if exported symbols are required.
22988 always_export_symbols=$always_export_symbols
22989
22990 # The commands to list exported symbols.
22991 export_symbols_cmds=$lt_export_symbols_cmds
22992
22993 # Symbols that should not be listed in the preloaded symbols.
22994 exclude_expsyms=$lt_exclude_expsyms
22995
22996 # Symbols that must always be exported.
22997 include_expsyms=$lt_include_expsyms
22998
22999 # Commands necessary for linking programs (against libraries) with templates.
23000 prelink_cmds=$lt_prelink_cmds
23001
23002 # Specify filename containing input files.
23003 file_list_spec=$lt_file_list_spec
23004
23005 # How to hardcode a shared library path into an executable.
23006 hardcode_action=$hardcode_action
23007
23008 # The directories searched by this compiler when creating a shared library.
23009 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23010
23011 # Dependencies to place before and after the objects being linked to
23012 # create a shared library.
23013 predep_objects=$lt_predep_objects
23014 postdep_objects=$lt_postdep_objects
23015 predeps=$lt_predeps
23016 postdeps=$lt_postdeps
23017
23018 # The library search path used internally by the compiler when linking
23019 # a shared library.
23020 compiler_lib_search_path=$lt_compiler_lib_search_path
23021
23022 # ### END LIBTOOL CONFIG
23023
23024 _LT_EOF
23025
23026   case $host_os in
23027   aix3*)
23028     cat <<\_LT_EOF >> "$cfgfile"
23029 # AIX sometimes has problems with the GCC collect2 program.  For some
23030 # reason, if we set the COLLECT_NAMES environment variable, the problems
23031 # vanish in a puff of smoke.
23032 if test "X${COLLECT_NAMES+set}" != Xset; then
23033   COLLECT_NAMES=
23034   export COLLECT_NAMES
23035 fi
23036 _LT_EOF
23037     ;;
23038   esac
23039
23040
23041 ltmain="$ac_aux_dir/ltmain.sh"
23042
23043
23044   # We use sed instead of cat because bash on DJGPP gets confused if
23045   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23046   # text mode, it properly converts lines to CR/LF.  This bash problem
23047   # is reportedly fixed, but why not run on old versions too?
23048   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
23049     || (rm -f "$cfgfile"; exit 1)
23050
23051   case $xsi_shell in
23052   yes)
23053     cat << \_LT_EOF >> "$cfgfile"
23054
23055 # func_dirname file append nondir_replacement
23056 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
23057 # otherwise set result to NONDIR_REPLACEMENT.
23058 func_dirname ()
23059 {
23060   case ${1} in
23061     */*) func_dirname_result="${1%/*}${2}" ;;
23062     *  ) func_dirname_result="${3}" ;;
23063   esac
23064 }
23065
23066 # func_basename file
23067 func_basename ()
23068 {
23069   func_basename_result="${1##*/}"
23070 }
23071
23072 # func_dirname_and_basename file append nondir_replacement
23073 # perform func_basename and func_dirname in a single function
23074 # call:
23075 #   dirname:  Compute the dirname of FILE.  If nonempty,
23076 #             add APPEND to the result, otherwise set result
23077 #             to NONDIR_REPLACEMENT.
23078 #             value returned in "$func_dirname_result"
23079 #   basename: Compute filename of FILE.
23080 #             value retuned in "$func_basename_result"
23081 # Implementation must be kept synchronized with func_dirname
23082 # and func_basename. For efficiency, we do not delegate to
23083 # those functions but instead duplicate the functionality here.
23084 func_dirname_and_basename ()
23085 {
23086   case ${1} in
23087     */*) func_dirname_result="${1%/*}${2}" ;;
23088     *  ) func_dirname_result="${3}" ;;
23089   esac
23090   func_basename_result="${1##*/}"
23091 }
23092
23093 # func_stripname prefix suffix name
23094 # strip PREFIX and SUFFIX off of NAME.
23095 # PREFIX and SUFFIX must not contain globbing or regex special
23096 # characters, hashes, percent signs, but SUFFIX may contain a leading
23097 # dot (in which case that matches only a dot).
23098 func_stripname ()
23099 {
23100   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
23101   # positional parameters, so assign one to ordinary parameter first.
23102   func_stripname_result=${3}
23103   func_stripname_result=${func_stripname_result#"${1}"}
23104   func_stripname_result=${func_stripname_result%"${2}"}
23105 }
23106
23107 # func_opt_split
23108 func_opt_split ()
23109 {
23110   func_opt_split_opt=${1%%=*}
23111   func_opt_split_arg=${1#*=}
23112 }
23113
23114 # func_lo2o object
23115 func_lo2o ()
23116 {
23117   case ${1} in
23118     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
23119     *)    func_lo2o_result=${1} ;;
23120   esac
23121 }
23122
23123 # func_xform libobj-or-source
23124 func_xform ()
23125 {
23126   func_xform_result=${1%.*}.lo
23127 }
23128
23129 # func_arith arithmetic-term...
23130 func_arith ()
23131 {
23132   func_arith_result=$(( $* ))
23133 }
23134
23135 # func_len string
23136 # STRING may not start with a hyphen.
23137 func_len ()
23138 {
23139   func_len_result=${#1}
23140 }
23141
23142 _LT_EOF
23143     ;;
23144   *) # Bourne compatible functions.
23145     cat << \_LT_EOF >> "$cfgfile"
23146
23147 # func_dirname file append nondir_replacement
23148 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
23149 # otherwise set result to NONDIR_REPLACEMENT.
23150 func_dirname ()
23151 {
23152   # Extract subdirectory from the argument.
23153   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
23154   if test "X$func_dirname_result" = "X${1}"; then
23155     func_dirname_result="${3}"
23156   else
23157     func_dirname_result="$func_dirname_result${2}"
23158   fi
23159 }
23160
23161 # func_basename file
23162 func_basename ()
23163 {
23164   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
23165 }
23166
23167
23168 # func_stripname prefix suffix name
23169 # strip PREFIX and SUFFIX off of NAME.
23170 # PREFIX and SUFFIX must not contain globbing or regex special
23171 # characters, hashes, percent signs, but SUFFIX may contain a leading
23172 # dot (in which case that matches only a dot).
23173 # func_strip_suffix prefix name
23174 func_stripname ()
23175 {
23176   case ${2} in
23177     .*) func_stripname_result=`$ECHO "X${3}" \
23178            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
23179     *)  func_stripname_result=`$ECHO "X${3}" \
23180            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
23181   esac
23182 }
23183
23184 # sed scripts:
23185 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
23186 my_sed_long_arg='1s/^-[^=]*=//'
23187
23188 # func_opt_split
23189 func_opt_split ()
23190 {
23191   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
23192   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
23193 }
23194
23195 # func_lo2o object
23196 func_lo2o ()
23197 {
23198   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
23199 }
23200
23201 # func_xform libobj-or-source
23202 func_xform ()
23203 {
23204   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
23205 }
23206
23207 # func_arith arithmetic-term...
23208 func_arith ()
23209 {
23210   func_arith_result=`expr "$@"`
23211 }
23212
23213 # func_len string
23214 # STRING may not start with a hyphen.
23215 func_len ()
23216 {
23217   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
23218 }
23219
23220 _LT_EOF
23221 esac
23222
23223 case $lt_shell_append in
23224   yes)
23225     cat << \_LT_EOF >> "$cfgfile"
23226
23227 # func_append var value
23228 # Append VALUE to the end of shell variable VAR.
23229 func_append ()
23230 {
23231   eval "$1+=\$2"
23232 }
23233 _LT_EOF
23234     ;;
23235   *)
23236     cat << \_LT_EOF >> "$cfgfile"
23237
23238 # func_append var value
23239 # Append VALUE to the end of shell variable VAR.
23240 func_append ()
23241 {
23242   eval "$1=\$$1\$2"
23243 }
23244
23245 _LT_EOF
23246     ;;
23247   esac
23248
23249
23250   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
23251     || (rm -f "$cfgfile"; exit 1)
23252
23253   mv -f "$cfgfile" "$ofile" ||
23254     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23255   chmod +x "$ofile"
23256
23257
23258     cat <<_LT_EOF >> "$ofile"
23259
23260 # ### BEGIN LIBTOOL TAG CONFIG: CXX
23261
23262 # The linker used to build libraries.
23263 LD=$lt_LD_CXX
23264
23265 # Commands used to build an old-style archive.
23266 old_archive_cmds=$lt_old_archive_cmds_CXX
23267
23268 # A language specific compiler.
23269 CC=$lt_compiler_CXX
23270
23271 # Is the compiler the GNU compiler?
23272 with_gcc=$GCC_CXX
23273
23274 # Compiler flag to turn off builtin functions.
23275 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23276
23277 # How to pass a linker flag through the compiler.
23278 wl=$lt_lt_prog_compiler_wl_CXX
23279
23280 # Additional compiler flags for building library objects.
23281 pic_flag=$lt_lt_prog_compiler_pic_CXX
23282
23283 # Compiler flag to prevent dynamic linking.
23284 link_static_flag=$lt_lt_prog_compiler_static_CXX
23285
23286 # Does compiler simultaneously support -c and -o options?
23287 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23288
23289 # Whether or not to add -lc for building shared libraries.
23290 build_libtool_need_lc=$archive_cmds_need_lc_CXX
23291
23292 # Whether or not to disallow shared libs when runtime libs are static.
23293 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23294
23295 # Compiler flag to allow reflexive dlopens.
23296 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23297
23298 # Compiler flag to generate shared objects directly from archives.
23299 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23300
23301 # Whether the compiler copes with passing no objects directly.
23302 compiler_needs_object=$lt_compiler_needs_object_CXX
23303
23304 # Create an old-style archive from a shared archive.
23305 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23306
23307 # Create a temporary old-style archive to link instead of a shared archive.
23308 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23309
23310 # Commands used to build a shared archive.
23311 archive_cmds=$lt_archive_cmds_CXX
23312 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23313
23314 # Commands used to build a loadable module if different from building
23315 # a shared archive.
23316 module_cmds=$lt_module_cmds_CXX
23317 module_expsym_cmds=$lt_module_expsym_cmds_CXX
23318
23319 # Whether we are building with GNU ld or not.
23320 with_gnu_ld=$lt_with_gnu_ld_CXX
23321
23322 # Flag that allows shared libraries with undefined symbols to be built.
23323 allow_undefined_flag=$lt_allow_undefined_flag_CXX
23324
23325 # Flag that enforces no undefined symbols.
23326 no_undefined_flag=$lt_no_undefined_flag_CXX
23327
23328 # Flag to hardcode \$libdir into a binary during linking.
23329 # This must work even if \$libdir does not exist
23330 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23331
23332 # If ld is used when linking, flag to hardcode \$libdir into a binary
23333 # during linking.  This must work even if \$libdir does not exist.
23334 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
23335
23336 # Whether we need a single "-rpath" flag with a separated argument.
23337 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23338
23339 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23340 # DIR into the resulting binary.
23341 hardcode_direct=$hardcode_direct_CXX
23342
23343 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23344 # DIR into the resulting binary and the resulting library dependency is
23345 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23346 # library is relocated.
23347 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23348
23349 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23350 # into the resulting binary.
23351 hardcode_minus_L=$hardcode_minus_L_CXX
23352
23353 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23354 # into the resulting binary.
23355 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23356
23357 # Set to "yes" if building a shared library automatically hardcodes DIR
23358 # into the library and all subsequent libraries and executables linked
23359 # against it.
23360 hardcode_automatic=$hardcode_automatic_CXX
23361
23362 # Set to yes if linker adds runtime paths of dependent libraries
23363 # to runtime path list.
23364 inherit_rpath=$inherit_rpath_CXX
23365
23366 # Whether libtool must link a program against all its dependency libraries.
23367 link_all_deplibs=$link_all_deplibs_CXX
23368
23369 # Fix the shell variable \$srcfile for the compiler.
23370 fix_srcfile_path=$lt_fix_srcfile_path_CXX
23371
23372 # Set to "yes" if exported symbols are required.
23373 always_export_symbols=$always_export_symbols_CXX
23374
23375 # The commands to list exported symbols.
23376 export_symbols_cmds=$lt_export_symbols_cmds_CXX
23377
23378 # Symbols that should not be listed in the preloaded symbols.
23379 exclude_expsyms=$lt_exclude_expsyms_CXX
23380
23381 # Symbols that must always be exported.
23382 include_expsyms=$lt_include_expsyms_CXX
23383
23384 # Commands necessary for linking programs (against libraries) with templates.
23385 prelink_cmds=$lt_prelink_cmds_CXX
23386
23387 # Specify filename containing input files.
23388 file_list_spec=$lt_file_list_spec_CXX
23389
23390 # How to hardcode a shared library path into an executable.
23391 hardcode_action=$hardcode_action_CXX
23392
23393 # The directories searched by this compiler when creating a shared library.
23394 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23395
23396 # Dependencies to place before and after the objects being linked to
23397 # create a shared library.
23398 predep_objects=$lt_predep_objects_CXX
23399 postdep_objects=$lt_postdep_objects_CXX
23400 predeps=$lt_predeps_CXX
23401 postdeps=$lt_postdeps_CXX
23402
23403 # The library search path used internally by the compiler when linking
23404 # a shared library.
23405 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23406
23407 # ### END LIBTOOL TAG CONFIG: CXX
23408 _LT_EOF
23409
23410  ;;
23411     "default-1":C)
23412     for ac_file in $CONFIG_FILES; do
23413       # Support "outfile[:infile[:infile...]]"
23414       case "$ac_file" in
23415         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23416       esac
23417       # PO directories have a Makefile.in generated from Makefile.in.in.
23418       case "$ac_file" in */Makefile.in)
23419         # Adjust a relative srcdir.
23420         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
23421         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
23422         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
23423         # In autoconf-2.13 it is called $ac_given_srcdir.
23424         # In autoconf-2.50 it is called $srcdir.
23425         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
23426         case "$ac_given_srcdir" in
23427           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
23428           /*) top_srcdir="$ac_given_srcdir" ;;
23429           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
23430         esac
23431         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
23432           rm -f "$ac_dir/POTFILES"
23433           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
23434           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
23435           POMAKEFILEDEPS="POTFILES.in"
23436           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
23437           # on $ac_dir but don't depend on user-specified configuration
23438           # parameters.
23439           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
23440             # The LINGUAS file contains the set of available languages.
23441             if test -n "$OBSOLETE_ALL_LINGUAS"; then
23442               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
23443             fi
23444             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
23445             # Hide the ALL_LINGUAS assigment from automake.
23446             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
23447             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
23448           else
23449             # The set of available languages was given in configure.in.
23450             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
23451           fi
23452           # Compute POFILES
23453           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
23454           # Compute UPDATEPOFILES
23455           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
23456           # Compute DUMMYPOFILES
23457           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
23458           # Compute GMOFILES
23459           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
23460           case "$ac_given_srcdir" in
23461             .) srcdirpre= ;;
23462             *) srcdirpre='$(srcdir)/' ;;
23463           esac
23464           POFILES=
23465           UPDATEPOFILES=
23466           DUMMYPOFILES=
23467           GMOFILES=
23468           for lang in $ALL_LINGUAS; do
23469             POFILES="$POFILES $srcdirpre$lang.po"
23470             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
23471             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
23472             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23473           done
23474           # CATALOGS depends on both $ac_dir and the user's LINGUAS
23475           # environment variable.
23476           INST_LINGUAS=
23477           if test -n "$ALL_LINGUAS"; then
23478             for presentlang in $ALL_LINGUAS; do
23479               useit=no
23480               if test "%UNSET%" != "$LINGUAS"; then
23481                 desiredlanguages="$LINGUAS"
23482               else
23483                 desiredlanguages="$ALL_LINGUAS"
23484               fi
23485               for desiredlang in $desiredlanguages; do
23486                 # Use the presentlang catalog if desiredlang is
23487                 #   a. equal to presentlang, or
23488                 #   b. a variant of presentlang (because in this case,
23489                 #      presentlang can be used as a fallback for messages
23490                 #      which are not translated in the desiredlang catalog).
23491                 case "$desiredlang" in
23492                   "$presentlang"*) useit=yes;;
23493                 esac
23494               done
23495               if test $useit = yes; then
23496                 INST_LINGUAS="$INST_LINGUAS $presentlang"
23497               fi
23498             done
23499           fi
23500           CATALOGS=
23501           if test -n "$INST_LINGUAS"; then
23502             for lang in $INST_LINGUAS; do
23503               CATALOGS="$CATALOGS $lang.gmo"
23504             done
23505           fi
23506           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
23507           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
23508           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
23509             if test -f "$f"; then
23510               case "$f" in
23511                 *.orig | *.bak | *~) ;;
23512                 *) cat "$f" >> "$ac_dir/Makefile" ;;
23513               esac
23514             fi
23515           done
23516         fi
23517         ;;
23518       esac
23519     done ;;
23520     "default-2":C)
23521     for ac_file in $CONFIG_FILES; do
23522       # Support "outfile[:infile[:infile...]]"
23523       case "$ac_file" in
23524         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23525       esac
23526       # PO directories have a Makefile.in generated from Makefile.in.in.
23527       case "$ac_file" in */Makefile.in)
23528         # Adjust a relative srcdir.
23529         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
23530         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
23531         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
23532         # In autoconf-2.13 it is called $ac_given_srcdir.
23533         # In autoconf-2.50 it is called $srcdir.
23534         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
23535         case "$ac_given_srcdir" in
23536           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
23537           /*) top_srcdir="$ac_given_srcdir" ;;
23538           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
23539         esac
23540         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
23541           rm -f "$ac_dir/POTFILES"
23542           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
23543           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
23544           POMAKEFILEDEPS="POTFILES.in"
23545           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
23546           # on $ac_dir but don't depend on user-specified configuration
23547           # parameters.
23548           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
23549             # The LINGUAS file contains the set of available languages.
23550             if test -n "$OBSOLETE_ALL_LINGUAS"; then
23551               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
23552             fi
23553             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
23554             # Hide the ALL_LINGUAS assigment from automake.
23555             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
23556             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
23557           else
23558             # The set of available languages was given in configure.in.
23559             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
23560           fi
23561           # Compute POFILES
23562           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
23563           # Compute UPDATEPOFILES
23564           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
23565           # Compute DUMMYPOFILES
23566           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
23567           # Compute GMOFILES
23568           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
23569           case "$ac_given_srcdir" in
23570             .) srcdirpre= ;;
23571             *) srcdirpre='$(srcdir)/' ;;
23572           esac
23573           POFILES=
23574           UPDATEPOFILES=
23575           DUMMYPOFILES=
23576           GMOFILES=
23577           for lang in $ALL_LINGUAS; do
23578             POFILES="$POFILES $srcdirpre$lang.po"
23579             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
23580             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
23581             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23582           done
23583           # CATALOGS depends on both $ac_dir and the user's LINGUAS
23584           # environment variable.
23585           INST_LINGUAS=
23586           if test -n "$ALL_LINGUAS"; then
23587             for presentlang in $ALL_LINGUAS; do
23588               useit=no
23589               if test "%UNSET%" != "$LINGUAS"; then
23590                 desiredlanguages="$LINGUAS"
23591               else
23592                 desiredlanguages="$ALL_LINGUAS"
23593               fi
23594               for desiredlang in $desiredlanguages; do
23595                 # Use the presentlang catalog if desiredlang is
23596                 #   a. equal to presentlang, or
23597                 #   b. a variant of presentlang (because in this case,
23598                 #      presentlang can be used as a fallback for messages
23599                 #      which are not translated in the desiredlang catalog).
23600                 case "$desiredlang" in
23601                   "$presentlang"*) useit=yes;;
23602                 esac
23603               done
23604               if test $useit = yes; then
23605                 INST_LINGUAS="$INST_LINGUAS $presentlang"
23606               fi
23607             done
23608           fi
23609           CATALOGS=
23610           if test -n "$INST_LINGUAS"; then
23611             for lang in $INST_LINGUAS; do
23612               CATALOGS="$CATALOGS $lang.gmo"
23613             done
23614           fi
23615           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
23616           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
23617           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
23618             if test -f "$f"; then
23619               case "$f" in
23620                 *.orig | *.bak | *~) ;;
23621                 *) cat "$f" >> "$ac_dir/Makefile" ;;
23622               esac
23623             fi
23624           done
23625         fi
23626         ;;
23627       esac
23628     done ;;
23629     "README":F)
23630         if echo "$ac_file" | grep '.sh$' > /dev/null; then
23631                 if test -f "$ac_file"; then
23632                         chmod +x "$ac_file"
23633                 fi
23634         fi
23635  ;;
23636     "Makefile":F)
23637         if echo "$ac_file" | grep '.sh$' > /dev/null; then
23638                 if test -f "$ac_file"; then
23639                         chmod +x "$ac_file"
23640                 fi
23641         fi
23642  ;;
23643     "gphoto2-config":F)
23644         if echo "$ac_file" | grep '.sh$' > /dev/null; then
23645                 if test -f "$ac_file"; then
23646                         chmod +x "$ac_file"
23647                 fi
23648         fi
23649  ;;
23650     "camlibs/Makefile":F)
23651         if echo "$ac_file" | grep '.sh$' > /dev/null; then
23652                 if test -f "$ac_file"; then
23653                         chmod +x "$ac_file"
23654                 fi
23655         fi
23656  ;;
23657     "libgphoto2/Makefile":F)
23658         if echo "$ac_file" | grep '.sh$' > /dev/null; then
23659                 if test -f "$ac_file"; then
23660                         chmod +x "$ac_file"
23661                 fi
23662         fi
23663  ;;
23664     "libgphoto2.pc":F)
23665         if echo "$ac_file" | grep '.sh$' > /dev/null; then
23666                 if test -f "$ac_file"; then
23667                         chmod +x "$ac_file"
23668                 fi
23669         fi
23670  ;;
23671     "libgphoto2-uninstalled.pc":F)
23672         if echo "$ac_file" | grep '.sh$' > /dev/null; then
23673                 if test -f "$ac_file"; then
23674                         chmod +x "$ac_file"
23675                 fi
23676         fi
23677  ;;
23678     "examples/Makefile":F)
23679         if echo "$ac_file" | grep '.sh$' > /dev/null; then
23680                 if test -f "$ac_file"; then
23681                         chmod +x "$ac_file"
23682                 fi
23683         fi
23684  ;;
23685     "tests/Makefile":F)
23686         if echo "$ac_file" | grep '.sh$' > /dev/null; then
23687                 if test -f "$ac_file"; then
23688                         chmod +x "$ac_file"
23689                 fi
23690         fi
23691  ;;
23692     "tests/check-camera-list.sh":F)
23693         if echo "$ac_file" | grep '.sh$' > /dev/null; then
23694                 if test -f "$ac_file"; then
23695                         chmod +x "$ac_file"
23696                 fi
23697         fi
23698  ;;
23699     "tests/ddb/Makefile":F)
23700         if echo "$ac_file" | grep '.sh$' > /dev/null; then
23701                 if test -f "$ac_file"; then
23702                         chmod +x "$ac_file"
23703                 fi
23704         fi
23705  ;;
23706     "tests/ddb/check-ddb.sh":F)
23707         if echo "$ac_file" | grep '.sh$' > /dev/null; then
23708                 if test -f "$ac_file"; then
23709                         chmod +x "$ac_file"
23710                 fi
23711         fi
23712  ;;
23713     "packaging/Makefile":F)
23714         if echo "$ac_file" | grep '.sh$' > /dev/null; then
23715                 if test -f "$ac_file"; then
23716                         chmod +x "$ac_file"
23717                 fi
23718         fi
23719  ;;
23720     "packaging/linux-hotplug/Makefile":F)
23721         if echo "$ac_file" | grep '.sh$' > /dev/null; then
23722                 if test -f "$ac_file"; then
23723                         chmod +x "$ac_file"
23724                 fi
23725         fi
23726  ;;
23727     "packaging/generic/Makefile":F)
23728         if echo "$ac_file" | grep '.sh$' > /dev/null; then
23729                 if test -f "$ac_file"; then
23730                         chmod +x "$ac_file"
23731                 fi
23732         fi
23733  ;;
23734     "packaging/rpm/Makefile":F)
23735         if echo "$ac_file" | grep '.sh$' > /dev/null; then
23736                 if test -f "$ac_file"; then
23737                         chmod +x "$ac_file"
23738                 fi
23739         fi
23740  ;;
23741     "packaging/rpm/package.spec":F)
23742         if echo "$ac_file" | grep '.sh$' > /dev/null; then
23743                 if test -f "$ac_file"; then
23744                         chmod +x "$ac_file"
23745                 fi
23746         fi
23747  ;;
23748     "po/Makefile.in":F)
23749         if echo "$ac_file" | grep '.sh$' > /dev/null; then
23750                 if test -f "$ac_file"; then
23751                         chmod +x "$ac_file"
23752                 fi
23753         fi
23754  ;;
23755     "doc/Makefile":F)
23756         if echo "$ac_file" | grep '.sh$' > /dev/null; then
23757                 if test -f "$ac_file"; then
23758                         chmod +x "$ac_file"
23759                 fi
23760         fi
23761  ;;
23762     "doc/Doxyfile":F)
23763         if echo "$ac_file" | grep '.sh$' > /dev/null; then
23764                 if test -f "$ac_file"; then
23765                         chmod +x "$ac_file"
23766                 fi
23767         fi
23768  ;;
23769     "doc/api/Makefile":F)
23770         if echo "$ac_file" | grep '.sh$' > /dev/null; then
23771                 if test -f "$ac_file"; then
23772                         chmod +x "$ac_file"
23773                 fi
23774         fi
23775  ;;
23776
23777   esac
23778 done # for ac_tag
23779
23780
23781 as_fn_exit 0
23782 _ACEOF
23783 ac_clean_files=$ac_clean_files_save
23784
23785 test $ac_write_fail = 0 ||
23786   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23787
23788
23789 # configure is writing to config.log, and then calls config.status.
23790 # config.status does its own redirection, appending to config.log.
23791 # Unfortunately, on DOS this fails, as config.log is still kept open
23792 # by configure, so config.status won't be able to write to it; its
23793 # output is simply discarded.  So we exec the FD to /dev/null,
23794 # effectively closing config.log, so it can be properly (re)opened and
23795 # appended to by config.status.  When coming back to configure, we
23796 # need to make the FD available again.
23797 if test "$no_create" != yes; then
23798   ac_cs_success=:
23799   ac_config_status_args=
23800   test "$silent" = yes &&
23801     ac_config_status_args="$ac_config_status_args --quiet"
23802   exec 5>/dev/null
23803   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23804   exec 5>>config.log
23805   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23806   # would make configure fail if this is the last instruction.
23807   $ac_cs_success || as_fn_exit 1
23808 fi
23809
23810 #
23811 # CONFIG_SUBDIRS section.
23812 #
23813 if test "$no_recursion" != yes; then
23814
23815   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
23816   # so they do not pile up.
23817   ac_sub_configure_args=
23818   ac_prev=
23819   eval "set x $ac_configure_args"
23820   shift
23821   for ac_arg
23822   do
23823     if test -n "$ac_prev"; then
23824       ac_prev=
23825       continue
23826     fi
23827     case $ac_arg in
23828     -cache-file | --cache-file | --cache-fil | --cache-fi \
23829     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23830       ac_prev=cache_file ;;
23831     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23832     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23833     | --c=*)
23834       ;;
23835     --config-cache | -C)
23836       ;;
23837     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23838       ac_prev=srcdir ;;
23839     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23840       ;;
23841     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23842       ac_prev=prefix ;;
23843     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23844       ;;
23845     --disable-option-checking)
23846       ;;
23847     *)
23848       case $ac_arg in
23849       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23850       esac
23851       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
23852     esac
23853   done
23854
23855   # Always prepend --prefix to ensure using the same prefix
23856   # in subdir configurations.
23857   ac_arg="--prefix=$prefix"
23858   case $ac_arg in
23859   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23860   esac
23861   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
23862
23863   # Pass --silent
23864   if test "$silent" = yes; then
23865     ac_sub_configure_args="--silent $ac_sub_configure_args"
23866   fi
23867
23868   # Always prepend --disable-option-checking to silence warnings, since
23869   # different subdirs can have different --enable and --with options.
23870   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
23871
23872   ac_popdir=`pwd`
23873   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23874
23875     # Do not complain, so a configure script can configure whichever
23876     # parts of a large source tree are present.
23877     test -d "$srcdir/$ac_dir" || continue
23878
23879     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23880     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
23881     $as_echo "$ac_msg" >&6
23882     as_dir="$ac_dir"; as_fn_mkdir_p
23883     ac_builddir=.
23884
23885 case "$ac_dir" in
23886 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23887 *)
23888   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23889   # A ".." for each directory in $ac_dir_suffix.
23890   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23891   case $ac_top_builddir_sub in
23892   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23893   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23894   esac ;;
23895 esac
23896 ac_abs_top_builddir=$ac_pwd
23897 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23898 # for backward compatibility:
23899 ac_top_builddir=$ac_top_build_prefix
23900
23901 case $srcdir in
23902   .)  # We are building in place.
23903     ac_srcdir=.
23904     ac_top_srcdir=$ac_top_builddir_sub
23905     ac_abs_top_srcdir=$ac_pwd ;;
23906   [\\/]* | ?:[\\/]* )  # Absolute name.
23907     ac_srcdir=$srcdir$ac_dir_suffix;
23908     ac_top_srcdir=$srcdir
23909     ac_abs_top_srcdir=$srcdir ;;
23910   *) # Relative name.
23911     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23912     ac_top_srcdir=$ac_top_build_prefix$srcdir
23913     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23914 esac
23915 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23916
23917
23918     cd "$ac_dir"
23919
23920     # Check for guested configure; otherwise get Cygnus style configure.
23921     if test -f "$ac_srcdir/configure.gnu"; then
23922       ac_sub_configure=$ac_srcdir/configure.gnu
23923     elif test -f "$ac_srcdir/configure"; then
23924       ac_sub_configure=$ac_srcdir/configure
23925     elif test -f "$ac_srcdir/configure.in"; then
23926       # This should be Cygnus configure.
23927       ac_sub_configure=$ac_aux_dir/configure
23928     else
23929       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
23930 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23931       ac_sub_configure=
23932     fi
23933
23934     # The recursion is here.
23935     if test -n "$ac_sub_configure"; then
23936       # Make the cache file name correct relative to the subdirectory.
23937       case $cache_file in
23938       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23939       *) # Relative name.
23940         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23941       esac
23942
23943       { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23944 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23945       # The eval makes quoting arguments work.
23946       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23947            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23948         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
23949     fi
23950
23951     cd "$ac_popdir"
23952   done
23953 fi
23954 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23955   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23956 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23957 fi
23958
23959
23960 if test "x$CDPATH" != "x"
23961 then
23962         echo
23963         echo "***********************************************************"
23964         echo "* You have CDPATH set. You may have to run \"unset CDPATH\" *"
23965         echo "* before running \"make dist\" or \"make rpm\".               *"
23966         echo "***********************************************************"
23967 fi
23968
23969 # Message about configured subprojects
23970 if test "x$subdirs" != "x"; then
23971
23972 gp_config_msg="${gp_config_msg}
23973 "
23974         _subdirs=""
23975         for sd in $subdirs; do
23976                 ssd="$(basename "$sd")"
23977                 if test "x$_subdirs" = "x"; then
23978                         _subdirs="$ssd";
23979                 else
23980                         _subdirs="$_subdirs $ssd"
23981                 fi
23982         done
23983
23984 gp_config_msg_len="$(expr "Subprojects" : '.*')"
23985 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
23986         gp_config_msg_lhs="$(expr "Subprojects" : "\(.\{0,${gp_config_len3}\}\)")..:"
23987 else
23988         gp_config_msg_lhs="$(expr "Subprojects:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
23989 fi
23990 gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} ${_subdirs}
23991 "
23992 fi
23993
23994 echo "${gp_config_msg}
23995 You may run \"make\" and \"make install\" now."
23996
23997
23998 if test "$BUILD_THESE_CAMLIBS" = " canon.la" ; then
23999         echo
24000         echo "*** Note: Newer Canon Cameras are supported by the ptp2 camera driver."
24001         echo "***       'canon' is used for older models."
24002         echo "***       If you are unsure, please enable both the canon and ptp2 driver."
24003         echo
24004 fi
24005
24006 echo "
24007 Please check whether the configuration I detected matches what you
24008 would like to have. E.g. make sure that USB support is there if you
24009 intend to use USB cameras with $PACKAGE_NAME.
24010
24011 Please also check that PKG_CONFIG_PATH contains
24012     ${pkgconfigdir}
24013 before compiling any libgphoto2 frontend.
24014 "