Source code upload
[framework/connectivity/libgphoto2.git] / libgphoto2_port / autom4te.cache / output.1
1 @%:@! /bin/sh
2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.68 for libgphoto2 port access library 0.8.0.
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 @S|@? 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 "@S|@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 @S|@as_val. Take advantage of shells that can avoid forks. The arguments
356 @%:@ must be portable across @S|@(()) 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 @S|@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 LIB@&t@OBJS=
704 cross_compiling=no
705 subdirs=
706 MFLAGS=
707 MAKEFLAGS=
708
709 # Identity of this package.
710 PACKAGE_NAME='libgphoto2 port access library'
711 PACKAGE_TARNAME='libgphoto2_port'
712 PACKAGE_VERSION='0.8.0'
713 PACKAGE_STRING='libgphoto2 port access library 0.8.0'
714 PACKAGE_BUGREPORT='gphoto-devel@lists.sourceforge.net'
715 PACKAGE_URL=''
716
717 ac_unique_file="libgphoto2_port/gphoto2-port-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 ac_subst_vars='am__EXEEXT_FALSE
755 am__EXEEXT_TRUE
756 LTLIBOBJS
757 LIB@&t@OBJS
758 AM_LDFLAGS
759 AM_CXXFLAGS
760 AM_CFLAGS
761 AM_CPPFLAGS
762 apidocdir
763 ENABLE_GTK_DOC_FALSE
764 ENABLE_GTK_DOC_TRUE
765 GTKDOC
766 pkgconfigdir
767 iolibdir
768 IOLIB_SUBDIRS
769 HAL_LIBS
770 HAL_CFLAGS
771 HAVE_UDEV_FALSE
772 HAVE_UDEV_TRUE
773 udevscriptdir
774 HAVE_LIBUSB_FALSE
775 HAVE_LIBUSB_TRUE
776 REQUIREMENTS_FOR_LIBUSB
777 LIBUSB_CONFIG_PROG
778 PKG_CONFIG_LIBDIR
779 LIBUSB_LIBS
780 LIBUSB_CFLAGS
781 PKG_CONFIG_PATH
782 PKG_CONFIG
783 SERIAL_LIBS
784 MDNS_LIBS
785 POSUB
786 LTLIBINTL
787 LIBINTL
788 INTLLIBS
789 LTLIBICONV
790 LIBICONV
791 MSGMERGE
792 XGETTEXT
793 GMSGFMT
794 MSGFMT
795 USE_NLS
796 MKINSTALLDIRS
797 GETTEXT_PACKAGE
798 MAIL_GPHOTO_TRANSLATION
799 MAIL_GPHOTO_USER
800 MAIL_GPHOTO_DEVEL
801 URL_USB_MASSSTORAGE
802 URL_JPHOTO_HOME
803 URL_DIGICAM_LIST
804 URL_GPHOTO_PROJECT
805 URL_GPHOTO_HOME
806 OTOOL64
807 OTOOL
808 LIPO
809 NMEDIT
810 DSYMUTIL
811 lt_ECHO
812 RANLIB
813 AR
814 LN_S
815 NM
816 ac_ct_DUMPBIN
817 DUMPBIN
818 LD
819 FGREP
820 EGREP
821 GREP
822 SED
823 LIBTOOL
824 OBJDUMP
825 DLLTOOL
826 AS
827 host_os
828 host_vendor
829 host_cpu
830 host
831 build_os
832 build_vendor
833 build_cpu
834 build
835 CPP
836 am__fastdepCC_FALSE
837 am__fastdepCC_TRUE
838 CCDEPMODE
839 AMDEPBACKSLASH
840 AMDEP_FALSE
841 AMDEP_TRUE
842 am__quote
843 am__include
844 DEPDIR
845 OBJEXT
846 EXEEXT
847 ac_ct_CC
848 CPPFLAGS
849 LDFLAGS
850 CFLAGS
851 CC
852 LIBGPHOTO2_PORT_VERSION_INFO
853 LIBGPHOTO2_PORT_CURRENT_MIN
854 LIBGPHOTO2_PORT_CURRENT
855 LIBGPHOTO2_PORT_REVISION
856 LIBGPHOTO2_PORT_AGE
857 am__untar
858 am__tar
859 AMTAR
860 am__leading_dot
861 SET_MAKE
862 AWK
863 mkdir_p
864 MKDIR_P
865 INSTALL_STRIP_PROGRAM
866 STRIP
867 install_sh
868 MAKEINFO
869 AUTOHEADER
870 AUTOMAKE
871 AUTOCONF
872 ACLOCAL
873 VERSION
874 PACKAGE
875 CYGPATH_W
876 am__isrc
877 INSTALL_DATA
878 INSTALL_SCRIPT
879 INSTALL_PROGRAM
880 target_alias
881 host_alias
882 build_alias
883 LIBS
884 ECHO_T
885 ECHO_N
886 ECHO_C
887 DEFS
888 mandir
889 localedir
890 libdir
891 psdir
892 pdfdir
893 dvidir
894 htmldir
895 infodir
896 docdir
897 oldincludedir
898 includedir
899 localstatedir
900 sharedstatedir
901 sysconfdir
902 datadir
903 datarootdir
904 libexecdir
905 sbindir
906 bindir
907 program_transform_name
908 prefix
909 exec_prefix
910 PACKAGE_URL
911 PACKAGE_BUGREPORT
912 PACKAGE_STRING
913 PACKAGE_VERSION
914 PACKAGE_TARNAME
915 PACKAGE_NAME
916 PATH_SEPARATOR
917 SHELL'
918 ac_subst_files=''
919 ac_user_opts='
920 enable_option_checking
921 enable_dependency_tracking
922 enable_static
923 enable_shared
924 with_pic
925 enable_fast_install
926 with_gnu_ld
927 enable_libtool_lock
928 enable_nls
929 enable_rpath
930 with_libiconv_prefix
931 with_libintl_prefix
932 with_bonjour
933 enable_serial
934 enable_baudboy
935 enable_ttylock
936 enable_lockdev
937 enable_resmgr
938 with_libusb
939 with_hal
940 enable_disk
941 enable_ptpip
942 enable_debug
943 with_doc_dir
944 enable_docs
945 with_html_dir
946 '
947       ac_precious_vars='build_alias
948 host_alias
949 target_alias
950 CC
951 CFLAGS
952 LDFLAGS
953 LIBS
954 CPPFLAGS
955 CPP
956 PKG_CONFIG
957 PKG_CONFIG_PATH
958 LIBUSB_CFLAGS
959 LIBUSB_LIBS
960 PKG_CONFIG_LIBDIR
961 udevscriptdir
962 HAL_CFLAGS
963 HAL_LIBS'
964
965
966 # Initialize some variables set by options.
967 ac_init_help=
968 ac_init_version=false
969 ac_unrecognized_opts=
970 ac_unrecognized_sep=
971 # The variables have the same names as the options, with
972 # dashes changed to underlines.
973 cache_file=/dev/null
974 exec_prefix=NONE
975 no_create=
976 no_recursion=
977 prefix=NONE
978 program_prefix=NONE
979 program_suffix=NONE
980 program_transform_name=s,x,x,
981 silent=
982 site=
983 srcdir=
984 verbose=
985 x_includes=NONE
986 x_libraries=NONE
987
988 # Installation directory options.
989 # These are left unexpanded so users can "make install exec_prefix=/foo"
990 # and all the variables that are supposed to be based on exec_prefix
991 # by default will actually change.
992 # Use braces instead of parens because sh, perl, etc. also accept them.
993 # (The list follows the same order as the GNU Coding Standards.)
994 bindir='${exec_prefix}/bin'
995 sbindir='${exec_prefix}/sbin'
996 libexecdir='${exec_prefix}/libexec'
997 datarootdir='${prefix}/share'
998 datadir='${datarootdir}'
999 sysconfdir='${prefix}/etc'
1000 sharedstatedir='${prefix}/com'
1001 localstatedir='${prefix}/var'
1002 includedir='${prefix}/include'
1003 oldincludedir='/usr/include'
1004 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1005 infodir='${datarootdir}/info'
1006 htmldir='${docdir}'
1007 dvidir='${docdir}'
1008 pdfdir='${docdir}'
1009 psdir='${docdir}'
1010 libdir='${exec_prefix}/lib'
1011 localedir='${datarootdir}/locale'
1012 mandir='${datarootdir}/man'
1013
1014 ac_prev=
1015 ac_dashdash=
1016 for ac_option
1017 do
1018   # If the previous option needs an argument, assign it.
1019   if test -n "$ac_prev"; then
1020     eval $ac_prev=\$ac_option
1021     ac_prev=
1022     continue
1023   fi
1024
1025   case $ac_option in
1026   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1027   *=)   ac_optarg= ;;
1028   *)    ac_optarg=yes ;;
1029   esac
1030
1031   # Accept the important Cygnus configure options, so we can diagnose typos.
1032
1033   case $ac_dashdash$ac_option in
1034   --)
1035     ac_dashdash=yes ;;
1036
1037   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1038     ac_prev=bindir ;;
1039   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1040     bindir=$ac_optarg ;;
1041
1042   -build | --build | --buil | --bui | --bu)
1043     ac_prev=build_alias ;;
1044   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1045     build_alias=$ac_optarg ;;
1046
1047   -cache-file | --cache-file | --cache-fil | --cache-fi \
1048   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1049     ac_prev=cache_file ;;
1050   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1051   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1052     cache_file=$ac_optarg ;;
1053
1054   --config-cache | -C)
1055     cache_file=config.cache ;;
1056
1057   -datadir | --datadir | --datadi | --datad)
1058     ac_prev=datadir ;;
1059   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1060     datadir=$ac_optarg ;;
1061
1062   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1063   | --dataroo | --dataro | --datar)
1064     ac_prev=datarootdir ;;
1065   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1066   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1067     datarootdir=$ac_optarg ;;
1068
1069   -disable-* | --disable-*)
1070     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1071     # Reject names that are not valid shell variable names.
1072     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073       as_fn_error $? "invalid feature name: $ac_useropt"
1074     ac_useropt_orig=$ac_useropt
1075     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076     case $ac_user_opts in
1077       *"
1078 "enable_$ac_useropt"
1079 "*) ;;
1080       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1081          ac_unrecognized_sep=', ';;
1082     esac
1083     eval enable_$ac_useropt=no ;;
1084
1085   -docdir | --docdir | --docdi | --doc | --do)
1086     ac_prev=docdir ;;
1087   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1088     docdir=$ac_optarg ;;
1089
1090   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1091     ac_prev=dvidir ;;
1092   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1093     dvidir=$ac_optarg ;;
1094
1095   -enable-* | --enable-*)
1096     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1097     # Reject names that are not valid shell variable names.
1098     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099       as_fn_error $? "invalid feature name: $ac_useropt"
1100     ac_useropt_orig=$ac_useropt
1101     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102     case $ac_user_opts in
1103       *"
1104 "enable_$ac_useropt"
1105 "*) ;;
1106       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1107          ac_unrecognized_sep=', ';;
1108     esac
1109     eval enable_$ac_useropt=\$ac_optarg ;;
1110
1111   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1112   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1113   | --exec | --exe | --ex)
1114     ac_prev=exec_prefix ;;
1115   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1116   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1117   | --exec=* | --exe=* | --ex=*)
1118     exec_prefix=$ac_optarg ;;
1119
1120   -gas | --gas | --ga | --g)
1121     # Obsolete; use --with-gas.
1122     with_gas=yes ;;
1123
1124   -help | --help | --hel | --he | -h)
1125     ac_init_help=long ;;
1126   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1127     ac_init_help=recursive ;;
1128   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1129     ac_init_help=short ;;
1130
1131   -host | --host | --hos | --ho)
1132     ac_prev=host_alias ;;
1133   -host=* | --host=* | --hos=* | --ho=*)
1134     host_alias=$ac_optarg ;;
1135
1136   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1137     ac_prev=htmldir ;;
1138   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1139   | --ht=*)
1140     htmldir=$ac_optarg ;;
1141
1142   -includedir | --includedir | --includedi | --included | --include \
1143   | --includ | --inclu | --incl | --inc)
1144     ac_prev=includedir ;;
1145   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1146   | --includ=* | --inclu=* | --incl=* | --inc=*)
1147     includedir=$ac_optarg ;;
1148
1149   -infodir | --infodir | --infodi | --infod | --info | --inf)
1150     ac_prev=infodir ;;
1151   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1152     infodir=$ac_optarg ;;
1153
1154   -libdir | --libdir | --libdi | --libd)
1155     ac_prev=libdir ;;
1156   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1157     libdir=$ac_optarg ;;
1158
1159   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1160   | --libexe | --libex | --libe)
1161     ac_prev=libexecdir ;;
1162   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1163   | --libexe=* | --libex=* | --libe=*)
1164     libexecdir=$ac_optarg ;;
1165
1166   -localedir | --localedir | --localedi | --localed | --locale)
1167     ac_prev=localedir ;;
1168   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1169     localedir=$ac_optarg ;;
1170
1171   -localstatedir | --localstatedir | --localstatedi | --localstated \
1172   | --localstate | --localstat | --localsta | --localst | --locals)
1173     ac_prev=localstatedir ;;
1174   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1175   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1176     localstatedir=$ac_optarg ;;
1177
1178   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1179     ac_prev=mandir ;;
1180   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1181     mandir=$ac_optarg ;;
1182
1183   -nfp | --nfp | --nf)
1184     # Obsolete; use --without-fp.
1185     with_fp=no ;;
1186
1187   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1188   | --no-cr | --no-c | -n)
1189     no_create=yes ;;
1190
1191   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1192   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1193     no_recursion=yes ;;
1194
1195   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1196   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1197   | --oldin | --oldi | --old | --ol | --o)
1198     ac_prev=oldincludedir ;;
1199   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1200   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1201   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1202     oldincludedir=$ac_optarg ;;
1203
1204   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1205     ac_prev=prefix ;;
1206   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1207     prefix=$ac_optarg ;;
1208
1209   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1210   | --program-pre | --program-pr | --program-p)
1211     ac_prev=program_prefix ;;
1212   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1213   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1214     program_prefix=$ac_optarg ;;
1215
1216   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1217   | --program-suf | --program-su | --program-s)
1218     ac_prev=program_suffix ;;
1219   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1220   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1221     program_suffix=$ac_optarg ;;
1222
1223   -program-transform-name | --program-transform-name \
1224   | --program-transform-nam | --program-transform-na \
1225   | --program-transform-n | --program-transform- \
1226   | --program-transform | --program-transfor \
1227   | --program-transfo | --program-transf \
1228   | --program-trans | --program-tran \
1229   | --progr-tra | --program-tr | --program-t)
1230     ac_prev=program_transform_name ;;
1231   -program-transform-name=* | --program-transform-name=* \
1232   | --program-transform-nam=* | --program-transform-na=* \
1233   | --program-transform-n=* | --program-transform-=* \
1234   | --program-transform=* | --program-transfor=* \
1235   | --program-transfo=* | --program-transf=* \
1236   | --program-trans=* | --program-tran=* \
1237   | --progr-tra=* | --program-tr=* | --program-t=*)
1238     program_transform_name=$ac_optarg ;;
1239
1240   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1241     ac_prev=pdfdir ;;
1242   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1243     pdfdir=$ac_optarg ;;
1244
1245   -psdir | --psdir | --psdi | --psd | --ps)
1246     ac_prev=psdir ;;
1247   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1248     psdir=$ac_optarg ;;
1249
1250   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1251   | -silent | --silent | --silen | --sile | --sil)
1252     silent=yes ;;
1253
1254   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1255     ac_prev=sbindir ;;
1256   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1257   | --sbi=* | --sb=*)
1258     sbindir=$ac_optarg ;;
1259
1260   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1261   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1262   | --sharedst | --shareds | --shared | --share | --shar \
1263   | --sha | --sh)
1264     ac_prev=sharedstatedir ;;
1265   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1266   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1267   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1268   | --sha=* | --sh=*)
1269     sharedstatedir=$ac_optarg ;;
1270
1271   -site | --site | --sit)
1272     ac_prev=site ;;
1273   -site=* | --site=* | --sit=*)
1274     site=$ac_optarg ;;
1275
1276   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1277     ac_prev=srcdir ;;
1278   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1279     srcdir=$ac_optarg ;;
1280
1281   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1282   | --syscon | --sysco | --sysc | --sys | --sy)
1283     ac_prev=sysconfdir ;;
1284   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1285   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1286     sysconfdir=$ac_optarg ;;
1287
1288   -target | --target | --targe | --targ | --tar | --ta | --t)
1289     ac_prev=target_alias ;;
1290   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1291     target_alias=$ac_optarg ;;
1292
1293   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1294     verbose=yes ;;
1295
1296   -version | --version | --versio | --versi | --vers | -V)
1297     ac_init_version=: ;;
1298
1299   -with-* | --with-*)
1300     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1301     # Reject names that are not valid shell variable names.
1302     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1303       as_fn_error $? "invalid package name: $ac_useropt"
1304     ac_useropt_orig=$ac_useropt
1305     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1306     case $ac_user_opts in
1307       *"
1308 "with_$ac_useropt"
1309 "*) ;;
1310       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1311          ac_unrecognized_sep=', ';;
1312     esac
1313     eval with_$ac_useropt=\$ac_optarg ;;
1314
1315   -without-* | --without-*)
1316     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1317     # Reject names that are not valid shell variable names.
1318     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1319       as_fn_error $? "invalid package name: $ac_useropt"
1320     ac_useropt_orig=$ac_useropt
1321     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1322     case $ac_user_opts in
1323       *"
1324 "with_$ac_useropt"
1325 "*) ;;
1326       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1327          ac_unrecognized_sep=', ';;
1328     esac
1329     eval with_$ac_useropt=no ;;
1330
1331   --x)
1332     # Obsolete; use --with-x.
1333     with_x=yes ;;
1334
1335   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1336   | --x-incl | --x-inc | --x-in | --x-i)
1337     ac_prev=x_includes ;;
1338   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1339   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1340     x_includes=$ac_optarg ;;
1341
1342   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1343   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1344     ac_prev=x_libraries ;;
1345   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1346   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1347     x_libraries=$ac_optarg ;;
1348
1349   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1350 Try \`$0 --help' for more information"
1351     ;;
1352
1353   *=*)
1354     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1355     # Reject names that are not valid shell variable names.
1356     case $ac_envvar in #(
1357       '' | [0-9]* | *[!_$as_cr_alnum]* )
1358       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1359     esac
1360     eval $ac_envvar=\$ac_optarg
1361     export $ac_envvar ;;
1362
1363   *)
1364     # FIXME: should be removed in autoconf 3.0.
1365     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1366     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1367       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1368     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1369     ;;
1370
1371   esac
1372 done
1373
1374 if test -n "$ac_prev"; then
1375   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1376   as_fn_error $? "missing argument to $ac_option"
1377 fi
1378
1379 if test -n "$ac_unrecognized_opts"; then
1380   case $enable_option_checking in
1381     no) ;;
1382     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1383     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1384   esac
1385 fi
1386
1387 # Check all directory arguments for consistency.
1388 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1389                 datadir sysconfdir sharedstatedir localstatedir includedir \
1390                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1391                 libdir localedir mandir
1392 do
1393   eval ac_val=\$$ac_var
1394   # Remove trailing slashes.
1395   case $ac_val in
1396     */ )
1397       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1398       eval $ac_var=\$ac_val;;
1399   esac
1400   # Be sure to have absolute directory names.
1401   case $ac_val in
1402     [\\/$]* | ?:[\\/]* )  continue;;
1403     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1404   esac
1405   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1406 done
1407
1408 # There might be people who depend on the old broken behavior: `$host'
1409 # used to hold the argument of --host etc.
1410 # FIXME: To remove some day.
1411 build=$build_alias
1412 host=$host_alias
1413 target=$target_alias
1414
1415 # FIXME: To remove some day.
1416 if test "x$host_alias" != x; then
1417   if test "x$build_alias" = x; then
1418     cross_compiling=maybe
1419     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1420     If a cross compiler is detected then cross compile mode will be used" >&2
1421   elif test "x$build_alias" != "x$host_alias"; then
1422     cross_compiling=yes
1423   fi
1424 fi
1425
1426 ac_tool_prefix=
1427 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1428
1429 test "$silent" = yes && exec 6>/dev/null
1430
1431
1432 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1433 ac_ls_di=`ls -di .` &&
1434 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1435   as_fn_error $? "working directory cannot be determined"
1436 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1437   as_fn_error $? "pwd does not report name of working directory"
1438
1439
1440 # Find the source files, if location was not specified.
1441 if test -z "$srcdir"; then
1442   ac_srcdir_defaulted=yes
1443   # Try the directory containing this script, then the parent directory.
1444   ac_confdir=`$as_dirname -- "$as_myself" ||
1445 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1446          X"$as_myself" : 'X\(//\)[^/]' \| \
1447          X"$as_myself" : 'X\(//\)$' \| \
1448          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1449 $as_echo X"$as_myself" |
1450     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1451             s//\1/
1452             q
1453           }
1454           /^X\(\/\/\)[^/].*/{
1455             s//\1/
1456             q
1457           }
1458           /^X\(\/\/\)$/{
1459             s//\1/
1460             q
1461           }
1462           /^X\(\/\).*/{
1463             s//\1/
1464             q
1465           }
1466           s/.*/./; q'`
1467   srcdir=$ac_confdir
1468   if test ! -r "$srcdir/$ac_unique_file"; then
1469     srcdir=..
1470   fi
1471 else
1472   ac_srcdir_defaulted=no
1473 fi
1474 if test ! -r "$srcdir/$ac_unique_file"; then
1475   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1476   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1477 fi
1478 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1479 ac_abs_confdir=`(
1480         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1481         pwd)`
1482 # When building in place, set srcdir=.
1483 if test "$ac_abs_confdir" = "$ac_pwd"; then
1484   srcdir=.
1485 fi
1486 # Remove unnecessary trailing slashes from srcdir.
1487 # Double slashes in file names in object file debugging info
1488 # mess up M-x gdb in Emacs.
1489 case $srcdir in
1490 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1491 esac
1492 for ac_var in $ac_precious_vars; do
1493   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1494   eval ac_env_${ac_var}_value=\$${ac_var}
1495   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1496   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1497 done
1498
1499 #
1500 # Report the --help message.
1501 #
1502 if test "$ac_init_help" = "long"; then
1503   # Omit some internal or obsolete options to make the list less imposing.
1504   # This message is too long to be a string in the A/UX 3.1 sh.
1505   cat <<_ACEOF
1506 \`configure' configures libgphoto2 port access library 0.8.0 to adapt to many kinds of systems.
1507
1508 Usage: $0 [OPTION]... [VAR=VALUE]...
1509
1510 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1511 VAR=VALUE.  See below for descriptions of some of the useful variables.
1512
1513 Defaults for the options are specified in brackets.
1514
1515 Configuration:
1516   -h, --help              display this help and exit
1517       --help=short        display options specific to this package
1518       --help=recursive    display the short help of all the included packages
1519   -V, --version           display version information and exit
1520   -q, --quiet, --silent   do not print \`checking ...' messages
1521       --cache-file=FILE   cache test results in FILE [disabled]
1522   -C, --config-cache      alias for \`--cache-file=config.cache'
1523   -n, --no-create         do not create output files
1524       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1525
1526 Installation directories:
1527   --prefix=PREFIX         install architecture-independent files in PREFIX
1528                           @<:@@S|@ac_default_prefix@:>@
1529   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1530                           @<:@PREFIX@:>@
1531
1532 By default, \`make install' will install all the files in
1533 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1534 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1535 for instance \`--prefix=\$HOME'.
1536
1537 For better control, use the options below.
1538
1539 Fine tuning of the installation directories:
1540   --bindir=DIR            user executables [EPREFIX/bin]
1541   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1542   --libexecdir=DIR        program executables [EPREFIX/libexec]
1543   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1544   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1545   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1546   --libdir=DIR            object code libraries [EPREFIX/lib]
1547   --includedir=DIR        C header files [PREFIX/include]
1548   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1549   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1550   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1551   --infodir=DIR           info documentation [DATAROOTDIR/info]
1552   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1553   --mandir=DIR            man documentation [DATAROOTDIR/man]
1554   --docdir=DIR            documentation root @<:@DATAROOTDIR/doc/libgphoto2_port@:>@
1555   --htmldir=DIR           html documentation [DOCDIR]
1556   --dvidir=DIR            dvi documentation [DOCDIR]
1557   --pdfdir=DIR            pdf documentation [DOCDIR]
1558   --psdir=DIR             ps documentation [DOCDIR]
1559 _ACEOF
1560
1561   cat <<\_ACEOF
1562
1563 Program names:
1564   --program-prefix=PREFIX            prepend PREFIX to installed program names
1565   --program-suffix=SUFFIX            append SUFFIX to installed program names
1566   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1567
1568 System types:
1569   --build=BUILD     configure for building on BUILD [guessed]
1570   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1571 _ACEOF
1572 fi
1573
1574 if test -n "$ac_init_help"; then
1575   case $ac_init_help in
1576      short | recursive ) echo "Configuration of libgphoto2 port access library 0.8.0:";;
1577    esac
1578   cat <<\_ACEOF
1579
1580 Optional Features:
1581   --disable-option-checking  ignore unrecognized --enable/--with options
1582   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1583   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1584   --disable-dependency-tracking  speeds up one-time build
1585   --enable-dependency-tracking   do not reject slow dependency extractors
1586   --enable-static@<:@=PKGS@:>@  build static libraries @<:@default=no@:>@
1587   --enable-shared@<:@=PKGS@:>@  build shared libraries @<:@default=yes@:>@
1588   --enable-fast-install@<:@=PKGS@:>@ 
1589                           optimize for fast installation @<:@default=yes@:>@
1590   --disable-libtool-lock  avoid locking (might break parallel builds)
1591   --disable-nls           do not use Native Language Support
1592   --disable-rpath         do not hardcode runtime library paths
1593   --disable-serial        do not compile in SERIAL support
1594   --disable-baudboy       do not use baudboy library
1595
1596   --disable-ttylock       do not use ttylock library
1597
1598   --disable-lockdev       do not use lockdev library
1599
1600   --disable-resmgr        do not use resmgr library
1601
1602   --disable-disk          enable the 'disk' port driver
1603   --disable-ptpip         enable the 'ptpip' port driver for TCP/IP connected
1604                           PTP cameras
1605   --disable-debug         do not include debugging code
1606   --enable-docs           Use gtk-doc to build documentation @<:@default=no@:>@
1607
1608 Optional Packages:
1609   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1610   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1611   --with-pic              try to use only PIC/non-PIC objects @<:@default=use
1612                           both@:>@
1613   --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
1614   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1615   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1616   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1617   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1618   --without-libintl-prefix     don't search for libintl in includedir and libdir
1619   --without-bonjour       whether to exclude Bonjour PTP/IP autodetection
1620   --with-libusb=PREFIX    where to find libusb, "no" or "auto"
1621   --with-hal              whether to enable HAL disk autodetection
1622                           @<:@default=yes@:>@
1623   --with-doc-dir=PATH     Where to install docs @<:@default=autodetect@:>@
1624   --with-html-dir=PATH    Where to install html docs @<:@default=autodetect@:>@
1625
1626 Some influential environment variables:
1627   CC          C compiler command
1628   CFLAGS      C compiler flags
1629   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1630               nonstandard directory <lib dir>
1631   LIBS        libraries to pass to the linker, e.g. -l<library>
1632   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1633               you have headers in a nonstandard directory <include dir>
1634   CPP         C preprocessor
1635   PKG_CONFIG  pkg-config package config utility
1636   PKG_CONFIG_PATH 
1637               directory where pkg-config looks for *.pc files
1638   LIBUSB_CFLAGS 
1639               CFLAGS for compiling with libusb
1640   LIBUSB_LIBS LIBS to add for linking against libusb
1641   PKG_CONFIG_LIBDIR 
1642               path overriding pkg-config's built-in search path
1643   udevscriptdir 
1644               Directory where udev scripts like check-ptp-camera will be
1645               installed
1646   HAL_CFLAGS  C compiler flags for HAL, overriding pkg-config
1647   HAL_LIBS    linker flags for HAL, overriding pkg-config
1648
1649 Use these variables to override the choices made by `configure' or to help
1650 it to find libraries and programs with nonstandard names/locations.
1651
1652 Report bugs to <gphoto-devel@lists.sourceforge.net>.
1653 _ACEOF
1654 ac_status=$?
1655 fi
1656
1657 if test "$ac_init_help" = "recursive"; then
1658   # If there are subdirs, report their specific --help.
1659   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1660     test -d "$ac_dir" ||
1661       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1662       continue
1663     ac_builddir=.
1664
1665 case "$ac_dir" in
1666 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1667 *)
1668   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1669   # A ".." for each directory in $ac_dir_suffix.
1670   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1671   case $ac_top_builddir_sub in
1672   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1673   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1674   esac ;;
1675 esac
1676 ac_abs_top_builddir=$ac_pwd
1677 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1678 # for backward compatibility:
1679 ac_top_builddir=$ac_top_build_prefix
1680
1681 case $srcdir in
1682   .)  # We are building in place.
1683     ac_srcdir=.
1684     ac_top_srcdir=$ac_top_builddir_sub
1685     ac_abs_top_srcdir=$ac_pwd ;;
1686   [\\/]* | ?:[\\/]* )  # Absolute name.
1687     ac_srcdir=$srcdir$ac_dir_suffix;
1688     ac_top_srcdir=$srcdir
1689     ac_abs_top_srcdir=$srcdir ;;
1690   *) # Relative name.
1691     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1692     ac_top_srcdir=$ac_top_build_prefix$srcdir
1693     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1694 esac
1695 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1696
1697     cd "$ac_dir" || { ac_status=$?; continue; }
1698     # Check for guested configure.
1699     if test -f "$ac_srcdir/configure.gnu"; then
1700       echo &&
1701       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1702     elif test -f "$ac_srcdir/configure"; then
1703       echo &&
1704       $SHELL "$ac_srcdir/configure" --help=recursive
1705     else
1706       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1707     fi || ac_status=$?
1708     cd "$ac_pwd" || { ac_status=$?; break; }
1709   done
1710 fi
1711
1712 test -n "$ac_init_help" && exit $ac_status
1713 if $ac_init_version; then
1714   cat <<\_ACEOF
1715 libgphoto2 port access library configure 0.8.0
1716 generated by GNU Autoconf 2.68
1717
1718 Copyright (C) 2010 Free Software Foundation, Inc.
1719 This configure script is free software; the Free Software Foundation
1720 gives unlimited permission to copy, distribute and modify it.
1721 _ACEOF
1722   exit
1723 fi
1724
1725 ## ------------------------ ##
1726 ## Autoconf initialization. ##
1727 ## ------------------------ ##
1728
1729 @%:@ ac_fn_c_try_compile LINENO
1730 @%:@ --------------------------
1731 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1732 ac_fn_c_try_compile ()
1733 {
1734   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735   rm -f conftest.$ac_objext
1736   if { { ac_try="$ac_compile"
1737 case "(($ac_try" in
1738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739   *) ac_try_echo=$ac_try;;
1740 esac
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743   (eval "$ac_compile") 2>conftest.err
1744   ac_status=$?
1745   if test -s conftest.err; then
1746     grep -v '^ *+' conftest.err >conftest.er1
1747     cat conftest.er1 >&5
1748     mv -f conftest.er1 conftest.err
1749   fi
1750   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751   test $ac_status = 0; } && {
1752          test -z "$ac_c_werror_flag" ||
1753          test ! -s conftest.err
1754        } && test -s conftest.$ac_objext; then :
1755   ac_retval=0
1756 else
1757   $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.$ac_ext >&5
1759
1760         ac_retval=1
1761 fi
1762   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763   as_fn_set_status $ac_retval
1764
1765 } @%:@ ac_fn_c_try_compile
1766
1767 @%:@ ac_fn_c_try_cpp LINENO
1768 @%:@ ----------------------
1769 @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1770 ac_fn_c_try_cpp ()
1771 {
1772   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773   if { { ac_try="$ac_cpp conftest.$ac_ext"
1774 case "(($ac_try" in
1775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776   *) ac_try_echo=$ac_try;;
1777 esac
1778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1781   ac_status=$?
1782   if test -s conftest.err; then
1783     grep -v '^ *+' conftest.err >conftest.er1
1784     cat conftest.er1 >&5
1785     mv -f conftest.er1 conftest.err
1786   fi
1787   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788   test $ac_status = 0; } > conftest.i && {
1789          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1790          test ! -s conftest.err
1791        }; then :
1792   ac_retval=0
1793 else
1794   $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
1796
1797     ac_retval=1
1798 fi
1799   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800   as_fn_set_status $ac_retval
1801
1802 } @%:@ ac_fn_c_try_cpp
1803
1804 @%:@ ac_fn_c_try_link LINENO
1805 @%:@ -----------------------
1806 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1807 ac_fn_c_try_link ()
1808 {
1809   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810   rm -f conftest.$ac_objext conftest$ac_exeext
1811   if { { ac_try="$ac_link"
1812 case "(($ac_try" in
1813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814   *) ac_try_echo=$ac_try;;
1815 esac
1816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817 $as_echo "$ac_try_echo"; } >&5
1818   (eval "$ac_link") 2>conftest.err
1819   ac_status=$?
1820   if test -s conftest.err; then
1821     grep -v '^ *+' conftest.err >conftest.er1
1822     cat conftest.er1 >&5
1823     mv -f conftest.er1 conftest.err
1824   fi
1825   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826   test $ac_status = 0; } && {
1827          test -z "$ac_c_werror_flag" ||
1828          test ! -s conftest.err
1829        } && test -s conftest$ac_exeext && {
1830          test "$cross_compiling" = yes ||
1831          $as_test_x conftest$ac_exeext
1832        }; then :
1833   ac_retval=0
1834 else
1835   $as_echo "$as_me: failed program was:" >&5
1836 sed 's/^/| /' conftest.$ac_ext >&5
1837
1838         ac_retval=1
1839 fi
1840   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1841   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1842   # interfere with the next link command; also delete a directory that is
1843   # left behind by Apple's compiler.  We do this before executing the actions.
1844   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1845   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846   as_fn_set_status $ac_retval
1847
1848 } @%:@ ac_fn_c_try_link
1849
1850 @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1851 @%:@ -------------------------------------------------------
1852 @%:@ Tests whether HEADER exists and can be compiled using the include files in
1853 @%:@ INCLUDES, setting the cache variable VAR accordingly.
1854 ac_fn_c_check_header_compile ()
1855 {
1856   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858 $as_echo_n "checking for $2... " >&6; }
1859 if eval \${$3+:} false; then :
1860   $as_echo_n "(cached) " >&6
1861 else
1862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863 /* end confdefs.h.  */
1864 $4
1865 @%:@include <$2>
1866 _ACEOF
1867 if ac_fn_c_try_compile "$LINENO"; then :
1868   eval "$3=yes"
1869 else
1870   eval "$3=no"
1871 fi
1872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1873 fi
1874 eval ac_res=\$$3
1875                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1877   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878
1879 } @%:@ ac_fn_c_check_header_compile
1880
1881 @%:@ ac_fn_c_try_run LINENO
1882 @%:@ ----------------------
1883 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1884 @%:@ that executables *can* be run.
1885 ac_fn_c_try_run ()
1886 {
1887   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888   if { { ac_try="$ac_link"
1889 case "(($ac_try" in
1890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891   *) ac_try_echo=$ac_try;;
1892 esac
1893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894 $as_echo "$ac_try_echo"; } >&5
1895   (eval "$ac_link") 2>&5
1896   ac_status=$?
1897   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1899   { { case "(($ac_try" in
1900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901   *) ac_try_echo=$ac_try;;
1902 esac
1903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904 $as_echo "$ac_try_echo"; } >&5
1905   (eval "$ac_try") 2>&5
1906   ac_status=$?
1907   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908   test $ac_status = 0; }; }; then :
1909   ac_retval=0
1910 else
1911   $as_echo "$as_me: program exited with status $ac_status" >&5
1912        $as_echo "$as_me: failed program was:" >&5
1913 sed 's/^/| /' conftest.$ac_ext >&5
1914
1915        ac_retval=$ac_status
1916 fi
1917   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1918   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919   as_fn_set_status $ac_retval
1920
1921 } @%:@ ac_fn_c_try_run
1922
1923 @%:@ ac_fn_c_check_func LINENO FUNC VAR
1924 @%:@ ----------------------------------
1925 @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1926 ac_fn_c_check_func ()
1927 {
1928   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1930 $as_echo_n "checking for $2... " >&6; }
1931 if eval \${$3+:} false; then :
1932   $as_echo_n "(cached) " >&6
1933 else
1934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935 /* end confdefs.h.  */
1936 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1937    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1938 #define $2 innocuous_$2
1939
1940 /* System header to define __stub macros and hopefully few prototypes,
1941     which can conflict with char $2 (); below.
1942     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1943     <limits.h> exists even on freestanding compilers.  */
1944
1945 #ifdef __STDC__
1946 # include <limits.h>
1947 #else
1948 # include <assert.h>
1949 #endif
1950
1951 #undef $2
1952
1953 /* Override any GCC internal prototype to avoid an error.
1954    Use char because int might match the return type of a GCC
1955    builtin and then its argument prototype would still apply.  */
1956 #ifdef __cplusplus
1957 extern "C"
1958 #endif
1959 char $2 ();
1960 /* The GNU C library defines this for functions which it implements
1961     to always fail with ENOSYS.  Some functions are actually named
1962     something starting with __ and the normal name is an alias.  */
1963 #if defined __stub_$2 || defined __stub___$2
1964 choke me
1965 #endif
1966
1967 int
1968 main ()
1969 {
1970 return $2 ();
1971   ;
1972   return 0;
1973 }
1974 _ACEOF
1975 if ac_fn_c_try_link "$LINENO"; then :
1976   eval "$3=yes"
1977 else
1978   eval "$3=no"
1979 fi
1980 rm -f core conftest.err conftest.$ac_objext \
1981     conftest$ac_exeext conftest.$ac_ext
1982 fi
1983 eval ac_res=\$$3
1984                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1985 $as_echo "$ac_res" >&6; }
1986   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1987
1988 } @%:@ ac_fn_c_check_func
1989
1990 @%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1991 @%:@ -------------------------------------------------------
1992 @%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
1993 @%:@ the include files in INCLUDES and setting the cache variable VAR
1994 @%:@ accordingly.
1995 ac_fn_c_check_header_mongrel ()
1996 {
1997   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998   if eval \${$3+:} false; then :
1999   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2000 $as_echo_n "checking for $2... " >&6; }
2001 if eval \${$3+:} false; then :
2002   $as_echo_n "(cached) " >&6
2003 fi
2004 eval ac_res=\$$3
2005                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2006 $as_echo "$ac_res" >&6; }
2007 else
2008   # Is the header compilable?
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2010 $as_echo_n "checking $2 usability... " >&6; }
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h.  */
2013 $4
2014 @%:@include <$2>
2015 _ACEOF
2016 if ac_fn_c_try_compile "$LINENO"; then :
2017   ac_header_compiler=yes
2018 else
2019   ac_header_compiler=no
2020 fi
2021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2023 $as_echo "$ac_header_compiler" >&6; }
2024
2025 # Is the header present?
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2027 $as_echo_n "checking $2 presence... " >&6; }
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h.  */
2030 @%:@include <$2>
2031 _ACEOF
2032 if ac_fn_c_try_cpp "$LINENO"; then :
2033   ac_header_preproc=yes
2034 else
2035   ac_header_preproc=no
2036 fi
2037 rm -f conftest.err conftest.i conftest.$ac_ext
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2039 $as_echo "$ac_header_preproc" >&6; }
2040
2041 # So?  What about this header?
2042 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2043   yes:no: )
2044     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2045 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2046     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2047 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2048     ;;
2049   no:yes:* )
2050     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2051 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2052     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2053 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2054     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2055 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2056     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2057 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2058     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2059 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2060 ( $as_echo "## ------------------------------------------------- ##
2061 ## Report this to gphoto-devel@lists.sourceforge.net ##
2062 ## ------------------------------------------------- ##"
2063      ) | sed "s/^/$as_me: WARNING:     /" >&2
2064     ;;
2065 esac
2066   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2067 $as_echo_n "checking for $2... " >&6; }
2068 if eval \${$3+:} false; then :
2069   $as_echo_n "(cached) " >&6
2070 else
2071   eval "$3=\$ac_header_compiler"
2072 fi
2073 eval ac_res=\$$3
2074                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2075 $as_echo "$ac_res" >&6; }
2076 fi
2077   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078
2079 } @%:@ ac_fn_c_check_header_mongrel
2080 cat >config.log <<_ACEOF
2081 This file contains any messages produced by compilers while
2082 running configure, to aid debugging if configure makes a mistake.
2083
2084 It was created by libgphoto2 port access library $as_me 0.8.0, which was
2085 generated by GNU Autoconf 2.68.  Invocation command line was
2086
2087   $ $0 $@
2088
2089 _ACEOF
2090 exec 5>>config.log
2091 {
2092 cat <<_ASUNAME
2093 ## --------- ##
2094 ## Platform. ##
2095 ## --------- ##
2096
2097 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2098 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2099 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2100 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2101 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2102
2103 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2104 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2105
2106 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2107 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2108 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2109 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2110 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2111 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2112 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2113
2114 _ASUNAME
2115
2116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2117 for as_dir in $PATH
2118 do
2119   IFS=$as_save_IFS
2120   test -z "$as_dir" && as_dir=.
2121     $as_echo "PATH: $as_dir"
2122   done
2123 IFS=$as_save_IFS
2124
2125 } >&5
2126
2127 cat >&5 <<_ACEOF
2128
2129
2130 ## ----------- ##
2131 ## Core tests. ##
2132 ## ----------- ##
2133
2134 _ACEOF
2135
2136
2137 # Keep a trace of the command line.
2138 # Strip out --no-create and --no-recursion so they do not pile up.
2139 # Strip out --silent because we don't want to record it for future runs.
2140 # Also quote any args containing shell meta-characters.
2141 # Make two passes to allow for proper duplicate-argument suppression.
2142 ac_configure_args=
2143 ac_configure_args0=
2144 ac_configure_args1=
2145 ac_must_keep_next=false
2146 for ac_pass in 1 2
2147 do
2148   for ac_arg
2149   do
2150     case $ac_arg in
2151     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2152     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2153     | -silent | --silent | --silen | --sile | --sil)
2154       continue ;;
2155     *\'*)
2156       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2157     esac
2158     case $ac_pass in
2159     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2160     2)
2161       as_fn_append ac_configure_args1 " '$ac_arg'"
2162       if test $ac_must_keep_next = true; then
2163         ac_must_keep_next=false # Got value, back to normal.
2164       else
2165         case $ac_arg in
2166           *=* | --config-cache | -C | -disable-* | --disable-* \
2167           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2168           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2169           | -with-* | --with-* | -without-* | --without-* | --x)
2170             case "$ac_configure_args0 " in
2171               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2172             esac
2173             ;;
2174           -* ) ac_must_keep_next=true ;;
2175         esac
2176       fi
2177       as_fn_append ac_configure_args " '$ac_arg'"
2178       ;;
2179     esac
2180   done
2181 done
2182 { ac_configure_args0=; unset ac_configure_args0;}
2183 { ac_configure_args1=; unset ac_configure_args1;}
2184
2185 # When interrupted or exit'd, cleanup temporary files, and complete
2186 # config.log.  We remove comments because anyway the quotes in there
2187 # would cause problems or look ugly.
2188 # WARNING: Use '\'' to represent an apostrophe within the trap.
2189 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2190 trap 'exit_status=$?
2191   # Save into config.log some information that might help in debugging.
2192   {
2193     echo
2194
2195     $as_echo "## ---------------- ##
2196 ## Cache variables. ##
2197 ## ---------------- ##"
2198     echo
2199     # The following way of writing the cache mishandles newlines in values,
2200 (
2201   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2202     eval ac_val=\$$ac_var
2203     case $ac_val in #(
2204     *${as_nl}*)
2205       case $ac_var in #(
2206       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2207 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2208       esac
2209       case $ac_var in #(
2210       _ | IFS | as_nl) ;; #(
2211       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2212       *) { eval $ac_var=; unset $ac_var;} ;;
2213       esac ;;
2214     esac
2215   done
2216   (set) 2>&1 |
2217     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2218     *${as_nl}ac_space=\ *)
2219       sed -n \
2220         "s/'\''/'\''\\\\'\'''\''/g;
2221           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2222       ;; #(
2223     *)
2224       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2225       ;;
2226     esac |
2227     sort
2228 )
2229     echo
2230
2231     $as_echo "## ----------------- ##
2232 ## Output variables. ##
2233 ## ----------------- ##"
2234     echo
2235     for ac_var in $ac_subst_vars
2236     do
2237       eval ac_val=\$$ac_var
2238       case $ac_val in
2239       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2240       esac
2241       $as_echo "$ac_var='\''$ac_val'\''"
2242     done | sort
2243     echo
2244
2245     if test -n "$ac_subst_files"; then
2246       $as_echo "## ------------------- ##
2247 ## File substitutions. ##
2248 ## ------------------- ##"
2249       echo
2250       for ac_var in $ac_subst_files
2251       do
2252         eval ac_val=\$$ac_var
2253         case $ac_val in
2254         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2255         esac
2256         $as_echo "$ac_var='\''$ac_val'\''"
2257       done | sort
2258       echo
2259     fi
2260
2261     if test -s confdefs.h; then
2262       $as_echo "## ----------- ##
2263 ## confdefs.h. ##
2264 ## ----------- ##"
2265       echo
2266       cat confdefs.h
2267       echo
2268     fi
2269     test "$ac_signal" != 0 &&
2270       $as_echo "$as_me: caught signal $ac_signal"
2271     $as_echo "$as_me: exit $exit_status"
2272   } >&5
2273   rm -f core *.core core.conftest.* &&
2274     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2275     exit $exit_status
2276 ' 0
2277 for ac_signal in 1 2 13 15; do
2278   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2279 done
2280 ac_signal=0
2281
2282 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2283 rm -f -r conftest* confdefs.h
2284
2285 $as_echo "/* confdefs.h */" > confdefs.h
2286
2287 # Predefined preprocessor variables.
2288
2289 cat >>confdefs.h <<_ACEOF
2290 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
2291 _ACEOF
2292
2293 cat >>confdefs.h <<_ACEOF
2294 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2295 _ACEOF
2296
2297 cat >>confdefs.h <<_ACEOF
2298 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2299 _ACEOF
2300
2301 cat >>confdefs.h <<_ACEOF
2302 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
2303 _ACEOF
2304
2305 cat >>confdefs.h <<_ACEOF
2306 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2307 _ACEOF
2308
2309 cat >>confdefs.h <<_ACEOF
2310 @%:@define PACKAGE_URL "$PACKAGE_URL"
2311 _ACEOF
2312
2313
2314 # Let the site file select an alternate cache file if it wants to.
2315 # Prefer an explicitly selected file to automatically selected ones.
2316 ac_site_file1=NONE
2317 ac_site_file2=NONE
2318 if test -n "$CONFIG_SITE"; then
2319   # We do not want a PATH search for config.site.
2320   case $CONFIG_SITE in @%:@((
2321     -*)  ac_site_file1=./$CONFIG_SITE;;
2322     */*) ac_site_file1=$CONFIG_SITE;;
2323     *)   ac_site_file1=./$CONFIG_SITE;;
2324   esac
2325 elif test "x$prefix" != xNONE; then
2326   ac_site_file1=$prefix/share/config.site
2327   ac_site_file2=$prefix/etc/config.site
2328 else
2329   ac_site_file1=$ac_default_prefix/share/config.site
2330   ac_site_file2=$ac_default_prefix/etc/config.site
2331 fi
2332 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2333 do
2334   test "x$ac_site_file" = xNONE && continue
2335   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2336     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2337 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2338     sed 's/^/| /' "$ac_site_file" >&5
2339     . "$ac_site_file" \
2340       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2342 as_fn_error $? "failed to load site script $ac_site_file
2343 See \`config.log' for more details" "$LINENO" 5; }
2344   fi
2345 done
2346
2347 if test -r "$cache_file"; then
2348   # Some versions of bash will fail to source /dev/null (special files
2349   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2350   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2351     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2352 $as_echo "$as_me: loading cache $cache_file" >&6;}
2353     case $cache_file in
2354       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2355       *)                      . "./$cache_file";;
2356     esac
2357   fi
2358 else
2359   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2360 $as_echo "$as_me: creating cache $cache_file" >&6;}
2361   >$cache_file
2362 fi
2363
2364 # Check that the precious variables saved in the cache have kept the same
2365 # value.
2366 ac_cache_corrupted=false
2367 for ac_var in $ac_precious_vars; do
2368   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2369   eval ac_new_set=\$ac_env_${ac_var}_set
2370   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2371   eval ac_new_val=\$ac_env_${ac_var}_value
2372   case $ac_old_set,$ac_new_set in
2373     set,)
2374       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2375 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2376       ac_cache_corrupted=: ;;
2377     ,set)
2378       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2379 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2380       ac_cache_corrupted=: ;;
2381     ,);;
2382     *)
2383       if test "x$ac_old_val" != "x$ac_new_val"; then
2384         # differences in whitespace do not lead to failure.
2385         ac_old_val_w=`echo x $ac_old_val`
2386         ac_new_val_w=`echo x $ac_new_val`
2387         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2388           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2389 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2390           ac_cache_corrupted=:
2391         else
2392           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2393 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2394           eval $ac_var=\$ac_old_val
2395         fi
2396         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2397 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2398         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2399 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2400       fi;;
2401   esac
2402   # Pass precious variables to config.status.
2403   if test "$ac_new_set" = set; then
2404     case $ac_new_val in
2405     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2406     *) ac_arg=$ac_var=$ac_new_val ;;
2407     esac
2408     case " $ac_configure_args " in
2409       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2410       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2411     esac
2412   fi
2413 done
2414 if $ac_cache_corrupted; then
2415   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2417   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2418 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2419   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2420 fi
2421 ## -------------------- ##
2422 ## Main body of script. ##
2423 ## -------------------- ##
2424
2425 ac_ext=c
2426 ac_cpp='$CPP $CPPFLAGS'
2427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2430
2431
2432
2433 ac_config_headers="$ac_config_headers config.h"
2434
2435
2436 ac_aux_dir=
2437 for ac_dir in auto-aux "$srcdir"/auto-aux; do
2438   if test -f "$ac_dir/install-sh"; then
2439     ac_aux_dir=$ac_dir
2440     ac_install_sh="$ac_aux_dir/install-sh -c"
2441     break
2442   elif test -f "$ac_dir/install.sh"; then
2443     ac_aux_dir=$ac_dir
2444     ac_install_sh="$ac_aux_dir/install.sh -c"
2445     break
2446   elif test -f "$ac_dir/shtool"; then
2447     ac_aux_dir=$ac_dir
2448     ac_install_sh="$ac_aux_dir/shtool install -c"
2449     break
2450   fi
2451 done
2452 if test -z "$ac_aux_dir"; then
2453   as_fn_error $? "cannot find install-sh, install.sh, or shtool in auto-aux \"$srcdir\"/auto-aux" "$LINENO" 5
2454 fi
2455
2456 # These three variables are undocumented and unsupported,
2457 # and are intended to be withdrawn in a future Autoconf release.
2458 # They can cause serious problems if a builder's source tree is in a directory
2459 # whose full name contains unusual characters.
2460 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2461 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2462 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2463
2464
2465 am__api_version='1.11'
2466
2467 # Find a good install program.  We prefer a C program (faster),
2468 # so one script is as good as another.  But avoid the broken or
2469 # incompatible versions:
2470 # SysV /etc/install, /usr/sbin/install
2471 # SunOS /usr/etc/install
2472 # IRIX /sbin/install
2473 # AIX /bin/install
2474 # AmigaOS /C/install, which installs bootblocks on floppy discs
2475 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2476 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2477 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2478 # OS/2's system install, which has a completely different semantic
2479 # ./install, which can be erroneously created by make from ./install.sh.
2480 # Reject install programs that cannot install multiple files.
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2482 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2483 if test -z "$INSTALL"; then
2484 if ${ac_cv_path_install+:} false; then :
2485   $as_echo_n "(cached) " >&6
2486 else
2487   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 for as_dir in $PATH
2489 do
2490   IFS=$as_save_IFS
2491   test -z "$as_dir" && as_dir=.
2492     # Account for people who put trailing slashes in PATH elements.
2493 case $as_dir/ in @%:@((
2494   ./ | .// | /[cC]/* | \
2495   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2496   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2497   /usr/ucb/* ) ;;
2498   *)
2499     # OSF1 and SCO ODT 3.0 have their own names for install.
2500     # Don't use installbsd from OSF since it installs stuff as root
2501     # by default.
2502     for ac_prog in ginstall scoinst install; do
2503       for ac_exec_ext in '' $ac_executable_extensions; do
2504         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2505           if test $ac_prog = install &&
2506             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2507             # AIX install.  It has an incompatible calling convention.
2508             :
2509           elif test $ac_prog = install &&
2510             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2511             # program-specific install script used by HP pwplus--don't use.
2512             :
2513           else
2514             rm -rf conftest.one conftest.two conftest.dir
2515             echo one > conftest.one
2516             echo two > conftest.two
2517             mkdir conftest.dir
2518             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2519               test -s conftest.one && test -s conftest.two &&
2520               test -s conftest.dir/conftest.one &&
2521               test -s conftest.dir/conftest.two
2522             then
2523               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2524               break 3
2525             fi
2526           fi
2527         fi
2528       done
2529     done
2530     ;;
2531 esac
2532
2533   done
2534 IFS=$as_save_IFS
2535
2536 rm -rf conftest.one conftest.two conftest.dir
2537
2538 fi
2539   if test "${ac_cv_path_install+set}" = set; then
2540     INSTALL=$ac_cv_path_install
2541   else
2542     # As a last resort, use the slow shell script.  Don't cache a
2543     # value for INSTALL within a source directory, because that will
2544     # break other packages using the cache if that directory is
2545     # removed, or if the value is a relative name.
2546     INSTALL=$ac_install_sh
2547   fi
2548 fi
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2550 $as_echo "$INSTALL" >&6; }
2551
2552 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2553 # It thinks the first close brace ends the variable substitution.
2554 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2555
2556 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2557
2558 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2559
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2561 $as_echo_n "checking whether build environment is sane... " >&6; }
2562 # Just in case
2563 sleep 1
2564 echo timestamp > conftest.file
2565 # Reject unsafe characters in $srcdir or the absolute working directory
2566 # name.  Accept space and tab only in the latter.
2567 am_lf='
2568 '
2569 case `pwd` in
2570   *[\\\"\#\$\&\'\`$am_lf]*)
2571     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2572 esac
2573 case $srcdir in
2574   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2575     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2576 esac
2577
2578 # Do `set' in a subshell so we don't clobber the current shell's
2579 # arguments.  Must try -L first in case configure is actually a
2580 # symlink; some systems play weird games with the mod time of symlinks
2581 # (eg FreeBSD returns the mod time of the symlink's containing
2582 # directory).
2583 if (
2584    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2585    if test "$*" = "X"; then
2586       # -L didn't work.
2587       set X `ls -t "$srcdir/configure" conftest.file`
2588    fi
2589    rm -f conftest.file
2590    if test "$*" != "X $srcdir/configure conftest.file" \
2591       && test "$*" != "X conftest.file $srcdir/configure"; then
2592
2593       # If neither matched, then we have a broken ls.  This can happen
2594       # if, for instance, CONFIG_SHELL is bash and it inherits a
2595       # broken ls alias from the environment.  This has actually
2596       # happened.  Such a system could not be considered "sane".
2597       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2598 alias in your environment" "$LINENO" 5
2599    fi
2600
2601    test "$2" = conftest.file
2602    )
2603 then
2604    # Ok.
2605    :
2606 else
2607    as_fn_error $? "newly created file is older than distributed files!
2608 Check your system clock" "$LINENO" 5
2609 fi
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2611 $as_echo "yes" >&6; }
2612 test "$program_prefix" != NONE &&
2613   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2614 # Use a double $ so make ignores it.
2615 test "$program_suffix" != NONE &&
2616   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2617 # Double any \ or $.
2618 # By default was `s,x,x', remove it if useless.
2619 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2620 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2621
2622 # expand $ac_aux_dir to an absolute path
2623 am_aux_dir=`cd $ac_aux_dir && pwd`
2624
2625 if test x"${MISSING+set}" != xset; then
2626   case $am_aux_dir in
2627   *\ * | *\     *)
2628     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2629   *)
2630     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2631   esac
2632 fi
2633 # Use eval to expand $SHELL
2634 if eval "$MISSING --run true"; then
2635   am_missing_run="$MISSING --run "
2636 else
2637   am_missing_run=
2638   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2639 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2640 fi
2641
2642 if test x"${install_sh}" != xset; then
2643   case $am_aux_dir in
2644   *\ * | *\     *)
2645     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2646   *)
2647     install_sh="\${SHELL} $am_aux_dir/install-sh"
2648   esac
2649 fi
2650
2651 # Installed binaries are usually stripped using `strip' when the user
2652 # run `make install-strip'.  However `strip' might not be the right
2653 # tool to use in cross-compilation environments, therefore Automake
2654 # will honor the `STRIP' environment variable to overrule this program.
2655 if test "$cross_compiling" != no; then
2656   if test -n "$ac_tool_prefix"; then
2657   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2658 set dummy ${ac_tool_prefix}strip; ac_word=$2
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2660 $as_echo_n "checking for $ac_word... " >&6; }
2661 if ${ac_cv_prog_STRIP+:} false; then :
2662   $as_echo_n "(cached) " >&6
2663 else
2664   if test -n "$STRIP"; then
2665   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2666 else
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668 for as_dir in $PATH
2669 do
2670   IFS=$as_save_IFS
2671   test -z "$as_dir" && as_dir=.
2672     for ac_exec_ext in '' $ac_executable_extensions; do
2673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2674     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2675     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2676     break 2
2677   fi
2678 done
2679   done
2680 IFS=$as_save_IFS
2681
2682 fi
2683 fi
2684 STRIP=$ac_cv_prog_STRIP
2685 if test -n "$STRIP"; then
2686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2687 $as_echo "$STRIP" >&6; }
2688 else
2689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2690 $as_echo "no" >&6; }
2691 fi
2692
2693
2694 fi
2695 if test -z "$ac_cv_prog_STRIP"; then
2696   ac_ct_STRIP=$STRIP
2697   # Extract the first word of "strip", so it can be a program name with args.
2698 set dummy strip; ac_word=$2
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2700 $as_echo_n "checking for $ac_word... " >&6; }
2701 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2702   $as_echo_n "(cached) " >&6
2703 else
2704   if test -n "$ac_ct_STRIP"; then
2705   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2706 else
2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708 for as_dir in $PATH
2709 do
2710   IFS=$as_save_IFS
2711   test -z "$as_dir" && as_dir=.
2712     for ac_exec_ext in '' $ac_executable_extensions; do
2713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2714     ac_cv_prog_ac_ct_STRIP="strip"
2715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2716     break 2
2717   fi
2718 done
2719   done
2720 IFS=$as_save_IFS
2721
2722 fi
2723 fi
2724 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2725 if test -n "$ac_ct_STRIP"; then
2726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2727 $as_echo "$ac_ct_STRIP" >&6; }
2728 else
2729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2730 $as_echo "no" >&6; }
2731 fi
2732
2733   if test "x$ac_ct_STRIP" = x; then
2734     STRIP=":"
2735   else
2736     case $cross_compiling:$ac_tool_warned in
2737 yes:)
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2740 ac_tool_warned=yes ;;
2741 esac
2742     STRIP=$ac_ct_STRIP
2743   fi
2744 else
2745   STRIP="$ac_cv_prog_STRIP"
2746 fi
2747
2748 fi
2749 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2750
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2752 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2753 if test -z "$MKDIR_P"; then
2754   if ${ac_cv_path_mkdir+:} false; then :
2755   $as_echo_n "(cached) " >&6
2756 else
2757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2759 do
2760   IFS=$as_save_IFS
2761   test -z "$as_dir" && as_dir=.
2762     for ac_prog in mkdir gmkdir; do
2763          for ac_exec_ext in '' $ac_executable_extensions; do
2764            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2765            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2766              'mkdir (GNU coreutils) '* | \
2767              'mkdir (coreutils) '* | \
2768              'mkdir (fileutils) '4.1*)
2769                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2770                break 3;;
2771            esac
2772          done
2773        done
2774   done
2775 IFS=$as_save_IFS
2776
2777 fi
2778
2779   test -d ./--version && rmdir ./--version
2780   if test "${ac_cv_path_mkdir+set}" = set; then
2781     MKDIR_P="$ac_cv_path_mkdir -p"
2782   else
2783     # As a last resort, use the slow shell script.  Don't cache a
2784     # value for MKDIR_P within a source directory, because that will
2785     # break other packages using the cache if that directory is
2786     # removed, or if the value is a relative name.
2787     MKDIR_P="$ac_install_sh -d"
2788   fi
2789 fi
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2791 $as_echo "$MKDIR_P" >&6; }
2792
2793 mkdir_p="$MKDIR_P"
2794 case $mkdir_p in
2795   [\\/$]* | ?:[\\/]*) ;;
2796   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2797 esac
2798
2799 for ac_prog in gawk mawk nawk awk
2800 do
2801   # Extract the first word of "$ac_prog", so it can be a program name with args.
2802 set dummy $ac_prog; ac_word=$2
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2804 $as_echo_n "checking for $ac_word... " >&6; }
2805 if ${ac_cv_prog_AWK+:} false; then :
2806   $as_echo_n "(cached) " >&6
2807 else
2808   if test -n "$AWK"; then
2809   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2810 else
2811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 for as_dir in $PATH
2813 do
2814   IFS=$as_save_IFS
2815   test -z "$as_dir" && as_dir=.
2816     for ac_exec_ext in '' $ac_executable_extensions; do
2817   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2818     ac_cv_prog_AWK="$ac_prog"
2819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2820     break 2
2821   fi
2822 done
2823   done
2824 IFS=$as_save_IFS
2825
2826 fi
2827 fi
2828 AWK=$ac_cv_prog_AWK
2829 if test -n "$AWK"; then
2830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2831 $as_echo "$AWK" >&6; }
2832 else
2833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834 $as_echo "no" >&6; }
2835 fi
2836
2837
2838   test -n "$AWK" && break
2839 done
2840
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2842 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2843 set x ${MAKE-make}
2844 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2845 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2846   $as_echo_n "(cached) " >&6
2847 else
2848   cat >conftest.make <<\_ACEOF
2849 SHELL = /bin/sh
2850 all:
2851         @echo '@@@%%%=$(MAKE)=@@@%%%'
2852 _ACEOF
2853 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2854 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2855   *@@@%%%=?*=@@@%%%*)
2856     eval ac_cv_prog_make_${ac_make}_set=yes;;
2857   *)
2858     eval ac_cv_prog_make_${ac_make}_set=no;;
2859 esac
2860 rm -f conftest.make
2861 fi
2862 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2864 $as_echo "yes" >&6; }
2865   SET_MAKE=
2866 else
2867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868 $as_echo "no" >&6; }
2869   SET_MAKE="MAKE=${MAKE-make}"
2870 fi
2871
2872 rm -rf .tst 2>/dev/null
2873 mkdir .tst 2>/dev/null
2874 if test -d .tst; then
2875   am__leading_dot=.
2876 else
2877   am__leading_dot=_
2878 fi
2879 rmdir .tst 2>/dev/null
2880
2881 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2882   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2883   # is not polluted with repeated "-I."
2884   am__isrc=' -I$(srcdir)'
2885   # test to see if srcdir already configured
2886   if test -f $srcdir/config.status; then
2887     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2888   fi
2889 fi
2890
2891 # test whether we have cygpath
2892 if test -z "$CYGPATH_W"; then
2893   if (cygpath --version) >/dev/null 2>/dev/null; then
2894     CYGPATH_W='cygpath -w'
2895   else
2896     CYGPATH_W=echo
2897   fi
2898 fi
2899
2900
2901 # Define the identity of the package.
2902  PACKAGE='libgphoto2_port'
2903  VERSION='0.8.0'
2904
2905
2906 cat >>confdefs.h <<_ACEOF
2907 @%:@define PACKAGE "$PACKAGE"
2908 _ACEOF
2909
2910  
2911 cat >>confdefs.h <<_ACEOF
2912 @%:@define VERSION "$VERSION"
2913 _ACEOF
2914
2915 # Some tools Automake needs.
2916
2917 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2918
2919
2920 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2921
2922
2923 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2924
2925
2926 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2927
2928
2929 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2930
2931 # We need awk for the "check" target.  The system "awk" is bad on
2932 # some platforms.
2933 # Always define AMTAR for backward compatibility.
2934
2935 AMTAR=${AMTAR-"${am_missing_run}tar"}
2936
2937 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2938
2939
2940
2941
2942
2943
2944
2945 LIBGPHOTO2_PORT_AGE=8
2946
2947 LIBGPHOTO2_PORT_REVISION=0
2948
2949 LIBGPHOTO2_PORT_CURRENT=8
2950
2951 LIBGPHOTO2_PORT_CURRENT_MIN=`expr $LIBGPHOTO2_PORT_CURRENT - $LIBGPHOTO2_PORT_AGE`
2952
2953 LIBGPHOTO2_PORT_VERSION_INFO=$LIBGPHOTO2_PORT_CURRENT:$LIBGPHOTO2_PORT_REVISION:$LIBGPHOTO2_PORT_AGE
2954
2955
2956
2957 ac_ext=c
2958 ac_cpp='$CPP $CPPFLAGS'
2959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2962 if test -n "$ac_tool_prefix"; then
2963   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2964 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2966 $as_echo_n "checking for $ac_word... " >&6; }
2967 if ${ac_cv_prog_CC+:} false; then :
2968   $as_echo_n "(cached) " >&6
2969 else
2970   if test -n "$CC"; then
2971   ac_cv_prog_CC="$CC" # Let the user override the test.
2972 else
2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974 for as_dir in $PATH
2975 do
2976   IFS=$as_save_IFS
2977   test -z "$as_dir" && as_dir=.
2978     for ac_exec_ext in '' $ac_executable_extensions; do
2979   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2980     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2982     break 2
2983   fi
2984 done
2985   done
2986 IFS=$as_save_IFS
2987
2988 fi
2989 fi
2990 CC=$ac_cv_prog_CC
2991 if test -n "$CC"; then
2992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2993 $as_echo "$CC" >&6; }
2994 else
2995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2996 $as_echo "no" >&6; }
2997 fi
2998
2999
3000 fi
3001 if test -z "$ac_cv_prog_CC"; then
3002   ac_ct_CC=$CC
3003   # Extract the first word of "gcc", so it can be a program name with args.
3004 set dummy gcc; ac_word=$2
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3006 $as_echo_n "checking for $ac_word... " >&6; }
3007 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3008   $as_echo_n "(cached) " >&6
3009 else
3010   if test -n "$ac_ct_CC"; then
3011   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3012 else
3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014 for as_dir in $PATH
3015 do
3016   IFS=$as_save_IFS
3017   test -z "$as_dir" && as_dir=.
3018     for ac_exec_ext in '' $ac_executable_extensions; do
3019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3020     ac_cv_prog_ac_ct_CC="gcc"
3021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3022     break 2
3023   fi
3024 done
3025   done
3026 IFS=$as_save_IFS
3027
3028 fi
3029 fi
3030 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3031 if test -n "$ac_ct_CC"; then
3032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3033 $as_echo "$ac_ct_CC" >&6; }
3034 else
3035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036 $as_echo "no" >&6; }
3037 fi
3038
3039   if test "x$ac_ct_CC" = x; then
3040     CC=""
3041   else
3042     case $cross_compiling:$ac_tool_warned in
3043 yes:)
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3046 ac_tool_warned=yes ;;
3047 esac
3048     CC=$ac_ct_CC
3049   fi
3050 else
3051   CC="$ac_cv_prog_CC"
3052 fi
3053
3054 if test -z "$CC"; then
3055           if test -n "$ac_tool_prefix"; then
3056     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3057 set dummy ${ac_tool_prefix}cc; ac_word=$2
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3059 $as_echo_n "checking for $ac_word... " >&6; }
3060 if ${ac_cv_prog_CC+:} false; then :
3061   $as_echo_n "(cached) " >&6
3062 else
3063   if test -n "$CC"; then
3064   ac_cv_prog_CC="$CC" # Let the user override the test.
3065 else
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067 for as_dir in $PATH
3068 do
3069   IFS=$as_save_IFS
3070   test -z "$as_dir" && as_dir=.
3071     for ac_exec_ext in '' $ac_executable_extensions; do
3072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3073     ac_cv_prog_CC="${ac_tool_prefix}cc"
3074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3075     break 2
3076   fi
3077 done
3078   done
3079 IFS=$as_save_IFS
3080
3081 fi
3082 fi
3083 CC=$ac_cv_prog_CC
3084 if test -n "$CC"; then
3085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3086 $as_echo "$CC" >&6; }
3087 else
3088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3089 $as_echo "no" >&6; }
3090 fi
3091
3092
3093   fi
3094 fi
3095 if test -z "$CC"; then
3096   # Extract the first word of "cc", so it can be a program name with args.
3097 set dummy cc; ac_word=$2
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3099 $as_echo_n "checking for $ac_word... " >&6; }
3100 if ${ac_cv_prog_CC+:} false; then :
3101   $as_echo_n "(cached) " >&6
3102 else
3103   if test -n "$CC"; then
3104   ac_cv_prog_CC="$CC" # Let the user override the test.
3105 else
3106   ac_prog_rejected=no
3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108 for as_dir in $PATH
3109 do
3110   IFS=$as_save_IFS
3111   test -z "$as_dir" && as_dir=.
3112     for ac_exec_ext in '' $ac_executable_extensions; do
3113   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3114     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3115        ac_prog_rejected=yes
3116        continue
3117      fi
3118     ac_cv_prog_CC="cc"
3119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3120     break 2
3121   fi
3122 done
3123   done
3124 IFS=$as_save_IFS
3125
3126 if test $ac_prog_rejected = yes; then
3127   # We found a bogon in the path, so make sure we never use it.
3128   set dummy $ac_cv_prog_CC
3129   shift
3130   if test $@%:@ != 0; then
3131     # We chose a different compiler from the bogus one.
3132     # However, it has the same basename, so the bogon will be chosen
3133     # first if we set CC to just the basename; use the full file name.
3134     shift
3135     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3136   fi
3137 fi
3138 fi
3139 fi
3140 CC=$ac_cv_prog_CC
3141 if test -n "$CC"; then
3142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3143 $as_echo "$CC" >&6; }
3144 else
3145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3146 $as_echo "no" >&6; }
3147 fi
3148
3149
3150 fi
3151 if test -z "$CC"; then
3152   if test -n "$ac_tool_prefix"; then
3153   for ac_prog in cl.exe
3154   do
3155     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3156 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3158 $as_echo_n "checking for $ac_word... " >&6; }
3159 if ${ac_cv_prog_CC+:} false; then :
3160   $as_echo_n "(cached) " >&6
3161 else
3162   if test -n "$CC"; then
3163   ac_cv_prog_CC="$CC" # Let the user override the test.
3164 else
3165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166 for as_dir in $PATH
3167 do
3168   IFS=$as_save_IFS
3169   test -z "$as_dir" && as_dir=.
3170     for ac_exec_ext in '' $ac_executable_extensions; do
3171   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3172     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3173     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3174     break 2
3175   fi
3176 done
3177   done
3178 IFS=$as_save_IFS
3179
3180 fi
3181 fi
3182 CC=$ac_cv_prog_CC
3183 if test -n "$CC"; then
3184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3185 $as_echo "$CC" >&6; }
3186 else
3187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188 $as_echo "no" >&6; }
3189 fi
3190
3191
3192     test -n "$CC" && break
3193   done
3194 fi
3195 if test -z "$CC"; then
3196   ac_ct_CC=$CC
3197   for ac_prog in cl.exe
3198 do
3199   # Extract the first word of "$ac_prog", so it can be a program name with args.
3200 set dummy $ac_prog; ac_word=$2
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3202 $as_echo_n "checking for $ac_word... " >&6; }
3203 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3204   $as_echo_n "(cached) " >&6
3205 else
3206   if test -n "$ac_ct_CC"; then
3207   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3208 else
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 for as_dir in $PATH
3211 do
3212   IFS=$as_save_IFS
3213   test -z "$as_dir" && as_dir=.
3214     for ac_exec_ext in '' $ac_executable_extensions; do
3215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3216     ac_cv_prog_ac_ct_CC="$ac_prog"
3217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3218     break 2
3219   fi
3220 done
3221   done
3222 IFS=$as_save_IFS
3223
3224 fi
3225 fi
3226 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3227 if test -n "$ac_ct_CC"; then
3228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3229 $as_echo "$ac_ct_CC" >&6; }
3230 else
3231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232 $as_echo "no" >&6; }
3233 fi
3234
3235
3236   test -n "$ac_ct_CC" && break
3237 done
3238
3239   if test "x$ac_ct_CC" = x; then
3240     CC=""
3241   else
3242     case $cross_compiling:$ac_tool_warned in
3243 yes:)
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3246 ac_tool_warned=yes ;;
3247 esac
3248     CC=$ac_ct_CC
3249   fi
3250 fi
3251
3252 fi
3253
3254
3255 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3257 as_fn_error $? "no acceptable C compiler found in \$PATH
3258 See \`config.log' for more details" "$LINENO" 5; }
3259
3260 # Provide some information about the compiler.
3261 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3262 set X $ac_compile
3263 ac_compiler=$2
3264 for ac_option in --version -v -V -qversion; do
3265   { { ac_try="$ac_compiler $ac_option >&5"
3266 case "(($ac_try" in
3267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268   *) ac_try_echo=$ac_try;;
3269 esac
3270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3271 $as_echo "$ac_try_echo"; } >&5
3272   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3273   ac_status=$?
3274   if test -s conftest.err; then
3275     sed '10a\
3276 ... rest of stderr output deleted ...
3277          10q' conftest.err >conftest.er1
3278     cat conftest.er1 >&5
3279   fi
3280   rm -f conftest.er1 conftest.err
3281   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3282   test $ac_status = 0; }
3283 done
3284
3285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3286 /* end confdefs.h.  */
3287
3288 int
3289 main ()
3290 {
3291
3292   ;
3293   return 0;
3294 }
3295 _ACEOF
3296 ac_clean_files_save=$ac_clean_files
3297 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3298 # Try to create an executable without -o first, disregard a.out.
3299 # It will help us diagnose broken compilers, and finding out an intuition
3300 # of exeext.
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3302 $as_echo_n "checking whether the C compiler works... " >&6; }
3303 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3304
3305 # The possible output files:
3306 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3307
3308 ac_rmfiles=
3309 for ac_file in $ac_files
3310 do
3311   case $ac_file in
3312     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3313     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3314   esac
3315 done
3316 rm -f $ac_rmfiles
3317
3318 if { { ac_try="$ac_link_default"
3319 case "(($ac_try" in
3320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321   *) ac_try_echo=$ac_try;;
3322 esac
3323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3324 $as_echo "$ac_try_echo"; } >&5
3325   (eval "$ac_link_default") 2>&5
3326   ac_status=$?
3327   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3328   test $ac_status = 0; }; then :
3329   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3330 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3331 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3332 # so that the user can short-circuit this test for compilers unknown to
3333 # Autoconf.
3334 for ac_file in $ac_files ''
3335 do
3336   test -f "$ac_file" || continue
3337   case $ac_file in
3338     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3339         ;;
3340     [ab].out )
3341         # We found the default executable, but exeext='' is most
3342         # certainly right.
3343         break;;
3344     *.* )
3345         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3346         then :; else
3347            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3348         fi
3349         # We set ac_cv_exeext here because the later test for it is not
3350         # safe: cross compilers may not add the suffix if given an `-o'
3351         # argument, so we may need to know it at that point already.
3352         # Even if this section looks crufty: it has the advantage of
3353         # actually working.
3354         break;;
3355     * )
3356         break;;
3357   esac
3358 done
3359 test "$ac_cv_exeext" = no && ac_cv_exeext=
3360
3361 else
3362   ac_file=''
3363 fi
3364 if test -z "$ac_file"; then :
3365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366 $as_echo "no" >&6; }
3367 $as_echo "$as_me: failed program was:" >&5
3368 sed 's/^/| /' conftest.$ac_ext >&5
3369
3370 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3372 as_fn_error 77 "C compiler cannot create executables
3373 See \`config.log' for more details" "$LINENO" 5; }
3374 else
3375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3376 $as_echo "yes" >&6; }
3377 fi
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3379 $as_echo_n "checking for C compiler default output file name... " >&6; }
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3381 $as_echo "$ac_file" >&6; }
3382 ac_exeext=$ac_cv_exeext
3383
3384 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3385 ac_clean_files=$ac_clean_files_save
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3387 $as_echo_n "checking for suffix of executables... " >&6; }
3388 if { { ac_try="$ac_link"
3389 case "(($ac_try" in
3390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391   *) ac_try_echo=$ac_try;;
3392 esac
3393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3394 $as_echo "$ac_try_echo"; } >&5
3395   (eval "$ac_link") 2>&5
3396   ac_status=$?
3397   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398   test $ac_status = 0; }; then :
3399   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3400 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3401 # work properly (i.e., refer to `conftest.exe'), while it won't with
3402 # `rm'.
3403 for ac_file in conftest.exe conftest conftest.*; do
3404   test -f "$ac_file" || continue
3405   case $ac_file in
3406     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3407     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3408           break;;
3409     * ) break;;
3410   esac
3411 done
3412 else
3413   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3415 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3416 See \`config.log' for more details" "$LINENO" 5; }
3417 fi
3418 rm -f conftest conftest$ac_cv_exeext
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3420 $as_echo "$ac_cv_exeext" >&6; }
3421
3422 rm -f conftest.$ac_ext
3423 EXEEXT=$ac_cv_exeext
3424 ac_exeext=$EXEEXT
3425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426 /* end confdefs.h.  */
3427 @%:@include <stdio.h>
3428 int
3429 main ()
3430 {
3431 FILE *f = fopen ("conftest.out", "w");
3432  return ferror (f) || fclose (f) != 0;
3433
3434   ;
3435   return 0;
3436 }
3437 _ACEOF
3438 ac_clean_files="$ac_clean_files conftest.out"
3439 # Check that the compiler produces executables we can run.  If not, either
3440 # the compiler is broken, or we cross compile.
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3442 $as_echo_n "checking whether we are cross compiling... " >&6; }
3443 if test "$cross_compiling" != yes; then
3444   { { ac_try="$ac_link"
3445 case "(($ac_try" in
3446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447   *) ac_try_echo=$ac_try;;
3448 esac
3449 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3450 $as_echo "$ac_try_echo"; } >&5
3451   (eval "$ac_link") 2>&5
3452   ac_status=$?
3453   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3454   test $ac_status = 0; }
3455   if { ac_try='./conftest$ac_cv_exeext'
3456   { { case "(($ac_try" in
3457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458   *) ac_try_echo=$ac_try;;
3459 esac
3460 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3461 $as_echo "$ac_try_echo"; } >&5
3462   (eval "$ac_try") 2>&5
3463   ac_status=$?
3464   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3465   test $ac_status = 0; }; }; then
3466     cross_compiling=no
3467   else
3468     if test "$cross_compiling" = maybe; then
3469         cross_compiling=yes
3470     else
3471         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3473 as_fn_error $? "cannot run C compiled programs.
3474 If you meant to cross compile, use \`--host'.
3475 See \`config.log' for more details" "$LINENO" 5; }
3476     fi
3477   fi
3478 fi
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3480 $as_echo "$cross_compiling" >&6; }
3481
3482 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3483 ac_clean_files=$ac_clean_files_save
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3485 $as_echo_n "checking for suffix of object files... " >&6; }
3486 if ${ac_cv_objext+:} false; then :
3487   $as_echo_n "(cached) " >&6
3488 else
3489   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490 /* end confdefs.h.  */
3491
3492 int
3493 main ()
3494 {
3495
3496   ;
3497   return 0;
3498 }
3499 _ACEOF
3500 rm -f conftest.o conftest.obj
3501 if { { ac_try="$ac_compile"
3502 case "(($ac_try" in
3503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504   *) ac_try_echo=$ac_try;;
3505 esac
3506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3507 $as_echo "$ac_try_echo"; } >&5
3508   (eval "$ac_compile") 2>&5
3509   ac_status=$?
3510   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3511   test $ac_status = 0; }; then :
3512   for ac_file in conftest.o conftest.obj conftest.*; do
3513   test -f "$ac_file" || continue;
3514   case $ac_file in
3515     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3516     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3517        break;;
3518   esac
3519 done
3520 else
3521   $as_echo "$as_me: failed program was:" >&5
3522 sed 's/^/| /' conftest.$ac_ext >&5
3523
3524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3526 as_fn_error $? "cannot compute suffix of object files: cannot compile
3527 See \`config.log' for more details" "$LINENO" 5; }
3528 fi
3529 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3530 fi
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3532 $as_echo "$ac_cv_objext" >&6; }
3533 OBJEXT=$ac_cv_objext
3534 ac_objext=$OBJEXT
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3536 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3537 if ${ac_cv_c_compiler_gnu+:} false; then :
3538   $as_echo_n "(cached) " >&6
3539 else
3540   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541 /* end confdefs.h.  */
3542
3543 int
3544 main ()
3545 {
3546 #ifndef __GNUC__
3547        choke me
3548 #endif
3549
3550   ;
3551   return 0;
3552 }
3553 _ACEOF
3554 if ac_fn_c_try_compile "$LINENO"; then :
3555   ac_compiler_gnu=yes
3556 else
3557   ac_compiler_gnu=no
3558 fi
3559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3560 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3561
3562 fi
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3564 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3565 if test $ac_compiler_gnu = yes; then
3566   GCC=yes
3567 else
3568   GCC=
3569 fi
3570 ac_test_CFLAGS=${CFLAGS+set}
3571 ac_save_CFLAGS=$CFLAGS
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3573 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3574 if ${ac_cv_prog_cc_g+:} false; then :
3575   $as_echo_n "(cached) " >&6
3576 else
3577   ac_save_c_werror_flag=$ac_c_werror_flag
3578    ac_c_werror_flag=yes
3579    ac_cv_prog_cc_g=no
3580    CFLAGS="-g"
3581    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582 /* end confdefs.h.  */
3583
3584 int
3585 main ()
3586 {
3587
3588   ;
3589   return 0;
3590 }
3591 _ACEOF
3592 if ac_fn_c_try_compile "$LINENO"; then :
3593   ac_cv_prog_cc_g=yes
3594 else
3595   CFLAGS=""
3596       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597 /* end confdefs.h.  */
3598
3599 int
3600 main ()
3601 {
3602
3603   ;
3604   return 0;
3605 }
3606 _ACEOF
3607 if ac_fn_c_try_compile "$LINENO"; then :
3608   
3609 else
3610   ac_c_werror_flag=$ac_save_c_werror_flag
3611          CFLAGS="-g"
3612          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613 /* end confdefs.h.  */
3614
3615 int
3616 main ()
3617 {
3618
3619   ;
3620   return 0;
3621 }
3622 _ACEOF
3623 if ac_fn_c_try_compile "$LINENO"; then :
3624   ac_cv_prog_cc_g=yes
3625 fi
3626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3627 fi
3628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3629 fi
3630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3631    ac_c_werror_flag=$ac_save_c_werror_flag
3632 fi
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3634 $as_echo "$ac_cv_prog_cc_g" >&6; }
3635 if test "$ac_test_CFLAGS" = set; then
3636   CFLAGS=$ac_save_CFLAGS
3637 elif test $ac_cv_prog_cc_g = yes; then
3638   if test "$GCC" = yes; then
3639     CFLAGS="-g -O2"
3640   else
3641     CFLAGS="-g"
3642   fi
3643 else
3644   if test "$GCC" = yes; then
3645     CFLAGS="-O2"
3646   else
3647     CFLAGS=
3648   fi
3649 fi
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3651 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3652 if ${ac_cv_prog_cc_c89+:} false; then :
3653   $as_echo_n "(cached) " >&6
3654 else
3655   ac_cv_prog_cc_c89=no
3656 ac_save_CC=$CC
3657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3658 /* end confdefs.h.  */
3659 #include <stdarg.h>
3660 #include <stdio.h>
3661 #include <sys/types.h>
3662 #include <sys/stat.h>
3663 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3664 struct buf { int x; };
3665 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3666 static char *e (p, i)
3667      char **p;
3668      int i;
3669 {
3670   return p[i];
3671 }
3672 static char *f (char * (*g) (char **, int), char **p, ...)
3673 {
3674   char *s;
3675   va_list v;
3676   va_start (v,p);
3677   s = g (p, va_arg (v,int));
3678   va_end (v);
3679   return s;
3680 }
3681
3682 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3683    function prototypes and stuff, but not '\xHH' hex character constants.
3684    These don't provoke an error unfortunately, instead are silently treated
3685    as 'x'.  The following induces an error, until -std is added to get
3686    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3687    array size at least.  It's necessary to write '\x00'==0 to get something
3688    that's true only with -std.  */
3689 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3690
3691 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3692    inside strings and character constants.  */
3693 #define FOO(x) 'x'
3694 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3695
3696 int test (int i, double x);
3697 struct s1 {int (*f) (int a);};
3698 struct s2 {int (*f) (double a);};
3699 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3700 int argc;
3701 char **argv;
3702 int
3703 main ()
3704 {
3705 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3706   ;
3707   return 0;
3708 }
3709 _ACEOF
3710 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3711         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3712 do
3713   CC="$ac_save_CC $ac_arg"
3714   if ac_fn_c_try_compile "$LINENO"; then :
3715   ac_cv_prog_cc_c89=$ac_arg
3716 fi
3717 rm -f core conftest.err conftest.$ac_objext
3718   test "x$ac_cv_prog_cc_c89" != "xno" && break
3719 done
3720 rm -f conftest.$ac_ext
3721 CC=$ac_save_CC
3722
3723 fi
3724 # AC_CACHE_VAL
3725 case "x$ac_cv_prog_cc_c89" in
3726   x)
3727     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3728 $as_echo "none needed" >&6; } ;;
3729   xno)
3730     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3731 $as_echo "unsupported" >&6; } ;;
3732   *)
3733     CC="$CC $ac_cv_prog_cc_c89"
3734     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3735 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3736 esac
3737 if test "x$ac_cv_prog_cc_c89" != xno; then :
3738   
3739 fi
3740
3741 ac_ext=c
3742 ac_cpp='$CPP $CPPFLAGS'
3743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3746 DEPDIR="${am__leading_dot}deps"
3747
3748 ac_config_commands="$ac_config_commands depfiles"
3749
3750
3751 am_make=${MAKE-make}
3752 cat > confinc << 'END'
3753 am__doit:
3754         @echo this is the am__doit target
3755 .PHONY: am__doit
3756 END
3757 # If we don't find an include directive, just comment out the code.
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3759 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3760 am__include="#"
3761 am__quote=
3762 _am_result=none
3763 # First try GNU make style include.
3764 echo "include confinc" > confmf
3765 # Ignore all kinds of additional output from `make'.
3766 case `$am_make -s -f confmf 2> /dev/null` in #(
3767 *the\ am__doit\ target*)
3768   am__include=include
3769   am__quote=
3770   _am_result=GNU
3771   ;;
3772 esac
3773 # Now try BSD make style include.
3774 if test "$am__include" = "#"; then
3775    echo '.include "confinc"' > confmf
3776    case `$am_make -s -f confmf 2> /dev/null` in #(
3777    *the\ am__doit\ target*)
3778      am__include=.include
3779      am__quote="\""
3780      _am_result=BSD
3781      ;;
3782    esac
3783 fi
3784
3785
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3787 $as_echo "$_am_result" >&6; }
3788 rm -f confinc confmf
3789
3790 @%:@ Check whether --enable-dependency-tracking was given.
3791 if test "${enable_dependency_tracking+set}" = set; then :
3792   enableval=$enable_dependency_tracking; 
3793 fi
3794
3795 if test "x$enable_dependency_tracking" != xno; then
3796   am_depcomp="$ac_aux_dir/depcomp"
3797   AMDEPBACKSLASH='\'
3798 fi
3799  if test "x$enable_dependency_tracking" != xno; then
3800   AMDEP_TRUE=
3801   AMDEP_FALSE='#'
3802 else
3803   AMDEP_TRUE='#'
3804   AMDEP_FALSE=
3805 fi
3806
3807
3808
3809 depcc="$CC"   am_compiler_list=
3810
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3812 $as_echo_n "checking dependency style of $depcc... " >&6; }
3813 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3814   $as_echo_n "(cached) " >&6
3815 else
3816   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3817   # We make a subdir and do the tests there.  Otherwise we can end up
3818   # making bogus files that we don't know about and never remove.  For
3819   # instance it was reported that on HP-UX the gcc test will end up
3820   # making a dummy file named `D' -- because `-MD' means `put the output
3821   # in D'.
3822   mkdir conftest.dir
3823   # Copy depcomp to subdir because otherwise we won't find it if we're
3824   # using a relative directory.
3825   cp "$am_depcomp" conftest.dir
3826   cd conftest.dir
3827   # We will build objects and dependencies in a subdirectory because
3828   # it helps to detect inapplicable dependency modes.  For instance
3829   # both Tru64's cc and ICC support -MD to output dependencies as a
3830   # side effect of compilation, but ICC will put the dependencies in
3831   # the current directory while Tru64 will put them in the object
3832   # directory.
3833   mkdir sub
3834
3835   am_cv_CC_dependencies_compiler_type=none
3836   if test "$am_compiler_list" = ""; then
3837      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3838   fi
3839   am__universal=false
3840   case " $depcc " in #(
3841      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3842      esac
3843
3844   for depmode in $am_compiler_list; do
3845     # Setup a source with many dependencies, because some compilers
3846     # like to wrap large dependency lists on column 80 (with \), and
3847     # we should not choose a depcomp mode which is confused by this.
3848     #
3849     # We need to recreate these files for each test, as the compiler may
3850     # overwrite some of them when testing with obscure command lines.
3851     # This happens at least with the AIX C compiler.
3852     : > sub/conftest.c
3853     for i in 1 2 3 4 5 6; do
3854       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3855       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3856       # Solaris 8's {/usr,}/bin/sh.
3857       touch sub/conftst$i.h
3858     done
3859     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3860
3861     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3862     # mode.  It turns out that the SunPro C++ compiler does not properly
3863     # handle `-M -o', and we need to detect this.  Also, some Intel
3864     # versions had trouble with output in subdirs
3865     am__obj=sub/conftest.${OBJEXT-o}
3866     am__minus_obj="-o $am__obj"
3867     case $depmode in
3868     gcc)
3869       # This depmode causes a compiler race in universal mode.
3870       test "$am__universal" = false || continue
3871       ;;
3872     nosideeffect)
3873       # after this tag, mechanisms are not by side-effect, so they'll
3874       # only be used when explicitly requested
3875       if test "x$enable_dependency_tracking" = xyes; then
3876         continue
3877       else
3878         break
3879       fi
3880       ;;
3881     msvisualcpp | msvcmsys)
3882       # This compiler won't grok `-c -o', but also, the minuso test has
3883       # not run yet.  These depmodes are late enough in the game, and
3884       # so weak that their functioning should not be impacted.
3885       am__obj=conftest.${OBJEXT-o}
3886       am__minus_obj=
3887       ;;
3888     none) break ;;
3889     esac
3890     if depmode=$depmode \
3891        source=sub/conftest.c object=$am__obj \
3892        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3893        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3894          >/dev/null 2>conftest.err &&
3895        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3896        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3897        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3898        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3899       # icc doesn't choke on unknown options, it will just issue warnings
3900       # or remarks (even with -Werror).  So we grep stderr for any message
3901       # that says an option was ignored or not supported.
3902       # When given -MP, icc 7.0 and 7.1 complain thusly:
3903       #   icc: Command line warning: ignoring option '-M'; no argument required
3904       # The diagnosis changed in icc 8.0:
3905       #   icc: Command line remark: option '-MP' not supported
3906       if (grep 'ignoring option' conftest.err ||
3907           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3908         am_cv_CC_dependencies_compiler_type=$depmode
3909         break
3910       fi
3911     fi
3912   done
3913
3914   cd ..
3915   rm -rf conftest.dir
3916 else
3917   am_cv_CC_dependencies_compiler_type=none
3918 fi
3919
3920 fi
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3922 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3923 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3924
3925  if 
3926   test "x$enable_dependency_tracking" != xno \
3927   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3928   am__fastdepCC_TRUE=
3929   am__fastdepCC_FALSE='#'
3930 else
3931   am__fastdepCC_TRUE='#'
3932   am__fastdepCC_FALSE=
3933 fi
3934
3935
3936 ac_ext=c
3937 ac_cpp='$CPP $CPPFLAGS'
3938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3942 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3943 # On Suns, sometimes $CPP names a directory.
3944 if test -n "$CPP" && test -d "$CPP"; then
3945   CPP=
3946 fi
3947 if test -z "$CPP"; then
3948   if ${ac_cv_prog_CPP+:} false; then :
3949   $as_echo_n "(cached) " >&6
3950 else
3951       # Double quotes because CPP needs to be expanded
3952     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3953     do
3954       ac_preproc_ok=false
3955 for ac_c_preproc_warn_flag in '' yes
3956 do
3957   # Use a header file that comes with gcc, so configuring glibc
3958   # with a fresh cross-compiler works.
3959   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3960   # <limits.h> exists even on freestanding compilers.
3961   # On the NeXT, cc -E runs the code through the compiler's parser,
3962   # not just through cpp. "Syntax error" is here to catch this case.
3963   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964 /* end confdefs.h.  */
3965 @%:@ifdef __STDC__
3966 @%:@ include <limits.h>
3967 @%:@else
3968 @%:@ include <assert.h>
3969 @%:@endif
3970                      Syntax error
3971 _ACEOF
3972 if ac_fn_c_try_cpp "$LINENO"; then :
3973   
3974 else
3975   # Broken: fails on valid input.
3976 continue
3977 fi
3978 rm -f conftest.err conftest.i conftest.$ac_ext
3979
3980   # OK, works on sane cases.  Now check whether nonexistent headers
3981   # can be detected and how.
3982   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983 /* end confdefs.h.  */
3984 @%:@include <ac_nonexistent.h>
3985 _ACEOF
3986 if ac_fn_c_try_cpp "$LINENO"; then :
3987   # Broken: success on invalid input.
3988 continue
3989 else
3990   # Passes both tests.
3991 ac_preproc_ok=:
3992 break
3993 fi
3994 rm -f conftest.err conftest.i conftest.$ac_ext
3995
3996 done
3997 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3998 rm -f conftest.i conftest.err conftest.$ac_ext
3999 if $ac_preproc_ok; then :
4000   break
4001 fi
4002
4003     done
4004     ac_cv_prog_CPP=$CPP
4005   
4006 fi
4007   CPP=$ac_cv_prog_CPP
4008 else
4009   ac_cv_prog_CPP=$CPP
4010 fi
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4012 $as_echo "$CPP" >&6; }
4013 ac_preproc_ok=false
4014 for ac_c_preproc_warn_flag in '' yes
4015 do
4016   # Use a header file that comes with gcc, so configuring glibc
4017   # with a fresh cross-compiler works.
4018   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4019   # <limits.h> exists even on freestanding compilers.
4020   # On the NeXT, cc -E runs the code through the compiler's parser,
4021   # not just through cpp. "Syntax error" is here to catch this case.
4022   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023 /* end confdefs.h.  */
4024 @%:@ifdef __STDC__
4025 @%:@ include <limits.h>
4026 @%:@else
4027 @%:@ include <assert.h>
4028 @%:@endif
4029                      Syntax error
4030 _ACEOF
4031 if ac_fn_c_try_cpp "$LINENO"; then :
4032   
4033 else
4034   # Broken: fails on valid input.
4035 continue
4036 fi
4037 rm -f conftest.err conftest.i conftest.$ac_ext
4038
4039   # OK, works on sane cases.  Now check whether nonexistent headers
4040   # can be detected and how.
4041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h.  */
4043 @%:@include <ac_nonexistent.h>
4044 _ACEOF
4045 if ac_fn_c_try_cpp "$LINENO"; then :
4046   # Broken: success on invalid input.
4047 continue
4048 else
4049   # Passes both tests.
4050 ac_preproc_ok=:
4051 break
4052 fi
4053 rm -f conftest.err conftest.i conftest.$ac_ext
4054
4055 done
4056 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4057 rm -f conftest.i conftest.err conftest.$ac_ext
4058 if $ac_preproc_ok; then :
4059   
4060 else
4061   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4063 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4064 See \`config.log' for more details" "$LINENO" 5; }
4065 fi
4066
4067 ac_ext=c
4068 ac_cpp='$CPP $CPPFLAGS'
4069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4072
4073
4074 if test "x$CC" != xcc; then
4075   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4076 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4077 else
4078   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4079 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4080 fi
4081 set dummy $CC; ac_cc=`$as_echo "$2" |
4082                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4083 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4084   $as_echo_n "(cached) " >&6
4085 else
4086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h.  */
4088
4089 int
4090 main ()
4091 {
4092
4093   ;
4094   return 0;
4095 }
4096 _ACEOF
4097 # Make sure it works both with $CC and with simple cc.
4098 # We do the test twice because some compilers refuse to overwrite an
4099 # existing .o file with -o, though they will create one.
4100 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4101 rm -f conftest2.*
4102 if { { case "(($ac_try" in
4103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4104   *) ac_try_echo=$ac_try;;
4105 esac
4106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4107 $as_echo "$ac_try_echo"; } >&5
4108   (eval "$ac_try") 2>&5
4109   ac_status=$?
4110   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4111   test $ac_status = 0; } &&
4112    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114   *) ac_try_echo=$ac_try;;
4115 esac
4116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4117 $as_echo "$ac_try_echo"; } >&5
4118   (eval "$ac_try") 2>&5
4119   ac_status=$?
4120   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4121   test $ac_status = 0; };
4122 then
4123   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4124   if test "x$CC" != xcc; then
4125     # Test first that cc exists at all.
4126     if { ac_try='cc -c conftest.$ac_ext >&5'
4127   { { case "(($ac_try" in
4128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129   *) ac_try_echo=$ac_try;;
4130 esac
4131 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4132 $as_echo "$ac_try_echo"; } >&5
4133   (eval "$ac_try") 2>&5
4134   ac_status=$?
4135   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4136   test $ac_status = 0; }; }; then
4137       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4138       rm -f conftest2.*
4139       if { { case "(($ac_try" in
4140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141   *) ac_try_echo=$ac_try;;
4142 esac
4143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4144 $as_echo "$ac_try_echo"; } >&5
4145   (eval "$ac_try") 2>&5
4146   ac_status=$?
4147   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4148   test $ac_status = 0; } &&
4149          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151   *) ac_try_echo=$ac_try;;
4152 esac
4153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4154 $as_echo "$ac_try_echo"; } >&5
4155   (eval "$ac_try") 2>&5
4156   ac_status=$?
4157   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4158   test $ac_status = 0; };
4159       then
4160         # cc works too.
4161         :
4162       else
4163         # cc exists but doesn't like -o.
4164         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4165       fi
4166     fi
4167   fi
4168 else
4169   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4170 fi
4171 rm -f core conftest*
4172
4173 fi
4174 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4176 $as_echo "yes" >&6; }
4177 else
4178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4179 $as_echo "no" >&6; }
4180   
4181 $as_echo "@%:@define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4182
4183 fi
4184
4185 # FIXME: we rely on the cache variable name because
4186 # there is no other way.
4187 set dummy $CC
4188 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4189 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4190 if test "$am_t" != yes; then
4191    # Losing compiler, so override with the script.
4192    # FIXME: It is wrong to rewrite CC.
4193    # But if we don't then we get into trouble of one sort or another.
4194    # A longer-term fix would be to have automake use am__CC in this case,
4195    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4196    CC="$am_aux_dir/compile $CC"
4197 fi
4198
4199
4200
4201 SED=${SED-sed}
4202
4203 @%:@ Check whether --enable-static was given.
4204 if test "${enable_static+set}" = set; then :
4205   enableval=$enable_static; p=${PACKAGE-default}
4206     case $enableval in
4207     yes) enable_static=yes ;;
4208     no) enable_static=no ;;
4209     *)
4210      enable_static=no
4211       # Look at the argument we got.  We use all the common list separators.
4212       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4213       for pkg in $enableval; do
4214         IFS="$lt_save_ifs"
4215         if test "X$pkg" = "X$p"; then
4216           enable_static=yes
4217         fi
4218       done
4219       IFS="$lt_save_ifs"
4220       ;;
4221     esac
4222 else
4223   enable_static=no
4224 fi
4225
4226
4227     
4228     
4229     
4230     
4231
4232
4233
4234 # Make sure we can run config.sub.
4235 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4236   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4237
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4239 $as_echo_n "checking build system type... " >&6; }
4240 if ${ac_cv_build+:} false; then :
4241   $as_echo_n "(cached) " >&6
4242 else
4243   ac_build_alias=$build_alias
4244 test "x$ac_build_alias" = x &&
4245   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4246 test "x$ac_build_alias" = x &&
4247   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4248 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4249   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4250
4251 fi
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4253 $as_echo "$ac_cv_build" >&6; }
4254 case $ac_cv_build in
4255 *-*-*) ;;
4256 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4257 esac
4258 build=$ac_cv_build
4259 ac_save_IFS=$IFS; IFS='-'
4260 set x $ac_cv_build
4261 shift
4262 build_cpu=$1
4263 build_vendor=$2
4264 shift; shift
4265 # Remember, the first character of IFS is used to create $*,
4266 # except with old shells:
4267 build_os=$*
4268 IFS=$ac_save_IFS
4269 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4270
4271
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4273 $as_echo_n "checking host system type... " >&6; }
4274 if ${ac_cv_host+:} false; then :
4275   $as_echo_n "(cached) " >&6
4276 else
4277   if test "x$host_alias" = x; then
4278   ac_cv_host=$ac_cv_build
4279 else
4280   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4281     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4282 fi
4283
4284 fi
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4286 $as_echo "$ac_cv_host" >&6; }
4287 case $ac_cv_host in
4288 *-*-*) ;;
4289 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4290 esac
4291 host=$ac_cv_host
4292 ac_save_IFS=$IFS; IFS='-'
4293 set x $ac_cv_host
4294 shift
4295 host_cpu=$1
4296 host_vendor=$2
4297 shift; shift
4298 # Remember, the first character of IFS is used to create $*,
4299 # except with old shells:
4300 host_os=$*
4301 IFS=$ac_save_IFS
4302 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4303
4304
4305 enable_win32_dll=yes
4306
4307 case $host in
4308 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
4309   if test -n "$ac_tool_prefix"; then
4310   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4311 set dummy ${ac_tool_prefix}as; ac_word=$2
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4313 $as_echo_n "checking for $ac_word... " >&6; }
4314 if ${ac_cv_prog_AS+:} false; then :
4315   $as_echo_n "(cached) " >&6
4316 else
4317   if test -n "$AS"; then
4318   ac_cv_prog_AS="$AS" # Let the user override the test.
4319 else
4320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321 for as_dir in $PATH
4322 do
4323   IFS=$as_save_IFS
4324   test -z "$as_dir" && as_dir=.
4325     for ac_exec_ext in '' $ac_executable_extensions; do
4326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4327     ac_cv_prog_AS="${ac_tool_prefix}as"
4328     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4329     break 2
4330   fi
4331 done
4332   done
4333 IFS=$as_save_IFS
4334
4335 fi
4336 fi
4337 AS=$ac_cv_prog_AS
4338 if test -n "$AS"; then
4339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4340 $as_echo "$AS" >&6; }
4341 else
4342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4343 $as_echo "no" >&6; }
4344 fi
4345
4346
4347 fi
4348 if test -z "$ac_cv_prog_AS"; then
4349   ac_ct_AS=$AS
4350   # Extract the first word of "as", so it can be a program name with args.
4351 set dummy as; ac_word=$2
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4353 $as_echo_n "checking for $ac_word... " >&6; }
4354 if ${ac_cv_prog_ac_ct_AS+:} false; then :
4355   $as_echo_n "(cached) " >&6
4356 else
4357   if test -n "$ac_ct_AS"; then
4358   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4359 else
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361 for as_dir in $PATH
4362 do
4363   IFS=$as_save_IFS
4364   test -z "$as_dir" && as_dir=.
4365     for ac_exec_ext in '' $ac_executable_extensions; do
4366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4367     ac_cv_prog_ac_ct_AS="as"
4368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4369     break 2
4370   fi
4371 done
4372   done
4373 IFS=$as_save_IFS
4374
4375 fi
4376 fi
4377 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4378 if test -n "$ac_ct_AS"; then
4379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4380 $as_echo "$ac_ct_AS" >&6; }
4381 else
4382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4383 $as_echo "no" >&6; }
4384 fi
4385
4386   if test "x$ac_ct_AS" = x; then
4387     AS="false"
4388   else
4389     case $cross_compiling:$ac_tool_warned in
4390 yes:)
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4393 ac_tool_warned=yes ;;
4394 esac
4395     AS=$ac_ct_AS
4396   fi
4397 else
4398   AS="$ac_cv_prog_AS"
4399 fi
4400
4401   if test -n "$ac_tool_prefix"; then
4402   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4403 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4405 $as_echo_n "checking for $ac_word... " >&6; }
4406 if ${ac_cv_prog_DLLTOOL+:} false; then :
4407   $as_echo_n "(cached) " >&6
4408 else
4409   if test -n "$DLLTOOL"; then
4410   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4411 else
4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413 for as_dir in $PATH
4414 do
4415   IFS=$as_save_IFS
4416   test -z "$as_dir" && as_dir=.
4417     for ac_exec_ext in '' $ac_executable_extensions; do
4418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4419     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4421     break 2
4422   fi
4423 done
4424   done
4425 IFS=$as_save_IFS
4426
4427 fi
4428 fi
4429 DLLTOOL=$ac_cv_prog_DLLTOOL
4430 if test -n "$DLLTOOL"; then
4431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4432 $as_echo "$DLLTOOL" >&6; }
4433 else
4434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4435 $as_echo "no" >&6; }
4436 fi
4437
4438
4439 fi
4440 if test -z "$ac_cv_prog_DLLTOOL"; then
4441   ac_ct_DLLTOOL=$DLLTOOL
4442   # Extract the first word of "dlltool", so it can be a program name with args.
4443 set dummy dlltool; ac_word=$2
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4445 $as_echo_n "checking for $ac_word... " >&6; }
4446 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4447   $as_echo_n "(cached) " >&6
4448 else
4449   if test -n "$ac_ct_DLLTOOL"; then
4450   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4451 else
4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453 for as_dir in $PATH
4454 do
4455   IFS=$as_save_IFS
4456   test -z "$as_dir" && as_dir=.
4457     for ac_exec_ext in '' $ac_executable_extensions; do
4458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4459     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4460     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4461     break 2
4462   fi
4463 done
4464   done
4465 IFS=$as_save_IFS
4466
4467 fi
4468 fi
4469 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4470 if test -n "$ac_ct_DLLTOOL"; then
4471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4472 $as_echo "$ac_ct_DLLTOOL" >&6; }
4473 else
4474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4475 $as_echo "no" >&6; }
4476 fi
4477
4478   if test "x$ac_ct_DLLTOOL" = x; then
4479     DLLTOOL="false"
4480   else
4481     case $cross_compiling:$ac_tool_warned in
4482 yes:)
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4485 ac_tool_warned=yes ;;
4486 esac
4487     DLLTOOL=$ac_ct_DLLTOOL
4488   fi
4489 else
4490   DLLTOOL="$ac_cv_prog_DLLTOOL"
4491 fi
4492
4493   if test -n "$ac_tool_prefix"; then
4494   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4495 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4497 $as_echo_n "checking for $ac_word... " >&6; }
4498 if ${ac_cv_prog_OBJDUMP+:} false; then :
4499   $as_echo_n "(cached) " >&6
4500 else
4501   if test -n "$OBJDUMP"; then
4502   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4503 else
4504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505 for as_dir in $PATH
4506 do
4507   IFS=$as_save_IFS
4508   test -z "$as_dir" && as_dir=.
4509     for ac_exec_ext in '' $ac_executable_extensions; do
4510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4511     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4513     break 2
4514   fi
4515 done
4516   done
4517 IFS=$as_save_IFS
4518
4519 fi
4520 fi
4521 OBJDUMP=$ac_cv_prog_OBJDUMP
4522 if test -n "$OBJDUMP"; then
4523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4524 $as_echo "$OBJDUMP" >&6; }
4525 else
4526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4527 $as_echo "no" >&6; }
4528 fi
4529
4530
4531 fi
4532 if test -z "$ac_cv_prog_OBJDUMP"; then
4533   ac_ct_OBJDUMP=$OBJDUMP
4534   # Extract the first word of "objdump", so it can be a program name with args.
4535 set dummy objdump; ac_word=$2
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4537 $as_echo_n "checking for $ac_word... " >&6; }
4538 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4539   $as_echo_n "(cached) " >&6
4540 else
4541   if test -n "$ac_ct_OBJDUMP"; then
4542   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4543 else
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH
4546 do
4547   IFS=$as_save_IFS
4548   test -z "$as_dir" && as_dir=.
4549     for ac_exec_ext in '' $ac_executable_extensions; do
4550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4551     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4553     break 2
4554   fi
4555 done
4556   done
4557 IFS=$as_save_IFS
4558
4559 fi
4560 fi
4561 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4562 if test -n "$ac_ct_OBJDUMP"; then
4563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4564 $as_echo "$ac_ct_OBJDUMP" >&6; }
4565 else
4566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4567 $as_echo "no" >&6; }
4568 fi
4569
4570   if test "x$ac_ct_OBJDUMP" = x; then
4571     OBJDUMP="false"
4572   else
4573     case $cross_compiling:$ac_tool_warned in
4574 yes:)
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4577 ac_tool_warned=yes ;;
4578 esac
4579     OBJDUMP=$ac_ct_OBJDUMP
4580   fi
4581 else
4582   OBJDUMP="$ac_cv_prog_OBJDUMP"
4583 fi
4584
4585   ;;
4586 esac
4587
4588 test -z "$AS" && AS=as
4589
4590     
4591     
4592     
4593
4594 test -z "$DLLTOOL" && DLLTOOL=dlltool
4595
4596     
4597     
4598     
4599
4600 test -z "$OBJDUMP" && OBJDUMP=objdump
4601
4602     
4603     
4604     
4605
4606
4607
4608 enable_dlopen=yes
4609
4610
4611
4612 case `pwd` in
4613   *\ * | *\     *)
4614     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4615 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4616 esac
4617
4618
4619
4620 macro_version='2.2.6b'
4621 macro_revision='1.3017'
4622
4623     
4624     
4625     
4626
4627
4628     
4629     
4630     
4631
4632
4633
4634
4635 ltmain="$ac_aux_dir/ltmain.sh"
4636
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4638 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4639 if ${ac_cv_path_SED+:} false; then :
4640   $as_echo_n "(cached) " >&6
4641 else
4642             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4643      for ac_i in 1 2 3 4 5 6 7; do
4644        ac_script="$ac_script$as_nl$ac_script"
4645      done
4646      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4647      { ac_script=; unset ac_script;}
4648      if test -z "$SED"; then
4649   ac_path_SED_found=false
4650   # Loop through the user's path and test for each of PROGNAME-LIST
4651   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652 for as_dir in $PATH
4653 do
4654   IFS=$as_save_IFS
4655   test -z "$as_dir" && as_dir=.
4656     for ac_prog in sed gsed; do
4657     for ac_exec_ext in '' $ac_executable_extensions; do
4658       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4659       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4660 # Check for GNU ac_path_SED and select it if it is found.
4661   # Check for GNU $ac_path_SED
4662 case `"$ac_path_SED" --version 2>&1` in
4663 *GNU*)
4664   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4665 *)
4666   ac_count=0
4667   $as_echo_n 0123456789 >"conftest.in"
4668   while :
4669   do
4670     cat "conftest.in" "conftest.in" >"conftest.tmp"
4671     mv "conftest.tmp" "conftest.in"
4672     cp "conftest.in" "conftest.nl"
4673     $as_echo '' >> "conftest.nl"
4674     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4675     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4676     as_fn_arith $ac_count + 1 && ac_count=$as_val
4677     if test $ac_count -gt ${ac_path_SED_max-0}; then
4678       # Best one so far, save it but keep looking for a better one
4679       ac_cv_path_SED="$ac_path_SED"
4680       ac_path_SED_max=$ac_count
4681     fi
4682     # 10*(2^10) chars as input seems more than enough
4683     test $ac_count -gt 10 && break
4684   done
4685   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4686 esac
4687
4688       $ac_path_SED_found && break 3
4689     done
4690   done
4691   done
4692 IFS=$as_save_IFS
4693   if test -z "$ac_cv_path_SED"; then
4694     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4695   fi
4696 else
4697   ac_cv_path_SED=$SED
4698 fi
4699
4700 fi
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4702 $as_echo "$ac_cv_path_SED" >&6; }
4703  SED="$ac_cv_path_SED"
4704   rm -f conftest.sed
4705
4706 test -z "$SED" && SED=sed
4707 Xsed="$SED -e 1s/^X//"
4708
4709     
4710     
4711     
4712
4713
4714     
4715     
4716     
4717
4718
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4720 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4721 if ${ac_cv_path_GREP+:} false; then :
4722   $as_echo_n "(cached) " >&6
4723 else
4724   if test -z "$GREP"; then
4725   ac_path_GREP_found=false
4726   # Loop through the user's path and test for each of PROGNAME-LIST
4727   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4729 do
4730   IFS=$as_save_IFS
4731   test -z "$as_dir" && as_dir=.
4732     for ac_prog in grep ggrep; do
4733     for ac_exec_ext in '' $ac_executable_extensions; do
4734       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4735       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4736 # Check for GNU ac_path_GREP and select it if it is found.
4737   # Check for GNU $ac_path_GREP
4738 case `"$ac_path_GREP" --version 2>&1` in
4739 *GNU*)
4740   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4741 *)
4742   ac_count=0
4743   $as_echo_n 0123456789 >"conftest.in"
4744   while :
4745   do
4746     cat "conftest.in" "conftest.in" >"conftest.tmp"
4747     mv "conftest.tmp" "conftest.in"
4748     cp "conftest.in" "conftest.nl"
4749     $as_echo 'GREP' >> "conftest.nl"
4750     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4751     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4752     as_fn_arith $ac_count + 1 && ac_count=$as_val
4753     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4754       # Best one so far, save it but keep looking for a better one
4755       ac_cv_path_GREP="$ac_path_GREP"
4756       ac_path_GREP_max=$ac_count
4757     fi
4758     # 10*(2^10) chars as input seems more than enough
4759     test $ac_count -gt 10 && break
4760   done
4761   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4762 esac
4763
4764       $ac_path_GREP_found && break 3
4765     done
4766   done
4767   done
4768 IFS=$as_save_IFS
4769   if test -z "$ac_cv_path_GREP"; then
4770     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4771   fi
4772 else
4773   ac_cv_path_GREP=$GREP
4774 fi
4775
4776 fi
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4778 $as_echo "$ac_cv_path_GREP" >&6; }
4779  GREP="$ac_cv_path_GREP"
4780  
4781
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4783 $as_echo_n "checking for egrep... " >&6; }
4784 if ${ac_cv_path_EGREP+:} false; then :
4785   $as_echo_n "(cached) " >&6
4786 else
4787   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4788    then ac_cv_path_EGREP="$GREP -E"
4789    else
4790      if test -z "$EGREP"; then
4791   ac_path_EGREP_found=false
4792   # Loop through the user's path and test for each of PROGNAME-LIST
4793   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4795 do
4796   IFS=$as_save_IFS
4797   test -z "$as_dir" && as_dir=.
4798     for ac_prog in egrep; do
4799     for ac_exec_ext in '' $ac_executable_extensions; do
4800       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4801       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4802 # Check for GNU ac_path_EGREP and select it if it is found.
4803   # Check for GNU $ac_path_EGREP
4804 case `"$ac_path_EGREP" --version 2>&1` in
4805 *GNU*)
4806   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4807 *)
4808   ac_count=0
4809   $as_echo_n 0123456789 >"conftest.in"
4810   while :
4811   do
4812     cat "conftest.in" "conftest.in" >"conftest.tmp"
4813     mv "conftest.tmp" "conftest.in"
4814     cp "conftest.in" "conftest.nl"
4815     $as_echo 'EGREP' >> "conftest.nl"
4816     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4817     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4818     as_fn_arith $ac_count + 1 && ac_count=$as_val
4819     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4820       # Best one so far, save it but keep looking for a better one
4821       ac_cv_path_EGREP="$ac_path_EGREP"
4822       ac_path_EGREP_max=$ac_count
4823     fi
4824     # 10*(2^10) chars as input seems more than enough
4825     test $ac_count -gt 10 && break
4826   done
4827   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4828 esac
4829
4830       $ac_path_EGREP_found && break 3
4831     done
4832   done
4833   done
4834 IFS=$as_save_IFS
4835   if test -z "$ac_cv_path_EGREP"; then
4836     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4837   fi
4838 else
4839   ac_cv_path_EGREP=$EGREP
4840 fi
4841
4842    fi
4843 fi
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4845 $as_echo "$ac_cv_path_EGREP" >&6; }
4846  EGREP="$ac_cv_path_EGREP"
4847  
4848
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4850 $as_echo_n "checking for fgrep... " >&6; }
4851 if ${ac_cv_path_FGREP+:} false; then :
4852   $as_echo_n "(cached) " >&6
4853 else
4854   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4855    then ac_cv_path_FGREP="$GREP -F"
4856    else
4857      if test -z "$FGREP"; then
4858   ac_path_FGREP_found=false
4859   # Loop through the user's path and test for each of PROGNAME-LIST
4860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4862 do
4863   IFS=$as_save_IFS
4864   test -z "$as_dir" && as_dir=.
4865     for ac_prog in fgrep; do
4866     for ac_exec_ext in '' $ac_executable_extensions; do
4867       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4868       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4869 # Check for GNU ac_path_FGREP and select it if it is found.
4870   # Check for GNU $ac_path_FGREP
4871 case `"$ac_path_FGREP" --version 2>&1` in
4872 *GNU*)
4873   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4874 *)
4875   ac_count=0
4876   $as_echo_n 0123456789 >"conftest.in"
4877   while :
4878   do
4879     cat "conftest.in" "conftest.in" >"conftest.tmp"
4880     mv "conftest.tmp" "conftest.in"
4881     cp "conftest.in" "conftest.nl"
4882     $as_echo 'FGREP' >> "conftest.nl"
4883     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4884     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4885     as_fn_arith $ac_count + 1 && ac_count=$as_val
4886     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4887       # Best one so far, save it but keep looking for a better one
4888       ac_cv_path_FGREP="$ac_path_FGREP"
4889       ac_path_FGREP_max=$ac_count
4890     fi
4891     # 10*(2^10) chars as input seems more than enough
4892     test $ac_count -gt 10 && break
4893   done
4894   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4895 esac
4896
4897       $ac_path_FGREP_found && break 3
4898     done
4899   done
4900   done
4901 IFS=$as_save_IFS
4902   if test -z "$ac_cv_path_FGREP"; then
4903     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4904   fi
4905 else
4906   ac_cv_path_FGREP=$FGREP
4907 fi
4908
4909    fi
4910 fi
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4912 $as_echo "$ac_cv_path_FGREP" >&6; }
4913  FGREP="$ac_cv_path_FGREP"
4914  
4915
4916 test -z "$GREP" && GREP=grep
4917
4918     
4919     
4920     
4921
4922
4923     
4924     
4925     
4926
4927
4928     
4929     
4930     
4931
4932
4933
4934
4935
4936 @%:@ Check whether --with-gnu-ld was given.
4937 if test "${with_gnu_ld+set}" = set; then :
4938   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4939 else
4940   with_gnu_ld=no
4941 fi
4942
4943 ac_prog=ld
4944 if test "$GCC" = yes; then
4945   # Check if gcc -print-prog-name=ld gives a path.
4946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4947 $as_echo_n "checking for ld used by $CC... " >&6; }
4948   case $host in
4949   *-*-mingw*)
4950     # gcc leaves a trailing carriage return which upsets mingw
4951     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4952   *)
4953     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4954   esac
4955   case $ac_prog in
4956     # Accept absolute paths.
4957     [\\/]* | ?:[\\/]*)
4958       re_direlt='/[^/][^/]*/\.\./'
4959       # Canonicalize the pathname of ld
4960       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4961       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4962         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4963       done
4964       test -z "$LD" && LD="$ac_prog"
4965       ;;
4966   "")
4967     # If it fails, then pretend we aren't using GCC.
4968     ac_prog=ld
4969     ;;
4970   *)
4971     # If it is relative, then search for the first ld in PATH.
4972     with_gnu_ld=unknown
4973     ;;
4974   esac
4975 elif test "$with_gnu_ld" = yes; then
4976   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4977 $as_echo_n "checking for GNU ld... " >&6; }
4978 else
4979   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4980 $as_echo_n "checking for non-GNU ld... " >&6; }
4981 fi
4982 if ${lt_cv_path_LD+:} false; then :
4983   $as_echo_n "(cached) " >&6
4984 else
4985   if test -z "$LD"; then
4986   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4987   for ac_dir in $PATH; do
4988     IFS="$lt_save_ifs"
4989     test -z "$ac_dir" && ac_dir=.
4990     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4991       lt_cv_path_LD="$ac_dir/$ac_prog"
4992       # Check to see if the program is GNU ld.  I'd rather use --version,
4993       # but apparently some variants of GNU ld only accept -v.
4994       # Break only if it was the GNU/non-GNU ld that we prefer.
4995       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4996       *GNU* | *'with BFD'*)
4997         test "$with_gnu_ld" != no && break
4998         ;;
4999       *)
5000         test "$with_gnu_ld" != yes && break
5001         ;;
5002       esac
5003     fi
5004   done
5005   IFS="$lt_save_ifs"
5006 else
5007   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5008 fi
5009 fi
5010
5011 LD="$lt_cv_path_LD"
5012 if test -n "$LD"; then
5013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5014 $as_echo "$LD" >&6; }
5015 else
5016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5017 $as_echo "no" >&6; }
5018 fi
5019 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5021 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5022 if ${lt_cv_prog_gnu_ld+:} false; then :
5023   $as_echo_n "(cached) " >&6
5024 else
5025   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5026 case `$LD -v 2>&1 </dev/null` in
5027 *GNU* | *'with BFD'*)
5028   lt_cv_prog_gnu_ld=yes
5029   ;;
5030 *)
5031   lt_cv_prog_gnu_ld=no
5032   ;;
5033 esac
5034 fi
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5036 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5037 with_gnu_ld=$lt_cv_prog_gnu_ld
5038
5039
5040
5041
5042     
5043     
5044     
5045
5046
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5048 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5049 if ${lt_cv_path_NM+:} false; then :
5050   $as_echo_n "(cached) " >&6
5051 else
5052   if test -n "$NM"; then
5053   # Let the user override the test.
5054   lt_cv_path_NM="$NM"
5055 else
5056   lt_nm_to_check="${ac_tool_prefix}nm"
5057   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5058     lt_nm_to_check="$lt_nm_to_check nm"
5059   fi
5060   for lt_tmp_nm in $lt_nm_to_check; do
5061     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5062     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5063       IFS="$lt_save_ifs"
5064       test -z "$ac_dir" && ac_dir=.
5065       tmp_nm="$ac_dir/$lt_tmp_nm"
5066       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5067         # Check to see if the nm accepts a BSD-compat flag.
5068         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5069         #   nm: unknown option "B" ignored
5070         # Tru64's nm complains that /dev/null is an invalid object file
5071         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5072         */dev/null* | *'Invalid file or object type'*)
5073           lt_cv_path_NM="$tmp_nm -B"
5074           break
5075           ;;
5076         *)
5077           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5078           */dev/null*)
5079             lt_cv_path_NM="$tmp_nm -p"
5080             break
5081             ;;
5082           *)
5083             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5084             continue # so that we can try to find one that supports BSD flags
5085             ;;
5086           esac
5087           ;;
5088         esac
5089       fi
5090     done
5091     IFS="$lt_save_ifs"
5092   done
5093   : ${lt_cv_path_NM=no}
5094 fi
5095 fi
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5097 $as_echo "$lt_cv_path_NM" >&6; }
5098 if test "$lt_cv_path_NM" != "no"; then
5099   NM="$lt_cv_path_NM"
5100 else
5101   # Didn't find any BSD compatible name lister, look for dumpbin.
5102   if test -n "$ac_tool_prefix"; then
5103   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5104   do
5105     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5106 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5108 $as_echo_n "checking for $ac_word... " >&6; }
5109 if ${ac_cv_prog_DUMPBIN+:} false; then :
5110   $as_echo_n "(cached) " >&6
5111 else
5112   if test -n "$DUMPBIN"; then
5113   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5114 else
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 for as_dir in $PATH
5117 do
5118   IFS=$as_save_IFS
5119   test -z "$as_dir" && as_dir=.
5120     for ac_exec_ext in '' $ac_executable_extensions; do
5121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5122     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5124     break 2
5125   fi
5126 done
5127   done
5128 IFS=$as_save_IFS
5129
5130 fi
5131 fi
5132 DUMPBIN=$ac_cv_prog_DUMPBIN
5133 if test -n "$DUMPBIN"; then
5134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5135 $as_echo "$DUMPBIN" >&6; }
5136 else
5137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138 $as_echo "no" >&6; }
5139 fi
5140
5141
5142     test -n "$DUMPBIN" && break
5143   done
5144 fi
5145 if test -z "$DUMPBIN"; then
5146   ac_ct_DUMPBIN=$DUMPBIN
5147   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5148 do
5149   # Extract the first word of "$ac_prog", so it can be a program name with args.
5150 set dummy $ac_prog; ac_word=$2
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5152 $as_echo_n "checking for $ac_word... " >&6; }
5153 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5154   $as_echo_n "(cached) " >&6
5155 else
5156   if test -n "$ac_ct_DUMPBIN"; then
5157   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5158 else
5159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160 for as_dir in $PATH
5161 do
5162   IFS=$as_save_IFS
5163   test -z "$as_dir" && as_dir=.
5164     for ac_exec_ext in '' $ac_executable_extensions; do
5165   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5166     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5168     break 2
5169   fi
5170 done
5171   done
5172 IFS=$as_save_IFS
5173
5174 fi
5175 fi
5176 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5177 if test -n "$ac_ct_DUMPBIN"; then
5178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5179 $as_echo "$ac_ct_DUMPBIN" >&6; }
5180 else
5181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5182 $as_echo "no" >&6; }
5183 fi
5184
5185
5186   test -n "$ac_ct_DUMPBIN" && break
5187 done
5188
5189   if test "x$ac_ct_DUMPBIN" = x; then
5190     DUMPBIN=":"
5191   else
5192     case $cross_compiling:$ac_tool_warned in
5193 yes:)
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5196 ac_tool_warned=yes ;;
5197 esac
5198     DUMPBIN=$ac_ct_DUMPBIN
5199   fi
5200 fi
5201
5202   
5203   if test "$DUMPBIN" != ":"; then
5204     NM="$DUMPBIN"
5205   fi
5206 fi
5207 test -z "$NM" && NM=nm
5208
5209
5210     
5211     
5212     
5213
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5215 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5216 if ${lt_cv_nm_interface+:} false; then :
5217   $as_echo_n "(cached) " >&6
5218 else
5219   lt_cv_nm_interface="BSD nm"
5220   echo "int some_variable = 0;" > conftest.$ac_ext
5221   (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&5)
5222   (eval "$ac_compile" 2>conftest.err)
5223   cat conftest.err >&5
5224   (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5225   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5226   cat conftest.err >&5
5227   (eval echo "\"\$as_me:__oline__: output\"" >&5)
5228   cat conftest.out >&5
5229   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5230     lt_cv_nm_interface="MS dumpbin"
5231   fi
5232   rm -f conftest*
5233 fi
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5235 $as_echo "$lt_cv_nm_interface" >&6; }
5236
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5238 $as_echo_n "checking whether ln -s works... " >&6; }
5239 LN_S=$as_ln_s
5240 if test "$LN_S" = "ln -s"; then
5241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5242 $as_echo "yes" >&6; }
5243 else
5244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5245 $as_echo "no, using $LN_S" >&6; }
5246 fi
5247
5248 # find the maximum length of command line arguments
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5250 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5251 if ${lt_cv_sys_max_cmd_len+:} false; then :
5252   $as_echo_n "(cached) " >&6
5253 else
5254     i=0
5255   teststring="ABCD"
5256
5257   case $build_os in
5258   msdosdjgpp*)
5259     # On DJGPP, this test can blow up pretty badly due to problems in libc
5260     # (any single argument exceeding 2000 bytes causes a buffer overrun
5261     # during glob expansion).  Even if it were fixed, the result of this
5262     # check would be larger than it should be.
5263     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5264     ;;
5265
5266   gnu*)
5267     # Under GNU Hurd, this test is not required because there is
5268     # no limit to the length of command line arguments.
5269     # Libtool will interpret -1 as no limit whatsoever
5270     lt_cv_sys_max_cmd_len=-1;
5271     ;;
5272
5273   cygwin* | mingw* | cegcc*)
5274     # On Win9x/ME, this test blows up -- it succeeds, but takes
5275     # about 5 minutes as the teststring grows exponentially.
5276     # Worse, since 9x/ME are not pre-emptively multitasking,
5277     # you end up with a "frozen" computer, even though with patience
5278     # the test eventually succeeds (with a max line length of 256k).
5279     # Instead, let's just punt: use the minimum linelength reported by
5280     # all of the supported platforms: 8192 (on NT/2K/XP).
5281     lt_cv_sys_max_cmd_len=8192;
5282     ;;
5283
5284   amigaos*)
5285     # On AmigaOS with pdksh, this test takes hours, literally.
5286     # So we just punt and use a minimum line length of 8192.
5287     lt_cv_sys_max_cmd_len=8192;
5288     ;;
5289
5290   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5291     # This has been around since 386BSD, at least.  Likely further.
5292     if test -x /sbin/sysctl; then
5293       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5294     elif test -x /usr/sbin/sysctl; then
5295       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5296     else
5297       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5298     fi
5299     # And add a safety zone
5300     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5301     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5302     ;;
5303
5304   interix*)
5305     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5306     lt_cv_sys_max_cmd_len=196608
5307     ;;
5308
5309   osf*)
5310     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5311     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5312     # nice to cause kernel panics so lets avoid the loop below.
5313     # First set a reasonable default.
5314     lt_cv_sys_max_cmd_len=16384
5315     #
5316     if test -x /sbin/sysconfig; then
5317       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5318         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5319       esac
5320     fi
5321     ;;
5322   sco3.2v5*)
5323     lt_cv_sys_max_cmd_len=102400
5324     ;;
5325   sysv5* | sco5v6* | sysv4.2uw2*)
5326     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5327     if test -n "$kargmax"; then
5328       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5329     else
5330       lt_cv_sys_max_cmd_len=32768
5331     fi
5332     ;;
5333   *)
5334     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5335     if test -n "$lt_cv_sys_max_cmd_len"; then
5336       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5337       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5338     else
5339       # Make teststring a little bigger before we do anything with it.
5340       # a 1K string should be a reasonable start.
5341       for i in 1 2 3 4 5 6 7 8 ; do
5342         teststring=$teststring$teststring
5343       done
5344       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5345       # If test is not a shell built-in, we'll probably end up computing a
5346       # maximum length that is only half of the actual maximum length, but
5347       # we can't tell.
5348       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5349                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5350               test $i != 17 # 1/2 MB should be enough
5351       do
5352         i=`expr $i + 1`
5353         teststring=$teststring$teststring
5354       done
5355       # Only check the string length outside the loop.
5356       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5357       teststring=
5358       # Add a significant safety factor because C++ compilers can tack on
5359       # massive amounts of additional arguments before passing them to the
5360       # linker.  It appears as though 1/2 is a usable value.
5361       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5362     fi
5363     ;;
5364   esac
5365
5366 fi
5367
5368 if test -n $lt_cv_sys_max_cmd_len ; then
5369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5370 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5371 else
5372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5373 $as_echo "none" >&6; }
5374 fi
5375 max_cmd_len=$lt_cv_sys_max_cmd_len
5376
5377     
5378     
5379     
5380
5381
5382 : ${CP="cp -f"}
5383 : ${MV="mv -f"}
5384 : ${RM="rm -f"}
5385
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5387 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5388 # Try some XSI features
5389 xsi_shell=no
5390 ( _lt_dummy="a/b/c"
5391   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5392       = c,a/b,, \
5393     && eval 'test $(( 1 + 1 )) -eq 2 \
5394     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5395   && xsi_shell=yes
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5397 $as_echo "$xsi_shell" >&6; }
5398
5399
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5401 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5402 lt_shell_append=no
5403 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5404     >/dev/null 2>&1 \
5405   && lt_shell_append=yes
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5407 $as_echo "$lt_shell_append" >&6; }
5408
5409
5410 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5411   lt_unset=unset
5412 else
5413   lt_unset=false
5414 fi
5415
5416     
5417     
5418     
5419
5420 # test EBCDIC or ASCII
5421 case `echo X|tr X '\101'` in
5422  A) # ASCII based system
5423     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5424   lt_SP2NL='tr \040 \012'
5425   lt_NL2SP='tr \015\012 \040\040'
5426   ;;
5427  *) # EBCDIC based system
5428   lt_SP2NL='tr \100 \n'
5429   lt_NL2SP='tr \r\n \100\100'
5430   ;;
5431 esac
5432
5433     
5434     
5435     
5436
5437     
5438     
5439     
5440
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5442 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5443 if ${lt_cv_ld_reload_flag+:} false; then :
5444   $as_echo_n "(cached) " >&6
5445 else
5446   lt_cv_ld_reload_flag='-r'
5447 fi
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5449 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5450 reload_flag=$lt_cv_ld_reload_flag
5451 case $reload_flag in
5452 "" | " "*) ;;
5453 *) reload_flag=" $reload_flag" ;;
5454 esac
5455 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5456 case $host_os in
5457   darwin*)
5458     if test "$GCC" = yes; then
5459       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5460     else
5461       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5462     fi
5463     ;;
5464 esac
5465
5466     
5467     
5468     
5469
5470     
5471     
5472     
5473
5474 if test -n "$ac_tool_prefix"; then
5475   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5476 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5478 $as_echo_n "checking for $ac_word... " >&6; }
5479 if ${ac_cv_prog_OBJDUMP+:} false; then :
5480   $as_echo_n "(cached) " >&6
5481 else
5482   if test -n "$OBJDUMP"; then
5483   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5484 else
5485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486 for as_dir in $PATH
5487 do
5488   IFS=$as_save_IFS
5489   test -z "$as_dir" && as_dir=.
5490     for ac_exec_ext in '' $ac_executable_extensions; do
5491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5492     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5493     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5494     break 2
5495   fi
5496 done
5497   done
5498 IFS=$as_save_IFS
5499
5500 fi
5501 fi
5502 OBJDUMP=$ac_cv_prog_OBJDUMP
5503 if test -n "$OBJDUMP"; then
5504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5505 $as_echo "$OBJDUMP" >&6; }
5506 else
5507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508 $as_echo "no" >&6; }
5509 fi
5510
5511
5512 fi
5513 if test -z "$ac_cv_prog_OBJDUMP"; then
5514   ac_ct_OBJDUMP=$OBJDUMP
5515   # Extract the first word of "objdump", so it can be a program name with args.
5516 set dummy objdump; ac_word=$2
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5518 $as_echo_n "checking for $ac_word... " >&6; }
5519 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5520   $as_echo_n "(cached) " >&6
5521 else
5522   if test -n "$ac_ct_OBJDUMP"; then
5523   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5524 else
5525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526 for as_dir in $PATH
5527 do
5528   IFS=$as_save_IFS
5529   test -z "$as_dir" && as_dir=.
5530     for ac_exec_ext in '' $ac_executable_extensions; do
5531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5532     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5534     break 2
5535   fi
5536 done
5537   done
5538 IFS=$as_save_IFS
5539
5540 fi
5541 fi
5542 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5543 if test -n "$ac_ct_OBJDUMP"; then
5544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5545 $as_echo "$ac_ct_OBJDUMP" >&6; }
5546 else
5547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548 $as_echo "no" >&6; }
5549 fi
5550
5551   if test "x$ac_ct_OBJDUMP" = x; then
5552     OBJDUMP="false"
5553   else
5554     case $cross_compiling:$ac_tool_warned in
5555 yes:)
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5558 ac_tool_warned=yes ;;
5559 esac
5560     OBJDUMP=$ac_ct_OBJDUMP
5561   fi
5562 else
5563   OBJDUMP="$ac_cv_prog_OBJDUMP"
5564 fi
5565
5566 test -z "$OBJDUMP" && OBJDUMP=objdump
5567
5568
5569
5570
5571
5572
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5574 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5575 if ${lt_cv_deplibs_check_method+:} false; then :
5576   $as_echo_n "(cached) " >&6
5577 else
5578   lt_cv_file_magic_cmd='$MAGIC_CMD'
5579 lt_cv_file_magic_test_file=
5580 lt_cv_deplibs_check_method='unknown'
5581 # Need to set the preceding variable on all platforms that support
5582 # interlibrary dependencies.
5583 # 'none' -- dependencies not supported.
5584 # `unknown' -- same as none, but documents that we really don't know.
5585 # 'pass_all' -- all dependencies passed with no checks.
5586 # 'test_compile' -- check by making test program.
5587 # 'file_magic [[regex]]' -- check by looking for files in library path
5588 # which responds to the $file_magic_cmd with a given extended regex.
5589 # If you have `file' or equivalent on your system and you're not sure
5590 # whether `pass_all' will *always* work, you probably want this one.
5591
5592 case $host_os in
5593 aix[4-9]*)
5594   lt_cv_deplibs_check_method=pass_all
5595   ;;
5596
5597 beos*)
5598   lt_cv_deplibs_check_method=pass_all
5599   ;;
5600
5601 bsdi[45]*)
5602   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5603   lt_cv_file_magic_cmd='/usr/bin/file -L'
5604   lt_cv_file_magic_test_file=/shlib/libc.so
5605   ;;
5606
5607 cygwin*)
5608   # func_win32_libid is a shell function defined in ltmain.sh
5609   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5610   lt_cv_file_magic_cmd='func_win32_libid'
5611   ;;
5612
5613 mingw* | pw32*)
5614   # Base MSYS/MinGW do not provide the 'file' command needed by
5615   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5616   # unless we find 'file', for example because we are cross-compiling.
5617   if ( file / ) >/dev/null 2>&1; then
5618     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5619     lt_cv_file_magic_cmd='func_win32_libid'
5620   else
5621     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5622     lt_cv_file_magic_cmd='$OBJDUMP -f'
5623   fi
5624   ;;
5625
5626 cegcc)
5627   # use the weaker test based on 'objdump'. See mingw*.
5628   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5629   lt_cv_file_magic_cmd='$OBJDUMP -f'
5630   ;;
5631
5632 darwin* | rhapsody*)
5633   lt_cv_deplibs_check_method=pass_all
5634   ;;
5635
5636 freebsd* | dragonfly*)
5637   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5638     case $host_cpu in
5639     i*86 )
5640       # Not sure whether the presence of OpenBSD here was a mistake.
5641       # Let's accept both of them until this is cleared up.
5642       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5643       lt_cv_file_magic_cmd=/usr/bin/file
5644       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5645       ;;
5646     esac
5647   else
5648     lt_cv_deplibs_check_method=pass_all
5649   fi
5650   ;;
5651
5652 gnu*)
5653   lt_cv_deplibs_check_method=pass_all
5654   ;;
5655
5656 hpux10.20* | hpux11*)
5657   lt_cv_file_magic_cmd=/usr/bin/file
5658   case $host_cpu in
5659   ia64*)
5660     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5661     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5662     ;;
5663   hppa*64*)
5664     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]'
5665     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5666     ;;
5667   *)
5668     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5669     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5670     ;;
5671   esac
5672   ;;
5673
5674 interix[3-9]*)
5675   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5676   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5677   ;;
5678
5679 irix5* | irix6* | nonstopux*)
5680   case $LD in
5681   *-32|*"-32 ") libmagic=32-bit;;
5682   *-n32|*"-n32 ") libmagic=N32;;
5683   *-64|*"-64 ") libmagic=64-bit;;
5684   *) libmagic=never-match;;
5685   esac
5686   lt_cv_deplibs_check_method=pass_all
5687   ;;
5688
5689 # This must be Linux ELF.
5690 linux* | k*bsd*-gnu)
5691   lt_cv_deplibs_check_method=pass_all
5692   ;;
5693
5694 netbsd*)
5695   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5696     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5697   else
5698     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5699   fi
5700   ;;
5701
5702 newos6*)
5703   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5704   lt_cv_file_magic_cmd=/usr/bin/file
5705   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5706   ;;
5707
5708 *nto* | *qnx*)
5709   lt_cv_deplibs_check_method=pass_all
5710   ;;
5711
5712 openbsd*)
5713   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5714     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5715   else
5716     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5717   fi
5718   ;;
5719
5720 osf3* | osf4* | osf5*)
5721   lt_cv_deplibs_check_method=pass_all
5722   ;;
5723
5724 rdos*)
5725   lt_cv_deplibs_check_method=pass_all
5726   ;;
5727
5728 solaris*)
5729   lt_cv_deplibs_check_method=pass_all
5730   ;;
5731
5732 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5733   lt_cv_deplibs_check_method=pass_all
5734   ;;
5735
5736 sysv4 | sysv4.3*)
5737   case $host_vendor in
5738   motorola)
5739     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]'
5740     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5741     ;;
5742   ncr)
5743     lt_cv_deplibs_check_method=pass_all
5744     ;;
5745   sequent)
5746     lt_cv_file_magic_cmd='/bin/file'
5747     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5748     ;;
5749   sni)
5750     lt_cv_file_magic_cmd='/bin/file'
5751     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5752     lt_cv_file_magic_test_file=/lib/libc.so
5753     ;;
5754   siemens)
5755     lt_cv_deplibs_check_method=pass_all
5756     ;;
5757   pc)
5758     lt_cv_deplibs_check_method=pass_all
5759     ;;
5760   esac
5761   ;;
5762
5763 tpf*)
5764   lt_cv_deplibs_check_method=pass_all
5765   ;;
5766 esac
5767
5768 fi
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5770 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5771 file_magic_cmd=$lt_cv_file_magic_cmd
5772 deplibs_check_method=$lt_cv_deplibs_check_method
5773 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5774
5775
5776     
5777     
5778     
5779
5780
5781     
5782     
5783     
5784
5785
5786 if test -n "$ac_tool_prefix"; then
5787   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5788 set dummy ${ac_tool_prefix}ar; ac_word=$2
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5790 $as_echo_n "checking for $ac_word... " >&6; }
5791 if ${ac_cv_prog_AR+:} false; then :
5792   $as_echo_n "(cached) " >&6
5793 else
5794   if test -n "$AR"; then
5795   ac_cv_prog_AR="$AR" # Let the user override the test.
5796 else
5797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798 for as_dir in $PATH
5799 do
5800   IFS=$as_save_IFS
5801   test -z "$as_dir" && as_dir=.
5802     for ac_exec_ext in '' $ac_executable_extensions; do
5803   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5804     ac_cv_prog_AR="${ac_tool_prefix}ar"
5805     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5806     break 2
5807   fi
5808 done
5809   done
5810 IFS=$as_save_IFS
5811
5812 fi
5813 fi
5814 AR=$ac_cv_prog_AR
5815 if test -n "$AR"; then
5816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5817 $as_echo "$AR" >&6; }
5818 else
5819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5820 $as_echo "no" >&6; }
5821 fi
5822
5823
5824 fi
5825 if test -z "$ac_cv_prog_AR"; then
5826   ac_ct_AR=$AR
5827   # Extract the first word of "ar", so it can be a program name with args.
5828 set dummy ar; ac_word=$2
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5830 $as_echo_n "checking for $ac_word... " >&6; }
5831 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5832   $as_echo_n "(cached) " >&6
5833 else
5834   if test -n "$ac_ct_AR"; then
5835   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5836 else
5837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5838 for as_dir in $PATH
5839 do
5840   IFS=$as_save_IFS
5841   test -z "$as_dir" && as_dir=.
5842     for ac_exec_ext in '' $ac_executable_extensions; do
5843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5844     ac_cv_prog_ac_ct_AR="ar"
5845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5846     break 2
5847   fi
5848 done
5849   done
5850 IFS=$as_save_IFS
5851
5852 fi
5853 fi
5854 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5855 if test -n "$ac_ct_AR"; then
5856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5857 $as_echo "$ac_ct_AR" >&6; }
5858 else
5859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5860 $as_echo "no" >&6; }
5861 fi
5862
5863   if test "x$ac_ct_AR" = x; then
5864     AR="false"
5865   else
5866     case $cross_compiling:$ac_tool_warned in
5867 yes:)
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5870 ac_tool_warned=yes ;;
5871 esac
5872     AR=$ac_ct_AR
5873   fi
5874 else
5875   AR="$ac_cv_prog_AR"
5876 fi
5877
5878 test -z "$AR" && AR=ar
5879 test -z "$AR_FLAGS" && AR_FLAGS=cru
5880
5881     
5882     
5883     
5884
5885
5886     
5887     
5888     
5889
5890
5891 if test -n "$ac_tool_prefix"; then
5892   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5893 set dummy ${ac_tool_prefix}strip; ac_word=$2
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5895 $as_echo_n "checking for $ac_word... " >&6; }
5896 if ${ac_cv_prog_STRIP+:} false; then :
5897   $as_echo_n "(cached) " >&6
5898 else
5899   if test -n "$STRIP"; then
5900   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5901 else
5902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903 for as_dir in $PATH
5904 do
5905   IFS=$as_save_IFS
5906   test -z "$as_dir" && as_dir=.
5907     for ac_exec_ext in '' $ac_executable_extensions; do
5908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5909     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5910     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5911     break 2
5912   fi
5913 done
5914   done
5915 IFS=$as_save_IFS
5916
5917 fi
5918 fi
5919 STRIP=$ac_cv_prog_STRIP
5920 if test -n "$STRIP"; then
5921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5922 $as_echo "$STRIP" >&6; }
5923 else
5924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5925 $as_echo "no" >&6; }
5926 fi
5927
5928
5929 fi
5930 if test -z "$ac_cv_prog_STRIP"; then
5931   ac_ct_STRIP=$STRIP
5932   # Extract the first word of "strip", so it can be a program name with args.
5933 set dummy strip; ac_word=$2
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5935 $as_echo_n "checking for $ac_word... " >&6; }
5936 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5937   $as_echo_n "(cached) " >&6
5938 else
5939   if test -n "$ac_ct_STRIP"; then
5940   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5941 else
5942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943 for as_dir in $PATH
5944 do
5945   IFS=$as_save_IFS
5946   test -z "$as_dir" && as_dir=.
5947     for ac_exec_ext in '' $ac_executable_extensions; do
5948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5949     ac_cv_prog_ac_ct_STRIP="strip"
5950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5951     break 2
5952   fi
5953 done
5954   done
5955 IFS=$as_save_IFS
5956
5957 fi
5958 fi
5959 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5960 if test -n "$ac_ct_STRIP"; then
5961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5962 $as_echo "$ac_ct_STRIP" >&6; }
5963 else
5964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5965 $as_echo "no" >&6; }
5966 fi
5967
5968   if test "x$ac_ct_STRIP" = x; then
5969     STRIP=":"
5970   else
5971     case $cross_compiling:$ac_tool_warned in
5972 yes:)
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5975 ac_tool_warned=yes ;;
5976 esac
5977     STRIP=$ac_ct_STRIP
5978   fi
5979 else
5980   STRIP="$ac_cv_prog_STRIP"
5981 fi
5982
5983 test -z "$STRIP" && STRIP=:
5984
5985     
5986     
5987     
5988
5989
5990 if test -n "$ac_tool_prefix"; then
5991   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5992 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5994 $as_echo_n "checking for $ac_word... " >&6; }
5995 if ${ac_cv_prog_RANLIB+:} false; then :
5996   $as_echo_n "(cached) " >&6
5997 else
5998   if test -n "$RANLIB"; then
5999   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6000 else
6001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002 for as_dir in $PATH
6003 do
6004   IFS=$as_save_IFS
6005   test -z "$as_dir" && as_dir=.
6006     for ac_exec_ext in '' $ac_executable_extensions; do
6007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6008     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6009     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6010     break 2
6011   fi
6012 done
6013   done
6014 IFS=$as_save_IFS
6015
6016 fi
6017 fi
6018 RANLIB=$ac_cv_prog_RANLIB
6019 if test -n "$RANLIB"; then
6020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6021 $as_echo "$RANLIB" >&6; }
6022 else
6023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6024 $as_echo "no" >&6; }
6025 fi
6026
6027
6028 fi
6029 if test -z "$ac_cv_prog_RANLIB"; then
6030   ac_ct_RANLIB=$RANLIB
6031   # Extract the first word of "ranlib", so it can be a program name with args.
6032 set dummy ranlib; ac_word=$2
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6034 $as_echo_n "checking for $ac_word... " >&6; }
6035 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6036   $as_echo_n "(cached) " >&6
6037 else
6038   if test -n "$ac_ct_RANLIB"; then
6039   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6040 else
6041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042 for as_dir in $PATH
6043 do
6044   IFS=$as_save_IFS
6045   test -z "$as_dir" && as_dir=.
6046     for ac_exec_ext in '' $ac_executable_extensions; do
6047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6048     ac_cv_prog_ac_ct_RANLIB="ranlib"
6049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6050     break 2
6051   fi
6052 done
6053   done
6054 IFS=$as_save_IFS
6055
6056 fi
6057 fi
6058 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6059 if test -n "$ac_ct_RANLIB"; then
6060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6061 $as_echo "$ac_ct_RANLIB" >&6; }
6062 else
6063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064 $as_echo "no" >&6; }
6065 fi
6066
6067   if test "x$ac_ct_RANLIB" = x; then
6068     RANLIB=":"
6069   else
6070     case $cross_compiling:$ac_tool_warned in
6071 yes:)
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6074 ac_tool_warned=yes ;;
6075 esac
6076     RANLIB=$ac_ct_RANLIB
6077   fi
6078 else
6079   RANLIB="$ac_cv_prog_RANLIB"
6080 fi
6081
6082 test -z "$RANLIB" && RANLIB=:
6083
6084     
6085     
6086     
6087
6088
6089 # Determine commands to create old-style static archives.
6090 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6091 old_postinstall_cmds='chmod 644 $oldlib'
6092 old_postuninstall_cmds=
6093
6094 if test -n "$RANLIB"; then
6095   case $host_os in
6096   openbsd*)
6097     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6098     ;;
6099   *)
6100     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6101     ;;
6102   esac
6103   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6104 fi
6105
6106     
6107     
6108     
6109
6110
6111     
6112     
6113     
6114
6115
6116     
6117     
6118     
6119
6120
6121
6122
6123     
6124     
6125     
6126
6127     
6128     
6129     
6130
6131     
6132     
6133     
6134
6135     
6136     
6137     
6138
6139 # If no C compiler was specified, use CC.
6140 LTCC=${LTCC-"$CC"}
6141
6142 # If no C compiler flags were specified, use CFLAGS.
6143 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6144
6145 # Allow CC to be a program name with arguments.
6146 compiler=$CC
6147
6148
6149 # Check for command to grab the raw symbol name followed by C symbol from nm.
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6151 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6152 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6153   $as_echo_n "(cached) " >&6
6154 else
6155   
6156 # These are sane defaults that work on at least a few old systems.
6157 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6158
6159 # Character class describing NM global symbol codes.
6160 symcode='[BCDEGRST]'
6161
6162 # Regexp to match symbols that can be accessed directly from C.
6163 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6164
6165 # Define system-specific variables.
6166 case $host_os in
6167 aix*)
6168   symcode='[BCDT]'
6169   ;;
6170 cygwin* | mingw* | pw32* | cegcc*)
6171   symcode='[ABCDGISTW]'
6172   ;;
6173 hpux*)
6174   if test "$host_cpu" = ia64; then
6175     symcode='[ABCDEGRST]'
6176   fi
6177   ;;
6178 irix* | nonstopux*)
6179   symcode='[BCDEGRST]'
6180   ;;
6181 osf*)
6182   symcode='[BCDEGQRST]'
6183   ;;
6184 solaris*)
6185   symcode='[BDRT]'
6186   ;;
6187 sco3.2v5*)
6188   symcode='[DT]'
6189   ;;
6190 sysv4.2uw2*)
6191   symcode='[DT]'
6192   ;;
6193 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6194   symcode='[ABDT]'
6195   ;;
6196 sysv4)
6197   symcode='[DFNSTU]'
6198   ;;
6199 esac
6200
6201 # If we're using GNU nm, then use its standard symbol codes.
6202 case `$NM -V 2>&1` in
6203 *GNU* | *'with BFD'*)
6204   symcode='[ABCDGIRSTW]' ;;
6205 esac
6206
6207 # Transform an extracted symbol line into a proper C declaration.
6208 # Some systems (esp. on ia64) link data and code symbols differently,
6209 # so use this general approach.
6210 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6211
6212 # Transform an extracted symbol line into symbol name and symbol address
6213 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6214 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'"
6215
6216 # Handle CRLF in mingw tool chain
6217 opt_cr=
6218 case $build_os in
6219 mingw*)
6220   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6221   ;;
6222 esac
6223
6224 # Try without a prefix underscore, then with it.
6225 for ac_symprfx in "" "_"; do
6226
6227   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6228   symxfrm="\\1 $ac_symprfx\\2 \\2"
6229
6230   # Write the raw and C identifiers.
6231   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6232     # Fake it for dumpbin and say T for any non-static function
6233     # and D for any global variable.
6234     # Also find C++ and __fastcall symbols from MSVC++,
6235     # which start with @ or ?.
6236     lt_cv_sys_global_symbol_pipe="$AWK '"\
6237 "     {last_section=section; section=\$ 3};"\
6238 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6239 "     \$ 0!~/External *\|/{next};"\
6240 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6241 "     {if(hide[section]) next};"\
6242 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6243 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6244 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6245 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6246 "     ' prfx=^$ac_symprfx"
6247   else
6248     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6249   fi
6250
6251   # Check to see that the pipe works correctly.
6252   pipe_works=no
6253
6254   rm -f conftest*
6255   cat > conftest.$ac_ext <<_LT_EOF
6256 #ifdef __cplusplus
6257 extern "C" {
6258 #endif
6259 char nm_test_var;
6260 void nm_test_func(void);
6261 void nm_test_func(void){}
6262 #ifdef __cplusplus
6263 }
6264 #endif
6265 int main(){nm_test_var='a';nm_test_func();return(0);}
6266 _LT_EOF
6267
6268   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6269   (eval $ac_compile) 2>&5
6270   ac_status=$?
6271   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6272   test $ac_status = 0; }; then
6273     # Now try to grab the symbols.
6274     nlist=conftest.nm
6275     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6276   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6277   ac_status=$?
6278   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6279   test $ac_status = 0; } && test -s "$nlist"; then
6280       # Try sorting and uniquifying the output.
6281       if sort "$nlist" | uniq > "$nlist"T; then
6282         mv -f "$nlist"T "$nlist"
6283       else
6284         rm -f "$nlist"T
6285       fi
6286
6287       # Make sure that we snagged all the symbols we need.
6288       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6289         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6290           cat <<_LT_EOF > conftest.$ac_ext
6291 #ifdef __cplusplus
6292 extern "C" {
6293 #endif
6294
6295 _LT_EOF
6296           # Now generate the symbol file.
6297           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6298
6299           cat <<_LT_EOF >> conftest.$ac_ext
6300
6301 /* The mapping between symbol names and symbols.  */
6302 const struct {
6303   const char *name;
6304   void       *address;
6305 }
6306 lt__PROGRAM__LTX_preloaded_symbols[] =
6307 {
6308   { "@PROGRAM@", (void *) 0 },
6309 _LT_EOF
6310           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6311           cat <<\_LT_EOF >> conftest.$ac_ext
6312   {0, (void *) 0}
6313 };
6314
6315 /* This works around a problem in FreeBSD linker */
6316 #ifdef FREEBSD_WORKAROUND
6317 static const void *lt_preloaded_setup() {
6318   return lt__PROGRAM__LTX_preloaded_symbols;
6319 }
6320 #endif
6321
6322 #ifdef __cplusplus
6323 }
6324 #endif
6325 _LT_EOF
6326           # Now try linking the two files.
6327           mv conftest.$ac_objext conftstm.$ac_objext
6328           lt_save_LIBS="$LIBS"
6329           lt_save_CFLAGS="$CFLAGS"
6330           LIBS="conftstm.$ac_objext"
6331           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6332           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6333   (eval $ac_link) 2>&5
6334   ac_status=$?
6335   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6336   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6337             pipe_works=yes
6338           fi
6339           LIBS="$lt_save_LIBS"
6340           CFLAGS="$lt_save_CFLAGS"
6341         else
6342           echo "cannot find nm_test_func in $nlist" >&5
6343         fi
6344       else
6345         echo "cannot find nm_test_var in $nlist" >&5
6346       fi
6347     else
6348       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6349     fi
6350   else
6351     echo "$progname: failed program was:" >&5
6352     cat conftest.$ac_ext >&5
6353   fi
6354   rm -rf conftest* conftst*
6355
6356   # Do not use the global_symbol_pipe unless it works.
6357   if test "$pipe_works" = yes; then
6358     break
6359   else
6360     lt_cv_sys_global_symbol_pipe=
6361   fi
6362 done
6363
6364 fi
6365
6366 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6367   lt_cv_sys_global_symbol_to_cdecl=
6368 fi
6369 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6371 $as_echo "failed" >&6; }
6372 else
6373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6374 $as_echo "ok" >&6; }
6375 fi
6376
6377
6378     
6379     
6380     
6381
6382
6383     
6384     
6385     
6386
6387
6388     
6389     
6390     
6391
6392
6393     
6394     
6395     
6396
6397
6398
6399 @%:@ Check whether --enable-libtool-lock was given.
6400 if test "${enable_libtool_lock+set}" = set; then :
6401   enableval=$enable_libtool_lock; 
6402 fi
6403
6404 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6405
6406 # Some flags need to be propagated to the compiler or linker for good
6407 # libtool support.
6408 case $host in
6409 ia64-*-hpux*)
6410   # Find out which ABI we are using.
6411   echo 'int i;' > conftest.$ac_ext
6412   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6413   (eval $ac_compile) 2>&5
6414   ac_status=$?
6415   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6416   test $ac_status = 0; }; then
6417     case `/usr/bin/file conftest.$ac_objext` in
6418       *ELF-32*)
6419         HPUX_IA64_MODE="32"
6420         ;;
6421       *ELF-64*)
6422         HPUX_IA64_MODE="64"
6423         ;;
6424     esac
6425   fi
6426   rm -rf conftest*
6427   ;;
6428 *-*-irix6*)
6429   # Find out which ABI we are using.
6430   echo '#line __oline__ "configure"' > conftest.$ac_ext
6431   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6432   (eval $ac_compile) 2>&5
6433   ac_status=$?
6434   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6435   test $ac_status = 0; }; then
6436     if test "$lt_cv_prog_gnu_ld" = yes; then
6437       case `/usr/bin/file conftest.$ac_objext` in
6438         *32-bit*)
6439           LD="${LD-ld} -melf32bsmip"
6440           ;;
6441         *N32*)
6442           LD="${LD-ld} -melf32bmipn32"
6443           ;;
6444         *64-bit*)
6445           LD="${LD-ld} -melf64bmip"
6446         ;;
6447       esac
6448     else
6449       case `/usr/bin/file conftest.$ac_objext` in
6450         *32-bit*)
6451           LD="${LD-ld} -32"
6452           ;;
6453         *N32*)
6454           LD="${LD-ld} -n32"
6455           ;;
6456         *64-bit*)
6457           LD="${LD-ld} -64"
6458           ;;
6459       esac
6460     fi
6461   fi
6462   rm -rf conftest*
6463   ;;
6464
6465 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6466 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6467   # Find out which ABI we are using.
6468   echo 'int i;' > conftest.$ac_ext
6469   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6470   (eval $ac_compile) 2>&5
6471   ac_status=$?
6472   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6473   test $ac_status = 0; }; then
6474     case `/usr/bin/file conftest.o` in
6475       *32-bit*)
6476         case $host in
6477           x86_64-*kfreebsd*-gnu)
6478             LD="${LD-ld} -m elf_i386_fbsd"
6479             ;;
6480           x86_64-*linux*)
6481             LD="${LD-ld} -m elf_i386"
6482             ;;
6483           ppc64-*linux*|powerpc64-*linux*)
6484             LD="${LD-ld} -m elf32ppclinux"
6485             ;;
6486           s390x-*linux*)
6487             LD="${LD-ld} -m elf_s390"
6488             ;;
6489           sparc64-*linux*)
6490             LD="${LD-ld} -m elf32_sparc"
6491             ;;
6492         esac
6493         ;;
6494       *64-bit*)
6495         case $host in
6496           x86_64-*kfreebsd*-gnu)
6497             LD="${LD-ld} -m elf_x86_64_fbsd"
6498             ;;
6499           x86_64-*linux*)
6500             LD="${LD-ld} -m elf_x86_64"
6501             ;;
6502           ppc*-*linux*|powerpc*-*linux*)
6503             LD="${LD-ld} -m elf64ppc"
6504             ;;
6505           s390*-*linux*|s390*-*tpf*)
6506             LD="${LD-ld} -m elf64_s390"
6507             ;;
6508           sparc*-*linux*)
6509             LD="${LD-ld} -m elf64_sparc"
6510             ;;
6511         esac
6512         ;;
6513     esac
6514   fi
6515   rm -rf conftest*
6516   ;;
6517
6518 *-*-sco3.2v5*)
6519   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6520   SAVE_CFLAGS="$CFLAGS"
6521   CFLAGS="$CFLAGS -belf"
6522   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6523 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6524 if ${lt_cv_cc_needs_belf+:} false; then :
6525   $as_echo_n "(cached) " >&6
6526 else
6527   ac_ext=c
6528 ac_cpp='$CPP $CPPFLAGS'
6529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6532
6533      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534 /* end confdefs.h.  */
6535
6536 int
6537 main ()
6538 {
6539
6540   ;
6541   return 0;
6542 }
6543 _ACEOF
6544 if ac_fn_c_try_link "$LINENO"; then :
6545   lt_cv_cc_needs_belf=yes
6546 else
6547   lt_cv_cc_needs_belf=no
6548 fi
6549 rm -f core conftest.err conftest.$ac_objext \
6550     conftest$ac_exeext conftest.$ac_ext
6551      ac_ext=c
6552 ac_cpp='$CPP $CPPFLAGS'
6553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6556
6557 fi
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6559 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6560   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6561     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6562     CFLAGS="$SAVE_CFLAGS"
6563   fi
6564   ;;
6565 sparc*-*solaris*)
6566   # Find out which ABI we are using.
6567   echo 'int i;' > conftest.$ac_ext
6568   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6569   (eval $ac_compile) 2>&5
6570   ac_status=$?
6571   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6572   test $ac_status = 0; }; then
6573     case `/usr/bin/file conftest.o` in
6574     *64-bit*)
6575       case $lt_cv_prog_gnu_ld in
6576       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6577       *)
6578         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6579           LD="${LD-ld} -64"
6580         fi
6581         ;;
6582       esac
6583       ;;
6584     esac
6585   fi
6586   rm -rf conftest*
6587   ;;
6588 esac
6589
6590 need_locks="$enable_libtool_lock"
6591
6592
6593   case $host_os in
6594     rhapsody* | darwin*)
6595     if test -n "$ac_tool_prefix"; then
6596   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6597 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6599 $as_echo_n "checking for $ac_word... " >&6; }
6600 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6601   $as_echo_n "(cached) " >&6
6602 else
6603   if test -n "$DSYMUTIL"; then
6604   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6605 else
6606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607 for as_dir in $PATH
6608 do
6609   IFS=$as_save_IFS
6610   test -z "$as_dir" && as_dir=.
6611     for ac_exec_ext in '' $ac_executable_extensions; do
6612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6613     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6615     break 2
6616   fi
6617 done
6618   done
6619 IFS=$as_save_IFS
6620
6621 fi
6622 fi
6623 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6624 if test -n "$DSYMUTIL"; then
6625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6626 $as_echo "$DSYMUTIL" >&6; }
6627 else
6628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6629 $as_echo "no" >&6; }
6630 fi
6631
6632
6633 fi
6634 if test -z "$ac_cv_prog_DSYMUTIL"; then
6635   ac_ct_DSYMUTIL=$DSYMUTIL
6636   # Extract the first word of "dsymutil", so it can be a program name with args.
6637 set dummy dsymutil; ac_word=$2
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6639 $as_echo_n "checking for $ac_word... " >&6; }
6640 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6641   $as_echo_n "(cached) " >&6
6642 else
6643   if test -n "$ac_ct_DSYMUTIL"; then
6644   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6645 else
6646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647 for as_dir in $PATH
6648 do
6649   IFS=$as_save_IFS
6650   test -z "$as_dir" && as_dir=.
6651     for ac_exec_ext in '' $ac_executable_extensions; do
6652   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6653     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6654     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6655     break 2
6656   fi
6657 done
6658   done
6659 IFS=$as_save_IFS
6660
6661 fi
6662 fi
6663 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6664 if test -n "$ac_ct_DSYMUTIL"; then
6665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6666 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6667 else
6668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6669 $as_echo "no" >&6; }
6670 fi
6671
6672   if test "x$ac_ct_DSYMUTIL" = x; then
6673     DSYMUTIL=":"
6674   else
6675     case $cross_compiling:$ac_tool_warned in
6676 yes:)
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6679 ac_tool_warned=yes ;;
6680 esac
6681     DSYMUTIL=$ac_ct_DSYMUTIL
6682   fi
6683 else
6684   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6685 fi
6686
6687     if test -n "$ac_tool_prefix"; then
6688   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6689 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6691 $as_echo_n "checking for $ac_word... " >&6; }
6692 if ${ac_cv_prog_NMEDIT+:} false; then :
6693   $as_echo_n "(cached) " >&6
6694 else
6695   if test -n "$NMEDIT"; then
6696   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6697 else
6698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699 for as_dir in $PATH
6700 do
6701   IFS=$as_save_IFS
6702   test -z "$as_dir" && as_dir=.
6703     for ac_exec_ext in '' $ac_executable_extensions; do
6704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6705     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6707     break 2
6708   fi
6709 done
6710   done
6711 IFS=$as_save_IFS
6712
6713 fi
6714 fi
6715 NMEDIT=$ac_cv_prog_NMEDIT
6716 if test -n "$NMEDIT"; then
6717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6718 $as_echo "$NMEDIT" >&6; }
6719 else
6720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6721 $as_echo "no" >&6; }
6722 fi
6723
6724
6725 fi
6726 if test -z "$ac_cv_prog_NMEDIT"; then
6727   ac_ct_NMEDIT=$NMEDIT
6728   # Extract the first word of "nmedit", so it can be a program name with args.
6729 set dummy nmedit; ac_word=$2
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6731 $as_echo_n "checking for $ac_word... " >&6; }
6732 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6733   $as_echo_n "(cached) " >&6
6734 else
6735   if test -n "$ac_ct_NMEDIT"; then
6736   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6737 else
6738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 for as_dir in $PATH
6740 do
6741   IFS=$as_save_IFS
6742   test -z "$as_dir" && as_dir=.
6743     for ac_exec_ext in '' $ac_executable_extensions; do
6744   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6745     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6747     break 2
6748   fi
6749 done
6750   done
6751 IFS=$as_save_IFS
6752
6753 fi
6754 fi
6755 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6756 if test -n "$ac_ct_NMEDIT"; then
6757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6758 $as_echo "$ac_ct_NMEDIT" >&6; }
6759 else
6760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761 $as_echo "no" >&6; }
6762 fi
6763
6764   if test "x$ac_ct_NMEDIT" = x; then
6765     NMEDIT=":"
6766   else
6767     case $cross_compiling:$ac_tool_warned in
6768 yes:)
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6771 ac_tool_warned=yes ;;
6772 esac
6773     NMEDIT=$ac_ct_NMEDIT
6774   fi
6775 else
6776   NMEDIT="$ac_cv_prog_NMEDIT"
6777 fi
6778
6779     if test -n "$ac_tool_prefix"; then
6780   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6781 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6783 $as_echo_n "checking for $ac_word... " >&6; }
6784 if ${ac_cv_prog_LIPO+:} false; then :
6785   $as_echo_n "(cached) " >&6
6786 else
6787   if test -n "$LIPO"; then
6788   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6789 else
6790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791 for as_dir in $PATH
6792 do
6793   IFS=$as_save_IFS
6794   test -z "$as_dir" && as_dir=.
6795     for ac_exec_ext in '' $ac_executable_extensions; do
6796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6797     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6799     break 2
6800   fi
6801 done
6802   done
6803 IFS=$as_save_IFS
6804
6805 fi
6806 fi
6807 LIPO=$ac_cv_prog_LIPO
6808 if test -n "$LIPO"; then
6809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6810 $as_echo "$LIPO" >&6; }
6811 else
6812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6813 $as_echo "no" >&6; }
6814 fi
6815
6816
6817 fi
6818 if test -z "$ac_cv_prog_LIPO"; then
6819   ac_ct_LIPO=$LIPO
6820   # Extract the first word of "lipo", so it can be a program name with args.
6821 set dummy lipo; ac_word=$2
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6823 $as_echo_n "checking for $ac_word... " >&6; }
6824 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6825   $as_echo_n "(cached) " >&6
6826 else
6827   if test -n "$ac_ct_LIPO"; then
6828   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6829 else
6830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831 for as_dir in $PATH
6832 do
6833   IFS=$as_save_IFS
6834   test -z "$as_dir" && as_dir=.
6835     for ac_exec_ext in '' $ac_executable_extensions; do
6836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6837     ac_cv_prog_ac_ct_LIPO="lipo"
6838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6839     break 2
6840   fi
6841 done
6842   done
6843 IFS=$as_save_IFS
6844
6845 fi
6846 fi
6847 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6848 if test -n "$ac_ct_LIPO"; then
6849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6850 $as_echo "$ac_ct_LIPO" >&6; }
6851 else
6852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6853 $as_echo "no" >&6; }
6854 fi
6855
6856   if test "x$ac_ct_LIPO" = x; then
6857     LIPO=":"
6858   else
6859     case $cross_compiling:$ac_tool_warned in
6860 yes:)
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6863 ac_tool_warned=yes ;;
6864 esac
6865     LIPO=$ac_ct_LIPO
6866   fi
6867 else
6868   LIPO="$ac_cv_prog_LIPO"
6869 fi
6870
6871     if test -n "$ac_tool_prefix"; then
6872   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6873 set dummy ${ac_tool_prefix}otool; ac_word=$2
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6875 $as_echo_n "checking for $ac_word... " >&6; }
6876 if ${ac_cv_prog_OTOOL+:} false; then :
6877   $as_echo_n "(cached) " >&6
6878 else
6879   if test -n "$OTOOL"; then
6880   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6881 else
6882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883 for as_dir in $PATH
6884 do
6885   IFS=$as_save_IFS
6886   test -z "$as_dir" && as_dir=.
6887     for ac_exec_ext in '' $ac_executable_extensions; do
6888   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6889     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6891     break 2
6892   fi
6893 done
6894   done
6895 IFS=$as_save_IFS
6896
6897 fi
6898 fi
6899 OTOOL=$ac_cv_prog_OTOOL
6900 if test -n "$OTOOL"; then
6901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6902 $as_echo "$OTOOL" >&6; }
6903 else
6904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6905 $as_echo "no" >&6; }
6906 fi
6907
6908
6909 fi
6910 if test -z "$ac_cv_prog_OTOOL"; then
6911   ac_ct_OTOOL=$OTOOL
6912   # Extract the first word of "otool", so it can be a program name with args.
6913 set dummy otool; 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_ac_ct_OTOOL+:} false; then :
6917   $as_echo_n "(cached) " >&6
6918 else
6919   if test -n "$ac_ct_OTOOL"; then
6920   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # 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_ac_ct_OTOOL="otool"
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 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6940 if test -n "$ac_ct_OTOOL"; then
6941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6942 $as_echo "$ac_ct_OTOOL" >&6; }
6943 else
6944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6945 $as_echo "no" >&6; }
6946 fi
6947
6948   if test "x$ac_ct_OTOOL" = x; then
6949     OTOOL=":"
6950   else
6951     case $cross_compiling:$ac_tool_warned in
6952 yes:)
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6955 ac_tool_warned=yes ;;
6956 esac
6957     OTOOL=$ac_ct_OTOOL
6958   fi
6959 else
6960   OTOOL="$ac_cv_prog_OTOOL"
6961 fi
6962
6963     if test -n "$ac_tool_prefix"; then
6964   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6965 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6967 $as_echo_n "checking for $ac_word... " >&6; }
6968 if ${ac_cv_prog_OTOOL64+:} false; then :
6969   $as_echo_n "(cached) " >&6
6970 else
6971   if test -n "$OTOOL64"; then
6972   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6973 else
6974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975 for as_dir in $PATH
6976 do
6977   IFS=$as_save_IFS
6978   test -z "$as_dir" && as_dir=.
6979     for ac_exec_ext in '' $ac_executable_extensions; do
6980   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6981     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6982     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6983     break 2
6984   fi
6985 done
6986   done
6987 IFS=$as_save_IFS
6988
6989 fi
6990 fi
6991 OTOOL64=$ac_cv_prog_OTOOL64
6992 if test -n "$OTOOL64"; then
6993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6994 $as_echo "$OTOOL64" >&6; }
6995 else
6996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6997 $as_echo "no" >&6; }
6998 fi
6999
7000
7001 fi
7002 if test -z "$ac_cv_prog_OTOOL64"; then
7003   ac_ct_OTOOL64=$OTOOL64
7004   # Extract the first word of "otool64", so it can be a program name with args.
7005 set dummy otool64; ac_word=$2
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7007 $as_echo_n "checking for $ac_word... " >&6; }
7008 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7009   $as_echo_n "(cached) " >&6
7010 else
7011   if test -n "$ac_ct_OTOOL64"; then
7012   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7013 else
7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015 for as_dir in $PATH
7016 do
7017   IFS=$as_save_IFS
7018   test -z "$as_dir" && as_dir=.
7019     for ac_exec_ext in '' $ac_executable_extensions; do
7020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7021     ac_cv_prog_ac_ct_OTOOL64="otool64"
7022     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7023     break 2
7024   fi
7025 done
7026   done
7027 IFS=$as_save_IFS
7028
7029 fi
7030 fi
7031 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7032 if test -n "$ac_ct_OTOOL64"; then
7033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7034 $as_echo "$ac_ct_OTOOL64" >&6; }
7035 else
7036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7037 $as_echo "no" >&6; }
7038 fi
7039
7040   if test "x$ac_ct_OTOOL64" = x; then
7041     OTOOL64=":"
7042   else
7043     case $cross_compiling:$ac_tool_warned in
7044 yes:)
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7047 ac_tool_warned=yes ;;
7048 esac
7049     OTOOL64=$ac_ct_OTOOL64
7050   fi
7051 else
7052   OTOOL64="$ac_cv_prog_OTOOL64"
7053 fi
7054
7055     
7056     
7057     
7058     
7059
7060     
7061     
7062     
7063     
7064
7065     
7066     
7067     
7068     
7069
7070     
7071     
7072     
7073     
7074
7075     
7076     
7077     
7078     
7079
7080
7081     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7082 $as_echo_n "checking for -single_module linker flag... " >&6; }
7083 if ${lt_cv_apple_cc_single_mod+:} false; then :
7084   $as_echo_n "(cached) " >&6
7085 else
7086   lt_cv_apple_cc_single_mod=no
7087       if test -z "${LT_MULTI_MODULE}"; then
7088         # By default we will add the -single_module flag. You can override
7089         # by either setting the environment variable LT_MULTI_MODULE
7090         # non-empty at configure time, or by adding -multi_module to the
7091         # link flags.
7092         rm -rf libconftest.dylib*
7093         echo "int foo(void){return 1;}" > conftest.c
7094         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7095 -dynamiclib -Wl,-single_module conftest.c" >&5
7096         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7097           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7098         _lt_result=$?
7099         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7100           lt_cv_apple_cc_single_mod=yes
7101         else
7102           cat conftest.err >&5
7103         fi
7104         rm -rf libconftest.dylib*
7105         rm -f conftest.*
7106       fi
7107 fi
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7109 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7110     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7111 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7112 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7113   $as_echo_n "(cached) " >&6
7114 else
7115   lt_cv_ld_exported_symbols_list=no
7116       save_LDFLAGS=$LDFLAGS
7117       echo "_main" > conftest.sym
7118       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7119       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7120 /* end confdefs.h.  */
7121
7122 int
7123 main ()
7124 {
7125
7126   ;
7127   return 0;
7128 }
7129 _ACEOF
7130 if ac_fn_c_try_link "$LINENO"; then :
7131   lt_cv_ld_exported_symbols_list=yes
7132 else
7133   lt_cv_ld_exported_symbols_list=no
7134 fi
7135 rm -f core conftest.err conftest.$ac_objext \
7136     conftest$ac_exeext conftest.$ac_ext
7137         LDFLAGS="$save_LDFLAGS"
7138     
7139 fi
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7141 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7142     case $host_os in
7143     rhapsody* | darwin1.[012])
7144       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7145     darwin1.*)
7146       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7147     darwin*) # darwin 5.x on
7148       # if running on 10.5 or later, the deployment target defaults
7149       # to the OS version, if on x86, and 10.4, the deployment
7150       # target defaults to 10.4. Don't you love it?
7151       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7152         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7153           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7154         10.[012]*)
7155           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7156         10.*)
7157           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7158       esac
7159     ;;
7160   esac
7161     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7162       _lt_dar_single_mod='$single_module'
7163     fi
7164     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7165       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7166     else
7167       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7168     fi
7169     if test "$DSYMUTIL" != ":"; then
7170       _lt_dsymutil='~$DSYMUTIL $lib || :'
7171     else
7172       _lt_dsymutil=
7173     fi
7174     ;;
7175   esac
7176
7177
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7179 $as_echo_n "checking for ANSI C header files... " >&6; }
7180 if ${ac_cv_header_stdc+:} false; then :
7181   $as_echo_n "(cached) " >&6
7182 else
7183   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7184 /* end confdefs.h.  */
7185 #include <stdlib.h>
7186 #include <stdarg.h>
7187 #include <string.h>
7188 #include <float.h>
7189
7190 int
7191 main ()
7192 {
7193
7194   ;
7195   return 0;
7196 }
7197 _ACEOF
7198 if ac_fn_c_try_compile "$LINENO"; then :
7199   ac_cv_header_stdc=yes
7200 else
7201   ac_cv_header_stdc=no
7202 fi
7203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7204
7205 if test $ac_cv_header_stdc = yes; then
7206   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7207   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7208 /* end confdefs.h.  */
7209 #include <string.h>
7210
7211 _ACEOF
7212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7213   $EGREP "memchr" >/dev/null 2>&1; then :
7214   
7215 else
7216   ac_cv_header_stdc=no
7217 fi
7218 rm -f conftest*
7219
7220 fi
7221
7222 if test $ac_cv_header_stdc = yes; then
7223   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7225 /* end confdefs.h.  */
7226 #include <stdlib.h>
7227
7228 _ACEOF
7229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7230   $EGREP "free" >/dev/null 2>&1; then :
7231   
7232 else
7233   ac_cv_header_stdc=no
7234 fi
7235 rm -f conftest*
7236
7237 fi
7238
7239 if test $ac_cv_header_stdc = yes; then
7240   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7241   if test "$cross_compiling" = yes; then :
7242   :
7243 else
7244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7245 /* end confdefs.h.  */
7246 #include <ctype.h>
7247 #include <stdlib.h>
7248 #if ((' ' & 0x0FF) == 0x020)
7249 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7250 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7251 #else
7252 # define ISLOWER(c) \
7253                    (('a' <= (c) && (c) <= 'i') \
7254                      || ('j' <= (c) && (c) <= 'r') \
7255                      || ('s' <= (c) && (c) <= 'z'))
7256 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7257 #endif
7258
7259 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7260 int
7261 main ()
7262 {
7263   int i;
7264   for (i = 0; i < 256; i++)
7265     if (XOR (islower (i), ISLOWER (i))
7266         || toupper (i) != TOUPPER (i))
7267       return 2;
7268   return 0;
7269 }
7270 _ACEOF
7271 if ac_fn_c_try_run "$LINENO"; then :
7272   
7273 else
7274   ac_cv_header_stdc=no
7275 fi
7276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7277   conftest.$ac_objext conftest.beam conftest.$ac_ext
7278 fi
7279
7280 fi
7281 fi
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7283 $as_echo "$ac_cv_header_stdc" >&6; }
7284 if test $ac_cv_header_stdc = yes; then
7285   
7286 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
7287
7288 fi
7289
7290 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7291 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7292                   inttypes.h stdint.h unistd.h
7293 do :
7294   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7295 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7296 "
7297 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7298   cat >>confdefs.h <<_ACEOF
7299 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7300 _ACEOF
7301  
7302 fi
7303
7304 done
7305
7306
7307 for ac_header in dlfcn.h
7308 do :
7309   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7310 "
7311 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7312   cat >>confdefs.h <<_ACEOF
7313 @%:@define HAVE_DLFCN_H 1
7314 _ACEOF
7315  
7316 fi
7317
7318 done
7319
7320
7321
7322 # Set options
7323
7324
7325
7326         
7327   
7328             @%:@ Check whether --enable-shared was given.
7329 if test "${enable_shared+set}" = set; then :
7330   enableval=$enable_shared; p=${PACKAGE-default}
7331     case $enableval in
7332     yes) enable_shared=yes ;;
7333     no) enable_shared=no ;;
7334     *)
7335       enable_shared=no
7336       # Look at the argument we got.  We use all the common list separators.
7337       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7338       for pkg in $enableval; do
7339         IFS="$lt_save_ifs"
7340         if test "X$pkg" = "X$p"; then
7341           enable_shared=yes
7342         fi
7343       done
7344       IFS="$lt_save_ifs"
7345       ;;
7346     esac
7347 else
7348   enable_shared=yes
7349 fi
7350
7351
7352     
7353     
7354     
7355     
7356
7357
7358
7359   
7360   
7361 @%:@ Check whether --with-pic was given.
7362 if test "${with_pic+set}" = set; then :
7363   withval=$with_pic; pic_mode="$withval"
7364 else
7365   pic_mode=default
7366 fi
7367
7368
7369 test -z "$pic_mode" && pic_mode=default
7370
7371
7372     
7373     
7374     
7375
7376
7377   @%:@ Check whether --enable-fast-install was given.
7378 if test "${enable_fast_install+set}" = set; then :
7379   enableval=$enable_fast_install; p=${PACKAGE-default}
7380     case $enableval in
7381     yes) enable_fast_install=yes ;;
7382     no) enable_fast_install=no ;;
7383     *)
7384       enable_fast_install=no
7385       # Look at the argument we got.  We use all the common list separators.
7386       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7387       for pkg in $enableval; do
7388         IFS="$lt_save_ifs"
7389         if test "X$pkg" = "X$p"; then
7390           enable_fast_install=yes
7391         fi
7392       done
7393       IFS="$lt_save_ifs"
7394       ;;
7395     esac
7396 else
7397   enable_fast_install=yes
7398 fi
7399
7400
7401
7402     
7403     
7404     
7405
7406
7407   
7408
7409
7410 # This can be used to rebuild libtool when needed
7411 LIBTOOL_DEPS="$ltmain"
7412
7413 # Always use our own libtool.
7414 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7415
7416
7417     
7418     
7419     
7420
7421     
7422     
7423     
7424
7425     
7426     
7427     
7428
7429     
7430     
7431     
7432
7433     
7434     
7435     
7436
7437     
7438     
7439     
7440 test -z "$LN_S" && LN_S="ln -s"
7441
7442     
7443     
7444     
7445
7446     
7447     
7448     
7449
7450     
7451     
7452     
7453
7454
7455 if test -n "${ZSH_VERSION+set}" ; then
7456    setopt NO_GLOB_SUBST
7457 fi
7458
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7460 $as_echo_n "checking for objdir... " >&6; }
7461 if ${lt_cv_objdir+:} false; then :
7462   $as_echo_n "(cached) " >&6
7463 else
7464   rm -f .libs 2>/dev/null
7465 mkdir .libs 2>/dev/null
7466 if test -d .libs; then
7467   lt_cv_objdir=.libs
7468 else
7469   # MS-DOS does not allow filenames that begin with a dot.
7470   lt_cv_objdir=_libs
7471 fi
7472 rmdir .libs 2>/dev/null
7473 fi
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7475 $as_echo "$lt_cv_objdir" >&6; }
7476 objdir=$lt_cv_objdir
7477
7478     
7479     
7480     
7481
7482 cat >>confdefs.h <<_ACEOF
7483 @%:@define LT_OBJDIR "$lt_cv_objdir/"
7484 _ACEOF
7485
7486
7487
7488
7489
7490
7491     
7492     
7493     
7494
7495
7496     
7497     
7498     
7499
7500
7501
7502 case $host_os in
7503 aix3*)
7504   # AIX sometimes has problems with the GCC collect2 program.  For some
7505   # reason, if we set the COLLECT_NAMES environment variable, the problems
7506   # vanish in a puff of smoke.
7507   if test "X${COLLECT_NAMES+set}" != Xset; then
7508     COLLECT_NAMES=
7509     export COLLECT_NAMES
7510   fi
7511   ;;
7512 esac
7513
7514 # Sed substitution that helps us do robust quoting.  It backslashifies
7515 # metacharacters that are still active within double-quoted strings.
7516 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7517
7518 # Same as above, but do not quote variable references.
7519 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7520
7521 # Sed substitution to delay expansion of an escaped shell variable in a
7522 # double_quote_subst'ed string.
7523 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7524
7525 # Sed substitution to delay expansion of an escaped single quote.
7526 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7527
7528 # Sed substitution to avoid accidental globbing in evaled expressions
7529 no_glob_subst='s/\*/\\\*/g'
7530
7531 # Global variables:
7532 ofile=libtool
7533 can_build_shared=yes
7534
7535 # All known linkers require a `.a' archive for static linking (except MSVC,
7536 # which needs '.lib').
7537 libext=a
7538
7539 with_gnu_ld="$lt_cv_prog_gnu_ld"
7540
7541 old_CC="$CC"
7542 old_CFLAGS="$CFLAGS"
7543
7544 # Set sane defaults for various variables
7545 test -z "$CC" && CC=cc
7546 test -z "$LTCC" && LTCC=$CC
7547 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7548 test -z "$LD" && LD=ld
7549 test -z "$ac_objext" && ac_objext=o
7550
7551 for cc_temp in $compiler""; do
7552   case $cc_temp in
7553     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7554     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7555     \-*) ;;
7556     *) break;;
7557   esac
7558 done
7559 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7560
7561
7562 # Only perform the check for file, if the check method requires it
7563 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7564 case $deplibs_check_method in
7565 file_magic*)
7566   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7567     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7568 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7569 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7570   $as_echo_n "(cached) " >&6
7571 else
7572   case $MAGIC_CMD in
7573 [\\/*] |  ?:[\\/]*)
7574   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7575   ;;
7576 *)
7577   lt_save_MAGIC_CMD="$MAGIC_CMD"
7578   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7579   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7580   for ac_dir in $ac_dummy; do
7581     IFS="$lt_save_ifs"
7582     test -z "$ac_dir" && ac_dir=.
7583     if test -f $ac_dir/${ac_tool_prefix}file; then
7584       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7585       if test -n "$file_magic_test_file"; then
7586         case $deplibs_check_method in
7587         "file_magic "*)
7588           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7589           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7590           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7591             $EGREP "$file_magic_regex" > /dev/null; then
7592             :
7593           else
7594             cat <<_LT_EOF 1>&2
7595
7596 *** Warning: the command libtool uses to detect shared libraries,
7597 *** $file_magic_cmd, produces output that libtool cannot recognize.
7598 *** The result is that libtool may fail to recognize shared libraries
7599 *** as such.  This will affect the creation of libtool libraries that
7600 *** depend on shared libraries, but programs linked with such libtool
7601 *** libraries will work regardless of this problem.  Nevertheless, you
7602 *** may want to report the problem to your system manager and/or to
7603 *** bug-libtool@gnu.org
7604
7605 _LT_EOF
7606           fi ;;
7607         esac
7608       fi
7609       break
7610     fi
7611   done
7612   IFS="$lt_save_ifs"
7613   MAGIC_CMD="$lt_save_MAGIC_CMD"
7614   ;;
7615 esac
7616 fi
7617
7618 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7619 if test -n "$MAGIC_CMD"; then
7620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7621 $as_echo "$MAGIC_CMD" >&6; }
7622 else
7623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7624 $as_echo "no" >&6; }
7625 fi
7626
7627     
7628     
7629     
7630
7631 if test -z "$lt_cv_path_MAGIC_CMD"; then
7632   if test -n "$ac_tool_prefix"; then
7633     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7634 $as_echo_n "checking for file... " >&6; }
7635 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7636   $as_echo_n "(cached) " >&6
7637 else
7638   case $MAGIC_CMD in
7639 [\\/*] |  ?:[\\/]*)
7640   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7641   ;;
7642 *)
7643   lt_save_MAGIC_CMD="$MAGIC_CMD"
7644   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7645   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7646   for ac_dir in $ac_dummy; do
7647     IFS="$lt_save_ifs"
7648     test -z "$ac_dir" && ac_dir=.
7649     if test -f $ac_dir/file; then
7650       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7651       if test -n "$file_magic_test_file"; then
7652         case $deplibs_check_method in
7653         "file_magic "*)
7654           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7655           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7656           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7657             $EGREP "$file_magic_regex" > /dev/null; then
7658             :
7659           else
7660             cat <<_LT_EOF 1>&2
7661
7662 *** Warning: the command libtool uses to detect shared libraries,
7663 *** $file_magic_cmd, produces output that libtool cannot recognize.
7664 *** The result is that libtool may fail to recognize shared libraries
7665 *** as such.  This will affect the creation of libtool libraries that
7666 *** depend on shared libraries, but programs linked with such libtool
7667 *** libraries will work regardless of this problem.  Nevertheless, you
7668 *** may want to report the problem to your system manager and/or to
7669 *** bug-libtool@gnu.org
7670
7671 _LT_EOF
7672           fi ;;
7673         esac
7674       fi
7675       break
7676     fi
7677   done
7678   IFS="$lt_save_ifs"
7679   MAGIC_CMD="$lt_save_MAGIC_CMD"
7680   ;;
7681 esac
7682 fi
7683
7684 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7685 if test -n "$MAGIC_CMD"; then
7686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7687 $as_echo "$MAGIC_CMD" >&6; }
7688 else
7689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7690 $as_echo "no" >&6; }
7691 fi
7692
7693
7694   else
7695     MAGIC_CMD=:
7696   fi
7697 fi
7698
7699   fi
7700   ;;
7701 esac
7702
7703 # Use C for the default configuration in the libtool script
7704
7705 lt_save_CC="$CC"
7706 ac_ext=c
7707 ac_cpp='$CPP $CPPFLAGS'
7708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7711
7712
7713 # Source file extension for C test sources.
7714 ac_ext=c
7715
7716 # Object file extension for compiled C test sources.
7717 objext=o
7718 objext=$objext
7719
7720 # Code to be used in simple compile tests
7721 lt_simple_compile_test_code="int some_variable = 0;"
7722
7723 # Code to be used in simple link tests
7724 lt_simple_link_test_code='int main(){return(0);}'
7725
7726
7727
7728
7729
7730
7731
7732 # If no C compiler was specified, use CC.
7733 LTCC=${LTCC-"$CC"}
7734
7735 # If no C compiler flags were specified, use CFLAGS.
7736 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7737
7738 # Allow CC to be a program name with arguments.
7739 compiler=$CC
7740
7741 # Save the default compiler, since it gets overwritten when the other
7742 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7743 compiler_DEFAULT=$CC
7744
7745 # save warnings/boilerplate of simple test code
7746 ac_outfile=conftest.$ac_objext
7747 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7748 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7749 _lt_compiler_boilerplate=`cat conftest.err`
7750 $RM conftest*
7751
7752 ac_outfile=conftest.$ac_objext
7753 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7754 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7755 _lt_linker_boilerplate=`cat conftest.err`
7756 $RM -r conftest*
7757
7758
7759 ## CAVEAT EMPTOR:
7760 ## There is no encapsulation within the following macros, do not change
7761 ## the running order or otherwise move them around unless you know exactly
7762 ## what you are doing...
7763 if test -n "$compiler"; then
7764   
7765 lt_prog_compiler_no_builtin_flag=
7766
7767 if test "$GCC" = yes; then
7768   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7769
7770   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7771 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7772 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7773   $as_echo_n "(cached) " >&6
7774 else
7775   lt_cv_prog_compiler_rtti_exceptions=no
7776    ac_outfile=conftest.$ac_objext
7777    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7778    lt_compiler_flag="-fno-rtti -fno-exceptions"
7779    # Insert the option either (1) after the last *FLAGS variable, or
7780    # (2) before a word containing "conftest.", or (3) at the end.
7781    # Note that $ac_compile itself does not contain backslashes and begins
7782    # with a dollar sign (not a hyphen), so the echo should work correctly.
7783    # The option is referenced via a variable to avoid confusing sed.
7784    lt_compile=`echo "$ac_compile" | $SED \
7785    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7786    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7787    -e 's:$: $lt_compiler_flag:'`
7788    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7789    (eval "$lt_compile" 2>conftest.err)
7790    ac_status=$?
7791    cat conftest.err >&5
7792    echo "$as_me:__oline__: \$? = $ac_status" >&5
7793    if (exit $ac_status) && test -s "$ac_outfile"; then
7794      # The compiler can only warn and ignore the option if not recognized
7795      # So say no if there are warnings other than the usual output.
7796      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7797      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7798      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7799        lt_cv_prog_compiler_rtti_exceptions=yes
7800      fi
7801    fi
7802    $RM conftest*
7803
7804 fi
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7806 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7807
7808 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7809     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7810 else
7811     :
7812 fi
7813
7814 fi
7815
7816     
7817     
7818     
7819
7820
7821   lt_prog_compiler_wl=
7822 lt_prog_compiler_pic=
7823 lt_prog_compiler_static=
7824
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7826 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7827
7828   if test "$GCC" = yes; then
7829     lt_prog_compiler_wl='-Wl,'
7830     lt_prog_compiler_static='-static'
7831
7832     case $host_os in
7833       aix*)
7834       # All AIX code is PIC.
7835       if test "$host_cpu" = ia64; then
7836         # AIX 5 now supports IA64 processor
7837         lt_prog_compiler_static='-Bstatic'
7838       fi
7839       ;;
7840
7841     amigaos*)
7842       case $host_cpu in
7843       powerpc)
7844             # see comment about AmigaOS4 .so support
7845             lt_prog_compiler_pic='-fPIC'
7846         ;;
7847       m68k)
7848             # FIXME: we need at least 68020 code to build shared libraries, but
7849             # adding the `-m68020' flag to GCC prevents building anything better,
7850             # like `-m68040'.
7851             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7852         ;;
7853       esac
7854       ;;
7855
7856     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7857       # PIC is the default for these OSes.
7858       ;;
7859
7860     mingw* | cygwin* | pw32* | os2* | cegcc*)
7861       # This hack is so that the source file can tell whether it is being
7862       # built for inclusion in a dll (and should export symbols for example).
7863       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7864       # (--disable-auto-import) libraries
7865       lt_prog_compiler_pic='-DDLL_EXPORT'
7866       ;;
7867
7868     darwin* | rhapsody*)
7869       # PIC is the default on this platform
7870       # Common symbols not allowed in MH_DYLIB files
7871       lt_prog_compiler_pic='-fno-common'
7872       ;;
7873
7874     hpux*)
7875       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7876       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7877       # sets the default TLS model and affects inlining.
7878       case $host_cpu in
7879       hppa*64*)
7880         # +Z the default
7881         ;;
7882       *)
7883         lt_prog_compiler_pic='-fPIC'
7884         ;;
7885       esac
7886       ;;
7887
7888     interix[3-9]*)
7889       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7890       # Instead, we relocate shared libraries at runtime.
7891       ;;
7892
7893     msdosdjgpp*)
7894       # Just because we use GCC doesn't mean we suddenly get shared libraries
7895       # on systems that don't support them.
7896       lt_prog_compiler_can_build_shared=no
7897       enable_shared=no
7898       ;;
7899
7900     *nto* | *qnx*)
7901       # QNX uses GNU C++, but need to define -shared option too, otherwise
7902       # it will coredump.
7903       lt_prog_compiler_pic='-fPIC -shared'
7904       ;;
7905
7906     sysv4*MP*)
7907       if test -d /usr/nec; then
7908         lt_prog_compiler_pic=-Kconform_pic
7909       fi
7910       ;;
7911
7912     *)
7913       lt_prog_compiler_pic='-fPIC'
7914       ;;
7915     esac
7916   else
7917     # PORTME Check for flag to pass linker flags through the system compiler.
7918     case $host_os in
7919     aix*)
7920       lt_prog_compiler_wl='-Wl,'
7921       if test "$host_cpu" = ia64; then
7922         # AIX 5 now supports IA64 processor
7923         lt_prog_compiler_static='-Bstatic'
7924       else
7925         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7926       fi
7927       ;;
7928
7929     mingw* | cygwin* | pw32* | os2* | cegcc*)
7930       # This hack is so that the source file can tell whether it is being
7931       # built for inclusion in a dll (and should export symbols for example).
7932       lt_prog_compiler_pic='-DDLL_EXPORT'
7933       ;;
7934
7935     hpux9* | hpux10* | hpux11*)
7936       lt_prog_compiler_wl='-Wl,'
7937       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7938       # not for PA HP-UX.
7939       case $host_cpu in
7940       hppa*64*|ia64*)
7941         # +Z the default
7942         ;;
7943       *)
7944         lt_prog_compiler_pic='+Z'
7945         ;;
7946       esac
7947       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7948       lt_prog_compiler_static='${wl}-a ${wl}archive'
7949       ;;
7950
7951     irix5* | irix6* | nonstopux*)
7952       lt_prog_compiler_wl='-Wl,'
7953       # PIC (with -KPIC) is the default.
7954       lt_prog_compiler_static='-non_shared'
7955       ;;
7956
7957     linux* | k*bsd*-gnu)
7958       case $cc_basename in
7959       # old Intel for x86_64 which still supported -KPIC.
7960       ecc*)
7961         lt_prog_compiler_wl='-Wl,'
7962         lt_prog_compiler_pic='-KPIC'
7963         lt_prog_compiler_static='-static'
7964         ;;
7965       # icc used to be incompatible with GCC.
7966       # ICC 10 doesn't accept -KPIC any more.
7967       icc* | ifort*)
7968         lt_prog_compiler_wl='-Wl,'
7969         lt_prog_compiler_pic='-fPIC'
7970         lt_prog_compiler_static='-static'
7971         ;;
7972       # Lahey Fortran 8.1.
7973       lf95*)
7974         lt_prog_compiler_wl='-Wl,'
7975         lt_prog_compiler_pic='--shared'
7976         lt_prog_compiler_static='--static'
7977         ;;
7978       pgcc* | pgf77* | pgf90* | pgf95*)
7979         # Portland Group compilers (*not* the Pentium gcc compiler,
7980         # which looks to be a dead project)
7981         lt_prog_compiler_wl='-Wl,'
7982         lt_prog_compiler_pic='-fpic'
7983         lt_prog_compiler_static='-Bstatic'
7984         ;;
7985       ccc*)
7986         lt_prog_compiler_wl='-Wl,'
7987         # All Alpha code is PIC.
7988         lt_prog_compiler_static='-non_shared'
7989         ;;
7990       xl*)
7991         # IBM XL C 8.0/Fortran 10.1 on PPC
7992         lt_prog_compiler_wl='-Wl,'
7993         lt_prog_compiler_pic='-qpic'
7994         lt_prog_compiler_static='-qstaticlink'
7995         ;;
7996       *)
7997         case `$CC -V 2>&1 | sed 5q` in
7998         *Sun\ C*)
7999           # Sun C 5.9
8000           lt_prog_compiler_pic='-KPIC'
8001           lt_prog_compiler_static='-Bstatic'
8002           lt_prog_compiler_wl='-Wl,'
8003           ;;
8004         *Sun\ F*)
8005           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8006           lt_prog_compiler_pic='-KPIC'
8007           lt_prog_compiler_static='-Bstatic'
8008           lt_prog_compiler_wl=''
8009           ;;
8010         esac
8011         ;;
8012       esac
8013       ;;
8014
8015     newsos6)
8016       lt_prog_compiler_pic='-KPIC'
8017       lt_prog_compiler_static='-Bstatic'
8018       ;;
8019
8020     *nto* | *qnx*)
8021       # QNX uses GNU C++, but need to define -shared option too, otherwise
8022       # it will coredump.
8023       lt_prog_compiler_pic='-fPIC -shared'
8024       ;;
8025
8026     osf3* | osf4* | osf5*)
8027       lt_prog_compiler_wl='-Wl,'
8028       # All OSF/1 code is PIC.
8029       lt_prog_compiler_static='-non_shared'
8030       ;;
8031
8032     rdos*)
8033       lt_prog_compiler_static='-non_shared'
8034       ;;
8035
8036     solaris*)
8037       lt_prog_compiler_pic='-KPIC'
8038       lt_prog_compiler_static='-Bstatic'
8039       case $cc_basename in
8040       f77* | f90* | f95*)
8041         lt_prog_compiler_wl='-Qoption ld ';;
8042       *)
8043         lt_prog_compiler_wl='-Wl,';;
8044       esac
8045       ;;
8046
8047     sunos4*)
8048       lt_prog_compiler_wl='-Qoption ld '
8049       lt_prog_compiler_pic='-PIC'
8050       lt_prog_compiler_static='-Bstatic'
8051       ;;
8052
8053     sysv4 | sysv4.2uw2* | sysv4.3*)
8054       lt_prog_compiler_wl='-Wl,'
8055       lt_prog_compiler_pic='-KPIC'
8056       lt_prog_compiler_static='-Bstatic'
8057       ;;
8058
8059     sysv4*MP*)
8060       if test -d /usr/nec ;then
8061         lt_prog_compiler_pic='-Kconform_pic'
8062         lt_prog_compiler_static='-Bstatic'
8063       fi
8064       ;;
8065
8066     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8067       lt_prog_compiler_wl='-Wl,'
8068       lt_prog_compiler_pic='-KPIC'
8069       lt_prog_compiler_static='-Bstatic'
8070       ;;
8071
8072     unicos*)
8073       lt_prog_compiler_wl='-Wl,'
8074       lt_prog_compiler_can_build_shared=no
8075       ;;
8076
8077     uts4*)
8078       lt_prog_compiler_pic='-pic'
8079       lt_prog_compiler_static='-Bstatic'
8080       ;;
8081
8082     *)
8083       lt_prog_compiler_can_build_shared=no
8084       ;;
8085     esac
8086   fi
8087
8088 case $host_os in
8089   # For platforms which do not support PIC, -DPIC is meaningless:
8090   *djgpp*)
8091     lt_prog_compiler_pic=
8092     ;;
8093   *)
8094     lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
8095     ;;
8096 esac
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8098 $as_echo "$lt_prog_compiler_pic" >&6; }
8099
8100     
8101     
8102     
8103
8104
8105 #
8106 # Check to make sure the PIC flag actually works.
8107 #
8108 if test -n "$lt_prog_compiler_pic"; then
8109   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8110 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8111 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8112   $as_echo_n "(cached) " >&6
8113 else
8114   lt_cv_prog_compiler_pic_works=no
8115    ac_outfile=conftest.$ac_objext
8116    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8117    lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
8118    # Insert the option either (1) after the last *FLAGS variable, or
8119    # (2) before a word containing "conftest.", or (3) at the end.
8120    # Note that $ac_compile itself does not contain backslashes and begins
8121    # with a dollar sign (not a hyphen), so the echo should work correctly.
8122    # The option is referenced via a variable to avoid confusing sed.
8123    lt_compile=`echo "$ac_compile" | $SED \
8124    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8125    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8126    -e 's:$: $lt_compiler_flag:'`
8127    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8128    (eval "$lt_compile" 2>conftest.err)
8129    ac_status=$?
8130    cat conftest.err >&5
8131    echo "$as_me:__oline__: \$? = $ac_status" >&5
8132    if (exit $ac_status) && test -s "$ac_outfile"; then
8133      # The compiler can only warn and ignore the option if not recognized
8134      # So say no if there are warnings other than the usual output.
8135      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8136      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8137      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8138        lt_cv_prog_compiler_pic_works=yes
8139      fi
8140    fi
8141    $RM conftest*
8142
8143 fi
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8145 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8146
8147 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8148     case $lt_prog_compiler_pic in
8149      "" | " "*) ;;
8150      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8151      esac
8152 else
8153     lt_prog_compiler_pic=
8154      lt_prog_compiler_can_build_shared=no
8155 fi
8156
8157 fi
8158
8159     
8160     
8161     
8162
8163
8164 #
8165 # Check to make sure the static flag actually works.
8166 #
8167 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8169 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8170 if ${lt_cv_prog_compiler_static_works+:} false; then :
8171   $as_echo_n "(cached) " >&6
8172 else
8173   lt_cv_prog_compiler_static_works=no
8174    save_LDFLAGS="$LDFLAGS"
8175    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8176    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8177    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8178      # The linker can only warn and ignore the option if not recognized
8179      # So say no if there are warnings
8180      if test -s conftest.err; then
8181        # Append any errors to the config.log.
8182        cat conftest.err 1>&5
8183        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8184        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8185        if diff conftest.exp conftest.er2 >/dev/null; then
8186          lt_cv_prog_compiler_static_works=yes
8187        fi
8188      else
8189        lt_cv_prog_compiler_static_works=yes
8190      fi
8191    fi
8192    $RM -r conftest*
8193    LDFLAGS="$save_LDFLAGS"
8194
8195 fi
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8197 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8198
8199 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8200     :
8201 else
8202     lt_prog_compiler_static=
8203 fi
8204
8205
8206     
8207     
8208     
8209
8210
8211   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8212 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8213 if ${lt_cv_prog_compiler_c_o+:} false; then :
8214   $as_echo_n "(cached) " >&6
8215 else
8216   lt_cv_prog_compiler_c_o=no
8217    $RM -r conftest 2>/dev/null
8218    mkdir conftest
8219    cd conftest
8220    mkdir out
8221    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8222
8223    lt_compiler_flag="-o out/conftest2.$ac_objext"
8224    # Insert the option either (1) after the last *FLAGS variable, or
8225    # (2) before a word containing "conftest.", or (3) at the end.
8226    # Note that $ac_compile itself does not contain backslashes and begins
8227    # with a dollar sign (not a hyphen), so the echo should work correctly.
8228    lt_compile=`echo "$ac_compile" | $SED \
8229    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8230    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8231    -e 's:$: $lt_compiler_flag:'`
8232    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8233    (eval "$lt_compile" 2>out/conftest.err)
8234    ac_status=$?
8235    cat out/conftest.err >&5
8236    echo "$as_me:__oline__: \$? = $ac_status" >&5
8237    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8238    then
8239      # The compiler can only warn and ignore the option if not recognized
8240      # So say no if there are warnings
8241      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8242      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8243      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8244        lt_cv_prog_compiler_c_o=yes
8245      fi
8246    fi
8247    chmod u+w . 2>&5
8248    $RM conftest*
8249    # SGI C++ compiler will create directory out/ii_files/ for
8250    # template instantiation
8251    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8252    $RM out/* && rmdir out
8253    cd ..
8254    $RM -r conftest
8255    $RM conftest*
8256
8257 fi
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8259 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8260
8261     
8262     
8263     
8264
8265
8266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8267 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8268 if ${lt_cv_prog_compiler_c_o+:} false; then :
8269   $as_echo_n "(cached) " >&6
8270 else
8271   lt_cv_prog_compiler_c_o=no
8272    $RM -r conftest 2>/dev/null
8273    mkdir conftest
8274    cd conftest
8275    mkdir out
8276    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8277
8278    lt_compiler_flag="-o out/conftest2.$ac_objext"
8279    # Insert the option either (1) after the last *FLAGS variable, or
8280    # (2) before a word containing "conftest.", or (3) at the end.
8281    # Note that $ac_compile itself does not contain backslashes and begins
8282    # with a dollar sign (not a hyphen), so the echo should work correctly.
8283    lt_compile=`echo "$ac_compile" | $SED \
8284    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8285    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8286    -e 's:$: $lt_compiler_flag:'`
8287    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8288    (eval "$lt_compile" 2>out/conftest.err)
8289    ac_status=$?
8290    cat out/conftest.err >&5
8291    echo "$as_me:__oline__: \$? = $ac_status" >&5
8292    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8293    then
8294      # The compiler can only warn and ignore the option if not recognized
8295      # So say no if there are warnings
8296      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8297      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8298      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8299        lt_cv_prog_compiler_c_o=yes
8300      fi
8301    fi
8302    chmod u+w . 2>&5
8303    $RM conftest*
8304    # SGI C++ compiler will create directory out/ii_files/ for
8305    # template instantiation
8306    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8307    $RM out/* && rmdir out
8308    cd ..
8309    $RM -r conftest
8310    $RM conftest*
8311
8312 fi
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8314 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8315
8316
8317
8318
8319 hard_links="nottested"
8320 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8321   # do not overwrite the value of need_locks provided by the user
8322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8323 $as_echo_n "checking if we can lock with hard links... " >&6; }
8324   hard_links=yes
8325   $RM conftest*
8326   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8327   touch conftest.a
8328   ln conftest.a conftest.b 2>&5 || hard_links=no
8329   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8331 $as_echo "$hard_links" >&6; }
8332   if test "$hard_links" = no; then
8333     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8334 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8335     need_locks=warn
8336   fi
8337 else
8338   need_locks=no
8339 fi
8340
8341     
8342     
8343     
8344
8345
8346   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8347 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8348
8349   runpath_var=
8350   allow_undefined_flag=
8351   always_export_symbols=no
8352   archive_cmds=
8353   archive_expsym_cmds=
8354   compiler_needs_object=no
8355   enable_shared_with_static_runtimes=no
8356   export_dynamic_flag_spec=
8357   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8358   hardcode_automatic=no
8359   hardcode_direct=no
8360   hardcode_direct_absolute=no
8361   hardcode_libdir_flag_spec=
8362   hardcode_libdir_flag_spec_ld=
8363   hardcode_libdir_separator=
8364   hardcode_minus_L=no
8365   hardcode_shlibpath_var=unsupported
8366   inherit_rpath=no
8367   link_all_deplibs=unknown
8368   module_cmds=
8369   module_expsym_cmds=
8370   old_archive_from_new_cmds=
8371   old_archive_from_expsyms_cmds=
8372   thread_safe_flag_spec=
8373   whole_archive_flag_spec=
8374   # include_expsyms should be a list of space-separated symbols to be *always*
8375   # included in the symbol list
8376   include_expsyms=
8377   # exclude_expsyms can be an extended regexp of symbols to exclude
8378   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8379   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8380   # as well as any symbol that contains `d'.
8381   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8382   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8383   # platforms (ab)use it in PIC code, but their linkers get confused if
8384   # the symbol is explicitly referenced.  Since portable code cannot
8385   # rely on this symbol name, it's probably fine to never include it in
8386   # preloaded symbol tables.
8387   # Exclude shared library initialization/finalization symbols.
8388   extract_expsyms_cmds=
8389
8390   case $host_os in
8391   cygwin* | mingw* | pw32* | cegcc*)
8392     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8393     # When not using gcc, we currently assume that we are using
8394     # Microsoft Visual C++.
8395     if test "$GCC" != yes; then
8396       with_gnu_ld=no
8397     fi
8398     ;;
8399   interix*)
8400     # we just hope/assume this is gcc and not c89 (= MSVC++)
8401     with_gnu_ld=yes
8402     ;;
8403   openbsd*)
8404     with_gnu_ld=no
8405     ;;
8406   esac
8407
8408   ld_shlibs=yes
8409   if test "$with_gnu_ld" = yes; then
8410     # If archive_cmds runs LD, not CC, wlarc should be empty
8411     wlarc='${wl}'
8412
8413     # Set some defaults for GNU ld with shared library support. These
8414     # are reset later if shared libraries are not supported. Putting them
8415     # here allows them to be overridden if necessary.
8416     runpath_var=LD_RUN_PATH
8417     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8418     export_dynamic_flag_spec='${wl}--export-dynamic'
8419     # ancient GNU ld didn't support --whole-archive et. al.
8420     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8421       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8422     else
8423       whole_archive_flag_spec=
8424     fi
8425     supports_anon_versioning=no
8426     case `$LD -v 2>&1` in
8427       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8428       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8429       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8430       *\ 2.11.*) ;; # other 2.11 versions
8431       *) supports_anon_versioning=yes ;;
8432     esac
8433
8434     # See if GNU ld supports shared libraries.
8435     case $host_os in
8436     aix[3-9]*)
8437       # On AIX/PPC, the GNU linker is very broken
8438       if test "$host_cpu" != ia64; then
8439         ld_shlibs=no
8440         cat <<_LT_EOF 1>&2
8441
8442 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8443 *** to be unable to reliably create shared libraries on AIX.
8444 *** Therefore, libtool is disabling shared libraries support.  If you
8445 *** really care for shared libraries, you may want to modify your PATH
8446 *** so that a non-GNU linker is found, and then restart.
8447
8448 _LT_EOF
8449       fi
8450       ;;
8451
8452     amigaos*)
8453       case $host_cpu in
8454       powerpc)
8455             # see comment about AmigaOS4 .so support
8456             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8457             archive_expsym_cmds=''
8458         ;;
8459       m68k)
8460             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)'
8461             hardcode_libdir_flag_spec='-L$libdir'
8462             hardcode_minus_L=yes
8463         ;;
8464       esac
8465       ;;
8466
8467     beos*)
8468       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8469         allow_undefined_flag=unsupported
8470         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8471         # support --undefined.  This deserves some investigation.  FIXME
8472         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8473       else
8474         ld_shlibs=no
8475       fi
8476       ;;
8477
8478     cygwin* | mingw* | pw32* | cegcc*)
8479       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8480       # as there is no search path for DLLs.
8481       hardcode_libdir_flag_spec='-L$libdir'
8482       allow_undefined_flag=unsupported
8483       always_export_symbols=no
8484       enable_shared_with_static_runtimes=yes
8485       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8486
8487       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8488         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8489         # If the export-symbols file already is a .def file (1st line
8490         # is EXPORTS), use it as is; otherwise, prepend...
8491         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8492           cp $export_symbols $output_objdir/$soname.def;
8493         else
8494           echo EXPORTS > $output_objdir/$soname.def;
8495           cat $export_symbols >> $output_objdir/$soname.def;
8496         fi~
8497         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8498       else
8499         ld_shlibs=no
8500       fi
8501       ;;
8502
8503     interix[3-9]*)
8504       hardcode_direct=no
8505       hardcode_shlibpath_var=no
8506       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8507       export_dynamic_flag_spec='${wl}-E'
8508       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8509       # Instead, shared libraries are loaded at an image base (0x10000000 by
8510       # default) and relocated if they conflict, which is a slow very memory
8511       # consuming and fragmenting process.  To avoid this, we pick a random,
8512       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8513       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8514       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8515       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'
8516       ;;
8517
8518     gnu* | linux* | tpf* | k*bsd*-gnu)
8519       tmp_diet=no
8520       if test "$host_os" = linux-dietlibc; then
8521         case $cc_basename in
8522           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8523         esac
8524       fi
8525       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8526          && test "$tmp_diet" = no
8527       then
8528         tmp_addflag=
8529         tmp_sharedflag='-shared'
8530         case $cc_basename,$host_cpu in
8531         pgcc*)                          # Portland Group C compiler
8532           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'
8533           tmp_addflag=' $pic_flag'
8534           ;;
8535         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8536           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'
8537           tmp_addflag=' $pic_flag -Mnomain' ;;
8538         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8539           tmp_addflag=' -i_dynamic' ;;
8540         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8541           tmp_addflag=' -i_dynamic -nofor_main' ;;
8542         ifc* | ifort*)                  # Intel Fortran compiler
8543           tmp_addflag=' -nofor_main' ;;
8544         lf95*)                          # Lahey Fortran 8.1
8545           whole_archive_flag_spec=
8546           tmp_sharedflag='--shared' ;;
8547         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8548           tmp_sharedflag='-qmkshrobj'
8549           tmp_addflag= ;;
8550         esac
8551         case `$CC -V 2>&1 | sed 5q` in
8552         *Sun\ C*)                       # Sun C 5.9
8553           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'
8554           compiler_needs_object=yes
8555           tmp_sharedflag='-G' ;;
8556         *Sun\ F*)                       # Sun Fortran 8.3
8557           tmp_sharedflag='-G' ;;
8558         esac
8559         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8560
8561         if test "x$supports_anon_versioning" = xyes; then
8562           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8563             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8564             echo "local: *; };" >> $output_objdir/$libname.ver~
8565             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8566         fi
8567
8568         case $cc_basename in
8569         xlf*)
8570           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8571           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8572           hardcode_libdir_flag_spec=
8573           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8574           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8575           if test "x$supports_anon_versioning" = xyes; then
8576             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8577               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8578               echo "local: *; };" >> $output_objdir/$libname.ver~
8579               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8580           fi
8581           ;;
8582         esac
8583       else
8584         ld_shlibs=no
8585       fi
8586       ;;
8587
8588     netbsd*)
8589       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8590         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8591         wlarc=
8592       else
8593         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8594         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8595       fi
8596       ;;
8597
8598     solaris*)
8599       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8600         ld_shlibs=no
8601         cat <<_LT_EOF 1>&2
8602
8603 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8604 *** create shared libraries on Solaris systems.  Therefore, libtool
8605 *** is disabling shared libraries support.  We urge you to upgrade GNU
8606 *** binutils to release 2.9.1 or newer.  Another option is to modify
8607 *** your PATH or compiler configuration so that the native linker is
8608 *** used, and then restart.
8609
8610 _LT_EOF
8611       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8612         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8613         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8614       else
8615         ld_shlibs=no
8616       fi
8617       ;;
8618
8619     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8620       case `$LD -v 2>&1` in
8621         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8622         ld_shlibs=no
8623         cat <<_LT_EOF 1>&2
8624
8625 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8626 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8627 *** is disabling shared libraries support.  We urge you to upgrade GNU
8628 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8629 *** your PATH or compiler configuration so that the native linker is
8630 *** used, and then restart.
8631
8632 _LT_EOF
8633         ;;
8634         *)
8635           # For security reasons, it is highly recommended that you always
8636           # use absolute paths for naming shared libraries, and exclude the
8637           # DT_RUNPATH tag from executables and libraries.  But doing so
8638           # requires that you compile everything twice, which is a pain.
8639           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8640             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8641             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8642             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8643           else
8644             ld_shlibs=no
8645           fi
8646         ;;
8647       esac
8648       ;;
8649
8650     sunos4*)
8651       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8652       wlarc=
8653       hardcode_direct=yes
8654       hardcode_shlibpath_var=no
8655       ;;
8656
8657     *)
8658       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8659         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8660         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8661       else
8662         ld_shlibs=no
8663       fi
8664       ;;
8665     esac
8666
8667     if test "$ld_shlibs" = no; then
8668       runpath_var=
8669       hardcode_libdir_flag_spec=
8670       export_dynamic_flag_spec=
8671       whole_archive_flag_spec=
8672     fi
8673   else
8674     # PORTME fill in a description of your system's linker (not GNU ld)
8675     case $host_os in
8676     aix3*)
8677       allow_undefined_flag=unsupported
8678       always_export_symbols=yes
8679       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'
8680       # Note: this linker hardcodes the directories in LIBPATH if there
8681       # are no directories specified by -L.
8682       hardcode_minus_L=yes
8683       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8684         # Neither direct hardcoding nor static linking is supported with a
8685         # broken collect2.
8686         hardcode_direct=unsupported
8687       fi
8688       ;;
8689
8690     aix[4-9]*)
8691       if test "$host_cpu" = ia64; then
8692         # On IA64, the linker does run time linking by default, so we don't
8693         # have to do anything special.
8694         aix_use_runtimelinking=no
8695         exp_sym_flag='-Bexport'
8696         no_entry_flag=""
8697       else
8698         # If we're using GNU nm, then we don't want the "-C" option.
8699         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8700         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8701           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'
8702         else
8703           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'
8704         fi
8705         aix_use_runtimelinking=no
8706
8707         # Test if we are trying to use run time linking or normal
8708         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8709         # need to do runtime linking.
8710         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8711           for ld_flag in $LDFLAGS; do
8712           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8713             aix_use_runtimelinking=yes
8714             break
8715           fi
8716           done
8717           ;;
8718         esac
8719
8720         exp_sym_flag='-bexport'
8721         no_entry_flag='-bnoentry'
8722       fi
8723
8724       # When large executables or shared objects are built, AIX ld can
8725       # have problems creating the table of contents.  If linking a library
8726       # or program results in "error TOC overflow" add -mminimal-toc to
8727       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8728       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8729
8730       archive_cmds=''
8731       hardcode_direct=yes
8732       hardcode_direct_absolute=yes
8733       hardcode_libdir_separator=':'
8734       link_all_deplibs=yes
8735       file_list_spec='${wl}-f,'
8736
8737       if test "$GCC" = yes; then
8738         case $host_os in aix4.[012]|aix4.[012].*)
8739         # We only want to do this on AIX 4.2 and lower, the check
8740         # below for broken collect2 doesn't work under 4.3+
8741           collect2name=`${CC} -print-prog-name=collect2`
8742           if test -f "$collect2name" &&
8743            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8744           then
8745           # We have reworked collect2
8746           :
8747           else
8748           # We have old collect2
8749           hardcode_direct=unsupported
8750           # It fails to find uninstalled libraries when the uninstalled
8751           # path is not listed in the libpath.  Setting hardcode_minus_L
8752           # to unsupported forces relinking
8753           hardcode_minus_L=yes
8754           hardcode_libdir_flag_spec='-L$libdir'
8755           hardcode_libdir_separator=
8756           fi
8757           ;;
8758         esac
8759         shared_flag='-shared'
8760         if test "$aix_use_runtimelinking" = yes; then
8761           shared_flag="$shared_flag "'${wl}-G'
8762         fi
8763       else
8764         # not using gcc
8765         if test "$host_cpu" = ia64; then
8766         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8767         # chokes on -Wl,-G. The following line is correct:
8768           shared_flag='-G'
8769         else
8770           if test "$aix_use_runtimelinking" = yes; then
8771             shared_flag='${wl}-G'
8772           else
8773             shared_flag='${wl}-bM:SRE'
8774           fi
8775         fi
8776       fi
8777
8778       export_dynamic_flag_spec='${wl}-bexpall'
8779       # It seems that -bexpall does not export symbols beginning with
8780       # underscore (_), so it is better to generate a list of symbols to export.
8781       always_export_symbols=yes
8782       if test "$aix_use_runtimelinking" = yes; then
8783         # Warning - without using the other runtime loading flags (-brtl),
8784         # -berok will link without error, but may produce a broken library.
8785         allow_undefined_flag='-berok'
8786         # Determine the default libpath from the value encoded in an
8787         # empty executable.
8788         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8789 /* end confdefs.h.  */
8790
8791 int
8792 main ()
8793 {
8794
8795   ;
8796   return 0;
8797 }
8798 _ACEOF
8799 if ac_fn_c_try_link "$LINENO"; then :
8800   
8801 lt_aix_libpath_sed='
8802     /Import File Strings/,/^$/ {
8803         /^0/ {
8804             s/^0  *\(.*\)$/\1/
8805             p
8806         }
8807     }'
8808 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8809 # Check for a 64-bit object if we didn't find anything.
8810 if test -z "$aix_libpath"; then
8811   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8812 fi
8813 fi
8814 rm -f core conftest.err conftest.$ac_objext \
8815     conftest$ac_exeext conftest.$ac_ext
8816 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8817
8818         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8819         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"
8820       else
8821         if test "$host_cpu" = ia64; then
8822           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8823           allow_undefined_flag="-z nodefs"
8824           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"
8825         else
8826          # Determine the default libpath from the value encoded in an
8827          # empty executable.
8828          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8829 /* end confdefs.h.  */
8830
8831 int
8832 main ()
8833 {
8834
8835   ;
8836   return 0;
8837 }
8838 _ACEOF
8839 if ac_fn_c_try_link "$LINENO"; then :
8840   
8841 lt_aix_libpath_sed='
8842     /Import File Strings/,/^$/ {
8843         /^0/ {
8844             s/^0  *\(.*\)$/\1/
8845             p
8846         }
8847     }'
8848 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8849 # Check for a 64-bit object if we didn't find anything.
8850 if test -z "$aix_libpath"; then
8851   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8852 fi
8853 fi
8854 rm -f core conftest.err conftest.$ac_objext \
8855     conftest$ac_exeext conftest.$ac_ext
8856 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8857
8858          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8859           # Warning - without using the other run time loading flags,
8860           # -berok will link without error, but may produce a broken library.
8861           no_undefined_flag=' ${wl}-bernotok'
8862           allow_undefined_flag=' ${wl}-berok'
8863           # Exported symbols can be pulled into shared objects from archives
8864           whole_archive_flag_spec='$convenience'
8865           archive_cmds_need_lc=yes
8866           # This is similar to how AIX traditionally builds its shared libraries.
8867           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'
8868         fi
8869       fi
8870       ;;
8871
8872     amigaos*)
8873       case $host_cpu in
8874       powerpc)
8875             # see comment about AmigaOS4 .so support
8876             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8877             archive_expsym_cmds=''
8878         ;;
8879       m68k)
8880             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)'
8881             hardcode_libdir_flag_spec='-L$libdir'
8882             hardcode_minus_L=yes
8883         ;;
8884       esac
8885       ;;
8886
8887     bsdi[45]*)
8888       export_dynamic_flag_spec=-rdynamic
8889       ;;
8890
8891     cygwin* | mingw* | pw32* | cegcc*)
8892       # When not using gcc, we currently assume that we are using
8893       # Microsoft Visual C++.
8894       # hardcode_libdir_flag_spec is actually meaningless, as there is
8895       # no search path for DLLs.
8896       hardcode_libdir_flag_spec=' '
8897       allow_undefined_flag=unsupported
8898       # Tell ltmain to make .lib files, not .a files.
8899       libext=lib
8900       # Tell ltmain to make .dll files, not .so files.
8901       shrext_cmds=".dll"
8902       # FIXME: Setting linknames here is a bad hack.
8903       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8904       # The linker will automatically build a .lib file if we build a DLL.
8905       old_archive_from_new_cmds='true'
8906       # FIXME: Should let the user specify the lib program.
8907       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8908       fix_srcfile_path='`cygpath -w "$srcfile"`'
8909       enable_shared_with_static_runtimes=yes
8910       ;;
8911
8912     darwin* | rhapsody*)
8913       
8914   
8915   archive_cmds_need_lc=no
8916   hardcode_direct=no
8917   hardcode_automatic=yes
8918   hardcode_shlibpath_var=unsupported
8919   whole_archive_flag_spec=''
8920   link_all_deplibs=yes
8921   allow_undefined_flag="$_lt_dar_allow_undefined"
8922   case $cc_basename in
8923      ifort*) _lt_dar_can_shared=yes ;;
8924      *) _lt_dar_can_shared=$GCC ;;
8925   esac
8926   if test "$_lt_dar_can_shared" = "yes"; then
8927     output_verbose_link_cmd=echo
8928     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8929     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8930     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}"
8931     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}"
8932     
8933   else
8934   ld_shlibs=no
8935   fi
8936
8937       ;;
8938
8939     dgux*)
8940       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8941       hardcode_libdir_flag_spec='-L$libdir'
8942       hardcode_shlibpath_var=no
8943       ;;
8944
8945     freebsd1*)
8946       ld_shlibs=no
8947       ;;
8948
8949     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8950     # support.  Future versions do this automatically, but an explicit c++rt0.o
8951     # does not break anything, and helps significantly (at the cost of a little
8952     # extra space).
8953     freebsd2.2*)
8954       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8955       hardcode_libdir_flag_spec='-R$libdir'
8956       hardcode_direct=yes
8957       hardcode_shlibpath_var=no
8958       ;;
8959
8960     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8961     freebsd2*)
8962       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8963       hardcode_direct=yes
8964       hardcode_minus_L=yes
8965       hardcode_shlibpath_var=no
8966       ;;
8967
8968     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8969     freebsd* | dragonfly*)
8970       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8971       hardcode_libdir_flag_spec='-R$libdir'
8972       hardcode_direct=yes
8973       hardcode_shlibpath_var=no
8974       ;;
8975
8976     hpux9*)
8977       if test "$GCC" = yes; then
8978         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'
8979       else
8980         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'
8981       fi
8982       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8983       hardcode_libdir_separator=:
8984       hardcode_direct=yes
8985
8986       # hardcode_minus_L: Not really in the search PATH,
8987       # but as the default location of the library.
8988       hardcode_minus_L=yes
8989       export_dynamic_flag_spec='${wl}-E'
8990       ;;
8991
8992     hpux10*)
8993       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8994         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8995       else
8996         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8997       fi
8998       if test "$with_gnu_ld" = no; then
8999         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9000         hardcode_libdir_flag_spec_ld='+b $libdir'
9001         hardcode_libdir_separator=:
9002         hardcode_direct=yes
9003         hardcode_direct_absolute=yes
9004         export_dynamic_flag_spec='${wl}-E'
9005         # hardcode_minus_L: Not really in the search PATH,
9006         # but as the default location of the library.
9007         hardcode_minus_L=yes
9008       fi
9009       ;;
9010
9011     hpux11*)
9012       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9013         case $host_cpu in
9014         hppa*64*)
9015           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9016           ;;
9017         ia64*)
9018           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9019           ;;
9020         *)
9021           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9022           ;;
9023         esac
9024       else
9025         case $host_cpu in
9026         hppa*64*)
9027           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9028           ;;
9029         ia64*)
9030           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9031           ;;
9032         *)
9033           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9034           ;;
9035         esac
9036       fi
9037       if test "$with_gnu_ld" = no; then
9038         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9039         hardcode_libdir_separator=:
9040
9041         case $host_cpu in
9042         hppa*64*|ia64*)
9043           hardcode_direct=no
9044           hardcode_shlibpath_var=no
9045           ;;
9046         *)
9047           hardcode_direct=yes
9048           hardcode_direct_absolute=yes
9049           export_dynamic_flag_spec='${wl}-E'
9050
9051           # hardcode_minus_L: Not really in the search PATH,
9052           # but as the default location of the library.
9053           hardcode_minus_L=yes
9054           ;;
9055         esac
9056       fi
9057       ;;
9058
9059     irix5* | irix6* | nonstopux*)
9060       if test "$GCC" = yes; then
9061         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'
9062         # Try to use the -exported_symbol ld option, if it does not
9063         # work, assume that -exports_file does not work either and
9064         # implicitly export all symbols.
9065         save_LDFLAGS="$LDFLAGS"
9066         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9067         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9068 /* end confdefs.h.  */
9069 int foo(void) {}
9070 _ACEOF
9071 if ac_fn_c_try_link "$LINENO"; then :
9072   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'
9073         
9074 fi
9075 rm -f core conftest.err conftest.$ac_objext \
9076     conftest$ac_exeext conftest.$ac_ext
9077         LDFLAGS="$save_LDFLAGS"
9078       else
9079         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'
9080         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'
9081       fi
9082       archive_cmds_need_lc='no'
9083       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9084       hardcode_libdir_separator=:
9085       inherit_rpath=yes
9086       link_all_deplibs=yes
9087       ;;
9088
9089     netbsd*)
9090       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9091         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9092       else
9093         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9094       fi
9095       hardcode_libdir_flag_spec='-R$libdir'
9096       hardcode_direct=yes
9097       hardcode_shlibpath_var=no
9098       ;;
9099
9100     newsos6)
9101       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9102       hardcode_direct=yes
9103       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9104       hardcode_libdir_separator=:
9105       hardcode_shlibpath_var=no
9106       ;;
9107
9108     *nto* | *qnx*)
9109       ;;
9110
9111     openbsd*)
9112       if test -f /usr/libexec/ld.so; then
9113         hardcode_direct=yes
9114         hardcode_shlibpath_var=no
9115         hardcode_direct_absolute=yes
9116         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9117           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9118           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9119           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9120           export_dynamic_flag_spec='${wl}-E'
9121         else
9122           case $host_os in
9123            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9124              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9125              hardcode_libdir_flag_spec='-R$libdir'
9126              ;;
9127            *)
9128              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9129              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9130              ;;
9131           esac
9132         fi
9133       else
9134         ld_shlibs=no
9135       fi
9136       ;;
9137
9138     os2*)
9139       hardcode_libdir_flag_spec='-L$libdir'
9140       hardcode_minus_L=yes
9141       allow_undefined_flag=unsupported
9142       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'
9143       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9144       ;;
9145
9146     osf3*)
9147       if test "$GCC" = yes; then
9148         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9149         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'
9150       else
9151         allow_undefined_flag=' -expect_unresolved \*'
9152         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'
9153       fi
9154       archive_cmds_need_lc='no'
9155       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9156       hardcode_libdir_separator=:
9157       ;;
9158
9159     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9160       if test "$GCC" = yes; then
9161         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9162         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'
9163         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9164       else
9165         allow_undefined_flag=' -expect_unresolved \*'
9166         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'
9167         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~
9168         $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'
9169
9170         # Both c and cxx compiler support -rpath directly
9171         hardcode_libdir_flag_spec='-rpath $libdir'
9172       fi
9173       archive_cmds_need_lc='no'
9174       hardcode_libdir_separator=:
9175       ;;
9176
9177     solaris*)
9178       no_undefined_flag=' -z defs'
9179       if test "$GCC" = yes; then
9180         wlarc='${wl}'
9181         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9182         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9183           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9184       else
9185         case `$CC -V 2>&1` in
9186         *"Compilers 5.0"*)
9187           wlarc=''
9188           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9189           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9190           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9191           ;;
9192         *)
9193           wlarc='${wl}'
9194           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9195           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9196           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9197           ;;
9198         esac
9199       fi
9200       hardcode_libdir_flag_spec='-R$libdir'
9201       hardcode_shlibpath_var=no
9202       case $host_os in
9203       solaris2.[0-5] | solaris2.[0-5].*) ;;
9204       *)
9205         # The compiler driver will combine and reorder linker options,
9206         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9207         # but is careful enough not to reorder.
9208         # Supported since Solaris 2.6 (maybe 2.5.1?)
9209         if test "$GCC" = yes; then
9210           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9211         else
9212           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9213         fi
9214         ;;
9215       esac
9216       link_all_deplibs=yes
9217       ;;
9218
9219     sunos4*)
9220       if test "x$host_vendor" = xsequent; then
9221         # Use $CC to link under sequent, because it throws in some extra .o
9222         # files that make .init and .fini sections work.
9223         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9224       else
9225         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9226       fi
9227       hardcode_libdir_flag_spec='-L$libdir'
9228       hardcode_direct=yes
9229       hardcode_minus_L=yes
9230       hardcode_shlibpath_var=no
9231       ;;
9232
9233     sysv4)
9234       case $host_vendor in
9235         sni)
9236           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9237           hardcode_direct=yes # is this really true???
9238         ;;
9239         siemens)
9240           ## LD is ld it makes a PLAMLIB
9241           ## CC just makes a GrossModule.
9242           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9243           reload_cmds='$CC -r -o $output$reload_objs'
9244           hardcode_direct=no
9245         ;;
9246         motorola)
9247           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9248           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9249         ;;
9250       esac
9251       runpath_var='LD_RUN_PATH'
9252       hardcode_shlibpath_var=no
9253       ;;
9254
9255     sysv4.3*)
9256       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9257       hardcode_shlibpath_var=no
9258       export_dynamic_flag_spec='-Bexport'
9259       ;;
9260
9261     sysv4*MP*)
9262       if test -d /usr/nec; then
9263         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9264         hardcode_shlibpath_var=no
9265         runpath_var=LD_RUN_PATH
9266         hardcode_runpath_var=yes
9267         ld_shlibs=yes
9268       fi
9269       ;;
9270
9271     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9272       no_undefined_flag='${wl}-z,text'
9273       archive_cmds_need_lc=no
9274       hardcode_shlibpath_var=no
9275       runpath_var='LD_RUN_PATH'
9276
9277       if test "$GCC" = yes; then
9278         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9279         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9280       else
9281         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9282         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9283       fi
9284       ;;
9285
9286     sysv5* | sco3.2v5* | sco5v6*)
9287       # Note: We can NOT use -z defs as we might desire, because we do not
9288       # link with -lc, and that would cause any symbols used from libc to
9289       # always be unresolved, which means just about no library would
9290       # ever link correctly.  If we're not using GNU ld we use -z text
9291       # though, which does catch some bad symbols but isn't as heavy-handed
9292       # as -z defs.
9293       no_undefined_flag='${wl}-z,text'
9294       allow_undefined_flag='${wl}-z,nodefs'
9295       archive_cmds_need_lc=no
9296       hardcode_shlibpath_var=no
9297       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9298       hardcode_libdir_separator=':'
9299       link_all_deplibs=yes
9300       export_dynamic_flag_spec='${wl}-Bexport'
9301       runpath_var='LD_RUN_PATH'
9302
9303       if test "$GCC" = yes; then
9304         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9305         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9306       else
9307         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9308         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9309       fi
9310       ;;
9311
9312     uts4*)
9313       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9314       hardcode_libdir_flag_spec='-L$libdir'
9315       hardcode_shlibpath_var=no
9316       ;;
9317
9318     *)
9319       ld_shlibs=no
9320       ;;
9321     esac
9322
9323     if test x$host_vendor = xsni; then
9324       case $host in
9325       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9326         export_dynamic_flag_spec='${wl}-Blargedynsym'
9327         ;;
9328       esac
9329     fi
9330   fi
9331
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9333 $as_echo "$ld_shlibs" >&6; }
9334 test "$ld_shlibs" = no && can_build_shared=no
9335
9336 with_gnu_ld=$with_gnu_ld
9337
9338
9339     
9340     
9341     
9342
9343     
9344     
9345     
9346
9347     
9348     
9349     
9350
9351
9352 #
9353 # Do we need to explicitly link libc?
9354 #
9355 case "x$archive_cmds_need_lc" in
9356 x|xyes)
9357   # Assume -lc should be added
9358   archive_cmds_need_lc=yes
9359
9360   if test "$enable_shared" = yes && test "$GCC" = yes; then
9361     case $archive_cmds in
9362     *'~'*)
9363       # FIXME: we may have to deal with multi-command sequences.
9364       ;;
9365     '$CC '*)
9366       # Test whether the compiler implicitly links with -lc since on some
9367       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9368       # to ld, don't add -lc before -lgcc.
9369       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9370 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9371       $RM conftest*
9372       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9373
9374       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9375   (eval $ac_compile) 2>&5
9376   ac_status=$?
9377   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9378   test $ac_status = 0; } 2>conftest.err; then
9379         soname=conftest
9380         lib=conftest
9381         libobjs=conftest.$ac_objext
9382         deplibs=
9383         wl=$lt_prog_compiler_wl
9384         pic_flag=$lt_prog_compiler_pic
9385         compiler_flags=-v
9386         linker_flags=-v
9387         verstring=
9388         output_objdir=.
9389         libname=conftest
9390         lt_save_allow_undefined_flag=$allow_undefined_flag
9391         allow_undefined_flag=
9392         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9393   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9394   ac_status=$?
9395   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9396   test $ac_status = 0; }
9397         then
9398           archive_cmds_need_lc=no
9399         else
9400           archive_cmds_need_lc=yes
9401         fi
9402         allow_undefined_flag=$lt_save_allow_undefined_flag
9403       else
9404         cat conftest.err 1>&5
9405       fi
9406       $RM conftest*
9407       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9408 $as_echo "$archive_cmds_need_lc" >&6; }
9409       ;;
9410     esac
9411   fi
9412   ;;
9413 esac
9414
9415
9416     
9417     
9418     
9419
9420
9421     
9422     
9423     
9424
9425
9426     
9427     
9428     
9429
9430
9431     
9432     
9433     
9434
9435
9436     
9437     
9438     
9439
9440
9441     
9442     
9443     
9444
9445
9446     
9447     
9448     
9449
9450
9451     
9452     
9453     
9454
9455
9456     
9457     
9458     
9459
9460
9461     
9462     
9463     
9464
9465
9466     
9467     
9468     
9469
9470
9471     
9472     
9473     
9474
9475
9476     
9477     
9478     
9479
9480
9481     
9482     
9483     
9484
9485
9486     
9487     
9488     
9489
9490
9491     
9492     
9493     
9494
9495
9496     
9497     
9498     
9499
9500
9501     
9502     
9503     
9504
9505
9506     
9507     
9508     
9509
9510
9511     
9512     
9513     
9514
9515
9516     
9517     
9518     
9519
9520
9521     
9522     
9523     
9524
9525
9526     
9527     
9528     
9529
9530
9531     
9532     
9533     
9534
9535
9536     
9537     
9538     
9539
9540
9541     
9542     
9543     
9544
9545
9546     
9547     
9548     
9549
9550
9551     
9552     
9553     
9554
9555
9556     
9557     
9558     
9559
9560
9561     
9562     
9563     
9564
9565
9566     
9567     
9568     
9569
9570
9571   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9572 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9573
9574 if test "$GCC" = yes; then
9575   case $host_os in
9576     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9577     *) lt_awk_arg="/^libraries:/" ;;
9578   esac
9579   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9580   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9581     # if the path contains ";" then we assume it to be the separator
9582     # otherwise default to the standard path separator (i.e. ":") - it is
9583     # assumed that no part of a normal pathname contains ";" but that should
9584     # okay in the real world where ";" in dirpaths is itself problematic.
9585     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9586   else
9587     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9588   fi
9589   # Ok, now we have the path, separated by spaces, we can step through it
9590   # and add multilib dir if necessary.
9591   lt_tmp_lt_search_path_spec=
9592   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9593   for lt_sys_path in $lt_search_path_spec; do
9594     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9595       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9596     else
9597       test -d "$lt_sys_path" && \
9598         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9599     fi
9600   done
9601   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9602 BEGIN {RS=" "; FS="/|\n";} {
9603   lt_foo="";
9604   lt_count=0;
9605   for (lt_i = NF; lt_i > 0; lt_i--) {
9606     if ($lt_i != "" && $lt_i != ".") {
9607       if ($lt_i == "..") {
9608         lt_count++;
9609       } else {
9610         if (lt_count == 0) {
9611           lt_foo="/" $lt_i lt_foo;
9612         } else {
9613           lt_count--;
9614         }
9615       }
9616     }
9617   }
9618   if (lt_foo != "") { lt_freq[lt_foo]++; }
9619   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9620 }'`
9621   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9622 else
9623   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9624 fi
9625 library_names_spec=
9626 libname_spec='lib$name'
9627 soname_spec=
9628 shrext_cmds=".so"
9629 postinstall_cmds=
9630 postuninstall_cmds=
9631 finish_cmds=
9632 finish_eval=
9633 shlibpath_var=
9634 shlibpath_overrides_runpath=unknown
9635 version_type=none
9636 dynamic_linker="$host_os ld.so"
9637 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9638 need_lib_prefix=unknown
9639 hardcode_into_libs=no
9640
9641 # when you set need_version to no, make sure it does not cause -set_version
9642 # flags to be left without arguments
9643 need_version=unknown
9644
9645 case $host_os in
9646 aix3*)
9647   version_type=linux
9648   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9649   shlibpath_var=LIBPATH
9650
9651   # AIX 3 has no versioning support, so we append a major version to the name.
9652   soname_spec='${libname}${release}${shared_ext}$major'
9653   ;;
9654
9655 aix[4-9]*)
9656   version_type=linux
9657   need_lib_prefix=no
9658   need_version=no
9659   hardcode_into_libs=yes
9660   if test "$host_cpu" = ia64; then
9661     # AIX 5 supports IA64
9662     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9663     shlibpath_var=LD_LIBRARY_PATH
9664   else
9665     # With GCC up to 2.95.x, collect2 would create an import file
9666     # for dependence libraries.  The import file would start with
9667     # the line `#! .'.  This would cause the generated library to
9668     # depend on `.', always an invalid library.  This was fixed in
9669     # development snapshots of GCC prior to 3.0.
9670     case $host_os in
9671       aix4 | aix4.[01] | aix4.[01].*)
9672       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9673            echo ' yes '
9674            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9675         :
9676       else
9677         can_build_shared=no
9678       fi
9679       ;;
9680     esac
9681     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9682     # soname into executable. Probably we can add versioning support to
9683     # collect2, so additional links can be useful in future.
9684     if test "$aix_use_runtimelinking" = yes; then
9685       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9686       # instead of lib<name>.a to let people know that these are not
9687       # typical AIX shared libraries.
9688       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9689     else
9690       # We preserve .a as extension for shared libraries through AIX4.2
9691       # and later when we are not doing run time linking.
9692       library_names_spec='${libname}${release}.a $libname.a'
9693       soname_spec='${libname}${release}${shared_ext}$major'
9694     fi
9695     shlibpath_var=LIBPATH
9696   fi
9697   ;;
9698
9699 amigaos*)
9700   case $host_cpu in
9701   powerpc)
9702     # Since July 2007 AmigaOS4 officially supports .so libraries.
9703     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9704     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9705     ;;
9706   m68k)
9707     library_names_spec='$libname.ixlibrary $libname.a'
9708     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9709     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'
9710     ;;
9711   esac
9712   ;;
9713
9714 beos*)
9715   library_names_spec='${libname}${shared_ext}'
9716   dynamic_linker="$host_os ld.so"
9717   shlibpath_var=LIBRARY_PATH
9718   ;;
9719
9720 bsdi[45]*)
9721   version_type=linux
9722   need_version=no
9723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9724   soname_spec='${libname}${release}${shared_ext}$major'
9725   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9726   shlibpath_var=LD_LIBRARY_PATH
9727   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9728   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9729   # the default ld.so.conf also contains /usr/contrib/lib and
9730   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9731   # libtool to hard-code these into programs
9732   ;;
9733
9734 cygwin* | mingw* | pw32* | cegcc*)
9735   version_type=windows
9736   shrext_cmds=".dll"
9737   need_version=no
9738   need_lib_prefix=no
9739
9740   case $GCC,$host_os in
9741   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9742     library_names_spec='$libname.dll.a'
9743     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9744     postinstall_cmds='base_file=`basename \${file}`~
9745       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9746       dldir=$destdir/`dirname \$dlpath`~
9747       test -d \$dldir || mkdir -p \$dldir~
9748       $install_prog $dir/$dlname \$dldir/$dlname~
9749       chmod a+x \$dldir/$dlname~
9750       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9751         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9752       fi'
9753     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9754       dlpath=$dir/\$dldll~
9755        $RM \$dlpath'
9756     shlibpath_overrides_runpath=yes
9757
9758     case $host_os in
9759     cygwin*)
9760       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9761       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9762       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9763       ;;
9764     mingw* | cegcc*)
9765       # MinGW DLLs use traditional 'lib' prefix
9766       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9767       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9768       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9769         # It is most probably a Windows format PATH printed by
9770         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9771         # path with ; separators, and with drive letters. We can handle the
9772         # drive letters (cygwin fileutils understands them), so leave them,
9773         # especially as we might pass files found there to a mingw objdump,
9774         # which wouldn't understand a cygwinified path. Ahh.
9775         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9776       else
9777         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9778       fi
9779       ;;
9780     pw32*)
9781       # pw32 DLLs use 'pw' prefix rather than 'lib'
9782       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9783       ;;
9784     esac
9785     ;;
9786
9787   *)
9788     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9789     ;;
9790   esac
9791   dynamic_linker='Win32 ld.exe'
9792   # FIXME: first we should search . and the directory the executable is in
9793   shlibpath_var=PATH
9794   ;;
9795
9796 darwin* | rhapsody*)
9797   dynamic_linker="$host_os dyld"
9798   version_type=darwin
9799   need_lib_prefix=no
9800   need_version=no
9801   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9802   soname_spec='${libname}${release}${major}$shared_ext'
9803   shlibpath_overrides_runpath=yes
9804   shlibpath_var=DYLD_LIBRARY_PATH
9805   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9806
9807   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9808   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9809   ;;
9810
9811 dgux*)
9812   version_type=linux
9813   need_lib_prefix=no
9814   need_version=no
9815   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9816   soname_spec='${libname}${release}${shared_ext}$major'
9817   shlibpath_var=LD_LIBRARY_PATH
9818   ;;
9819
9820 freebsd1*)
9821   dynamic_linker=no
9822   ;;
9823
9824 freebsd* | dragonfly*)
9825   # DragonFly does not have aout.  When/if they implement a new
9826   # versioning mechanism, adjust this.
9827   if test -x /usr/bin/objformat; then
9828     objformat=`/usr/bin/objformat`
9829   else
9830     case $host_os in
9831     freebsd[123]*) objformat=aout ;;
9832     *) objformat=elf ;;
9833     esac
9834   fi
9835   version_type=freebsd-$objformat
9836   case $version_type in
9837     freebsd-elf*)
9838       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9839       need_version=no
9840       need_lib_prefix=no
9841       ;;
9842     freebsd-*)
9843       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9844       need_version=yes
9845       ;;
9846   esac
9847   shlibpath_var=LD_LIBRARY_PATH
9848   case $host_os in
9849   freebsd2*)
9850     shlibpath_overrides_runpath=yes
9851     ;;
9852   freebsd3.[01]* | freebsdelf3.[01]*)
9853     shlibpath_overrides_runpath=yes
9854     hardcode_into_libs=yes
9855     ;;
9856   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9857   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9858     shlibpath_overrides_runpath=no
9859     hardcode_into_libs=yes
9860     ;;
9861   *) # from 4.6 on, and DragonFly
9862     shlibpath_overrides_runpath=yes
9863     hardcode_into_libs=yes
9864     ;;
9865   esac
9866   ;;
9867
9868 gnu*)
9869   version_type=linux
9870   need_lib_prefix=no
9871   need_version=no
9872   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9873   soname_spec='${libname}${release}${shared_ext}$major'
9874   shlibpath_var=LD_LIBRARY_PATH
9875   hardcode_into_libs=yes
9876   ;;
9877
9878 hpux9* | hpux10* | hpux11*)
9879   # Give a soname corresponding to the major version so that dld.sl refuses to
9880   # link against other versions.
9881   version_type=sunos
9882   need_lib_prefix=no
9883   need_version=no
9884   case $host_cpu in
9885   ia64*)
9886     shrext_cmds='.so'
9887     hardcode_into_libs=yes
9888     dynamic_linker="$host_os dld.so"
9889     shlibpath_var=LD_LIBRARY_PATH
9890     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9891     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9892     soname_spec='${libname}${release}${shared_ext}$major'
9893     if test "X$HPUX_IA64_MODE" = X32; then
9894       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9895     else
9896       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9897     fi
9898     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9899     ;;
9900   hppa*64*)
9901     shrext_cmds='.sl'
9902     hardcode_into_libs=yes
9903     dynamic_linker="$host_os dld.sl"
9904     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9905     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9906     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9907     soname_spec='${libname}${release}${shared_ext}$major'
9908     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9909     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9910     ;;
9911   *)
9912     shrext_cmds='.sl'
9913     dynamic_linker="$host_os dld.sl"
9914     shlibpath_var=SHLIB_PATH
9915     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9916     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9917     soname_spec='${libname}${release}${shared_ext}$major'
9918     ;;
9919   esac
9920   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9921   postinstall_cmds='chmod 555 $lib'
9922   ;;
9923
9924 interix[3-9]*)
9925   version_type=linux
9926   need_lib_prefix=no
9927   need_version=no
9928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9929   soname_spec='${libname}${release}${shared_ext}$major'
9930   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9931   shlibpath_var=LD_LIBRARY_PATH
9932   shlibpath_overrides_runpath=no
9933   hardcode_into_libs=yes
9934   ;;
9935
9936 irix5* | irix6* | nonstopux*)
9937   case $host_os in
9938     nonstopux*) version_type=nonstopux ;;
9939     *)
9940         if test "$lt_cv_prog_gnu_ld" = yes; then
9941                 version_type=linux
9942         else
9943                 version_type=irix
9944         fi ;;
9945   esac
9946   need_lib_prefix=no
9947   need_version=no
9948   soname_spec='${libname}${release}${shared_ext}$major'
9949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9950   case $host_os in
9951   irix5* | nonstopux*)
9952     libsuff= shlibsuff=
9953     ;;
9954   *)
9955     case $LD in # libtool.m4 will add one of these switches to LD
9956     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9957       libsuff= shlibsuff= libmagic=32-bit;;
9958     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9959       libsuff=32 shlibsuff=N32 libmagic=N32;;
9960     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9961       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9962     *) libsuff= shlibsuff= libmagic=never-match;;
9963     esac
9964     ;;
9965   esac
9966   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9967   shlibpath_overrides_runpath=no
9968   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9969   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9970   hardcode_into_libs=yes
9971   ;;
9972
9973 # No shared lib support for Linux oldld, aout, or coff.
9974 linux*oldld* | linux*aout* | linux*coff*)
9975   dynamic_linker=no
9976   ;;
9977
9978 # This must be Linux ELF.
9979 linux* | k*bsd*-gnu)
9980   version_type=linux
9981   need_lib_prefix=no
9982   need_version=no
9983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9984   soname_spec='${libname}${release}${shared_ext}$major'
9985   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9986   shlibpath_var=LD_LIBRARY_PATH
9987   shlibpath_overrides_runpath=no
9988   # Some binutils ld are patched to set DT_RUNPATH
9989   save_LDFLAGS=$LDFLAGS
9990   save_libdir=$libdir
9991   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9992        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9993   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9994 /* end confdefs.h.  */
9995
9996 int
9997 main ()
9998 {
9999
10000   ;
10001   return 0;
10002 }
10003 _ACEOF
10004 if ac_fn_c_try_link "$LINENO"; then :
10005   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10006   shlibpath_overrides_runpath=yes
10007 fi
10008 fi
10009 rm -f core conftest.err conftest.$ac_objext \
10010     conftest$ac_exeext conftest.$ac_ext
10011   LDFLAGS=$save_LDFLAGS
10012   libdir=$save_libdir
10013
10014   # This implies no fast_install, which is unacceptable.
10015   # Some rework will be needed to allow for fast_install
10016   # before this can be enabled.
10017   hardcode_into_libs=yes
10018
10019   # Append ld.so.conf contents to the search path
10020   if test -f /etc/ld.so.conf; then
10021     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' ' '`
10022     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10023   fi
10024
10025   # We used to test for /lib/ld.so.1 and disable shared libraries on
10026   # powerpc, because MkLinux only supported shared libraries with the
10027   # GNU dynamic linker.  Since this was broken with cross compilers,
10028   # most powerpc-linux boxes support dynamic linking these days and
10029   # people can always --disable-shared, the test was removed, and we
10030   # assume the GNU/Linux dynamic linker is in use.
10031   dynamic_linker='GNU/Linux ld.so'
10032   ;;
10033
10034 netbsd*)
10035   version_type=sunos
10036   need_lib_prefix=no
10037   need_version=no
10038   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10039     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10040     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10041     dynamic_linker='NetBSD (a.out) ld.so'
10042   else
10043     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10044     soname_spec='${libname}${release}${shared_ext}$major'
10045     dynamic_linker='NetBSD ld.elf_so'
10046   fi
10047   shlibpath_var=LD_LIBRARY_PATH
10048   shlibpath_overrides_runpath=yes
10049   hardcode_into_libs=yes
10050   ;;
10051
10052 newsos6)
10053   version_type=linux
10054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10055   shlibpath_var=LD_LIBRARY_PATH
10056   shlibpath_overrides_runpath=yes
10057   ;;
10058
10059 *nto* | *qnx*)
10060   version_type=qnx
10061   need_lib_prefix=no
10062   need_version=no
10063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10064   soname_spec='${libname}${release}${shared_ext}$major'
10065   shlibpath_var=LD_LIBRARY_PATH
10066   shlibpath_overrides_runpath=no
10067   hardcode_into_libs=yes
10068   dynamic_linker='ldqnx.so'
10069   ;;
10070
10071 openbsd*)
10072   version_type=sunos
10073   sys_lib_dlsearch_path_spec="/usr/lib"
10074   need_lib_prefix=no
10075   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10076   case $host_os in
10077     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10078     *)                          need_version=no  ;;
10079   esac
10080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10081   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10082   shlibpath_var=LD_LIBRARY_PATH
10083   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10084     case $host_os in
10085       openbsd2.[89] | openbsd2.[89].*)
10086         shlibpath_overrides_runpath=no
10087         ;;
10088       *)
10089         shlibpath_overrides_runpath=yes
10090         ;;
10091       esac
10092   else
10093     shlibpath_overrides_runpath=yes
10094   fi
10095   ;;
10096
10097 os2*)
10098   libname_spec='$name'
10099   shrext_cmds=".dll"
10100   need_lib_prefix=no
10101   library_names_spec='$libname${shared_ext} $libname.a'
10102   dynamic_linker='OS/2 ld.exe'
10103   shlibpath_var=LIBPATH
10104   ;;
10105
10106 osf3* | osf4* | osf5*)
10107   version_type=osf
10108   need_lib_prefix=no
10109   need_version=no
10110   soname_spec='${libname}${release}${shared_ext}$major'
10111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10112   shlibpath_var=LD_LIBRARY_PATH
10113   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10114   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10115   ;;
10116
10117 rdos*)
10118   dynamic_linker=no
10119   ;;
10120
10121 solaris*)
10122   version_type=linux
10123   need_lib_prefix=no
10124   need_version=no
10125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10126   soname_spec='${libname}${release}${shared_ext}$major'
10127   shlibpath_var=LD_LIBRARY_PATH
10128   shlibpath_overrides_runpath=yes
10129   hardcode_into_libs=yes
10130   # ldd complains unless libraries are executable
10131   postinstall_cmds='chmod +x $lib'
10132   ;;
10133
10134 sunos4*)
10135   version_type=sunos
10136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10137   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10138   shlibpath_var=LD_LIBRARY_PATH
10139   shlibpath_overrides_runpath=yes
10140   if test "$with_gnu_ld" = yes; then
10141     need_lib_prefix=no
10142   fi
10143   need_version=yes
10144   ;;
10145
10146 sysv4 | sysv4.3*)
10147   version_type=linux
10148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10149   soname_spec='${libname}${release}${shared_ext}$major'
10150   shlibpath_var=LD_LIBRARY_PATH
10151   case $host_vendor in
10152     sni)
10153       shlibpath_overrides_runpath=no
10154       need_lib_prefix=no
10155       runpath_var=LD_RUN_PATH
10156       ;;
10157     siemens)
10158       need_lib_prefix=no
10159       ;;
10160     motorola)
10161       need_lib_prefix=no
10162       need_version=no
10163       shlibpath_overrides_runpath=no
10164       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10165       ;;
10166   esac
10167   ;;
10168
10169 sysv4*MP*)
10170   if test -d /usr/nec ;then
10171     version_type=linux
10172     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10173     soname_spec='$libname${shared_ext}.$major'
10174     shlibpath_var=LD_LIBRARY_PATH
10175   fi
10176   ;;
10177
10178 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10179   version_type=freebsd-elf
10180   need_lib_prefix=no
10181   need_version=no
10182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10183   soname_spec='${libname}${release}${shared_ext}$major'
10184   shlibpath_var=LD_LIBRARY_PATH
10185   shlibpath_overrides_runpath=yes
10186   hardcode_into_libs=yes
10187   if test "$with_gnu_ld" = yes; then
10188     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10189   else
10190     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10191     case $host_os in
10192       sco3.2v5*)
10193         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10194         ;;
10195     esac
10196   fi
10197   sys_lib_dlsearch_path_spec='/usr/lib'
10198   ;;
10199
10200 tpf*)
10201   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10202   version_type=linux
10203   need_lib_prefix=no
10204   need_version=no
10205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10206   shlibpath_var=LD_LIBRARY_PATH
10207   shlibpath_overrides_runpath=no
10208   hardcode_into_libs=yes
10209   ;;
10210
10211 uts4*)
10212   version_type=linux
10213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10214   soname_spec='${libname}${release}${shared_ext}$major'
10215   shlibpath_var=LD_LIBRARY_PATH
10216   ;;
10217
10218 *)
10219   dynamic_linker=no
10220   ;;
10221 esac
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10223 $as_echo "$dynamic_linker" >&6; }
10224 test "$dynamic_linker" = no && can_build_shared=no
10225
10226 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10227 if test "$GCC" = yes; then
10228   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10229 fi
10230
10231 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10232   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10233 fi
10234 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10235   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10236 fi
10237
10238
10239     
10240     
10241     
10242
10243
10244     
10245     
10246     
10247
10248
10249     
10250     
10251     
10252
10253
10254     
10255     
10256     
10257
10258
10259     
10260     
10261     
10262
10263
10264     
10265     
10266     
10267
10268
10269     
10270     
10271     
10272
10273
10274     
10275     
10276     
10277
10278
10279     
10280     
10281     
10282
10283
10284     
10285     
10286     
10287
10288
10289     
10290     
10291     
10292
10293
10294     
10295     
10296     
10297
10298
10299     
10300     
10301     
10302
10303
10304     
10305     
10306     
10307
10308
10309     
10310     
10311     
10312
10313
10314     
10315     
10316     
10317
10318
10319     
10320     
10321     
10322
10323
10324   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10325 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10326 hardcode_action=
10327 if test -n "$hardcode_libdir_flag_spec" ||
10328    test -n "$runpath_var" ||
10329    test "X$hardcode_automatic" = "Xyes" ; then
10330
10331   # We can hardcode non-existent directories.
10332   if test "$hardcode_direct" != no &&
10333      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10334      # have to relink, otherwise we might link with an installed library
10335      # when we should be linking with a yet-to-be-installed one
10336      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10337      test "$hardcode_minus_L" != no; then
10338     # Linking always hardcodes the temporary library directory.
10339     hardcode_action=relink
10340   else
10341     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10342     hardcode_action=immediate
10343   fi
10344 else
10345   # We cannot hardcode anything, or else we can only hardcode existing
10346   # directories.
10347   hardcode_action=unsupported
10348 fi
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10350 $as_echo "$hardcode_action" >&6; }
10351
10352 if test "$hardcode_action" = relink ||
10353    test "$inherit_rpath" = yes; then
10354   # Fast installation is not supported
10355   enable_fast_install=no
10356 elif test "$shlibpath_overrides_runpath" = yes ||
10357      test "$enable_shared" = no; then
10358   # Fast installation is not necessary
10359   enable_fast_install=needless
10360 fi
10361
10362     
10363     
10364     
10365
10366
10367   if test "x$enable_dlopen" != xyes; then
10368   enable_dlopen=unknown
10369   enable_dlopen_self=unknown
10370   enable_dlopen_self_static=unknown
10371 else
10372   lt_cv_dlopen=no
10373   lt_cv_dlopen_libs=
10374
10375   case $host_os in
10376   beos*)
10377     lt_cv_dlopen="load_add_on"
10378     lt_cv_dlopen_libs=
10379     lt_cv_dlopen_self=yes
10380     ;;
10381
10382   mingw* | pw32* | cegcc*)
10383     lt_cv_dlopen="LoadLibrary"
10384     lt_cv_dlopen_libs=
10385     ;;
10386
10387   cygwin*)
10388     lt_cv_dlopen="dlopen"
10389     lt_cv_dlopen_libs=
10390     ;;
10391
10392   darwin*)
10393   # if libdl is installed we need to link against it
10394     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10395 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10396 if ${ac_cv_lib_dl_dlopen+:} false; then :
10397   $as_echo_n "(cached) " >&6
10398 else
10399   ac_check_lib_save_LIBS=$LIBS
10400 LIBS="-ldl  $LIBS"
10401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10402 /* end confdefs.h.  */
10403
10404 /* Override any GCC internal prototype to avoid an error.
10405    Use char because int might match the return type of a GCC
10406    builtin and then its argument prototype would still apply.  */
10407 #ifdef __cplusplus
10408 extern "C"
10409 #endif
10410 char dlopen ();
10411 int
10412 main ()
10413 {
10414 return dlopen ();
10415   ;
10416   return 0;
10417 }
10418 _ACEOF
10419 if ac_fn_c_try_link "$LINENO"; then :
10420   ac_cv_lib_dl_dlopen=yes
10421 else
10422   ac_cv_lib_dl_dlopen=no
10423 fi
10424 rm -f core conftest.err conftest.$ac_objext \
10425     conftest$ac_exeext conftest.$ac_ext
10426 LIBS=$ac_check_lib_save_LIBS
10427 fi
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10429 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10430 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10431   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10432 else
10433   
10434     lt_cv_dlopen="dyld"
10435     lt_cv_dlopen_libs=
10436     lt_cv_dlopen_self=yes
10437     
10438 fi
10439
10440     ;;
10441
10442   *)
10443     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10444 if test "x$ac_cv_func_shl_load" = xyes; then :
10445   lt_cv_dlopen="shl_load"
10446 else
10447   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10448 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10449 if ${ac_cv_lib_dld_shl_load+:} false; then :
10450   $as_echo_n "(cached) " >&6
10451 else
10452   ac_check_lib_save_LIBS=$LIBS
10453 LIBS="-ldld  $LIBS"
10454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10455 /* end confdefs.h.  */
10456
10457 /* Override any GCC internal prototype to avoid an error.
10458    Use char because int might match the return type of a GCC
10459    builtin and then its argument prototype would still apply.  */
10460 #ifdef __cplusplus
10461 extern "C"
10462 #endif
10463 char shl_load ();
10464 int
10465 main ()
10466 {
10467 return shl_load ();
10468   ;
10469   return 0;
10470 }
10471 _ACEOF
10472 if ac_fn_c_try_link "$LINENO"; then :
10473   ac_cv_lib_dld_shl_load=yes
10474 else
10475   ac_cv_lib_dld_shl_load=no
10476 fi
10477 rm -f core conftest.err conftest.$ac_objext \
10478     conftest$ac_exeext conftest.$ac_ext
10479 LIBS=$ac_check_lib_save_LIBS
10480 fi
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10482 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10483 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10484   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10485 else
10486   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10487 if test "x$ac_cv_func_dlopen" = xyes; then :
10488   lt_cv_dlopen="dlopen"
10489 else
10490   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10491 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10492 if ${ac_cv_lib_dl_dlopen+:} false; then :
10493   $as_echo_n "(cached) " >&6
10494 else
10495   ac_check_lib_save_LIBS=$LIBS
10496 LIBS="-ldl  $LIBS"
10497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10498 /* end confdefs.h.  */
10499
10500 /* Override any GCC internal prototype to avoid an error.
10501    Use char because int might match the return type of a GCC
10502    builtin and then its argument prototype would still apply.  */
10503 #ifdef __cplusplus
10504 extern "C"
10505 #endif
10506 char dlopen ();
10507 int
10508 main ()
10509 {
10510 return dlopen ();
10511   ;
10512   return 0;
10513 }
10514 _ACEOF
10515 if ac_fn_c_try_link "$LINENO"; then :
10516   ac_cv_lib_dl_dlopen=yes
10517 else
10518   ac_cv_lib_dl_dlopen=no
10519 fi
10520 rm -f core conftest.err conftest.$ac_objext \
10521     conftest$ac_exeext conftest.$ac_ext
10522 LIBS=$ac_check_lib_save_LIBS
10523 fi
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10525 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10526 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10527   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10528 else
10529   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10530 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10531 if ${ac_cv_lib_svld_dlopen+:} false; then :
10532   $as_echo_n "(cached) " >&6
10533 else
10534   ac_check_lib_save_LIBS=$LIBS
10535 LIBS="-lsvld  $LIBS"
10536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10537 /* end confdefs.h.  */
10538
10539 /* Override any GCC internal prototype to avoid an error.
10540    Use char because int might match the return type of a GCC
10541    builtin and then its argument prototype would still apply.  */
10542 #ifdef __cplusplus
10543 extern "C"
10544 #endif
10545 char dlopen ();
10546 int
10547 main ()
10548 {
10549 return dlopen ();
10550   ;
10551   return 0;
10552 }
10553 _ACEOF
10554 if ac_fn_c_try_link "$LINENO"; then :
10555   ac_cv_lib_svld_dlopen=yes
10556 else
10557   ac_cv_lib_svld_dlopen=no
10558 fi
10559 rm -f core conftest.err conftest.$ac_objext \
10560     conftest$ac_exeext conftest.$ac_ext
10561 LIBS=$ac_check_lib_save_LIBS
10562 fi
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10564 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10565 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10566   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10567 else
10568   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10569 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10570 if ${ac_cv_lib_dld_dld_link+:} false; then :
10571   $as_echo_n "(cached) " >&6
10572 else
10573   ac_check_lib_save_LIBS=$LIBS
10574 LIBS="-ldld  $LIBS"
10575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10576 /* end confdefs.h.  */
10577
10578 /* Override any GCC internal prototype to avoid an error.
10579    Use char because int might match the return type of a GCC
10580    builtin and then its argument prototype would still apply.  */
10581 #ifdef __cplusplus
10582 extern "C"
10583 #endif
10584 char dld_link ();
10585 int
10586 main ()
10587 {
10588 return dld_link ();
10589   ;
10590   return 0;
10591 }
10592 _ACEOF
10593 if ac_fn_c_try_link "$LINENO"; then :
10594   ac_cv_lib_dld_dld_link=yes
10595 else
10596   ac_cv_lib_dld_dld_link=no
10597 fi
10598 rm -f core conftest.err conftest.$ac_objext \
10599     conftest$ac_exeext conftest.$ac_ext
10600 LIBS=$ac_check_lib_save_LIBS
10601 fi
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10603 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10604 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10605   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10606 fi
10607
10608               
10609 fi
10610
10611             
10612 fi
10613
10614           
10615 fi
10616
10617         
10618 fi
10619
10620       
10621 fi
10622
10623     ;;
10624   esac
10625
10626   if test "x$lt_cv_dlopen" != xno; then
10627     enable_dlopen=yes
10628   else
10629     enable_dlopen=no
10630   fi
10631
10632   case $lt_cv_dlopen in
10633   dlopen)
10634     save_CPPFLAGS="$CPPFLAGS"
10635     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10636
10637     save_LDFLAGS="$LDFLAGS"
10638     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10639
10640     save_LIBS="$LIBS"
10641     LIBS="$lt_cv_dlopen_libs $LIBS"
10642
10643     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10644 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10645 if ${lt_cv_dlopen_self+:} false; then :
10646   $as_echo_n "(cached) " >&6
10647 else
10648           if test "$cross_compiling" = yes; then :
10649   lt_cv_dlopen_self=cross
10650 else
10651   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10652   lt_status=$lt_dlunknown
10653   cat > conftest.$ac_ext <<_LT_EOF
10654 #line __oline__ "configure"
10655 #include "confdefs.h"
10656
10657 #if HAVE_DLFCN_H
10658 #include <dlfcn.h>
10659 #endif
10660
10661 #include <stdio.h>
10662
10663 #ifdef RTLD_GLOBAL
10664 #  define LT_DLGLOBAL           RTLD_GLOBAL
10665 #else
10666 #  ifdef DL_GLOBAL
10667 #    define LT_DLGLOBAL         DL_GLOBAL
10668 #  else
10669 #    define LT_DLGLOBAL         0
10670 #  endif
10671 #endif
10672
10673 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10674    find out it does not work in some platform. */
10675 #ifndef LT_DLLAZY_OR_NOW
10676 #  ifdef RTLD_LAZY
10677 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10678 #  else
10679 #    ifdef DL_LAZY
10680 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10681 #    else
10682 #      ifdef RTLD_NOW
10683 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10684 #      else
10685 #        ifdef DL_NOW
10686 #          define LT_DLLAZY_OR_NOW      DL_NOW
10687 #        else
10688 #          define LT_DLLAZY_OR_NOW      0
10689 #        endif
10690 #      endif
10691 #    endif
10692 #  endif
10693 #endif
10694
10695 void fnord() { int i=42;}
10696 int main ()
10697 {
10698   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10699   int status = $lt_dlunknown;
10700
10701   if (self)
10702     {
10703       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10704       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10705       /* dlclose (self); */
10706     }
10707   else
10708     puts (dlerror ());
10709
10710   return status;
10711 }
10712 _LT_EOF
10713   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10714   (eval $ac_link) 2>&5
10715   ac_status=$?
10716   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10717   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10718     (./conftest; exit; ) >&5 2>/dev/null
10719     lt_status=$?
10720     case x$lt_status in
10721       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10722       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10723       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10724     esac
10725   else :
10726     # compilation failed
10727     lt_cv_dlopen_self=no
10728   fi
10729 fi
10730 rm -fr conftest*
10731
10732     
10733 fi
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10735 $as_echo "$lt_cv_dlopen_self" >&6; }
10736
10737     if test "x$lt_cv_dlopen_self" = xyes; then
10738       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10739       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10740 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10741 if ${lt_cv_dlopen_self_static+:} false; then :
10742   $as_echo_n "(cached) " >&6
10743 else
10744           if test "$cross_compiling" = yes; then :
10745   lt_cv_dlopen_self_static=cross
10746 else
10747   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10748   lt_status=$lt_dlunknown
10749   cat > conftest.$ac_ext <<_LT_EOF
10750 #line __oline__ "configure"
10751 #include "confdefs.h"
10752
10753 #if HAVE_DLFCN_H
10754 #include <dlfcn.h>
10755 #endif
10756
10757 #include <stdio.h>
10758
10759 #ifdef RTLD_GLOBAL
10760 #  define LT_DLGLOBAL           RTLD_GLOBAL
10761 #else
10762 #  ifdef DL_GLOBAL
10763 #    define LT_DLGLOBAL         DL_GLOBAL
10764 #  else
10765 #    define LT_DLGLOBAL         0
10766 #  endif
10767 #endif
10768
10769 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10770    find out it does not work in some platform. */
10771 #ifndef LT_DLLAZY_OR_NOW
10772 #  ifdef RTLD_LAZY
10773 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10774 #  else
10775 #    ifdef DL_LAZY
10776 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10777 #    else
10778 #      ifdef RTLD_NOW
10779 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10780 #      else
10781 #        ifdef DL_NOW
10782 #          define LT_DLLAZY_OR_NOW      DL_NOW
10783 #        else
10784 #          define LT_DLLAZY_OR_NOW      0
10785 #        endif
10786 #      endif
10787 #    endif
10788 #  endif
10789 #endif
10790
10791 void fnord() { int i=42;}
10792 int main ()
10793 {
10794   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10795   int status = $lt_dlunknown;
10796
10797   if (self)
10798     {
10799       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10800       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10801       /* dlclose (self); */
10802     }
10803   else
10804     puts (dlerror ());
10805
10806   return status;
10807 }
10808 _LT_EOF
10809   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10810   (eval $ac_link) 2>&5
10811   ac_status=$?
10812   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10813   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10814     (./conftest; exit; ) >&5 2>/dev/null
10815     lt_status=$?
10816     case x$lt_status in
10817       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10818       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10819       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10820     esac
10821   else :
10822     # compilation failed
10823     lt_cv_dlopen_self_static=no
10824   fi
10825 fi
10826 rm -fr conftest*
10827
10828       
10829 fi
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10831 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10832     fi
10833
10834     CPPFLAGS="$save_CPPFLAGS"
10835     LDFLAGS="$save_LDFLAGS"
10836     LIBS="$save_LIBS"
10837     ;;
10838   esac
10839
10840   case $lt_cv_dlopen_self in
10841   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10842   *) enable_dlopen_self=unknown ;;
10843   esac
10844
10845   case $lt_cv_dlopen_self_static in
10846   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10847   *) enable_dlopen_self_static=unknown ;;
10848   esac
10849 fi
10850
10851     
10852     
10853     
10854
10855
10856     
10857     
10858     
10859
10860
10861     
10862     
10863     
10864
10865
10866   
10867 striplib=
10868 old_striplib=
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10870 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10871 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10872   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10873   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10875 $as_echo "yes" >&6; }
10876 else
10877 # FIXME - insert some real tests, host_os isn't really good enough
10878   case $host_os in
10879   darwin*)
10880     if test -n "$STRIP" ; then
10881       striplib="$STRIP -x"
10882       old_striplib="$STRIP -S"
10883       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10884 $as_echo "yes" >&6; }
10885     else
10886       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10887 $as_echo "no" >&6; }
10888     fi
10889     ;;
10890   *)
10891     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10892 $as_echo "no" >&6; }
10893     ;;
10894   esac
10895 fi
10896
10897     
10898     
10899     
10900
10901
10902     
10903     
10904     
10905
10906
10907
10908   # Report which library types will actually be built
10909   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10910 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10912 $as_echo "$can_build_shared" >&6; }
10913
10914   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10915 $as_echo_n "checking whether to build shared libraries... " >&6; }
10916   test "$can_build_shared" = "no" && enable_shared=no
10917
10918   # On AIX, shared libraries and static libraries use the same namespace, and
10919   # are all built from PIC.
10920   case $host_os in
10921   aix3*)
10922     test "$enable_shared" = yes && enable_static=no
10923     if test -n "$RANLIB"; then
10924       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10925       postinstall_cmds='$RANLIB $lib'
10926     fi
10927     ;;
10928
10929   aix[4-9]*)
10930     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10931       test "$enable_shared" = yes && enable_static=no
10932     fi
10933     ;;
10934   esac
10935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10936 $as_echo "$enable_shared" >&6; }
10937
10938   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10939 $as_echo_n "checking whether to build static libraries... " >&6; }
10940   # Make sure either enable_shared or enable_static is yes.
10941   test "$enable_shared" = yes || enable_static=yes
10942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10943 $as_echo "$enable_static" >&6; }
10944
10945   
10946
10947
10948 fi
10949 ac_ext=c
10950 ac_cpp='$CPP $CPPFLAGS'
10951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10954
10955 CC="$lt_save_CC"
10956
10957
10958
10959
10960
10961
10962
10963
10964        
10965        
10966
10967
10968
10969         ac_config_commands="$ac_config_commands libtool"
10970
10971
10972
10973
10974 # Only expand once:
10975
10976
10977
10978 #GP_LIB_LTDL
10979
10980 # report on compiler/libtool setup
10981
10982 # make sure "cd" doesn't print anything on stdout
10983 if test x"${CDPATH+set}" = xset
10984 then
10985         CDPATH=:
10986         export CDPATH
10987 fi
10988
10989 # make sure $() command substitution works
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX sh \$() command substitution" >&5
10991 $as_echo_n "checking for POSIX sh \$() command substitution... " >&6; }
10992 if test "x$(pwd)" = "x`pwd`" && test "y$(echo "foobar")" = "y`echo foobar`" # ''''
10993 then
10994         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10995 $as_echo "yes" >&6; }
10996 else
10997         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10998 $as_echo "no" >&6; }
10999         uname=`uname 2>&1` # ''
11000         uname_a=`uname -a 2>&1` # ''
11001         as_fn_error $? "
11002
11003 * POSIX sh \$() command substition does not work with this shell.
11004 *
11005 * You are running a very rare species of shell. Please report this
11006 * sighting to <${PACKAGE_BUGREPORT}>:
11007 * SHELL=${SHELL}
11008 * uname=${uname}
11009 * uname-a=${uname_a}
11010 * Please also include your OS and version.
11011 *
11012 * Run this configure script using a better (i.e. POSIX compliant) shell.
11013 " "$LINENO" 5
11014 fi
11015
11016
11017
11018 gp_config_len="30"
11019 gp_config_empty=""
11020 gp_config_len3="$(expr "$gp_config_len" - 3)"
11021 n="$gp_config_len"
11022 while test "$n" -gt 0; do
11023       gp_config_empty="${gp_config_empty} "
11024       n="$(expr "$n" - 1)"
11025 done
11026 gp_config_msg="
11027 Configuration (${PACKAGE_TARNAME} ${PACKAGE_VERSION}):
11028 "
11029
11030
11031 gp_config_msg="${gp_config_msg}
11032   Build
11033 "
11034
11035
11036 gp_config_msg_len="$(expr "Source directory" : '.*')"
11037 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
11038         gp_config_msg_lhs="$(expr "Source directory" : "\(.\{0,${gp_config_len3}\}\)")..:"
11039 else
11040         gp_config_msg_lhs="$(expr "Source directory:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
11041 fi
11042 gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} ${srcdir}
11043 "
11044
11045
11046 gp_config_msg_len="$(expr "Compiler" : '.*')"
11047 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
11048         gp_config_msg_lhs="$(expr "Compiler" : "\(.\{0,${gp_config_len3}\}\)")..:"
11049 else
11050         gp_config_msg_lhs="$(expr "Compiler:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
11051 fi
11052 gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} ${CC}
11053 "
11054
11055 #GP_CONFIG_MSG([libltdl includes],[$LTDLINCL])
11056 #GP_CONFIG_MSG([libltdl library],[$LIBLTDL])
11057
11058
11059 cat >>confdefs.h <<_ACEOF
11060 @%:@define HAVE_CC "$CC"
11061 _ACEOF
11062
11063
11064 AM_CPPFLAGS="$CPPFLAGS"
11065 AM_CPPFLAGS="$AM_CPPFLAGS -I\$(top_srcdir)"
11066
11067 # ----------------------------------------------------------------------
11068 # References to external resources (web sites, mailing listes, etc.)
11069 # ----------------------------------------------------------------------
11070
11071
11072
11073
11074 URL_GPHOTO_HOME="http://www.gphoto.org/"
11075
11076
11077 cat >>confdefs.h <<_ACEOF
11078 @%:@define URL_GPHOTO_HOME "http://www.gphoto.org/"
11079 _ACEOF
11080
11081
11082
11083 URL_GPHOTO_PROJECT="http://sourceforge.net/projects/gphoto"
11084
11085
11086 cat >>confdefs.h <<_ACEOF
11087 @%:@define URL_GPHOTO_PROJECT "http://sourceforge.net/projects/gphoto"
11088 _ACEOF
11089
11090
11091
11092
11093 URL_DIGICAM_LIST="http://www.teaser.fr/~hfiguiere/linux/digicam.html"
11094
11095
11096 cat >>confdefs.h <<_ACEOF
11097 @%:@define URL_DIGICAM_LIST "http://www.teaser.fr/~hfiguiere/linux/digicam.html"
11098 _ACEOF
11099
11100
11101
11102
11103 URL_JPHOTO_HOME="http://jphoto.sourceforge.net/"
11104
11105
11106 cat >>confdefs.h <<_ACEOF
11107 @%:@define URL_JPHOTO_HOME "http://jphoto.sourceforge.net/"
11108 _ACEOF
11109
11110
11111
11112
11113 URL_USB_MASSSTORAGE="http://www.linux-usb.org/USB-guide/x498.html"
11114
11115
11116 cat >>confdefs.h <<_ACEOF
11117 @%:@define URL_USB_MASSSTORAGE "http://www.linux-usb.org/USB-guide/x498.html"
11118 _ACEOF
11119
11120
11121
11122
11123 MAIL_GPHOTO_DEVEL="<gphoto-devel@lists.sourceforge.net>"
11124
11125
11126 cat >>confdefs.h <<_ACEOF
11127 @%:@define MAIL_GPHOTO_DEVEL "<gphoto-devel@lists.sourceforge.net>"
11128 _ACEOF
11129
11130
11131
11132
11133 MAIL_GPHOTO_USER="<gphoto-user@lists.sourceforge.net>"
11134
11135
11136 cat >>confdefs.h <<_ACEOF
11137 @%:@define MAIL_GPHOTO_USER "<gphoto-user@lists.sourceforge.net>"
11138 _ACEOF
11139
11140
11141
11142
11143 MAIL_GPHOTO_TRANSLATION="<gphoto-translation@lists.sourceforge.net>"
11144
11145
11146 cat >>confdefs.h <<_ACEOF
11147 @%:@define MAIL_GPHOTO_TRANSLATION "<gphoto-translation@lists.sourceforge.net>"
11148 _ACEOF
11149
11150
11151
11152
11153
11154
11155
11156
11157 GETTEXT_PACKAGE="${PACKAGE}-${LIBGPHOTO2_PORT_CURRENT_MIN}"
11158
11159 cat >>confdefs.h <<_ACEOF
11160 @%:@define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
11161 _ACEOF
11162
11163
11164 sed_cmds="s|^DOMAIN.*|DOMAIN = ${GETTEXT_PACKAGE}|"
11165 sed_cmds="${sed_cmds};s|^COPYRIGHT_HOLDER.*|COPYRIGHT_HOLDER = Lutz Mueller and others|"
11166
11167 if test -n "$PACKAGE_BUGREPORT"; then
11168    sed_mb="${PACKAGE_BUGREPORT}"
11169 else
11170    as_fn_error $? "
11171 *** Your configure.{ac,in} is wrong.
11172 *** Either define PACKAGE_BUGREPORT (by using the 4-parameter AC INIT syntax)
11173 *** or give GP_GETTEXT_HACK the third parameter.
11174 ***
11175 " "$LINENO" 5
11176 fi
11177
11178 sed_cmds="${sed_cmds};s|^MSGID_BUGS_ADDRESS.*|MSGID_BUGS_ADDRESS = ${sed_mb}|"
11179 # Not so sure whether this hack is all *that* evil...
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po/Makevars requiring hack" >&5
11181 $as_echo_n "checking for po/Makevars requiring hack... " >&6; }
11182 if test -f "${srcdir}/po/Makevars.template"; then
11183    sed "$sed_cmds" < "${srcdir}/po/Makevars.template" > "${srcdir}/po/Makevars"
11184    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, done." >&5
11185 $as_echo "yes, done." >&6; }
11186 else
11187    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11188 $as_echo "no" >&6; }
11189 fi
11190
11191 ALL_LINGUAS="cs da de fr es eu it ja nl pl pt_BR ru sk sv uk vi zh_CN zh_TW"
11192
11193
11194         MKINSTALLDIRS=
11195   if test -n "$ac_aux_dir"; then
11196     case "$ac_aux_dir" in
11197       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11198       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11199     esac
11200   fi
11201   if test -z "$MKINSTALLDIRS"; then
11202     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11203   fi
11204   
11205
11206
11207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11208 $as_echo_n "checking whether NLS is requested... " >&6; }
11209     @%:@ Check whether --enable-nls was given.
11210 if test "${enable_nls+set}" = set; then :
11211   enableval=$enable_nls; USE_NLS=$enableval
11212 else
11213   USE_NLS=yes
11214 fi
11215
11216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11217 $as_echo "$USE_NLS" >&6; }
11218   
11219
11220
11221         
11222     
11223         
11224 # Prepare PATH_SEPARATOR.
11225 # The user is always right.
11226 if test "${PATH_SEPARATOR+set}" != set; then
11227   echo "#! /bin/sh" >conf$$.sh
11228   echo  "exit 0"   >>conf$$.sh
11229   chmod +x conf$$.sh
11230   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11231     PATH_SEPARATOR=';'
11232   else
11233     PATH_SEPARATOR=:
11234   fi
11235   rm -f conf$$.sh
11236 fi
11237
11238 # Find out how to test for executable files. Don't use a zero-byte file,
11239 # as systems may use methods other than mode bits to determine executability.
11240 cat >conf$$.file <<_ASEOF
11241 #! /bin/sh
11242 exit 0
11243 _ASEOF
11244 chmod +x conf$$.file
11245 if test -x conf$$.file >/dev/null 2>&1; then
11246   ac_executable_p="test -x"
11247 else
11248   ac_executable_p="test -f"
11249 fi
11250 rm -f conf$$.file
11251
11252 # Extract the first word of "msgfmt", so it can be a program name with args.
11253 set dummy msgfmt; ac_word=$2
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11255 $as_echo_n "checking for $ac_word... " >&6; }
11256 if ${ac_cv_path_MSGFMT+:} false; then :
11257   $as_echo_n "(cached) " >&6
11258 else
11259   case "$MSGFMT" in
11260   [\\/]* | ?:[\\/]*)
11261     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11262     ;;
11263   *)
11264     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11265     for ac_dir in $PATH; do
11266       IFS="$ac_save_IFS"
11267       test -z "$ac_dir" && ac_dir=.
11268       for ac_exec_ext in '' $ac_executable_extensions; do
11269         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11270           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11271      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11272             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11273             break 2
11274           fi
11275         fi
11276       done
11277     done
11278     IFS="$ac_save_IFS"
11279   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11280     ;;
11281 esac
11282 fi
11283 MSGFMT="$ac_cv_path_MSGFMT"
11284 if test "$MSGFMT" != ":"; then
11285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11286 $as_echo "$MSGFMT" >&6; }
11287 else
11288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11289 $as_echo "no" >&6; }
11290 fi
11291
11292   # Extract the first word of "gmsgfmt", so it can be a program name with args.
11293 set dummy gmsgfmt; ac_word=$2
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11295 $as_echo_n "checking for $ac_word... " >&6; }
11296 if ${ac_cv_path_GMSGFMT+:} false; then :
11297   $as_echo_n "(cached) " >&6
11298 else
11299   case $GMSGFMT in
11300   [\\/]* | ?:[\\/]*)
11301   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11302   ;;
11303   *)
11304   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11305 for as_dir in $PATH
11306 do
11307   IFS=$as_save_IFS
11308   test -z "$as_dir" && as_dir=.
11309     for ac_exec_ext in '' $ac_executable_extensions; do
11310   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11311     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11313     break 2
11314   fi
11315 done
11316   done
11317 IFS=$as_save_IFS
11318
11319   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11320   ;;
11321 esac
11322 fi
11323 GMSGFMT=$ac_cv_path_GMSGFMT
11324 if test -n "$GMSGFMT"; then
11325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11326 $as_echo "$GMSGFMT" >&6; }
11327 else
11328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11329 $as_echo "no" >&6; }
11330 fi
11331
11332
11333
11334         
11335 # Prepare PATH_SEPARATOR.
11336 # The user is always right.
11337 if test "${PATH_SEPARATOR+set}" != set; then
11338   echo "#! /bin/sh" >conf$$.sh
11339   echo  "exit 0"   >>conf$$.sh
11340   chmod +x conf$$.sh
11341   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11342     PATH_SEPARATOR=';'
11343   else
11344     PATH_SEPARATOR=:
11345   fi
11346   rm -f conf$$.sh
11347 fi
11348
11349 # Find out how to test for executable files. Don't use a zero-byte file,
11350 # as systems may use methods other than mode bits to determine executability.
11351 cat >conf$$.file <<_ASEOF
11352 #! /bin/sh
11353 exit 0
11354 _ASEOF
11355 chmod +x conf$$.file
11356 if test -x conf$$.file >/dev/null 2>&1; then
11357   ac_executable_p="test -x"
11358 else
11359   ac_executable_p="test -f"
11360 fi
11361 rm -f conf$$.file
11362
11363 # Extract the first word of "xgettext", so it can be a program name with args.
11364 set dummy xgettext; ac_word=$2
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11366 $as_echo_n "checking for $ac_word... " >&6; }
11367 if ${ac_cv_path_XGETTEXT+:} false; then :
11368   $as_echo_n "(cached) " >&6
11369 else
11370   case "$XGETTEXT" in
11371   [\\/]* | ?:[\\/]*)
11372     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11373     ;;
11374   *)
11375     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11376     for ac_dir in $PATH; do
11377       IFS="$ac_save_IFS"
11378       test -z "$ac_dir" && ac_dir=.
11379       for ac_exec_ext in '' $ac_executable_extensions; do
11380         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11381           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11382      (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
11383             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11384             break 2
11385           fi
11386         fi
11387       done
11388     done
11389     IFS="$ac_save_IFS"
11390   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11391     ;;
11392 esac
11393 fi
11394 XGETTEXT="$ac_cv_path_XGETTEXT"
11395 if test "$XGETTEXT" != ":"; then
11396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11397 $as_echo "$XGETTEXT" >&6; }
11398 else
11399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11400 $as_echo "no" >&6; }
11401 fi
11402
11403     rm -f messages.po
11404
11405     
11406 # Prepare PATH_SEPARATOR.
11407 # The user is always right.
11408 if test "${PATH_SEPARATOR+set}" != set; then
11409   echo "#! /bin/sh" >conf$$.sh
11410   echo  "exit 0"   >>conf$$.sh
11411   chmod +x conf$$.sh
11412   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11413     PATH_SEPARATOR=';'
11414   else
11415     PATH_SEPARATOR=:
11416   fi
11417   rm -f conf$$.sh
11418 fi
11419
11420 # Find out how to test for executable files. Don't use a zero-byte file,
11421 # as systems may use methods other than mode bits to determine executability.
11422 cat >conf$$.file <<_ASEOF
11423 #! /bin/sh
11424 exit 0
11425 _ASEOF
11426 chmod +x conf$$.file
11427 if test -x conf$$.file >/dev/null 2>&1; then
11428   ac_executable_p="test -x"
11429 else
11430   ac_executable_p="test -f"
11431 fi
11432 rm -f conf$$.file
11433
11434 # Extract the first word of "msgmerge", so it can be a program name with args.
11435 set dummy msgmerge; ac_word=$2
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11437 $as_echo_n "checking for $ac_word... " >&6; }
11438 if ${ac_cv_path_MSGMERGE+:} false; then :
11439   $as_echo_n "(cached) " >&6
11440 else
11441   case "$MSGMERGE" in
11442   [\\/]* | ?:[\\/]*)
11443     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11444     ;;
11445   *)
11446     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11447     for ac_dir in $PATH; do
11448       IFS="$ac_save_IFS"
11449       test -z "$ac_dir" && ac_dir=.
11450       for ac_exec_ext in '' $ac_executable_extensions; do
11451         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11452           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11453             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11454             break 2
11455           fi
11456         fi
11457       done
11458     done
11459     IFS="$ac_save_IFS"
11460   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11461     ;;
11462 esac
11463 fi
11464 MSGMERGE="$ac_cv_path_MSGMERGE"
11465 if test "$MSGMERGE" != ":"; then
11466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
11467 $as_echo "$MSGMERGE" >&6; }
11468 else
11469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11470 $as_echo "no" >&6; }
11471 fi
11472
11473
11474       if test "$GMSGFMT" != ":"; then
11475             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11476        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11477       : ;
11478     else
11479       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11480       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11481 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
11482       GMSGFMT=":"
11483     fi
11484   fi
11485
11486       if test "$XGETTEXT" != ":"; then
11487             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11488        (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
11489       : ;
11490     else
11491       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
11492 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
11493       XGETTEXT=":"
11494     fi
11495         rm -f messages.po
11496   fi
11497
11498   ac_config_commands="$ac_config_commands default-1"
11499
11500
11501
11502       if test "X$prefix" = "XNONE"; then
11503     acl_final_prefix="$ac_default_prefix"
11504   else
11505     acl_final_prefix="$prefix"
11506   fi
11507   if test "X$exec_prefix" = "XNONE"; then
11508     acl_final_exec_prefix='${prefix}'
11509   else
11510     acl_final_exec_prefix="$exec_prefix"
11511   fi
11512   acl_save_prefix="$prefix"
11513   prefix="$acl_final_prefix"
11514   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11515   prefix="$acl_save_prefix"
11516
11517
11518 @%:@ Check whether --with-gnu-ld was given.
11519 if test "${with_gnu_ld+set}" = set; then :
11520   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11521 else
11522   with_gnu_ld=no
11523 fi
11524
11525 # Prepare PATH_SEPARATOR.
11526 # The user is always right.
11527 if test "${PATH_SEPARATOR+set}" != set; then
11528   echo "#! /bin/sh" >conf$$.sh
11529   echo  "exit 0"   >>conf$$.sh
11530   chmod +x conf$$.sh
11531   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11532     PATH_SEPARATOR=';'
11533   else
11534     PATH_SEPARATOR=:
11535   fi
11536   rm -f conf$$.sh
11537 fi
11538 ac_prog=ld
11539 if test "$GCC" = yes; then
11540   # Check if gcc -print-prog-name=ld gives a path.
11541   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11542 $as_echo_n "checking for ld used by GCC... " >&6; }
11543   case $host in
11544   *-*-mingw*)
11545     # gcc leaves a trailing carriage return which upsets mingw
11546     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11547   *)
11548     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11549   esac
11550   case $ac_prog in
11551     # Accept absolute paths.
11552     [\\/]* | [A-Za-z]:[\\/]*)
11553       re_direlt='/[^/][^/]*/\.\./'
11554       # Canonicalize the path of ld
11555       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11556       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11557         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11558       done
11559       test -z "$LD" && LD="$ac_prog"
11560       ;;
11561   "")
11562     # If it fails, then pretend we aren't using GCC.
11563     ac_prog=ld
11564     ;;
11565   *)
11566     # If it is relative, then search for the first ld in PATH.
11567     with_gnu_ld=unknown
11568     ;;
11569   esac
11570 elif test "$with_gnu_ld" = yes; then
11571   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11572 $as_echo_n "checking for GNU ld... " >&6; }
11573 else
11574   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11575 $as_echo_n "checking for non-GNU ld... " >&6; }
11576 fi
11577 if ${acl_cv_path_LD+:} false; then :
11578   $as_echo_n "(cached) " >&6
11579 else
11580   if test -z "$LD"; then
11581   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11582   for ac_dir in $PATH; do
11583     test -z "$ac_dir" && ac_dir=.
11584     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11585       acl_cv_path_LD="$ac_dir/$ac_prog"
11586       # Check to see if the program is GNU ld.  I'd rather use --version,
11587       # but apparently some GNU ld's only accept -v.
11588       # Break only if it was the GNU/non-GNU ld that we prefer.
11589       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
11590       *GNU* | *'with BFD'*)
11591         test "$with_gnu_ld" != no && break ;;
11592       *)
11593         test "$with_gnu_ld" != yes && break ;;
11594       esac
11595     fi
11596   done
11597   IFS="$ac_save_ifs"
11598 else
11599   acl_cv_path_LD="$LD" # Let the user override the test with a path.
11600 fi
11601 fi
11602
11603 LD="$acl_cv_path_LD"
11604 if test -n "$LD"; then
11605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11606 $as_echo "$LD" >&6; }
11607 else
11608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11609 $as_echo "no" >&6; }
11610 fi
11611 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11613 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11614 if ${acl_cv_prog_gnu_ld+:} false; then :
11615   $as_echo_n "(cached) " >&6
11616 else
11617   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11618 case `$LD -v 2>&1 </dev/null` in
11619 *GNU* | *'with BFD'*)
11620   acl_cv_prog_gnu_ld=yes ;;
11621 *)
11622   acl_cv_prog_gnu_ld=no ;;
11623 esac
11624 fi
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11626 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11627 with_gnu_ld=$acl_cv_prog_gnu_ld
11628
11629
11630
11631                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11632 $as_echo_n "checking for shared library run path origin... " >&6; }
11633 if ${acl_cv_rpath+:} false; then :
11634   $as_echo_n "(cached) " >&6
11635 else
11636   
11637     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11638     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11639     . ./conftest.sh
11640     rm -f ./conftest.sh
11641     acl_cv_rpath=done
11642   
11643 fi
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11645 $as_echo "$acl_cv_rpath" >&6; }
11646   wl="$acl_cv_wl"
11647   libext="$acl_cv_libext"
11648   shlibext="$acl_cv_shlibext"
11649   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11650   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11651   hardcode_direct="$acl_cv_hardcode_direct"
11652   hardcode_minus_L="$acl_cv_hardcode_minus_L"
11653     @%:@ Check whether --enable-rpath was given.
11654 if test "${enable_rpath+set}" = set; then :
11655   enableval=$enable_rpath; :
11656 else
11657   enable_rpath=yes
11658 fi
11659
11660
11661
11662     
11663   
11664
11665       
11666   
11667     use_additional=yes
11668   
11669   acl_save_prefix="$prefix"
11670   prefix="$acl_final_prefix"
11671   acl_save_exec_prefix="$exec_prefix"
11672   exec_prefix="$acl_final_exec_prefix"
11673   
11674     eval additional_includedir=\"$includedir\"
11675     eval additional_libdir=\"$libdir\"
11676   
11677   exec_prefix="$acl_save_exec_prefix"
11678   prefix="$acl_save_prefix"
11679
11680   
11681 @%:@ Check whether --with-libiconv-prefix was given.
11682 if test "${with_libiconv_prefix+set}" = set; then :
11683   withval=$with_libiconv_prefix; 
11684     if test "X$withval" = "Xno"; then
11685       use_additional=no
11686     else
11687       if test "X$withval" = "X"; then
11688         
11689   acl_save_prefix="$prefix"
11690   prefix="$acl_final_prefix"
11691   acl_save_exec_prefix="$exec_prefix"
11692   exec_prefix="$acl_final_exec_prefix"
11693   
11694           eval additional_includedir=\"$includedir\"
11695           eval additional_libdir=\"$libdir\"
11696         
11697   exec_prefix="$acl_save_exec_prefix"
11698   prefix="$acl_save_prefix"
11699
11700       else
11701         additional_includedir="$withval/include"
11702         additional_libdir="$withval/lib"
11703       fi
11704     fi
11705
11706 fi
11707
11708       LIBICONV=
11709   LTLIBICONV=
11710   INCICONV=
11711   rpathdirs=
11712   ltrpathdirs=
11713   names_already_handled=
11714   names_next_round='iconv '
11715   while test -n "$names_next_round"; do
11716     names_this_round="$names_next_round"
11717     names_next_round=
11718     for name in $names_this_round; do
11719       already_handled=
11720       for n in $names_already_handled; do
11721         if test "$n" = "$name"; then
11722           already_handled=yes
11723           break
11724         fi
11725       done
11726       if test -z "$already_handled"; then
11727         names_already_handled="$names_already_handled $name"
11728                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11729         eval value=\"\$HAVE_LIB$uppername\"
11730         if test -n "$value"; then
11731           if test "$value" = yes; then
11732             eval value=\"\$LIB$uppername\"
11733             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11734             eval value=\"\$LTLIB$uppername\"
11735             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11736           else
11737                                     :
11738           fi
11739         else
11740                               found_dir=
11741           found_la=
11742           found_so=
11743           found_a=
11744           if test $use_additional = yes; then
11745             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11746               found_dir="$additional_libdir"
11747               found_so="$additional_libdir/lib$name.$shlibext"
11748               if test -f "$additional_libdir/lib$name.la"; then
11749                 found_la="$additional_libdir/lib$name.la"
11750               fi
11751             else
11752               if test -f "$additional_libdir/lib$name.$libext"; then
11753                 found_dir="$additional_libdir"
11754                 found_a="$additional_libdir/lib$name.$libext"
11755                 if test -f "$additional_libdir/lib$name.la"; then
11756                   found_la="$additional_libdir/lib$name.la"
11757                 fi
11758               fi
11759             fi
11760           fi
11761           if test "X$found_dir" = "X"; then
11762             for x in $LDFLAGS $LTLIBICONV; do
11763               
11764   acl_save_prefix="$prefix"
11765   prefix="$acl_final_prefix"
11766   acl_save_exec_prefix="$exec_prefix"
11767   exec_prefix="$acl_final_exec_prefix"
11768   eval x=\"$x\"
11769   exec_prefix="$acl_save_exec_prefix"
11770   prefix="$acl_save_prefix"
11771
11772               case "$x" in
11773                 -L*)
11774                   dir=`echo "X$x" | sed -e 's/^X-L//'`
11775                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11776                     found_dir="$dir"
11777                     found_so="$dir/lib$name.$shlibext"
11778                     if test -f "$dir/lib$name.la"; then
11779                       found_la="$dir/lib$name.la"
11780                     fi
11781                   else
11782                     if test -f "$dir/lib$name.$libext"; then
11783                       found_dir="$dir"
11784                       found_a="$dir/lib$name.$libext"
11785                       if test -f "$dir/lib$name.la"; then
11786                         found_la="$dir/lib$name.la"
11787                       fi
11788                     fi
11789                   fi
11790                   ;;
11791               esac
11792               if test "X$found_dir" != "X"; then
11793                 break
11794               fi
11795             done
11796           fi
11797           if test "X$found_dir" != "X"; then
11798                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11799             if test "X$found_so" != "X"; then
11800                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11801                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11802               else
11803                                                                                 haveit=
11804                 for x in $ltrpathdirs; do
11805                   if test "X$x" = "X$found_dir"; then
11806                     haveit=yes
11807                     break
11808                   fi
11809                 done
11810                 if test -z "$haveit"; then
11811                   ltrpathdirs="$ltrpathdirs $found_dir"
11812                 fi
11813                                 if test "$hardcode_direct" = yes; then
11814                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11815                 else
11816                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11817                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11818                                                             haveit=
11819                     for x in $rpathdirs; do
11820                       if test "X$x" = "X$found_dir"; then
11821                         haveit=yes
11822                         break
11823                       fi
11824                     done
11825                     if test -z "$haveit"; then
11826                       rpathdirs="$rpathdirs $found_dir"
11827                     fi
11828                   else
11829                                                                                 haveit=
11830                     for x in $LDFLAGS $LIBICONV; do
11831                       
11832   acl_save_prefix="$prefix"
11833   prefix="$acl_final_prefix"
11834   acl_save_exec_prefix="$exec_prefix"
11835   exec_prefix="$acl_final_exec_prefix"
11836   eval x=\"$x\"
11837   exec_prefix="$acl_save_exec_prefix"
11838   prefix="$acl_save_prefix"
11839
11840                       if test "X$x" = "X-L$found_dir"; then
11841                         haveit=yes
11842                         break
11843                       fi
11844                     done
11845                     if test -z "$haveit"; then
11846                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11847                     fi
11848                     if test "$hardcode_minus_L" != no; then
11849                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11850                     else
11851                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11852                     fi
11853                   fi
11854                 fi
11855               fi
11856             else
11857               if test "X$found_a" != "X"; then
11858                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11859               else
11860                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11861               fi
11862             fi
11863                         additional_includedir=
11864             case "$found_dir" in
11865               */lib | */lib/)
11866                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11867                 additional_includedir="$basedir/include"
11868                 ;;
11869             esac
11870             if test "X$additional_includedir" != "X"; then
11871                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
11872                 haveit=
11873                 if test "X$additional_includedir" = "X/usr/local/include"; then
11874                   if test -n "$GCC"; then
11875                     case $host_os in
11876                       linux*) haveit=yes;;
11877                     esac
11878                   fi
11879                 fi
11880                 if test -z "$haveit"; then
11881                   for x in $CPPFLAGS $INCICONV; do
11882                     
11883   acl_save_prefix="$prefix"
11884   prefix="$acl_final_prefix"
11885   acl_save_exec_prefix="$exec_prefix"
11886   exec_prefix="$acl_final_exec_prefix"
11887   eval x=\"$x\"
11888   exec_prefix="$acl_save_exec_prefix"
11889   prefix="$acl_save_prefix"
11890
11891                     if test "X$x" = "X-I$additional_includedir"; then
11892                       haveit=yes
11893                       break
11894                     fi
11895                   done
11896                   if test -z "$haveit"; then
11897                     if test -d "$additional_includedir"; then
11898                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11899                     fi
11900                   fi
11901                 fi
11902               fi
11903             fi
11904                         if test -n "$found_la"; then
11905                                                         save_libdir="$libdir"
11906               case "$found_la" in
11907                 */* | *\\*) . "$found_la" ;;
11908                 *) . "./$found_la" ;;
11909               esac
11910               libdir="$save_libdir"
11911                             for dep in $dependency_libs; do
11912                 case "$dep" in
11913                   -L*)
11914                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11915                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
11916                       haveit=
11917                       if test "X$additional_libdir" = "X/usr/local/lib"; then
11918                         if test -n "$GCC"; then
11919                           case $host_os in
11920                             linux*) haveit=yes;;
11921                           esac
11922                         fi
11923                       fi
11924                       if test -z "$haveit"; then
11925                         haveit=
11926                         for x in $LDFLAGS $LIBICONV; do
11927                           
11928   acl_save_prefix="$prefix"
11929   prefix="$acl_final_prefix"
11930   acl_save_exec_prefix="$exec_prefix"
11931   exec_prefix="$acl_final_exec_prefix"
11932   eval x=\"$x\"
11933   exec_prefix="$acl_save_exec_prefix"
11934   prefix="$acl_save_prefix"
11935
11936                           if test "X$x" = "X-L$additional_libdir"; then
11937                             haveit=yes
11938                             break
11939                           fi
11940                         done
11941                         if test -z "$haveit"; then
11942                           if test -d "$additional_libdir"; then
11943                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11944                           fi
11945                         fi
11946                         haveit=
11947                         for x in $LDFLAGS $LTLIBICONV; do
11948                           
11949   acl_save_prefix="$prefix"
11950   prefix="$acl_final_prefix"
11951   acl_save_exec_prefix="$exec_prefix"
11952   exec_prefix="$acl_final_exec_prefix"
11953   eval x=\"$x\"
11954   exec_prefix="$acl_save_exec_prefix"
11955   prefix="$acl_save_prefix"
11956
11957                           if test "X$x" = "X-L$additional_libdir"; then
11958                             haveit=yes
11959                             break
11960                           fi
11961                         done
11962                         if test -z "$haveit"; then
11963                           if test -d "$additional_libdir"; then
11964                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11965                           fi
11966                         fi
11967                       fi
11968                     fi
11969                     ;;
11970                   -R*)
11971                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
11972                     if test "$enable_rpath" != no; then
11973                                                                   haveit=
11974                       for x in $rpathdirs; do
11975                         if test "X$x" = "X$dir"; then
11976                           haveit=yes
11977                           break
11978                         fi
11979                       done
11980                       if test -z "$haveit"; then
11981                         rpathdirs="$rpathdirs $dir"
11982                       fi
11983                                                                   haveit=
11984                       for x in $ltrpathdirs; do
11985                         if test "X$x" = "X$dir"; then
11986                           haveit=yes
11987                           break
11988                         fi
11989                       done
11990                       if test -z "$haveit"; then
11991                         ltrpathdirs="$ltrpathdirs $dir"
11992                       fi
11993                     fi
11994                     ;;
11995                   -l*)
11996                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11997                     ;;
11998                   *.la)
11999                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12000                     ;;
12001                   *)
12002                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
12003                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12004                     ;;
12005                 esac
12006               done
12007             fi
12008           else
12009                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12010             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12011           fi
12012         fi
12013       fi
12014     done
12015   done
12016   if test "X$rpathdirs" != "X"; then
12017     if test -n "$hardcode_libdir_separator"; then
12018                         alldirs=
12019       for found_dir in $rpathdirs; do
12020         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12021       done
12022             acl_save_libdir="$libdir"
12023       libdir="$alldirs"
12024       eval flag=\"$hardcode_libdir_flag_spec\"
12025       libdir="$acl_save_libdir"
12026       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12027     else
12028             for found_dir in $rpathdirs; do
12029         acl_save_libdir="$libdir"
12030         libdir="$found_dir"
12031         eval flag=\"$hardcode_libdir_flag_spec\"
12032         libdir="$acl_save_libdir"
12033         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12034       done
12035     fi
12036   fi
12037   if test "X$ltrpathdirs" != "X"; then
12038             for found_dir in $ltrpathdirs; do
12039       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12040     done
12041   fi
12042
12043
12044
12045     
12046   
12047   
12048   
12049
12050     
12051
12052     
12053   
12054
12055                         
12056     
12057   
12058
12059     
12060   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12061 $as_echo_n "checking whether NLS is requested... " >&6; }
12062     @%:@ Check whether --enable-nls was given.
12063 if test "${enable_nls+set}" = set; then :
12064   enableval=$enable_nls; USE_NLS=$enableval
12065 else
12066   USE_NLS=yes
12067 fi
12068
12069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12070 $as_echo "$USE_NLS" >&6; }
12071   
12072
12073
12074   
12075   LIBINTL=
12076   LTLIBINTL=
12077   POSUB=
12078
12079     if test "$USE_NLS" = "yes"; then
12080     gt_use_preinstalled_gnugettext=no
12081     
12082                         
12083                 
12084         
12085         
12086
12087         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
12088 $as_echo_n "checking for GNU gettext in libc... " >&6; }
12089 if ${gt_cv_func_gnugettext1_libc+:} false; then :
12090   $as_echo_n "(cached) " >&6
12091 else
12092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12093 /* end confdefs.h.  */
12094 #include <libintl.h>
12095 extern int _nl_msg_cat_cntr;
12096 extern int *_nl_domain_bindings;
12097 int
12098 main ()
12099 {
12100 bindtextdomain ("", "");
12101 return (long) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12102   ;
12103   return 0;
12104 }
12105 _ACEOF
12106 if ac_fn_c_try_link "$LINENO"; then :
12107   gt_cv_func_gnugettext1_libc=yes
12108 else
12109   gt_cv_func_gnugettext1_libc=no
12110 fi
12111 rm -f core conftest.err conftest.$ac_objext \
12112     conftest$ac_exeext conftest.$ac_ext
12113 fi
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
12115 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
12116
12117         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12118                     
12119             
12120     
12121       
12122
12123           am_save_CPPFLAGS="$CPPFLAGS"
12124   
12125   for element in $INCICONV; do
12126     haveit=
12127     for x in $CPPFLAGS; do
12128       
12129   acl_save_prefix="$prefix"
12130   prefix="$acl_final_prefix"
12131   acl_save_exec_prefix="$exec_prefix"
12132   exec_prefix="$acl_final_exec_prefix"
12133   eval x=\"$x\"
12134   exec_prefix="$acl_save_exec_prefix"
12135   prefix="$acl_save_prefix"
12136
12137       if test "X$x" = "X$element"; then
12138         haveit=yes
12139         break
12140       fi
12141     done
12142     if test -z "$haveit"; then
12143       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12144     fi
12145   done
12146
12147
12148   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12149 $as_echo_n "checking for iconv... " >&6; }
12150 if ${am_cv_func_iconv+:} false; then :
12151   $as_echo_n "(cached) " >&6
12152 else
12153   
12154     am_cv_func_iconv="no, consider installing GNU libiconv"
12155     am_cv_lib_iconv=no
12156     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12157 /* end confdefs.h.  */
12158 #include <stdlib.h>
12159 #include <iconv.h>
12160 int
12161 main ()
12162 {
12163 iconv_t cd = iconv_open("","");
12164        iconv(cd,NULL,NULL,NULL,NULL);
12165        iconv_close(cd);
12166   ;
12167   return 0;
12168 }
12169 _ACEOF
12170 if ac_fn_c_try_link "$LINENO"; then :
12171   am_cv_func_iconv=yes
12172 fi
12173 rm -f core conftest.err conftest.$ac_objext \
12174     conftest$ac_exeext conftest.$ac_ext
12175     if test "$am_cv_func_iconv" != yes; then
12176       am_save_LIBS="$LIBS"
12177       LIBS="$LIBS $LIBICONV"
12178       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12179 /* end confdefs.h.  */
12180 #include <stdlib.h>
12181 #include <iconv.h>
12182 int
12183 main ()
12184 {
12185 iconv_t cd = iconv_open("","");
12186          iconv(cd,NULL,NULL,NULL,NULL);
12187          iconv_close(cd);
12188   ;
12189   return 0;
12190 }
12191 _ACEOF
12192 if ac_fn_c_try_link "$LINENO"; then :
12193   am_cv_lib_iconv=yes
12194         am_cv_func_iconv=yes
12195 fi
12196 rm -f core conftest.err conftest.$ac_objext \
12197     conftest$ac_exeext conftest.$ac_ext
12198       LIBS="$am_save_LIBS"
12199     fi
12200   
12201 fi
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12203 $as_echo "$am_cv_func_iconv" >&6; }
12204   if test "$am_cv_func_iconv" = yes; then
12205     
12206 $as_echo "@%:@define HAVE_ICONV 1" >>confdefs.h
12207
12208   fi
12209   if test "$am_cv_lib_iconv" = yes; then
12210     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12211 $as_echo_n "checking how to link with libiconv... " >&6; }
12212     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12213 $as_echo "$LIBICONV" >&6; }
12214   else
12215             CPPFLAGS="$am_save_CPPFLAGS"
12216     LIBICONV=
12217     LTLIBICONV=
12218   fi
12219   
12220   
12221
12222           
12223                                                   
12224   
12225     use_additional=yes
12226   
12227   acl_save_prefix="$prefix"
12228   prefix="$acl_final_prefix"
12229   acl_save_exec_prefix="$exec_prefix"
12230   exec_prefix="$acl_final_exec_prefix"
12231   
12232     eval additional_includedir=\"$includedir\"
12233     eval additional_libdir=\"$libdir\"
12234   
12235   exec_prefix="$acl_save_exec_prefix"
12236   prefix="$acl_save_prefix"
12237
12238   
12239 @%:@ Check whether --with-libintl-prefix was given.
12240 if test "${with_libintl_prefix+set}" = set; then :
12241   withval=$with_libintl_prefix; 
12242     if test "X$withval" = "Xno"; then
12243       use_additional=no
12244     else
12245       if test "X$withval" = "X"; then
12246         
12247   acl_save_prefix="$prefix"
12248   prefix="$acl_final_prefix"
12249   acl_save_exec_prefix="$exec_prefix"
12250   exec_prefix="$acl_final_exec_prefix"
12251   
12252           eval additional_includedir=\"$includedir\"
12253           eval additional_libdir=\"$libdir\"
12254         
12255   exec_prefix="$acl_save_exec_prefix"
12256   prefix="$acl_save_prefix"
12257
12258       else
12259         additional_includedir="$withval/include"
12260         additional_libdir="$withval/lib"
12261       fi
12262     fi
12263
12264 fi
12265
12266       LIBINTL=
12267   LTLIBINTL=
12268   INCINTL=
12269   rpathdirs=
12270   ltrpathdirs=
12271   names_already_handled=
12272   names_next_round='intl '
12273   while test -n "$names_next_round"; do
12274     names_this_round="$names_next_round"
12275     names_next_round=
12276     for name in $names_this_round; do
12277       already_handled=
12278       for n in $names_already_handled; do
12279         if test "$n" = "$name"; then
12280           already_handled=yes
12281           break
12282         fi
12283       done
12284       if test -z "$already_handled"; then
12285         names_already_handled="$names_already_handled $name"
12286                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12287         eval value=\"\$HAVE_LIB$uppername\"
12288         if test -n "$value"; then
12289           if test "$value" = yes; then
12290             eval value=\"\$LIB$uppername\"
12291             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12292             eval value=\"\$LTLIB$uppername\"
12293             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12294           else
12295                                     :
12296           fi
12297         else
12298                               found_dir=
12299           found_la=
12300           found_so=
12301           found_a=
12302           if test $use_additional = yes; then
12303             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12304               found_dir="$additional_libdir"
12305               found_so="$additional_libdir/lib$name.$shlibext"
12306               if test -f "$additional_libdir/lib$name.la"; then
12307                 found_la="$additional_libdir/lib$name.la"
12308               fi
12309             else
12310               if test -f "$additional_libdir/lib$name.$libext"; then
12311                 found_dir="$additional_libdir"
12312                 found_a="$additional_libdir/lib$name.$libext"
12313                 if test -f "$additional_libdir/lib$name.la"; then
12314                   found_la="$additional_libdir/lib$name.la"
12315                 fi
12316               fi
12317             fi
12318           fi
12319           if test "X$found_dir" = "X"; then
12320             for x in $LDFLAGS $LTLIBINTL; do
12321               
12322   acl_save_prefix="$prefix"
12323   prefix="$acl_final_prefix"
12324   acl_save_exec_prefix="$exec_prefix"
12325   exec_prefix="$acl_final_exec_prefix"
12326   eval x=\"$x\"
12327   exec_prefix="$acl_save_exec_prefix"
12328   prefix="$acl_save_prefix"
12329
12330               case "$x" in
12331                 -L*)
12332                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12333                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12334                     found_dir="$dir"
12335                     found_so="$dir/lib$name.$shlibext"
12336                     if test -f "$dir/lib$name.la"; then
12337                       found_la="$dir/lib$name.la"
12338                     fi
12339                   else
12340                     if test -f "$dir/lib$name.$libext"; then
12341                       found_dir="$dir"
12342                       found_a="$dir/lib$name.$libext"
12343                       if test -f "$dir/lib$name.la"; then
12344                         found_la="$dir/lib$name.la"
12345                       fi
12346                     fi
12347                   fi
12348                   ;;
12349               esac
12350               if test "X$found_dir" != "X"; then
12351                 break
12352               fi
12353             done
12354           fi
12355           if test "X$found_dir" != "X"; then
12356                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12357             if test "X$found_so" != "X"; then
12358                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12359                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12360               else
12361                                                                                 haveit=
12362                 for x in $ltrpathdirs; do
12363                   if test "X$x" = "X$found_dir"; then
12364                     haveit=yes
12365                     break
12366                   fi
12367                 done
12368                 if test -z "$haveit"; then
12369                   ltrpathdirs="$ltrpathdirs $found_dir"
12370                 fi
12371                                 if test "$hardcode_direct" = yes; then
12372                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12373                 else
12374                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12375                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12376                                                             haveit=
12377                     for x in $rpathdirs; do
12378                       if test "X$x" = "X$found_dir"; then
12379                         haveit=yes
12380                         break
12381                       fi
12382                     done
12383                     if test -z "$haveit"; then
12384                       rpathdirs="$rpathdirs $found_dir"
12385                     fi
12386                   else
12387                                                                                 haveit=
12388                     for x in $LDFLAGS $LIBINTL; do
12389                       
12390   acl_save_prefix="$prefix"
12391   prefix="$acl_final_prefix"
12392   acl_save_exec_prefix="$exec_prefix"
12393   exec_prefix="$acl_final_exec_prefix"
12394   eval x=\"$x\"
12395   exec_prefix="$acl_save_exec_prefix"
12396   prefix="$acl_save_prefix"
12397
12398                       if test "X$x" = "X-L$found_dir"; then
12399                         haveit=yes
12400                         break
12401                       fi
12402                     done
12403                     if test -z "$haveit"; then
12404                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12405                     fi
12406                     if test "$hardcode_minus_L" != no; then
12407                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12408                     else
12409                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12410                     fi
12411                   fi
12412                 fi
12413               fi
12414             else
12415               if test "X$found_a" != "X"; then
12416                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12417               else
12418                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12419               fi
12420             fi
12421                         additional_includedir=
12422             case "$found_dir" in
12423               */lib | */lib/)
12424                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12425                 additional_includedir="$basedir/include"
12426                 ;;
12427             esac
12428             if test "X$additional_includedir" != "X"; then
12429                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12430                 haveit=
12431                 if test "X$additional_includedir" = "X/usr/local/include"; then
12432                   if test -n "$GCC"; then
12433                     case $host_os in
12434                       linux*) haveit=yes;;
12435                     esac
12436                   fi
12437                 fi
12438                 if test -z "$haveit"; then
12439                   for x in $CPPFLAGS $INCINTL; do
12440                     
12441   acl_save_prefix="$prefix"
12442   prefix="$acl_final_prefix"
12443   acl_save_exec_prefix="$exec_prefix"
12444   exec_prefix="$acl_final_exec_prefix"
12445   eval x=\"$x\"
12446   exec_prefix="$acl_save_exec_prefix"
12447   prefix="$acl_save_prefix"
12448
12449                     if test "X$x" = "X-I$additional_includedir"; then
12450                       haveit=yes
12451                       break
12452                     fi
12453                   done
12454                   if test -z "$haveit"; then
12455                     if test -d "$additional_includedir"; then
12456                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12457                     fi
12458                   fi
12459                 fi
12460               fi
12461             fi
12462                         if test -n "$found_la"; then
12463                                                         save_libdir="$libdir"
12464               case "$found_la" in
12465                 */* | *\\*) . "$found_la" ;;
12466                 *) . "./$found_la" ;;
12467               esac
12468               libdir="$save_libdir"
12469                             for dep in $dependency_libs; do
12470                 case "$dep" in
12471                   -L*)
12472                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12473                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
12474                       haveit=
12475                       if test "X$additional_libdir" = "X/usr/local/lib"; then
12476                         if test -n "$GCC"; then
12477                           case $host_os in
12478                             linux*) haveit=yes;;
12479                           esac
12480                         fi
12481                       fi
12482                       if test -z "$haveit"; then
12483                         haveit=
12484                         for x in $LDFLAGS $LIBINTL; do
12485                           
12486   acl_save_prefix="$prefix"
12487   prefix="$acl_final_prefix"
12488   acl_save_exec_prefix="$exec_prefix"
12489   exec_prefix="$acl_final_exec_prefix"
12490   eval x=\"$x\"
12491   exec_prefix="$acl_save_exec_prefix"
12492   prefix="$acl_save_prefix"
12493
12494                           if test "X$x" = "X-L$additional_libdir"; then
12495                             haveit=yes
12496                             break
12497                           fi
12498                         done
12499                         if test -z "$haveit"; then
12500                           if test -d "$additional_libdir"; then
12501                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12502                           fi
12503                         fi
12504                         haveit=
12505                         for x in $LDFLAGS $LTLIBINTL; do
12506                           
12507   acl_save_prefix="$prefix"
12508   prefix="$acl_final_prefix"
12509   acl_save_exec_prefix="$exec_prefix"
12510   exec_prefix="$acl_final_exec_prefix"
12511   eval x=\"$x\"
12512   exec_prefix="$acl_save_exec_prefix"
12513   prefix="$acl_save_prefix"
12514
12515                           if test "X$x" = "X-L$additional_libdir"; then
12516                             haveit=yes
12517                             break
12518                           fi
12519                         done
12520                         if test -z "$haveit"; then
12521                           if test -d "$additional_libdir"; then
12522                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12523                           fi
12524                         fi
12525                       fi
12526                     fi
12527                     ;;
12528                   -R*)
12529                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
12530                     if test "$enable_rpath" != no; then
12531                                                                   haveit=
12532                       for x in $rpathdirs; do
12533                         if test "X$x" = "X$dir"; then
12534                           haveit=yes
12535                           break
12536                         fi
12537                       done
12538                       if test -z "$haveit"; then
12539                         rpathdirs="$rpathdirs $dir"
12540                       fi
12541                                                                   haveit=
12542                       for x in $ltrpathdirs; do
12543                         if test "X$x" = "X$dir"; then
12544                           haveit=yes
12545                           break
12546                         fi
12547                       done
12548                       if test -z "$haveit"; then
12549                         ltrpathdirs="$ltrpathdirs $dir"
12550                       fi
12551                     fi
12552                     ;;
12553                   -l*)
12554                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12555                     ;;
12556                   *.la)
12557                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12558                     ;;
12559                   *)
12560                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12561                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12562                     ;;
12563                 esac
12564               done
12565             fi
12566           else
12567                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12568             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12569           fi
12570         fi
12571       fi
12572     done
12573   done
12574   if test "X$rpathdirs" != "X"; then
12575     if test -n "$hardcode_libdir_separator"; then
12576                         alldirs=
12577       for found_dir in $rpathdirs; do
12578         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12579       done
12580             acl_save_libdir="$libdir"
12581       libdir="$alldirs"
12582       eval flag=\"$hardcode_libdir_flag_spec\"
12583       libdir="$acl_save_libdir"
12584       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12585     else
12586             for found_dir in $rpathdirs; do
12587         acl_save_libdir="$libdir"
12588         libdir="$found_dir"
12589         eval flag=\"$hardcode_libdir_flag_spec\"
12590         libdir="$acl_save_libdir"
12591         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12592       done
12593     fi
12594   fi
12595   if test "X$ltrpathdirs" != "X"; then
12596             for found_dir in $ltrpathdirs; do
12597       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12598     done
12599   fi
12600
12601           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
12602 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
12603 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
12604   $as_echo_n "(cached) " >&6
12605 else
12606   gt_save_CPPFLAGS="$CPPFLAGS"
12607             CPPFLAGS="$CPPFLAGS $INCINTL"
12608             gt_save_LIBS="$LIBS"
12609             LIBS="$LIBS $LIBINTL"
12610                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12611 /* end confdefs.h.  */
12612 #include <libintl.h>
12613 extern int _nl_msg_cat_cntr;
12614 extern
12615 #ifdef __cplusplus
12616 "C"
12617 #endif
12618 const char *_nl_expand_alias ();
12619 int
12620 main ()
12621 {
12622 bindtextdomain ("", "");
12623 return (long) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
12624   ;
12625   return 0;
12626 }
12627 _ACEOF
12628 if ac_fn_c_try_link "$LINENO"; then :
12629   gt_cv_func_gnugettext1_libintl=yes
12630 else
12631   gt_cv_func_gnugettext1_libintl=no
12632 fi
12633 rm -f core conftest.err conftest.$ac_objext \
12634     conftest$ac_exeext conftest.$ac_ext
12635                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
12636               LIBS="$LIBS $LIBICONV"
12637               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12638 /* end confdefs.h.  */
12639 #include <libintl.h>
12640 extern int _nl_msg_cat_cntr;
12641 extern
12642 #ifdef __cplusplus
12643 "C"
12644 #endif
12645 const char *_nl_expand_alias ();
12646 int
12647 main ()
12648 {
12649 bindtextdomain ("", "");
12650 return (long) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
12651   ;
12652   return 0;
12653 }
12654 _ACEOF
12655 if ac_fn_c_try_link "$LINENO"; then :
12656   LIBINTL="$LIBINTL $LIBICONV"
12657                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12658                 gt_cv_func_gnugettext1_libintl=yes
12659                
12660 fi
12661 rm -f core conftest.err conftest.$ac_objext \
12662     conftest$ac_exeext conftest.$ac_ext
12663             fi
12664             CPPFLAGS="$gt_save_CPPFLAGS"
12665             LIBS="$gt_save_LIBS"
12666 fi
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
12668 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
12669         fi
12670
12671                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
12672            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
12673                 && test "$PACKAGE" != gettext-runtime \
12674                 && test "$PACKAGE" != gettext-tools; }; then
12675           gt_use_preinstalled_gnugettext=yes
12676         else
12677                     LIBINTL=
12678           LTLIBINTL=
12679           INCINTL=
12680         fi
12681
12682     
12683
12684     if test "$gt_use_preinstalled_gnugettext" = "yes" \
12685        || test "$nls_cv_use_gnu_gettext" = "yes"; then
12686       
12687 $as_echo "@%:@define ENABLE_NLS 1" >>confdefs.h
12688
12689     else
12690       USE_NLS=no
12691     fi
12692   fi
12693
12694   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
12695 $as_echo_n "checking whether to use NLS... " >&6; }
12696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12697 $as_echo "$USE_NLS" >&6; }
12698   if test "$USE_NLS" = "yes"; then
12699     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
12700 $as_echo_n "checking where the gettext function comes from... " >&6; }
12701     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12702       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12703         gt_source="external libintl"
12704       else
12705         gt_source="libc"
12706       fi
12707     else
12708       gt_source="included intl directory"
12709     fi
12710     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
12711 $as_echo "$gt_source" >&6; }
12712   fi
12713
12714   if test "$USE_NLS" = "yes"; then
12715
12716     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12717       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12718         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
12719 $as_echo_n "checking how to link with libintl... " >&6; }
12720         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
12721 $as_echo "$LIBINTL" >&6; }
12722         
12723   for element in $INCINTL; do
12724     haveit=
12725     for x in $CPPFLAGS; do
12726       
12727   acl_save_prefix="$prefix"
12728   prefix="$acl_final_prefix"
12729   acl_save_exec_prefix="$exec_prefix"
12730   exec_prefix="$acl_final_exec_prefix"
12731   eval x=\"$x\"
12732   exec_prefix="$acl_save_exec_prefix"
12733   prefix="$acl_save_prefix"
12734
12735       if test "X$x" = "X$element"; then
12736         haveit=yes
12737         break
12738       fi
12739     done
12740     if test -z "$haveit"; then
12741       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12742     fi
12743   done
12744
12745       fi
12746
12747             
12748 $as_echo "@%:@define HAVE_GETTEXT 1" >>confdefs.h
12749
12750       
12751 $as_echo "@%:@define HAVE_DCGETTEXT 1" >>confdefs.h
12752
12753     fi
12754
12755         POSUB=po
12756   fi
12757
12758   
12759
12760     INTLLIBS="$LIBINTL"
12761   
12762
12763     
12764   
12765   
12766
12767
12768         
12769     
12770         
12771 # Prepare PATH_SEPARATOR.
12772 # The user is always right.
12773 if test "${PATH_SEPARATOR+set}" != set; then
12774   echo "#! /bin/sh" >conf$$.sh
12775   echo  "exit 0"   >>conf$$.sh
12776   chmod +x conf$$.sh
12777   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12778     PATH_SEPARATOR=';'
12779   else
12780     PATH_SEPARATOR=:
12781   fi
12782   rm -f conf$$.sh
12783 fi
12784
12785 # Find out how to test for executable files. Don't use a zero-byte file,
12786 # as systems may use methods other than mode bits to determine executability.
12787 cat >conf$$.file <<_ASEOF
12788 #! /bin/sh
12789 exit 0
12790 _ASEOF
12791 chmod +x conf$$.file
12792 if test -x conf$$.file >/dev/null 2>&1; then
12793   ac_executable_p="test -x"
12794 else
12795   ac_executable_p="test -f"
12796 fi
12797 rm -f conf$$.file
12798
12799 # Extract the first word of "msgfmt", so it can be a program name with args.
12800 set dummy msgfmt; ac_word=$2
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12802 $as_echo_n "checking for $ac_word... " >&6; }
12803 if ${ac_cv_path_MSGFMT+:} false; then :
12804   $as_echo_n "(cached) " >&6
12805 else
12806   case "$MSGFMT" in
12807   [\\/]* | ?:[\\/]*)
12808     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12809     ;;
12810   *)
12811     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12812     for ac_dir in $PATH; do
12813       IFS="$ac_save_IFS"
12814       test -z "$ac_dir" && ac_dir=.
12815       for ac_exec_ext in '' $ac_executable_extensions; do
12816         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12817           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12818      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12819             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12820             break 2
12821           fi
12822         fi
12823       done
12824     done
12825     IFS="$ac_save_IFS"
12826   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12827     ;;
12828 esac
12829 fi
12830 MSGFMT="$ac_cv_path_MSGFMT"
12831 if test "$MSGFMT" != ":"; then
12832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12833 $as_echo "$MSGFMT" >&6; }
12834 else
12835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12836 $as_echo "no" >&6; }
12837 fi
12838
12839   # Extract the first word of "gmsgfmt", so it can be a program name with args.
12840 set dummy gmsgfmt; ac_word=$2
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12842 $as_echo_n "checking for $ac_word... " >&6; }
12843 if ${ac_cv_path_GMSGFMT+:} false; then :
12844   $as_echo_n "(cached) " >&6
12845 else
12846   case $GMSGFMT in
12847   [\\/]* | ?:[\\/]*)
12848   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12849   ;;
12850   *)
12851   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12852 for as_dir in $PATH
12853 do
12854   IFS=$as_save_IFS
12855   test -z "$as_dir" && as_dir=.
12856     for ac_exec_ext in '' $ac_executable_extensions; do
12857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12858     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12860     break 2
12861   fi
12862 done
12863   done
12864 IFS=$as_save_IFS
12865
12866   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12867   ;;
12868 esac
12869 fi
12870 GMSGFMT=$ac_cv_path_GMSGFMT
12871 if test -n "$GMSGFMT"; then
12872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12873 $as_echo "$GMSGFMT" >&6; }
12874 else
12875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12876 $as_echo "no" >&6; }
12877 fi
12878
12879
12880
12881         
12882 # Prepare PATH_SEPARATOR.
12883 # The user is always right.
12884 if test "${PATH_SEPARATOR+set}" != set; then
12885   echo "#! /bin/sh" >conf$$.sh
12886   echo  "exit 0"   >>conf$$.sh
12887   chmod +x conf$$.sh
12888   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12889     PATH_SEPARATOR=';'
12890   else
12891     PATH_SEPARATOR=:
12892   fi
12893   rm -f conf$$.sh
12894 fi
12895
12896 # Find out how to test for executable files. Don't use a zero-byte file,
12897 # as systems may use methods other than mode bits to determine executability.
12898 cat >conf$$.file <<_ASEOF
12899 #! /bin/sh
12900 exit 0
12901 _ASEOF
12902 chmod +x conf$$.file
12903 if test -x conf$$.file >/dev/null 2>&1; then
12904   ac_executable_p="test -x"
12905 else
12906   ac_executable_p="test -f"
12907 fi
12908 rm -f conf$$.file
12909
12910 # Extract the first word of "xgettext", so it can be a program name with args.
12911 set dummy xgettext; ac_word=$2
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12913 $as_echo_n "checking for $ac_word... " >&6; }
12914 if ${ac_cv_path_XGETTEXT+:} false; then :
12915   $as_echo_n "(cached) " >&6
12916 else
12917   case "$XGETTEXT" in
12918   [\\/]* | ?:[\\/]*)
12919     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12920     ;;
12921   *)
12922     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12923     for ac_dir in $PATH; do
12924       IFS="$ac_save_IFS"
12925       test -z "$ac_dir" && ac_dir=.
12926       for ac_exec_ext in '' $ac_executable_extensions; do
12927         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12928           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12929      (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
12930             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12931             break 2
12932           fi
12933         fi
12934       done
12935     done
12936     IFS="$ac_save_IFS"
12937   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12938     ;;
12939 esac
12940 fi
12941 XGETTEXT="$ac_cv_path_XGETTEXT"
12942 if test "$XGETTEXT" != ":"; then
12943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12944 $as_echo "$XGETTEXT" >&6; }
12945 else
12946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12947 $as_echo "no" >&6; }
12948 fi
12949
12950     rm -f messages.po
12951
12952     
12953 # Prepare PATH_SEPARATOR.
12954 # The user is always right.
12955 if test "${PATH_SEPARATOR+set}" != set; then
12956   echo "#! /bin/sh" >conf$$.sh
12957   echo  "exit 0"   >>conf$$.sh
12958   chmod +x conf$$.sh
12959   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12960     PATH_SEPARATOR=';'
12961   else
12962     PATH_SEPARATOR=:
12963   fi
12964   rm -f conf$$.sh
12965 fi
12966
12967 # Find out how to test for executable files. Don't use a zero-byte file,
12968 # as systems may use methods other than mode bits to determine executability.
12969 cat >conf$$.file <<_ASEOF
12970 #! /bin/sh
12971 exit 0
12972 _ASEOF
12973 chmod +x conf$$.file
12974 if test -x conf$$.file >/dev/null 2>&1; then
12975   ac_executable_p="test -x"
12976 else
12977   ac_executable_p="test -f"
12978 fi
12979 rm -f conf$$.file
12980
12981 # Extract the first word of "msgmerge", so it can be a program name with args.
12982 set dummy msgmerge; ac_word=$2
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12984 $as_echo_n "checking for $ac_word... " >&6; }
12985 if ${ac_cv_path_MSGMERGE+:} false; then :
12986   $as_echo_n "(cached) " >&6
12987 else
12988   case "$MSGMERGE" in
12989   [\\/]* | ?:[\\/]*)
12990     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12991     ;;
12992   *)
12993     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12994     for ac_dir in $PATH; do
12995       IFS="$ac_save_IFS"
12996       test -z "$ac_dir" && ac_dir=.
12997       for ac_exec_ext in '' $ac_executable_extensions; do
12998         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12999           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13000             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13001             break 2
13002           fi
13003         fi
13004       done
13005     done
13006     IFS="$ac_save_IFS"
13007   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13008     ;;
13009 esac
13010 fi
13011 MSGMERGE="$ac_cv_path_MSGMERGE"
13012 if test "$MSGMERGE" != ":"; then
13013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13014 $as_echo "$MSGMERGE" >&6; }
13015 else
13016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13017 $as_echo "no" >&6; }
13018 fi
13019
13020
13021       if test "$GMSGFMT" != ":"; then
13022             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13023        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13024       : ;
13025     else
13026       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13027       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13028 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13029       GMSGFMT=":"
13030     fi
13031   fi
13032
13033       if test "$XGETTEXT" != ":"; then
13034             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13035        (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
13036       : ;
13037     else
13038       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13039 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13040       XGETTEXT=":"
13041     fi
13042         rm -f messages.po
13043   fi
13044
13045   ac_config_commands="$ac_config_commands default-2"
13046
13047
13048
13049   
13050     
13051       
13052
13053           am_save_CPPFLAGS="$CPPFLAGS"
13054   
13055   for element in $INCICONV; do
13056     haveit=
13057     for x in $CPPFLAGS; do
13058       
13059   acl_save_prefix="$prefix"
13060   prefix="$acl_final_prefix"
13061   acl_save_exec_prefix="$exec_prefix"
13062   exec_prefix="$acl_final_exec_prefix"
13063   eval x=\"$x\"
13064   exec_prefix="$acl_save_exec_prefix"
13065   prefix="$acl_save_prefix"
13066
13067       if test "X$x" = "X$element"; then
13068         haveit=yes
13069         break
13070       fi
13071     done
13072     if test -z "$haveit"; then
13073       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13074     fi
13075   done
13076
13077
13078   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13079 $as_echo_n "checking for iconv... " >&6; }
13080 if ${am_cv_func_iconv+:} false; then :
13081   $as_echo_n "(cached) " >&6
13082 else
13083   
13084     am_cv_func_iconv="no, consider installing GNU libiconv"
13085     am_cv_lib_iconv=no
13086     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13087 /* end confdefs.h.  */
13088 #include <stdlib.h>
13089 #include <iconv.h>
13090 int
13091 main ()
13092 {
13093 iconv_t cd = iconv_open("","");
13094        iconv(cd,NULL,NULL,NULL,NULL);
13095        iconv_close(cd);
13096   ;
13097   return 0;
13098 }
13099 _ACEOF
13100 if ac_fn_c_try_link "$LINENO"; then :
13101   am_cv_func_iconv=yes
13102 fi
13103 rm -f core conftest.err conftest.$ac_objext \
13104     conftest$ac_exeext conftest.$ac_ext
13105     if test "$am_cv_func_iconv" != yes; then
13106       am_save_LIBS="$LIBS"
13107       LIBS="$LIBS $LIBICONV"
13108       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13109 /* end confdefs.h.  */
13110 #include <stdlib.h>
13111 #include <iconv.h>
13112 int
13113 main ()
13114 {
13115 iconv_t cd = iconv_open("","");
13116          iconv(cd,NULL,NULL,NULL,NULL);
13117          iconv_close(cd);
13118   ;
13119   return 0;
13120 }
13121 _ACEOF
13122 if ac_fn_c_try_link "$LINENO"; then :
13123   am_cv_lib_iconv=yes
13124         am_cv_func_iconv=yes
13125 fi
13126 rm -f core conftest.err conftest.$ac_objext \
13127     conftest$ac_exeext conftest.$ac_ext
13128       LIBS="$am_save_LIBS"
13129     fi
13130   
13131 fi
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13133 $as_echo "$am_cv_func_iconv" >&6; }
13134   if test "$am_cv_func_iconv" = yes; then
13135     
13136 $as_echo "@%:@define HAVE_ICONV 1" >>confdefs.h
13137
13138   fi
13139   if test "$am_cv_lib_iconv" = yes; then
13140     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13141 $as_echo_n "checking how to link with libiconv... " >&6; }
13142     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13143 $as_echo "$LIBICONV" >&6; }
13144   else
13145             CPPFLAGS="$am_save_CPPFLAGS"
13146     LIBICONV=
13147     LTLIBICONV=
13148   fi
13149   
13150   
13151
13152   if test "$am_cv_func_iconv" = yes; then
13153     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
13154 $as_echo_n "checking for iconv declaration... " >&6; }
13155     if ${am_cv_proto_iconv+:} false; then :
13156   $as_echo_n "(cached) " >&6
13157 else
13158   
13159       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13160 /* end confdefs.h.  */
13161
13162 #include <stdlib.h>
13163 #include <iconv.h>
13164 extern
13165 #ifdef __cplusplus
13166 "C"
13167 #endif
13168 #if defined(__STDC__) || defined(__cplusplus)
13169 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13170 #else
13171 size_t iconv();
13172 #endif
13173
13174 int
13175 main ()
13176 {
13177
13178   ;
13179   return 0;
13180 }
13181 _ACEOF
13182 if ac_fn_c_try_compile "$LINENO"; then :
13183   am_cv_proto_iconv_arg1=""
13184 else
13185   am_cv_proto_iconv_arg1="const"
13186 fi
13187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13188       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);"
13189 fi
13190
13191     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13192     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
13193          }$am_cv_proto_iconv" >&5
13194 $as_echo "${ac_t:-
13195          }$am_cv_proto_iconv" >&6; }
13196     
13197 cat >>confdefs.h <<_ACEOF
13198 @%:@define ICONV_CONST $am_cv_proto_iconv_arg1
13199 _ACEOF
13200
13201   fi
13202
13203
13204
13205
13206 if test "x${BUILD_INCLUDED_LIBINTL}" = "xyes"; then
13207    AM_CFLAGS="${AM_CFLAGS} -I\$(top_srcdir)/intl"
13208 fi
13209
13210 gp_config_msg_len="$(expr "Use translations" : '.*')"
13211 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
13212         gp_config_msg_lhs="$(expr "Use translations" : "\(.\{0,${gp_config_len3}\}\)")..:"
13213 else
13214         gp_config_msg_lhs="$(expr "Use translations:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
13215 fi
13216 gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} ${USE_NLS}
13217 "
13218
13219 if test "x$USE_NLS" = "xyes" && test "${BUILD_INCLUDED_LIBINTL}"; then
13220    
13221 gp_config_msg_len="$(expr "Use included libintl" : '.*')"
13222 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
13223         gp_config_msg_lhs="$(expr "Use included libintl" : "\(.\{0,${gp_config_len3}\}\)")..:"
13224 else
13225         gp_config_msg_lhs="$(expr "Use included libintl:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
13226 fi
13227 gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} ${BUILD_INCLUDED_LIBINTL}
13228 "
13229
13230 fi
13231
13232
13233 localedir="\$(datadir)/locale"
13234
13235 AM_CPPFLAGS="$AM_CPPFLAGS -DLOCALEDIR=\\\"${localedir}\\\""
13236
13237 ac_fn_c_check_func "$LINENO" "gettext" "ac_cv_func_gettext"
13238 if test "x$ac_cv_func_gettext" = xyes; then :
13239   gettext_without_libintl=true
13240 fi
13241
13242 # same trick as with libdl in libgphoto2:
13243 # if gettext() doesn't require linking against libintl,
13244 # we don't have to check for gettext in libintl. Otherwise
13245 # we may even require libintl.
13246 if test "$gettext_without_libintl" != "true" -a "$USE_NLS" = "yes"; then
13247         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
13248 $as_echo_n "checking for gettext in -lintl... " >&6; }
13249 if ${ac_cv_lib_intl_gettext+:} false; then :
13250   $as_echo_n "(cached) " >&6
13251 else
13252   ac_check_lib_save_LIBS=$LIBS
13253 LIBS="-lintl  $LIBS"
13254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13255 /* end confdefs.h.  */
13256
13257 /* Override any GCC internal prototype to avoid an error.
13258    Use char because int might match the return type of a GCC
13259    builtin and then its argument prototype would still apply.  */
13260 #ifdef __cplusplus
13261 extern "C"
13262 #endif
13263 char gettext ();
13264 int
13265 main ()
13266 {
13267 return gettext ();
13268   ;
13269   return 0;
13270 }
13271 _ACEOF
13272 if ac_fn_c_try_link "$LINENO"; then :
13273   ac_cv_lib_intl_gettext=yes
13274 else
13275   ac_cv_lib_intl_gettext=no
13276 fi
13277 rm -f core conftest.err conftest.$ac_objext \
13278     conftest$ac_exeext conftest.$ac_ext
13279 LIBS=$ac_check_lib_save_LIBS
13280 fi
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
13282 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
13283 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
13284   INTLLIBS="$INTLLIBS -lintl"
13285 fi
13286
13287 fi
13288
13289
13290 ac_header_dirent=no
13291 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13292   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13294 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13295 if eval \${$as_ac_Header+:} false; then :
13296   $as_echo_n "(cached) " >&6
13297 else
13298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13299 /* end confdefs.h.  */
13300 #include <sys/types.h>
13301 #include <$ac_hdr>
13302
13303 int
13304 main ()
13305 {
13306 if ((DIR *) 0)
13307 return 0;
13308   ;
13309   return 0;
13310 }
13311 _ACEOF
13312 if ac_fn_c_try_compile "$LINENO"; then :
13313   eval "$as_ac_Header=yes"
13314 else
13315   eval "$as_ac_Header=no"
13316 fi
13317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13318 fi
13319 eval ac_res=\$$as_ac_Header
13320                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13321 $as_echo "$ac_res" >&6; }
13322 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13323   cat >>confdefs.h <<_ACEOF
13324 @%:@define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13325 _ACEOF
13326
13327 ac_header_dirent=$ac_hdr; break
13328 fi
13329
13330 done
13331 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13332 if test $ac_header_dirent = dirent.h; then
13333   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13334 $as_echo_n "checking for library containing opendir... " >&6; }
13335 if ${ac_cv_search_opendir+:} false; then :
13336   $as_echo_n "(cached) " >&6
13337 else
13338   ac_func_search_save_LIBS=$LIBS
13339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13340 /* end confdefs.h.  */
13341
13342 /* Override any GCC internal prototype to avoid an error.
13343    Use char because int might match the return type of a GCC
13344    builtin and then its argument prototype would still apply.  */
13345 #ifdef __cplusplus
13346 extern "C"
13347 #endif
13348 char opendir ();
13349 int
13350 main ()
13351 {
13352 return opendir ();
13353   ;
13354   return 0;
13355 }
13356 _ACEOF
13357 for ac_lib in '' dir; do
13358   if test -z "$ac_lib"; then
13359     ac_res="none required"
13360   else
13361     ac_res=-l$ac_lib
13362     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13363   fi
13364   if ac_fn_c_try_link "$LINENO"; then :
13365   ac_cv_search_opendir=$ac_res
13366 fi
13367 rm -f core conftest.err conftest.$ac_objext \
13368     conftest$ac_exeext
13369   if ${ac_cv_search_opendir+:} false; then :
13370   break
13371 fi
13372 done
13373 if ${ac_cv_search_opendir+:} false; then :
13374   
13375 else
13376   ac_cv_search_opendir=no
13377 fi
13378 rm conftest.$ac_ext
13379 LIBS=$ac_func_search_save_LIBS
13380 fi
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13382 $as_echo "$ac_cv_search_opendir" >&6; }
13383 ac_res=$ac_cv_search_opendir
13384 if test "$ac_res" != no; then :
13385   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13386   
13387 fi
13388
13389 else
13390   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13391 $as_echo_n "checking for library containing opendir... " >&6; }
13392 if ${ac_cv_search_opendir+:} false; then :
13393   $as_echo_n "(cached) " >&6
13394 else
13395   ac_func_search_save_LIBS=$LIBS
13396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13397 /* end confdefs.h.  */
13398
13399 /* Override any GCC internal prototype to avoid an error.
13400    Use char because int might match the return type of a GCC
13401    builtin and then its argument prototype would still apply.  */
13402 #ifdef __cplusplus
13403 extern "C"
13404 #endif
13405 char opendir ();
13406 int
13407 main ()
13408 {
13409 return opendir ();
13410   ;
13411   return 0;
13412 }
13413 _ACEOF
13414 for ac_lib in '' x; do
13415   if test -z "$ac_lib"; then
13416     ac_res="none required"
13417   else
13418     ac_res=-l$ac_lib
13419     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13420   fi
13421   if ac_fn_c_try_link "$LINENO"; then :
13422   ac_cv_search_opendir=$ac_res
13423 fi
13424 rm -f core conftest.err conftest.$ac_objext \
13425     conftest$ac_exeext
13426   if ${ac_cv_search_opendir+:} false; then :
13427   break
13428 fi
13429 done
13430 if ${ac_cv_search_opendir+:} false; then :
13431   
13432 else
13433   ac_cv_search_opendir=no
13434 fi
13435 rm conftest.$ac_ext
13436 LIBS=$ac_func_search_save_LIBS
13437 fi
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13439 $as_echo "$ac_cv_search_opendir" >&6; }
13440 ac_res=$ac_cv_search_opendir
13441 if test "$ac_res" != no; then :
13442   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13443   
13444 fi
13445
13446 fi
13447
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13449 $as_echo_n "checking for ANSI C header files... " >&6; }
13450 if ${ac_cv_header_stdc+:} false; then :
13451   $as_echo_n "(cached) " >&6
13452 else
13453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13454 /* end confdefs.h.  */
13455 #include <stdlib.h>
13456 #include <stdarg.h>
13457 #include <string.h>
13458 #include <float.h>
13459
13460 int
13461 main ()
13462 {
13463
13464   ;
13465   return 0;
13466 }
13467 _ACEOF
13468 if ac_fn_c_try_compile "$LINENO"; then :
13469   ac_cv_header_stdc=yes
13470 else
13471   ac_cv_header_stdc=no
13472 fi
13473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13474
13475 if test $ac_cv_header_stdc = yes; then
13476   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13477   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13478 /* end confdefs.h.  */
13479 #include <string.h>
13480
13481 _ACEOF
13482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13483   $EGREP "memchr" >/dev/null 2>&1; then :
13484   
13485 else
13486   ac_cv_header_stdc=no
13487 fi
13488 rm -f conftest*
13489
13490 fi
13491
13492 if test $ac_cv_header_stdc = yes; then
13493   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13494   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13495 /* end confdefs.h.  */
13496 #include <stdlib.h>
13497
13498 _ACEOF
13499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13500   $EGREP "free" >/dev/null 2>&1; then :
13501   
13502 else
13503   ac_cv_header_stdc=no
13504 fi
13505 rm -f conftest*
13506
13507 fi
13508
13509 if test $ac_cv_header_stdc = yes; then
13510   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13511   if test "$cross_compiling" = yes; then :
13512   :
13513 else
13514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13515 /* end confdefs.h.  */
13516 #include <ctype.h>
13517 #include <stdlib.h>
13518 #if ((' ' & 0x0FF) == 0x020)
13519 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13520 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13521 #else
13522 # define ISLOWER(c) \
13523                    (('a' <= (c) && (c) <= 'i') \
13524                      || ('j' <= (c) && (c) <= 'r') \
13525                      || ('s' <= (c) && (c) <= 'z'))
13526 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13527 #endif
13528
13529 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13530 int
13531 main ()
13532 {
13533   int i;
13534   for (i = 0; i < 256; i++)
13535     if (XOR (islower (i), ISLOWER (i))
13536         || toupper (i) != TOUPPER (i))
13537       return 2;
13538   return 0;
13539 }
13540 _ACEOF
13541 if ac_fn_c_try_run "$LINENO"; then :
13542   
13543 else
13544   ac_cv_header_stdc=no
13545 fi
13546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13547   conftest.$ac_objext conftest.beam conftest.$ac_ext
13548 fi
13549
13550 fi
13551 fi
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13553 $as_echo "$ac_cv_header_stdc" >&6; }
13554 if test $ac_cv_header_stdc = yes; then
13555   
13556 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
13557
13558 fi
13559
13560
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13562 $as_echo_n "checking for inline... " >&6; }
13563 if ${ac_cv_c_inline+:} false; then :
13564   $as_echo_n "(cached) " >&6
13565 else
13566   ac_cv_c_inline=no
13567 for ac_kw in inline __inline__ __inline; do
13568   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13569 /* end confdefs.h.  */
13570 #ifndef __cplusplus
13571 typedef int foo_t;
13572 static $ac_kw foo_t static_foo () {return 0; }
13573 $ac_kw foo_t foo () {return 0; }
13574 #endif
13575
13576 _ACEOF
13577 if ac_fn_c_try_compile "$LINENO"; then :
13578   ac_cv_c_inline=$ac_kw
13579 fi
13580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13581   test "$ac_cv_c_inline" != no && break
13582 done
13583
13584 fi
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13586 $as_echo "$ac_cv_c_inline" >&6; }
13587
13588 case $ac_cv_c_inline in
13589   inline | yes) ;;
13590   *)
13591     case $ac_cv_c_inline in
13592       no) ac_val=;;
13593       *) ac_val=$ac_cv_c_inline;;
13594     esac
13595     cat >>confdefs.h <<_ACEOF
13596 #ifndef __cplusplus
13597 #define inline $ac_val
13598 #endif
13599 _ACEOF
13600     ;;
13601 esac
13602
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13604 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13605 if ${ac_cv_c_const+:} false; then :
13606   $as_echo_n "(cached) " >&6
13607 else
13608   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13609 /* end confdefs.h.  */
13610
13611 int
13612 main ()
13613 {
13614 /* FIXME: Include the comments suggested by Paul. */
13615 #ifndef __cplusplus
13616   /* Ultrix mips cc rejects this.  */
13617   typedef int charset[2];
13618   const charset cs;
13619   /* SunOS 4.1.1 cc rejects this.  */
13620   char const *const *pcpcc;
13621   char **ppc;
13622   /* NEC SVR4.0.2 mips cc rejects this.  */
13623   struct point {int x, y;};
13624   static struct point const zero = {0,0};
13625   /* AIX XL C 1.02.0.0 rejects this.
13626      It does not let you subtract one const X* pointer from another in
13627      an arm of an if-expression whose if-part is not a constant
13628      expression */
13629   const char *g = "string";
13630   pcpcc = &g + (g ? g-g : 0);
13631   /* HPUX 7.0 cc rejects these. */
13632   ++pcpcc;
13633   ppc = (char**) pcpcc;
13634   pcpcc = (char const *const *) ppc;
13635   { /* SCO 3.2v4 cc rejects this.  */
13636     char *t;
13637     char const *s = 0 ? (char *) 0 : (char const *) 0;
13638
13639     *t++ = 0;
13640     if (s) return 0;
13641   }
13642   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13643     int x[] = {25, 17};
13644     const int *foo = &x[0];
13645     ++foo;
13646   }
13647   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13648     typedef const int *iptr;
13649     iptr p = 0;
13650     ++p;
13651   }
13652   { /* AIX XL C 1.02.0.0 rejects this saying
13653        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13654     struct s { int j; const int *ap[3]; };
13655     struct s *b; b->j = 5;
13656   }
13657   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13658     const int foo = 10;
13659     if (!foo) return 0;
13660   }
13661   return !cs[0] && !zero.x;
13662 #endif
13663
13664   ;
13665   return 0;
13666 }
13667 _ACEOF
13668 if ac_fn_c_try_compile "$LINENO"; then :
13669   ac_cv_c_const=yes
13670 else
13671   ac_cv_c_const=no
13672 fi
13673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13674 fi
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13676 $as_echo "$ac_cv_c_const" >&6; }
13677 if test $ac_cv_c_const = no; then
13678   
13679 $as_echo "@%:@define const /**/" >>confdefs.h
13680
13681 fi
13682
13683
13684 for ac_header in stdlib.h unistd.h stdio.h fcntl.h errno.h sys/time.h   \
13685         sys/param.h sys/select.h termios.h sgetty.h ttold.h ioctl-types.h       \
13686         fcntl.h sgtty.h sys/ioctl.h sys/time.h termio.h unistd.h        \
13687         endian.h byteswap.h asm/io.h mntent.h sys/mntent.h sys/mnttab.h \
13688         scsi/sg.h limits.h
13689 do :
13690   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13691 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13692 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13693   cat >>confdefs.h <<_ACEOF
13694 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13695 _ACEOF
13696  
13697 fi
13698
13699 done
13700
13701         
13702 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
13703 if test "x$ac_cv_header_regex_h" = xyes; then :
13704   
13705 $as_echo "@%:@define HAVE_REGEX 1" >>confdefs.h
13706
13707 else
13708   as_fn_error $? "
13709 *** We need regex.h and its object code to compile
13710 *** But we could not find it.
13711 " "$LINENO" 5
13712
13713 fi
13714
13715
13716
13717 with_bonjour=no
13718
13719 @%:@ Check whether --with-bonjour was given.
13720 if test "${with_bonjour+set}" = set; then :
13721   withval=$with_bonjour; 
13722 else
13723   with_bonjour=yes
13724
13725 fi
13726
13727
13728 MDNS_LIBS=
13729 if test "x$with_bonjour" = "xyes"; then
13730         ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
13731 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
13732   
13733                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DNSServiceResolve in -ldns_sd" >&5
13734 $as_echo_n "checking for DNSServiceResolve in -ldns_sd... " >&6; }
13735 if ${ac_cv_lib_dns_sd_DNSServiceResolve+:} false; then :
13736   $as_echo_n "(cached) " >&6
13737 else
13738   ac_check_lib_save_LIBS=$LIBS
13739 LIBS="-ldns_sd  $LIBS"
13740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13741 /* end confdefs.h.  */
13742
13743 /* Override any GCC internal prototype to avoid an error.
13744    Use char because int might match the return type of a GCC
13745    builtin and then its argument prototype would still apply.  */
13746 #ifdef __cplusplus
13747 extern "C"
13748 #endif
13749 char DNSServiceResolve ();
13750 int
13751 main ()
13752 {
13753 return DNSServiceResolve ();
13754   ;
13755   return 0;
13756 }
13757 _ACEOF
13758 if ac_fn_c_try_link "$LINENO"; then :
13759   ac_cv_lib_dns_sd_DNSServiceResolve=yes
13760 else
13761   ac_cv_lib_dns_sd_DNSServiceResolve=no
13762 fi
13763 rm -f core conftest.err conftest.$ac_objext \
13764     conftest$ac_exeext conftest.$ac_ext
13765 LIBS=$ac_check_lib_save_LIBS
13766 fi
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dns_sd_DNSServiceResolve" >&5
13768 $as_echo "$ac_cv_lib_dns_sd_DNSServiceResolve" >&6; }
13769 if test "x$ac_cv_lib_dns_sd_DNSServiceResolve" = xyes; then :
13770   
13771                         MDNS_LIBS="-ldns_sd"
13772                         
13773 $as_echo "@%:@define HAVE_MDNS_BONJOUR 1" >>confdefs.h
13774
13775                 
13776 fi
13777
13778         
13779 fi
13780
13781
13782 fi
13783
13784
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mnt_mountp in struct mnttab" >&5
13786 $as_echo_n "checking for mnt_mountp in struct mnttab... " >&6; }
13787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13788 /* end confdefs.h.  */
13789
13790 #if defined(HAVE_SYS_MNTENT_H) && defined(HAVE_SYS_MNTTAB_H)
13791 # include <sys/mntent.h>
13792 # include <sys/mnttab.h>
13793 #endif
13794
13795 int
13796 main ()
13797 {
13798
13799 struct mnttab mt;
13800 mt.mnt_mountp;
13801
13802   ;
13803   return 0;
13804 }
13805 _ACEOF
13806 if ac_fn_c_try_compile "$LINENO"; then :
13807   
13808
13809 $as_echo "@%:@define HAVE_MNTTAB 1" >>confdefs.h
13810
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13812 $as_echo "yes" >&6; }
13813
13814 else
13815   
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13817 $as_echo "no" >&6; }
13818
13819 fi
13820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13821
13822
13823
13824
13825 for ac_func in setmntent endmntent strerror snprintf vsnprintf
13826 do :
13827   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13828 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13829 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13830   cat >>confdefs.h <<_ACEOF
13831 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13832 _ACEOF
13833  
13834 fi
13835 done
13836
13837
13838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13839 /* end confdefs.h.  */
13840 #include <termios.h>
13841 int
13842 main ()
13843 {
13844 int foo = TIOCM_RTS;
13845   ;
13846   return 0;
13847 }
13848 _ACEOF
13849 if ac_fn_c_try_compile "$LINENO"; then :
13850   
13851 $as_echo "@%:@define HAVE_RTS_IOCTL 1" >>confdefs.h
13852
13853 fi
13854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13856 /* end confdefs.h.  */
13857 #include <termio.h>
13858 int
13859 main ()
13860 {
13861 int foo = TIOCM_RTS;
13862   ;
13863   return 0;
13864 }
13865 _ACEOF
13866 if ac_fn_c_try_compile "$LINENO"; then :
13867   
13868 $as_echo "@%:@define HAVE_RTS_IOCTL 1" >>confdefs.h
13869
13870 fi
13871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13873 /* end confdefs.h.  */
13874 #include <ioctl-types.h>
13875 int
13876 main ()
13877 {
13878 int foo = TIOCM_RTS;
13879   ;
13880   return 0;
13881 }
13882 _ACEOF
13883 if ac_fn_c_try_compile "$LINENO"; then :
13884   
13885 $as_echo "@%:@define HAVE_RTS_IOCTL 1" >>confdefs.h
13886
13887 fi
13888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13890 /* end confdefs.h.  */
13891 #include <sys/ioctl.h>
13892 int
13893 main ()
13894 {
13895 int foo = TIOCM_RTS;
13896   ;
13897   return 0;
13898 }
13899 _ACEOF
13900 if ac_fn_c_try_compile "$LINENO"; then :
13901   
13902 $as_echo "@%:@define HAVE_RTS_IOCTL 1" >>confdefs.h
13903
13904 fi
13905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13906
13907 # Check for va_copy()
13908 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
13909 if test "x$ac_cv_header_stdarg_h" = xyes; then :
13910   
13911 else
13912   
13913         as_fn_error $? "
13914 Building $PACKAGE_NAME requires <stdarg.h>.
13915 " "$LINENO" 5
13916
13917 fi
13918
13919
13920 have_va_copy=no
13921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13922 /* end confdefs.h.  */
13923
13924         #include <stdarg.h>
13925
13926 int
13927 main ()
13928 {
13929
13930         va_list a,b;
13931         va_copy(a,b);
13932
13933   ;
13934   return 0;
13935 }
13936 _ACEOF
13937 if ac_fn_c_try_link "$LINENO"; then :
13938   
13939         have_va_copy="va_copy"
13940
13941 else
13942   
13943         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13944 /* end confdefs.h.  */
13945
13946                 #include <stdarg.h>
13947         
13948 int
13949 main ()
13950 {
13951
13952                 va_list a,b;
13953                 __va_copy(a,b);
13954         
13955   ;
13956   return 0;
13957 }
13958 _ACEOF
13959 if ac_fn_c_try_link "$LINENO"; then :
13960   
13961                 have_va_copy="__va_copy"
13962                 
13963 $as_echo "@%:@define va_copy __va_copy" >>confdefs.h
13964
13965         
13966 fi
13967 rm -f core conftest.err conftest.$ac_objext \
13968     conftest$ac_exeext conftest.$ac_ext
13969
13970 fi
13971 rm -f core conftest.err conftest.$ac_objext \
13972     conftest$ac_exeext conftest.$ac_ext
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy() or replacement" >&5
13974 $as_echo_n "checking for va_copy() or replacement... " >&6; }
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_va_copy" >&5
13976 $as_echo "$have_va_copy" >&6; }
13977 if test "x$have_va_copy" != "xno"; then
13978         
13979 $as_echo "@%:@define HAVE_VA_COPY 1" >>confdefs.h
13980
13981 fi
13982
13983
13984
13985 serial_msg=yes
13986 have_serial=true
13987 try_baudboy_msg=true
13988 try_ttylock=true
13989 try_lockdev=true
13990 try_resmgr=true
13991 @%:@ Check whether --enable-serial was given.
13992 if test "${enable_serial+set}" = set; then :
13993   enableval=$enable_serial; 
13994         if test x$enableval = xno; then
13995                 have_serial=false
13996                 serial_msg=no
13997                 try_baudboy=false
13998                 try_ttylock=false
13999                 try_lockdev=false
14000                 try_resmgr=false
14001         fi
14002
14003 fi
14004
14005 if $have_serial; then
14006         IOLIB_SUBDIRS="$IOLIB_SUBDIRS serial"
14007         
14008 $as_echo "@%:@define HAVE_SERIAL 1" >>confdefs.h
14009
14010 fi
14011
14012 gp_config_msg="${gp_config_msg}
14013   Serial ports
14014 "
14015
14016
14017 gp_config_msg_len="$(expr "Serial support" : '.*')"
14018 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
14019         gp_config_msg_lhs="$(expr "Serial support" : "\(.\{0,${gp_config_len3}\}\)")..:"
14020 else
14021         gp_config_msg_lhs="$(expr "Serial support:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
14022 fi
14023 gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} $serial_msg
14024 "
14025
14026
14027 SERIAL_LIBS=""
14028 if $have_serial; then
14029
14030 # GP_SERLOCK([baudboy])
14031 @%:@ Check whether --enable-baudboy was given.
14032 if test "${enable_baudboy+set}" = set; then :
14033   enableval=$enable_baudboy; 
14034         if test x$enableval = xno; then
14035                 try_baudboy=false
14036         fi
14037
14038 fi
14039
14040 # GP_SERLOCK([ttylock])
14041 @%:@ Check whether --enable-ttylock was given.
14042 if test "${enable_ttylock+set}" = set; then :
14043   enableval=$enable_ttylock; 
14044         if test x$enableval = xno; then
14045                 try_ttylock=false
14046         fi
14047
14048 fi
14049
14050 # GP_SERLOCK([lockdev])
14051 @%:@ Check whether --enable-lockdev was given.
14052 if test "${enable_lockdev+set}" = set; then :
14053   enableval=$enable_lockdev; 
14054         if test x$enableval = xno; then
14055                 try_lockdev=false
14056         fi
14057
14058 fi
14059
14060 # GP_SERLOCK([resmgr])
14061 @%:@ Check whether --enable-resmgr was given.
14062 if test "${enable_resmgr+set}" = set; then :
14063   enableval=$enable_resmgr; 
14064         if test x$enableval = xno; then
14065                 try_resmgr=false
14066         fi
14067
14068 fi
14069
14070
14071 resmgr_msg=no
14072 if $try_resmgr; then
14073         ac_fn_c_check_header_mongrel "$LINENO" "resmgr.h" "ac_cv_header_resmgr_h" "$ac_includes_default"
14074 if test "x$ac_cv_header_resmgr_h" = xyes; then :
14075   
14076                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rsm_lock_device in -lresmgr" >&5
14077 $as_echo_n "checking for rsm_lock_device in -lresmgr... " >&6; }
14078 if ${ac_cv_lib_resmgr_rsm_lock_device+:} false; then :
14079   $as_echo_n "(cached) " >&6
14080 else
14081   ac_check_lib_save_LIBS=$LIBS
14082 LIBS="-lresmgr  $LIBS"
14083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14084 /* end confdefs.h.  */
14085
14086 /* Override any GCC internal prototype to avoid an error.
14087    Use char because int might match the return type of a GCC
14088    builtin and then its argument prototype would still apply.  */
14089 #ifdef __cplusplus
14090 extern "C"
14091 #endif
14092 char rsm_lock_device ();
14093 int
14094 main ()
14095 {
14096 return rsm_lock_device ();
14097   ;
14098   return 0;
14099 }
14100 _ACEOF
14101 if ac_fn_c_try_link "$LINENO"; then :
14102   ac_cv_lib_resmgr_rsm_lock_device=yes
14103 else
14104   ac_cv_lib_resmgr_rsm_lock_device=no
14105 fi
14106 rm -f core conftest.err conftest.$ac_objext \
14107     conftest$ac_exeext conftest.$ac_ext
14108 LIBS=$ac_check_lib_save_LIBS
14109 fi
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resmgr_rsm_lock_device" >&5
14111 $as_echo "$ac_cv_lib_resmgr_rsm_lock_device" >&6; }
14112 if test "x$ac_cv_lib_resmgr_rsm_lock_device" = xyes; then :
14113   
14114                         resmgr_msg=yes
14115                         SERIAL_LIBS="-lresmgr"
14116                         
14117 $as_echo "@%:@define HAVE_RESMGR 1" >>confdefs.h
14118
14119                 
14120 fi
14121
14122         
14123 fi
14124
14125
14126 fi
14127
14128 gp_config_msg_len="$(expr "resmgr locking" : '.*')"
14129 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
14130         gp_config_msg_lhs="$(expr "resmgr locking" : "\(.\{0,${gp_config_len3}\}\)")..:"
14131 else
14132         gp_config_msg_lhs="$(expr "resmgr locking:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
14133 fi
14134 gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} ${resmgr_msg}
14135 "
14136
14137
14138 baudboy_msg=no
14139 if $try_baudboy; then
14140         ac_fn_c_check_header_mongrel "$LINENO" "baudboy.h" "ac_cv_header_baudboy_h" "$ac_includes_default"
14141 if test "x$ac_cv_header_baudboy_h" = xyes; then :
14142   
14143                 baudboy_msg=yes
14144                 try_ttylock=false
14145                 try_lockdev=false
14146                 
14147 $as_echo "@%:@define HAVE_BAUDBOY 1" >>confdefs.h
14148
14149         
14150 fi
14151
14152
14153 fi
14154
14155 gp_config_msg_len="$(expr "baudboy locking" : '.*')"
14156 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
14157         gp_config_msg_lhs="$(expr "baudboy locking" : "\(.\{0,${gp_config_len3}\}\)")..:"
14158 else
14159         gp_config_msg_lhs="$(expr "baudboy locking:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
14160 fi
14161 gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} ${baudboy_msg}
14162 "
14163
14164
14165 ttylock_msg=no
14166 if $try_ttylock; then
14167         ac_fn_c_check_header_mongrel "$LINENO" "lockdev.h" "ac_cv_header_lockdev_h" "$ac_includes_default"
14168 if test "x$ac_cv_header_lockdev_h" = xyes; then :
14169   
14170 fi
14171
14172
14173         ac_fn_c_check_header_compile "$LINENO" "ttylock.h" "ac_cv_header_ttylock_h" "#ifdef HAVE_LOCKDEV_H
14174 # include <lockdev.h>
14175 #endif
14176         
14177 "
14178 if test "x$ac_cv_header_ttylock_h" = xyes; then :
14179   
14180                 lockdev_result="no"
14181                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14182 /* end confdefs.h.  */
14183 #include <ttylock.h>
14184 int
14185 main ()
14186 {
14187 ttylocked ("/dev/foo");
14188   ;
14189   return 0;
14190 }
14191 _ACEOF
14192 if ac_fn_c_try_link "$LINENO"; then :
14193   
14194                         lockdev_result="no"
14195                         
14196 $as_echo "@%:@define HAVE_TTYLOCK 1" >>confdefs.h
14197
14198                         ttylock_msg=yes
14199                         try_lockdev=false,
14200                         LDFLAGS="$LDFLAGS -llockdev"
14201                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14202 /* end confdefs.h.  */
14203 #include <ttylock.h>
14204 int
14205 main ()
14206 {
14207 ttylocked ("/dev/foo");
14208   ;
14209   return 0;
14210 }
14211 _ACEOF
14212 if ac_fn_c_try_link "$LINENO"; then :
14213   
14214                                 lockdev_result="yes"
14215                                 
14216 $as_echo "@%:@define HAVE_TTYLOCK 1" >>confdefs.h
14217
14218                                 ttylock_msg=yes
14219                                 try_lockdev=false
14220                                 SERIAL_LIBS=-llockdev
14221                         
14222 fi
14223 rm -f core conftest.err conftest.$ac_objext \
14224     conftest$ac_exeext conftest.$ac_ext
14225                 
14226 fi
14227 rm -f core conftest.err conftest.$ac_objext \
14228     conftest$ac_exeext conftest.$ac_ext
14229                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ttylock needs lockdev" >&5
14230 $as_echo_n "checking if ttylock needs lockdev... " >&6; }
14231                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lockdev_result}" >&5
14232 $as_echo "${lockdev_result}" >&6; }
14233         
14234 fi
14235
14236
14237 fi
14238
14239 gp_config_msg_len="$(expr "ttylock locking" : '.*')"
14240 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
14241         gp_config_msg_lhs="$(expr "ttylock locking" : "\(.\{0,${gp_config_len3}\}\)")..:"
14242 else
14243         gp_config_msg_lhs="$(expr "ttylock locking:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
14244 fi
14245 gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} ${ttylock_msg}
14246 "
14247
14248
14249 lockdev_msg=no
14250 if $try_lockdev; then
14251         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dev_lock in -llockdev" >&5
14252 $as_echo_n "checking for dev_lock in -llockdev... " >&6; }
14253 if ${ac_cv_lib_lockdev_dev_lock+:} false; then :
14254   $as_echo_n "(cached) " >&6
14255 else
14256   ac_check_lib_save_LIBS=$LIBS
14257 LIBS="-llockdev  $LIBS"
14258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14259 /* end confdefs.h.  */
14260
14261 /* Override any GCC internal prototype to avoid an error.
14262    Use char because int might match the return type of a GCC
14263    builtin and then its argument prototype would still apply.  */
14264 #ifdef __cplusplus
14265 extern "C"
14266 #endif
14267 char dev_lock ();
14268 int
14269 main ()
14270 {
14271 return dev_lock ();
14272   ;
14273   return 0;
14274 }
14275 _ACEOF
14276 if ac_fn_c_try_link "$LINENO"; then :
14277   ac_cv_lib_lockdev_dev_lock=yes
14278 else
14279   ac_cv_lib_lockdev_dev_lock=no
14280 fi
14281 rm -f core conftest.err conftest.$ac_objext \
14282     conftest$ac_exeext conftest.$ac_ext
14283 LIBS=$ac_check_lib_save_LIBS
14284 fi
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockdev_dev_lock" >&5
14286 $as_echo "$ac_cv_lib_lockdev_dev_lock" >&6; }
14287 if test "x$ac_cv_lib_lockdev_dev_lock" = xyes; then :
14288   
14289                 ac_fn_c_check_header_mongrel "$LINENO" "lockdev.h" "ac_cv_header_lockdev_h" "$ac_includes_default"
14290 if test "x$ac_cv_header_lockdev_h" = xyes; then :
14291   
14292                         
14293 $as_echo "@%:@define HAVE_LOCKDEV 1" >>confdefs.h
14294
14295                         lockdev_msg=yes
14296                         SERIAL_LIBS=-llockdev
14297                 
14298 fi
14299
14300
14301         
14302 fi
14303
14304 fi
14305
14306 gp_config_msg_len="$(expr "lockdev locking" : '.*')"
14307 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
14308         gp_config_msg_lhs="$(expr "lockdev locking" : "\(.\{0,${gp_config_len3}\}\)")..:"
14309 else
14310         gp_config_msg_lhs="$(expr "lockdev locking:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
14311 fi
14312 gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} ${lockdev_msg}
14313 "
14314
14315
14316 fi # have_serial
14317
14318
14319
14320
14321
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14323 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14324 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
14325   $as_echo_n "(cached) " >&6
14326 else
14327   ac_check_lib_save_LIBS=$LIBS
14328 LIBS="-lpthread  $LIBS"
14329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14330 /* end confdefs.h.  */
14331
14332 /* Override any GCC internal prototype to avoid an error.
14333    Use char because int might match the return type of a GCC
14334    builtin and then its argument prototype would still apply.  */
14335 #ifdef __cplusplus
14336 extern "C"
14337 #endif
14338 char pthread_create ();
14339 int
14340 main ()
14341 {
14342 return pthread_create ();
14343   ;
14344   return 0;
14345 }
14346 _ACEOF
14347 if ac_fn_c_try_link "$LINENO"; then :
14348   ac_cv_lib_pthread_pthread_create=yes
14349 else
14350   ac_cv_lib_pthread_pthread_create=no
14351 fi
14352 rm -f core conftest.err conftest.$ac_objext \
14353     conftest$ac_exeext conftest.$ac_ext
14354 LIBS=$ac_check_lib_save_LIBS
14355 fi
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14357 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14358 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
14359   cat >>confdefs.h <<_ACEOF
14360 @%:@define HAVE_LIBPTHREAD 1
14361 _ACEOF
14362
14363   LIBS="-lpthread $LIBS"
14364
14365 fi
14366
14367
14368
14369 gp_config_msg="${gp_config_msg}
14370   USB ports
14371 "
14372
14373
14374 #
14375 # [GP_PKG_CONFIG]
14376 #
14377
14378 export PKG_CONFIG
14379
14380 export PKG_CONFIG_PATH
14381
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PKG_CONFIG_PATH" >&5
14383 $as_echo_n "checking PKG_CONFIG_PATH... " >&6; }
14384 if test "x${PKG_CONFIG_PATH}" = "x"; then
14385         { $as_echo "$as_me:${as_lineno-$LINENO}: result: empty" >&5
14386 $as_echo "empty" >&6; }
14387 else
14388         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PKG_CONFIG_PATH}" >&5
14389 $as_echo "${PKG_CONFIG_PATH}" >&6; }
14390 fi
14391
14392 # Extract the first word of "pkg-config", so it can be a program name with args.
14393 set dummy pkg-config; ac_word=$2
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14395 $as_echo_n "checking for $ac_word... " >&6; }
14396 if ${ac_cv_path_PKG_CONFIG+:} false; then :
14397   $as_echo_n "(cached) " >&6
14398 else
14399   case $PKG_CONFIG in
14400   [\\/]* | ?:[\\/]*)
14401   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14402   ;;
14403   *)
14404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14405 for as_dir in $PATH
14406 do
14407   IFS=$as_save_IFS
14408   test -z "$as_dir" && as_dir=.
14409     for ac_exec_ext in '' $ac_executable_extensions; do
14410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14411     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14413     break 2
14414   fi
14415 done
14416   done
14417 IFS=$as_save_IFS
14418
14419   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="false"
14420   ;;
14421 esac
14422 fi
14423 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14424 if test -n "$PKG_CONFIG"; then
14425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14426 $as_echo "$PKG_CONFIG" >&6; }
14427 else
14428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14429 $as_echo "no" >&6; }
14430 fi
14431
14432
14433 if test "$PKG_CONFIG" = "false"; then
14434 as_fn_error $? "
14435 *** Build requires pkg-config
14436 ***
14437 *** Possible solutions:
14438 ***   - set PKG_CONFIG to where your pkg-config is located
14439 ***   - set PATH to include the directory where pkg-config is installed
14440 ***   - get it from http://freedesktop.org/software/pkgconfig/ and install it
14441 " "$LINENO" 5
14442 fi
14443
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dynamic library extension" >&5
14445 $as_echo_n "checking for dynamic library extension... " >&6; }
14446 soext=""
14447 case "$host" in
14448         *linux*)        soext=".so" ;;
14449         *sunos*)        soext=".so" ;;
14450         *solaris*)      soext=".so" ;;
14451         *bsd*)          soext=".so" ;;
14452         *darwin*)       soext=".dylib" ;;
14453         *w32*)          soext=".dll" ;;
14454 esac
14455 if test "x$soext" = "x"; then
14456         soext=".so"
14457         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${soext}" >&5
14458 $as_echo "${soext}" >&6; }
14459         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 
14460 Host system \"${host}\" not recognized, defaulting to \"${soext}\".
14461 " >&5
14462 $as_echo "$as_me: WARNING: 
14463 Host system \"${host}\" not recognized, defaulting to \"${soext}\".
14464 " >&2;}
14465 else
14466         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${soext}" >&5
14467 $as_echo "${soext}" >&6; }
14468 fi
14469
14470
14471
14472
14473
14474
14475
14476 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14477         if test -n "$ac_tool_prefix"; then
14478   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14479 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14481 $as_echo_n "checking for $ac_word... " >&6; }
14482 if ${ac_cv_path_PKG_CONFIG+:} false; then :
14483   $as_echo_n "(cached) " >&6
14484 else
14485   case $PKG_CONFIG in
14486   [\\/]* | ?:[\\/]*)
14487   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14488   ;;
14489   *)
14490   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14491 for as_dir in $PATH
14492 do
14493   IFS=$as_save_IFS
14494   test -z "$as_dir" && as_dir=.
14495     for ac_exec_ext in '' $ac_executable_extensions; do
14496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14497     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14499     break 2
14500   fi
14501 done
14502   done
14503 IFS=$as_save_IFS
14504
14505   ;;
14506 esac
14507 fi
14508 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14509 if test -n "$PKG_CONFIG"; then
14510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14511 $as_echo "$PKG_CONFIG" >&6; }
14512 else
14513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14514 $as_echo "no" >&6; }
14515 fi
14516
14517
14518 fi
14519 if test -z "$ac_cv_path_PKG_CONFIG"; then
14520   ac_pt_PKG_CONFIG=$PKG_CONFIG
14521   # Extract the first word of "pkg-config", so it can be a program name with args.
14522 set dummy pkg-config; ac_word=$2
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14524 $as_echo_n "checking for $ac_word... " >&6; }
14525 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
14526   $as_echo_n "(cached) " >&6
14527 else
14528   case $ac_pt_PKG_CONFIG in
14529   [\\/]* | ?:[\\/]*)
14530   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14531   ;;
14532   *)
14533   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14534 for as_dir in $PATH
14535 do
14536   IFS=$as_save_IFS
14537   test -z "$as_dir" && as_dir=.
14538     for ac_exec_ext in '' $ac_executable_extensions; do
14539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14540     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14542     break 2
14543   fi
14544 done
14545   done
14546 IFS=$as_save_IFS
14547
14548   ;;
14549 esac
14550 fi
14551 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14552 if test -n "$ac_pt_PKG_CONFIG"; then
14553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14554 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
14555 else
14556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14557 $as_echo "no" >&6; }
14558 fi
14559
14560   if test "x$ac_pt_PKG_CONFIG" = x; then
14561     PKG_CONFIG=""
14562   else
14563     case $cross_compiling:$ac_tool_warned in
14564 yes:)
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14566 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14567 ac_tool_warned=yes ;;
14568 esac
14569     PKG_CONFIG=$ac_pt_PKG_CONFIG
14570   fi
14571 else
14572   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14573 fi
14574
14575 fi
14576 if test -n "$PKG_CONFIG"; then
14577         _pkg_min_version=0.9.0
14578         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14579 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14580         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14581                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14582 $as_echo "yes" >&6; }
14583         else
14584                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14585 $as_echo "no" >&6; }
14586                 PKG_CONFIG=""
14587         fi
14588 fi
14589       
14590 # ----------------------------------------------------------------------
14591 # [GP_CHECK_LIBRARY]([LIBUSB],[libusb],[>= 0.1.4],
14592 #                    [usb.h],[usb_open],
14593 #                    [...],[...],[disable-explicitly])
14594 # http://libusb.sourceforge.net/
14595
14596 # ----------------------------------------------------------------------
14597 # Use _CFLAGS and _LIBS given to configure.
14598 # This makes it possible to set these vars in a configure script
14599 # and AC_CONFIG_SUBDIRS this configure.
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb to use" >&5
14601 $as_echo_n "checking for libusb to use... " >&6; }
14602 REQUIREMENTS_FOR_LIBUSB="libusb >= 0.1.4"
14603 userdef_LIBUSB=no
14604 have_LIBUSB=no
14605 if test "x${LIBUSB_LIBS}" = "x" && test "x${LIBUSB_CFLAGS}" = "x"; then
14606         # define --with/--without argument
14607                                 try_LIBUSB=auto
14608                         
14609 @%:@ Check whether --with-libusb was given.
14610 if test "${with_libusb+set}" = set; then :
14611   withval=$with_libusb; try_LIBUSB="$withval"
14612 fi
14613
14614         if test "x${try_LIBUSB}" = "xno"; then
14615               REQUIREMENTS_FOR_LIBUSB=
14616         fi
14617         if test "x${try_LIBUSB}" = "xauto"; then try_LIBUSB=autodetect; fi
14618         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${try_LIBUSB}" >&5
14619 $as_echo "${try_LIBUSB}" >&6; }
14620                 if test "x${try_LIBUSB}" = "xautodetect"; then
14621                 # OK, we have to autodetect.
14622                 # We start autodetection with the cleanest known method: pkg-config
14623                 if test "x${have_LIBUSB}" = "xno"; then
14624                         # we need that line break after the PKG_CHECK_MODULES
14625                         
14626 pkg_failed=no
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5
14628 $as_echo_n "checking for LIBUSB... " >&6; }
14629
14630 if test -n "$LIBUSB_CFLAGS"; then
14631     pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
14632  elif test -n "$PKG_CONFIG"; then
14633     if test -n "$PKG_CONFIG" && \
14634     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb >= 0.1.4\""; } >&5
14635   ($PKG_CONFIG --exists --print-errors "libusb >= 0.1.4") 2>&5
14636   ac_status=$?
14637   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14638   test $ac_status = 0; }; then
14639   pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb >= 0.1.4" 2>/dev/null`
14640 else
14641   pkg_failed=yes
14642 fi
14643  else
14644     pkg_failed=untried
14645 fi
14646 if test -n "$LIBUSB_LIBS"; then
14647     pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
14648  elif test -n "$PKG_CONFIG"; then
14649     if test -n "$PKG_CONFIG" && \
14650     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb >= 0.1.4\""; } >&5
14651   ($PKG_CONFIG --exists --print-errors "libusb >= 0.1.4") 2>&5
14652   ac_status=$?
14653   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14654   test $ac_status = 0; }; then
14655   pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb >= 0.1.4" 2>/dev/null`
14656 else
14657   pkg_failed=yes
14658 fi
14659  else
14660     pkg_failed=untried
14661 fi
14662
14663
14664
14665 if test $pkg_failed = yes; then
14666         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14667 $as_echo "no" >&6; }
14668         
14669 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14670         _pkg_short_errors_supported=yes
14671 else
14672         _pkg_short_errors_supported=no
14673 fi
14674         if test $_pkg_short_errors_supported = yes; then
14675                 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libusb >= 0.1.4" 2>&1`
14676         else 
14677                 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libusb >= 0.1.4" 2>&1`
14678         fi
14679         # Put the nasty error message in config.log where it belongs
14680         echo "$LIBUSB_PKG_ERRORS" >&5
14681
14682         :
14683 elif test $pkg_failed = untried; then
14684         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14685 $as_echo "no" >&6; }
14686         :
14687 else
14688         LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
14689         LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
14690         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14691 $as_echo "yes" >&6; }
14692         have_LIBUSB=yes
14693 fi
14694                 fi
14695                 # If pkg-config didn't find anything, try the libfoo-config program
14696                 # certain known libraries ship with.
14697                 if test "x${have_LIBUSB}" = "xno"; then
14698                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking libusb config program" >&5
14699 $as_echo_n "checking libusb config program... " >&6; }
14700                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libusb-config" >&5
14701 $as_echo "libusb-config" >&6; }
14702                         # Extract the first word of "gp_lib_config", so it can be a program name with args.
14703 set dummy libusb-config; ac_word=$2
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14705 $as_echo_n "checking for $ac_word... " >&6; }
14706 if ${ac_cv_path_LIBUSB_CONFIG_PROG+:} false; then :
14707   $as_echo_n "(cached) " >&6
14708 else
14709   case $LIBUSB_CONFIG_PROG in
14710   [\\/]* | ?:[\\/]*)
14711   ac_cv_path_LIBUSB_CONFIG_PROG="$LIBUSB_CONFIG_PROG" # Let the user override the test with a path.
14712   ;;
14713   *)
14714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14715 for as_dir in $PATH
14716 do
14717   IFS=$as_save_IFS
14718   test -z "$as_dir" && as_dir=.
14719     for ac_exec_ext in '' $ac_executable_extensions; do
14720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14721     ac_cv_path_LIBUSB_CONFIG_PROG="$as_dir/$ac_word$ac_exec_ext"
14722     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14723     break 2
14724   fi
14725 done
14726   done
14727 IFS=$as_save_IFS
14728
14729   ;;
14730 esac
14731 fi
14732 LIBUSB_CONFIG_PROG=$ac_cv_path_LIBUSB_CONFIG_PROG
14733 if test -n "$LIBUSB_CONFIG_PROG"; then
14734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBUSB_CONFIG_PROG" >&5
14735 $as_echo "$LIBUSB_CONFIG_PROG" >&6; }
14736 else
14737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14738 $as_echo "no" >&6; }
14739 fi
14740
14741
14742                         if test -n "${LIBUSB_CONFIG_PROG}" &&
14743                                 test "${LIBUSB_CONFIG_PROG}" != "none"; then
14744                                 
14745                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb version according to libusb-config" >&5
14746 $as_echo_n "checking for libusb version according to libusb-config... " >&6; }
14747                                                                 _LIBUSB_COMPN="-lt"
14748                                                                 # split requested version number using m4 regexps
14749                                 _LIBUSB_REQ_1="0"
14750                                 _LIBUSB_REQ_2="1"
14751                                 _LIBUSB_REQ_3="4"
14752                                 _LIBUSB_REQ_4=""
14753                                 # split installed version number via shell and sed
14754                                 _LIBUSB_VERSION="$("${LIBUSB_CONFIG_PROG}" --version | sed 's/^.* //')"
14755                                 _LIBUSB_VER_1="$(echo "${_LIBUSB_VERSION}" | sed 's/\([0-9]*\).*/\1/g')"
14756                                 _LIBUSB_VER_2="$(echo "${_LIBUSB_VERSION}" | sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/g')"
14757                                 _LIBUSB_VER_3="$(echo "${_LIBUSB_VERSION}" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/g')"
14758                                 _LIBUSB_VER_4="$(echo "${_LIBUSB_VERSION}" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)\(.*\)/\4/g')"
14759                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_LIBUSB_VERSION}" >&5
14760 $as_echo "${_LIBUSB_VERSION}" >&6; }
14761                                 _tmp=false
14762                                 if   test "${_LIBUSB_VER_1}" "${_LIBUSB_COMPN}" "${_LIBUSB_REQ_1}"; then _tmp=true;
14763                                 elif test "${_LIBUSB_VER_2}" "${_LIBUSB_COMPN}" "${_LIBUSB_REQ_2}"; then _tmp=true;
14764                                 elif test "${_LIBUSB_VER_3}" "${_LIBUSB_COMPN}" "${_LIBUSB_REQ_3}"; then _tmp=true;
14765                                 elif test "x${_LIBUSB_VER_4}" = "x" && test "x${_LIBUSB_REQ_4}" != "x"; then _tmp=true;
14766                                 elif test "${_LIBUSB_VER_4}" "${_LIBUSB_COMPN}" "${_LIBUSB_REQ_4}"; then _tmp=true;
14767                                 fi
14768                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libusb version is matching requirement >= 0.1.4" >&5
14769 $as_echo_n "checking if libusb version is matching requirement >= 0.1.4... " >&6; }
14770                                 if "${_tmp}"; then
14771                                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14772 $as_echo "no" >&6; }
14773                                    as_fn_error $? "Version requirement libusb >= 0.1.4 not met. Found: ${_LIBUSB_VERSION}" "$LINENO" 5
14774                                 else
14775                                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14776 $as_echo "yes" >&6; }
14777                                 fi
14778                                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb parameters from libusb-config" >&5
14779 $as_echo_n "checking for libusb parameters from libusb-config... " >&6; }
14780                                 LIBUSB_LIBS="$(${LIBUSB_CONFIG_PROG} --libs || echo "*error*")"
14781                                 LIBUSB_CFLAGS="$(${LIBUSB_CONFIG_PROG} --cflags || echo "*error*")"
14782                                 if test "x${LIBUSB_LIBS}" = "*error*" || 
14783                                         test "x${LIBUSB_CFLAGS}" = "*error*"; then
14784                                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
14785 $as_echo "error" >&6; }
14786                                 else
14787                                         have_LIBUSB=yes
14788                                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14789 $as_echo "ok" >&6; }
14790                                 fi
14791                         fi
14792                                         fi
14793                 # Version requirement given, so we do not rely on probing.
14794         elif test "x${try_LIBUSB}" = "xno"; then
14795                 :
14796         else
14797                 # We've been given a prefix to look in for library libusb.
14798                 # We start looking for libusb.la files first.
14799                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb.la file in ${try_LIBUSB}" >&5
14800 $as_echo_n "checking for libusb.la file in ${try_LIBUSB}... " >&6; }
14801                 if test -f "${try_LIBUSB}/lib/libusb.la"; then
14802                         LIBUSB_LIBS="${try_LIBUSB}/lib/libusb.la"
14803                         LIBUSB_CFLAGS="-I${try_LIBUSB}/include"
14804                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: libtool file $LIBUSB_LIBS (good)" >&5
14805 $as_echo "libtool file $LIBUSB_LIBS (good)" >&6; }
14806                         have_LIBUSB=yes
14807                 elif test -f "${try_LIBUSB}/lib64/libusb.la"; then # HACK
14808                         LIBUSB_LIBS="${try_LIBUSB}/lib64/libusb.la"
14809                         LIBUSB_CFLAGS="-I${try_LIBUSB}/include"
14810                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: libtool file $LIBUSB_LIBS (good)" >&5
14811 $as_echo "libtool file $LIBUSB_LIBS (good)" >&6; }
14812                         have_LIBUSB=yes
14813                 else
14814                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: wild guess that something is in $try_LIBUSB" >&5
14815 $as_echo "wild guess that something is in $try_LIBUSB" >&6; }
14816                         LIBUSB_LIBS="-L${try_LIBUSB}/lib -l$(echo "libusb" | sed 's/^lib//')"
14817                         LIBUSB_CFLAGS="-I${try_LIBUSB}/include"
14818                         have_LIBUSB=yes
14819                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 
14820 * Warning:
14821 *   libtool file libusb.la could not be found.
14822 *   We may be linking against the WRONG library.
14823 " >&5
14824 $as_echo "$as_me: WARNING: 
14825 * Warning:
14826 *   libtool file libusb.la could not be found.
14827 *   We may be linking against the WRONG library.
14828 " >&2;}
14829                 fi
14830         fi
14831 elif test "x${LIBUSB_LIBS}" != "x" && test "x${LIBUSB_CFLAGS}" != "x"; then
14832         { $as_echo "$as_me:${as_lineno-$LINENO}: result: user-defined" >&5
14833 $as_echo "user-defined" >&6; }
14834         userdef_LIBUSB=yes
14835         have_LIBUSB=yes
14836 else
14837         { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken call" >&5
14838 $as_echo "broken call" >&6; }
14839         as_fn_error $? "
14840 * Fatal:
14841 * When calling configure for ${PACKAGE_TARNAME}
14842 *     ${PACKAGE_NAME}
14843 * either set both LIBUSB_LIBS *and* LIBUSB_CFLAGS
14844 * or neither.
14845 " "$LINENO" 5
14846 fi
14847
14848 if test "x${have_LIBUSB}" = "xyes"; then
14849 # ACTION-IF-FOUND
14850
14851         IOLIB_SUBDIRS="$IOLIB_SUBDIRS usb usbdiskdirect usbscsi"
14852
14853 fi
14854 if test "x${have_LIBUSB}" = "xyes"; then
14855 CPPFLAGS_save="$CPPFLAGS"
14856 CPPFLAGS="${LIBUSB_CFLAGS}"
14857 ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
14858 if test "x$ac_cv_header_usb_h" = xyes; then :
14859   have_LIBUSB=yes
14860 else
14861   have_LIBUSB=no
14862 fi
14863
14864
14865 CPPFLAGS="$CPPFLAGS_save"
14866 fi
14867 if test "x${userdef_LIBUSB}" = "xno" && test "x${have_LIBUSB}" = "xyes"; then
14868         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function usb_open in libusb" >&5
14869 $as_echo_n "checking for function usb_open in libusb... " >&6; }
14870         LIBS_save="$LIBS"
14871         LIBS="${LIBUSB_LIBS}"
14872         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14873 /* end confdefs.h.  */
14874
14875 /* Override any GCC internal prototype to avoid an error.
14876    Use char because int might match the return type of a GCC
14877    builtin and then its argument prototype would still apply.  */
14878 #ifdef __cplusplus
14879 extern "C"
14880 #endif
14881 char usb_open ();
14882 int
14883 main ()
14884 {
14885 return usb_open ();
14886   ;
14887   return 0;
14888 }
14889 _ACEOF
14890 if ac_fn_c_try_link "$LINENO"; then :
14891   
14892 else
14893   have_LIBUSB=no
14894 fi
14895 rm -f core conftest.err conftest.$ac_objext \
14896     conftest$ac_exeext conftest.$ac_ext
14897         LIBS="$LIBS_save"
14898         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_LIBUSB}" >&5
14899 $as_echo "${have_LIBUSB}" >&6; }
14900 fi
14901
14902 if test "x${try_LIBUSB}" != "xno" && test "x${have_LIBUSB}" = "xno"; then
14903         as_fn_error $? "
14904 PKG_CONFIG_PATH=${PKG_CONFIG_PATH}
14905 LIBUSB_LIBS=${LIBUSB_LIBS}
14906 LIBUSB_CFLAGS=${LIBUSB_CFLAGS}
14907
14908 * Fatal: ${PACKAGE_NAME} by default requires libusb >= 0.1.4 to build.
14909 *        You must explicitly disable libusb to build ${PACKAGE_TARNAME} without it.
14910
14911 * Possible solutions:
14912 *   - call configure with --with-libusb=no or --without-libusb
14913 *   - set PKG_CONFIG_PATH to adequate value
14914 *   - call configure with LIBUSB_LIBS=.. and LIBUSB_CFLAGS=..
14915 *   - call configure with one of the --with-libusb parameters
14916 *   - get libusb and install it
14917 " "$LINENO" 5
14918 fi
14919  if test "x$have_LIBUSB" = "xyes"; then
14920   HAVE_LIBUSB_TRUE=
14921   HAVE_LIBUSB_FALSE='#'
14922 else
14923   HAVE_LIBUSB_TRUE='#'
14924   HAVE_LIBUSB_FALSE=
14925 fi
14926
14927 if test "x$have_LIBUSB" = "xyes"; then
14928         
14929 $as_echo "@%:@define HAVE_LIBUSB 1" >>confdefs.h
14930
14931         
14932 gp_config_msg_len="$(expr "libusb" : '.*')"
14933 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
14934         gp_config_msg_lhs="$(expr "libusb" : "\(.\{0,${gp_config_len3}\}\)")..:"
14935 else
14936         gp_config_msg_lhs="$(expr "libusb:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
14937 fi
14938 gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} yes
14939 "
14940         { $as_echo "$as_me:${as_lineno-$LINENO}: checking libusb library flags" >&5
14941 $as_echo_n "checking libusb library flags... " >&6; }
14942         { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"${LIBUSB_LIBS}\"" >&5
14943 $as_echo "\"${LIBUSB_LIBS}\"" >&6; }
14944         { $as_echo "$as_me:${as_lineno-$LINENO}: checking libusb cpp flags" >&5
14945 $as_echo_n "checking libusb cpp flags... " >&6; }
14946         { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"${LIBUSB_CFLAGS}\"" >&5
14947 $as_echo "\"${LIBUSB_CFLAGS}\"" >&6; }
14948 else
14949         
14950 gp_config_msg_len="$(expr "libusb" : '.*')"
14951 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
14952         gp_config_msg_lhs="$(expr "libusb" : "\(.\{0,${gp_config_len3}\}\)")..:"
14953 else
14954         gp_config_msg_lhs="$(expr "libusb:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
14955 fi
14956 gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} no
14957 "
14958 fi
14959
14960
14961 if test "x${udevscriptdir}" = "x"; then udevscriptdir="\${libdir}/udev"; fi
14962
14963
14964  if if echo "$host"|grep -i linux >/dev/null ; then test "x$have_LIBUSB" = xyes; fi ; then
14965   HAVE_UDEV_TRUE=
14966   HAVE_UDEV_FALSE='#'
14967 else
14968   HAVE_UDEV_TRUE='#'
14969   HAVE_UDEV_FALSE=
14970 fi
14971
14972
14973
14974
14975 @%:@ Check whether --with-hal was given.
14976 if test "${with_hal+set}" = set; then :
14977   withval=$with_hal; 
14978 else
14979   with_hal=yes
14980 fi
14981
14982
14983 if test "x$with_hal" = "xyes"; then
14984         have_hal=true
14985         
14986 pkg_failed=no
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HAL" >&5
14988 $as_echo_n "checking for HAL... " >&6; }
14989
14990 if test -n "$HAL_CFLAGS"; then
14991     pkg_cv_HAL_CFLAGS="$HAL_CFLAGS"
14992  elif test -n "$PKG_CONFIG"; then
14993     if test -n "$PKG_CONFIG" && \
14994     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 0.31 hal >= 0.5.0\""; } >&5
14995   ($PKG_CONFIG --exists --print-errors "dbus-1 >= 0.31 hal >= 0.5.0") 2>&5
14996   ac_status=$?
14997   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14998   test $ac_status = 0; }; then
14999   pkg_cv_HAL_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 0.31 hal >= 0.5.0" 2>/dev/null`
15000 else
15001   pkg_failed=yes
15002 fi
15003  else
15004     pkg_failed=untried
15005 fi
15006 if test -n "$HAL_LIBS"; then
15007     pkg_cv_HAL_LIBS="$HAL_LIBS"
15008  elif test -n "$PKG_CONFIG"; then
15009     if test -n "$PKG_CONFIG" && \
15010     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 0.31 hal >= 0.5.0\""; } >&5
15011   ($PKG_CONFIG --exists --print-errors "dbus-1 >= 0.31 hal >= 0.5.0") 2>&5
15012   ac_status=$?
15013   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15014   test $ac_status = 0; }; then
15015   pkg_cv_HAL_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 0.31 hal >= 0.5.0" 2>/dev/null`
15016 else
15017   pkg_failed=yes
15018 fi
15019  else
15020     pkg_failed=untried
15021 fi
15022
15023
15024
15025 if test $pkg_failed = yes; then
15026         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15027 $as_echo "no" >&6; }
15028         
15029 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15030         _pkg_short_errors_supported=yes
15031 else
15032         _pkg_short_errors_supported=no
15033 fi
15034         if test $_pkg_short_errors_supported = yes; then
15035                 HAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-1 >= 0.31 hal >= 0.5.0" 2>&1`
15036         else 
15037                 HAL_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-1 >= 0.31 hal >= 0.5.0" 2>&1`
15038         fi
15039         # Put the nasty error message in config.log where it belongs
15040         echo "$HAL_PKG_ERRORS" >&5
15041
15042         have_hal=false
15043 elif test $pkg_failed = untried; then
15044         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15045 $as_echo "no" >&6; }
15046         have_hal=false
15047 else
15048         HAL_CFLAGS=$pkg_cv_HAL_CFLAGS
15049         HAL_LIBS=$pkg_cv_HAL_LIBS
15050         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15051 $as_echo "yes" >&6; }
15052         have_hal=true
15053 fi
15054         if test "x$have_hal" = "xtrue"; then
15055            
15056            
15057            
15058 $as_echo "@%:@define HAVE_HAL 1" >>confdefs.h
15059
15060         fi
15061 fi
15062
15063 @%:@ Check whether --enable-disk was given.
15064 if test "${enable_disk+set}" = set; then :
15065   enableval=$enable_disk; 
15066 else
15067   enable_disk=yes
15068 fi
15069
15070
15071 if test "x$enable_disk" = "xyes"; then
15072         IOLIB_SUBDIRS="$IOLIB_SUBDIRS disk"
15073 fi
15074
15075 @%:@ Check whether --enable-ptpip was given.
15076 if test "${enable_ptpip+set}" = set; then :
15077   enableval=$enable_ptpip; 
15078 else
15079   enable_ptpip=yes
15080 fi
15081
15082 if test "x$enable_ptpip" = "xyes"; then
15083         IOLIB_SUBDIRS="$IOLIB_SUBDIRS ptpip"
15084 fi
15085
15086
15087 # ----------------------------------------------------------------------
15088 # Define IOLIB stuff
15089 # ----------------------------------------------------------------------
15090
15091
15092 iolibdir="\$(libdir)/\$(PACKAGE_TARNAME)/\$(VERSION)"
15093
15094 AM_CPPFLAGS="$AM_CPPFLAGS -DIOLIBS=\\\"${iolibdir}\\\""
15095
15096
15097 pkgconfigdir='${libdir}/pkgconfig'
15098
15099
15100
15101 ac_fn_c_check_func "$LINENO" "re_compile_pattern" "ac_cv_func_re_compile_pattern"
15102 if test "x$ac_cv_func_re_compile_pattern" = xyes; then :
15103   
15104 $as_echo "@%:@define HAVE_GNU_REGEX 1" >>confdefs.h
15105
15106
15107 fi
15108
15109
15110
15111 @%:@ Check whether --enable-debug was given.
15112 if test "${enable_debug+set}" = set; then :
15113   enableval=$enable_debug; 
15114   if test "$enableval" = "no"; then
15115     
15116 $as_echo "@%:@define DISABLE_DEBUGGING 1" >>confdefs.h
15117
15118   fi
15119
15120 fi
15121
15122
15123
15124 # ----------------------------------------------------------------------
15125 # gtk-doc?
15126 # ----------------------------------------------------------------------
15127
15128 gp_config_msg="${gp_config_msg}
15129   Documentation
15130 "
15131
15132
15133
15134
15135 @%:@ Check whether --with-doc-dir was given.
15136 if test "${with_doc_dir+set}" = set; then :
15137   withval=$with_doc_dir; 
15138 fi
15139
15140
15141 # check for the main ("root") documentation directory
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking main docdir" >&5
15143 $as_echo_n "checking main docdir... " >&6; }
15144
15145 if test "x${with_doc_dir}" != "x"
15146 then # docdir is given as parameter
15147     docdir="${with_doc_dir}"
15148     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${docdir} (from parameter)" >&5
15149 $as_echo "${docdir} (from parameter)" >&6; }
15150 else # otherwise invent a docdir hopefully compatible with system policy
15151     if test -d "/usr/share/doc"
15152     then
15153         maindocdir='${prefix}/share/doc'
15154         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${maindocdir} (FHS style)" >&5
15155 $as_echo "${maindocdir} (FHS style)" >&6; }
15156     elif test -d "/usr/doc"
15157     then
15158         maindocdir='${prefix}/doc'
15159         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${maindocdir} (old style)" >&5
15160 $as_echo "${maindocdir} (old style)" >&6; }
15161     else
15162         maindocdir='${datadir}/doc'
15163         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${maindocdir} (default value)" >&5
15164 $as_echo "${maindocdir} (default value)" >&6; }
15165     fi
15166     { $as_echo "$as_me:${as_lineno-$LINENO}: checking package docdir" >&5
15167 $as_echo_n "checking package docdir... " >&6; }
15168     # check whether to include package version into documentation path
15169     # FIXME: doesn't work properly.
15170     if ls -d /usr/{share/,}doc/make-0-9* > /dev/null 2>&1
15171     then
15172         docdir="${maindocdir}/${PACKAGE}-${VERSION}"
15173         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${docdir} (redhat style)" >&5
15174 $as_echo "${docdir} (redhat style)" >&6; }
15175     else
15176         docdir="${maindocdir}/${PACKAGE}"
15177         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${docdir} (default style)" >&5
15178 $as_echo "${docdir} (default style)" >&6; }
15179     fi
15180 fi
15181
15182
15183
15184 # docdir has to be determined in advance
15185
15186
15187 # ---------------------------------------------------------------------------
15188 # gtk-doc: We use gtk-doc for building our documentation. However, we
15189 #          require the user to explicitely request the build.
15190 # ---------------------------------------------------------------------------
15191 try_gtkdoc=false
15192 gtkdoc_msg="no (not requested)"
15193 have_gtkdoc=false
15194 @%:@ Check whether --enable-docs was given.
15195 if test "${enable_docs+set}" = set; then :
15196   enableval=$enable_docs; 
15197         if test x$enableval = xyes; then
15198                 try_gtkdoc=true
15199         fi
15200
15201 fi
15202
15203 if $try_gtkdoc; then
15204         # Extract the first word of "gtkdoc-mkdb", so it can be a program name with args.
15205 set dummy gtkdoc-mkdb; ac_word=$2
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15207 $as_echo_n "checking for $ac_word... " >&6; }
15208 if ${ac_cv_path_GTKDOC+:} false; then :
15209   $as_echo_n "(cached) " >&6
15210 else
15211   case $GTKDOC in
15212   [\\/]* | ?:[\\/]*)
15213   ac_cv_path_GTKDOC="$GTKDOC" # Let the user override the test with a path.
15214   ;;
15215   *)
15216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15217 for as_dir in $PATH
15218 do
15219   IFS=$as_save_IFS
15220   test -z "$as_dir" && as_dir=.
15221     for ac_exec_ext in '' $ac_executable_extensions; do
15222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15223     ac_cv_path_GTKDOC="$as_dir/$ac_word$ac_exec_ext"
15224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15225     break 2
15226   fi
15227 done
15228   done
15229 IFS=$as_save_IFS
15230
15231   ;;
15232 esac
15233 fi
15234 GTKDOC=$ac_cv_path_GTKDOC
15235 if test -n "$GTKDOC"; then
15236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC" >&5
15237 $as_echo "$GTKDOC" >&6; }
15238 else
15239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15240 $as_echo "no" >&6; }
15241 fi
15242
15243
15244         if test -n "${GTKDOC}"; then
15245                 have_gtkdoc=true
15246                 gtkdoc_msg="yes"
15247         else
15248                 gtkdoc_msg="no (http://www.gtk.org/rdp/download.html)"
15249         fi
15250 fi
15251  if $have_gtkdoc; then
15252   ENABLE_GTK_DOC_TRUE=
15253   ENABLE_GTK_DOC_FALSE='#'
15254 else
15255   ENABLE_GTK_DOC_TRUE='#'
15256   ENABLE_GTK_DOC_FALSE=
15257 fi
15258
15259
15260 gp_config_msg_len="$(expr "build API docs with gtk-doc" : '.*')"
15261 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
15262         gp_config_msg_lhs="$(expr "build API docs with gtk-doc" : "\(.\{0,${gp_config_len3}\}\)")..:"
15263 else
15264         gp_config_msg_lhs="$(expr "build API docs with gtk-doc:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
15265 fi
15266 gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} $gtkdoc_msg
15267 "
15268
15269
15270
15271 # ---------------------------------------------------------------------------
15272 # Give the user the possibility to install html documentation in a 
15273 # user-defined location.
15274 # ---------------------------------------------------------------------------
15275
15276 @%:@ Check whether --with-html-dir was given.
15277 if test "${with_html_dir+set}" = set; then :
15278   withval=$with_html_dir; 
15279 fi
15280
15281
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html dir" >&5
15283 $as_echo_n "checking for html dir... " >&6; }
15284 if test "x${with_html_dir}" = "x" ; then
15285     htmldir="${docdir}/html"
15286     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${htmldir} (default)" >&5
15287 $as_echo "${htmldir} (default)" >&6; }
15288 else
15289     htmldir="${with_html_dir}"
15290     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${htmldir} (from parameter)" >&5
15291 $as_echo "${htmldir} (from parameter)" >&6; }
15292 fi
15293
15294 apidocdir="${htmldir}/api"
15295
15296
15297
15298
15299 # Make sure that the *FLAGS given at ./configure time will be active by
15300 # default in AM_*FLAGS
15301 AM_CPPFLAGS="$AM_CPPFLAGS $CPPFLAGS"
15302 AM_CFLAGS="$AM_CFLAGS $CFLAGS"
15303 AM_CXXFLAGS="$AM_CXXFLAGS $CXXFLAGS"
15304 AM_LDFLAGS="$AM_LDFLAGS $LDFLAGS"
15305
15306 if test "$GCC" = "yes"; then
15307         AM_CPPFLAGS="$AM_CPPFLAGS -Wall"
15308         AM_CPPFLAGS="$AM_CPPFLAGS -Wmissing-declarations -Wmissing-prototypes"
15309         AM_LDFLAGS="$AM_LDFLAGS -Wall"
15310         # FIXME: Check for --enable-debug here
15311         AM_CPPFLAGS="$AM_CPPFLAGS -g"
15312         AM_LDFLAGS="$AM_LDFLAGS -g"
15313 fi
15314
15315 # Activate internal code
15316 AM_CPPFLAGS="$AM_CPPFLAGS -D_GPHOTO2_INTERNAL_CODE"
15317
15318 # Activate Samsung patch
15319 AM_CPPFLAGS="$AM_CPPFLAGS -D_GPHOTO2_SAMSUNG_PATCH_"
15320
15321 # CPPFLAGS: C PreProcessor flags
15322
15323 # CFLAGS: C compiler flags
15324
15325 # CXXFLAGS: C++ compiler flags
15326
15327 # LDFLAGS: Linker flags
15328
15329
15330
15331 # ---------------------------------------------------------------------------
15332 # Create output files
15333 # ---------------------------------------------------------------------------
15334 ac_config_files="$ac_config_files Makefile po/Makefile.in libgphoto2_port/Makefile libgphoto2_port.pc libgphoto2_port-uninstalled.pc serial/Makefile usb/Makefile usbdiskdirect/Makefile usbscsi/Makefile disk/Makefile ptpip/Makefile gphoto2-port-config test/Makefile doc/Makefile m4/Makefile"
15335
15336 cat >confcache <<\_ACEOF
15337 # This file is a shell script that caches the results of configure
15338 # tests run on this system so they can be shared between configure
15339 # scripts and configure runs, see configure's option --config-cache.
15340 # It is not useful on other systems.  If it contains results you don't
15341 # want to keep, you may remove or edit it.
15342 #
15343 # config.status only pays attention to the cache file if you give it
15344 # the --recheck option to rerun configure.
15345 #
15346 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15347 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15348 # following values.
15349
15350 _ACEOF
15351
15352 # The following way of writing the cache mishandles newlines in values,
15353 # but we know of no workaround that is simple, portable, and efficient.
15354 # So, we kill variables containing newlines.
15355 # Ultrix sh set writes to stderr and can't be redirected directly,
15356 # and sets the high bit in the cache file unless we assign to the vars.
15357 (
15358   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15359     eval ac_val=\$$ac_var
15360     case $ac_val in #(
15361     *${as_nl}*)
15362       case $ac_var in #(
15363       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15364 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15365       esac
15366       case $ac_var in #(
15367       _ | IFS | as_nl) ;; #(
15368       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15369       *) { eval $ac_var=; unset $ac_var;} ;;
15370       esac ;;
15371     esac
15372   done
15373
15374   (set) 2>&1 |
15375     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15376     *${as_nl}ac_space=\ *)
15377       # `set' does not quote correctly, so add quotes: double-quote
15378       # substitution turns \\\\ into \\, and sed turns \\ into \.
15379       sed -n \
15380         "s/'/'\\\\''/g;
15381           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15382       ;; #(
15383     *)
15384       # `set' quotes correctly as required by POSIX, so do not add quotes.
15385       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15386       ;;
15387     esac |
15388     sort
15389 ) |
15390   sed '
15391      /^ac_cv_env_/b end
15392      t clear
15393      :clear
15394      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15395      t end
15396      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15397      :end' >>confcache
15398 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15399   if test -w "$cache_file"; then
15400     if test "x$cache_file" != "x/dev/null"; then
15401       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15402 $as_echo "$as_me: updating cache $cache_file" >&6;}
15403       if test ! -f "$cache_file" || test -h "$cache_file"; then
15404         cat confcache >"$cache_file"
15405       else
15406         case $cache_file in #(
15407         */* | ?:*)
15408           mv -f confcache "$cache_file"$$ &&
15409           mv -f "$cache_file"$$ "$cache_file" ;; #(
15410         *)
15411           mv -f confcache "$cache_file" ;;
15412         esac
15413       fi
15414     fi
15415   else
15416     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15417 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15418   fi
15419 fi
15420 rm -f confcache
15421
15422 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15423 # Let make expand exec_prefix.
15424 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15425
15426 DEFS=-DHAVE_CONFIG_H
15427
15428 ac_libobjs=
15429 ac_ltlibobjs=
15430 U=
15431 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
15432   # 1. Remove the extension, and $U if already installed.
15433   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15434   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15435   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15436   #    will be set to the directory where LIBOBJS objects are built.
15437   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15438   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15439 done
15440 LIB@&t@OBJS=$ac_libobjs
15441
15442 LTLIBOBJS=$ac_ltlibobjs
15443
15444
15445  if test -n "$EXEEXT"; then
15446   am__EXEEXT_TRUE=
15447   am__EXEEXT_FALSE='#'
15448 else
15449   am__EXEEXT_TRUE='#'
15450   am__EXEEXT_FALSE=
15451 fi
15452
15453 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15454   as_fn_error $? "conditional \"AMDEP\" was never defined.
15455 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15456 fi
15457 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15458   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15459 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15460 fi
15461 if test -z "${HAVE_LIBUSB_TRUE}" && test -z "${HAVE_LIBUSB_FALSE}"; then
15462   as_fn_error $? "conditional \"HAVE_LIBUSB\" was never defined.
15463 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15464 fi
15465 if test -z "${HAVE_UDEV_TRUE}" && test -z "${HAVE_UDEV_FALSE}"; then
15466   as_fn_error $? "conditional \"HAVE_UDEV\" was never defined.
15467 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15468 fi
15469 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
15470   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
15471 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15472 fi
15473
15474 : "${CONFIG_STATUS=./config.status}"
15475 ac_write_fail=0
15476 ac_clean_files_save=$ac_clean_files
15477 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15479 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15480 as_write_fail=0
15481 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15482 #! $SHELL
15483 # Generated by $as_me.
15484 # Run this file to recreate the current configuration.
15485 # Compiler output produced by configure, useful for debugging
15486 # configure, is in config.log if it exists.
15487
15488 debug=false
15489 ac_cs_recheck=false
15490 ac_cs_silent=false
15491
15492 SHELL=\${CONFIG_SHELL-$SHELL}
15493 export SHELL
15494 _ASEOF
15495 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15496 ## -------------------- ##
15497 ## M4sh Initialization. ##
15498 ## -------------------- ##
15499
15500 # Be more Bourne compatible
15501 DUALCASE=1; export DUALCASE # for MKS sh
15502 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15503   emulate sh
15504   NULLCMD=:
15505   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15506   # is contrary to our usage.  Disable this feature.
15507   alias -g '${1+"$@"}'='"$@"'
15508   setopt NO_GLOB_SUBST
15509 else
15510   case `(set -o) 2>/dev/null` in @%:@(
15511   *posix*) :
15512     set -o posix ;; @%:@(
15513   *) :
15514      ;;
15515 esac
15516 fi
15517
15518
15519 as_nl='
15520 '
15521 export as_nl
15522 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15523 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15524 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15525 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15526 # Prefer a ksh shell builtin over an external printf program on Solaris,
15527 # but without wasting forks for bash or zsh.
15528 if test -z "$BASH_VERSION$ZSH_VERSION" \
15529     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15530   as_echo='print -r --'
15531   as_echo_n='print -rn --'
15532 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15533   as_echo='printf %s\n'
15534   as_echo_n='printf %s'
15535 else
15536   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15537     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15538     as_echo_n='/usr/ucb/echo -n'
15539   else
15540     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15541     as_echo_n_body='eval
15542       arg=$1;
15543       case $arg in @%:@(
15544       *"$as_nl"*)
15545         expr "X$arg" : "X\\(.*\\)$as_nl";
15546         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15547       esac;
15548       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15549     '
15550     export as_echo_n_body
15551     as_echo_n='sh -c $as_echo_n_body as_echo'
15552   fi
15553   export as_echo_body
15554   as_echo='sh -c $as_echo_body as_echo'
15555 fi
15556
15557 # The user is always right.
15558 if test "${PATH_SEPARATOR+set}" != set; then
15559   PATH_SEPARATOR=:
15560   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15561     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15562       PATH_SEPARATOR=';'
15563   }
15564 fi
15565
15566
15567 # IFS
15568 # We need space, tab and new line, in precisely that order.  Quoting is
15569 # there to prevent editors from complaining about space-tab.
15570 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15571 # splitting by setting IFS to empty value.)
15572 IFS=" ""        $as_nl"
15573
15574 # Find who we are.  Look in the path if we contain no directory separator.
15575 as_myself=
15576 case $0 in @%:@((
15577   *[\\/]* ) as_myself=$0 ;;
15578   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15579 for as_dir in $PATH
15580 do
15581   IFS=$as_save_IFS
15582   test -z "$as_dir" && as_dir=.
15583     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15584   done
15585 IFS=$as_save_IFS
15586
15587      ;;
15588 esac
15589 # We did not find ourselves, most probably we were run as `sh COMMAND'
15590 # in which case we are not to be found in the path.
15591 if test "x$as_myself" = x; then
15592   as_myself=$0
15593 fi
15594 if test ! -f "$as_myself"; then
15595   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15596   exit 1
15597 fi
15598
15599 # Unset variables that we do not need and which cause bugs (e.g. in
15600 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15601 # suppresses any "Segmentation fault" message there.  '((' could
15602 # trigger a bug in pdksh 5.2.14.
15603 for as_var in BASH_ENV ENV MAIL MAILPATH
15604 do eval test x\${$as_var+set} = xset \
15605   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15606 done
15607 PS1='$ '
15608 PS2='> '
15609 PS4='+ '
15610
15611 # NLS nuisances.
15612 LC_ALL=C
15613 export LC_ALL
15614 LANGUAGE=C
15615 export LANGUAGE
15616
15617 # CDPATH.
15618 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15619
15620
15621 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
15622 @%:@ ----------------------------------------
15623 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15624 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15625 @%:@ script with STATUS, using 1 if that was 0.
15626 as_fn_error ()
15627 {
15628   as_status=$1; test $as_status -eq 0 && as_status=1
15629   if test "$4"; then
15630     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15631     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15632   fi
15633   $as_echo "$as_me: error: $2" >&2
15634   as_fn_exit $as_status
15635 } @%:@ as_fn_error
15636
15637
15638 @%:@ as_fn_set_status STATUS
15639 @%:@ -----------------------
15640 @%:@ Set @S|@? to STATUS, without forking.
15641 as_fn_set_status ()
15642 {
15643   return $1
15644 } @%:@ as_fn_set_status
15645
15646 @%:@ as_fn_exit STATUS
15647 @%:@ -----------------
15648 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15649 as_fn_exit ()
15650 {
15651   set +e
15652   as_fn_set_status $1
15653   exit $1
15654 } @%:@ as_fn_exit
15655
15656 @%:@ as_fn_unset VAR
15657 @%:@ ---------------
15658 @%:@ Portably unset VAR.
15659 as_fn_unset ()
15660 {
15661   { eval $1=; unset $1;}
15662 }
15663 as_unset=as_fn_unset
15664 @%:@ as_fn_append VAR VALUE
15665 @%:@ ----------------------
15666 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
15667 @%:@ advantage of any shell optimizations that allow amortized linear growth over
15668 @%:@ repeated appends, instead of the typical quadratic growth present in naive
15669 @%:@ implementations.
15670 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15671   eval 'as_fn_append ()
15672   {
15673     eval $1+=\$2
15674   }'
15675 else
15676   as_fn_append ()
15677   {
15678     eval $1=\$$1\$2
15679   }
15680 fi # as_fn_append
15681
15682 @%:@ as_fn_arith ARG...
15683 @%:@ ------------------
15684 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
15685 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
15686 @%:@ must be portable across @S|@(()) and expr.
15687 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15688   eval 'as_fn_arith ()
15689   {
15690     as_val=$(( $* ))
15691   }'
15692 else
15693   as_fn_arith ()
15694   {
15695     as_val=`expr "$@" || test $? -eq 1`
15696   }
15697 fi # as_fn_arith
15698
15699
15700 if expr a : '\(a\)' >/dev/null 2>&1 &&
15701    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15702   as_expr=expr
15703 else
15704   as_expr=false
15705 fi
15706
15707 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15708   as_basename=basename
15709 else
15710   as_basename=false
15711 fi
15712
15713 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15714   as_dirname=dirname
15715 else
15716   as_dirname=false
15717 fi
15718
15719 as_me=`$as_basename -- "$0" ||
15720 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15721          X"$0" : 'X\(//\)$' \| \
15722          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15723 $as_echo X/"$0" |
15724     sed '/^.*\/\([^/][^/]*\)\/*$/{
15725             s//\1/
15726             q
15727           }
15728           /^X\/\(\/\/\)$/{
15729             s//\1/
15730             q
15731           }
15732           /^X\/\(\/\).*/{
15733             s//\1/
15734             q
15735           }
15736           s/.*/./; q'`
15737
15738 # Avoid depending upon Character Ranges.
15739 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15740 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15741 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15742 as_cr_digits='0123456789'
15743 as_cr_alnum=$as_cr_Letters$as_cr_digits
15744
15745 ECHO_C= ECHO_N= ECHO_T=
15746 case `echo -n x` in @%:@(((((
15747 -n*)
15748   case `echo 'xy\c'` in
15749   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15750   xy)  ECHO_C='\c';;
15751   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15752        ECHO_T=' ';;
15753   esac;;
15754 *)
15755   ECHO_N='-n';;
15756 esac
15757
15758 rm -f conf$$ conf$$.exe conf$$.file
15759 if test -d conf$$.dir; then
15760   rm -f conf$$.dir/conf$$.file
15761 else
15762   rm -f conf$$.dir
15763   mkdir conf$$.dir 2>/dev/null
15764 fi
15765 if (echo >conf$$.file) 2>/dev/null; then
15766   if ln -s conf$$.file conf$$ 2>/dev/null; then
15767     as_ln_s='ln -s'
15768     # ... but there are two gotchas:
15769     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15770     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15771     # In both cases, we have to default to `cp -p'.
15772     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15773       as_ln_s='cp -p'
15774   elif ln conf$$.file conf$$ 2>/dev/null; then
15775     as_ln_s=ln
15776   else
15777     as_ln_s='cp -p'
15778   fi
15779 else
15780   as_ln_s='cp -p'
15781 fi
15782 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15783 rmdir conf$$.dir 2>/dev/null
15784
15785
15786 @%:@ as_fn_mkdir_p
15787 @%:@ -------------
15788 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
15789 as_fn_mkdir_p ()
15790 {
15791
15792   case $as_dir in #(
15793   -*) as_dir=./$as_dir;;
15794   esac
15795   test -d "$as_dir" || eval $as_mkdir_p || {
15796     as_dirs=
15797     while :; do
15798       case $as_dir in #(
15799       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15800       *) as_qdir=$as_dir;;
15801       esac
15802       as_dirs="'$as_qdir' $as_dirs"
15803       as_dir=`$as_dirname -- "$as_dir" ||
15804 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15805          X"$as_dir" : 'X\(//\)[^/]' \| \
15806          X"$as_dir" : 'X\(//\)$' \| \
15807          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15808 $as_echo X"$as_dir" |
15809     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15810             s//\1/
15811             q
15812           }
15813           /^X\(\/\/\)[^/].*/{
15814             s//\1/
15815             q
15816           }
15817           /^X\(\/\/\)$/{
15818             s//\1/
15819             q
15820           }
15821           /^X\(\/\).*/{
15822             s//\1/
15823             q
15824           }
15825           s/.*/./; q'`
15826       test -d "$as_dir" && break
15827     done
15828     test -z "$as_dirs" || eval "mkdir $as_dirs"
15829   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15830
15831
15832 } @%:@ as_fn_mkdir_p
15833 if mkdir -p . 2>/dev/null; then
15834   as_mkdir_p='mkdir -p "$as_dir"'
15835 else
15836   test -d ./-p && rmdir ./-p
15837   as_mkdir_p=false
15838 fi
15839
15840 if test -x / >/dev/null 2>&1; then
15841   as_test_x='test -x'
15842 else
15843   if ls -dL / >/dev/null 2>&1; then
15844     as_ls_L_option=L
15845   else
15846     as_ls_L_option=
15847   fi
15848   as_test_x='
15849     eval sh -c '\''
15850       if test -d "$1"; then
15851         test -d "$1/.";
15852       else
15853         case $1 in @%:@(
15854         -*)set "./$1";;
15855         esac;
15856         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
15857         ???[sx]*):;;*)false;;esac;fi
15858     '\'' sh
15859   '
15860 fi
15861 as_executable_p=$as_test_x
15862
15863 # Sed expression to map a string onto a valid CPP name.
15864 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15865
15866 # Sed expression to map a string onto a valid variable name.
15867 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15868
15869
15870 exec 6>&1
15871 ## ----------------------------------- ##
15872 ## Main body of $CONFIG_STATUS script. ##
15873 ## ----------------------------------- ##
15874 _ASEOF
15875 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15876
15877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15878 # Save the log message, to keep $0 and so on meaningful, and to
15879 # report actual input values of CONFIG_FILES etc. instead of their
15880 # values after options handling.
15881 ac_log="
15882 This file was extended by libgphoto2 port access library $as_me 0.8.0, which was
15883 generated by GNU Autoconf 2.68.  Invocation command line was
15884
15885   CONFIG_FILES    = $CONFIG_FILES
15886   CONFIG_HEADERS  = $CONFIG_HEADERS
15887   CONFIG_LINKS    = $CONFIG_LINKS
15888   CONFIG_COMMANDS = $CONFIG_COMMANDS
15889   $ $0 $@
15890
15891 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15892 "
15893
15894 _ACEOF
15895
15896 case $ac_config_files in *"
15897 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15898 esac
15899
15900 case $ac_config_headers in *"
15901 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15902 esac
15903
15904
15905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15906 # Files that config.status was made for.
15907 config_files="$ac_config_files"
15908 config_headers="$ac_config_headers"
15909 config_commands="$ac_config_commands"
15910
15911 _ACEOF
15912
15913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15914 ac_cs_usage="\
15915 \`$as_me' instantiates files and other configuration actions
15916 from templates according to the current configuration.  Unless the files
15917 and actions are specified as TAGs, all are instantiated by default.
15918
15919 Usage: $0 [OPTION]... [TAG]...
15920
15921   -h, --help       print this help, then exit
15922   -V, --version    print version number and configuration settings, then exit
15923       --config     print configuration, then exit
15924   -q, --quiet, --silent
15925                    do not print progress messages
15926   -d, --debug      don't remove temporary files
15927       --recheck    update $as_me by reconfiguring in the same conditions
15928       --file=FILE[:TEMPLATE] 
15929                    instantiate the configuration file FILE
15930       --header=FILE[:TEMPLATE] 
15931                    instantiate the configuration header FILE
15932
15933 Configuration files:
15934 $config_files
15935
15936 Configuration headers:
15937 $config_headers
15938
15939 Configuration commands:
15940 $config_commands
15941
15942 Report bugs to <gphoto-devel@lists.sourceforge.net>."
15943
15944 _ACEOF
15945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15946 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15947 ac_cs_version="\\
15948 libgphoto2 port access library config.status 0.8.0
15949 configured by $0, generated by GNU Autoconf 2.68,
15950   with options \\"\$ac_cs_config\\"
15951
15952 Copyright (C) 2010 Free Software Foundation, Inc.
15953 This config.status script is free software; the Free Software Foundation
15954 gives unlimited permission to copy, distribute and modify it."
15955
15956 ac_pwd='$ac_pwd'
15957 srcdir='$srcdir'
15958 INSTALL='$INSTALL'
15959 MKDIR_P='$MKDIR_P'
15960 AWK='$AWK'
15961 test -n "\$AWK" || AWK=awk
15962 _ACEOF
15963
15964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15965 # The default lists apply if the user does not specify any file.
15966 ac_need_defaults=:
15967 while test $# != 0
15968 do
15969   case $1 in
15970   --*=?*)
15971     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15972     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15973     ac_shift=:
15974     ;;
15975   --*=)
15976     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15977     ac_optarg=
15978     ac_shift=:
15979     ;;
15980   *)
15981     ac_option=$1
15982     ac_optarg=$2
15983     ac_shift=shift
15984     ;;
15985   esac
15986
15987   case $ac_option in
15988   # Handling of the options.
15989   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15990     ac_cs_recheck=: ;;
15991   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15992     $as_echo "$ac_cs_version"; exit ;;
15993   --config | --confi | --conf | --con | --co | --c )
15994     $as_echo "$ac_cs_config"; exit ;;
15995   --debug | --debu | --deb | --de | --d | -d )
15996     debug=: ;;
15997   --file | --fil | --fi | --f )
15998     $ac_shift
15999     case $ac_optarg in
16000     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16001     '') as_fn_error $? "missing file argument" ;;
16002     esac
16003     as_fn_append CONFIG_FILES " '$ac_optarg'"
16004     ac_need_defaults=false;;
16005   --header | --heade | --head | --hea )
16006     $ac_shift
16007     case $ac_optarg in
16008     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16009     esac
16010     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16011     ac_need_defaults=false;;
16012   --he | --h)
16013     # Conflict between --help and --header
16014     as_fn_error $? "ambiguous option: \`$1'
16015 Try \`$0 --help' for more information.";;
16016   --help | --hel | -h )
16017     $as_echo "$ac_cs_usage"; exit ;;
16018   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16019   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16020     ac_cs_silent=: ;;
16021
16022   # This is an error.
16023   -*) as_fn_error $? "unrecognized option: \`$1'
16024 Try \`$0 --help' for more information." ;;
16025
16026   *) as_fn_append ac_config_targets " $1"
16027      ac_need_defaults=false ;;
16028
16029   esac
16030   shift
16031 done
16032
16033 ac_configure_extra_args=
16034
16035 if $ac_cs_silent; then
16036   exec 6>/dev/null
16037   ac_configure_extra_args="$ac_configure_extra_args --silent"
16038 fi
16039
16040 _ACEOF
16041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16042 if \$ac_cs_recheck; then
16043   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16044   shift
16045   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16046   CONFIG_SHELL='$SHELL'
16047   export CONFIG_SHELL
16048   exec "\$@"
16049 fi
16050
16051 _ACEOF
16052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16053 exec 5>>config.log
16054 {
16055   echo
16056   sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
16057 @%:@@%:@ Running $as_me. @%:@@%:@
16058 _ASBOX
16059   $as_echo "$ac_log"
16060 } >&5
16061
16062 _ACEOF
16063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16064 #
16065 # INIT-COMMANDS
16066 #
16067 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16068
16069
16070 # The HP-UX ksh and POSIX shell print the target directory to stdout
16071 # if CDPATH is set.
16072 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16073
16074 sed_quote_subst='$sed_quote_subst'
16075 double_quote_subst='$double_quote_subst'
16076 delay_variable_subst='$delay_variable_subst'
16077 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16078 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
16079 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16080 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16081 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16082 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16083 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16084 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16085 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16086 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16087 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16088 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16089 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16090 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16091 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16092 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16093 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16094 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16095 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16096 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16097 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16098 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16099 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16100 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16101 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16102 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16103 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16104 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16105 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16106 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16107 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16108 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16109 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16110 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16111 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16112 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16113 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16114 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16115 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16116 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16117 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16118 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16119 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16120 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16121 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16122 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16123 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"`'
16124 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"`'
16125 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16126 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16127 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16128 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16129 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16130 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16131 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16132 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16133 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16134 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16135 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16136 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16137 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16138 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16139 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16140 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16141 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16142 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16143 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16144 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16145 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16146 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16147 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16148 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16149 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16150 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16151 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16152 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16153 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16154 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16155 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16156 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16157 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16158 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16159 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16160 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16161 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16162 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16163 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16164 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16165 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16166 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16167 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16168 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16169 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16170 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16171 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16172 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16173 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16174 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16175 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16176 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16177 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16178 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16179 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16180 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16181 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16182 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16183 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16184 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16185 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16186 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16187 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16188 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16189 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16190 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16191 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16192 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16193 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16194 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16195 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16196 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16197
16198 LTCC='$LTCC'
16199 LTCFLAGS='$LTCFLAGS'
16200 compiler='$compiler_DEFAULT'
16201
16202 # Quote evaled strings.
16203 for var in SED \
16204 GREP \
16205 EGREP \
16206 FGREP \
16207 LD \
16208 NM \
16209 LN_S \
16210 lt_SP2NL \
16211 lt_NL2SP \
16212 reload_flag \
16213 deplibs_check_method \
16214 file_magic_cmd \
16215 AR \
16216 AR_FLAGS \
16217 STRIP \
16218 RANLIB \
16219 CC \
16220 CFLAGS \
16221 compiler \
16222 lt_cv_sys_global_symbol_pipe \
16223 lt_cv_sys_global_symbol_to_cdecl \
16224 lt_cv_sys_global_symbol_to_c_name_address \
16225 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16226 SHELL \
16227 ECHO \
16228 lt_prog_compiler_no_builtin_flag \
16229 lt_prog_compiler_wl \
16230 lt_prog_compiler_pic \
16231 lt_prog_compiler_static \
16232 lt_cv_prog_compiler_c_o \
16233 need_locks \
16234 DSYMUTIL \
16235 NMEDIT \
16236 LIPO \
16237 OTOOL \
16238 OTOOL64 \
16239 shrext_cmds \
16240 export_dynamic_flag_spec \
16241 whole_archive_flag_spec \
16242 compiler_needs_object \
16243 with_gnu_ld \
16244 allow_undefined_flag \
16245 no_undefined_flag \
16246 hardcode_libdir_flag_spec \
16247 hardcode_libdir_flag_spec_ld \
16248 hardcode_libdir_separator \
16249 fix_srcfile_path \
16250 exclude_expsyms \
16251 include_expsyms \
16252 file_list_spec \
16253 variables_saved_for_relink \
16254 libname_spec \
16255 library_names_spec \
16256 soname_spec \
16257 finish_eval \
16258 old_striplib \
16259 striplib; do
16260     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16261     *[\\\\\\\`\\"\\\$]*)
16262       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16263       ;;
16264     *)
16265       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16266       ;;
16267     esac
16268 done
16269
16270 # Double-quote double-evaled strings.
16271 for var in reload_cmds \
16272 old_postinstall_cmds \
16273 old_postuninstall_cmds \
16274 old_archive_cmds \
16275 extract_expsyms_cmds \
16276 old_archive_from_new_cmds \
16277 old_archive_from_expsyms_cmds \
16278 archive_cmds \
16279 archive_expsym_cmds \
16280 module_cmds \
16281 module_expsym_cmds \
16282 export_symbols_cmds \
16283 prelink_cmds \
16284 postinstall_cmds \
16285 postuninstall_cmds \
16286 finish_cmds \
16287 sys_lib_search_path_spec \
16288 sys_lib_dlsearch_path_spec; do
16289     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16290     *[\\\\\\\`\\"\\\$]*)
16291       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16292       ;;
16293     *)
16294       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16295       ;;
16296     esac
16297 done
16298
16299 # Fix-up fallback echo if it was mangled by the above quoting rules.
16300 case \$lt_ECHO in
16301 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16302   ;;
16303 esac
16304
16305 ac_aux_dir='$ac_aux_dir'
16306 xsi_shell='$xsi_shell'
16307 lt_shell_append='$lt_shell_append'
16308
16309 # See if we are running on zsh, and set the options which allow our
16310 # commands through without removal of \ escapes INIT.
16311 if test -n "\${ZSH_VERSION+set}" ; then
16312    setopt NO_GLOB_SUBST
16313 fi
16314
16315
16316     PACKAGE='$PACKAGE'
16317     VERSION='$VERSION'
16318     TIMESTAMP='$TIMESTAMP'
16319     RM='$RM'
16320     ofile='$ofile'
16321
16322
16323
16324 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16325     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
16326     # from automake.
16327     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16328     # Capture the value of LINGUAS because we need it to compute CATALOGS.
16329     LINGUAS="${LINGUAS-%UNSET%}"
16330    
16331 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16332     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
16333     # from automake.
16334     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16335     # Capture the value of LINGUAS because we need it to compute CATALOGS.
16336     LINGUAS="${LINGUAS-%UNSET%}"
16337    
16338
16339 _ACEOF
16340
16341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16342
16343 # Handling of arguments.
16344 for ac_config_target in $ac_config_targets
16345 do
16346   case $ac_config_target in
16347     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16348     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16349     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16350     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16351     "default-2") CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
16352     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16353     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16354     "libgphoto2_port/Makefile") CONFIG_FILES="$CONFIG_FILES libgphoto2_port/Makefile" ;;
16355     "libgphoto2_port.pc") CONFIG_FILES="$CONFIG_FILES libgphoto2_port.pc" ;;
16356     "libgphoto2_port-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES libgphoto2_port-uninstalled.pc" ;;
16357     "serial/Makefile") CONFIG_FILES="$CONFIG_FILES serial/Makefile" ;;
16358     "usb/Makefile") CONFIG_FILES="$CONFIG_FILES usb/Makefile" ;;
16359     "usbdiskdirect/Makefile") CONFIG_FILES="$CONFIG_FILES usbdiskdirect/Makefile" ;;
16360     "usbscsi/Makefile") CONFIG_FILES="$CONFIG_FILES usbscsi/Makefile" ;;
16361     "disk/Makefile") CONFIG_FILES="$CONFIG_FILES disk/Makefile" ;;
16362     "ptpip/Makefile") CONFIG_FILES="$CONFIG_FILES ptpip/Makefile" ;;
16363     "gphoto2-port-config") CONFIG_FILES="$CONFIG_FILES gphoto2-port-config" ;;
16364     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16365     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16366     "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
16367
16368   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16369   esac
16370 done
16371
16372
16373 # If the user did not use the arguments to specify the items to instantiate,
16374 # then the envvar interface is used.  Set only those that are not.
16375 # We use the long form for the default assignment because of an extremely
16376 # bizarre bug on SunOS 4.1.3.
16377 if $ac_need_defaults; then
16378   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16379   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16380   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16381 fi
16382
16383 # Have a temporary directory for convenience.  Make it in the build tree
16384 # simply because there is no reason against having it here, and in addition,
16385 # creating and moving files from /tmp can sometimes cause problems.
16386 # Hook for its removal unless debugging.
16387 # Note that there is a small window in which the directory will not be cleaned:
16388 # after its creation but before its name has been assigned to `$tmp'.
16389 $debug ||
16390 {
16391   tmp= ac_tmp=
16392   trap 'exit_status=$?
16393   : "${ac_tmp:=$tmp}"
16394   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16395 ' 0
16396   trap 'as_fn_exit 1' 1 2 13 15
16397 }
16398 # Create a (secure) tmp directory for tmp files.
16399
16400 {
16401   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16402   test -d "$tmp"
16403 }  ||
16404 {
16405   tmp=./conf$$-$RANDOM
16406   (umask 077 && mkdir "$tmp")
16407 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16408 ac_tmp=$tmp
16409
16410 # Set up the scripts for CONFIG_FILES section.
16411 # No need to generate them if there are no CONFIG_FILES.
16412 # This happens for instance with `./config.status config.h'.
16413 if test -n "$CONFIG_FILES"; then
16414
16415
16416 ac_cr=`echo X | tr X '\015'`
16417 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16418 # But we know of no other shell where ac_cr would be empty at this
16419 # point, so we can use a bashism as a fallback.
16420 if test "x$ac_cr" = x; then
16421   eval ac_cr=\$\'\\r\'
16422 fi
16423 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16424 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16425   ac_cs_awk_cr='\\r'
16426 else
16427   ac_cs_awk_cr=$ac_cr
16428 fi
16429
16430 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16431 _ACEOF
16432
16433
16434 {
16435   echo "cat >conf$$subs.awk <<_ACEOF" &&
16436   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16437   echo "_ACEOF"
16438 } >conf$$subs.sh ||
16439   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16440 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16441 ac_delim='%!_!# '
16442 for ac_last_try in false false false false false :; do
16443   . ./conf$$subs.sh ||
16444     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16445
16446   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16447   if test $ac_delim_n = $ac_delim_num; then
16448     break
16449   elif $ac_last_try; then
16450     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16451   else
16452     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16453   fi
16454 done
16455 rm -f conf$$subs.sh
16456
16457 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16458 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16459 _ACEOF
16460 sed -n '
16461 h
16462 s/^/S["/; s/!.*/"]=/
16463 p
16464 g
16465 s/^[^!]*!//
16466 :repl
16467 t repl
16468 s/'"$ac_delim"'$//
16469 t delim
16470 :nl
16471 h
16472 s/\(.\{148\}\)..*/\1/
16473 t more1
16474 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16475 p
16476 n
16477 b repl
16478 :more1
16479 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16480 p
16481 g
16482 s/.\{148\}//
16483 t nl
16484 :delim
16485 h
16486 s/\(.\{148\}\)..*/\1/
16487 t more2
16488 s/["\\]/\\&/g; s/^/"/; s/$/"/
16489 p
16490 b
16491 :more2
16492 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16493 p
16494 g
16495 s/.\{148\}//
16496 t delim
16497 ' <conf$$subs.awk | sed '
16498 /^[^""]/{
16499   N
16500   s/\n//
16501 }
16502 ' >>$CONFIG_STATUS || ac_write_fail=1
16503 rm -f conf$$subs.awk
16504 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16505 _ACAWK
16506 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16507   for (key in S) S_is_set[key] = 1
16508   FS = "\a"
16509
16510 }
16511 {
16512   line = $ 0
16513   nfields = split(line, field, "@")
16514   substed = 0
16515   len = length(field[1])
16516   for (i = 2; i < nfields; i++) {
16517     key = field[i]
16518     keylen = length(key)
16519     if (S_is_set[key]) {
16520       value = S[key]
16521       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16522       len += length(value) + length(field[++i])
16523       substed = 1
16524     } else
16525       len += 1 + keylen
16526   }
16527
16528   print line
16529 }
16530
16531 _ACAWK
16532 _ACEOF
16533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16534 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16535   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16536 else
16537   cat
16538 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16539   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16540 _ACEOF
16541
16542 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16543 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16544 # trailing colons and then remove the whole line if VPATH becomes empty
16545 # (actually we leave an empty line to preserve line numbers).
16546 if test "x$srcdir" = x.; then
16547   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16548 h
16549 s///
16550 s/^/:/
16551 s/[      ]*$/:/
16552 s/:\$(srcdir):/:/g
16553 s/:\${srcdir}:/:/g
16554 s/:@srcdir@:/:/g
16555 s/^:*//
16556 s/:*$//
16557 x
16558 s/\(=[   ]*\).*/\1/
16559 G
16560 s/\n//
16561 s/^[^=]*=[       ]*$//
16562 }'
16563 fi
16564
16565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16566 fi # test -n "$CONFIG_FILES"
16567
16568 # Set up the scripts for CONFIG_HEADERS section.
16569 # No need to generate them if there are no CONFIG_HEADERS.
16570 # This happens for instance with `./config.status Makefile'.
16571 if test -n "$CONFIG_HEADERS"; then
16572 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16573 BEGIN {
16574 _ACEOF
16575
16576 # Transform confdefs.h into an awk script `defines.awk', embedded as
16577 # here-document in config.status, that substitutes the proper values into
16578 # config.h.in to produce config.h.
16579
16580 # Create a delimiter string that does not exist in confdefs.h, to ease
16581 # handling of long lines.
16582 ac_delim='%!_!# '
16583 for ac_last_try in false false :; do
16584   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16585   if test -z "$ac_tt"; then
16586     break
16587   elif $ac_last_try; then
16588     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16589   else
16590     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16591   fi
16592 done
16593
16594 # For the awk script, D is an array of macro values keyed by name,
16595 # likewise P contains macro parameters if any.  Preserve backslash
16596 # newline sequences.
16597
16598 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16599 sed -n '
16600 s/.\{148\}/&'"$ac_delim"'/g
16601 t rset
16602 :rset
16603 s/^[     ]*#[    ]*define[       ][      ]*/ /
16604 t def
16605 d
16606 :def
16607 s/\\$//
16608 t bsnl
16609 s/["\\]/\\&/g
16610 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16611 D["\1"]=" \3"/p
16612 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16613 d
16614 :bsnl
16615 s/["\\]/\\&/g
16616 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16617 D["\1"]=" \3\\\\\\n"\\/p
16618 t cont
16619 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16620 t cont
16621 d
16622 :cont
16623 n
16624 s/.\{148\}/&'"$ac_delim"'/g
16625 t clear
16626 :clear
16627 s/\\$//
16628 t bsnlc
16629 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16630 d
16631 :bsnlc
16632 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16633 b cont
16634 ' <confdefs.h | sed '
16635 s/'"$ac_delim"'/"\\\
16636 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16637
16638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16639   for (key in D) D_is_set[key] = 1
16640   FS = "\a"
16641 }
16642 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16643   line = \$ 0
16644   split(line, arg, " ")
16645   if (arg[1] == "#") {
16646     defundef = arg[2]
16647     mac1 = arg[3]
16648   } else {
16649     defundef = substr(arg[1], 2)
16650     mac1 = arg[2]
16651   }
16652   split(mac1, mac2, "(") #)
16653   macro = mac2[1]
16654   prefix = substr(line, 1, index(line, defundef) - 1)
16655   if (D_is_set[macro]) {
16656     # Preserve the white space surrounding the "#".
16657     print prefix "define", macro P[macro] D[macro]
16658     next
16659   } else {
16660     # Replace #undef with comments.  This is necessary, for example,
16661     # in the case of _POSIX_SOURCE, which is predefined and required
16662     # on some systems where configure will not decide to define it.
16663     if (defundef == "undef") {
16664       print "/*", prefix defundef, macro, "*/"
16665       next
16666     }
16667   }
16668 }
16669 { print }
16670 _ACAWK
16671 _ACEOF
16672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16673   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16674 fi # test -n "$CONFIG_HEADERS"
16675
16676
16677 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16678 shift
16679 for ac_tag
16680 do
16681   case $ac_tag in
16682   :[FHLC]) ac_mode=$ac_tag; continue;;
16683   esac
16684   case $ac_mode$ac_tag in
16685   :[FHL]*:*);;
16686   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16687   :[FH]-) ac_tag=-:-;;
16688   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16689   esac
16690   ac_save_IFS=$IFS
16691   IFS=:
16692   set x $ac_tag
16693   IFS=$ac_save_IFS
16694   shift
16695   ac_file=$1
16696   shift
16697
16698   case $ac_mode in
16699   :L) ac_source=$1;;
16700   :[FH])
16701     ac_file_inputs=
16702     for ac_f
16703     do
16704       case $ac_f in
16705       -) ac_f="$ac_tmp/stdin";;
16706       *) # Look for the file first in the build tree, then in the source tree
16707          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16708          # because $ac_f cannot contain `:'.
16709          test -f "$ac_f" ||
16710            case $ac_f in
16711            [\\/$]*) false;;
16712            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16713            esac ||
16714            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16715       esac
16716       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16717       as_fn_append ac_file_inputs " '$ac_f'"
16718     done
16719
16720     # Let's still pretend it is `configure' which instantiates (i.e., don't
16721     # use $as_me), people would be surprised to read:
16722     #    /* config.h.  Generated by config.status.  */
16723     configure_input='Generated from '`
16724           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16725         `' by configure.'
16726     if test x"$ac_file" != x-; then
16727       configure_input="$ac_file.  $configure_input"
16728       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16729 $as_echo "$as_me: creating $ac_file" >&6;}
16730     fi
16731     # Neutralize special characters interpreted by sed in replacement strings.
16732     case $configure_input in #(
16733     *\&* | *\|* | *\\* )
16734        ac_sed_conf_input=`$as_echo "$configure_input" |
16735        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16736     *) ac_sed_conf_input=$configure_input;;
16737     esac
16738
16739     case $ac_tag in
16740     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16741       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16742     esac
16743     ;;
16744   esac
16745
16746   ac_dir=`$as_dirname -- "$ac_file" ||
16747 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16748          X"$ac_file" : 'X\(//\)[^/]' \| \
16749          X"$ac_file" : 'X\(//\)$' \| \
16750          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16751 $as_echo X"$ac_file" |
16752     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16753             s//\1/
16754             q
16755           }
16756           /^X\(\/\/\)[^/].*/{
16757             s//\1/
16758             q
16759           }
16760           /^X\(\/\/\)$/{
16761             s//\1/
16762             q
16763           }
16764           /^X\(\/\).*/{
16765             s//\1/
16766             q
16767           }
16768           s/.*/./; q'`
16769   as_dir="$ac_dir"; as_fn_mkdir_p
16770   ac_builddir=.
16771
16772 case "$ac_dir" in
16773 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16774 *)
16775   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16776   # A ".." for each directory in $ac_dir_suffix.
16777   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16778   case $ac_top_builddir_sub in
16779   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16780   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16781   esac ;;
16782 esac
16783 ac_abs_top_builddir=$ac_pwd
16784 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16785 # for backward compatibility:
16786 ac_top_builddir=$ac_top_build_prefix
16787
16788 case $srcdir in
16789   .)  # We are building in place.
16790     ac_srcdir=.
16791     ac_top_srcdir=$ac_top_builddir_sub
16792     ac_abs_top_srcdir=$ac_pwd ;;
16793   [\\/]* | ?:[\\/]* )  # Absolute name.
16794     ac_srcdir=$srcdir$ac_dir_suffix;
16795     ac_top_srcdir=$srcdir
16796     ac_abs_top_srcdir=$srcdir ;;
16797   *) # Relative name.
16798     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16799     ac_top_srcdir=$ac_top_build_prefix$srcdir
16800     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16801 esac
16802 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16803
16804
16805   case $ac_mode in
16806   :F)
16807   #
16808   # CONFIG_FILE
16809   #
16810
16811   case $INSTALL in
16812   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16813   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16814   esac
16815   ac_MKDIR_P=$MKDIR_P
16816   case $MKDIR_P in
16817   [\\/$]* | ?:[\\/]* ) ;;
16818   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16819   esac
16820 _ACEOF
16821
16822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16823 # If the template does not know about datarootdir, expand it.
16824 # FIXME: This hack should be removed a few years after 2.60.
16825 ac_datarootdir_hack=; ac_datarootdir_seen=
16826 ac_sed_dataroot='
16827 /datarootdir/ {
16828   p
16829   q
16830 }
16831 /@datadir@/p
16832 /@docdir@/p
16833 /@infodir@/p
16834 /@localedir@/p
16835 /@mandir@/p'
16836 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16837 *datarootdir*) ac_datarootdir_seen=yes;;
16838 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16839   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16840 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16841 _ACEOF
16842 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16843   ac_datarootdir_hack='
16844   s&@datadir@&$datadir&g
16845   s&@docdir@&$docdir&g
16846   s&@infodir@&$infodir&g
16847   s&@localedir@&$localedir&g
16848   s&@mandir@&$mandir&g
16849   s&\\\${datarootdir}&$datarootdir&g' ;;
16850 esac
16851 _ACEOF
16852
16853 # Neutralize VPATH when `$srcdir' = `.'.
16854 # Shell code in configure.ac might set extrasub.
16855 # FIXME: do we really want to maintain this feature?
16856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16857 ac_sed_extra="$ac_vpsub
16858 $extrasub
16859 _ACEOF
16860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16861 :t
16862 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16863 s|@configure_input@|$ac_sed_conf_input|;t t
16864 s&@top_builddir@&$ac_top_builddir_sub&;t t
16865 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16866 s&@srcdir@&$ac_srcdir&;t t
16867 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16868 s&@top_srcdir@&$ac_top_srcdir&;t t
16869 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16870 s&@builddir@&$ac_builddir&;t t
16871 s&@abs_builddir@&$ac_abs_builddir&;t t
16872 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16873 s&@INSTALL@&$ac_INSTALL&;t t
16874 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16875 $ac_datarootdir_hack
16876 "
16877 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16878   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16879
16880 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16881   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16882   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16883       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16884   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16885 which seems to be undefined.  Please make sure it is defined" >&5
16886 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16887 which seems to be undefined.  Please make sure it is defined" >&2;}
16888
16889   rm -f "$ac_tmp/stdin"
16890   case $ac_file in
16891   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16892   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16893   esac \
16894   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16895  ;;
16896   :H)
16897   #
16898   # CONFIG_HEADER
16899   #
16900   if test x"$ac_file" != x-; then
16901     {
16902       $as_echo "/* $configure_input  */" \
16903       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16904     } >"$ac_tmp/config.h" \
16905       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16906     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16907       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16908 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16909     else
16910       rm -f "$ac_file"
16911       mv "$ac_tmp/config.h" "$ac_file" \
16912         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16913     fi
16914   else
16915     $as_echo "/* $configure_input  */" \
16916       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16917       || as_fn_error $? "could not create -" "$LINENO" 5
16918   fi
16919 # Compute "$ac_file"'s index in $config_headers.
16920 _am_arg="$ac_file"
16921 _am_stamp_count=1
16922 for _am_header in $config_headers :; do
16923   case $_am_header in
16924     $_am_arg | $_am_arg:* )
16925       break ;;
16926     * )
16927       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16928   esac
16929 done
16930 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16931 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16932          X"$_am_arg" : 'X\(//\)[^/]' \| \
16933          X"$_am_arg" : 'X\(//\)$' \| \
16934          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16935 $as_echo X"$_am_arg" |
16936     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16937             s//\1/
16938             q
16939           }
16940           /^X\(\/\/\)[^/].*/{
16941             s//\1/
16942             q
16943           }
16944           /^X\(\/\/\)$/{
16945             s//\1/
16946             q
16947           }
16948           /^X\(\/\).*/{
16949             s//\1/
16950             q
16951           }
16952           s/.*/./; q'`/stamp-h$_am_stamp_count
16953  ;;
16954   
16955   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16956 $as_echo "$as_me: executing $ac_file commands" >&6;}
16957  ;;
16958   esac
16959
16960
16961   case $ac_file$ac_mode in
16962     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16963   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16964   # are listed without --file.  Let's play safe and only enable the eval
16965   # if we detect the quoting.
16966   case $CONFIG_FILES in
16967   *\'*) eval set x "$CONFIG_FILES" ;;
16968   *)   set x $CONFIG_FILES ;;
16969   esac
16970   shift
16971   for mf
16972   do
16973     # Strip MF so we end up with the name of the file.
16974     mf=`echo "$mf" | sed -e 's/:.*$//'`
16975     # Check whether this is an Automake generated Makefile or not.
16976     # We used to match only the files named `Makefile.in', but
16977     # some people rename them; so instead we look at the file content.
16978     # Grep'ing the first line is not enough: some people post-process
16979     # each Makefile.in and add a new line on top of each file to say so.
16980     # Grep'ing the whole file is not good either: AIX grep has a line
16981     # limit of 2048, but all sed's we know have understand at least 4000.
16982     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16983       dirpart=`$as_dirname -- "$mf" ||
16984 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16985          X"$mf" : 'X\(//\)[^/]' \| \
16986          X"$mf" : 'X\(//\)$' \| \
16987          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16988 $as_echo X"$mf" |
16989     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16990             s//\1/
16991             q
16992           }
16993           /^X\(\/\/\)[^/].*/{
16994             s//\1/
16995             q
16996           }
16997           /^X\(\/\/\)$/{
16998             s//\1/
16999             q
17000           }
17001           /^X\(\/\).*/{
17002             s//\1/
17003             q
17004           }
17005           s/.*/./; q'`
17006     else
17007       continue
17008     fi
17009     # Extract the definition of DEPDIR, am__include, and am__quote
17010     # from the Makefile without running `make'.
17011     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17012     test -z "$DEPDIR" && continue
17013     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17014     test -z "am__include" && continue
17015     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17016     # When using ansi2knr, U may be empty or an underscore; expand it
17017     U=`sed -n 's/^U = //p' < "$mf"`
17018     # Find all dependency output files, they are included files with
17019     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17020     # simplest approach to changing $(DEPDIR) to its actual value in the
17021     # expansion.
17022     for file in `sed -n "
17023       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17024          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17025       # Make sure the directory exists.
17026       test -f "$dirpart/$file" && continue
17027       fdir=`$as_dirname -- "$file" ||
17028 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17029          X"$file" : 'X\(//\)[^/]' \| \
17030          X"$file" : 'X\(//\)$' \| \
17031          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17032 $as_echo X"$file" |
17033     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17034             s//\1/
17035             q
17036           }
17037           /^X\(\/\/\)[^/].*/{
17038             s//\1/
17039             q
17040           }
17041           /^X\(\/\/\)$/{
17042             s//\1/
17043             q
17044           }
17045           /^X\(\/\).*/{
17046             s//\1/
17047             q
17048           }
17049           s/.*/./; q'`
17050       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17051       # echo "creating $dirpart/$file"
17052       echo '# dummy' > "$dirpart/$file"
17053     done
17054   done
17055 }
17056  ;;
17057     "libtool":C) 
17058     
17059     # See if we are running on zsh, and set the options which allow our
17060     # commands through without removal of \ escapes.
17061     if test -n "${ZSH_VERSION+set}" ; then
17062       setopt NO_GLOB_SUBST
17063     fi
17064
17065     cfgfile="${ofile}T"
17066     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17067     $RM "$cfgfile"
17068
17069     cat <<_LT_EOF >> "$cfgfile"
17070 #! $SHELL
17071
17072 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17073 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17074 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17075 #
17076 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17077 #                 2006, 2007, 2008 Free Software Foundation, Inc.
17078 #   Written by Gordon Matzigkeit, 1996
17079 #
17080 #   This file is part of GNU Libtool.
17081 #
17082 # GNU Libtool is free software; you can redistribute it and/or
17083 # modify it under the terms of the GNU General Public License as
17084 # published by the Free Software Foundation; either version 2 of
17085 # the License, or (at your option) any later version.
17086 #
17087 # As a special exception to the GNU General Public License,
17088 # if you distribute this file as part of a program or library that
17089 # is built using GNU Libtool, you may include this file under the
17090 # same distribution terms that you use for the rest of that program.
17091 #
17092 # GNU Libtool is distributed in the hope that it will be useful,
17093 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17094 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17095 # GNU General Public License for more details.
17096 #
17097 # You should have received a copy of the GNU General Public License
17098 # along with GNU Libtool; see the file COPYING.  If not, a copy
17099 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17100 # obtained by writing to the Free Software Foundation, Inc.,
17101 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17102
17103
17104 # The names of the tagged configurations supported by this script.
17105 available_tags=""
17106
17107 # ### BEGIN LIBTOOL CONFIG
17108
17109 # Whether or not to build static libraries.
17110 build_old_libs=$enable_static
17111
17112 # Assembler program.
17113 AS=$AS
17114
17115 # DLL creation program.
17116 DLLTOOL=$DLLTOOL
17117
17118 # Object dumper program.
17119 OBJDUMP=$OBJDUMP
17120
17121 # Which release of libtool.m4 was used?
17122 macro_version=$macro_version
17123 macro_revision=$macro_revision
17124
17125 # Whether or not to build shared libraries.
17126 build_libtool_libs=$enable_shared
17127
17128 # What type of objects to build.
17129 pic_mode=$pic_mode
17130
17131 # Whether or not to optimize for fast installation.
17132 fast_install=$enable_fast_install
17133
17134 # The host system.
17135 host_alias=$host_alias
17136 host=$host
17137 host_os=$host_os
17138
17139 # The build system.
17140 build_alias=$build_alias
17141 build=$build
17142 build_os=$build_os
17143
17144 # A sed program that does not truncate output.
17145 SED=$lt_SED
17146
17147 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17148 Xsed="\$SED -e 1s/^X//"
17149
17150 # A grep program that handles long lines.
17151 GREP=$lt_GREP
17152
17153 # An ERE matcher.
17154 EGREP=$lt_EGREP
17155
17156 # A literal string matcher.
17157 FGREP=$lt_FGREP
17158
17159 # A BSD- or MS-compatible name lister.
17160 NM=$lt_NM
17161
17162 # Whether we need soft or hard links.
17163 LN_S=$lt_LN_S
17164
17165 # What is the maximum length of a command?
17166 max_cmd_len=$max_cmd_len
17167
17168 # Object file suffix (normally "o").
17169 objext=$ac_objext
17170
17171 # Executable file suffix (normally "").
17172 exeext=$exeext
17173
17174 # whether the shell understands "unset".
17175 lt_unset=$lt_unset
17176
17177 # turn spaces into newlines.
17178 SP2NL=$lt_lt_SP2NL
17179
17180 # turn newlines into spaces.
17181 NL2SP=$lt_lt_NL2SP
17182
17183 # How to create reloadable object files.
17184 reload_flag=$lt_reload_flag
17185 reload_cmds=$lt_reload_cmds
17186
17187 # Method to check whether dependent libraries are shared objects.
17188 deplibs_check_method=$lt_deplibs_check_method
17189
17190 # Command to use when deplibs_check_method == "file_magic".
17191 file_magic_cmd=$lt_file_magic_cmd
17192
17193 # The archiver.
17194 AR=$lt_AR
17195 AR_FLAGS=$lt_AR_FLAGS
17196
17197 # A symbol stripping program.
17198 STRIP=$lt_STRIP
17199
17200 # Commands used to install an old-style archive.
17201 RANLIB=$lt_RANLIB
17202 old_postinstall_cmds=$lt_old_postinstall_cmds
17203 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17204
17205 # A C compiler.
17206 LTCC=$lt_CC
17207
17208 # LTCC compiler flags.
17209 LTCFLAGS=$lt_CFLAGS
17210
17211 # Take the output of nm and produce a listing of raw symbols and C names.
17212 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17213
17214 # Transform the output of nm in a proper C declaration.
17215 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17216
17217 # Transform the output of nm in a C name address pair.
17218 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17219
17220 # Transform the output of nm in a C name address pair when lib prefix is needed.
17221 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17222
17223 # The name of the directory that contains temporary libtool files.
17224 objdir=$objdir
17225
17226 # Shell to use when invoking shell scripts.
17227 SHELL=$lt_SHELL
17228
17229 # An echo program that does not interpret backslashes.
17230 ECHO=$lt_ECHO
17231
17232 # Used to examine libraries when file_magic_cmd begins with "file".
17233 MAGIC_CMD=$MAGIC_CMD
17234
17235 # Must we lock files when doing compilation?
17236 need_locks=$lt_need_locks
17237
17238 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17239 DSYMUTIL=$lt_DSYMUTIL
17240
17241 # Tool to change global to local symbols on Mac OS X.
17242 NMEDIT=$lt_NMEDIT
17243
17244 # Tool to manipulate fat objects and archives on Mac OS X.
17245 LIPO=$lt_LIPO
17246
17247 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17248 OTOOL=$lt_OTOOL
17249
17250 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17251 OTOOL64=$lt_OTOOL64
17252
17253 # Old archive suffix (normally "a").
17254 libext=$libext
17255
17256 # Shared library suffix (normally ".so").
17257 shrext_cmds=$lt_shrext_cmds
17258
17259 # The commands to extract the exported symbol list from a shared archive.
17260 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17261
17262 # Variables whose values should be saved in libtool wrapper scripts and
17263 # restored at link time.
17264 variables_saved_for_relink=$lt_variables_saved_for_relink
17265
17266 # Do we need the "lib" prefix for modules?
17267 need_lib_prefix=$need_lib_prefix
17268
17269 # Do we need a version for libraries?
17270 need_version=$need_version
17271
17272 # Library versioning type.
17273 version_type=$version_type
17274
17275 # Shared library runtime path variable.
17276 runpath_var=$runpath_var
17277
17278 # Shared library path variable.
17279 shlibpath_var=$shlibpath_var
17280
17281 # Is shlibpath searched before the hard-coded library search path?
17282 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17283
17284 # Format of library name prefix.
17285 libname_spec=$lt_libname_spec
17286
17287 # List of archive names.  First name is the real one, the rest are links.
17288 # The last name is the one that the linker finds with -lNAME
17289 library_names_spec=$lt_library_names_spec
17290
17291 # The coded name of the library, if different from the real name.
17292 soname_spec=$lt_soname_spec
17293
17294 # Command to use after installation of a shared archive.
17295 postinstall_cmds=$lt_postinstall_cmds
17296
17297 # Command to use after uninstallation of a shared archive.
17298 postuninstall_cmds=$lt_postuninstall_cmds
17299
17300 # Commands used to finish a libtool library installation in a directory.
17301 finish_cmds=$lt_finish_cmds
17302
17303 # As "finish_cmds", except a single script fragment to be evaled but
17304 # not shown.
17305 finish_eval=$lt_finish_eval
17306
17307 # Whether we should hardcode library paths into libraries.
17308 hardcode_into_libs=$hardcode_into_libs
17309
17310 # Compile-time system search path for libraries.
17311 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17312
17313 # Run-time system search path for libraries.
17314 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17315
17316 # Whether dlopen is supported.
17317 dlopen_support=$enable_dlopen
17318
17319 # Whether dlopen of programs is supported.
17320 dlopen_self=$enable_dlopen_self
17321
17322 # Whether dlopen of statically linked programs is supported.
17323 dlopen_self_static=$enable_dlopen_self_static
17324
17325 # Commands to strip libraries.
17326 old_striplib=$lt_old_striplib
17327 striplib=$lt_striplib
17328
17329
17330 # The linker used to build libraries.
17331 LD=$lt_LD
17332
17333 # Commands used to build an old-style archive.
17334 old_archive_cmds=$lt_old_archive_cmds
17335
17336 # A language specific compiler.
17337 CC=$lt_compiler
17338
17339 # Is the compiler the GNU compiler?
17340 with_gcc=$GCC
17341
17342 # Compiler flag to turn off builtin functions.
17343 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17344
17345 # How to pass a linker flag through the compiler.
17346 wl=$lt_lt_prog_compiler_wl
17347
17348 # Additional compiler flags for building library objects.
17349 pic_flag=$lt_lt_prog_compiler_pic
17350
17351 # Compiler flag to prevent dynamic linking.
17352 link_static_flag=$lt_lt_prog_compiler_static
17353
17354 # Does compiler simultaneously support -c and -o options?
17355 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17356
17357 # Whether or not to add -lc for building shared libraries.
17358 build_libtool_need_lc=$archive_cmds_need_lc
17359
17360 # Whether or not to disallow shared libs when runtime libs are static.
17361 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17362
17363 # Compiler flag to allow reflexive dlopens.
17364 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17365
17366 # Compiler flag to generate shared objects directly from archives.
17367 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17368
17369 # Whether the compiler copes with passing no objects directly.
17370 compiler_needs_object=$lt_compiler_needs_object
17371
17372 # Create an old-style archive from a shared archive.
17373 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17374
17375 # Create a temporary old-style archive to link instead of a shared archive.
17376 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17377
17378 # Commands used to build a shared archive.
17379 archive_cmds=$lt_archive_cmds
17380 archive_expsym_cmds=$lt_archive_expsym_cmds
17381
17382 # Commands used to build a loadable module if different from building
17383 # a shared archive.
17384 module_cmds=$lt_module_cmds
17385 module_expsym_cmds=$lt_module_expsym_cmds
17386
17387 # Whether we are building with GNU ld or not.
17388 with_gnu_ld=$lt_with_gnu_ld
17389
17390 # Flag that allows shared libraries with undefined symbols to be built.
17391 allow_undefined_flag=$lt_allow_undefined_flag
17392
17393 # Flag that enforces no undefined symbols.
17394 no_undefined_flag=$lt_no_undefined_flag
17395
17396 # Flag to hardcode \$libdir into a binary during linking.
17397 # This must work even if \$libdir does not exist
17398 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17399
17400 # If ld is used when linking, flag to hardcode \$libdir into a binary
17401 # during linking.  This must work even if \$libdir does not exist.
17402 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17403
17404 # Whether we need a single "-rpath" flag with a separated argument.
17405 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17406
17407 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17408 # DIR into the resulting binary.
17409 hardcode_direct=$hardcode_direct
17410
17411 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17412 # DIR into the resulting binary and the resulting library dependency is
17413 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17414 # library is relocated.
17415 hardcode_direct_absolute=$hardcode_direct_absolute
17416
17417 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17418 # into the resulting binary.
17419 hardcode_minus_L=$hardcode_minus_L
17420
17421 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17422 # into the resulting binary.
17423 hardcode_shlibpath_var=$hardcode_shlibpath_var
17424
17425 # Set to "yes" if building a shared library automatically hardcodes DIR
17426 # into the library and all subsequent libraries and executables linked
17427 # against it.
17428 hardcode_automatic=$hardcode_automatic
17429
17430 # Set to yes if linker adds runtime paths of dependent libraries
17431 # to runtime path list.
17432 inherit_rpath=$inherit_rpath
17433
17434 # Whether libtool must link a program against all its dependency libraries.
17435 link_all_deplibs=$link_all_deplibs
17436
17437 # Fix the shell variable \$srcfile for the compiler.
17438 fix_srcfile_path=$lt_fix_srcfile_path
17439
17440 # Set to "yes" if exported symbols are required.
17441 always_export_symbols=$always_export_symbols
17442
17443 # The commands to list exported symbols.
17444 export_symbols_cmds=$lt_export_symbols_cmds
17445
17446 # Symbols that should not be listed in the preloaded symbols.
17447 exclude_expsyms=$lt_exclude_expsyms
17448
17449 # Symbols that must always be exported.
17450 include_expsyms=$lt_include_expsyms
17451
17452 # Commands necessary for linking programs (against libraries) with templates.
17453 prelink_cmds=$lt_prelink_cmds
17454
17455 # Specify filename containing input files.
17456 file_list_spec=$lt_file_list_spec
17457
17458 # How to hardcode a shared library path into an executable.
17459 hardcode_action=$hardcode_action
17460
17461 # ### END LIBTOOL CONFIG
17462
17463 _LT_EOF
17464
17465   case $host_os in
17466   aix3*)
17467     cat <<\_LT_EOF >> "$cfgfile"
17468 # AIX sometimes has problems with the GCC collect2 program.  For some
17469 # reason, if we set the COLLECT_NAMES environment variable, the problems
17470 # vanish in a puff of smoke.
17471 if test "X${COLLECT_NAMES+set}" != Xset; then
17472   COLLECT_NAMES=
17473   export COLLECT_NAMES
17474 fi
17475 _LT_EOF
17476     ;;
17477   esac
17478
17479   
17480 ltmain="$ac_aux_dir/ltmain.sh"
17481
17482
17483   # We use sed instead of cat because bash on DJGPP gets confused if
17484   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17485   # text mode, it properly converts lines to CR/LF.  This bash problem
17486   # is reportedly fixed, but why not run on old versions too?
17487   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17488     || (rm -f "$cfgfile"; exit 1)
17489
17490   case $xsi_shell in
17491   yes)
17492     cat << \_LT_EOF >> "$cfgfile"
17493
17494 # func_dirname file append nondir_replacement
17495 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17496 # otherwise set result to NONDIR_REPLACEMENT.
17497 func_dirname ()
17498 {
17499   case ${1} in
17500     */*) func_dirname_result="${1%/*}${2}" ;;
17501     *  ) func_dirname_result="${3}" ;;
17502   esac
17503 }
17504
17505 # func_basename file
17506 func_basename ()
17507 {
17508   func_basename_result="${1##*/}"
17509 }
17510
17511 # func_dirname_and_basename file append nondir_replacement
17512 # perform func_basename and func_dirname in a single function
17513 # call:
17514 #   dirname:  Compute the dirname of FILE.  If nonempty,
17515 #             add APPEND to the result, otherwise set result
17516 #             to NONDIR_REPLACEMENT.
17517 #             value returned in "$func_dirname_result"
17518 #   basename: Compute filename of FILE.
17519 #             value retuned in "$func_basename_result"
17520 # Implementation must be kept synchronized with func_dirname
17521 # and func_basename. For efficiency, we do not delegate to
17522 # those functions but instead duplicate the functionality here.
17523 func_dirname_and_basename ()
17524 {
17525   case ${1} in
17526     */*) func_dirname_result="${1%/*}${2}" ;;
17527     *  ) func_dirname_result="${3}" ;;
17528   esac
17529   func_basename_result="${1##*/}"
17530 }
17531
17532 # func_stripname prefix suffix name
17533 # strip PREFIX and SUFFIX off of NAME.
17534 # PREFIX and SUFFIX must not contain globbing or regex special
17535 # characters, hashes, percent signs, but SUFFIX may contain a leading
17536 # dot (in which case that matches only a dot).
17537 func_stripname ()
17538 {
17539   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17540   # positional parameters, so assign one to ordinary parameter first.
17541   func_stripname_result=${3}
17542   func_stripname_result=${func_stripname_result#"${1}"}
17543   func_stripname_result=${func_stripname_result%"${2}"}
17544 }
17545
17546 # func_opt_split
17547 func_opt_split ()
17548 {
17549   func_opt_split_opt=${1%%=*}
17550   func_opt_split_arg=${1#*=}
17551 }
17552
17553 # func_lo2o object
17554 func_lo2o ()
17555 {
17556   case ${1} in
17557     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17558     *)    func_lo2o_result=${1} ;;
17559   esac
17560 }
17561
17562 # func_xform libobj-or-source
17563 func_xform ()
17564 {
17565   func_xform_result=${1%.*}.lo
17566 }
17567
17568 # func_arith arithmetic-term...
17569 func_arith ()
17570 {
17571   func_arith_result=$(( $* ))
17572 }
17573
17574 # func_len string
17575 # STRING may not start with a hyphen.
17576 func_len ()
17577 {
17578   func_len_result=${#1}
17579 }
17580
17581 _LT_EOF
17582     ;;
17583   *) # Bourne compatible functions.
17584     cat << \_LT_EOF >> "$cfgfile"
17585
17586 # func_dirname file append nondir_replacement
17587 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17588 # otherwise set result to NONDIR_REPLACEMENT.
17589 func_dirname ()
17590 {
17591   # Extract subdirectory from the argument.
17592   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17593   if test "X$func_dirname_result" = "X${1}"; then
17594     func_dirname_result="${3}"
17595   else
17596     func_dirname_result="$func_dirname_result${2}"
17597   fi
17598 }
17599
17600 # func_basename file
17601 func_basename ()
17602 {
17603   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17604 }
17605
17606
17607 # func_stripname prefix suffix name
17608 # strip PREFIX and SUFFIX off of NAME.
17609 # PREFIX and SUFFIX must not contain globbing or regex special
17610 # characters, hashes, percent signs, but SUFFIX may contain a leading
17611 # dot (in which case that matches only a dot).
17612 # func_strip_suffix prefix name
17613 func_stripname ()
17614 {
17615   case ${2} in
17616     .*) func_stripname_result=`$ECHO "X${3}" \
17617            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17618     *)  func_stripname_result=`$ECHO "X${3}" \
17619            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17620   esac
17621 }
17622
17623 # sed scripts:
17624 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17625 my_sed_long_arg='1s/^-[^=]*=//'
17626
17627 # func_opt_split
17628 func_opt_split ()
17629 {
17630   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17631   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17632 }
17633
17634 # func_lo2o object
17635 func_lo2o ()
17636 {
17637   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17638 }
17639
17640 # func_xform libobj-or-source
17641 func_xform ()
17642 {
17643   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17644 }
17645
17646 # func_arith arithmetic-term...
17647 func_arith ()
17648 {
17649   func_arith_result=`expr "$@"`
17650 }
17651
17652 # func_len string
17653 # STRING may not start with a hyphen.
17654 func_len ()
17655 {
17656   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17657 }
17658
17659 _LT_EOF
17660 esac
17661
17662 case $lt_shell_append in
17663   yes)
17664     cat << \_LT_EOF >> "$cfgfile"
17665
17666 # func_append var value
17667 # Append VALUE to the end of shell variable VAR.
17668 func_append ()
17669 {
17670   eval "$1+=\$2"
17671 }
17672 _LT_EOF
17673     ;;
17674   *)
17675     cat << \_LT_EOF >> "$cfgfile"
17676
17677 # func_append var value
17678 # Append VALUE to the end of shell variable VAR.
17679 func_append ()
17680 {
17681   eval "$1=\$$1\$2"
17682 }
17683
17684 _LT_EOF
17685     ;;
17686   esac
17687
17688
17689   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17690     || (rm -f "$cfgfile"; exit 1)
17691
17692   mv -f "$cfgfile" "$ofile" ||
17693     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17694   chmod +x "$ofile"
17695
17696  ;;
17697     "default-1":C) 
17698     for ac_file in $CONFIG_FILES; do
17699       # Support "outfile[:infile[:infile...]]"
17700       case "$ac_file" in
17701         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17702       esac
17703       # PO directories have a Makefile.in generated from Makefile.in.in.
17704       case "$ac_file" in */Makefile.in)
17705         # Adjust a relative srcdir.
17706         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17707         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17708         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17709         # In autoconf-2.13 it is called $ac_given_srcdir.
17710         # In autoconf-2.50 it is called $srcdir.
17711         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17712         case "$ac_given_srcdir" in
17713           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17714           /*) top_srcdir="$ac_given_srcdir" ;;
17715           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
17716         esac
17717         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17718           rm -f "$ac_dir/POTFILES"
17719           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17720           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17721           POMAKEFILEDEPS="POTFILES.in"
17722           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
17723           # on $ac_dir but don't depend on user-specified configuration
17724           # parameters.
17725           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17726             # The LINGUAS file contains the set of available languages.
17727             if test -n "$OBSOLETE_ALL_LINGUAS"; then
17728               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17729             fi
17730             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17731             # Hide the ALL_LINGUAS assigment from automake.
17732             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17733             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17734           else
17735             # The set of available languages was given in configure.in.
17736             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17737           fi
17738           # Compute POFILES
17739           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17740           # Compute UPDATEPOFILES
17741           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17742           # Compute DUMMYPOFILES
17743           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17744           # Compute GMOFILES
17745           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
17746           case "$ac_given_srcdir" in
17747             .) srcdirpre= ;;
17748             *) srcdirpre='$(srcdir)/' ;;
17749           esac
17750           POFILES=
17751           UPDATEPOFILES=
17752           DUMMYPOFILES=
17753           GMOFILES=
17754           for lang in $ALL_LINGUAS; do
17755             POFILES="$POFILES $srcdirpre$lang.po"
17756             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17757             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17758             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17759           done
17760           # CATALOGS depends on both $ac_dir and the user's LINGUAS
17761           # environment variable.
17762           INST_LINGUAS=
17763           if test -n "$ALL_LINGUAS"; then
17764             for presentlang in $ALL_LINGUAS; do
17765               useit=no
17766               if test "%UNSET%" != "$LINGUAS"; then
17767                 desiredlanguages="$LINGUAS"
17768               else
17769                 desiredlanguages="$ALL_LINGUAS"
17770               fi
17771               for desiredlang in $desiredlanguages; do
17772                 # Use the presentlang catalog if desiredlang is
17773                 #   a. equal to presentlang, or
17774                 #   b. a variant of presentlang (because in this case,
17775                 #      presentlang can be used as a fallback for messages
17776                 #      which are not translated in the desiredlang catalog).
17777                 case "$desiredlang" in
17778                   "$presentlang"*) useit=yes;;
17779                 esac
17780               done
17781               if test $useit = yes; then
17782                 INST_LINGUAS="$INST_LINGUAS $presentlang"
17783               fi
17784             done
17785           fi
17786           CATALOGS=
17787           if test -n "$INST_LINGUAS"; then
17788             for lang in $INST_LINGUAS; do
17789               CATALOGS="$CATALOGS $lang.gmo"
17790             done
17791           fi
17792           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17793           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"
17794           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17795             if test -f "$f"; then
17796               case "$f" in
17797                 *.orig | *.bak | *~) ;;
17798                 *) cat "$f" >> "$ac_dir/Makefile" ;;
17799               esac
17800             fi
17801           done
17802         fi
17803         ;;
17804       esac
17805     done ;;
17806     "default-2":C) 
17807     for ac_file in $CONFIG_FILES; do
17808       # Support "outfile[:infile[:infile...]]"
17809       case "$ac_file" in
17810         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17811       esac
17812       # PO directories have a Makefile.in generated from Makefile.in.in.
17813       case "$ac_file" in */Makefile.in)
17814         # Adjust a relative srcdir.
17815         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17816         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17817         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17818         # In autoconf-2.13 it is called $ac_given_srcdir.
17819         # In autoconf-2.50 it is called $srcdir.
17820         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17821         case "$ac_given_srcdir" in
17822           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17823           /*) top_srcdir="$ac_given_srcdir" ;;
17824           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
17825         esac
17826         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17827           rm -f "$ac_dir/POTFILES"
17828           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17829           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17830           POMAKEFILEDEPS="POTFILES.in"
17831           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
17832           # on $ac_dir but don't depend on user-specified configuration
17833           # parameters.
17834           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17835             # The LINGUAS file contains the set of available languages.
17836             if test -n "$OBSOLETE_ALL_LINGUAS"; then
17837               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17838             fi
17839             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17840             # Hide the ALL_LINGUAS assigment from automake.
17841             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17842             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17843           else
17844             # The set of available languages was given in configure.in.
17845             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17846           fi
17847           # Compute POFILES
17848           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17849           # Compute UPDATEPOFILES
17850           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17851           # Compute DUMMYPOFILES
17852           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17853           # Compute GMOFILES
17854           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
17855           case "$ac_given_srcdir" in
17856             .) srcdirpre= ;;
17857             *) srcdirpre='$(srcdir)/' ;;
17858           esac
17859           POFILES=
17860           UPDATEPOFILES=
17861           DUMMYPOFILES=
17862           GMOFILES=
17863           for lang in $ALL_LINGUAS; do
17864             POFILES="$POFILES $srcdirpre$lang.po"
17865             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17866             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17867             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17868           done
17869           # CATALOGS depends on both $ac_dir and the user's LINGUAS
17870           # environment variable.
17871           INST_LINGUAS=
17872           if test -n "$ALL_LINGUAS"; then
17873             for presentlang in $ALL_LINGUAS; do
17874               useit=no
17875               if test "%UNSET%" != "$LINGUAS"; then
17876                 desiredlanguages="$LINGUAS"
17877               else
17878                 desiredlanguages="$ALL_LINGUAS"
17879               fi
17880               for desiredlang in $desiredlanguages; do
17881                 # Use the presentlang catalog if desiredlang is
17882                 #   a. equal to presentlang, or
17883                 #   b. a variant of presentlang (because in this case,
17884                 #      presentlang can be used as a fallback for messages
17885                 #      which are not translated in the desiredlang catalog).
17886                 case "$desiredlang" in
17887                   "$presentlang"*) useit=yes;;
17888                 esac
17889               done
17890               if test $useit = yes; then
17891                 INST_LINGUAS="$INST_LINGUAS $presentlang"
17892               fi
17893             done
17894           fi
17895           CATALOGS=
17896           if test -n "$INST_LINGUAS"; then
17897             for lang in $INST_LINGUAS; do
17898               CATALOGS="$CATALOGS $lang.gmo"
17899             done
17900           fi
17901           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17902           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"
17903           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17904             if test -f "$f"; then
17905               case "$f" in
17906                 *.orig | *.bak | *~) ;;
17907                 *) cat "$f" >> "$ac_dir/Makefile" ;;
17908               esac
17909             fi
17910           done
17911         fi
17912         ;;
17913       esac
17914     done ;;
17915
17916   esac
17917 done # for ac_tag
17918
17919
17920 as_fn_exit 0
17921 _ACEOF
17922 ac_clean_files=$ac_clean_files_save
17923
17924 test $ac_write_fail = 0 ||
17925   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17926
17927
17928 # configure is writing to config.log, and then calls config.status.
17929 # config.status does its own redirection, appending to config.log.
17930 # Unfortunately, on DOS this fails, as config.log is still kept open
17931 # by configure, so config.status won't be able to write to it; its
17932 # output is simply discarded.  So we exec the FD to /dev/null,
17933 # effectively closing config.log, so it can be properly (re)opened and
17934 # appended to by config.status.  When coming back to configure, we
17935 # need to make the FD available again.
17936 if test "$no_create" != yes; then
17937   ac_cs_success=:
17938   ac_config_status_args=
17939   test "$silent" = yes &&
17940     ac_config_status_args="$ac_config_status_args --quiet"
17941   exec 5>/dev/null
17942   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17943   exec 5>>config.log
17944   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17945   # would make configure fail if this is the last instruction.
17946   $ac_cs_success || as_fn_exit 1
17947 fi
17948 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17949   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17950 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17951 fi
17952
17953
17954 # Message about configured subprojects
17955 if test "x$subdirs" != "x"; then
17956         
17957 gp_config_msg="${gp_config_msg}
17958 "
17959         _subdirs=""
17960         for sd in $subdirs; do
17961                 ssd="$(basename "$sd")"
17962                 if test "x$_subdirs" = "x"; then
17963                         _subdirs="$ssd";
17964                 else
17965                         _subdirs="$_subdirs $ssd"
17966                 fi
17967         done
17968         
17969 gp_config_msg_len="$(expr "Subprojects" : '.*')"
17970 if test "$gp_config_msg_len" -ge "$gp_config_len"; then
17971         gp_config_msg_lhs="$(expr "Subprojects" : "\(.\{0,${gp_config_len3}\}\)")..:"
17972 else
17973         gp_config_msg_lhs="$(expr "Subprojects:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
17974 fi
17975 gp_config_msg="${gp_config_msg}    ${gp_config_msg_lhs} ${_subdirs}
17976 "
17977 fi
17978
17979 echo "${gp_config_msg}
17980 You may run \"make\" and \"make install\" now."
17981
17982
17983 # End of file.