Merge branch 'dbus-launch' into debian
[moonshot-ui.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for Moonshot-ui 0.1.
4 #
5 # Report bugs to <moonshot-community@jiscmail.ac.uk>.
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
178   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     PATH=/empty FPATH=/empty; export PATH FPATH
183     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: moonshot-community@jiscmail.ac.uk about your system,
251 $0: including any error possibly output before this
252 $0: message. Then install a modern shell, or manually run
253 $0: the script under such a shell if you do have one."
254   fi
255   exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273   { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282   return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290   set +e
291   as_fn_set_status $1
292   exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301   case $as_dir in #(
302   -*) as_dir=./$as_dir;;
303   esac
304   test -d "$as_dir" || eval $as_mkdir_p || {
305     as_dirs=
306     while :; do
307       case $as_dir in #(
308       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309       *) as_qdir=$as_dir;;
310       esac
311       as_dirs="'$as_qdir' $as_dirs"
312       as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314          X"$as_dir" : 'X\(//\)[^/]' \| \
315          X"$as_dir" : 'X\(//\)$' \| \
316          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\/\)[^/].*/{
323             s//\1/
324             q
325           }
326           /^X\(\/\/\)$/{
327             s//\1/
328             q
329           }
330           /^X\(\/\).*/{
331             s//\1/
332             q
333           }
334           s/.*/./; q'`
335       test -d "$as_dir" && break
336     done
337     test -z "$as_dirs" || eval "mkdir $as_dirs"
338   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349   eval 'as_fn_append ()
350   {
351     eval $1+=\$2
352   }'
353 else
354   as_fn_append ()
355   {
356     eval $1=\$$1\$2
357   }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366   eval 'as_fn_arith ()
367   {
368     as_val=$(( $* ))
369   }'
370 else
371   as_fn_arith ()
372   {
373     as_val=`expr "$@" || test $? -eq 1`
374   }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385   as_status=$1; test $as_status -eq 0 && as_status=1
386   if test "$4"; then
387     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389   fi
390   $as_echo "$as_me: error: $2" >&2
391   as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395    test "X`expr 00001 : '.*\(...\)'`" = X001; then
396   as_expr=expr
397 else
398   as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402   as_basename=basename
403 else
404   as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408   as_dirname=dirname
409 else
410   as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415          X"$0" : 'X\(//\)$' \| \
416          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418     sed '/^.*\/\([^/][^/]*\)\/*$/{
419             s//\1/
420             q
421           }
422           /^X\/\(\/\/\)$/{
423             s//\1/
424             q
425           }
426           /^X\/\(\/\).*/{
427             s//\1/
428             q
429           }
430           s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440   as_lineno_1=$LINENO as_lineno_1a=$LINENO
441   as_lineno_2=$LINENO as_lineno_2a=$LINENO
442   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445   sed -n '
446     p
447     /[$]LINENO/=
448   ' <$as_myself |
449     sed '
450       s/[$]LINENO.*/&-/
451       t lineno
452       b
453       :lineno
454       N
455       :loop
456       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457       t loop
458       s/-\n.*//
459     ' >$as_me.lineno &&
460   chmod +x "$as_me.lineno" ||
461     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463   # Don't try to exec as it changes $[0], causing all sort of problems
464   # (the dirname of $[0] is not the place where we might find the
465   # original and so on.  Autoconf is especially sensitive to this).
466   . "./$as_me.lineno"
467   # Exit status is that of the last command.
468   exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474   case `echo 'xy\c'` in
475   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
476   xy)  ECHO_C='\c';;
477   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478        ECHO_T=' ';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492   if ln -s conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s='ln -s'
494     # ... but there are two gotchas:
495     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497     # In both cases, we have to default to `cp -p'.
498     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499       as_ln_s='cp -p'
500   elif ln conf$$.file conf$$ 2>/dev/null; then
501     as_ln_s=ln
502   else
503     as_ln_s='cp -p'
504   fi
505 else
506   as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512   as_mkdir_p='mkdir -p "$as_dir"'
513 else
514   test -d ./-p && rmdir ./-p
515   as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519   as_test_x='test -x'
520 else
521   if ls -dL / >/dev/null 2>&1; then
522     as_ls_L_option=L
523   else
524     as_ls_L_option=
525   fi
526   as_test_x='
527     eval sh -c '\''
528       if test -d "$1"; then
529         test -d "$1/.";
530       else
531         case $1 in #(
532         -*)set "./$1";;
533         esac;
534         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535         ???[sx]*):;;*)false;;esac;fi
536     '\'' sh
537   '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549 as_awk_strverscmp='
550   # Use only awk features that work with 7th edition Unix awk (1978).
551   # My, what an old awk you have, Mr. Solaris!
552   END {
553     while (length(v1) && length(v2)) {
554       # Set d1 to be the next thing to compare from v1, and likewise for d2.
555       # Normally this is a single character, but if v1 and v2 contain digits,
556       # compare them as integers and fractions as strverscmp does.
557       if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
558         # Split v1 and v2 into their leading digit string components d1 and d2,
559         # and advance v1 and v2 past the leading digit strings.
560         for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
561         for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
562         d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
563         d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
564         if (d1 ~ /^0/) {
565           if (d2 ~ /^0/) {
566             # Compare two fractions.
567             while (d1 ~ /^0/ && d2 ~ /^0/) {
568               d1 = substr(d1, 2); len1--
569               d2 = substr(d2, 2); len2--
570             }
571             if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
572               # The two components differ in length, and the common prefix
573               # contains only leading zeros.  Consider the longer to be less.
574               d1 = -len1
575               d2 = -len2
576             } else {
577               # Otherwise, compare as strings.
578               d1 = "x" d1
579               d2 = "x" d2
580             }
581           } else {
582             # A fraction is less than an integer.
583             exit 1
584           }
585         } else {
586           if (d2 ~ /^0/) {
587             # An integer is greater than a fraction.
588             exit 2
589           } else {
590             # Compare two integers.
591             d1 += 0
592             d2 += 0
593           }
594         }
595       } else {
596         # The normal case, without worrying about digits.
597         d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
598         d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
599       }
600       if (d1 < d2) exit 1
601       if (d1 > d2) exit 2
602     }
603     # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
604     # which mishandles some comparisons of empty strings to integers.
605     if (length(v2)) exit 1
606     if (length(v1)) exit 2
607   }
608 '
609
610 test -n "$DJDIR" || exec 7<&0 </dev/null
611 exec 6>&1
612
613 # Name of the host.
614 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
615 # so uname gets run too.
616 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
617
618 #
619 # Initializations.
620 #
621 ac_default_prefix=/usr/local
622 ac_clean_files=
623 ac_config_libobj_dir=.
624 LIBOBJS=
625 cross_compiling=no
626 subdirs=
627 MFLAGS=
628 MAKEFLAGS=
629
630 # Identity of this package.
631 PACKAGE_NAME='Moonshot-ui'
632 PACKAGE_TARNAME='moonshot-ui'
633 PACKAGE_VERSION='0.1'
634 PACKAGE_STRING='Moonshot-ui 0.1'
635 PACKAGE_BUGREPORT='moonshot-community@jiscmail.ac.uk'
636 PACKAGE_URL='http://www.project-moonshot.org/'
637
638 ac_unique_file="configure.ac"
639 # Factoring default headers for most tests.
640 ac_includes_default="\
641 #include <stdio.h>
642 #ifdef HAVE_SYS_TYPES_H
643 # include <sys/types.h>
644 #endif
645 #ifdef HAVE_SYS_STAT_H
646 # include <sys/stat.h>
647 #endif
648 #ifdef STDC_HEADERS
649 # include <stdlib.h>
650 # include <stddef.h>
651 #else
652 # ifdef HAVE_STDLIB_H
653 #  include <stdlib.h>
654 # endif
655 #endif
656 #ifdef HAVE_STRING_H
657 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
658 #  include <memory.h>
659 # endif
660 # include <string.h>
661 #endif
662 #ifdef HAVE_STRINGS_H
663 # include <strings.h>
664 #endif
665 #ifdef HAVE_INTTYPES_H
666 # include <inttypes.h>
667 #endif
668 #ifdef HAVE_STDINT_H
669 # include <stdint.h>
670 #endif
671 #ifdef HAVE_UNISTD_H
672 # include <unistd.h>
673 #endif"
674
675 gt_needs=
676 ac_subst_vars='am__EXEEXT_FALSE
677 am__EXEEXT_TRUE
678 LTLIBOBJS
679 LIBOBJS
680 GETTEXT_PACKAGE
681 POSUB
682 LTLIBINTL
683 LIBINTL
684 INTLLIBS
685 LTLIBICONV
686 LIBICONV
687 INTL_MACOSX_LIBS
688 XGETTEXT_EXTRA_OPTIONS
689 MSGMERGE
690 XGETTEXT_015
691 XGETTEXT
692 GMSGFMT_015
693 MSGFMT_015
694 GMSGFMT
695 MSGFMT
696 GETTEXT_MACRO_VERSION
697 USE_NLS
698 libmoonshot_LIBS
699 libmoonshot_CFLAGS
700 moonshot_LIBS
701 moonshot_CFLAGS
702 MOONSHOT_WEBP
703 MOONSHOT_APP
704 UPDATE_DESKTOP_DATABASE
705 UPDATE_MIME_DATABASE
706 WIX_LIGHT
707 WIX_CANDLE
708 IMAGEMAGICK_CONVERT
709 MSVC_LIB
710 MIDL
711 MIDL_WRAPPER
712 MSRPC_LIBS
713 MSRPC_CFLAGS
714 IPC_GDBUS_FALSE
715 IPC_GDBUS_TRUE
716 IPC_DBUS_GLIB_FALSE
717 IPC_DBUS_GLIB_TRUE
718 IPC_DBUS_FALSE
719 IPC_DBUS_TRUE
720 IPC_MSRPC_FALSE
721 IPC_MSRPC_TRUE
722 OS_MACOS_FALSE
723 OS_MACOS_TRUE
724 OS_WIN32_FALSE
725 OS_WIN32_TRUE
726 OS_LINUX_FALSE
727 OS_LINUX_TRUE
728 GDBUS_LIBS
729 GDBUS_CFLAGS
730 MAC_LIBS
731 MAC_CFLAGS
732 GTK_LIBS
733 GTK_CFLAGS
734 VALAC
735 PKG_CONFIG_LIBDIR
736 PKG_CONFIG_PATH
737 PKG_CONFIG
738 CPP
739 OTOOL64
740 OTOOL
741 LIPO
742 NMEDIT
743 DSYMUTIL
744 MANIFEST_TOOL
745 RANLIB
746 ac_ct_AR
747 AR
748 LN_S
749 NM
750 ac_ct_DUMPBIN
751 DUMPBIN
752 LD
753 FGREP
754 EGREP
755 GREP
756 SED
757 am__fastdepCC_FALSE
758 am__fastdepCC_TRUE
759 CCDEPMODE
760 am__nodep
761 AMDEPBACKSLASH
762 AMDEP_FALSE
763 AMDEP_TRUE
764 am__quote
765 am__include
766 DEPDIR
767 OBJEXT
768 EXEEXT
769 ac_ct_CC
770 CPPFLAGS
771 LDFLAGS
772 CFLAGS
773 CC
774 host_os
775 host_vendor
776 host_cpu
777 host
778 build_os
779 build_vendor
780 build_cpu
781 build
782 LIBTOOL
783 OBJDUMP
784 DLLTOOL
785 AS
786 MAINT
787 MAINTAINER_MODE_FALSE
788 MAINTAINER_MODE_TRUE
789 AM_BACKSLASH
790 AM_DEFAULT_VERBOSITY
791 am__untar
792 am__tar
793 AMTAR
794 am__leading_dot
795 SET_MAKE
796 AWK
797 mkdir_p
798 MKDIR_P
799 INSTALL_STRIP_PROGRAM
800 STRIP
801 install_sh
802 MAKEINFO
803 AUTOHEADER
804 AUTOMAKE
805 AUTOCONF
806 ACLOCAL
807 VERSION
808 PACKAGE
809 CYGPATH_W
810 am__isrc
811 INSTALL_DATA
812 INSTALL_SCRIPT
813 INSTALL_PROGRAM
814 target_alias
815 host_alias
816 build_alias
817 LIBS
818 ECHO_T
819 ECHO_N
820 ECHO_C
821 DEFS
822 mandir
823 localedir
824 libdir
825 psdir
826 pdfdir
827 dvidir
828 htmldir
829 infodir
830 docdir
831 oldincludedir
832 includedir
833 localstatedir
834 sharedstatedir
835 sysconfdir
836 datadir
837 datarootdir
838 libexecdir
839 sbindir
840 bindir
841 program_transform_name
842 prefix
843 exec_prefix
844 PACKAGE_URL
845 PACKAGE_BUGREPORT
846 PACKAGE_STRING
847 PACKAGE_VERSION
848 PACKAGE_TARNAME
849 PACKAGE_NAME
850 PATH_SEPARATOR
851 SHELL'
852 ac_subst_files=''
853 ac_user_opts='
854 enable_option_checking
855 enable_silent_rules
856 enable_maintainer_mode
857 enable_shared
858 enable_static
859 with_pic
860 enable_fast_install
861 enable_dependency_tracking
862 with_gnu_ld
863 with_sysroot
864 enable_libtool_lock
865 enable_nls
866 enable_rpath
867 with_libiconv_prefix
868 with_libintl_prefix
869 '
870       ac_precious_vars='build_alias
871 host_alias
872 target_alias
873 CC
874 CFLAGS
875 LDFLAGS
876 LIBS
877 CPPFLAGS
878 CPP
879 PKG_CONFIG
880 PKG_CONFIG_PATH
881 PKG_CONFIG_LIBDIR
882 GTK_CFLAGS
883 GTK_LIBS
884 MAC_CFLAGS
885 MAC_LIBS
886 GDBUS_CFLAGS
887 GDBUS_LIBS
888 moonshot_CFLAGS
889 moonshot_LIBS
890 libmoonshot_CFLAGS
891 libmoonshot_LIBS'
892
893
894 # Initialize some variables set by options.
895 ac_init_help=
896 ac_init_version=false
897 ac_unrecognized_opts=
898 ac_unrecognized_sep=
899 # The variables have the same names as the options, with
900 # dashes changed to underlines.
901 cache_file=/dev/null
902 exec_prefix=NONE
903 no_create=
904 no_recursion=
905 prefix=NONE
906 program_prefix=NONE
907 program_suffix=NONE
908 program_transform_name=s,x,x,
909 silent=
910 site=
911 srcdir=
912 verbose=
913 x_includes=NONE
914 x_libraries=NONE
915
916 # Installation directory options.
917 # These are left unexpanded so users can "make install exec_prefix=/foo"
918 # and all the variables that are supposed to be based on exec_prefix
919 # by default will actually change.
920 # Use braces instead of parens because sh, perl, etc. also accept them.
921 # (The list follows the same order as the GNU Coding Standards.)
922 bindir='${exec_prefix}/bin'
923 sbindir='${exec_prefix}/sbin'
924 libexecdir='${exec_prefix}/libexec'
925 datarootdir='${prefix}/share'
926 datadir='${datarootdir}'
927 sysconfdir='${prefix}/etc'
928 sharedstatedir='${prefix}/com'
929 localstatedir='${prefix}/var'
930 includedir='${prefix}/include'
931 oldincludedir='/usr/include'
932 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
933 infodir='${datarootdir}/info'
934 htmldir='${docdir}'
935 dvidir='${docdir}'
936 pdfdir='${docdir}'
937 psdir='${docdir}'
938 libdir='${exec_prefix}/lib'
939 localedir='${datarootdir}/locale'
940 mandir='${datarootdir}/man'
941
942 ac_prev=
943 ac_dashdash=
944 for ac_option
945 do
946   # If the previous option needs an argument, assign it.
947   if test -n "$ac_prev"; then
948     eval $ac_prev=\$ac_option
949     ac_prev=
950     continue
951   fi
952
953   case $ac_option in
954   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
955   *=)   ac_optarg= ;;
956   *)    ac_optarg=yes ;;
957   esac
958
959   # Accept the important Cygnus configure options, so we can diagnose typos.
960
961   case $ac_dashdash$ac_option in
962   --)
963     ac_dashdash=yes ;;
964
965   -bindir | --bindir | --bindi | --bind | --bin | --bi)
966     ac_prev=bindir ;;
967   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
968     bindir=$ac_optarg ;;
969
970   -build | --build | --buil | --bui | --bu)
971     ac_prev=build_alias ;;
972   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
973     build_alias=$ac_optarg ;;
974
975   -cache-file | --cache-file | --cache-fil | --cache-fi \
976   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
977     ac_prev=cache_file ;;
978   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
979   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
980     cache_file=$ac_optarg ;;
981
982   --config-cache | -C)
983     cache_file=config.cache ;;
984
985   -datadir | --datadir | --datadi | --datad)
986     ac_prev=datadir ;;
987   -datadir=* | --datadir=* | --datadi=* | --datad=*)
988     datadir=$ac_optarg ;;
989
990   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
991   | --dataroo | --dataro | --datar)
992     ac_prev=datarootdir ;;
993   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
994   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
995     datarootdir=$ac_optarg ;;
996
997   -disable-* | --disable-*)
998     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
999     # Reject names that are not valid shell variable names.
1000     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1001       as_fn_error $? "invalid feature name: $ac_useropt"
1002     ac_useropt_orig=$ac_useropt
1003     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1004     case $ac_user_opts in
1005       *"
1006 "enable_$ac_useropt"
1007 "*) ;;
1008       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1009          ac_unrecognized_sep=', ';;
1010     esac
1011     eval enable_$ac_useropt=no ;;
1012
1013   -docdir | --docdir | --docdi | --doc | --do)
1014     ac_prev=docdir ;;
1015   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1016     docdir=$ac_optarg ;;
1017
1018   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1019     ac_prev=dvidir ;;
1020   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1021     dvidir=$ac_optarg ;;
1022
1023   -enable-* | --enable-*)
1024     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1025     # Reject names that are not valid shell variable names.
1026     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1027       as_fn_error $? "invalid feature name: $ac_useropt"
1028     ac_useropt_orig=$ac_useropt
1029     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030     case $ac_user_opts in
1031       *"
1032 "enable_$ac_useropt"
1033 "*) ;;
1034       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1035          ac_unrecognized_sep=', ';;
1036     esac
1037     eval enable_$ac_useropt=\$ac_optarg ;;
1038
1039   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1040   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1041   | --exec | --exe | --ex)
1042     ac_prev=exec_prefix ;;
1043   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1044   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1045   | --exec=* | --exe=* | --ex=*)
1046     exec_prefix=$ac_optarg ;;
1047
1048   -gas | --gas | --ga | --g)
1049     # Obsolete; use --with-gas.
1050     with_gas=yes ;;
1051
1052   -help | --help | --hel | --he | -h)
1053     ac_init_help=long ;;
1054   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1055     ac_init_help=recursive ;;
1056   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1057     ac_init_help=short ;;
1058
1059   -host | --host | --hos | --ho)
1060     ac_prev=host_alias ;;
1061   -host=* | --host=* | --hos=* | --ho=*)
1062     host_alias=$ac_optarg ;;
1063
1064   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1065     ac_prev=htmldir ;;
1066   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1067   | --ht=*)
1068     htmldir=$ac_optarg ;;
1069
1070   -includedir | --includedir | --includedi | --included | --include \
1071   | --includ | --inclu | --incl | --inc)
1072     ac_prev=includedir ;;
1073   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1074   | --includ=* | --inclu=* | --incl=* | --inc=*)
1075     includedir=$ac_optarg ;;
1076
1077   -infodir | --infodir | --infodi | --infod | --info | --inf)
1078     ac_prev=infodir ;;
1079   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1080     infodir=$ac_optarg ;;
1081
1082   -libdir | --libdir | --libdi | --libd)
1083     ac_prev=libdir ;;
1084   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1085     libdir=$ac_optarg ;;
1086
1087   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1088   | --libexe | --libex | --libe)
1089     ac_prev=libexecdir ;;
1090   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1091   | --libexe=* | --libex=* | --libe=*)
1092     libexecdir=$ac_optarg ;;
1093
1094   -localedir | --localedir | --localedi | --localed | --locale)
1095     ac_prev=localedir ;;
1096   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1097     localedir=$ac_optarg ;;
1098
1099   -localstatedir | --localstatedir | --localstatedi | --localstated \
1100   | --localstate | --localstat | --localsta | --localst | --locals)
1101     ac_prev=localstatedir ;;
1102   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1103   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1104     localstatedir=$ac_optarg ;;
1105
1106   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1107     ac_prev=mandir ;;
1108   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1109     mandir=$ac_optarg ;;
1110
1111   -nfp | --nfp | --nf)
1112     # Obsolete; use --without-fp.
1113     with_fp=no ;;
1114
1115   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1116   | --no-cr | --no-c | -n)
1117     no_create=yes ;;
1118
1119   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1120   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1121     no_recursion=yes ;;
1122
1123   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1124   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1125   | --oldin | --oldi | --old | --ol | --o)
1126     ac_prev=oldincludedir ;;
1127   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1128   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1129   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1130     oldincludedir=$ac_optarg ;;
1131
1132   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1133     ac_prev=prefix ;;
1134   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1135     prefix=$ac_optarg ;;
1136
1137   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1138   | --program-pre | --program-pr | --program-p)
1139     ac_prev=program_prefix ;;
1140   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1141   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1142     program_prefix=$ac_optarg ;;
1143
1144   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1145   | --program-suf | --program-su | --program-s)
1146     ac_prev=program_suffix ;;
1147   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1148   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1149     program_suffix=$ac_optarg ;;
1150
1151   -program-transform-name | --program-transform-name \
1152   | --program-transform-nam | --program-transform-na \
1153   | --program-transform-n | --program-transform- \
1154   | --program-transform | --program-transfor \
1155   | --program-transfo | --program-transf \
1156   | --program-trans | --program-tran \
1157   | --progr-tra | --program-tr | --program-t)
1158     ac_prev=program_transform_name ;;
1159   -program-transform-name=* | --program-transform-name=* \
1160   | --program-transform-nam=* | --program-transform-na=* \
1161   | --program-transform-n=* | --program-transform-=* \
1162   | --program-transform=* | --program-transfor=* \
1163   | --program-transfo=* | --program-transf=* \
1164   | --program-trans=* | --program-tran=* \
1165   | --progr-tra=* | --program-tr=* | --program-t=*)
1166     program_transform_name=$ac_optarg ;;
1167
1168   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1169     ac_prev=pdfdir ;;
1170   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1171     pdfdir=$ac_optarg ;;
1172
1173   -psdir | --psdir | --psdi | --psd | --ps)
1174     ac_prev=psdir ;;
1175   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1176     psdir=$ac_optarg ;;
1177
1178   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1179   | -silent | --silent | --silen | --sile | --sil)
1180     silent=yes ;;
1181
1182   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1183     ac_prev=sbindir ;;
1184   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1185   | --sbi=* | --sb=*)
1186     sbindir=$ac_optarg ;;
1187
1188   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1189   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1190   | --sharedst | --shareds | --shared | --share | --shar \
1191   | --sha | --sh)
1192     ac_prev=sharedstatedir ;;
1193   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1194   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1195   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1196   | --sha=* | --sh=*)
1197     sharedstatedir=$ac_optarg ;;
1198
1199   -site | --site | --sit)
1200     ac_prev=site ;;
1201   -site=* | --site=* | --sit=*)
1202     site=$ac_optarg ;;
1203
1204   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1205     ac_prev=srcdir ;;
1206   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1207     srcdir=$ac_optarg ;;
1208
1209   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1210   | --syscon | --sysco | --sysc | --sys | --sy)
1211     ac_prev=sysconfdir ;;
1212   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1213   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1214     sysconfdir=$ac_optarg ;;
1215
1216   -target | --target | --targe | --targ | --tar | --ta | --t)
1217     ac_prev=target_alias ;;
1218   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1219     target_alias=$ac_optarg ;;
1220
1221   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1222     verbose=yes ;;
1223
1224   -version | --version | --versio | --versi | --vers | -V)
1225     ac_init_version=: ;;
1226
1227   -with-* | --with-*)
1228     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1229     # Reject names that are not valid shell variable names.
1230     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1231       as_fn_error $? "invalid package name: $ac_useropt"
1232     ac_useropt_orig=$ac_useropt
1233     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1234     case $ac_user_opts in
1235       *"
1236 "with_$ac_useropt"
1237 "*) ;;
1238       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1239          ac_unrecognized_sep=', ';;
1240     esac
1241     eval with_$ac_useropt=\$ac_optarg ;;
1242
1243   -without-* | --without-*)
1244     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1245     # Reject names that are not valid shell variable names.
1246     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1247       as_fn_error $? "invalid package name: $ac_useropt"
1248     ac_useropt_orig=$ac_useropt
1249     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1250     case $ac_user_opts in
1251       *"
1252 "with_$ac_useropt"
1253 "*) ;;
1254       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1255          ac_unrecognized_sep=', ';;
1256     esac
1257     eval with_$ac_useropt=no ;;
1258
1259   --x)
1260     # Obsolete; use --with-x.
1261     with_x=yes ;;
1262
1263   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1264   | --x-incl | --x-inc | --x-in | --x-i)
1265     ac_prev=x_includes ;;
1266   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1267   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1268     x_includes=$ac_optarg ;;
1269
1270   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1271   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1272     ac_prev=x_libraries ;;
1273   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1274   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1275     x_libraries=$ac_optarg ;;
1276
1277   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1278 Try \`$0 --help' for more information"
1279     ;;
1280
1281   *=*)
1282     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1283     # Reject names that are not valid shell variable names.
1284     case $ac_envvar in #(
1285       '' | [0-9]* | *[!_$as_cr_alnum]* )
1286       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1287     esac
1288     eval $ac_envvar=\$ac_optarg
1289     export $ac_envvar ;;
1290
1291   *)
1292     # FIXME: should be removed in autoconf 3.0.
1293     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1294     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1295       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1296     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1297     ;;
1298
1299   esac
1300 done
1301
1302 if test -n "$ac_prev"; then
1303   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1304   as_fn_error $? "missing argument to $ac_option"
1305 fi
1306
1307 if test -n "$ac_unrecognized_opts"; then
1308   case $enable_option_checking in
1309     no) ;;
1310     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1311     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1312   esac
1313 fi
1314
1315 # Check all directory arguments for consistency.
1316 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1317                 datadir sysconfdir sharedstatedir localstatedir includedir \
1318                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1319                 libdir localedir mandir
1320 do
1321   eval ac_val=\$$ac_var
1322   # Remove trailing slashes.
1323   case $ac_val in
1324     */ )
1325       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1326       eval $ac_var=\$ac_val;;
1327   esac
1328   # Be sure to have absolute directory names.
1329   case $ac_val in
1330     [\\/$]* | ?:[\\/]* )  continue;;
1331     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1332   esac
1333   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1334 done
1335
1336 # There might be people who depend on the old broken behavior: `$host'
1337 # used to hold the argument of --host etc.
1338 # FIXME: To remove some day.
1339 build=$build_alias
1340 host=$host_alias
1341 target=$target_alias
1342
1343 # FIXME: To remove some day.
1344 if test "x$host_alias" != x; then
1345   if test "x$build_alias" = x; then
1346     cross_compiling=maybe
1347     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1348     If a cross compiler is detected then cross compile mode will be used" >&2
1349   elif test "x$build_alias" != "x$host_alias"; then
1350     cross_compiling=yes
1351   fi
1352 fi
1353
1354 ac_tool_prefix=
1355 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1356
1357 test "$silent" = yes && exec 6>/dev/null
1358
1359
1360 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1361 ac_ls_di=`ls -di .` &&
1362 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1363   as_fn_error $? "working directory cannot be determined"
1364 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1365   as_fn_error $? "pwd does not report name of working directory"
1366
1367
1368 # Find the source files, if location was not specified.
1369 if test -z "$srcdir"; then
1370   ac_srcdir_defaulted=yes
1371   # Try the directory containing this script, then the parent directory.
1372   ac_confdir=`$as_dirname -- "$as_myself" ||
1373 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1374          X"$as_myself" : 'X\(//\)[^/]' \| \
1375          X"$as_myself" : 'X\(//\)$' \| \
1376          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1377 $as_echo X"$as_myself" |
1378     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1379             s//\1/
1380             q
1381           }
1382           /^X\(\/\/\)[^/].*/{
1383             s//\1/
1384             q
1385           }
1386           /^X\(\/\/\)$/{
1387             s//\1/
1388             q
1389           }
1390           /^X\(\/\).*/{
1391             s//\1/
1392             q
1393           }
1394           s/.*/./; q'`
1395   srcdir=$ac_confdir
1396   if test ! -r "$srcdir/$ac_unique_file"; then
1397     srcdir=..
1398   fi
1399 else
1400   ac_srcdir_defaulted=no
1401 fi
1402 if test ! -r "$srcdir/$ac_unique_file"; then
1403   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1404   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1405 fi
1406 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1407 ac_abs_confdir=`(
1408         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1409         pwd)`
1410 # When building in place, set srcdir=.
1411 if test "$ac_abs_confdir" = "$ac_pwd"; then
1412   srcdir=.
1413 fi
1414 # Remove unnecessary trailing slashes from srcdir.
1415 # Double slashes in file names in object file debugging info
1416 # mess up M-x gdb in Emacs.
1417 case $srcdir in
1418 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1419 esac
1420 for ac_var in $ac_precious_vars; do
1421   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1422   eval ac_env_${ac_var}_value=\$${ac_var}
1423   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1424   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1425 done
1426
1427 #
1428 # Report the --help message.
1429 #
1430 if test "$ac_init_help" = "long"; then
1431   # Omit some internal or obsolete options to make the list less imposing.
1432   # This message is too long to be a string in the A/UX 3.1 sh.
1433   cat <<_ACEOF
1434 \`configure' configures Moonshot-ui 0.1 to adapt to many kinds of systems.
1435
1436 Usage: $0 [OPTION]... [VAR=VALUE]...
1437
1438 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1439 VAR=VALUE.  See below for descriptions of some of the useful variables.
1440
1441 Defaults for the options are specified in brackets.
1442
1443 Configuration:
1444   -h, --help              display this help and exit
1445       --help=short        display options specific to this package
1446       --help=recursive    display the short help of all the included packages
1447   -V, --version           display version information and exit
1448   -q, --quiet, --silent   do not print \`checking ...' messages
1449       --cache-file=FILE   cache test results in FILE [disabled]
1450   -C, --config-cache      alias for \`--cache-file=config.cache'
1451   -n, --no-create         do not create output files
1452       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1453
1454 Installation directories:
1455   --prefix=PREFIX         install architecture-independent files in PREFIX
1456                           [$ac_default_prefix]
1457   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1458                           [PREFIX]
1459
1460 By default, \`make install' will install all the files in
1461 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1462 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1463 for instance \`--prefix=\$HOME'.
1464
1465 For better control, use the options below.
1466
1467 Fine tuning of the installation directories:
1468   --bindir=DIR            user executables [EPREFIX/bin]
1469   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1470   --libexecdir=DIR        program executables [EPREFIX/libexec]
1471   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1472   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1473   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1474   --libdir=DIR            object code libraries [EPREFIX/lib]
1475   --includedir=DIR        C header files [PREFIX/include]
1476   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1477   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1478   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1479   --infodir=DIR           info documentation [DATAROOTDIR/info]
1480   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1481   --mandir=DIR            man documentation [DATAROOTDIR/man]
1482   --docdir=DIR            documentation root [DATAROOTDIR/doc/moonshot-ui]
1483   --htmldir=DIR           html documentation [DOCDIR]
1484   --dvidir=DIR            dvi documentation [DOCDIR]
1485   --pdfdir=DIR            pdf documentation [DOCDIR]
1486   --psdir=DIR             ps documentation [DOCDIR]
1487 _ACEOF
1488
1489   cat <<\_ACEOF
1490
1491 Program names:
1492   --program-prefix=PREFIX            prepend PREFIX to installed program names
1493   --program-suffix=SUFFIX            append SUFFIX to installed program names
1494   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1495
1496 System types:
1497   --build=BUILD     configure for building on BUILD [guessed]
1498   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1499 _ACEOF
1500 fi
1501
1502 if test -n "$ac_init_help"; then
1503   case $ac_init_help in
1504      short | recursive ) echo "Configuration of Moonshot-ui 0.1:";;
1505    esac
1506   cat <<\_ACEOF
1507
1508 Optional Features:
1509   --disable-option-checking  ignore unrecognized --enable/--with options
1510   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1511   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1512   --enable-silent-rules          less verbose build output (undo: `make V=1')
1513   --disable-silent-rules         verbose build output (undo: `make V=0')
1514   --disable-maintainer-mode  disable make rules and dependencies not useful
1515                           (and sometimes confusing) to the casual installer
1516   --enable-shared[=PKGS]  build shared libraries [default=yes]
1517   --enable-static[=PKGS]  build static libraries [default=yes]
1518   --enable-fast-install[=PKGS]
1519                           optimize for fast installation [default=yes]
1520   --disable-dependency-tracking  speeds up one-time build
1521   --enable-dependency-tracking   do not reject slow dependency extractors
1522   --disable-libtool-lock  avoid locking (might break parallel builds)
1523   --disable-nls           do not use Native Language Support
1524   --disable-rpath         do not hardcode runtime library paths
1525
1526 Optional Packages:
1527   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1528   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1529   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1530                           both]
1531   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1532   --with-sysroot=DIR Search for dependent libraries within DIR
1533                         (or the compiler's sysroot if not specified).
1534   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1535   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1536   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1537   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1538   --without-libintl-prefix     don't search for libintl in includedir and libdir
1539
1540 Some influential environment variables:
1541   CC          C compiler command
1542   CFLAGS      C compiler flags
1543   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1544               nonstandard directory <lib dir>
1545   LIBS        libraries to pass to the linker, e.g. -l<library>
1546   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1547               you have headers in a nonstandard directory <include dir>
1548   CPP         C preprocessor
1549   PKG_CONFIG  path to pkg-config utility
1550   PKG_CONFIG_PATH
1551               directories to add to pkg-config's search path
1552   PKG_CONFIG_LIBDIR
1553               path overriding pkg-config's built-in search path
1554   GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
1555   GTK_LIBS    linker flags for GTK, overriding pkg-config
1556   MAC_CFLAGS  C compiler flags for MAC, overriding pkg-config
1557   MAC_LIBS    linker flags for MAC, overriding pkg-config
1558   GDBUS_CFLAGS
1559               C compiler flags for GDBUS, overriding pkg-config
1560   GDBUS_LIBS  linker flags for GDBUS, overriding pkg-config
1561   moonshot_CFLAGS
1562               C compiler flags for moonshot, overriding pkg-config
1563   moonshot_LIBS
1564               linker flags for moonshot, overriding pkg-config
1565   libmoonshot_CFLAGS
1566               C compiler flags for libmoonshot, overriding pkg-config
1567   libmoonshot_LIBS
1568               linker flags for libmoonshot, overriding pkg-config
1569
1570 Use these variables to override the choices made by `configure' or to help
1571 it to find libraries and programs with nonstandard names/locations.
1572
1573 Report bugs to <moonshot-community@jiscmail.ac.uk>.
1574 Moonshot-ui home page: <http://www.project-moonshot.org/>.
1575 _ACEOF
1576 ac_status=$?
1577 fi
1578
1579 if test "$ac_init_help" = "recursive"; then
1580   # If there are subdirs, report their specific --help.
1581   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1582     test -d "$ac_dir" ||
1583       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1584       continue
1585     ac_builddir=.
1586
1587 case "$ac_dir" in
1588 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589 *)
1590   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1591   # A ".." for each directory in $ac_dir_suffix.
1592   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1593   case $ac_top_builddir_sub in
1594   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1595   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1596   esac ;;
1597 esac
1598 ac_abs_top_builddir=$ac_pwd
1599 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1600 # for backward compatibility:
1601 ac_top_builddir=$ac_top_build_prefix
1602
1603 case $srcdir in
1604   .)  # We are building in place.
1605     ac_srcdir=.
1606     ac_top_srcdir=$ac_top_builddir_sub
1607     ac_abs_top_srcdir=$ac_pwd ;;
1608   [\\/]* | ?:[\\/]* )  # Absolute name.
1609     ac_srcdir=$srcdir$ac_dir_suffix;
1610     ac_top_srcdir=$srcdir
1611     ac_abs_top_srcdir=$srcdir ;;
1612   *) # Relative name.
1613     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1614     ac_top_srcdir=$ac_top_build_prefix$srcdir
1615     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1616 esac
1617 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1618
1619     cd "$ac_dir" || { ac_status=$?; continue; }
1620     # Check for guested configure.
1621     if test -f "$ac_srcdir/configure.gnu"; then
1622       echo &&
1623       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1624     elif test -f "$ac_srcdir/configure"; then
1625       echo &&
1626       $SHELL "$ac_srcdir/configure" --help=recursive
1627     else
1628       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1629     fi || ac_status=$?
1630     cd "$ac_pwd" || { ac_status=$?; break; }
1631   done
1632 fi
1633
1634 test -n "$ac_init_help" && exit $ac_status
1635 if $ac_init_version; then
1636   cat <<\_ACEOF
1637 Moonshot-ui configure 0.1
1638 generated by GNU Autoconf 2.68
1639
1640 Copyright (C) 2010 Free Software Foundation, Inc.
1641 This configure script is free software; the Free Software Foundation
1642 gives unlimited permission to copy, distribute and modify it.
1643 _ACEOF
1644   exit
1645 fi
1646
1647 ## ------------------------ ##
1648 ## Autoconf initialization. ##
1649 ## ------------------------ ##
1650
1651 # ac_fn_c_try_compile LINENO
1652 # --------------------------
1653 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1654 ac_fn_c_try_compile ()
1655 {
1656   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657   rm -f conftest.$ac_objext
1658   if { { ac_try="$ac_compile"
1659 case "(($ac_try" in
1660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661   *) ac_try_echo=$ac_try;;
1662 esac
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 $as_echo "$ac_try_echo"; } >&5
1665   (eval "$ac_compile") 2>conftest.err
1666   ac_status=$?
1667   if test -s conftest.err; then
1668     grep -v '^ *+' conftest.err >conftest.er1
1669     cat conftest.er1 >&5
1670     mv -f conftest.er1 conftest.err
1671   fi
1672   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673   test $ac_status = 0; } && {
1674          test -z "$ac_c_werror_flag" ||
1675          test ! -s conftest.err
1676        } && test -s conftest.$ac_objext; then :
1677   ac_retval=0
1678 else
1679   $as_echo "$as_me: failed program was:" >&5
1680 sed 's/^/| /' conftest.$ac_ext >&5
1681
1682         ac_retval=1
1683 fi
1684   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685   as_fn_set_status $ac_retval
1686
1687 } # ac_fn_c_try_compile
1688
1689 # ac_fn_c_try_link LINENO
1690 # -----------------------
1691 # Try to link conftest.$ac_ext, and return whether this succeeded.
1692 ac_fn_c_try_link ()
1693 {
1694   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695   rm -f conftest.$ac_objext conftest$ac_exeext
1696   if { { ac_try="$ac_link"
1697 case "(($ac_try" in
1698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699   *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703   (eval "$ac_link") 2>conftest.err
1704   ac_status=$?
1705   if test -s conftest.err; then
1706     grep -v '^ *+' conftest.err >conftest.er1
1707     cat conftest.er1 >&5
1708     mv -f conftest.er1 conftest.err
1709   fi
1710   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711   test $ac_status = 0; } && {
1712          test -z "$ac_c_werror_flag" ||
1713          test ! -s conftest.err
1714        } && test -s conftest$ac_exeext && {
1715          test "$cross_compiling" = yes ||
1716          $as_test_x conftest$ac_exeext
1717        }; then :
1718   ac_retval=0
1719 else
1720   $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1722
1723         ac_retval=1
1724 fi
1725   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1726   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1727   # interfere with the next link command; also delete a directory that is
1728   # left behind by Apple's compiler.  We do this before executing the actions.
1729   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1730   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731   as_fn_set_status $ac_retval
1732
1733 } # ac_fn_c_try_link
1734
1735 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1736 # -------------------------------------------------------
1737 # Tests whether HEADER exists and can be compiled using the include files in
1738 # INCLUDES, setting the cache variable VAR accordingly.
1739 ac_fn_c_check_header_compile ()
1740 {
1741   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743 $as_echo_n "checking for $2... " >&6; }
1744 if eval \${$3+:} false; then :
1745   $as_echo_n "(cached) " >&6
1746 else
1747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748 /* end confdefs.h.  */
1749 $4
1750 #include <$2>
1751 _ACEOF
1752 if ac_fn_c_try_compile "$LINENO"; then :
1753   eval "$3=yes"
1754 else
1755   eval "$3=no"
1756 fi
1757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1758 fi
1759 eval ac_res=\$$3
1760                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1761 $as_echo "$ac_res" >&6; }
1762   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763
1764 } # ac_fn_c_check_header_compile
1765
1766 # ac_fn_c_try_cpp LINENO
1767 # ----------------------
1768 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1769 ac_fn_c_try_cpp ()
1770 {
1771   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772   if { { ac_try="$ac_cpp conftest.$ac_ext"
1773 case "(($ac_try" in
1774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775   *) ac_try_echo=$ac_try;;
1776 esac
1777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778 $as_echo "$ac_try_echo"; } >&5
1779   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1780   ac_status=$?
1781   if test -s conftest.err; then
1782     grep -v '^ *+' conftest.err >conftest.er1
1783     cat conftest.er1 >&5
1784     mv -f conftest.er1 conftest.err
1785   fi
1786   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1787   test $ac_status = 0; } > conftest.i && {
1788          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1789          test ! -s conftest.err
1790        }; then :
1791   ac_retval=0
1792 else
1793   $as_echo "$as_me: failed program was:" >&5
1794 sed 's/^/| /' conftest.$ac_ext >&5
1795
1796     ac_retval=1
1797 fi
1798   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799   as_fn_set_status $ac_retval
1800
1801 } # ac_fn_c_try_cpp
1802
1803 # ac_fn_c_try_run LINENO
1804 # ----------------------
1805 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1806 # that executables *can* be run.
1807 ac_fn_c_try_run ()
1808 {
1809   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810   if { { ac_try="$ac_link"
1811 case "(($ac_try" in
1812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1813   *) ac_try_echo=$ac_try;;
1814 esac
1815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1816 $as_echo "$ac_try_echo"; } >&5
1817   (eval "$ac_link") 2>&5
1818   ac_status=$?
1819   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1821   { { case "(($ac_try" in
1822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823   *) ac_try_echo=$ac_try;;
1824 esac
1825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826 $as_echo "$ac_try_echo"; } >&5
1827   (eval "$ac_try") 2>&5
1828   ac_status=$?
1829   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830   test $ac_status = 0; }; }; then :
1831   ac_retval=0
1832 else
1833   $as_echo "$as_me: program exited with status $ac_status" >&5
1834        $as_echo "$as_me: failed program was:" >&5
1835 sed 's/^/| /' conftest.$ac_ext >&5
1836
1837        ac_retval=$ac_status
1838 fi
1839   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1840   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841   as_fn_set_status $ac_retval
1842
1843 } # ac_fn_c_try_run
1844
1845 # ac_fn_c_check_func LINENO FUNC VAR
1846 # ----------------------------------
1847 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1848 ac_fn_c_check_func ()
1849 {
1850   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if eval \${$3+:} false; then :
1854   $as_echo_n "(cached) " >&6
1855 else
1856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857 /* end confdefs.h.  */
1858 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1859    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1860 #define $2 innocuous_$2
1861
1862 /* System header to define __stub macros and hopefully few prototypes,
1863     which can conflict with char $2 (); below.
1864     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1865     <limits.h> exists even on freestanding compilers.  */
1866
1867 #ifdef __STDC__
1868 # include <limits.h>
1869 #else
1870 # include <assert.h>
1871 #endif
1872
1873 #undef $2
1874
1875 /* Override any GCC internal prototype to avoid an error.
1876    Use char because int might match the return type of a GCC
1877    builtin and then its argument prototype would still apply.  */
1878 #ifdef __cplusplus
1879 extern "C"
1880 #endif
1881 char $2 ();
1882 /* The GNU C library defines this for functions which it implements
1883     to always fail with ENOSYS.  Some functions are actually named
1884     something starting with __ and the normal name is an alias.  */
1885 #if defined __stub_$2 || defined __stub___$2
1886 choke me
1887 #endif
1888
1889 int
1890 main ()
1891 {
1892 return $2 ();
1893   ;
1894   return 0;
1895 }
1896 _ACEOF
1897 if ac_fn_c_try_link "$LINENO"; then :
1898   eval "$3=yes"
1899 else
1900   eval "$3=no"
1901 fi
1902 rm -f core conftest.err conftest.$ac_objext \
1903     conftest$ac_exeext conftest.$ac_ext
1904 fi
1905 eval ac_res=\$$3
1906                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907 $as_echo "$ac_res" >&6; }
1908   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909
1910 } # ac_fn_c_check_func
1911 cat >config.log <<_ACEOF
1912 This file contains any messages produced by compilers while
1913 running configure, to aid debugging if configure makes a mistake.
1914
1915 It was created by Moonshot-ui $as_me 0.1, which was
1916 generated by GNU Autoconf 2.68.  Invocation command line was
1917
1918   $ $0 $@
1919
1920 _ACEOF
1921 exec 5>>config.log
1922 {
1923 cat <<_ASUNAME
1924 ## --------- ##
1925 ## Platform. ##
1926 ## --------- ##
1927
1928 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1929 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1930 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1931 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1932 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1933
1934 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1935 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1936
1937 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1938 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1939 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1940 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1941 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1942 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1943 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1944
1945 _ASUNAME
1946
1947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1948 for as_dir in $PATH
1949 do
1950   IFS=$as_save_IFS
1951   test -z "$as_dir" && as_dir=.
1952     $as_echo "PATH: $as_dir"
1953   done
1954 IFS=$as_save_IFS
1955
1956 } >&5
1957
1958 cat >&5 <<_ACEOF
1959
1960
1961 ## ----------- ##
1962 ## Core tests. ##
1963 ## ----------- ##
1964
1965 _ACEOF
1966
1967
1968 # Keep a trace of the command line.
1969 # Strip out --no-create and --no-recursion so they do not pile up.
1970 # Strip out --silent because we don't want to record it for future runs.
1971 # Also quote any args containing shell meta-characters.
1972 # Make two passes to allow for proper duplicate-argument suppression.
1973 ac_configure_args=
1974 ac_configure_args0=
1975 ac_configure_args1=
1976 ac_must_keep_next=false
1977 for ac_pass in 1 2
1978 do
1979   for ac_arg
1980   do
1981     case $ac_arg in
1982     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1983     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1984     | -silent | --silent | --silen | --sile | --sil)
1985       continue ;;
1986     *\'*)
1987       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1988     esac
1989     case $ac_pass in
1990     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1991     2)
1992       as_fn_append ac_configure_args1 " '$ac_arg'"
1993       if test $ac_must_keep_next = true; then
1994         ac_must_keep_next=false # Got value, back to normal.
1995       else
1996         case $ac_arg in
1997           *=* | --config-cache | -C | -disable-* | --disable-* \
1998           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1999           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2000           | -with-* | --with-* | -without-* | --without-* | --x)
2001             case "$ac_configure_args0 " in
2002               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2003             esac
2004             ;;
2005           -* ) ac_must_keep_next=true ;;
2006         esac
2007       fi
2008       as_fn_append ac_configure_args " '$ac_arg'"
2009       ;;
2010     esac
2011   done
2012 done
2013 { ac_configure_args0=; unset ac_configure_args0;}
2014 { ac_configure_args1=; unset ac_configure_args1;}
2015
2016 # When interrupted or exit'd, cleanup temporary files, and complete
2017 # config.log.  We remove comments because anyway the quotes in there
2018 # would cause problems or look ugly.
2019 # WARNING: Use '\'' to represent an apostrophe within the trap.
2020 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2021 trap 'exit_status=$?
2022   # Save into config.log some information that might help in debugging.
2023   {
2024     echo
2025
2026     $as_echo "## ---------------- ##
2027 ## Cache variables. ##
2028 ## ---------------- ##"
2029     echo
2030     # The following way of writing the cache mishandles newlines in values,
2031 (
2032   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2033     eval ac_val=\$$ac_var
2034     case $ac_val in #(
2035     *${as_nl}*)
2036       case $ac_var in #(
2037       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2038 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2039       esac
2040       case $ac_var in #(
2041       _ | IFS | as_nl) ;; #(
2042       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2043       *) { eval $ac_var=; unset $ac_var;} ;;
2044       esac ;;
2045     esac
2046   done
2047   (set) 2>&1 |
2048     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2049     *${as_nl}ac_space=\ *)
2050       sed -n \
2051         "s/'\''/'\''\\\\'\'''\''/g;
2052           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2053       ;; #(
2054     *)
2055       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2056       ;;
2057     esac |
2058     sort
2059 )
2060     echo
2061
2062     $as_echo "## ----------------- ##
2063 ## Output variables. ##
2064 ## ----------------- ##"
2065     echo
2066     for ac_var in $ac_subst_vars
2067     do
2068       eval ac_val=\$$ac_var
2069       case $ac_val in
2070       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2071       esac
2072       $as_echo "$ac_var='\''$ac_val'\''"
2073     done | sort
2074     echo
2075
2076     if test -n "$ac_subst_files"; then
2077       $as_echo "## ------------------- ##
2078 ## File substitutions. ##
2079 ## ------------------- ##"
2080       echo
2081       for ac_var in $ac_subst_files
2082       do
2083         eval ac_val=\$$ac_var
2084         case $ac_val in
2085         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2086         esac
2087         $as_echo "$ac_var='\''$ac_val'\''"
2088       done | sort
2089       echo
2090     fi
2091
2092     if test -s confdefs.h; then
2093       $as_echo "## ----------- ##
2094 ## confdefs.h. ##
2095 ## ----------- ##"
2096       echo
2097       cat confdefs.h
2098       echo
2099     fi
2100     test "$ac_signal" != 0 &&
2101       $as_echo "$as_me: caught signal $ac_signal"
2102     $as_echo "$as_me: exit $exit_status"
2103   } >&5
2104   rm -f core *.core core.conftest.* &&
2105     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2106     exit $exit_status
2107 ' 0
2108 for ac_signal in 1 2 13 15; do
2109   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2110 done
2111 ac_signal=0
2112
2113 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2114 rm -f -r conftest* confdefs.h
2115
2116 $as_echo "/* confdefs.h */" > confdefs.h
2117
2118 # Predefined preprocessor variables.
2119
2120 cat >>confdefs.h <<_ACEOF
2121 #define PACKAGE_NAME "$PACKAGE_NAME"
2122 _ACEOF
2123
2124 cat >>confdefs.h <<_ACEOF
2125 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2126 _ACEOF
2127
2128 cat >>confdefs.h <<_ACEOF
2129 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2130 _ACEOF
2131
2132 cat >>confdefs.h <<_ACEOF
2133 #define PACKAGE_STRING "$PACKAGE_STRING"
2134 _ACEOF
2135
2136 cat >>confdefs.h <<_ACEOF
2137 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2138 _ACEOF
2139
2140 cat >>confdefs.h <<_ACEOF
2141 #define PACKAGE_URL "$PACKAGE_URL"
2142 _ACEOF
2143
2144
2145 # Let the site file select an alternate cache file if it wants to.
2146 # Prefer an explicitly selected file to automatically selected ones.
2147 ac_site_file1=NONE
2148 ac_site_file2=NONE
2149 if test -n "$CONFIG_SITE"; then
2150   # We do not want a PATH search for config.site.
2151   case $CONFIG_SITE in #((
2152     -*)  ac_site_file1=./$CONFIG_SITE;;
2153     */*) ac_site_file1=$CONFIG_SITE;;
2154     *)   ac_site_file1=./$CONFIG_SITE;;
2155   esac
2156 elif test "x$prefix" != xNONE; then
2157   ac_site_file1=$prefix/share/config.site
2158   ac_site_file2=$prefix/etc/config.site
2159 else
2160   ac_site_file1=$ac_default_prefix/share/config.site
2161   ac_site_file2=$ac_default_prefix/etc/config.site
2162 fi
2163 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2164 do
2165   test "x$ac_site_file" = xNONE && continue
2166   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2167     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2168 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2169     sed 's/^/| /' "$ac_site_file" >&5
2170     . "$ac_site_file" \
2171       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2173 as_fn_error $? "failed to load site script $ac_site_file
2174 See \`config.log' for more details" "$LINENO" 5; }
2175   fi
2176 done
2177
2178 if test -r "$cache_file"; then
2179   # Some versions of bash will fail to source /dev/null (special files
2180   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2181   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2182     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2183 $as_echo "$as_me: loading cache $cache_file" >&6;}
2184     case $cache_file in
2185       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2186       *)                      . "./$cache_file";;
2187     esac
2188   fi
2189 else
2190   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2191 $as_echo "$as_me: creating cache $cache_file" >&6;}
2192   >$cache_file
2193 fi
2194
2195 gt_needs="$gt_needs "
2196 # Check that the precious variables saved in the cache have kept the same
2197 # value.
2198 ac_cache_corrupted=false
2199 for ac_var in $ac_precious_vars; do
2200   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2201   eval ac_new_set=\$ac_env_${ac_var}_set
2202   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2203   eval ac_new_val=\$ac_env_${ac_var}_value
2204   case $ac_old_set,$ac_new_set in
2205     set,)
2206       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2207 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2208       ac_cache_corrupted=: ;;
2209     ,set)
2210       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2211 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2212       ac_cache_corrupted=: ;;
2213     ,);;
2214     *)
2215       if test "x$ac_old_val" != "x$ac_new_val"; then
2216         # differences in whitespace do not lead to failure.
2217         ac_old_val_w=`echo x $ac_old_val`
2218         ac_new_val_w=`echo x $ac_new_val`
2219         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2220           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2221 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2222           ac_cache_corrupted=:
2223         else
2224           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2225 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2226           eval $ac_var=\$ac_old_val
2227         fi
2228         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2229 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2230         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2231 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2232       fi;;
2233   esac
2234   # Pass precious variables to config.status.
2235   if test "$ac_new_set" = set; then
2236     case $ac_new_val in
2237     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2238     *) ac_arg=$ac_var=$ac_new_val ;;
2239     esac
2240     case " $ac_configure_args " in
2241       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2242       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2243     esac
2244   fi
2245 done
2246 if $ac_cache_corrupted; then
2247   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2249   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2250 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2251   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2252 fi
2253 ## -------------------- ##
2254 ## Main body of script. ##
2255 ## -------------------- ##
2256
2257 ac_ext=c
2258 ac_cpp='$CPP $CPPFLAGS'
2259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2262
2263
2264
2265 # Remove this when we can depend on autoconf >= 2.64
2266 PACKAGE_URL=http://www.project-moonshot.org/
2267
2268
2269 ac_config_headers="$ac_config_headers config.h"
2270
2271
2272
2273 ac_aux_dir=
2274 for ac_dir in build-aux "$srcdir"/build-aux; do
2275   if test -f "$ac_dir/install-sh"; then
2276     ac_aux_dir=$ac_dir
2277     ac_install_sh="$ac_aux_dir/install-sh -c"
2278     break
2279   elif test -f "$ac_dir/install.sh"; then
2280     ac_aux_dir=$ac_dir
2281     ac_install_sh="$ac_aux_dir/install.sh -c"
2282     break
2283   elif test -f "$ac_dir/shtool"; then
2284     ac_aux_dir=$ac_dir
2285     ac_install_sh="$ac_aux_dir/shtool install -c"
2286     break
2287   fi
2288 done
2289 if test -z "$ac_aux_dir"; then
2290   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2291 fi
2292
2293 # These three variables are undocumented and unsupported,
2294 # and are intended to be withdrawn in a future Autoconf release.
2295 # They can cause serious problems if a builder's source tree is in a directory
2296 # whose full name contains unusual characters.
2297 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2298 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2299 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2300
2301
2302
2303 am__api_version='1.11'
2304
2305 # Find a good install program.  We prefer a C program (faster),
2306 # so one script is as good as another.  But avoid the broken or
2307 # incompatible versions:
2308 # SysV /etc/install, /usr/sbin/install
2309 # SunOS /usr/etc/install
2310 # IRIX /sbin/install
2311 # AIX /bin/install
2312 # AmigaOS /C/install, which installs bootblocks on floppy discs
2313 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2314 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2315 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2316 # OS/2's system install, which has a completely different semantic
2317 # ./install, which can be erroneously created by make from ./install.sh.
2318 # Reject install programs that cannot install multiple files.
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2320 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2321 if test -z "$INSTALL"; then
2322 if ${ac_cv_path_install+:} false; then :
2323   $as_echo_n "(cached) " >&6
2324 else
2325   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326 for as_dir in $PATH
2327 do
2328   IFS=$as_save_IFS
2329   test -z "$as_dir" && as_dir=.
2330     # Account for people who put trailing slashes in PATH elements.
2331 case $as_dir/ in #((
2332   ./ | .// | /[cC]/* | \
2333   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2334   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2335   /usr/ucb/* ) ;;
2336   *)
2337     # OSF1 and SCO ODT 3.0 have their own names for install.
2338     # Don't use installbsd from OSF since it installs stuff as root
2339     # by default.
2340     for ac_prog in ginstall scoinst install; do
2341       for ac_exec_ext in '' $ac_executable_extensions; do
2342         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2343           if test $ac_prog = install &&
2344             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2345             # AIX install.  It has an incompatible calling convention.
2346             :
2347           elif test $ac_prog = install &&
2348             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2349             # program-specific install script used by HP pwplus--don't use.
2350             :
2351           else
2352             rm -rf conftest.one conftest.two conftest.dir
2353             echo one > conftest.one
2354             echo two > conftest.two
2355             mkdir conftest.dir
2356             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2357               test -s conftest.one && test -s conftest.two &&
2358               test -s conftest.dir/conftest.one &&
2359               test -s conftest.dir/conftest.two
2360             then
2361               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2362               break 3
2363             fi
2364           fi
2365         fi
2366       done
2367     done
2368     ;;
2369 esac
2370
2371   done
2372 IFS=$as_save_IFS
2373
2374 rm -rf conftest.one conftest.two conftest.dir
2375
2376 fi
2377   if test "${ac_cv_path_install+set}" = set; then
2378     INSTALL=$ac_cv_path_install
2379   else
2380     # As a last resort, use the slow shell script.  Don't cache a
2381     # value for INSTALL within a source directory, because that will
2382     # break other packages using the cache if that directory is
2383     # removed, or if the value is a relative name.
2384     INSTALL=$ac_install_sh
2385   fi
2386 fi
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2388 $as_echo "$INSTALL" >&6; }
2389
2390 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2391 # It thinks the first close brace ends the variable substitution.
2392 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2393
2394 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2395
2396 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2397
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2399 $as_echo_n "checking whether build environment is sane... " >&6; }
2400 # Just in case
2401 sleep 1
2402 echo timestamp > conftest.file
2403 # Reject unsafe characters in $srcdir or the absolute working directory
2404 # name.  Accept space and tab only in the latter.
2405 am_lf='
2406 '
2407 case `pwd` in
2408   *[\\\"\#\$\&\'\`$am_lf]*)
2409     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2410 esac
2411 case $srcdir in
2412   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2413     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2414 esac
2415
2416 # Do `set' in a subshell so we don't clobber the current shell's
2417 # arguments.  Must try -L first in case configure is actually a
2418 # symlink; some systems play weird games with the mod time of symlinks
2419 # (eg FreeBSD returns the mod time of the symlink's containing
2420 # directory).
2421 if (
2422    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2423    if test "$*" = "X"; then
2424       # -L didn't work.
2425       set X `ls -t "$srcdir/configure" conftest.file`
2426    fi
2427    rm -f conftest.file
2428    if test "$*" != "X $srcdir/configure conftest.file" \
2429       && test "$*" != "X conftest.file $srcdir/configure"; then
2430
2431       # If neither matched, then we have a broken ls.  This can happen
2432       # if, for instance, CONFIG_SHELL is bash and it inherits a
2433       # broken ls alias from the environment.  This has actually
2434       # happened.  Such a system could not be considered "sane".
2435       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2436 alias in your environment" "$LINENO" 5
2437    fi
2438
2439    test "$2" = conftest.file
2440    )
2441 then
2442    # Ok.
2443    :
2444 else
2445    as_fn_error $? "newly created file is older than distributed files!
2446 Check your system clock" "$LINENO" 5
2447 fi
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2449 $as_echo "yes" >&6; }
2450 test "$program_prefix" != NONE &&
2451   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2452 # Use a double $ so make ignores it.
2453 test "$program_suffix" != NONE &&
2454   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2455 # Double any \ or $.
2456 # By default was `s,x,x', remove it if useless.
2457 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2458 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2459
2460 # expand $ac_aux_dir to an absolute path
2461 am_aux_dir=`cd $ac_aux_dir && pwd`
2462
2463 if test x"${MISSING+set}" != xset; then
2464   case $am_aux_dir in
2465   *\ * | *\     *)
2466     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2467   *)
2468     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2469   esac
2470 fi
2471 # Use eval to expand $SHELL
2472 if eval "$MISSING --run true"; then
2473   am_missing_run="$MISSING --run "
2474 else
2475   am_missing_run=
2476   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2477 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2478 fi
2479
2480 if test x"${install_sh}" != xset; then
2481   case $am_aux_dir in
2482   *\ * | *\     *)
2483     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2484   *)
2485     install_sh="\${SHELL} $am_aux_dir/install-sh"
2486   esac
2487 fi
2488
2489 # Installed binaries are usually stripped using `strip' when the user
2490 # run `make install-strip'.  However `strip' might not be the right
2491 # tool to use in cross-compilation environments, therefore Automake
2492 # will honor the `STRIP' environment variable to overrule this program.
2493 if test "$cross_compiling" != no; then
2494   if test -n "$ac_tool_prefix"; then
2495   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2496 set dummy ${ac_tool_prefix}strip; ac_word=$2
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2498 $as_echo_n "checking for $ac_word... " >&6; }
2499 if ${ac_cv_prog_STRIP+:} false; then :
2500   $as_echo_n "(cached) " >&6
2501 else
2502   if test -n "$STRIP"; then
2503   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2504 else
2505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506 for as_dir in $PATH
2507 do
2508   IFS=$as_save_IFS
2509   test -z "$as_dir" && as_dir=.
2510     for ac_exec_ext in '' $ac_executable_extensions; do
2511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2512     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2514     break 2
2515   fi
2516 done
2517   done
2518 IFS=$as_save_IFS
2519
2520 fi
2521 fi
2522 STRIP=$ac_cv_prog_STRIP
2523 if test -n "$STRIP"; then
2524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2525 $as_echo "$STRIP" >&6; }
2526 else
2527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2528 $as_echo "no" >&6; }
2529 fi
2530
2531
2532 fi
2533 if test -z "$ac_cv_prog_STRIP"; then
2534   ac_ct_STRIP=$STRIP
2535   # Extract the first word of "strip", so it can be a program name with args.
2536 set dummy strip; ac_word=$2
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2538 $as_echo_n "checking for $ac_word... " >&6; }
2539 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2540   $as_echo_n "(cached) " >&6
2541 else
2542   if test -n "$ac_ct_STRIP"; then
2543   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2544 else
2545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 for as_dir in $PATH
2547 do
2548   IFS=$as_save_IFS
2549   test -z "$as_dir" && as_dir=.
2550     for ac_exec_ext in '' $ac_executable_extensions; do
2551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2552     ac_cv_prog_ac_ct_STRIP="strip"
2553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2554     break 2
2555   fi
2556 done
2557   done
2558 IFS=$as_save_IFS
2559
2560 fi
2561 fi
2562 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2563 if test -n "$ac_ct_STRIP"; then
2564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2565 $as_echo "$ac_ct_STRIP" >&6; }
2566 else
2567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2568 $as_echo "no" >&6; }
2569 fi
2570
2571   if test "x$ac_ct_STRIP" = x; then
2572     STRIP=":"
2573   else
2574     case $cross_compiling:$ac_tool_warned in
2575 yes:)
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2578 ac_tool_warned=yes ;;
2579 esac
2580     STRIP=$ac_ct_STRIP
2581   fi
2582 else
2583   STRIP="$ac_cv_prog_STRIP"
2584 fi
2585
2586 fi
2587 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2588
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2590 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2591 if test -z "$MKDIR_P"; then
2592   if ${ac_cv_path_mkdir+:} false; then :
2593   $as_echo_n "(cached) " >&6
2594 else
2595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2597 do
2598   IFS=$as_save_IFS
2599   test -z "$as_dir" && as_dir=.
2600     for ac_prog in mkdir gmkdir; do
2601          for ac_exec_ext in '' $ac_executable_extensions; do
2602            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2603            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2604              'mkdir (GNU coreutils) '* | \
2605              'mkdir (coreutils) '* | \
2606              'mkdir (fileutils) '4.1*)
2607                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2608                break 3;;
2609            esac
2610          done
2611        done
2612   done
2613 IFS=$as_save_IFS
2614
2615 fi
2616
2617   test -d ./--version && rmdir ./--version
2618   if test "${ac_cv_path_mkdir+set}" = set; then
2619     MKDIR_P="$ac_cv_path_mkdir -p"
2620   else
2621     # As a last resort, use the slow shell script.  Don't cache a
2622     # value for MKDIR_P within a source directory, because that will
2623     # break other packages using the cache if that directory is
2624     # removed, or if the value is a relative name.
2625     MKDIR_P="$ac_install_sh -d"
2626   fi
2627 fi
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2629 $as_echo "$MKDIR_P" >&6; }
2630
2631 mkdir_p="$MKDIR_P"
2632 case $mkdir_p in
2633   [\\/$]* | ?:[\\/]*) ;;
2634   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2635 esac
2636
2637 for ac_prog in gawk mawk nawk awk
2638 do
2639   # Extract the first word of "$ac_prog", so it can be a program name with args.
2640 set dummy $ac_prog; ac_word=$2
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2642 $as_echo_n "checking for $ac_word... " >&6; }
2643 if ${ac_cv_prog_AWK+:} false; then :
2644   $as_echo_n "(cached) " >&6
2645 else
2646   if test -n "$AWK"; then
2647   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2648 else
2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 for as_dir in $PATH
2651 do
2652   IFS=$as_save_IFS
2653   test -z "$as_dir" && as_dir=.
2654     for ac_exec_ext in '' $ac_executable_extensions; do
2655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2656     ac_cv_prog_AWK="$ac_prog"
2657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2658     break 2
2659   fi
2660 done
2661   done
2662 IFS=$as_save_IFS
2663
2664 fi
2665 fi
2666 AWK=$ac_cv_prog_AWK
2667 if test -n "$AWK"; then
2668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2669 $as_echo "$AWK" >&6; }
2670 else
2671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2672 $as_echo "no" >&6; }
2673 fi
2674
2675
2676   test -n "$AWK" && break
2677 done
2678
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2680 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2681 set x ${MAKE-make}
2682 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2683 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2684   $as_echo_n "(cached) " >&6
2685 else
2686   cat >conftest.make <<\_ACEOF
2687 SHELL = /bin/sh
2688 all:
2689         @echo '@@@%%%=$(MAKE)=@@@%%%'
2690 _ACEOF
2691 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2692 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2693   *@@@%%%=?*=@@@%%%*)
2694     eval ac_cv_prog_make_${ac_make}_set=yes;;
2695   *)
2696     eval ac_cv_prog_make_${ac_make}_set=no;;
2697 esac
2698 rm -f conftest.make
2699 fi
2700 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2702 $as_echo "yes" >&6; }
2703   SET_MAKE=
2704 else
2705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2706 $as_echo "no" >&6; }
2707   SET_MAKE="MAKE=${MAKE-make}"
2708 fi
2709
2710 rm -rf .tst 2>/dev/null
2711 mkdir .tst 2>/dev/null
2712 if test -d .tst; then
2713   am__leading_dot=.
2714 else
2715   am__leading_dot=_
2716 fi
2717 rmdir .tst 2>/dev/null
2718
2719 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2720   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2721   # is not polluted with repeated "-I."
2722   am__isrc=' -I$(srcdir)'
2723   # test to see if srcdir already configured
2724   if test -f $srcdir/config.status; then
2725     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2726   fi
2727 fi
2728
2729 # test whether we have cygpath
2730 if test -z "$CYGPATH_W"; then
2731   if (cygpath --version) >/dev/null 2>/dev/null; then
2732     CYGPATH_W='cygpath -w'
2733   else
2734     CYGPATH_W=echo
2735   fi
2736 fi
2737
2738
2739 # Define the identity of the package.
2740  PACKAGE='moonshot-ui'
2741  VERSION='0.1'
2742
2743
2744 cat >>confdefs.h <<_ACEOF
2745 #define PACKAGE "$PACKAGE"
2746 _ACEOF
2747
2748
2749 cat >>confdefs.h <<_ACEOF
2750 #define VERSION "$VERSION"
2751 _ACEOF
2752
2753 # Some tools Automake needs.
2754
2755 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2756
2757
2758 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2759
2760
2761 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2762
2763
2764 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2765
2766
2767 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2768
2769 # We need awk for the "check" target.  The system "awk" is bad on
2770 # some platforms.
2771 # Always define AMTAR for backward compatibility.
2772
2773 AMTAR=${AMTAR-"${am_missing_run}tar"}
2774
2775
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
2777 $as_echo_n "checking how to create a pax tar archive... " >&6; }
2778 # Loop over all known methods to create a tar archive until one works.
2779 _am_tools='gnutar  pax cpio none'
2780 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
2781 # Do not fold the above two line into one, because Tru64 sh and
2782 # Solaris sh will not grok spaces in the rhs of `-'.
2783 for _am_tool in $_am_tools
2784 do
2785   case $_am_tool in
2786   gnutar)
2787     for _am_tar in tar gnutar gtar;
2788     do
2789       { echo "$as_me:$LINENO: $_am_tar --version" >&5
2790    ($_am_tar --version) >&5 2>&5
2791    ac_status=$?
2792    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793    (exit $ac_status); } && break
2794     done
2795     am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
2796     am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
2797     am__untar="$_am_tar -xf -"
2798     ;;
2799   plaintar)
2800     # Must skip GNU tar: if it does not support --format= it doesn't create
2801     # ustar tarball either.
2802     (tar --version) >/dev/null 2>&1 && continue
2803     am__tar='tar chf - "$$tardir"'
2804     am__tar_='tar chf - "$tardir"'
2805     am__untar='tar xf -'
2806     ;;
2807   pax)
2808     am__tar='pax -L -x pax -w "$$tardir"'
2809     am__tar_='pax -L -x pax -w "$tardir"'
2810     am__untar='pax -r'
2811     ;;
2812   cpio)
2813     am__tar='find "$$tardir" -print | cpio -o -H pax -L'
2814     am__tar_='find "$tardir" -print | cpio -o -H pax -L'
2815     am__untar='cpio -i -H pax -d'
2816     ;;
2817   none)
2818     am__tar=false
2819     am__tar_=false
2820     am__untar=false
2821     ;;
2822   esac
2823
2824   # If the value was cached, stop now.  We just wanted to have am__tar
2825   # and am__untar set.
2826   test -n "${am_cv_prog_tar_pax}" && break
2827
2828   # tar/untar a dummy directory, and stop if the command works
2829   rm -rf conftest.dir
2830   mkdir conftest.dir
2831   echo GrepMe > conftest.dir/file
2832   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2833    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2834    ac_status=$?
2835    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836    (exit $ac_status); }
2837   rm -rf conftest.dir
2838   if test -s conftest.tar; then
2839     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2840    ($am__untar <conftest.tar) >&5 2>&5
2841    ac_status=$?
2842    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843    (exit $ac_status); }
2844     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2845   fi
2846 done
2847 rm -rf conftest.dir
2848
2849 if ${am_cv_prog_tar_pax+:} false; then :
2850   $as_echo_n "(cached) " >&6
2851 else
2852   am_cv_prog_tar_pax=$_am_tool
2853 fi
2854
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
2856 $as_echo "$am_cv_prog_tar_pax" >&6; }
2857
2858
2859
2860
2861
2862 # Check whether --enable-silent-rules was given.
2863 if test "${enable_silent_rules+set}" = set; then :
2864   enableval=$enable_silent_rules;
2865 fi
2866
2867 case $enable_silent_rules in
2868 yes) AM_DEFAULT_VERBOSITY=0;;
2869 no)  AM_DEFAULT_VERBOSITY=1;;
2870 *)   AM_DEFAULT_VERBOSITY=0;;
2871 esac
2872 AM_BACKSLASH='\'
2873
2874
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2876 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2877     # Check whether --enable-maintainer-mode was given.
2878 if test "${enable_maintainer_mode+set}" = set; then :
2879   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2880 else
2881   USE_MAINTAINER_MODE=yes
2882 fi
2883
2884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2885 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2886    if test $USE_MAINTAINER_MODE = yes; then
2887   MAINTAINER_MODE_TRUE=
2888   MAINTAINER_MODE_FALSE='#'
2889 else
2890   MAINTAINER_MODE_TRUE='#'
2891   MAINTAINER_MODE_FALSE=
2892 fi
2893
2894   MAINT=$MAINTAINER_MODE_TRUE
2895
2896
2897
2898
2899 case `pwd` in
2900   *\ * | *\     *)
2901     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2902 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2903 esac
2904
2905
2906
2907 macro_version='2.4.2'
2908 macro_revision='1.3337'
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922 ltmain="$ac_aux_dir/ltmain.sh"
2923
2924 # Make sure we can run config.sub.
2925 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2926   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2927
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2929 $as_echo_n "checking build system type... " >&6; }
2930 if ${ac_cv_build+:} false; then :
2931   $as_echo_n "(cached) " >&6
2932 else
2933   ac_build_alias=$build_alias
2934 test "x$ac_build_alias" = x &&
2935   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2936 test "x$ac_build_alias" = x &&
2937   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2938 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2939   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2940
2941 fi
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2943 $as_echo "$ac_cv_build" >&6; }
2944 case $ac_cv_build in
2945 *-*-*) ;;
2946 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2947 esac
2948 build=$ac_cv_build
2949 ac_save_IFS=$IFS; IFS='-'
2950 set x $ac_cv_build
2951 shift
2952 build_cpu=$1
2953 build_vendor=$2
2954 shift; shift
2955 # Remember, the first character of IFS is used to create $*,
2956 # except with old shells:
2957 build_os=$*
2958 IFS=$ac_save_IFS
2959 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2960
2961
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2963 $as_echo_n "checking host system type... " >&6; }
2964 if ${ac_cv_host+:} false; then :
2965   $as_echo_n "(cached) " >&6
2966 else
2967   if test "x$host_alias" = x; then
2968   ac_cv_host=$ac_cv_build
2969 else
2970   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2971     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2972 fi
2973
2974 fi
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2976 $as_echo "$ac_cv_host" >&6; }
2977 case $ac_cv_host in
2978 *-*-*) ;;
2979 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2980 esac
2981 host=$ac_cv_host
2982 ac_save_IFS=$IFS; IFS='-'
2983 set x $ac_cv_host
2984 shift
2985 host_cpu=$1
2986 host_vendor=$2
2987 shift; shift
2988 # Remember, the first character of IFS is used to create $*,
2989 # except with old shells:
2990 host_os=$*
2991 IFS=$ac_save_IFS
2992 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2993
2994
2995 # Backslashify metacharacters that are still active within
2996 # double-quoted strings.
2997 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2998
2999 # Same as above, but do not quote variable references.
3000 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3001
3002 # Sed substitution to delay expansion of an escaped shell variable in a
3003 # double_quote_subst'ed string.
3004 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3005
3006 # Sed substitution to delay expansion of an escaped single quote.
3007 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3008
3009 # Sed substitution to avoid accidental globbing in evaled expressions
3010 no_glob_subst='s/\*/\\\*/g'
3011
3012 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3013 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3014 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3015
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3017 $as_echo_n "checking how to print strings... " >&6; }
3018 # Test print first, because it will be a builtin if present.
3019 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3020    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3021   ECHO='print -r --'
3022 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3023   ECHO='printf %s\n'
3024 else
3025   # Use this function as a fallback that always works.
3026   func_fallback_echo ()
3027   {
3028     eval 'cat <<_LTECHO_EOF
3029 $1
3030 _LTECHO_EOF'
3031   }
3032   ECHO='func_fallback_echo'
3033 fi
3034
3035 # func_echo_all arg...
3036 # Invoke $ECHO with all args, space-separated.
3037 func_echo_all ()
3038 {
3039     $ECHO ""
3040 }
3041
3042 case "$ECHO" in
3043   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3044 $as_echo "printf" >&6; } ;;
3045   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3046 $as_echo "print -r" >&6; } ;;
3047   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3048 $as_echo "cat" >&6; } ;;
3049 esac
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064 DEPDIR="${am__leading_dot}deps"
3065
3066 ac_config_commands="$ac_config_commands depfiles"
3067
3068
3069 am_make=${MAKE-make}
3070 cat > confinc << 'END'
3071 am__doit:
3072         @echo this is the am__doit target
3073 .PHONY: am__doit
3074 END
3075 # If we don't find an include directive, just comment out the code.
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3077 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3078 am__include="#"
3079 am__quote=
3080 _am_result=none
3081 # First try GNU make style include.
3082 echo "include confinc" > confmf
3083 # Ignore all kinds of additional output from `make'.
3084 case `$am_make -s -f confmf 2> /dev/null` in #(
3085 *the\ am__doit\ target*)
3086   am__include=include
3087   am__quote=
3088   _am_result=GNU
3089   ;;
3090 esac
3091 # Now try BSD make style include.
3092 if test "$am__include" = "#"; then
3093    echo '.include "confinc"' > confmf
3094    case `$am_make -s -f confmf 2> /dev/null` in #(
3095    *the\ am__doit\ target*)
3096      am__include=.include
3097      am__quote="\""
3098      _am_result=BSD
3099      ;;
3100    esac
3101 fi
3102
3103
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3105 $as_echo "$_am_result" >&6; }
3106 rm -f confinc confmf
3107
3108 # Check whether --enable-dependency-tracking was given.
3109 if test "${enable_dependency_tracking+set}" = set; then :
3110   enableval=$enable_dependency_tracking;
3111 fi
3112
3113 if test "x$enable_dependency_tracking" != xno; then
3114   am_depcomp="$ac_aux_dir/depcomp"
3115   AMDEPBACKSLASH='\'
3116   am__nodep='_no'
3117 fi
3118  if test "x$enable_dependency_tracking" != xno; then
3119   AMDEP_TRUE=
3120   AMDEP_FALSE='#'
3121 else
3122   AMDEP_TRUE='#'
3123   AMDEP_FALSE=
3124 fi
3125
3126
3127 ac_ext=c
3128 ac_cpp='$CPP $CPPFLAGS'
3129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3132 if test -n "$ac_tool_prefix"; then
3133   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3134 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3136 $as_echo_n "checking for $ac_word... " >&6; }
3137 if ${ac_cv_prog_CC+:} false; then :
3138   $as_echo_n "(cached) " >&6
3139 else
3140   if test -n "$CC"; then
3141   ac_cv_prog_CC="$CC" # Let the user override the test.
3142 else
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 for as_dir in $PATH
3145 do
3146   IFS=$as_save_IFS
3147   test -z "$as_dir" && as_dir=.
3148     for ac_exec_ext in '' $ac_executable_extensions; do
3149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3150     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3151     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3152     break 2
3153   fi
3154 done
3155   done
3156 IFS=$as_save_IFS
3157
3158 fi
3159 fi
3160 CC=$ac_cv_prog_CC
3161 if test -n "$CC"; then
3162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3163 $as_echo "$CC" >&6; }
3164 else
3165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166 $as_echo "no" >&6; }
3167 fi
3168
3169
3170 fi
3171 if test -z "$ac_cv_prog_CC"; then
3172   ac_ct_CC=$CC
3173   # Extract the first word of "gcc", so it can be a program name with args.
3174 set dummy gcc; ac_word=$2
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3176 $as_echo_n "checking for $ac_word... " >&6; }
3177 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3178   $as_echo_n "(cached) " >&6
3179 else
3180   if test -n "$ac_ct_CC"; then
3181   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3182 else
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH
3185 do
3186   IFS=$as_save_IFS
3187   test -z "$as_dir" && as_dir=.
3188     for ac_exec_ext in '' $ac_executable_extensions; do
3189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3190     ac_cv_prog_ac_ct_CC="gcc"
3191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3192     break 2
3193   fi
3194 done
3195   done
3196 IFS=$as_save_IFS
3197
3198 fi
3199 fi
3200 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3201 if test -n "$ac_ct_CC"; then
3202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3203 $as_echo "$ac_ct_CC" >&6; }
3204 else
3205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206 $as_echo "no" >&6; }
3207 fi
3208
3209   if test "x$ac_ct_CC" = x; then
3210     CC=""
3211   else
3212     case $cross_compiling:$ac_tool_warned in
3213 yes:)
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3216 ac_tool_warned=yes ;;
3217 esac
3218     CC=$ac_ct_CC
3219   fi
3220 else
3221   CC="$ac_cv_prog_CC"
3222 fi
3223
3224 if test -z "$CC"; then
3225           if test -n "$ac_tool_prefix"; then
3226     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3227 set dummy ${ac_tool_prefix}cc; ac_word=$2
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3229 $as_echo_n "checking for $ac_word... " >&6; }
3230 if ${ac_cv_prog_CC+:} false; then :
3231   $as_echo_n "(cached) " >&6
3232 else
3233   if test -n "$CC"; then
3234   ac_cv_prog_CC="$CC" # Let the user override the test.
3235 else
3236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237 for as_dir in $PATH
3238 do
3239   IFS=$as_save_IFS
3240   test -z "$as_dir" && as_dir=.
3241     for ac_exec_ext in '' $ac_executable_extensions; do
3242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3243     ac_cv_prog_CC="${ac_tool_prefix}cc"
3244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3245     break 2
3246   fi
3247 done
3248   done
3249 IFS=$as_save_IFS
3250
3251 fi
3252 fi
3253 CC=$ac_cv_prog_CC
3254 if test -n "$CC"; then
3255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3256 $as_echo "$CC" >&6; }
3257 else
3258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259 $as_echo "no" >&6; }
3260 fi
3261
3262
3263   fi
3264 fi
3265 if test -z "$CC"; then
3266   # Extract the first word of "cc", so it can be a program name with args.
3267 set dummy cc; ac_word=$2
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269 $as_echo_n "checking for $ac_word... " >&6; }
3270 if ${ac_cv_prog_CC+:} false; then :
3271   $as_echo_n "(cached) " >&6
3272 else
3273   if test -n "$CC"; then
3274   ac_cv_prog_CC="$CC" # Let the user override the test.
3275 else
3276   ac_prog_rejected=no
3277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278 for as_dir in $PATH
3279 do
3280   IFS=$as_save_IFS
3281   test -z "$as_dir" && as_dir=.
3282     for ac_exec_ext in '' $ac_executable_extensions; do
3283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3284     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3285        ac_prog_rejected=yes
3286        continue
3287      fi
3288     ac_cv_prog_CC="cc"
3289     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3290     break 2
3291   fi
3292 done
3293   done
3294 IFS=$as_save_IFS
3295
3296 if test $ac_prog_rejected = yes; then
3297   # We found a bogon in the path, so make sure we never use it.
3298   set dummy $ac_cv_prog_CC
3299   shift
3300   if test $# != 0; then
3301     # We chose a different compiler from the bogus one.
3302     # However, it has the same basename, so the bogon will be chosen
3303     # first if we set CC to just the basename; use the full file name.
3304     shift
3305     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3306   fi
3307 fi
3308 fi
3309 fi
3310 CC=$ac_cv_prog_CC
3311 if test -n "$CC"; then
3312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3313 $as_echo "$CC" >&6; }
3314 else
3315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3316 $as_echo "no" >&6; }
3317 fi
3318
3319
3320 fi
3321 if test -z "$CC"; then
3322   if test -n "$ac_tool_prefix"; then
3323   for ac_prog in cl.exe
3324   do
3325     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3326 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3328 $as_echo_n "checking for $ac_word... " >&6; }
3329 if ${ac_cv_prog_CC+:} false; then :
3330   $as_echo_n "(cached) " >&6
3331 else
3332   if test -n "$CC"; then
3333   ac_cv_prog_CC="$CC" # Let the user override the test.
3334 else
3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336 for as_dir in $PATH
3337 do
3338   IFS=$as_save_IFS
3339   test -z "$as_dir" && as_dir=.
3340     for ac_exec_ext in '' $ac_executable_extensions; do
3341   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3342     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3344     break 2
3345   fi
3346 done
3347   done
3348 IFS=$as_save_IFS
3349
3350 fi
3351 fi
3352 CC=$ac_cv_prog_CC
3353 if test -n "$CC"; then
3354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3355 $as_echo "$CC" >&6; }
3356 else
3357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3358 $as_echo "no" >&6; }
3359 fi
3360
3361
3362     test -n "$CC" && break
3363   done
3364 fi
3365 if test -z "$CC"; then
3366   ac_ct_CC=$CC
3367   for ac_prog in cl.exe
3368 do
3369   # Extract the first word of "$ac_prog", so it can be a program name with args.
3370 set dummy $ac_prog; ac_word=$2
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3372 $as_echo_n "checking for $ac_word... " >&6; }
3373 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3374   $as_echo_n "(cached) " >&6
3375 else
3376   if test -n "$ac_ct_CC"; then
3377   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3378 else
3379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380 for as_dir in $PATH
3381 do
3382   IFS=$as_save_IFS
3383   test -z "$as_dir" && as_dir=.
3384     for ac_exec_ext in '' $ac_executable_extensions; do
3385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3386     ac_cv_prog_ac_ct_CC="$ac_prog"
3387     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3388     break 2
3389   fi
3390 done
3391   done
3392 IFS=$as_save_IFS
3393
3394 fi
3395 fi
3396 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3397 if test -n "$ac_ct_CC"; then
3398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3399 $as_echo "$ac_ct_CC" >&6; }
3400 else
3401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3402 $as_echo "no" >&6; }
3403 fi
3404
3405
3406   test -n "$ac_ct_CC" && break
3407 done
3408
3409   if test "x$ac_ct_CC" = x; then
3410     CC=""
3411   else
3412     case $cross_compiling:$ac_tool_warned in
3413 yes:)
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3416 ac_tool_warned=yes ;;
3417 esac
3418     CC=$ac_ct_CC
3419   fi
3420 fi
3421
3422 fi
3423
3424
3425 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3427 as_fn_error $? "no acceptable C compiler found in \$PATH
3428 See \`config.log' for more details" "$LINENO" 5; }
3429
3430 # Provide some information about the compiler.
3431 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3432 set X $ac_compile
3433 ac_compiler=$2
3434 for ac_option in --version -v -V -qversion; do
3435   { { ac_try="$ac_compiler $ac_option >&5"
3436 case "(($ac_try" in
3437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438   *) ac_try_echo=$ac_try;;
3439 esac
3440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3441 $as_echo "$ac_try_echo"; } >&5
3442   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3443   ac_status=$?
3444   if test -s conftest.err; then
3445     sed '10a\
3446 ... rest of stderr output deleted ...
3447          10q' conftest.err >conftest.er1
3448     cat conftest.er1 >&5
3449   fi
3450   rm -f conftest.er1 conftest.err
3451   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3452   test $ac_status = 0; }
3453 done
3454
3455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3456 /* end confdefs.h.  */
3457
3458 int
3459 main ()
3460 {
3461
3462   ;
3463   return 0;
3464 }
3465 _ACEOF
3466 ac_clean_files_save=$ac_clean_files
3467 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3468 # Try to create an executable without -o first, disregard a.out.
3469 # It will help us diagnose broken compilers, and finding out an intuition
3470 # of exeext.
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3472 $as_echo_n "checking whether the C compiler works... " >&6; }
3473 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3474
3475 # The possible output files:
3476 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3477
3478 ac_rmfiles=
3479 for ac_file in $ac_files
3480 do
3481   case $ac_file in
3482     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3483     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3484   esac
3485 done
3486 rm -f $ac_rmfiles
3487
3488 if { { ac_try="$ac_link_default"
3489 case "(($ac_try" in
3490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491   *) ac_try_echo=$ac_try;;
3492 esac
3493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3494 $as_echo "$ac_try_echo"; } >&5
3495   (eval "$ac_link_default") 2>&5
3496   ac_status=$?
3497   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3498   test $ac_status = 0; }; then :
3499   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3500 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3501 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3502 # so that the user can short-circuit this test for compilers unknown to
3503 # Autoconf.
3504 for ac_file in $ac_files ''
3505 do
3506   test -f "$ac_file" || continue
3507   case $ac_file in
3508     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3509         ;;
3510     [ab].out )
3511         # We found the default executable, but exeext='' is most
3512         # certainly right.
3513         break;;
3514     *.* )
3515         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3516         then :; else
3517            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3518         fi
3519         # We set ac_cv_exeext here because the later test for it is not
3520         # safe: cross compilers may not add the suffix if given an `-o'
3521         # argument, so we may need to know it at that point already.
3522         # Even if this section looks crufty: it has the advantage of
3523         # actually working.
3524         break;;
3525     * )
3526         break;;
3527   esac
3528 done
3529 test "$ac_cv_exeext" = no && ac_cv_exeext=
3530
3531 else
3532   ac_file=''
3533 fi
3534 if test -z "$ac_file"; then :
3535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3536 $as_echo "no" >&6; }
3537 $as_echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3539
3540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3542 as_fn_error 77 "C compiler cannot create executables
3543 See \`config.log' for more details" "$LINENO" 5; }
3544 else
3545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3546 $as_echo "yes" >&6; }
3547 fi
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3549 $as_echo_n "checking for C compiler default output file name... " >&6; }
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3551 $as_echo "$ac_file" >&6; }
3552 ac_exeext=$ac_cv_exeext
3553
3554 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3555 ac_clean_files=$ac_clean_files_save
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3557 $as_echo_n "checking for suffix of executables... " >&6; }
3558 if { { ac_try="$ac_link"
3559 case "(($ac_try" in
3560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561   *) ac_try_echo=$ac_try;;
3562 esac
3563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3564 $as_echo "$ac_try_echo"; } >&5
3565   (eval "$ac_link") 2>&5
3566   ac_status=$?
3567   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3568   test $ac_status = 0; }; then :
3569   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3570 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3571 # work properly (i.e., refer to `conftest.exe'), while it won't with
3572 # `rm'.
3573 for ac_file in conftest.exe conftest conftest.*; do
3574   test -f "$ac_file" || continue
3575   case $ac_file in
3576     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3577     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3578           break;;
3579     * ) break;;
3580   esac
3581 done
3582 else
3583   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3585 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3586 See \`config.log' for more details" "$LINENO" 5; }
3587 fi
3588 rm -f conftest conftest$ac_cv_exeext
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3590 $as_echo "$ac_cv_exeext" >&6; }
3591
3592 rm -f conftest.$ac_ext
3593 EXEEXT=$ac_cv_exeext
3594 ac_exeext=$EXEEXT
3595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3596 /* end confdefs.h.  */
3597 #include <stdio.h>
3598 int
3599 main ()
3600 {
3601 FILE *f = fopen ("conftest.out", "w");
3602  return ferror (f) || fclose (f) != 0;
3603
3604   ;
3605   return 0;
3606 }
3607 _ACEOF
3608 ac_clean_files="$ac_clean_files conftest.out"
3609 # Check that the compiler produces executables we can run.  If not, either
3610 # the compiler is broken, or we cross compile.
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3612 $as_echo_n "checking whether we are cross compiling... " >&6; }
3613 if test "$cross_compiling" != yes; then
3614   { { ac_try="$ac_link"
3615 case "(($ac_try" in
3616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617   *) ac_try_echo=$ac_try;;
3618 esac
3619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3620 $as_echo "$ac_try_echo"; } >&5
3621   (eval "$ac_link") 2>&5
3622   ac_status=$?
3623   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3624   test $ac_status = 0; }
3625   if { ac_try='./conftest$ac_cv_exeext'
3626   { { case "(($ac_try" in
3627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628   *) ac_try_echo=$ac_try;;
3629 esac
3630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3631 $as_echo "$ac_try_echo"; } >&5
3632   (eval "$ac_try") 2>&5
3633   ac_status=$?
3634   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3635   test $ac_status = 0; }; }; then
3636     cross_compiling=no
3637   else
3638     if test "$cross_compiling" = maybe; then
3639         cross_compiling=yes
3640     else
3641         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3643 as_fn_error $? "cannot run C compiled programs.
3644 If you meant to cross compile, use \`--host'.
3645 See \`config.log' for more details" "$LINENO" 5; }
3646     fi
3647   fi
3648 fi
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3650 $as_echo "$cross_compiling" >&6; }
3651
3652 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3653 ac_clean_files=$ac_clean_files_save
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3655 $as_echo_n "checking for suffix of object files... " >&6; }
3656 if ${ac_cv_objext+:} false; then :
3657   $as_echo_n "(cached) " >&6
3658 else
3659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660 /* end confdefs.h.  */
3661
3662 int
3663 main ()
3664 {
3665
3666   ;
3667   return 0;
3668 }
3669 _ACEOF
3670 rm -f conftest.o conftest.obj
3671 if { { ac_try="$ac_compile"
3672 case "(($ac_try" in
3673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674   *) ac_try_echo=$ac_try;;
3675 esac
3676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3677 $as_echo "$ac_try_echo"; } >&5
3678   (eval "$ac_compile") 2>&5
3679   ac_status=$?
3680   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3681   test $ac_status = 0; }; then :
3682   for ac_file in conftest.o conftest.obj conftest.*; do
3683   test -f "$ac_file" || continue;
3684   case $ac_file in
3685     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3686     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3687        break;;
3688   esac
3689 done
3690 else
3691   $as_echo "$as_me: failed program was:" >&5
3692 sed 's/^/| /' conftest.$ac_ext >&5
3693
3694 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3695 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3696 as_fn_error $? "cannot compute suffix of object files: cannot compile
3697 See \`config.log' for more details" "$LINENO" 5; }
3698 fi
3699 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3700 fi
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3702 $as_echo "$ac_cv_objext" >&6; }
3703 OBJEXT=$ac_cv_objext
3704 ac_objext=$OBJEXT
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3706 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3707 if ${ac_cv_c_compiler_gnu+:} false; then :
3708   $as_echo_n "(cached) " >&6
3709 else
3710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h.  */
3712
3713 int
3714 main ()
3715 {
3716 #ifndef __GNUC__
3717        choke me
3718 #endif
3719
3720   ;
3721   return 0;
3722 }
3723 _ACEOF
3724 if ac_fn_c_try_compile "$LINENO"; then :
3725   ac_compiler_gnu=yes
3726 else
3727   ac_compiler_gnu=no
3728 fi
3729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3730 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3731
3732 fi
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3734 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3735 if test $ac_compiler_gnu = yes; then
3736   GCC=yes
3737 else
3738   GCC=
3739 fi
3740 ac_test_CFLAGS=${CFLAGS+set}
3741 ac_save_CFLAGS=$CFLAGS
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3743 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3744 if ${ac_cv_prog_cc_g+:} false; then :
3745   $as_echo_n "(cached) " >&6
3746 else
3747   ac_save_c_werror_flag=$ac_c_werror_flag
3748    ac_c_werror_flag=yes
3749    ac_cv_prog_cc_g=no
3750    CFLAGS="-g"
3751    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3752 /* end confdefs.h.  */
3753
3754 int
3755 main ()
3756 {
3757
3758   ;
3759   return 0;
3760 }
3761 _ACEOF
3762 if ac_fn_c_try_compile "$LINENO"; then :
3763   ac_cv_prog_cc_g=yes
3764 else
3765   CFLAGS=""
3766       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h.  */
3768
3769 int
3770 main ()
3771 {
3772
3773   ;
3774   return 0;
3775 }
3776 _ACEOF
3777 if ac_fn_c_try_compile "$LINENO"; then :
3778
3779 else
3780   ac_c_werror_flag=$ac_save_c_werror_flag
3781          CFLAGS="-g"
3782          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783 /* end confdefs.h.  */
3784
3785 int
3786 main ()
3787 {
3788
3789   ;
3790   return 0;
3791 }
3792 _ACEOF
3793 if ac_fn_c_try_compile "$LINENO"; then :
3794   ac_cv_prog_cc_g=yes
3795 fi
3796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3797 fi
3798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3799 fi
3800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3801    ac_c_werror_flag=$ac_save_c_werror_flag
3802 fi
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3804 $as_echo "$ac_cv_prog_cc_g" >&6; }
3805 if test "$ac_test_CFLAGS" = set; then
3806   CFLAGS=$ac_save_CFLAGS
3807 elif test $ac_cv_prog_cc_g = yes; then
3808   if test "$GCC" = yes; then
3809     CFLAGS="-g -O2"
3810   else
3811     CFLAGS="-g"
3812   fi
3813 else
3814   if test "$GCC" = yes; then
3815     CFLAGS="-O2"
3816   else
3817     CFLAGS=
3818   fi
3819 fi
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3821 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3822 if ${ac_cv_prog_cc_c89+:} false; then :
3823   $as_echo_n "(cached) " >&6
3824 else
3825   ac_cv_prog_cc_c89=no
3826 ac_save_CC=$CC
3827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3828 /* end confdefs.h.  */
3829 #include <stdarg.h>
3830 #include <stdio.h>
3831 #include <sys/types.h>
3832 #include <sys/stat.h>
3833 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3834 struct buf { int x; };
3835 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3836 static char *e (p, i)
3837      char **p;
3838      int i;
3839 {
3840   return p[i];
3841 }
3842 static char *f (char * (*g) (char **, int), char **p, ...)
3843 {
3844   char *s;
3845   va_list v;
3846   va_start (v,p);
3847   s = g (p, va_arg (v,int));
3848   va_end (v);
3849   return s;
3850 }
3851
3852 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3853    function prototypes and stuff, but not '\xHH' hex character constants.
3854    These don't provoke an error unfortunately, instead are silently treated
3855    as 'x'.  The following induces an error, until -std is added to get
3856    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3857    array size at least.  It's necessary to write '\x00'==0 to get something
3858    that's true only with -std.  */
3859 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3860
3861 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3862    inside strings and character constants.  */
3863 #define FOO(x) 'x'
3864 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3865
3866 int test (int i, double x);
3867 struct s1 {int (*f) (int a);};
3868 struct s2 {int (*f) (double a);};
3869 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3870 int argc;
3871 char **argv;
3872 int
3873 main ()
3874 {
3875 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3876   ;
3877   return 0;
3878 }
3879 _ACEOF
3880 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3881         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3882 do
3883   CC="$ac_save_CC $ac_arg"
3884   if ac_fn_c_try_compile "$LINENO"; then :
3885   ac_cv_prog_cc_c89=$ac_arg
3886 fi
3887 rm -f core conftest.err conftest.$ac_objext
3888   test "x$ac_cv_prog_cc_c89" != "xno" && break
3889 done
3890 rm -f conftest.$ac_ext
3891 CC=$ac_save_CC
3892
3893 fi
3894 # AC_CACHE_VAL
3895 case "x$ac_cv_prog_cc_c89" in
3896   x)
3897     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3898 $as_echo "none needed" >&6; } ;;
3899   xno)
3900     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3901 $as_echo "unsupported" >&6; } ;;
3902   *)
3903     CC="$CC $ac_cv_prog_cc_c89"
3904     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3905 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3906 esac
3907 if test "x$ac_cv_prog_cc_c89" != xno; then :
3908
3909 fi
3910
3911 ac_ext=c
3912 ac_cpp='$CPP $CPPFLAGS'
3913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3916
3917 depcc="$CC"   am_compiler_list=
3918
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3920 $as_echo_n "checking dependency style of $depcc... " >&6; }
3921 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3922   $as_echo_n "(cached) " >&6
3923 else
3924   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3925   # We make a subdir and do the tests there.  Otherwise we can end up
3926   # making bogus files that we don't know about and never remove.  For
3927   # instance it was reported that on HP-UX the gcc test will end up
3928   # making a dummy file named `D' -- because `-MD' means `put the output
3929   # in D'.
3930   rm -rf conftest.dir
3931   mkdir conftest.dir
3932   # Copy depcomp to subdir because otherwise we won't find it if we're
3933   # using a relative directory.
3934   cp "$am_depcomp" conftest.dir
3935   cd conftest.dir
3936   # We will build objects and dependencies in a subdirectory because
3937   # it helps to detect inapplicable dependency modes.  For instance
3938   # both Tru64's cc and ICC support -MD to output dependencies as a
3939   # side effect of compilation, but ICC will put the dependencies in
3940   # the current directory while Tru64 will put them in the object
3941   # directory.
3942   mkdir sub
3943
3944   am_cv_CC_dependencies_compiler_type=none
3945   if test "$am_compiler_list" = ""; then
3946      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3947   fi
3948   am__universal=false
3949   case " $depcc " in #(
3950      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3951      esac
3952
3953   for depmode in $am_compiler_list; do
3954     # Setup a source with many dependencies, because some compilers
3955     # like to wrap large dependency lists on column 80 (with \), and
3956     # we should not choose a depcomp mode which is confused by this.
3957     #
3958     # We need to recreate these files for each test, as the compiler may
3959     # overwrite some of them when testing with obscure command lines.
3960     # This happens at least with the AIX C compiler.
3961     : > sub/conftest.c
3962     for i in 1 2 3 4 5 6; do
3963       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3964       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3965       # Solaris 8's {/usr,}/bin/sh.
3966       touch sub/conftst$i.h
3967     done
3968     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3969
3970     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3971     # mode.  It turns out that the SunPro C++ compiler does not properly
3972     # handle `-M -o', and we need to detect this.  Also, some Intel
3973     # versions had trouble with output in subdirs
3974     am__obj=sub/conftest.${OBJEXT-o}
3975     am__minus_obj="-o $am__obj"
3976     case $depmode in
3977     gcc)
3978       # This depmode causes a compiler race in universal mode.
3979       test "$am__universal" = false || continue
3980       ;;
3981     nosideeffect)
3982       # after this tag, mechanisms are not by side-effect, so they'll
3983       # only be used when explicitly requested
3984       if test "x$enable_dependency_tracking" = xyes; then
3985         continue
3986       else
3987         break
3988       fi
3989       ;;
3990     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3991       # This compiler won't grok `-c -o', but also, the minuso test has
3992       # not run yet.  These depmodes are late enough in the game, and
3993       # so weak that their functioning should not be impacted.
3994       am__obj=conftest.${OBJEXT-o}
3995       am__minus_obj=
3996       ;;
3997     none) break ;;
3998     esac
3999     if depmode=$depmode \
4000        source=sub/conftest.c object=$am__obj \
4001        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4002        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4003          >/dev/null 2>conftest.err &&
4004        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4005        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4006        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4007        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4008       # icc doesn't choke on unknown options, it will just issue warnings
4009       # or remarks (even with -Werror).  So we grep stderr for any message
4010       # that says an option was ignored or not supported.
4011       # When given -MP, icc 7.0 and 7.1 complain thusly:
4012       #   icc: Command line warning: ignoring option '-M'; no argument required
4013       # The diagnosis changed in icc 8.0:
4014       #   icc: Command line remark: option '-MP' not supported
4015       if (grep 'ignoring option' conftest.err ||
4016           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4017         am_cv_CC_dependencies_compiler_type=$depmode
4018         break
4019       fi
4020     fi
4021   done
4022
4023   cd ..
4024   rm -rf conftest.dir
4025 else
4026   am_cv_CC_dependencies_compiler_type=none
4027 fi
4028
4029 fi
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4031 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4032 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4033
4034  if
4035   test "x$enable_dependency_tracking" != xno \
4036   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4037   am__fastdepCC_TRUE=
4038   am__fastdepCC_FALSE='#'
4039 else
4040   am__fastdepCC_TRUE='#'
4041   am__fastdepCC_FALSE=
4042 fi
4043
4044
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4046 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4047 if ${ac_cv_path_SED+:} false; then :
4048   $as_echo_n "(cached) " >&6
4049 else
4050             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4051      for ac_i in 1 2 3 4 5 6 7; do
4052        ac_script="$ac_script$as_nl$ac_script"
4053      done
4054      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4055      { ac_script=; unset ac_script;}
4056      if test -z "$SED"; then
4057   ac_path_SED_found=false
4058   # Loop through the user's path and test for each of PROGNAME-LIST
4059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060 for as_dir in $PATH
4061 do
4062   IFS=$as_save_IFS
4063   test -z "$as_dir" && as_dir=.
4064     for ac_prog in sed gsed; do
4065     for ac_exec_ext in '' $ac_executable_extensions; do
4066       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4067       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4068 # Check for GNU ac_path_SED and select it if it is found.
4069   # Check for GNU $ac_path_SED
4070 case `"$ac_path_SED" --version 2>&1` in
4071 *GNU*)
4072   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4073 *)
4074   ac_count=0
4075   $as_echo_n 0123456789 >"conftest.in"
4076   while :
4077   do
4078     cat "conftest.in" "conftest.in" >"conftest.tmp"
4079     mv "conftest.tmp" "conftest.in"
4080     cp "conftest.in" "conftest.nl"
4081     $as_echo '' >> "conftest.nl"
4082     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4083     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4084     as_fn_arith $ac_count + 1 && ac_count=$as_val
4085     if test $ac_count -gt ${ac_path_SED_max-0}; then
4086       # Best one so far, save it but keep looking for a better one
4087       ac_cv_path_SED="$ac_path_SED"
4088       ac_path_SED_max=$ac_count
4089     fi
4090     # 10*(2^10) chars as input seems more than enough
4091     test $ac_count -gt 10 && break
4092   done
4093   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4094 esac
4095
4096       $ac_path_SED_found && break 3
4097     done
4098   done
4099   done
4100 IFS=$as_save_IFS
4101   if test -z "$ac_cv_path_SED"; then
4102     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4103   fi
4104 else
4105   ac_cv_path_SED=$SED
4106 fi
4107
4108 fi
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4110 $as_echo "$ac_cv_path_SED" >&6; }
4111  SED="$ac_cv_path_SED"
4112   rm -f conftest.sed
4113
4114 test -z "$SED" && SED=sed
4115 Xsed="$SED -e 1s/^X//"
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4128 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4129 if ${ac_cv_path_GREP+:} false; then :
4130   $as_echo_n "(cached) " >&6
4131 else
4132   if test -z "$GREP"; then
4133   ac_path_GREP_found=false
4134   # Loop through the user's path and test for each of PROGNAME-LIST
4135   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4137 do
4138   IFS=$as_save_IFS
4139   test -z "$as_dir" && as_dir=.
4140     for ac_prog in grep ggrep; do
4141     for ac_exec_ext in '' $ac_executable_extensions; do
4142       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4143       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4144 # Check for GNU ac_path_GREP and select it if it is found.
4145   # Check for GNU $ac_path_GREP
4146 case `"$ac_path_GREP" --version 2>&1` in
4147 *GNU*)
4148   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4149 *)
4150   ac_count=0
4151   $as_echo_n 0123456789 >"conftest.in"
4152   while :
4153   do
4154     cat "conftest.in" "conftest.in" >"conftest.tmp"
4155     mv "conftest.tmp" "conftest.in"
4156     cp "conftest.in" "conftest.nl"
4157     $as_echo 'GREP' >> "conftest.nl"
4158     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4159     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4160     as_fn_arith $ac_count + 1 && ac_count=$as_val
4161     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4162       # Best one so far, save it but keep looking for a better one
4163       ac_cv_path_GREP="$ac_path_GREP"
4164       ac_path_GREP_max=$ac_count
4165     fi
4166     # 10*(2^10) chars as input seems more than enough
4167     test $ac_count -gt 10 && break
4168   done
4169   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4170 esac
4171
4172       $ac_path_GREP_found && break 3
4173     done
4174   done
4175   done
4176 IFS=$as_save_IFS
4177   if test -z "$ac_cv_path_GREP"; then
4178     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4179   fi
4180 else
4181   ac_cv_path_GREP=$GREP
4182 fi
4183
4184 fi
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4186 $as_echo "$ac_cv_path_GREP" >&6; }
4187  GREP="$ac_cv_path_GREP"
4188
4189
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4191 $as_echo_n "checking for egrep... " >&6; }
4192 if ${ac_cv_path_EGREP+:} false; then :
4193   $as_echo_n "(cached) " >&6
4194 else
4195   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4196    then ac_cv_path_EGREP="$GREP -E"
4197    else
4198      if test -z "$EGREP"; then
4199   ac_path_EGREP_found=false
4200   # Loop through the user's path and test for each of PROGNAME-LIST
4201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4203 do
4204   IFS=$as_save_IFS
4205   test -z "$as_dir" && as_dir=.
4206     for ac_prog in egrep; do
4207     for ac_exec_ext in '' $ac_executable_extensions; do
4208       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4209       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4210 # Check for GNU ac_path_EGREP and select it if it is found.
4211   # Check for GNU $ac_path_EGREP
4212 case `"$ac_path_EGREP" --version 2>&1` in
4213 *GNU*)
4214   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4215 *)
4216   ac_count=0
4217   $as_echo_n 0123456789 >"conftest.in"
4218   while :
4219   do
4220     cat "conftest.in" "conftest.in" >"conftest.tmp"
4221     mv "conftest.tmp" "conftest.in"
4222     cp "conftest.in" "conftest.nl"
4223     $as_echo 'EGREP' >> "conftest.nl"
4224     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4225     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4226     as_fn_arith $ac_count + 1 && ac_count=$as_val
4227     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4228       # Best one so far, save it but keep looking for a better one
4229       ac_cv_path_EGREP="$ac_path_EGREP"
4230       ac_path_EGREP_max=$ac_count
4231     fi
4232     # 10*(2^10) chars as input seems more than enough
4233     test $ac_count -gt 10 && break
4234   done
4235   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4236 esac
4237
4238       $ac_path_EGREP_found && break 3
4239     done
4240   done
4241   done
4242 IFS=$as_save_IFS
4243   if test -z "$ac_cv_path_EGREP"; then
4244     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4245   fi
4246 else
4247   ac_cv_path_EGREP=$EGREP
4248 fi
4249
4250    fi
4251 fi
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4253 $as_echo "$ac_cv_path_EGREP" >&6; }
4254  EGREP="$ac_cv_path_EGREP"
4255
4256
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4258 $as_echo_n "checking for fgrep... " >&6; }
4259 if ${ac_cv_path_FGREP+:} false; then :
4260   $as_echo_n "(cached) " >&6
4261 else
4262   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4263    then ac_cv_path_FGREP="$GREP -F"
4264    else
4265      if test -z "$FGREP"; then
4266   ac_path_FGREP_found=false
4267   # Loop through the user's path and test for each of PROGNAME-LIST
4268   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4270 do
4271   IFS=$as_save_IFS
4272   test -z "$as_dir" && as_dir=.
4273     for ac_prog in fgrep; do
4274     for ac_exec_ext in '' $ac_executable_extensions; do
4275       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4276       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4277 # Check for GNU ac_path_FGREP and select it if it is found.
4278   # Check for GNU $ac_path_FGREP
4279 case `"$ac_path_FGREP" --version 2>&1` in
4280 *GNU*)
4281   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4282 *)
4283   ac_count=0
4284   $as_echo_n 0123456789 >"conftest.in"
4285   while :
4286   do
4287     cat "conftest.in" "conftest.in" >"conftest.tmp"
4288     mv "conftest.tmp" "conftest.in"
4289     cp "conftest.in" "conftest.nl"
4290     $as_echo 'FGREP' >> "conftest.nl"
4291     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4292     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4293     as_fn_arith $ac_count + 1 && ac_count=$as_val
4294     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4295       # Best one so far, save it but keep looking for a better one
4296       ac_cv_path_FGREP="$ac_path_FGREP"
4297       ac_path_FGREP_max=$ac_count
4298     fi
4299     # 10*(2^10) chars as input seems more than enough
4300     test $ac_count -gt 10 && break
4301   done
4302   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4303 esac
4304
4305       $ac_path_FGREP_found && break 3
4306     done
4307   done
4308   done
4309 IFS=$as_save_IFS
4310   if test -z "$ac_cv_path_FGREP"; then
4311     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4312   fi
4313 else
4314   ac_cv_path_FGREP=$FGREP
4315 fi
4316
4317    fi
4318 fi
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4320 $as_echo "$ac_cv_path_FGREP" >&6; }
4321  FGREP="$ac_cv_path_FGREP"
4322
4323
4324 test -z "$GREP" && GREP=grep
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344 # Check whether --with-gnu-ld was given.
4345 if test "${with_gnu_ld+set}" = set; then :
4346   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4347 else
4348   with_gnu_ld=no
4349 fi
4350
4351 ac_prog=ld
4352 if test "$GCC" = yes; then
4353   # Check if gcc -print-prog-name=ld gives a path.
4354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4355 $as_echo_n "checking for ld used by $CC... " >&6; }
4356   case $host in
4357   *-*-mingw*)
4358     # gcc leaves a trailing carriage return which upsets mingw
4359     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4360   *)
4361     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4362   esac
4363   case $ac_prog in
4364     # Accept absolute paths.
4365     [\\/]* | ?:[\\/]*)
4366       re_direlt='/[^/][^/]*/\.\./'
4367       # Canonicalize the pathname of ld
4368       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4369       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4370         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4371       done
4372       test -z "$LD" && LD="$ac_prog"
4373       ;;
4374   "")
4375     # If it fails, then pretend we aren't using GCC.
4376     ac_prog=ld
4377     ;;
4378   *)
4379     # If it is relative, then search for the first ld in PATH.
4380     with_gnu_ld=unknown
4381     ;;
4382   esac
4383 elif test "$with_gnu_ld" = yes; then
4384   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4385 $as_echo_n "checking for GNU ld... " >&6; }
4386 else
4387   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4388 $as_echo_n "checking for non-GNU ld... " >&6; }
4389 fi
4390 if ${lt_cv_path_LD+:} false; then :
4391   $as_echo_n "(cached) " >&6
4392 else
4393   if test -z "$LD"; then
4394   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4395   for ac_dir in $PATH; do
4396     IFS="$lt_save_ifs"
4397     test -z "$ac_dir" && ac_dir=.
4398     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4399       lt_cv_path_LD="$ac_dir/$ac_prog"
4400       # Check to see if the program is GNU ld.  I'd rather use --version,
4401       # but apparently some variants of GNU ld only accept -v.
4402       # Break only if it was the GNU/non-GNU ld that we prefer.
4403       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4404       *GNU* | *'with BFD'*)
4405         test "$with_gnu_ld" != no && break
4406         ;;
4407       *)
4408         test "$with_gnu_ld" != yes && break
4409         ;;
4410       esac
4411     fi
4412   done
4413   IFS="$lt_save_ifs"
4414 else
4415   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4416 fi
4417 fi
4418
4419 LD="$lt_cv_path_LD"
4420 if test -n "$LD"; then
4421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4422 $as_echo "$LD" >&6; }
4423 else
4424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4425 $as_echo "no" >&6; }
4426 fi
4427 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4429 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4430 if ${lt_cv_prog_gnu_ld+:} false; then :
4431   $as_echo_n "(cached) " >&6
4432 else
4433   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4434 case `$LD -v 2>&1 </dev/null` in
4435 *GNU* | *'with BFD'*)
4436   lt_cv_prog_gnu_ld=yes
4437   ;;
4438 *)
4439   lt_cv_prog_gnu_ld=no
4440   ;;
4441 esac
4442 fi
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4444 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4445 with_gnu_ld=$lt_cv_prog_gnu_ld
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4456 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4457 if ${lt_cv_path_NM+:} false; then :
4458   $as_echo_n "(cached) " >&6
4459 else
4460   if test -n "$NM"; then
4461   # Let the user override the test.
4462   lt_cv_path_NM="$NM"
4463 else
4464   lt_nm_to_check="${ac_tool_prefix}nm"
4465   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4466     lt_nm_to_check="$lt_nm_to_check nm"
4467   fi
4468   for lt_tmp_nm in $lt_nm_to_check; do
4469     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4470     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4471       IFS="$lt_save_ifs"
4472       test -z "$ac_dir" && ac_dir=.
4473       tmp_nm="$ac_dir/$lt_tmp_nm"
4474       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4475         # Check to see if the nm accepts a BSD-compat flag.
4476         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4477         #   nm: unknown option "B" ignored
4478         # Tru64's nm complains that /dev/null is an invalid object file
4479         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4480         */dev/null* | *'Invalid file or object type'*)
4481           lt_cv_path_NM="$tmp_nm -B"
4482           break
4483           ;;
4484         *)
4485           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4486           */dev/null*)
4487             lt_cv_path_NM="$tmp_nm -p"
4488             break
4489             ;;
4490           *)
4491             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4492             continue # so that we can try to find one that supports BSD flags
4493             ;;
4494           esac
4495           ;;
4496         esac
4497       fi
4498     done
4499     IFS="$lt_save_ifs"
4500   done
4501   : ${lt_cv_path_NM=no}
4502 fi
4503 fi
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4505 $as_echo "$lt_cv_path_NM" >&6; }
4506 if test "$lt_cv_path_NM" != "no"; then
4507   NM="$lt_cv_path_NM"
4508 else
4509   # Didn't find any BSD compatible name lister, look for dumpbin.
4510   if test -n "$DUMPBIN"; then :
4511     # Let the user override the test.
4512   else
4513     if test -n "$ac_tool_prefix"; then
4514   for ac_prog in dumpbin "link -dump"
4515   do
4516     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4517 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4519 $as_echo_n "checking for $ac_word... " >&6; }
4520 if ${ac_cv_prog_DUMPBIN+:} false; then :
4521   $as_echo_n "(cached) " >&6
4522 else
4523   if test -n "$DUMPBIN"; then
4524   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4525 else
4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 for as_dir in $PATH
4528 do
4529   IFS=$as_save_IFS
4530   test -z "$as_dir" && as_dir=.
4531     for ac_exec_ext in '' $ac_executable_extensions; do
4532   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4533     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4534     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4535     break 2
4536   fi
4537 done
4538   done
4539 IFS=$as_save_IFS
4540
4541 fi
4542 fi
4543 DUMPBIN=$ac_cv_prog_DUMPBIN
4544 if test -n "$DUMPBIN"; then
4545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4546 $as_echo "$DUMPBIN" >&6; }
4547 else
4548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4549 $as_echo "no" >&6; }
4550 fi
4551
4552
4553     test -n "$DUMPBIN" && break
4554   done
4555 fi
4556 if test -z "$DUMPBIN"; then
4557   ac_ct_DUMPBIN=$DUMPBIN
4558   for ac_prog in dumpbin "link -dump"
4559 do
4560   # Extract the first word of "$ac_prog", so it can be a program name with args.
4561 set dummy $ac_prog; ac_word=$2
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4563 $as_echo_n "checking for $ac_word... " >&6; }
4564 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4565   $as_echo_n "(cached) " >&6
4566 else
4567   if test -n "$ac_ct_DUMPBIN"; then
4568   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4569 else
4570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 for as_dir in $PATH
4572 do
4573   IFS=$as_save_IFS
4574   test -z "$as_dir" && as_dir=.
4575     for ac_exec_ext in '' $ac_executable_extensions; do
4576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4577     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4578     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4579     break 2
4580   fi
4581 done
4582   done
4583 IFS=$as_save_IFS
4584
4585 fi
4586 fi
4587 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4588 if test -n "$ac_ct_DUMPBIN"; then
4589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4590 $as_echo "$ac_ct_DUMPBIN" >&6; }
4591 else
4592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4593 $as_echo "no" >&6; }
4594 fi
4595
4596
4597   test -n "$ac_ct_DUMPBIN" && break
4598 done
4599
4600   if test "x$ac_ct_DUMPBIN" = x; then
4601     DUMPBIN=":"
4602   else
4603     case $cross_compiling:$ac_tool_warned in
4604 yes:)
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4607 ac_tool_warned=yes ;;
4608 esac
4609     DUMPBIN=$ac_ct_DUMPBIN
4610   fi
4611 fi
4612
4613     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4614     *COFF*)
4615       DUMPBIN="$DUMPBIN -symbols"
4616       ;;
4617     *)
4618       DUMPBIN=:
4619       ;;
4620     esac
4621   fi
4622
4623   if test "$DUMPBIN" != ":"; then
4624     NM="$DUMPBIN"
4625   fi
4626 fi
4627 test -z "$NM" && NM=nm
4628
4629
4630
4631
4632
4633
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4635 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4636 if ${lt_cv_nm_interface+:} false; then :
4637   $as_echo_n "(cached) " >&6
4638 else
4639   lt_cv_nm_interface="BSD nm"
4640   echo "int some_variable = 0;" > conftest.$ac_ext
4641   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4642   (eval "$ac_compile" 2>conftest.err)
4643   cat conftest.err >&5
4644   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4645   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4646   cat conftest.err >&5
4647   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4648   cat conftest.out >&5
4649   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4650     lt_cv_nm_interface="MS dumpbin"
4651   fi
4652   rm -f conftest*
4653 fi
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4655 $as_echo "$lt_cv_nm_interface" >&6; }
4656
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4658 $as_echo_n "checking whether ln -s works... " >&6; }
4659 LN_S=$as_ln_s
4660 if test "$LN_S" = "ln -s"; then
4661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4662 $as_echo "yes" >&6; }
4663 else
4664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4665 $as_echo "no, using $LN_S" >&6; }
4666 fi
4667
4668 # find the maximum length of command line arguments
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4670 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4671 if ${lt_cv_sys_max_cmd_len+:} false; then :
4672   $as_echo_n "(cached) " >&6
4673 else
4674     i=0
4675   teststring="ABCD"
4676
4677   case $build_os in
4678   msdosdjgpp*)
4679     # On DJGPP, this test can blow up pretty badly due to problems in libc
4680     # (any single argument exceeding 2000 bytes causes a buffer overrun
4681     # during glob expansion).  Even if it were fixed, the result of this
4682     # check would be larger than it should be.
4683     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4684     ;;
4685
4686   gnu*)
4687     # Under GNU Hurd, this test is not required because there is
4688     # no limit to the length of command line arguments.
4689     # Libtool will interpret -1 as no limit whatsoever
4690     lt_cv_sys_max_cmd_len=-1;
4691     ;;
4692
4693   cygwin* | mingw* | cegcc*)
4694     # On Win9x/ME, this test blows up -- it succeeds, but takes
4695     # about 5 minutes as the teststring grows exponentially.
4696     # Worse, since 9x/ME are not pre-emptively multitasking,
4697     # you end up with a "frozen" computer, even though with patience
4698     # the test eventually succeeds (with a max line length of 256k).
4699     # Instead, let's just punt: use the minimum linelength reported by
4700     # all of the supported platforms: 8192 (on NT/2K/XP).
4701     lt_cv_sys_max_cmd_len=8192;
4702     ;;
4703
4704   mint*)
4705     # On MiNT this can take a long time and run out of memory.
4706     lt_cv_sys_max_cmd_len=8192;
4707     ;;
4708
4709   amigaos*)
4710     # On AmigaOS with pdksh, this test takes hours, literally.
4711     # So we just punt and use a minimum line length of 8192.
4712     lt_cv_sys_max_cmd_len=8192;
4713     ;;
4714
4715   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4716     # This has been around since 386BSD, at least.  Likely further.
4717     if test -x /sbin/sysctl; then
4718       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4719     elif test -x /usr/sbin/sysctl; then
4720       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4721     else
4722       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4723     fi
4724     # And add a safety zone
4725     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4726     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4727     ;;
4728
4729   interix*)
4730     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4731     lt_cv_sys_max_cmd_len=196608
4732     ;;
4733
4734   os2*)
4735     # The test takes a long time on OS/2.
4736     lt_cv_sys_max_cmd_len=8192
4737     ;;
4738
4739   osf*)
4740     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4741     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4742     # nice to cause kernel panics so lets avoid the loop below.
4743     # First set a reasonable default.
4744     lt_cv_sys_max_cmd_len=16384
4745     #
4746     if test -x /sbin/sysconfig; then
4747       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4748         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4749       esac
4750     fi
4751     ;;
4752   sco3.2v5*)
4753     lt_cv_sys_max_cmd_len=102400
4754     ;;
4755   sysv5* | sco5v6* | sysv4.2uw2*)
4756     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4757     if test -n "$kargmax"; then
4758       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4759     else
4760       lt_cv_sys_max_cmd_len=32768
4761     fi
4762     ;;
4763   *)
4764     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4765     if test -n "$lt_cv_sys_max_cmd_len"; then
4766       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4767       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4768     else
4769       # Make teststring a little bigger before we do anything with it.
4770       # a 1K string should be a reasonable start.
4771       for i in 1 2 3 4 5 6 7 8 ; do
4772         teststring=$teststring$teststring
4773       done
4774       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4775       # If test is not a shell built-in, we'll probably end up computing a
4776       # maximum length that is only half of the actual maximum length, but
4777       # we can't tell.
4778       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4779                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4780               test $i != 17 # 1/2 MB should be enough
4781       do
4782         i=`expr $i + 1`
4783         teststring=$teststring$teststring
4784       done
4785       # Only check the string length outside the loop.
4786       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4787       teststring=
4788       # Add a significant safety factor because C++ compilers can tack on
4789       # massive amounts of additional arguments before passing them to the
4790       # linker.  It appears as though 1/2 is a usable value.
4791       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4792     fi
4793     ;;
4794   esac
4795
4796 fi
4797
4798 if test -n $lt_cv_sys_max_cmd_len ; then
4799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4800 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4801 else
4802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4803 $as_echo "none" >&6; }
4804 fi
4805 max_cmd_len=$lt_cv_sys_max_cmd_len
4806
4807
4808
4809
4810
4811
4812 : ${CP="cp -f"}
4813 : ${MV="mv -f"}
4814 : ${RM="rm -f"}
4815
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4817 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4818 # Try some XSI features
4819 xsi_shell=no
4820 ( _lt_dummy="a/b/c"
4821   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4822       = c,a/b,b/c, \
4823     && eval 'test $(( 1 + 1 )) -eq 2 \
4824     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4825   && xsi_shell=yes
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4827 $as_echo "$xsi_shell" >&6; }
4828
4829
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4831 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4832 lt_shell_append=no
4833 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4834     >/dev/null 2>&1 \
4835   && lt_shell_append=yes
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4837 $as_echo "$lt_shell_append" >&6; }
4838
4839
4840 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4841   lt_unset=unset
4842 else
4843   lt_unset=false
4844 fi
4845
4846
4847
4848
4849
4850 # test EBCDIC or ASCII
4851 case `echo X|tr X '\101'` in
4852  A) # ASCII based system
4853     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4854   lt_SP2NL='tr \040 \012'
4855   lt_NL2SP='tr \015\012 \040\040'
4856   ;;
4857  *) # EBCDIC based system
4858   lt_SP2NL='tr \100 \n'
4859   lt_NL2SP='tr \r\n \100\100'
4860   ;;
4861 esac
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4872 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4873 if ${lt_cv_to_host_file_cmd+:} false; then :
4874   $as_echo_n "(cached) " >&6
4875 else
4876   case $host in
4877   *-*-mingw* )
4878     case $build in
4879       *-*-mingw* ) # actually msys
4880         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4881         ;;
4882       *-*-cygwin* )
4883         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4884         ;;
4885       * ) # otherwise, assume *nix
4886         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4887         ;;
4888     esac
4889     ;;
4890   *-*-cygwin* )
4891     case $build in
4892       *-*-mingw* ) # actually msys
4893         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4894         ;;
4895       *-*-cygwin* )
4896         lt_cv_to_host_file_cmd=func_convert_file_noop
4897         ;;
4898       * ) # otherwise, assume *nix
4899         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4900         ;;
4901     esac
4902     ;;
4903   * ) # unhandled hosts (and "normal" native builds)
4904     lt_cv_to_host_file_cmd=func_convert_file_noop
4905     ;;
4906 esac
4907
4908 fi
4909
4910 to_host_file_cmd=$lt_cv_to_host_file_cmd
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4912 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4913
4914
4915
4916
4917
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4919 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4920 if ${lt_cv_to_tool_file_cmd+:} false; then :
4921   $as_echo_n "(cached) " >&6
4922 else
4923   #assume ordinary cross tools, or native build.
4924 lt_cv_to_tool_file_cmd=func_convert_file_noop
4925 case $host in
4926   *-*-mingw* )
4927     case $build in
4928       *-*-mingw* ) # actually msys
4929         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4930         ;;
4931     esac
4932     ;;
4933 esac
4934
4935 fi
4936
4937 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4939 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4940
4941
4942
4943
4944
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4946 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4947 if ${lt_cv_ld_reload_flag+:} false; then :
4948   $as_echo_n "(cached) " >&6
4949 else
4950   lt_cv_ld_reload_flag='-r'
4951 fi
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4953 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4954 reload_flag=$lt_cv_ld_reload_flag
4955 case $reload_flag in
4956 "" | " "*) ;;
4957 *) reload_flag=" $reload_flag" ;;
4958 esac
4959 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4960 case $host_os in
4961   cygwin* | mingw* | pw32* | cegcc*)
4962     if test "$GCC" != yes; then
4963       reload_cmds=false
4964     fi
4965     ;;
4966   darwin*)
4967     if test "$GCC" = yes; then
4968       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4969     else
4970       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4971     fi
4972     ;;
4973 esac
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983 if test -n "$ac_tool_prefix"; then
4984   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4985 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4987 $as_echo_n "checking for $ac_word... " >&6; }
4988 if ${ac_cv_prog_OBJDUMP+:} false; then :
4989   $as_echo_n "(cached) " >&6
4990 else
4991   if test -n "$OBJDUMP"; then
4992   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4993 else
4994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995 for as_dir in $PATH
4996 do
4997   IFS=$as_save_IFS
4998   test -z "$as_dir" && as_dir=.
4999     for ac_exec_ext in '' $ac_executable_extensions; do
5000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5001     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5003     break 2
5004   fi
5005 done
5006   done
5007 IFS=$as_save_IFS
5008
5009 fi
5010 fi
5011 OBJDUMP=$ac_cv_prog_OBJDUMP
5012 if test -n "$OBJDUMP"; then
5013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5014 $as_echo "$OBJDUMP" >&6; }
5015 else
5016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5017 $as_echo "no" >&6; }
5018 fi
5019
5020
5021 fi
5022 if test -z "$ac_cv_prog_OBJDUMP"; then
5023   ac_ct_OBJDUMP=$OBJDUMP
5024   # Extract the first word of "objdump", so it can be a program name with args.
5025 set dummy objdump; ac_word=$2
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5027 $as_echo_n "checking for $ac_word... " >&6; }
5028 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5029   $as_echo_n "(cached) " >&6
5030 else
5031   if test -n "$ac_ct_OBJDUMP"; then
5032   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5033 else
5034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035 for as_dir in $PATH
5036 do
5037   IFS=$as_save_IFS
5038   test -z "$as_dir" && as_dir=.
5039     for ac_exec_ext in '' $ac_executable_extensions; do
5040   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5041     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5043     break 2
5044   fi
5045 done
5046   done
5047 IFS=$as_save_IFS
5048
5049 fi
5050 fi
5051 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5052 if test -n "$ac_ct_OBJDUMP"; then
5053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5054 $as_echo "$ac_ct_OBJDUMP" >&6; }
5055 else
5056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5057 $as_echo "no" >&6; }
5058 fi
5059
5060   if test "x$ac_ct_OBJDUMP" = x; then
5061     OBJDUMP="false"
5062   else
5063     case $cross_compiling:$ac_tool_warned in
5064 yes:)
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5067 ac_tool_warned=yes ;;
5068 esac
5069     OBJDUMP=$ac_ct_OBJDUMP
5070   fi
5071 else
5072   OBJDUMP="$ac_cv_prog_OBJDUMP"
5073 fi
5074
5075 test -z "$OBJDUMP" && OBJDUMP=objdump
5076
5077
5078
5079
5080
5081
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5083 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5084 if ${lt_cv_deplibs_check_method+:} false; then :
5085   $as_echo_n "(cached) " >&6
5086 else
5087   lt_cv_file_magic_cmd='$MAGIC_CMD'
5088 lt_cv_file_magic_test_file=
5089 lt_cv_deplibs_check_method='unknown'
5090 # Need to set the preceding variable on all platforms that support
5091 # interlibrary dependencies.
5092 # 'none' -- dependencies not supported.
5093 # `unknown' -- same as none, but documents that we really don't know.
5094 # 'pass_all' -- all dependencies passed with no checks.
5095 # 'test_compile' -- check by making test program.
5096 # 'file_magic [[regex]]' -- check by looking for files in library path
5097 # which responds to the $file_magic_cmd with a given extended regex.
5098 # If you have `file' or equivalent on your system and you're not sure
5099 # whether `pass_all' will *always* work, you probably want this one.
5100
5101 case $host_os in
5102 aix[4-9]*)
5103   lt_cv_deplibs_check_method=pass_all
5104   ;;
5105
5106 beos*)
5107   lt_cv_deplibs_check_method=pass_all
5108   ;;
5109
5110 bsdi[45]*)
5111   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5112   lt_cv_file_magic_cmd='/usr/bin/file -L'
5113   lt_cv_file_magic_test_file=/shlib/libc.so
5114   ;;
5115
5116 cygwin*)
5117   # func_win32_libid is a shell function defined in ltmain.sh
5118   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5119   lt_cv_file_magic_cmd='func_win32_libid'
5120   ;;
5121
5122 mingw* | pw32*)
5123   # Base MSYS/MinGW do not provide the 'file' command needed by
5124   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5125   # unless we find 'file', for example because we are cross-compiling.
5126   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5127   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5128     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5129     lt_cv_file_magic_cmd='func_win32_libid'
5130   else
5131     # Keep this pattern in sync with the one in func_win32_libid.
5132     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5133     lt_cv_file_magic_cmd='$OBJDUMP -f'
5134   fi
5135   ;;
5136
5137 cegcc*)
5138   # use the weaker test based on 'objdump'. See mingw*.
5139   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5140   lt_cv_file_magic_cmd='$OBJDUMP -f'
5141   ;;
5142
5143 darwin* | rhapsody*)
5144   lt_cv_deplibs_check_method=pass_all
5145   ;;
5146
5147 freebsd* | dragonfly*)
5148   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5149     case $host_cpu in
5150     i*86 )
5151       # Not sure whether the presence of OpenBSD here was a mistake.
5152       # Let's accept both of them until this is cleared up.
5153       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5154       lt_cv_file_magic_cmd=/usr/bin/file
5155       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5156       ;;
5157     esac
5158   else
5159     lt_cv_deplibs_check_method=pass_all
5160   fi
5161   ;;
5162
5163 gnu*)
5164   lt_cv_deplibs_check_method=pass_all
5165   ;;
5166
5167 haiku*)
5168   lt_cv_deplibs_check_method=pass_all
5169   ;;
5170
5171 hpux10.20* | hpux11*)
5172   lt_cv_file_magic_cmd=/usr/bin/file
5173   case $host_cpu in
5174   ia64*)
5175     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5176     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5177     ;;
5178   hppa*64*)
5179     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5180     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5181     ;;
5182   *)
5183     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5184     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5185     ;;
5186   esac
5187   ;;
5188
5189 interix[3-9]*)
5190   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5191   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5192   ;;
5193
5194 irix5* | irix6* | nonstopux*)
5195   case $LD in
5196   *-32|*"-32 ") libmagic=32-bit;;
5197   *-n32|*"-n32 ") libmagic=N32;;
5198   *-64|*"-64 ") libmagic=64-bit;;
5199   *) libmagic=never-match;;
5200   esac
5201   lt_cv_deplibs_check_method=pass_all
5202   ;;
5203
5204 # This must be glibc/ELF.
5205 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5206   lt_cv_deplibs_check_method=pass_all
5207   ;;
5208
5209 netbsd* | netbsdelf*-gnu)
5210   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5211     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5212   else
5213     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5214   fi
5215   ;;
5216
5217 newos6*)
5218   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5219   lt_cv_file_magic_cmd=/usr/bin/file
5220   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5221   ;;
5222
5223 *nto* | *qnx*)
5224   lt_cv_deplibs_check_method=pass_all
5225   ;;
5226
5227 openbsd*)
5228   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5229     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5230   else
5231     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5232   fi
5233   ;;
5234
5235 osf3* | osf4* | osf5*)
5236   lt_cv_deplibs_check_method=pass_all
5237   ;;
5238
5239 rdos*)
5240   lt_cv_deplibs_check_method=pass_all
5241   ;;
5242
5243 solaris*)
5244   lt_cv_deplibs_check_method=pass_all
5245   ;;
5246
5247 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5248   lt_cv_deplibs_check_method=pass_all
5249   ;;
5250
5251 sysv4 | sysv4.3*)
5252   case $host_vendor in
5253   motorola)
5254     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]'
5255     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5256     ;;
5257   ncr)
5258     lt_cv_deplibs_check_method=pass_all
5259     ;;
5260   sequent)
5261     lt_cv_file_magic_cmd='/bin/file'
5262     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5263     ;;
5264   sni)
5265     lt_cv_file_magic_cmd='/bin/file'
5266     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5267     lt_cv_file_magic_test_file=/lib/libc.so
5268     ;;
5269   siemens)
5270     lt_cv_deplibs_check_method=pass_all
5271     ;;
5272   pc)
5273     lt_cv_deplibs_check_method=pass_all
5274     ;;
5275   esac
5276   ;;
5277
5278 tpf*)
5279   lt_cv_deplibs_check_method=pass_all
5280   ;;
5281 esac
5282
5283 fi
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5285 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5286
5287 file_magic_glob=
5288 want_nocaseglob=no
5289 if test "$build" = "$host"; then
5290   case $host_os in
5291   mingw* | pw32*)
5292     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5293       want_nocaseglob=yes
5294     else
5295       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5296     fi
5297     ;;
5298   esac
5299 fi
5300
5301 file_magic_cmd=$lt_cv_file_magic_cmd
5302 deplibs_check_method=$lt_cv_deplibs_check_method
5303 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326 if test -n "$ac_tool_prefix"; then
5327   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5328 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5330 $as_echo_n "checking for $ac_word... " >&6; }
5331 if ${ac_cv_prog_DLLTOOL+:} false; then :
5332   $as_echo_n "(cached) " >&6
5333 else
5334   if test -n "$DLLTOOL"; then
5335   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5336 else
5337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 for as_dir in $PATH
5339 do
5340   IFS=$as_save_IFS
5341   test -z "$as_dir" && as_dir=.
5342     for ac_exec_ext in '' $ac_executable_extensions; do
5343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5344     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5346     break 2
5347   fi
5348 done
5349   done
5350 IFS=$as_save_IFS
5351
5352 fi
5353 fi
5354 DLLTOOL=$ac_cv_prog_DLLTOOL
5355 if test -n "$DLLTOOL"; then
5356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5357 $as_echo "$DLLTOOL" >&6; }
5358 else
5359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5360 $as_echo "no" >&6; }
5361 fi
5362
5363
5364 fi
5365 if test -z "$ac_cv_prog_DLLTOOL"; then
5366   ac_ct_DLLTOOL=$DLLTOOL
5367   # Extract the first word of "dlltool", so it can be a program name with args.
5368 set dummy dlltool; ac_word=$2
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5370 $as_echo_n "checking for $ac_word... " >&6; }
5371 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5372   $as_echo_n "(cached) " >&6
5373 else
5374   if test -n "$ac_ct_DLLTOOL"; then
5375   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5376 else
5377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5378 for as_dir in $PATH
5379 do
5380   IFS=$as_save_IFS
5381   test -z "$as_dir" && as_dir=.
5382     for ac_exec_ext in '' $ac_executable_extensions; do
5383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5384     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5385     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5386     break 2
5387   fi
5388 done
5389   done
5390 IFS=$as_save_IFS
5391
5392 fi
5393 fi
5394 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5395 if test -n "$ac_ct_DLLTOOL"; then
5396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5397 $as_echo "$ac_ct_DLLTOOL" >&6; }
5398 else
5399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5400 $as_echo "no" >&6; }
5401 fi
5402
5403   if test "x$ac_ct_DLLTOOL" = x; then
5404     DLLTOOL="false"
5405   else
5406     case $cross_compiling:$ac_tool_warned in
5407 yes:)
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5410 ac_tool_warned=yes ;;
5411 esac
5412     DLLTOOL=$ac_ct_DLLTOOL
5413   fi
5414 else
5415   DLLTOOL="$ac_cv_prog_DLLTOOL"
5416 fi
5417
5418 test -z "$DLLTOOL" && DLLTOOL=dlltool
5419
5420
5421
5422
5423
5424
5425
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5427 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5428 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5429   $as_echo_n "(cached) " >&6
5430 else
5431   lt_cv_sharedlib_from_linklib_cmd='unknown'
5432
5433 case $host_os in
5434 cygwin* | mingw* | pw32* | cegcc*)
5435   # two different shell functions defined in ltmain.sh
5436   # decide which to use based on capabilities of $DLLTOOL
5437   case `$DLLTOOL --help 2>&1` in
5438   *--identify-strict*)
5439     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5440     ;;
5441   *)
5442     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5443     ;;
5444   esac
5445   ;;
5446 *)
5447   # fallback: assume linklib IS sharedlib
5448   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5449   ;;
5450 esac
5451
5452 fi
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5454 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5455 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5456 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5457
5458
5459
5460
5461
5462
5463
5464
5465 if test -n "$ac_tool_prefix"; then
5466   for ac_prog in ar
5467   do
5468     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5469 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5471 $as_echo_n "checking for $ac_word... " >&6; }
5472 if ${ac_cv_prog_AR+:} false; then :
5473   $as_echo_n "(cached) " >&6
5474 else
5475   if test -n "$AR"; then
5476   ac_cv_prog_AR="$AR" # Let the user override the test.
5477 else
5478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479 for as_dir in $PATH
5480 do
5481   IFS=$as_save_IFS
5482   test -z "$as_dir" && as_dir=.
5483     for ac_exec_ext in '' $ac_executable_extensions; do
5484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5485     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5486     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5487     break 2
5488   fi
5489 done
5490   done
5491 IFS=$as_save_IFS
5492
5493 fi
5494 fi
5495 AR=$ac_cv_prog_AR
5496 if test -n "$AR"; then
5497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5498 $as_echo "$AR" >&6; }
5499 else
5500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5501 $as_echo "no" >&6; }
5502 fi
5503
5504
5505     test -n "$AR" && break
5506   done
5507 fi
5508 if test -z "$AR"; then
5509   ac_ct_AR=$AR
5510   for ac_prog in ar
5511 do
5512   # Extract the first word of "$ac_prog", so it can be a program name with args.
5513 set dummy $ac_prog; ac_word=$2
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5515 $as_echo_n "checking for $ac_word... " >&6; }
5516 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5517   $as_echo_n "(cached) " >&6
5518 else
5519   if test -n "$ac_ct_AR"; then
5520   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5521 else
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523 for as_dir in $PATH
5524 do
5525   IFS=$as_save_IFS
5526   test -z "$as_dir" && as_dir=.
5527     for ac_exec_ext in '' $ac_executable_extensions; do
5528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5529     ac_cv_prog_ac_ct_AR="$ac_prog"
5530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5531     break 2
5532   fi
5533 done
5534   done
5535 IFS=$as_save_IFS
5536
5537 fi
5538 fi
5539 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5540 if test -n "$ac_ct_AR"; then
5541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5542 $as_echo "$ac_ct_AR" >&6; }
5543 else
5544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5545 $as_echo "no" >&6; }
5546 fi
5547
5548
5549   test -n "$ac_ct_AR" && break
5550 done
5551
5552   if test "x$ac_ct_AR" = x; then
5553     AR="false"
5554   else
5555     case $cross_compiling:$ac_tool_warned in
5556 yes:)
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5558 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5559 ac_tool_warned=yes ;;
5560 esac
5561     AR=$ac_ct_AR
5562   fi
5563 fi
5564
5565 : ${AR=ar}
5566 : ${AR_FLAGS=cru}
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5579 $as_echo_n "checking for archiver @FILE support... " >&6; }
5580 if ${lt_cv_ar_at_file+:} false; then :
5581   $as_echo_n "(cached) " >&6
5582 else
5583   lt_cv_ar_at_file=no
5584    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5585 /* end confdefs.h.  */
5586
5587 int
5588 main ()
5589 {
5590
5591   ;
5592   return 0;
5593 }
5594 _ACEOF
5595 if ac_fn_c_try_compile "$LINENO"; then :
5596   echo conftest.$ac_objext > conftest.lst
5597       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5598       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5599   (eval $lt_ar_try) 2>&5
5600   ac_status=$?
5601   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5602   test $ac_status = 0; }
5603       if test "$ac_status" -eq 0; then
5604         # Ensure the archiver fails upon bogus file names.
5605         rm -f conftest.$ac_objext libconftest.a
5606         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5607   (eval $lt_ar_try) 2>&5
5608   ac_status=$?
5609   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5610   test $ac_status = 0; }
5611         if test "$ac_status" -ne 0; then
5612           lt_cv_ar_at_file=@
5613         fi
5614       fi
5615       rm -f conftest.* libconftest.a
5616
5617 fi
5618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5619
5620 fi
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5622 $as_echo "$lt_cv_ar_at_file" >&6; }
5623
5624 if test "x$lt_cv_ar_at_file" = xno; then
5625   archiver_list_spec=
5626 else
5627   archiver_list_spec=$lt_cv_ar_at_file
5628 fi
5629
5630
5631
5632
5633
5634
5635
5636 if test -n "$ac_tool_prefix"; then
5637   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5638 set dummy ${ac_tool_prefix}strip; ac_word=$2
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5640 $as_echo_n "checking for $ac_word... " >&6; }
5641 if ${ac_cv_prog_STRIP+:} false; then :
5642   $as_echo_n "(cached) " >&6
5643 else
5644   if test -n "$STRIP"; then
5645   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5646 else
5647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648 for as_dir in $PATH
5649 do
5650   IFS=$as_save_IFS
5651   test -z "$as_dir" && as_dir=.
5652     for ac_exec_ext in '' $ac_executable_extensions; do
5653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5654     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5656     break 2
5657   fi
5658 done
5659   done
5660 IFS=$as_save_IFS
5661
5662 fi
5663 fi
5664 STRIP=$ac_cv_prog_STRIP
5665 if test -n "$STRIP"; then
5666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5667 $as_echo "$STRIP" >&6; }
5668 else
5669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5670 $as_echo "no" >&6; }
5671 fi
5672
5673
5674 fi
5675 if test -z "$ac_cv_prog_STRIP"; then
5676   ac_ct_STRIP=$STRIP
5677   # Extract the first word of "strip", so it can be a program name with args.
5678 set dummy strip; ac_word=$2
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5680 $as_echo_n "checking for $ac_word... " >&6; }
5681 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5682   $as_echo_n "(cached) " >&6
5683 else
5684   if test -n "$ac_ct_STRIP"; then
5685   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5686 else
5687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688 for as_dir in $PATH
5689 do
5690   IFS=$as_save_IFS
5691   test -z "$as_dir" && as_dir=.
5692     for ac_exec_ext in '' $ac_executable_extensions; do
5693   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5694     ac_cv_prog_ac_ct_STRIP="strip"
5695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5696     break 2
5697   fi
5698 done
5699   done
5700 IFS=$as_save_IFS
5701
5702 fi
5703 fi
5704 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5705 if test -n "$ac_ct_STRIP"; then
5706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5707 $as_echo "$ac_ct_STRIP" >&6; }
5708 else
5709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710 $as_echo "no" >&6; }
5711 fi
5712
5713   if test "x$ac_ct_STRIP" = x; then
5714     STRIP=":"
5715   else
5716     case $cross_compiling:$ac_tool_warned in
5717 yes:)
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5720 ac_tool_warned=yes ;;
5721 esac
5722     STRIP=$ac_ct_STRIP
5723   fi
5724 else
5725   STRIP="$ac_cv_prog_STRIP"
5726 fi
5727
5728 test -z "$STRIP" && STRIP=:
5729
5730
5731
5732
5733
5734
5735 if test -n "$ac_tool_prefix"; then
5736   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5737 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5739 $as_echo_n "checking for $ac_word... " >&6; }
5740 if ${ac_cv_prog_RANLIB+:} false; then :
5741   $as_echo_n "(cached) " >&6
5742 else
5743   if test -n "$RANLIB"; then
5744   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5745 else
5746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747 for as_dir in $PATH
5748 do
5749   IFS=$as_save_IFS
5750   test -z "$as_dir" && as_dir=.
5751     for ac_exec_ext in '' $ac_executable_extensions; do
5752   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5753     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5754     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5755     break 2
5756   fi
5757 done
5758   done
5759 IFS=$as_save_IFS
5760
5761 fi
5762 fi
5763 RANLIB=$ac_cv_prog_RANLIB
5764 if test -n "$RANLIB"; then
5765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5766 $as_echo "$RANLIB" >&6; }
5767 else
5768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5769 $as_echo "no" >&6; }
5770 fi
5771
5772
5773 fi
5774 if test -z "$ac_cv_prog_RANLIB"; then
5775   ac_ct_RANLIB=$RANLIB
5776   # Extract the first word of "ranlib", so it can be a program name with args.
5777 set dummy ranlib; ac_word=$2
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5779 $as_echo_n "checking for $ac_word... " >&6; }
5780 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5781   $as_echo_n "(cached) " >&6
5782 else
5783   if test -n "$ac_ct_RANLIB"; then
5784   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5785 else
5786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787 for as_dir in $PATH
5788 do
5789   IFS=$as_save_IFS
5790   test -z "$as_dir" && as_dir=.
5791     for ac_exec_ext in '' $ac_executable_extensions; do
5792   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5793     ac_cv_prog_ac_ct_RANLIB="ranlib"
5794     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5795     break 2
5796   fi
5797 done
5798   done
5799 IFS=$as_save_IFS
5800
5801 fi
5802 fi
5803 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5804 if test -n "$ac_ct_RANLIB"; then
5805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5806 $as_echo "$ac_ct_RANLIB" >&6; }
5807 else
5808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5809 $as_echo "no" >&6; }
5810 fi
5811
5812   if test "x$ac_ct_RANLIB" = x; then
5813     RANLIB=":"
5814   else
5815     case $cross_compiling:$ac_tool_warned in
5816 yes:)
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5819 ac_tool_warned=yes ;;
5820 esac
5821     RANLIB=$ac_ct_RANLIB
5822   fi
5823 else
5824   RANLIB="$ac_cv_prog_RANLIB"
5825 fi
5826
5827 test -z "$RANLIB" && RANLIB=:
5828
5829
5830
5831
5832
5833
5834 # Determine commands to create old-style static archives.
5835 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5836 old_postinstall_cmds='chmod 644 $oldlib'
5837 old_postuninstall_cmds=
5838
5839 if test -n "$RANLIB"; then
5840   case $host_os in
5841   openbsd*)
5842     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5843     ;;
5844   *)
5845     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5846     ;;
5847   esac
5848   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5849 fi
5850
5851 case $host_os in
5852   darwin*)
5853     lock_old_archive_extraction=yes ;;
5854   *)
5855     lock_old_archive_extraction=no ;;
5856 esac
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896 # If no C compiler was specified, use CC.
5897 LTCC=${LTCC-"$CC"}
5898
5899 # If no C compiler flags were specified, use CFLAGS.
5900 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5901
5902 # Allow CC to be a program name with arguments.
5903 compiler=$CC
5904
5905
5906 # Check for command to grab the raw symbol name followed by C symbol from nm.
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5908 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5909 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5910   $as_echo_n "(cached) " >&6
5911 else
5912
5913 # These are sane defaults that work on at least a few old systems.
5914 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5915
5916 # Character class describing NM global symbol codes.
5917 symcode='[BCDEGRST]'
5918
5919 # Regexp to match symbols that can be accessed directly from C.
5920 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5921
5922 # Define system-specific variables.
5923 case $host_os in
5924 aix*)
5925   symcode='[BCDT]'
5926   ;;
5927 cygwin* | mingw* | pw32* | cegcc*)
5928   symcode='[ABCDGISTW]'
5929   ;;
5930 hpux*)
5931   if test "$host_cpu" = ia64; then
5932     symcode='[ABCDEGRST]'
5933   fi
5934   ;;
5935 irix* | nonstopux*)
5936   symcode='[BCDEGRST]'
5937   ;;
5938 osf*)
5939   symcode='[BCDEGQRST]'
5940   ;;
5941 solaris*)
5942   symcode='[BDRT]'
5943   ;;
5944 sco3.2v5*)
5945   symcode='[DT]'
5946   ;;
5947 sysv4.2uw2*)
5948   symcode='[DT]'
5949   ;;
5950 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5951   symcode='[ABDT]'
5952   ;;
5953 sysv4)
5954   symcode='[DFNSTU]'
5955   ;;
5956 esac
5957
5958 # If we're using GNU nm, then use its standard symbol codes.
5959 case `$NM -V 2>&1` in
5960 *GNU* | *'with BFD'*)
5961   symcode='[ABCDGIRSTW]' ;;
5962 esac
5963
5964 # Transform an extracted symbol line into a proper C declaration.
5965 # Some systems (esp. on ia64) link data and code symbols differently,
5966 # so use this general approach.
5967 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5968
5969 # Transform an extracted symbol line into symbol name and symbol address
5970 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5971 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'"
5972
5973 # Handle CRLF in mingw tool chain
5974 opt_cr=
5975 case $build_os in
5976 mingw*)
5977   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5978   ;;
5979 esac
5980
5981 # Try without a prefix underscore, then with it.
5982 for ac_symprfx in "" "_"; do
5983
5984   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5985   symxfrm="\\1 $ac_symprfx\\2 \\2"
5986
5987   # Write the raw and C identifiers.
5988   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5989     # Fake it for dumpbin and say T for any non-static function
5990     # and D for any global variable.
5991     # Also find C++ and __fastcall symbols from MSVC++,
5992     # which start with @ or ?.
5993     lt_cv_sys_global_symbol_pipe="$AWK '"\
5994 "     {last_section=section; section=\$ 3};"\
5995 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5996 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5997 "     \$ 0!~/External *\|/{next};"\
5998 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5999 "     {if(hide[section]) next};"\
6000 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6001 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6002 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6003 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6004 "     ' prfx=^$ac_symprfx"
6005   else
6006     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6007   fi
6008   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6009
6010   # Check to see that the pipe works correctly.
6011   pipe_works=no
6012
6013   rm -f conftest*
6014   cat > conftest.$ac_ext <<_LT_EOF
6015 #ifdef __cplusplus
6016 extern "C" {
6017 #endif
6018 char nm_test_var;
6019 void nm_test_func(void);
6020 void nm_test_func(void){}
6021 #ifdef __cplusplus
6022 }
6023 #endif
6024 int main(){nm_test_var='a';nm_test_func();return(0);}
6025 _LT_EOF
6026
6027   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6028   (eval $ac_compile) 2>&5
6029   ac_status=$?
6030   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6031   test $ac_status = 0; }; then
6032     # Now try to grab the symbols.
6033     nlist=conftest.nm
6034     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6035   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6036   ac_status=$?
6037   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6038   test $ac_status = 0; } && test -s "$nlist"; then
6039       # Try sorting and uniquifying the output.
6040       if sort "$nlist" | uniq > "$nlist"T; then
6041         mv -f "$nlist"T "$nlist"
6042       else
6043         rm -f "$nlist"T
6044       fi
6045
6046       # Make sure that we snagged all the symbols we need.
6047       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6048         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6049           cat <<_LT_EOF > conftest.$ac_ext
6050 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6051 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6052 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6053    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6054 # define LT_DLSYM_CONST
6055 #elif defined(__osf__)
6056 /* This system does not cope well with relocations in const data.  */
6057 # define LT_DLSYM_CONST
6058 #else
6059 # define LT_DLSYM_CONST const
6060 #endif
6061
6062 #ifdef __cplusplus
6063 extern "C" {
6064 #endif
6065
6066 _LT_EOF
6067           # Now generate the symbol file.
6068           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6069
6070           cat <<_LT_EOF >> conftest.$ac_ext
6071
6072 /* The mapping between symbol names and symbols.  */
6073 LT_DLSYM_CONST struct {
6074   const char *name;
6075   void       *address;
6076 }
6077 lt__PROGRAM__LTX_preloaded_symbols[] =
6078 {
6079   { "@PROGRAM@", (void *) 0 },
6080 _LT_EOF
6081           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6082           cat <<\_LT_EOF >> conftest.$ac_ext
6083   {0, (void *) 0}
6084 };
6085
6086 /* This works around a problem in FreeBSD linker */
6087 #ifdef FREEBSD_WORKAROUND
6088 static const void *lt_preloaded_setup() {
6089   return lt__PROGRAM__LTX_preloaded_symbols;
6090 }
6091 #endif
6092
6093 #ifdef __cplusplus
6094 }
6095 #endif
6096 _LT_EOF
6097           # Now try linking the two files.
6098           mv conftest.$ac_objext conftstm.$ac_objext
6099           lt_globsym_save_LIBS=$LIBS
6100           lt_globsym_save_CFLAGS=$CFLAGS
6101           LIBS="conftstm.$ac_objext"
6102           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6103           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6104   (eval $ac_link) 2>&5
6105   ac_status=$?
6106   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6107   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6108             pipe_works=yes
6109           fi
6110           LIBS=$lt_globsym_save_LIBS
6111           CFLAGS=$lt_globsym_save_CFLAGS
6112         else
6113           echo "cannot find nm_test_func in $nlist" >&5
6114         fi
6115       else
6116         echo "cannot find nm_test_var in $nlist" >&5
6117       fi
6118     else
6119       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6120     fi
6121   else
6122     echo "$progname: failed program was:" >&5
6123     cat conftest.$ac_ext >&5
6124   fi
6125   rm -rf conftest* conftst*
6126
6127   # Do not use the global_symbol_pipe unless it works.
6128   if test "$pipe_works" = yes; then
6129     break
6130   else
6131     lt_cv_sys_global_symbol_pipe=
6132   fi
6133 done
6134
6135 fi
6136
6137 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6138   lt_cv_sys_global_symbol_to_cdecl=
6139 fi
6140 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6142 $as_echo "failed" >&6; }
6143 else
6144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6145 $as_echo "ok" >&6; }
6146 fi
6147
6148 # Response file support.
6149 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6150   nm_file_list_spec='@'
6151 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6152   nm_file_list_spec='@'
6153 fi
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6182 $as_echo_n "checking for sysroot... " >&6; }
6183
6184 # Check whether --with-sysroot was given.
6185 if test "${with_sysroot+set}" = set; then :
6186   withval=$with_sysroot;
6187 else
6188   with_sysroot=no
6189 fi
6190
6191
6192 lt_sysroot=
6193 case ${with_sysroot} in #(
6194  yes)
6195    if test "$GCC" = yes; then
6196      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6197    fi
6198    ;; #(
6199  /*)
6200    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6201    ;; #(
6202  no|'')
6203    ;; #(
6204  *)
6205    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6206 $as_echo "${with_sysroot}" >&6; }
6207    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6208    ;;
6209 esac
6210
6211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6212 $as_echo "${lt_sysroot:-no}" >&6; }
6213
6214
6215
6216
6217
6218 # Check whether --enable-libtool-lock was given.
6219 if test "${enable_libtool_lock+set}" = set; then :
6220   enableval=$enable_libtool_lock;
6221 fi
6222
6223 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6224
6225 # Some flags need to be propagated to the compiler or linker for good
6226 # libtool support.
6227 case $host in
6228 ia64-*-hpux*)
6229   # Find out which ABI we are using.
6230   echo 'int i;' > conftest.$ac_ext
6231   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6232   (eval $ac_compile) 2>&5
6233   ac_status=$?
6234   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6235   test $ac_status = 0; }; then
6236     case `/usr/bin/file conftest.$ac_objext` in
6237       *ELF-32*)
6238         HPUX_IA64_MODE="32"
6239         ;;
6240       *ELF-64*)
6241         HPUX_IA64_MODE="64"
6242         ;;
6243     esac
6244   fi
6245   rm -rf conftest*
6246   ;;
6247 *-*-irix6*)
6248   # Find out which ABI we are using.
6249   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6250   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6251   (eval $ac_compile) 2>&5
6252   ac_status=$?
6253   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6254   test $ac_status = 0; }; then
6255     if test "$lt_cv_prog_gnu_ld" = yes; then
6256       case `/usr/bin/file conftest.$ac_objext` in
6257         *32-bit*)
6258           LD="${LD-ld} -melf32bsmip"
6259           ;;
6260         *N32*)
6261           LD="${LD-ld} -melf32bmipn32"
6262           ;;
6263         *64-bit*)
6264           LD="${LD-ld} -melf64bmip"
6265         ;;
6266       esac
6267     else
6268       case `/usr/bin/file conftest.$ac_objext` in
6269         *32-bit*)
6270           LD="${LD-ld} -32"
6271           ;;
6272         *N32*)
6273           LD="${LD-ld} -n32"
6274           ;;
6275         *64-bit*)
6276           LD="${LD-ld} -64"
6277           ;;
6278       esac
6279     fi
6280   fi
6281   rm -rf conftest*
6282   ;;
6283
6284 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6285 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6286   # Find out which ABI we are using.
6287   echo 'int i;' > conftest.$ac_ext
6288   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6289   (eval $ac_compile) 2>&5
6290   ac_status=$?
6291   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6292   test $ac_status = 0; }; then
6293     case `/usr/bin/file conftest.o` in
6294       *32-bit*)
6295         case $host in
6296           x86_64-*kfreebsd*-gnu)
6297             LD="${LD-ld} -m elf_i386_fbsd"
6298             ;;
6299           x86_64-*linux*)
6300             LD="${LD-ld} -m elf_i386"
6301             ;;
6302           ppc64-*linux*|powerpc64-*linux*)
6303             LD="${LD-ld} -m elf32ppclinux"
6304             ;;
6305           s390x-*linux*)
6306             LD="${LD-ld} -m elf_s390"
6307             ;;
6308           sparc64-*linux*)
6309             LD="${LD-ld} -m elf32_sparc"
6310             ;;
6311         esac
6312         ;;
6313       *64-bit*)
6314         case $host in
6315           x86_64-*kfreebsd*-gnu)
6316             LD="${LD-ld} -m elf_x86_64_fbsd"
6317             ;;
6318           x86_64-*linux*)
6319             LD="${LD-ld} -m elf_x86_64"
6320             ;;
6321           ppc*-*linux*|powerpc*-*linux*)
6322             LD="${LD-ld} -m elf64ppc"
6323             ;;
6324           s390*-*linux*|s390*-*tpf*)
6325             LD="${LD-ld} -m elf64_s390"
6326             ;;
6327           sparc*-*linux*)
6328             LD="${LD-ld} -m elf64_sparc"
6329             ;;
6330         esac
6331         ;;
6332     esac
6333   fi
6334   rm -rf conftest*
6335   ;;
6336
6337 *-*-sco3.2v5*)
6338   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6339   SAVE_CFLAGS="$CFLAGS"
6340   CFLAGS="$CFLAGS -belf"
6341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6342 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6343 if ${lt_cv_cc_needs_belf+:} false; then :
6344   $as_echo_n "(cached) " >&6
6345 else
6346   ac_ext=c
6347 ac_cpp='$CPP $CPPFLAGS'
6348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6351
6352      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6353 /* end confdefs.h.  */
6354
6355 int
6356 main ()
6357 {
6358
6359   ;
6360   return 0;
6361 }
6362 _ACEOF
6363 if ac_fn_c_try_link "$LINENO"; then :
6364   lt_cv_cc_needs_belf=yes
6365 else
6366   lt_cv_cc_needs_belf=no
6367 fi
6368 rm -f core conftest.err conftest.$ac_objext \
6369     conftest$ac_exeext conftest.$ac_ext
6370      ac_ext=c
6371 ac_cpp='$CPP $CPPFLAGS'
6372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6375
6376 fi
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6378 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6379   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6380     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6381     CFLAGS="$SAVE_CFLAGS"
6382   fi
6383   ;;
6384 *-*solaris*)
6385   # Find out which ABI we are using.
6386   echo 'int i;' > conftest.$ac_ext
6387   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6388   (eval $ac_compile) 2>&5
6389   ac_status=$?
6390   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6391   test $ac_status = 0; }; then
6392     case `/usr/bin/file conftest.o` in
6393     *64-bit*)
6394       case $lt_cv_prog_gnu_ld in
6395       yes*)
6396         case $host in
6397         i?86-*-solaris*)
6398           LD="${LD-ld} -m elf_x86_64"
6399           ;;
6400         sparc*-*-solaris*)
6401           LD="${LD-ld} -m elf64_sparc"
6402           ;;
6403         esac
6404         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6405         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6406           LD="${LD-ld}_sol2"
6407         fi
6408         ;;
6409       *)
6410         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6411           LD="${LD-ld} -64"
6412         fi
6413         ;;
6414       esac
6415       ;;
6416     esac
6417   fi
6418   rm -rf conftest*
6419   ;;
6420 esac
6421
6422 need_locks="$enable_libtool_lock"
6423
6424 if test -n "$ac_tool_prefix"; then
6425   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6426 set dummy ${ac_tool_prefix}mt; ac_word=$2
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6428 $as_echo_n "checking for $ac_word... " >&6; }
6429 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6430   $as_echo_n "(cached) " >&6
6431 else
6432   if test -n "$MANIFEST_TOOL"; then
6433   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6434 else
6435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6436 for as_dir in $PATH
6437 do
6438   IFS=$as_save_IFS
6439   test -z "$as_dir" && as_dir=.
6440     for ac_exec_ext in '' $ac_executable_extensions; do
6441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6442     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6444     break 2
6445   fi
6446 done
6447   done
6448 IFS=$as_save_IFS
6449
6450 fi
6451 fi
6452 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6453 if test -n "$MANIFEST_TOOL"; then
6454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6455 $as_echo "$MANIFEST_TOOL" >&6; }
6456 else
6457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6458 $as_echo "no" >&6; }
6459 fi
6460
6461
6462 fi
6463 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6464   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6465   # Extract the first word of "mt", so it can be a program name with args.
6466 set dummy mt; ac_word=$2
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6468 $as_echo_n "checking for $ac_word... " >&6; }
6469 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6470   $as_echo_n "(cached) " >&6
6471 else
6472   if test -n "$ac_ct_MANIFEST_TOOL"; then
6473   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6474 else
6475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476 for as_dir in $PATH
6477 do
6478   IFS=$as_save_IFS
6479   test -z "$as_dir" && as_dir=.
6480     for ac_exec_ext in '' $ac_executable_extensions; do
6481   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6482     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6484     break 2
6485   fi
6486 done
6487   done
6488 IFS=$as_save_IFS
6489
6490 fi
6491 fi
6492 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6493 if test -n "$ac_ct_MANIFEST_TOOL"; then
6494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6495 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6496 else
6497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6498 $as_echo "no" >&6; }
6499 fi
6500
6501   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6502     MANIFEST_TOOL=":"
6503   else
6504     case $cross_compiling:$ac_tool_warned in
6505 yes:)
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6508 ac_tool_warned=yes ;;
6509 esac
6510     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6511   fi
6512 else
6513   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6514 fi
6515
6516 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6518 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6519 if ${lt_cv_path_mainfest_tool+:} false; then :
6520   $as_echo_n "(cached) " >&6
6521 else
6522   lt_cv_path_mainfest_tool=no
6523   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6524   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6525   cat conftest.err >&5
6526   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6527     lt_cv_path_mainfest_tool=yes
6528   fi
6529   rm -f conftest*
6530 fi
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6532 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6533 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6534   MANIFEST_TOOL=:
6535 fi
6536
6537
6538
6539
6540
6541
6542   case $host_os in
6543     rhapsody* | darwin*)
6544     if test -n "$ac_tool_prefix"; then
6545   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6546 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6548 $as_echo_n "checking for $ac_word... " >&6; }
6549 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6550   $as_echo_n "(cached) " >&6
6551 else
6552   if test -n "$DSYMUTIL"; then
6553   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6554 else
6555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556 for as_dir in $PATH
6557 do
6558   IFS=$as_save_IFS
6559   test -z "$as_dir" && as_dir=.
6560     for ac_exec_ext in '' $ac_executable_extensions; do
6561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6562     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6564     break 2
6565   fi
6566 done
6567   done
6568 IFS=$as_save_IFS
6569
6570 fi
6571 fi
6572 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6573 if test -n "$DSYMUTIL"; then
6574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6575 $as_echo "$DSYMUTIL" >&6; }
6576 else
6577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6578 $as_echo "no" >&6; }
6579 fi
6580
6581
6582 fi
6583 if test -z "$ac_cv_prog_DSYMUTIL"; then
6584   ac_ct_DSYMUTIL=$DSYMUTIL
6585   # Extract the first word of "dsymutil", so it can be a program name with args.
6586 set dummy dsymutil; ac_word=$2
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6588 $as_echo_n "checking for $ac_word... " >&6; }
6589 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6590   $as_echo_n "(cached) " >&6
6591 else
6592   if test -n "$ac_ct_DSYMUTIL"; then
6593   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6594 else
6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596 for as_dir in $PATH
6597 do
6598   IFS=$as_save_IFS
6599   test -z "$as_dir" && as_dir=.
6600     for ac_exec_ext in '' $ac_executable_extensions; do
6601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6602     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6604     break 2
6605   fi
6606 done
6607   done
6608 IFS=$as_save_IFS
6609
6610 fi
6611 fi
6612 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6613 if test -n "$ac_ct_DSYMUTIL"; then
6614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6615 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6616 else
6617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6618 $as_echo "no" >&6; }
6619 fi
6620
6621   if test "x$ac_ct_DSYMUTIL" = x; then
6622     DSYMUTIL=":"
6623   else
6624     case $cross_compiling:$ac_tool_warned in
6625 yes:)
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6628 ac_tool_warned=yes ;;
6629 esac
6630     DSYMUTIL=$ac_ct_DSYMUTIL
6631   fi
6632 else
6633   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6634 fi
6635
6636     if test -n "$ac_tool_prefix"; then
6637   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6638 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6640 $as_echo_n "checking for $ac_word... " >&6; }
6641 if ${ac_cv_prog_NMEDIT+:} false; then :
6642   $as_echo_n "(cached) " >&6
6643 else
6644   if test -n "$NMEDIT"; then
6645   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6646 else
6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648 for as_dir in $PATH
6649 do
6650   IFS=$as_save_IFS
6651   test -z "$as_dir" && as_dir=.
6652     for ac_exec_ext in '' $ac_executable_extensions; do
6653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6654     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6656     break 2
6657   fi
6658 done
6659   done
6660 IFS=$as_save_IFS
6661
6662 fi
6663 fi
6664 NMEDIT=$ac_cv_prog_NMEDIT
6665 if test -n "$NMEDIT"; then
6666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6667 $as_echo "$NMEDIT" >&6; }
6668 else
6669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6670 $as_echo "no" >&6; }
6671 fi
6672
6673
6674 fi
6675 if test -z "$ac_cv_prog_NMEDIT"; then
6676   ac_ct_NMEDIT=$NMEDIT
6677   # Extract the first word of "nmedit", so it can be a program name with args.
6678 set dummy nmedit; ac_word=$2
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6680 $as_echo_n "checking for $ac_word... " >&6; }
6681 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6682   $as_echo_n "(cached) " >&6
6683 else
6684   if test -n "$ac_ct_NMEDIT"; then
6685   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6686 else
6687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688 for as_dir in $PATH
6689 do
6690   IFS=$as_save_IFS
6691   test -z "$as_dir" && as_dir=.
6692     for ac_exec_ext in '' $ac_executable_extensions; do
6693   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6694     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6696     break 2
6697   fi
6698 done
6699   done
6700 IFS=$as_save_IFS
6701
6702 fi
6703 fi
6704 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6705 if test -n "$ac_ct_NMEDIT"; then
6706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6707 $as_echo "$ac_ct_NMEDIT" >&6; }
6708 else
6709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6710 $as_echo "no" >&6; }
6711 fi
6712
6713   if test "x$ac_ct_NMEDIT" = x; then
6714     NMEDIT=":"
6715   else
6716     case $cross_compiling:$ac_tool_warned in
6717 yes:)
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6720 ac_tool_warned=yes ;;
6721 esac
6722     NMEDIT=$ac_ct_NMEDIT
6723   fi
6724 else
6725   NMEDIT="$ac_cv_prog_NMEDIT"
6726 fi
6727
6728     if test -n "$ac_tool_prefix"; then
6729   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6730 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6732 $as_echo_n "checking for $ac_word... " >&6; }
6733 if ${ac_cv_prog_LIPO+:} false; then :
6734   $as_echo_n "(cached) " >&6
6735 else
6736   if test -n "$LIPO"; then
6737   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6738 else
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740 for as_dir in $PATH
6741 do
6742   IFS=$as_save_IFS
6743   test -z "$as_dir" && as_dir=.
6744     for ac_exec_ext in '' $ac_executable_extensions; do
6745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6746     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6748     break 2
6749   fi
6750 done
6751   done
6752 IFS=$as_save_IFS
6753
6754 fi
6755 fi
6756 LIPO=$ac_cv_prog_LIPO
6757 if test -n "$LIPO"; then
6758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6759 $as_echo "$LIPO" >&6; }
6760 else
6761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6762 $as_echo "no" >&6; }
6763 fi
6764
6765
6766 fi
6767 if test -z "$ac_cv_prog_LIPO"; then
6768   ac_ct_LIPO=$LIPO
6769   # Extract the first word of "lipo", so it can be a program name with args.
6770 set dummy lipo; ac_word=$2
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6772 $as_echo_n "checking for $ac_word... " >&6; }
6773 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6774   $as_echo_n "(cached) " >&6
6775 else
6776   if test -n "$ac_ct_LIPO"; then
6777   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6778 else
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780 for as_dir in $PATH
6781 do
6782   IFS=$as_save_IFS
6783   test -z "$as_dir" && as_dir=.
6784     for ac_exec_ext in '' $ac_executable_extensions; do
6785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6786     ac_cv_prog_ac_ct_LIPO="lipo"
6787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6788     break 2
6789   fi
6790 done
6791   done
6792 IFS=$as_save_IFS
6793
6794 fi
6795 fi
6796 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6797 if test -n "$ac_ct_LIPO"; then
6798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6799 $as_echo "$ac_ct_LIPO" >&6; }
6800 else
6801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6802 $as_echo "no" >&6; }
6803 fi
6804
6805   if test "x$ac_ct_LIPO" = x; then
6806     LIPO=":"
6807   else
6808     case $cross_compiling:$ac_tool_warned in
6809 yes:)
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6812 ac_tool_warned=yes ;;
6813 esac
6814     LIPO=$ac_ct_LIPO
6815   fi
6816 else
6817   LIPO="$ac_cv_prog_LIPO"
6818 fi
6819
6820     if test -n "$ac_tool_prefix"; then
6821   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6822 set dummy ${ac_tool_prefix}otool; ac_word=$2
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6824 $as_echo_n "checking for $ac_word... " >&6; }
6825 if ${ac_cv_prog_OTOOL+:} false; then :
6826   $as_echo_n "(cached) " >&6
6827 else
6828   if test -n "$OTOOL"; then
6829   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6830 else
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832 for as_dir in $PATH
6833 do
6834   IFS=$as_save_IFS
6835   test -z "$as_dir" && as_dir=.
6836     for ac_exec_ext in '' $ac_executable_extensions; do
6837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6838     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6840     break 2
6841   fi
6842 done
6843   done
6844 IFS=$as_save_IFS
6845
6846 fi
6847 fi
6848 OTOOL=$ac_cv_prog_OTOOL
6849 if test -n "$OTOOL"; then
6850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6851 $as_echo "$OTOOL" >&6; }
6852 else
6853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6854 $as_echo "no" >&6; }
6855 fi
6856
6857
6858 fi
6859 if test -z "$ac_cv_prog_OTOOL"; then
6860   ac_ct_OTOOL=$OTOOL
6861   # Extract the first word of "otool", so it can be a program name with args.
6862 set dummy otool; ac_word=$2
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6864 $as_echo_n "checking for $ac_word... " >&6; }
6865 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6866   $as_echo_n "(cached) " >&6
6867 else
6868   if test -n "$ac_ct_OTOOL"; then
6869   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6870 else
6871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872 for as_dir in $PATH
6873 do
6874   IFS=$as_save_IFS
6875   test -z "$as_dir" && as_dir=.
6876     for ac_exec_ext in '' $ac_executable_extensions; do
6877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6878     ac_cv_prog_ac_ct_OTOOL="otool"
6879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6880     break 2
6881   fi
6882 done
6883   done
6884 IFS=$as_save_IFS
6885
6886 fi
6887 fi
6888 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6889 if test -n "$ac_ct_OTOOL"; then
6890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6891 $as_echo "$ac_ct_OTOOL" >&6; }
6892 else
6893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6894 $as_echo "no" >&6; }
6895 fi
6896
6897   if test "x$ac_ct_OTOOL" = x; then
6898     OTOOL=":"
6899   else
6900     case $cross_compiling:$ac_tool_warned in
6901 yes:)
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6904 ac_tool_warned=yes ;;
6905 esac
6906     OTOOL=$ac_ct_OTOOL
6907   fi
6908 else
6909   OTOOL="$ac_cv_prog_OTOOL"
6910 fi
6911
6912     if test -n "$ac_tool_prefix"; then
6913   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6914 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916 $as_echo_n "checking for $ac_word... " >&6; }
6917 if ${ac_cv_prog_OTOOL64+:} false; then :
6918   $as_echo_n "(cached) " >&6
6919 else
6920   if test -n "$OTOOL64"; then
6921   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6922 else
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 for as_dir in $PATH
6925 do
6926   IFS=$as_save_IFS
6927   test -z "$as_dir" && as_dir=.
6928     for ac_exec_ext in '' $ac_executable_extensions; do
6929   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6930     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6932     break 2
6933   fi
6934 done
6935   done
6936 IFS=$as_save_IFS
6937
6938 fi
6939 fi
6940 OTOOL64=$ac_cv_prog_OTOOL64
6941 if test -n "$OTOOL64"; then
6942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6943 $as_echo "$OTOOL64" >&6; }
6944 else
6945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946 $as_echo "no" >&6; }
6947 fi
6948
6949
6950 fi
6951 if test -z "$ac_cv_prog_OTOOL64"; then
6952   ac_ct_OTOOL64=$OTOOL64
6953   # Extract the first word of "otool64", so it can be a program name with args.
6954 set dummy otool64; ac_word=$2
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6956 $as_echo_n "checking for $ac_word... " >&6; }
6957 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6958   $as_echo_n "(cached) " >&6
6959 else
6960   if test -n "$ac_ct_OTOOL64"; then
6961   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6962 else
6963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964 for as_dir in $PATH
6965 do
6966   IFS=$as_save_IFS
6967   test -z "$as_dir" && as_dir=.
6968     for ac_exec_ext in '' $ac_executable_extensions; do
6969   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6970     ac_cv_prog_ac_ct_OTOOL64="otool64"
6971     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6972     break 2
6973   fi
6974 done
6975   done
6976 IFS=$as_save_IFS
6977
6978 fi
6979 fi
6980 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6981 if test -n "$ac_ct_OTOOL64"; then
6982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6983 $as_echo "$ac_ct_OTOOL64" >&6; }
6984 else
6985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6986 $as_echo "no" >&6; }
6987 fi
6988
6989   if test "x$ac_ct_OTOOL64" = x; then
6990     OTOOL64=":"
6991   else
6992     case $cross_compiling:$ac_tool_warned in
6993 yes:)
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6996 ac_tool_warned=yes ;;
6997 esac
6998     OTOOL64=$ac_ct_OTOOL64
6999   fi
7000 else
7001   OTOOL64="$ac_cv_prog_OTOOL64"
7002 fi
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7031 $as_echo_n "checking for -single_module linker flag... " >&6; }
7032 if ${lt_cv_apple_cc_single_mod+:} false; then :
7033   $as_echo_n "(cached) " >&6
7034 else
7035   lt_cv_apple_cc_single_mod=no
7036       if test -z "${LT_MULTI_MODULE}"; then
7037         # By default we will add the -single_module flag. You can override
7038         # by either setting the environment variable LT_MULTI_MODULE
7039         # non-empty at configure time, or by adding -multi_module to the
7040         # link flags.
7041         rm -rf libconftest.dylib*
7042         echo "int foo(void){return 1;}" > conftest.c
7043         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7044 -dynamiclib -Wl,-single_module conftest.c" >&5
7045         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7046           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7047         _lt_result=$?
7048         # If there is a non-empty error log, and "single_module"
7049         # appears in it, assume the flag caused a linker warning
7050         if test -s conftest.err && $GREP single_module conftest.err; then
7051           cat conftest.err >&5
7052         # Otherwise, if the output was created with a 0 exit code from
7053         # the compiler, it worked.
7054         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7055           lt_cv_apple_cc_single_mod=yes
7056         else
7057           cat conftest.err >&5
7058         fi
7059         rm -rf libconftest.dylib*
7060         rm -f conftest.*
7061       fi
7062 fi
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7064 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7065
7066     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7067 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7068 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7069   $as_echo_n "(cached) " >&6
7070 else
7071   lt_cv_ld_exported_symbols_list=no
7072       save_LDFLAGS=$LDFLAGS
7073       echo "_main" > conftest.sym
7074       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7075       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7076 /* end confdefs.h.  */
7077
7078 int
7079 main ()
7080 {
7081
7082   ;
7083   return 0;
7084 }
7085 _ACEOF
7086 if ac_fn_c_try_link "$LINENO"; then :
7087   lt_cv_ld_exported_symbols_list=yes
7088 else
7089   lt_cv_ld_exported_symbols_list=no
7090 fi
7091 rm -f core conftest.err conftest.$ac_objext \
7092     conftest$ac_exeext conftest.$ac_ext
7093         LDFLAGS="$save_LDFLAGS"
7094
7095 fi
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7097 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7098
7099     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7100 $as_echo_n "checking for -force_load linker flag... " >&6; }
7101 if ${lt_cv_ld_force_load+:} false; then :
7102   $as_echo_n "(cached) " >&6
7103 else
7104   lt_cv_ld_force_load=no
7105       cat > conftest.c << _LT_EOF
7106 int forced_loaded() { return 2;}
7107 _LT_EOF
7108       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7109       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7110       echo "$AR cru libconftest.a conftest.o" >&5
7111       $AR cru libconftest.a conftest.o 2>&5
7112       echo "$RANLIB libconftest.a" >&5
7113       $RANLIB libconftest.a 2>&5
7114       cat > conftest.c << _LT_EOF
7115 int main() { return 0;}
7116 _LT_EOF
7117       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7118       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7119       _lt_result=$?
7120       if test -s conftest.err && $GREP force_load conftest.err; then
7121         cat conftest.err >&5
7122       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7123         lt_cv_ld_force_load=yes
7124       else
7125         cat conftest.err >&5
7126       fi
7127         rm -f conftest.err libconftest.a conftest conftest.c
7128         rm -rf conftest.dSYM
7129
7130 fi
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7132 $as_echo "$lt_cv_ld_force_load" >&6; }
7133     case $host_os in
7134     rhapsody* | darwin1.[012])
7135       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7136     darwin1.*)
7137       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7138     darwin*) # darwin 5.x on
7139       # if running on 10.5 or later, the deployment target defaults
7140       # to the OS version, if on x86, and 10.4, the deployment
7141       # target defaults to 10.4. Don't you love it?
7142       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7143         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7144           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7145         10.[012]*)
7146           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7147         10.*)
7148           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7149       esac
7150     ;;
7151   esac
7152     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7153       _lt_dar_single_mod='$single_module'
7154     fi
7155     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7156       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7157     else
7158       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7159     fi
7160     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7161       _lt_dsymutil='~$DSYMUTIL $lib || :'
7162     else
7163       _lt_dsymutil=
7164     fi
7165     ;;
7166   esac
7167
7168 ac_ext=c
7169 ac_cpp='$CPP $CPPFLAGS'
7170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7174 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7175 # On Suns, sometimes $CPP names a directory.
7176 if test -n "$CPP" && test -d "$CPP"; then
7177   CPP=
7178 fi
7179 if test -z "$CPP"; then
7180   if ${ac_cv_prog_CPP+:} false; then :
7181   $as_echo_n "(cached) " >&6
7182 else
7183       # Double quotes because CPP needs to be expanded
7184     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7185     do
7186       ac_preproc_ok=false
7187 for ac_c_preproc_warn_flag in '' yes
7188 do
7189   # Use a header file that comes with gcc, so configuring glibc
7190   # with a fresh cross-compiler works.
7191   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7192   # <limits.h> exists even on freestanding compilers.
7193   # On the NeXT, cc -E runs the code through the compiler's parser,
7194   # not just through cpp. "Syntax error" is here to catch this case.
7195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7196 /* end confdefs.h.  */
7197 #ifdef __STDC__
7198 # include <limits.h>
7199 #else
7200 # include <assert.h>
7201 #endif
7202                      Syntax error
7203 _ACEOF
7204 if ac_fn_c_try_cpp "$LINENO"; then :
7205
7206 else
7207   # Broken: fails on valid input.
7208 continue
7209 fi
7210 rm -f conftest.err conftest.i conftest.$ac_ext
7211
7212   # OK, works on sane cases.  Now check whether nonexistent headers
7213   # can be detected and how.
7214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7215 /* end confdefs.h.  */
7216 #include <ac_nonexistent.h>
7217 _ACEOF
7218 if ac_fn_c_try_cpp "$LINENO"; then :
7219   # Broken: success on invalid input.
7220 continue
7221 else
7222   # Passes both tests.
7223 ac_preproc_ok=:
7224 break
7225 fi
7226 rm -f conftest.err conftest.i conftest.$ac_ext
7227
7228 done
7229 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7230 rm -f conftest.i conftest.err conftest.$ac_ext
7231 if $ac_preproc_ok; then :
7232   break
7233 fi
7234
7235     done
7236     ac_cv_prog_CPP=$CPP
7237
7238 fi
7239   CPP=$ac_cv_prog_CPP
7240 else
7241   ac_cv_prog_CPP=$CPP
7242 fi
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7244 $as_echo "$CPP" >&6; }
7245 ac_preproc_ok=false
7246 for ac_c_preproc_warn_flag in '' yes
7247 do
7248   # Use a header file that comes with gcc, so configuring glibc
7249   # with a fresh cross-compiler works.
7250   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7251   # <limits.h> exists even on freestanding compilers.
7252   # On the NeXT, cc -E runs the code through the compiler's parser,
7253   # not just through cpp. "Syntax error" is here to catch this case.
7254   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7255 /* end confdefs.h.  */
7256 #ifdef __STDC__
7257 # include <limits.h>
7258 #else
7259 # include <assert.h>
7260 #endif
7261                      Syntax error
7262 _ACEOF
7263 if ac_fn_c_try_cpp "$LINENO"; then :
7264
7265 else
7266   # Broken: fails on valid input.
7267 continue
7268 fi
7269 rm -f conftest.err conftest.i conftest.$ac_ext
7270
7271   # OK, works on sane cases.  Now check whether nonexistent headers
7272   # can be detected and how.
7273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7274 /* end confdefs.h.  */
7275 #include <ac_nonexistent.h>
7276 _ACEOF
7277 if ac_fn_c_try_cpp "$LINENO"; then :
7278   # Broken: success on invalid input.
7279 continue
7280 else
7281   # Passes both tests.
7282 ac_preproc_ok=:
7283 break
7284 fi
7285 rm -f conftest.err conftest.i conftest.$ac_ext
7286
7287 done
7288 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7289 rm -f conftest.i conftest.err conftest.$ac_ext
7290 if $ac_preproc_ok; then :
7291
7292 else
7293   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7295 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7296 See \`config.log' for more details" "$LINENO" 5; }
7297 fi
7298
7299 ac_ext=c
7300 ac_cpp='$CPP $CPPFLAGS'
7301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7304
7305
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7307 $as_echo_n "checking for ANSI C header files... " >&6; }
7308 if ${ac_cv_header_stdc+:} false; then :
7309   $as_echo_n "(cached) " >&6
7310 else
7311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7312 /* end confdefs.h.  */
7313 #include <stdlib.h>
7314 #include <stdarg.h>
7315 #include <string.h>
7316 #include <float.h>
7317
7318 int
7319 main ()
7320 {
7321
7322   ;
7323   return 0;
7324 }
7325 _ACEOF
7326 if ac_fn_c_try_compile "$LINENO"; then :
7327   ac_cv_header_stdc=yes
7328 else
7329   ac_cv_header_stdc=no
7330 fi
7331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7332
7333 if test $ac_cv_header_stdc = yes; then
7334   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7335   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7336 /* end confdefs.h.  */
7337 #include <string.h>
7338
7339 _ACEOF
7340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7341   $EGREP "memchr" >/dev/null 2>&1; then :
7342
7343 else
7344   ac_cv_header_stdc=no
7345 fi
7346 rm -f conftest*
7347
7348 fi
7349
7350 if test $ac_cv_header_stdc = yes; then
7351   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7352   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353 /* end confdefs.h.  */
7354 #include <stdlib.h>
7355
7356 _ACEOF
7357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7358   $EGREP "free" >/dev/null 2>&1; then :
7359
7360 else
7361   ac_cv_header_stdc=no
7362 fi
7363 rm -f conftest*
7364
7365 fi
7366
7367 if test $ac_cv_header_stdc = yes; then
7368   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7369   if test "$cross_compiling" = yes; then :
7370   :
7371 else
7372   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7373 /* end confdefs.h.  */
7374 #include <ctype.h>
7375 #include <stdlib.h>
7376 #if ((' ' & 0x0FF) == 0x020)
7377 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7378 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7379 #else
7380 # define ISLOWER(c) \
7381                    (('a' <= (c) && (c) <= 'i') \
7382                      || ('j' <= (c) && (c) <= 'r') \
7383                      || ('s' <= (c) && (c) <= 'z'))
7384 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7385 #endif
7386
7387 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7388 int
7389 main ()
7390 {
7391   int i;
7392   for (i = 0; i < 256; i++)
7393     if (XOR (islower (i), ISLOWER (i))
7394         || toupper (i) != TOUPPER (i))
7395       return 2;
7396   return 0;
7397 }
7398 _ACEOF
7399 if ac_fn_c_try_run "$LINENO"; then :
7400
7401 else
7402   ac_cv_header_stdc=no
7403 fi
7404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7405   conftest.$ac_objext conftest.beam conftest.$ac_ext
7406 fi
7407
7408 fi
7409 fi
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7411 $as_echo "$ac_cv_header_stdc" >&6; }
7412 if test $ac_cv_header_stdc = yes; then
7413
7414 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7415
7416 fi
7417
7418 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7419 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7420                   inttypes.h stdint.h unistd.h
7421 do :
7422   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7423 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7424 "
7425 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7426   cat >>confdefs.h <<_ACEOF
7427 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7428 _ACEOF
7429
7430 fi
7431
7432 done
7433
7434
7435 for ac_header in dlfcn.h
7436 do :
7437   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7438 "
7439 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7440   cat >>confdefs.h <<_ACEOF
7441 #define HAVE_DLFCN_H 1
7442 _ACEOF
7443
7444 fi
7445
7446 done
7447
7448
7449
7450
7451
7452 # Set options
7453 enable_win32_dll=yes
7454
7455 case $host in
7456 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7457   if test -n "$ac_tool_prefix"; then
7458   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7459 set dummy ${ac_tool_prefix}as; ac_word=$2
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7461 $as_echo_n "checking for $ac_word... " >&6; }
7462 if ${ac_cv_prog_AS+:} false; then :
7463   $as_echo_n "(cached) " >&6
7464 else
7465   if test -n "$AS"; then
7466   ac_cv_prog_AS="$AS" # Let the user override the test.
7467 else
7468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7469 for as_dir in $PATH
7470 do
7471   IFS=$as_save_IFS
7472   test -z "$as_dir" && as_dir=.
7473     for ac_exec_ext in '' $ac_executable_extensions; do
7474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7475     ac_cv_prog_AS="${ac_tool_prefix}as"
7476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7477     break 2
7478   fi
7479 done
7480   done
7481 IFS=$as_save_IFS
7482
7483 fi
7484 fi
7485 AS=$ac_cv_prog_AS
7486 if test -n "$AS"; then
7487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7488 $as_echo "$AS" >&6; }
7489 else
7490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7491 $as_echo "no" >&6; }
7492 fi
7493
7494
7495 fi
7496 if test -z "$ac_cv_prog_AS"; then
7497   ac_ct_AS=$AS
7498   # Extract the first word of "as", so it can be a program name with args.
7499 set dummy as; ac_word=$2
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7501 $as_echo_n "checking for $ac_word... " >&6; }
7502 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7503   $as_echo_n "(cached) " >&6
7504 else
7505   if test -n "$ac_ct_AS"; then
7506   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7507 else
7508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509 for as_dir in $PATH
7510 do
7511   IFS=$as_save_IFS
7512   test -z "$as_dir" && as_dir=.
7513     for ac_exec_ext in '' $ac_executable_extensions; do
7514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7515     ac_cv_prog_ac_ct_AS="as"
7516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7517     break 2
7518   fi
7519 done
7520   done
7521 IFS=$as_save_IFS
7522
7523 fi
7524 fi
7525 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7526 if test -n "$ac_ct_AS"; then
7527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7528 $as_echo "$ac_ct_AS" >&6; }
7529 else
7530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7531 $as_echo "no" >&6; }
7532 fi
7533
7534   if test "x$ac_ct_AS" = x; then
7535     AS="false"
7536   else
7537     case $cross_compiling:$ac_tool_warned in
7538 yes:)
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7541 ac_tool_warned=yes ;;
7542 esac
7543     AS=$ac_ct_AS
7544   fi
7545 else
7546   AS="$ac_cv_prog_AS"
7547 fi
7548
7549   if test -n "$ac_tool_prefix"; then
7550   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7551 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7553 $as_echo_n "checking for $ac_word... " >&6; }
7554 if ${ac_cv_prog_DLLTOOL+:} false; then :
7555   $as_echo_n "(cached) " >&6
7556 else
7557   if test -n "$DLLTOOL"; then
7558   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7559 else
7560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561 for as_dir in $PATH
7562 do
7563   IFS=$as_save_IFS
7564   test -z "$as_dir" && as_dir=.
7565     for ac_exec_ext in '' $ac_executable_extensions; do
7566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7567     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7569     break 2
7570   fi
7571 done
7572   done
7573 IFS=$as_save_IFS
7574
7575 fi
7576 fi
7577 DLLTOOL=$ac_cv_prog_DLLTOOL
7578 if test -n "$DLLTOOL"; then
7579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7580 $as_echo "$DLLTOOL" >&6; }
7581 else
7582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7583 $as_echo "no" >&6; }
7584 fi
7585
7586
7587 fi
7588 if test -z "$ac_cv_prog_DLLTOOL"; then
7589   ac_ct_DLLTOOL=$DLLTOOL
7590   # Extract the first word of "dlltool", so it can be a program name with args.
7591 set dummy dlltool; ac_word=$2
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7593 $as_echo_n "checking for $ac_word... " >&6; }
7594 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7595   $as_echo_n "(cached) " >&6
7596 else
7597   if test -n "$ac_ct_DLLTOOL"; then
7598   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7599 else
7600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601 for as_dir in $PATH
7602 do
7603   IFS=$as_save_IFS
7604   test -z "$as_dir" && as_dir=.
7605     for ac_exec_ext in '' $ac_executable_extensions; do
7606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7607     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7609     break 2
7610   fi
7611 done
7612   done
7613 IFS=$as_save_IFS
7614
7615 fi
7616 fi
7617 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7618 if test -n "$ac_ct_DLLTOOL"; then
7619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7620 $as_echo "$ac_ct_DLLTOOL" >&6; }
7621 else
7622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7623 $as_echo "no" >&6; }
7624 fi
7625
7626   if test "x$ac_ct_DLLTOOL" = x; then
7627     DLLTOOL="false"
7628   else
7629     case $cross_compiling:$ac_tool_warned in
7630 yes:)
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7633 ac_tool_warned=yes ;;
7634 esac
7635     DLLTOOL=$ac_ct_DLLTOOL
7636   fi
7637 else
7638   DLLTOOL="$ac_cv_prog_DLLTOOL"
7639 fi
7640
7641   if test -n "$ac_tool_prefix"; then
7642   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7643 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7645 $as_echo_n "checking for $ac_word... " >&6; }
7646 if ${ac_cv_prog_OBJDUMP+:} false; then :
7647   $as_echo_n "(cached) " >&6
7648 else
7649   if test -n "$OBJDUMP"; then
7650   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7651 else
7652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7653 for as_dir in $PATH
7654 do
7655   IFS=$as_save_IFS
7656   test -z "$as_dir" && as_dir=.
7657     for ac_exec_ext in '' $ac_executable_extensions; do
7658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7659     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7661     break 2
7662   fi
7663 done
7664   done
7665 IFS=$as_save_IFS
7666
7667 fi
7668 fi
7669 OBJDUMP=$ac_cv_prog_OBJDUMP
7670 if test -n "$OBJDUMP"; then
7671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7672 $as_echo "$OBJDUMP" >&6; }
7673 else
7674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7675 $as_echo "no" >&6; }
7676 fi
7677
7678
7679 fi
7680 if test -z "$ac_cv_prog_OBJDUMP"; then
7681   ac_ct_OBJDUMP=$OBJDUMP
7682   # Extract the first word of "objdump", so it can be a program name with args.
7683 set dummy objdump; ac_word=$2
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7685 $as_echo_n "checking for $ac_word... " >&6; }
7686 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7687   $as_echo_n "(cached) " >&6
7688 else
7689   if test -n "$ac_ct_OBJDUMP"; then
7690   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7691 else
7692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7693 for as_dir in $PATH
7694 do
7695   IFS=$as_save_IFS
7696   test -z "$as_dir" && as_dir=.
7697     for ac_exec_ext in '' $ac_executable_extensions; do
7698   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7699     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7701     break 2
7702   fi
7703 done
7704   done
7705 IFS=$as_save_IFS
7706
7707 fi
7708 fi
7709 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7710 if test -n "$ac_ct_OBJDUMP"; then
7711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7712 $as_echo "$ac_ct_OBJDUMP" >&6; }
7713 else
7714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7715 $as_echo "no" >&6; }
7716 fi
7717
7718   if test "x$ac_ct_OBJDUMP" = x; then
7719     OBJDUMP="false"
7720   else
7721     case $cross_compiling:$ac_tool_warned in
7722 yes:)
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7725 ac_tool_warned=yes ;;
7726 esac
7727     OBJDUMP=$ac_ct_OBJDUMP
7728   fi
7729 else
7730   OBJDUMP="$ac_cv_prog_OBJDUMP"
7731 fi
7732
7733   ;;
7734 esac
7735
7736 test -z "$AS" && AS=as
7737
7738
7739
7740
7741
7742 test -z "$DLLTOOL" && DLLTOOL=dlltool
7743
7744
7745
7746
7747
7748 test -z "$OBJDUMP" && OBJDUMP=objdump
7749
7750
7751
7752
7753
7754
7755
7756         enable_dlopen=no
7757
7758
7759
7760             # Check whether --enable-shared was given.
7761 if test "${enable_shared+set}" = set; then :
7762   enableval=$enable_shared; p=${PACKAGE-default}
7763     case $enableval in
7764     yes) enable_shared=yes ;;
7765     no) enable_shared=no ;;
7766     *)
7767       enable_shared=no
7768       # Look at the argument we got.  We use all the common list separators.
7769       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7770       for pkg in $enableval; do
7771         IFS="$lt_save_ifs"
7772         if test "X$pkg" = "X$p"; then
7773           enable_shared=yes
7774         fi
7775       done
7776       IFS="$lt_save_ifs"
7777       ;;
7778     esac
7779 else
7780   enable_shared=yes
7781 fi
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791   # Check whether --enable-static was given.
7792 if test "${enable_static+set}" = set; then :
7793   enableval=$enable_static; p=${PACKAGE-default}
7794     case $enableval in
7795     yes) enable_static=yes ;;
7796     no) enable_static=no ;;
7797     *)
7798      enable_static=no
7799       # Look at the argument we got.  We use all the common list separators.
7800       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7801       for pkg in $enableval; do
7802         IFS="$lt_save_ifs"
7803         if test "X$pkg" = "X$p"; then
7804           enable_static=yes
7805         fi
7806       done
7807       IFS="$lt_save_ifs"
7808       ;;
7809     esac
7810 else
7811   enable_static=yes
7812 fi
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823 # Check whether --with-pic was given.
7824 if test "${with_pic+set}" = set; then :
7825   withval=$with_pic; lt_p=${PACKAGE-default}
7826     case $withval in
7827     yes|no) pic_mode=$withval ;;
7828     *)
7829       pic_mode=default
7830       # Look at the argument we got.  We use all the common list separators.
7831       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7832       for lt_pkg in $withval; do
7833         IFS="$lt_save_ifs"
7834         if test "X$lt_pkg" = "X$lt_p"; then
7835           pic_mode=yes
7836         fi
7837       done
7838       IFS="$lt_save_ifs"
7839       ;;
7840     esac
7841 else
7842   pic_mode=default
7843 fi
7844
7845
7846 test -z "$pic_mode" && pic_mode=default
7847
7848
7849
7850
7851
7852
7853
7854   # Check whether --enable-fast-install was given.
7855 if test "${enable_fast_install+set}" = set; then :
7856   enableval=$enable_fast_install; p=${PACKAGE-default}
7857     case $enableval in
7858     yes) enable_fast_install=yes ;;
7859     no) enable_fast_install=no ;;
7860     *)
7861       enable_fast_install=no
7862       # Look at the argument we got.  We use all the common list separators.
7863       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7864       for pkg in $enableval; do
7865         IFS="$lt_save_ifs"
7866         if test "X$pkg" = "X$p"; then
7867           enable_fast_install=yes
7868         fi
7869       done
7870       IFS="$lt_save_ifs"
7871       ;;
7872     esac
7873 else
7874   enable_fast_install=yes
7875 fi
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887 # This can be used to rebuild libtool when needed
7888 LIBTOOL_DEPS="$ltmain"
7889
7890 # Always use our own libtool.
7891 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922 test -z "$LN_S" && LN_S="ln -s"
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937 if test -n "${ZSH_VERSION+set}" ; then
7938    setopt NO_GLOB_SUBST
7939 fi
7940
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7942 $as_echo_n "checking for objdir... " >&6; }
7943 if ${lt_cv_objdir+:} false; then :
7944   $as_echo_n "(cached) " >&6
7945 else
7946   rm -f .libs 2>/dev/null
7947 mkdir .libs 2>/dev/null
7948 if test -d .libs; then
7949   lt_cv_objdir=.libs
7950 else
7951   # MS-DOS does not allow filenames that begin with a dot.
7952   lt_cv_objdir=_libs
7953 fi
7954 rmdir .libs 2>/dev/null
7955 fi
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7957 $as_echo "$lt_cv_objdir" >&6; }
7958 objdir=$lt_cv_objdir
7959
7960
7961
7962
7963
7964 cat >>confdefs.h <<_ACEOF
7965 #define LT_OBJDIR "$lt_cv_objdir/"
7966 _ACEOF
7967
7968
7969
7970
7971 case $host_os in
7972 aix3*)
7973   # AIX sometimes has problems with the GCC collect2 program.  For some
7974   # reason, if we set the COLLECT_NAMES environment variable, the problems
7975   # vanish in a puff of smoke.
7976   if test "X${COLLECT_NAMES+set}" != Xset; then
7977     COLLECT_NAMES=
7978     export COLLECT_NAMES
7979   fi
7980   ;;
7981 esac
7982
7983 # Global variables:
7984 ofile=libtool
7985 can_build_shared=yes
7986
7987 # All known linkers require a `.a' archive for static linking (except MSVC,
7988 # which needs '.lib').
7989 libext=a
7990
7991 with_gnu_ld="$lt_cv_prog_gnu_ld"
7992
7993 old_CC="$CC"
7994 old_CFLAGS="$CFLAGS"
7995
7996 # Set sane defaults for various variables
7997 test -z "$CC" && CC=cc
7998 test -z "$LTCC" && LTCC=$CC
7999 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8000 test -z "$LD" && LD=ld
8001 test -z "$ac_objext" && ac_objext=o
8002
8003 for cc_temp in $compiler""; do
8004   case $cc_temp in
8005     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8006     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8007     \-*) ;;
8008     *) break;;
8009   esac
8010 done
8011 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8012
8013
8014 # Only perform the check for file, if the check method requires it
8015 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8016 case $deplibs_check_method in
8017 file_magic*)
8018   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8019     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8020 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8021 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8022   $as_echo_n "(cached) " >&6
8023 else
8024   case $MAGIC_CMD in
8025 [\\/*] |  ?:[\\/]*)
8026   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8027   ;;
8028 *)
8029   lt_save_MAGIC_CMD="$MAGIC_CMD"
8030   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8031   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8032   for ac_dir in $ac_dummy; do
8033     IFS="$lt_save_ifs"
8034     test -z "$ac_dir" && ac_dir=.
8035     if test -f $ac_dir/${ac_tool_prefix}file; then
8036       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8037       if test -n "$file_magic_test_file"; then
8038         case $deplibs_check_method in
8039         "file_magic "*)
8040           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8041           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8042           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8043             $EGREP "$file_magic_regex" > /dev/null; then
8044             :
8045           else
8046             cat <<_LT_EOF 1>&2
8047
8048 *** Warning: the command libtool uses to detect shared libraries,
8049 *** $file_magic_cmd, produces output that libtool cannot recognize.
8050 *** The result is that libtool may fail to recognize shared libraries
8051 *** as such.  This will affect the creation of libtool libraries that
8052 *** depend on shared libraries, but programs linked with such libtool
8053 *** libraries will work regardless of this problem.  Nevertheless, you
8054 *** may want to report the problem to your system manager and/or to
8055 *** bug-libtool@gnu.org
8056
8057 _LT_EOF
8058           fi ;;
8059         esac
8060       fi
8061       break
8062     fi
8063   done
8064   IFS="$lt_save_ifs"
8065   MAGIC_CMD="$lt_save_MAGIC_CMD"
8066   ;;
8067 esac
8068 fi
8069
8070 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8071 if test -n "$MAGIC_CMD"; then
8072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8073 $as_echo "$MAGIC_CMD" >&6; }
8074 else
8075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8076 $as_echo "no" >&6; }
8077 fi
8078
8079
8080
8081
8082
8083 if test -z "$lt_cv_path_MAGIC_CMD"; then
8084   if test -n "$ac_tool_prefix"; then
8085     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8086 $as_echo_n "checking for file... " >&6; }
8087 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8088   $as_echo_n "(cached) " >&6
8089 else
8090   case $MAGIC_CMD in
8091 [\\/*] |  ?:[\\/]*)
8092   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8093   ;;
8094 *)
8095   lt_save_MAGIC_CMD="$MAGIC_CMD"
8096   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8097   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8098   for ac_dir in $ac_dummy; do
8099     IFS="$lt_save_ifs"
8100     test -z "$ac_dir" && ac_dir=.
8101     if test -f $ac_dir/file; then
8102       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8103       if test -n "$file_magic_test_file"; then
8104         case $deplibs_check_method in
8105         "file_magic "*)
8106           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8107           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8108           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8109             $EGREP "$file_magic_regex" > /dev/null; then
8110             :
8111           else
8112             cat <<_LT_EOF 1>&2
8113
8114 *** Warning: the command libtool uses to detect shared libraries,
8115 *** $file_magic_cmd, produces output that libtool cannot recognize.
8116 *** The result is that libtool may fail to recognize shared libraries
8117 *** as such.  This will affect the creation of libtool libraries that
8118 *** depend on shared libraries, but programs linked with such libtool
8119 *** libraries will work regardless of this problem.  Nevertheless, you
8120 *** may want to report the problem to your system manager and/or to
8121 *** bug-libtool@gnu.org
8122
8123 _LT_EOF
8124           fi ;;
8125         esac
8126       fi
8127       break
8128     fi
8129   done
8130   IFS="$lt_save_ifs"
8131   MAGIC_CMD="$lt_save_MAGIC_CMD"
8132   ;;
8133 esac
8134 fi
8135
8136 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8137 if test -n "$MAGIC_CMD"; then
8138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8139 $as_echo "$MAGIC_CMD" >&6; }
8140 else
8141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8142 $as_echo "no" >&6; }
8143 fi
8144
8145
8146   else
8147     MAGIC_CMD=:
8148   fi
8149 fi
8150
8151   fi
8152   ;;
8153 esac
8154
8155 # Use C for the default configuration in the libtool script
8156
8157 lt_save_CC="$CC"
8158 ac_ext=c
8159 ac_cpp='$CPP $CPPFLAGS'
8160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8163
8164
8165 # Source file extension for C test sources.
8166 ac_ext=c
8167
8168 # Object file extension for compiled C test sources.
8169 objext=o
8170 objext=$objext
8171
8172 # Code to be used in simple compile tests
8173 lt_simple_compile_test_code="int some_variable = 0;"
8174
8175 # Code to be used in simple link tests
8176 lt_simple_link_test_code='int main(){return(0);}'
8177
8178
8179
8180
8181
8182
8183
8184 # If no C compiler was specified, use CC.
8185 LTCC=${LTCC-"$CC"}
8186
8187 # If no C compiler flags were specified, use CFLAGS.
8188 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8189
8190 # Allow CC to be a program name with arguments.
8191 compiler=$CC
8192
8193 # Save the default compiler, since it gets overwritten when the other
8194 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8195 compiler_DEFAULT=$CC
8196
8197 # save warnings/boilerplate of simple test code
8198 ac_outfile=conftest.$ac_objext
8199 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8200 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8201 _lt_compiler_boilerplate=`cat conftest.err`
8202 $RM conftest*
8203
8204 ac_outfile=conftest.$ac_objext
8205 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8206 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8207 _lt_linker_boilerplate=`cat conftest.err`
8208 $RM -r conftest*
8209
8210
8211 ## CAVEAT EMPTOR:
8212 ## There is no encapsulation within the following macros, do not change
8213 ## the running order or otherwise move them around unless you know exactly
8214 ## what you are doing...
8215 if test -n "$compiler"; then
8216
8217 lt_prog_compiler_no_builtin_flag=
8218
8219 if test "$GCC" = yes; then
8220   case $cc_basename in
8221   nvcc*)
8222     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8223   *)
8224     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8225   esac
8226
8227   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8228 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8229 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8230   $as_echo_n "(cached) " >&6
8231 else
8232   lt_cv_prog_compiler_rtti_exceptions=no
8233    ac_outfile=conftest.$ac_objext
8234    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8235    lt_compiler_flag="-fno-rtti -fno-exceptions"
8236    # Insert the option either (1) after the last *FLAGS variable, or
8237    # (2) before a word containing "conftest.", or (3) at the end.
8238    # Note that $ac_compile itself does not contain backslashes and begins
8239    # with a dollar sign (not a hyphen), so the echo should work correctly.
8240    # The option is referenced via a variable to avoid confusing sed.
8241    lt_compile=`echo "$ac_compile" | $SED \
8242    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8243    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8244    -e 's:$: $lt_compiler_flag:'`
8245    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8246    (eval "$lt_compile" 2>conftest.err)
8247    ac_status=$?
8248    cat conftest.err >&5
8249    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250    if (exit $ac_status) && test -s "$ac_outfile"; then
8251      # The compiler can only warn and ignore the option if not recognized
8252      # So say no if there are warnings other than the usual output.
8253      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8254      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8255      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8256        lt_cv_prog_compiler_rtti_exceptions=yes
8257      fi
8258    fi
8259    $RM conftest*
8260
8261 fi
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8263 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8264
8265 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8266     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8267 else
8268     :
8269 fi
8270
8271 fi
8272
8273
8274
8275
8276
8277
8278   lt_prog_compiler_wl=
8279 lt_prog_compiler_pic=
8280 lt_prog_compiler_static=
8281
8282
8283   if test "$GCC" = yes; then
8284     lt_prog_compiler_wl='-Wl,'
8285     lt_prog_compiler_static='-static'
8286
8287     case $host_os in
8288       aix*)
8289       # All AIX code is PIC.
8290       if test "$host_cpu" = ia64; then
8291         # AIX 5 now supports IA64 processor
8292         lt_prog_compiler_static='-Bstatic'
8293       fi
8294       ;;
8295
8296     amigaos*)
8297       case $host_cpu in
8298       powerpc)
8299             # see comment about AmigaOS4 .so support
8300             lt_prog_compiler_pic='-fPIC'
8301         ;;
8302       m68k)
8303             # FIXME: we need at least 68020 code to build shared libraries, but
8304             # adding the `-m68020' flag to GCC prevents building anything better,
8305             # like `-m68040'.
8306             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8307         ;;
8308       esac
8309       ;;
8310
8311     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8312       # PIC is the default for these OSes.
8313       ;;
8314
8315     mingw* | cygwin* | pw32* | os2* | cegcc*)
8316       # This hack is so that the source file can tell whether it is being
8317       # built for inclusion in a dll (and should export symbols for example).
8318       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8319       # (--disable-auto-import) libraries
8320       lt_prog_compiler_pic='-DDLL_EXPORT'
8321       ;;
8322
8323     darwin* | rhapsody*)
8324       # PIC is the default on this platform
8325       # Common symbols not allowed in MH_DYLIB files
8326       lt_prog_compiler_pic='-fno-common'
8327       ;;
8328
8329     haiku*)
8330       # PIC is the default for Haiku.
8331       # The "-static" flag exists, but is broken.
8332       lt_prog_compiler_static=
8333       ;;
8334
8335     hpux*)
8336       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8337       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8338       # sets the default TLS model and affects inlining.
8339       case $host_cpu in
8340       hppa*64*)
8341         # +Z the default
8342         ;;
8343       *)
8344         lt_prog_compiler_pic='-fPIC'
8345         ;;
8346       esac
8347       ;;
8348
8349     interix[3-9]*)
8350       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8351       # Instead, we relocate shared libraries at runtime.
8352       ;;
8353
8354     msdosdjgpp*)
8355       # Just because we use GCC doesn't mean we suddenly get shared libraries
8356       # on systems that don't support them.
8357       lt_prog_compiler_can_build_shared=no
8358       enable_shared=no
8359       ;;
8360
8361     *nto* | *qnx*)
8362       # QNX uses GNU C++, but need to define -shared option too, otherwise
8363       # it will coredump.
8364       lt_prog_compiler_pic='-fPIC -shared'
8365       ;;
8366
8367     sysv4*MP*)
8368       if test -d /usr/nec; then
8369         lt_prog_compiler_pic=-Kconform_pic
8370       fi
8371       ;;
8372
8373     *)
8374       lt_prog_compiler_pic='-fPIC'
8375       ;;
8376     esac
8377
8378     case $cc_basename in
8379     nvcc*) # Cuda Compiler Driver 2.2
8380       lt_prog_compiler_wl='-Xlinker '
8381       if test -n "$lt_prog_compiler_pic"; then
8382         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8383       fi
8384       ;;
8385     esac
8386   else
8387     # PORTME Check for flag to pass linker flags through the system compiler.
8388     case $host_os in
8389     aix*)
8390       lt_prog_compiler_wl='-Wl,'
8391       if test "$host_cpu" = ia64; then
8392         # AIX 5 now supports IA64 processor
8393         lt_prog_compiler_static='-Bstatic'
8394       else
8395         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8396       fi
8397       ;;
8398
8399     mingw* | cygwin* | pw32* | os2* | cegcc*)
8400       # This hack is so that the source file can tell whether it is being
8401       # built for inclusion in a dll (and should export symbols for example).
8402       lt_prog_compiler_pic='-DDLL_EXPORT'
8403       ;;
8404
8405     hpux9* | hpux10* | hpux11*)
8406       lt_prog_compiler_wl='-Wl,'
8407       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8408       # not for PA HP-UX.
8409       case $host_cpu in
8410       hppa*64*|ia64*)
8411         # +Z the default
8412         ;;
8413       *)
8414         lt_prog_compiler_pic='+Z'
8415         ;;
8416       esac
8417       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8418       lt_prog_compiler_static='${wl}-a ${wl}archive'
8419       ;;
8420
8421     irix5* | irix6* | nonstopux*)
8422       lt_prog_compiler_wl='-Wl,'
8423       # PIC (with -KPIC) is the default.
8424       lt_prog_compiler_static='-non_shared'
8425       ;;
8426
8427     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8428       case $cc_basename in
8429       # old Intel for x86_64 which still supported -KPIC.
8430       ecc*)
8431         lt_prog_compiler_wl='-Wl,'
8432         lt_prog_compiler_pic='-KPIC'
8433         lt_prog_compiler_static='-static'
8434         ;;
8435       # icc used to be incompatible with GCC.
8436       # ICC 10 doesn't accept -KPIC any more.
8437       icc* | ifort*)
8438         lt_prog_compiler_wl='-Wl,'
8439         lt_prog_compiler_pic='-fPIC'
8440         lt_prog_compiler_static='-static'
8441         ;;
8442       # Lahey Fortran 8.1.
8443       lf95*)
8444         lt_prog_compiler_wl='-Wl,'
8445         lt_prog_compiler_pic='--shared'
8446         lt_prog_compiler_static='--static'
8447         ;;
8448       nagfor*)
8449         # NAG Fortran compiler
8450         lt_prog_compiler_wl='-Wl,-Wl,,'
8451         lt_prog_compiler_pic='-PIC'
8452         lt_prog_compiler_static='-Bstatic'
8453         ;;
8454       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8455         # Portland Group compilers (*not* the Pentium gcc compiler,
8456         # which looks to be a dead project)
8457         lt_prog_compiler_wl='-Wl,'
8458         lt_prog_compiler_pic='-fpic'
8459         lt_prog_compiler_static='-Bstatic'
8460         ;;
8461       ccc*)
8462         lt_prog_compiler_wl='-Wl,'
8463         # All Alpha code is PIC.
8464         lt_prog_compiler_static='-non_shared'
8465         ;;
8466       xl* | bgxl* | bgf* | mpixl*)
8467         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8468         lt_prog_compiler_wl='-Wl,'
8469         lt_prog_compiler_pic='-qpic'
8470         lt_prog_compiler_static='-qstaticlink'
8471         ;;
8472       *)
8473         case `$CC -V 2>&1 | sed 5q` in
8474         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8475           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8476           lt_prog_compiler_pic='-KPIC'
8477           lt_prog_compiler_static='-Bstatic'
8478           lt_prog_compiler_wl=''
8479           ;;
8480         *Sun\ F* | *Sun*Fortran*)
8481           lt_prog_compiler_pic='-KPIC'
8482           lt_prog_compiler_static='-Bstatic'
8483           lt_prog_compiler_wl='-Qoption ld '
8484           ;;
8485         *Sun\ C*)
8486           # Sun C 5.9
8487           lt_prog_compiler_pic='-KPIC'
8488           lt_prog_compiler_static='-Bstatic'
8489           lt_prog_compiler_wl='-Wl,'
8490           ;;
8491         *Intel*\ [CF]*Compiler*)
8492           lt_prog_compiler_wl='-Wl,'
8493           lt_prog_compiler_pic='-fPIC'
8494           lt_prog_compiler_static='-static'
8495           ;;
8496         *Portland\ Group*)
8497           lt_prog_compiler_wl='-Wl,'
8498           lt_prog_compiler_pic='-fpic'
8499           lt_prog_compiler_static='-Bstatic'
8500           ;;
8501         esac
8502         ;;
8503       esac
8504       ;;
8505
8506     newsos6)
8507       lt_prog_compiler_pic='-KPIC'
8508       lt_prog_compiler_static='-Bstatic'
8509       ;;
8510
8511     *nto* | *qnx*)
8512       # QNX uses GNU C++, but need to define -shared option too, otherwise
8513       # it will coredump.
8514       lt_prog_compiler_pic='-fPIC -shared'
8515       ;;
8516
8517     osf3* | osf4* | osf5*)
8518       lt_prog_compiler_wl='-Wl,'
8519       # All OSF/1 code is PIC.
8520       lt_prog_compiler_static='-non_shared'
8521       ;;
8522
8523     rdos*)
8524       lt_prog_compiler_static='-non_shared'
8525       ;;
8526
8527     solaris*)
8528       lt_prog_compiler_pic='-KPIC'
8529       lt_prog_compiler_static='-Bstatic'
8530       case $cc_basename in
8531       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8532         lt_prog_compiler_wl='-Qoption ld ';;
8533       *)
8534         lt_prog_compiler_wl='-Wl,';;
8535       esac
8536       ;;
8537
8538     sunos4*)
8539       lt_prog_compiler_wl='-Qoption ld '
8540       lt_prog_compiler_pic='-PIC'
8541       lt_prog_compiler_static='-Bstatic'
8542       ;;
8543
8544     sysv4 | sysv4.2uw2* | sysv4.3*)
8545       lt_prog_compiler_wl='-Wl,'
8546       lt_prog_compiler_pic='-KPIC'
8547       lt_prog_compiler_static='-Bstatic'
8548       ;;
8549
8550     sysv4*MP*)
8551       if test -d /usr/nec ;then
8552         lt_prog_compiler_pic='-Kconform_pic'
8553         lt_prog_compiler_static='-Bstatic'
8554       fi
8555       ;;
8556
8557     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8558       lt_prog_compiler_wl='-Wl,'
8559       lt_prog_compiler_pic='-KPIC'
8560       lt_prog_compiler_static='-Bstatic'
8561       ;;
8562
8563     unicos*)
8564       lt_prog_compiler_wl='-Wl,'
8565       lt_prog_compiler_can_build_shared=no
8566       ;;
8567
8568     uts4*)
8569       lt_prog_compiler_pic='-pic'
8570       lt_prog_compiler_static='-Bstatic'
8571       ;;
8572
8573     *)
8574       lt_prog_compiler_can_build_shared=no
8575       ;;
8576     esac
8577   fi
8578
8579 case $host_os in
8580   # For platforms which do not support PIC, -DPIC is meaningless:
8581   *djgpp*)
8582     lt_prog_compiler_pic=
8583     ;;
8584   *)
8585     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8586     ;;
8587 esac
8588
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8590 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8591 if ${lt_cv_prog_compiler_pic+:} false; then :
8592   $as_echo_n "(cached) " >&6
8593 else
8594   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8595 fi
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8597 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8598 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8599
8600 #
8601 # Check to make sure the PIC flag actually works.
8602 #
8603 if test -n "$lt_prog_compiler_pic"; then
8604   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8605 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8606 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8607   $as_echo_n "(cached) " >&6
8608 else
8609   lt_cv_prog_compiler_pic_works=no
8610    ac_outfile=conftest.$ac_objext
8611    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8612    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8613    # Insert the option either (1) after the last *FLAGS variable, or
8614    # (2) before a word containing "conftest.", or (3) at the end.
8615    # Note that $ac_compile itself does not contain backslashes and begins
8616    # with a dollar sign (not a hyphen), so the echo should work correctly.
8617    # The option is referenced via a variable to avoid confusing sed.
8618    lt_compile=`echo "$ac_compile" | $SED \
8619    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8620    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8621    -e 's:$: $lt_compiler_flag:'`
8622    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8623    (eval "$lt_compile" 2>conftest.err)
8624    ac_status=$?
8625    cat conftest.err >&5
8626    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627    if (exit $ac_status) && test -s "$ac_outfile"; then
8628      # The compiler can only warn and ignore the option if not recognized
8629      # So say no if there are warnings other than the usual output.
8630      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8631      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8632      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8633        lt_cv_prog_compiler_pic_works=yes
8634      fi
8635    fi
8636    $RM conftest*
8637
8638 fi
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8640 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8641
8642 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8643     case $lt_prog_compiler_pic in
8644      "" | " "*) ;;
8645      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8646      esac
8647 else
8648     lt_prog_compiler_pic=
8649      lt_prog_compiler_can_build_shared=no
8650 fi
8651
8652 fi
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664 #
8665 # Check to make sure the static flag actually works.
8666 #
8667 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8669 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8670 if ${lt_cv_prog_compiler_static_works+:} false; then :
8671   $as_echo_n "(cached) " >&6
8672 else
8673   lt_cv_prog_compiler_static_works=no
8674    save_LDFLAGS="$LDFLAGS"
8675    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8676    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8677    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8678      # The linker can only warn and ignore the option if not recognized
8679      # So say no if there are warnings
8680      if test -s conftest.err; then
8681        # Append any errors to the config.log.
8682        cat conftest.err 1>&5
8683        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8684        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8685        if diff conftest.exp conftest.er2 >/dev/null; then
8686          lt_cv_prog_compiler_static_works=yes
8687        fi
8688      else
8689        lt_cv_prog_compiler_static_works=yes
8690      fi
8691    fi
8692    $RM -r conftest*
8693    LDFLAGS="$save_LDFLAGS"
8694
8695 fi
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8697 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8698
8699 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8700     :
8701 else
8702     lt_prog_compiler_static=
8703 fi
8704
8705
8706
8707
8708
8709
8710
8711   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8712 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8713 if ${lt_cv_prog_compiler_c_o+:} false; then :
8714   $as_echo_n "(cached) " >&6
8715 else
8716   lt_cv_prog_compiler_c_o=no
8717    $RM -r conftest 2>/dev/null
8718    mkdir conftest
8719    cd conftest
8720    mkdir out
8721    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8722
8723    lt_compiler_flag="-o out/conftest2.$ac_objext"
8724    # Insert the option either (1) after the last *FLAGS variable, or
8725    # (2) before a word containing "conftest.", or (3) at the end.
8726    # Note that $ac_compile itself does not contain backslashes and begins
8727    # with a dollar sign (not a hyphen), so the echo should work correctly.
8728    lt_compile=`echo "$ac_compile" | $SED \
8729    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8730    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8731    -e 's:$: $lt_compiler_flag:'`
8732    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8733    (eval "$lt_compile" 2>out/conftest.err)
8734    ac_status=$?
8735    cat out/conftest.err >&5
8736    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8738    then
8739      # The compiler can only warn and ignore the option if not recognized
8740      # So say no if there are warnings
8741      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8742      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8743      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8744        lt_cv_prog_compiler_c_o=yes
8745      fi
8746    fi
8747    chmod u+w . 2>&5
8748    $RM conftest*
8749    # SGI C++ compiler will create directory out/ii_files/ for
8750    # template instantiation
8751    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8752    $RM out/* && rmdir out
8753    cd ..
8754    $RM -r conftest
8755    $RM conftest*
8756
8757 fi
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8759 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8760
8761
8762
8763
8764
8765
8766   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8767 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8768 if ${lt_cv_prog_compiler_c_o+:} false; then :
8769   $as_echo_n "(cached) " >&6
8770 else
8771   lt_cv_prog_compiler_c_o=no
8772    $RM -r conftest 2>/dev/null
8773    mkdir conftest
8774    cd conftest
8775    mkdir out
8776    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8777
8778    lt_compiler_flag="-o out/conftest2.$ac_objext"
8779    # Insert the option either (1) after the last *FLAGS variable, or
8780    # (2) before a word containing "conftest.", or (3) at the end.
8781    # Note that $ac_compile itself does not contain backslashes and begins
8782    # with a dollar sign (not a hyphen), so the echo should work correctly.
8783    lt_compile=`echo "$ac_compile" | $SED \
8784    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8785    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8786    -e 's:$: $lt_compiler_flag:'`
8787    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8788    (eval "$lt_compile" 2>out/conftest.err)
8789    ac_status=$?
8790    cat out/conftest.err >&5
8791    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8793    then
8794      # The compiler can only warn and ignore the option if not recognized
8795      # So say no if there are warnings
8796      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8797      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8798      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8799        lt_cv_prog_compiler_c_o=yes
8800      fi
8801    fi
8802    chmod u+w . 2>&5
8803    $RM conftest*
8804    # SGI C++ compiler will create directory out/ii_files/ for
8805    # template instantiation
8806    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8807    $RM out/* && rmdir out
8808    cd ..
8809    $RM -r conftest
8810    $RM conftest*
8811
8812 fi
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8814 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8815
8816
8817
8818
8819 hard_links="nottested"
8820 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8821   # do not overwrite the value of need_locks provided by the user
8822   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8823 $as_echo_n "checking if we can lock with hard links... " >&6; }
8824   hard_links=yes
8825   $RM conftest*
8826   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8827   touch conftest.a
8828   ln conftest.a conftest.b 2>&5 || hard_links=no
8829   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8831 $as_echo "$hard_links" >&6; }
8832   if test "$hard_links" = no; then
8833     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8834 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8835     need_locks=warn
8836   fi
8837 else
8838   need_locks=no
8839 fi
8840
8841
8842
8843
8844
8845
8846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8847 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8848
8849   runpath_var=
8850   allow_undefined_flag=
8851   always_export_symbols=no
8852   archive_cmds=
8853   archive_expsym_cmds=
8854   compiler_needs_object=no
8855   enable_shared_with_static_runtimes=no
8856   export_dynamic_flag_spec=
8857   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8858   hardcode_automatic=no
8859   hardcode_direct=no
8860   hardcode_direct_absolute=no
8861   hardcode_libdir_flag_spec=
8862   hardcode_libdir_separator=
8863   hardcode_minus_L=no
8864   hardcode_shlibpath_var=unsupported
8865   inherit_rpath=no
8866   link_all_deplibs=unknown
8867   module_cmds=
8868   module_expsym_cmds=
8869   old_archive_from_new_cmds=
8870   old_archive_from_expsyms_cmds=
8871   thread_safe_flag_spec=
8872   whole_archive_flag_spec=
8873   # include_expsyms should be a list of space-separated symbols to be *always*
8874   # included in the symbol list
8875   include_expsyms=
8876   # exclude_expsyms can be an extended regexp of symbols to exclude
8877   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8878   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8879   # as well as any symbol that contains `d'.
8880   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8881   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8882   # platforms (ab)use it in PIC code, but their linkers get confused if
8883   # the symbol is explicitly referenced.  Since portable code cannot
8884   # rely on this symbol name, it's probably fine to never include it in
8885   # preloaded symbol tables.
8886   # Exclude shared library initialization/finalization symbols.
8887   extract_expsyms_cmds=
8888
8889   case $host_os in
8890   cygwin* | mingw* | pw32* | cegcc*)
8891     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8892     # When not using gcc, we currently assume that we are using
8893     # Microsoft Visual C++.
8894     if test "$GCC" != yes; then
8895       with_gnu_ld=no
8896     fi
8897     ;;
8898   interix*)
8899     # we just hope/assume this is gcc and not c89 (= MSVC++)
8900     with_gnu_ld=yes
8901     ;;
8902   openbsd*)
8903     with_gnu_ld=no
8904     ;;
8905   linux* | k*bsd*-gnu | gnu*)
8906     link_all_deplibs=no
8907     ;;
8908   esac
8909
8910   ld_shlibs=yes
8911
8912   # On some targets, GNU ld is compatible enough with the native linker
8913   # that we're better off using the native interface for both.
8914   lt_use_gnu_ld_interface=no
8915   if test "$with_gnu_ld" = yes; then
8916     case $host_os in
8917       aix*)
8918         # The AIX port of GNU ld has always aspired to compatibility
8919         # with the native linker.  However, as the warning in the GNU ld
8920         # block says, versions before 2.19.5* couldn't really create working
8921         # shared libraries, regardless of the interface used.
8922         case `$LD -v 2>&1` in
8923           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8924           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8925           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8926           *)
8927             lt_use_gnu_ld_interface=yes
8928             ;;
8929         esac
8930         ;;
8931       *)
8932         lt_use_gnu_ld_interface=yes
8933         ;;
8934     esac
8935   fi
8936
8937   if test "$lt_use_gnu_ld_interface" = yes; then
8938     # If archive_cmds runs LD, not CC, wlarc should be empty
8939     wlarc='${wl}'
8940
8941     # Set some defaults for GNU ld with shared library support. These
8942     # are reset later if shared libraries are not supported. Putting them
8943     # here allows them to be overridden if necessary.
8944     runpath_var=LD_RUN_PATH
8945     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8946     export_dynamic_flag_spec='${wl}--export-dynamic'
8947     # ancient GNU ld didn't support --whole-archive et. al.
8948     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8949       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8950     else
8951       whole_archive_flag_spec=
8952     fi
8953     supports_anon_versioning=no
8954     case `$LD -v 2>&1` in
8955       *GNU\ gold*) supports_anon_versioning=yes ;;
8956       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8957       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8958       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8959       *\ 2.11.*) ;; # other 2.11 versions
8960       *) supports_anon_versioning=yes ;;
8961     esac
8962
8963     # See if GNU ld supports shared libraries.
8964     case $host_os in
8965     aix[3-9]*)
8966       # On AIX/PPC, the GNU linker is very broken
8967       if test "$host_cpu" != ia64; then
8968         ld_shlibs=no
8969         cat <<_LT_EOF 1>&2
8970
8971 *** Warning: the GNU linker, at least up to release 2.19, is reported
8972 *** to be unable to reliably create shared libraries on AIX.
8973 *** Therefore, libtool is disabling shared libraries support.  If you
8974 *** really care for shared libraries, you may want to install binutils
8975 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8976 *** You will then need to restart the configuration process.
8977
8978 _LT_EOF
8979       fi
8980       ;;
8981
8982     amigaos*)
8983       case $host_cpu in
8984       powerpc)
8985             # see comment about AmigaOS4 .so support
8986             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8987             archive_expsym_cmds=''
8988         ;;
8989       m68k)
8990             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)'
8991             hardcode_libdir_flag_spec='-L$libdir'
8992             hardcode_minus_L=yes
8993         ;;
8994       esac
8995       ;;
8996
8997     beos*)
8998       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8999         allow_undefined_flag=unsupported
9000         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9001         # support --undefined.  This deserves some investigation.  FIXME
9002         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9003       else
9004         ld_shlibs=no
9005       fi
9006       ;;
9007
9008     cygwin* | mingw* | pw32* | cegcc*)
9009       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9010       # as there is no search path for DLLs.
9011       hardcode_libdir_flag_spec='-L$libdir'
9012       export_dynamic_flag_spec='${wl}--export-all-symbols'
9013       allow_undefined_flag=unsupported
9014       always_export_symbols=no
9015       enable_shared_with_static_runtimes=yes
9016       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9017       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9018
9019       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9020         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9021         # If the export-symbols file already is a .def file (1st line
9022         # is EXPORTS), use it as is; otherwise, prepend...
9023         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9024           cp $export_symbols $output_objdir/$soname.def;
9025         else
9026           echo EXPORTS > $output_objdir/$soname.def;
9027           cat $export_symbols >> $output_objdir/$soname.def;
9028         fi~
9029         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9030       else
9031         ld_shlibs=no
9032       fi
9033       ;;
9034
9035     haiku*)
9036       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9037       link_all_deplibs=yes
9038       ;;
9039
9040     interix[3-9]*)
9041       hardcode_direct=no
9042       hardcode_shlibpath_var=no
9043       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9044       export_dynamic_flag_spec='${wl}-E'
9045       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9046       # Instead, shared libraries are loaded at an image base (0x10000000 by
9047       # default) and relocated if they conflict, which is a slow very memory
9048       # consuming and fragmenting process.  To avoid this, we pick a random,
9049       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9050       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9051       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9052       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'
9053       ;;
9054
9055     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9056       tmp_diet=no
9057       if test "$host_os" = linux-dietlibc; then
9058         case $cc_basename in
9059           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9060         esac
9061       fi
9062       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9063          && test "$tmp_diet" = no
9064       then
9065         tmp_addflag=' $pic_flag'
9066         tmp_sharedflag='-shared'
9067         case $cc_basename,$host_cpu in
9068         pgcc*)                          # Portland Group C compiler
9069           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9070           tmp_addflag=' $pic_flag'
9071           ;;
9072         pgf77* | pgf90* | pgf95* | pgfortran*)
9073                                         # Portland Group f77 and f90 compilers
9074           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9075           tmp_addflag=' $pic_flag -Mnomain' ;;
9076         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9077           tmp_addflag=' -i_dynamic' ;;
9078         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9079           tmp_addflag=' -i_dynamic -nofor_main' ;;
9080         ifc* | ifort*)                  # Intel Fortran compiler
9081           tmp_addflag=' -nofor_main' ;;
9082         lf95*)                          # Lahey Fortran 8.1
9083           whole_archive_flag_spec=
9084           tmp_sharedflag='--shared' ;;
9085         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9086           tmp_sharedflag='-qmkshrobj'
9087           tmp_addflag= ;;
9088         nvcc*)  # Cuda Compiler Driver 2.2
9089           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9090           compiler_needs_object=yes
9091           ;;
9092         esac
9093         case `$CC -V 2>&1 | sed 5q` in
9094         *Sun\ C*)                       # Sun C 5.9
9095           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9096           compiler_needs_object=yes
9097           tmp_sharedflag='-G' ;;
9098         *Sun\ F*)                       # Sun Fortran 8.3
9099           tmp_sharedflag='-G' ;;
9100         esac
9101         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9102
9103         if test "x$supports_anon_versioning" = xyes; then
9104           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9105             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9106             echo "local: *; };" >> $output_objdir/$libname.ver~
9107             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9108         fi
9109
9110         case $cc_basename in
9111         xlf* | bgf* | bgxlf* | mpixlf*)
9112           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9113           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9114           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9115           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9116           if test "x$supports_anon_versioning" = xyes; then
9117             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9118               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9119               echo "local: *; };" >> $output_objdir/$libname.ver~
9120               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9121           fi
9122           ;;
9123         esac
9124       else
9125         ld_shlibs=no
9126       fi
9127       ;;
9128
9129     netbsd* | netbsdelf*-gnu)
9130       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9131         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9132         wlarc=
9133       else
9134         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9135         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9136       fi
9137       ;;
9138
9139     solaris*)
9140       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9141         ld_shlibs=no
9142         cat <<_LT_EOF 1>&2
9143
9144 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9145 *** create shared libraries on Solaris systems.  Therefore, libtool
9146 *** is disabling shared libraries support.  We urge you to upgrade GNU
9147 *** binutils to release 2.9.1 or newer.  Another option is to modify
9148 *** your PATH or compiler configuration so that the native linker is
9149 *** used, and then restart.
9150
9151 _LT_EOF
9152       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9153         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9154         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9155       else
9156         ld_shlibs=no
9157       fi
9158       ;;
9159
9160     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9161       case `$LD -v 2>&1` in
9162         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9163         ld_shlibs=no
9164         cat <<_LT_EOF 1>&2
9165
9166 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9167 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9168 *** is disabling shared libraries support.  We urge you to upgrade GNU
9169 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9170 *** your PATH or compiler configuration so that the native linker is
9171 *** used, and then restart.
9172
9173 _LT_EOF
9174         ;;
9175         *)
9176           # For security reasons, it is highly recommended that you always
9177           # use absolute paths for naming shared libraries, and exclude the
9178           # DT_RUNPATH tag from executables and libraries.  But doing so
9179           # requires that you compile everything twice, which is a pain.
9180           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9181             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9182             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9183             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9184           else
9185             ld_shlibs=no
9186           fi
9187         ;;
9188       esac
9189       ;;
9190
9191     sunos4*)
9192       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9193       wlarc=
9194       hardcode_direct=yes
9195       hardcode_shlibpath_var=no
9196       ;;
9197
9198     *)
9199       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9200         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9201         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9202       else
9203         ld_shlibs=no
9204       fi
9205       ;;
9206     esac
9207
9208     if test "$ld_shlibs" = no; then
9209       runpath_var=
9210       hardcode_libdir_flag_spec=
9211       export_dynamic_flag_spec=
9212       whole_archive_flag_spec=
9213     fi
9214   else
9215     # PORTME fill in a description of your system's linker (not GNU ld)
9216     case $host_os in
9217     aix3*)
9218       allow_undefined_flag=unsupported
9219       always_export_symbols=yes
9220       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'
9221       # Note: this linker hardcodes the directories in LIBPATH if there
9222       # are no directories specified by -L.
9223       hardcode_minus_L=yes
9224       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9225         # Neither direct hardcoding nor static linking is supported with a
9226         # broken collect2.
9227         hardcode_direct=unsupported
9228       fi
9229       ;;
9230
9231     aix[4-9]*)
9232       if test "$host_cpu" = ia64; then
9233         # On IA64, the linker does run time linking by default, so we don't
9234         # have to do anything special.
9235         aix_use_runtimelinking=no
9236         exp_sym_flag='-Bexport'
9237         no_entry_flag=""
9238       else
9239         # If we're using GNU nm, then we don't want the "-C" option.
9240         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9241         # Also, AIX nm treats weak defined symbols like other global
9242         # defined symbols, whereas GNU nm marks them as "W".
9243         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9244           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9245         else
9246           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'
9247         fi
9248         aix_use_runtimelinking=no
9249
9250         # Test if we are trying to use run time linking or normal
9251         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9252         # need to do runtime linking.
9253         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9254           for ld_flag in $LDFLAGS; do
9255           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9256             aix_use_runtimelinking=yes
9257             break
9258           fi
9259           done
9260           ;;
9261         esac
9262
9263         exp_sym_flag='-bexport'
9264         no_entry_flag='-bnoentry'
9265       fi
9266
9267       # When large executables or shared objects are built, AIX ld can
9268       # have problems creating the table of contents.  If linking a library
9269       # or program results in "error TOC overflow" add -mminimal-toc to
9270       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9271       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9272
9273       archive_cmds=''
9274       hardcode_direct=yes
9275       hardcode_direct_absolute=yes
9276       hardcode_libdir_separator=':'
9277       link_all_deplibs=yes
9278       file_list_spec='${wl}-f,'
9279
9280       if test "$GCC" = yes; then
9281         case $host_os in aix4.[012]|aix4.[012].*)
9282         # We only want to do this on AIX 4.2 and lower, the check
9283         # below for broken collect2 doesn't work under 4.3+
9284           collect2name=`${CC} -print-prog-name=collect2`
9285           if test -f "$collect2name" &&
9286            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9287           then
9288           # We have reworked collect2
9289           :
9290           else
9291           # We have old collect2
9292           hardcode_direct=unsupported
9293           # It fails to find uninstalled libraries when the uninstalled
9294           # path is not listed in the libpath.  Setting hardcode_minus_L
9295           # to unsupported forces relinking
9296           hardcode_minus_L=yes
9297           hardcode_libdir_flag_spec='-L$libdir'
9298           hardcode_libdir_separator=
9299           fi
9300           ;;
9301         esac
9302         shared_flag='-shared'
9303         if test "$aix_use_runtimelinking" = yes; then
9304           shared_flag="$shared_flag "'${wl}-G'
9305         fi
9306         link_all_deplibs=no
9307       else
9308         # not using gcc
9309         if test "$host_cpu" = ia64; then
9310         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9311         # chokes on -Wl,-G. The following line is correct:
9312           shared_flag='-G'
9313         else
9314           if test "$aix_use_runtimelinking" = yes; then
9315             shared_flag='${wl}-G'
9316           else
9317             shared_flag='${wl}-bM:SRE'
9318           fi
9319         fi
9320       fi
9321
9322       export_dynamic_flag_spec='${wl}-bexpall'
9323       # It seems that -bexpall does not export symbols beginning with
9324       # underscore (_), so it is better to generate a list of symbols to export.
9325       always_export_symbols=yes
9326       if test "$aix_use_runtimelinking" = yes; then
9327         # Warning - without using the other runtime loading flags (-brtl),
9328         # -berok will link without error, but may produce a broken library.
9329         allow_undefined_flag='-berok'
9330         # Determine the default libpath from the value encoded in an
9331         # empty executable.
9332         if test "${lt_cv_aix_libpath+set}" = set; then
9333   aix_libpath=$lt_cv_aix_libpath
9334 else
9335   if ${lt_cv_aix_libpath_+:} false; then :
9336   $as_echo_n "(cached) " >&6
9337 else
9338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9339 /* end confdefs.h.  */
9340
9341 int
9342 main ()
9343 {
9344
9345   ;
9346   return 0;
9347 }
9348 _ACEOF
9349 if ac_fn_c_try_link "$LINENO"; then :
9350
9351   lt_aix_libpath_sed='
9352       /Import File Strings/,/^$/ {
9353           /^0/ {
9354               s/^0  *\([^ ]*\) *$/\1/
9355               p
9356           }
9357       }'
9358   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9359   # Check for a 64-bit object if we didn't find anything.
9360   if test -z "$lt_cv_aix_libpath_"; then
9361     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9362   fi
9363 fi
9364 rm -f core conftest.err conftest.$ac_objext \
9365     conftest$ac_exeext conftest.$ac_ext
9366   if test -z "$lt_cv_aix_libpath_"; then
9367     lt_cv_aix_libpath_="/usr/lib:/lib"
9368   fi
9369
9370 fi
9371
9372   aix_libpath=$lt_cv_aix_libpath_
9373 fi
9374
9375         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9376         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9377       else
9378         if test "$host_cpu" = ia64; then
9379           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9380           allow_undefined_flag="-z nodefs"
9381           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"
9382         else
9383          # Determine the default libpath from the value encoded in an
9384          # empty executable.
9385          if test "${lt_cv_aix_libpath+set}" = set; then
9386   aix_libpath=$lt_cv_aix_libpath
9387 else
9388   if ${lt_cv_aix_libpath_+:} false; then :
9389   $as_echo_n "(cached) " >&6
9390 else
9391   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9392 /* end confdefs.h.  */
9393
9394 int
9395 main ()
9396 {
9397
9398   ;
9399   return 0;
9400 }
9401 _ACEOF
9402 if ac_fn_c_try_link "$LINENO"; then :
9403
9404   lt_aix_libpath_sed='
9405       /Import File Strings/,/^$/ {
9406           /^0/ {
9407               s/^0  *\([^ ]*\) *$/\1/
9408               p
9409           }
9410       }'
9411   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9412   # Check for a 64-bit object if we didn't find anything.
9413   if test -z "$lt_cv_aix_libpath_"; then
9414     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9415   fi
9416 fi
9417 rm -f core conftest.err conftest.$ac_objext \
9418     conftest$ac_exeext conftest.$ac_ext
9419   if test -z "$lt_cv_aix_libpath_"; then
9420     lt_cv_aix_libpath_="/usr/lib:/lib"
9421   fi
9422
9423 fi
9424
9425   aix_libpath=$lt_cv_aix_libpath_
9426 fi
9427
9428          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9429           # Warning - without using the other run time loading flags,
9430           # -berok will link without error, but may produce a broken library.
9431           no_undefined_flag=' ${wl}-bernotok'
9432           allow_undefined_flag=' ${wl}-berok'
9433           if test "$with_gnu_ld" = yes; then
9434             # We only use this code for GNU lds that support --whole-archive.
9435             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9436           else
9437             # Exported symbols can be pulled into shared objects from archives
9438             whole_archive_flag_spec='$convenience'
9439           fi
9440           archive_cmds_need_lc=yes
9441           # This is similar to how AIX traditionally builds its shared libraries.
9442           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'
9443         fi
9444       fi
9445       ;;
9446
9447     amigaos*)
9448       case $host_cpu in
9449       powerpc)
9450             # see comment about AmigaOS4 .so support
9451             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9452             archive_expsym_cmds=''
9453         ;;
9454       m68k)
9455             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)'
9456             hardcode_libdir_flag_spec='-L$libdir'
9457             hardcode_minus_L=yes
9458         ;;
9459       esac
9460       ;;
9461
9462     bsdi[45]*)
9463       export_dynamic_flag_spec=-rdynamic
9464       ;;
9465
9466     cygwin* | mingw* | pw32* | cegcc*)
9467       # When not using gcc, we currently assume that we are using
9468       # Microsoft Visual C++.
9469       # hardcode_libdir_flag_spec is actually meaningless, as there is
9470       # no search path for DLLs.
9471       case $cc_basename in
9472       cl*)
9473         # Native MSVC
9474         hardcode_libdir_flag_spec=' '
9475         allow_undefined_flag=unsupported
9476         always_export_symbols=yes
9477         file_list_spec='@'
9478         # Tell ltmain to make .lib files, not .a files.
9479         libext=lib
9480         # Tell ltmain to make .dll files, not .so files.
9481         shrext_cmds=".dll"
9482         # FIXME: Setting linknames here is a bad hack.
9483         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9484         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9485             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9486           else
9487             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9488           fi~
9489           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9490           linknames='
9491         # The linker will not automatically build a static lib if we build a DLL.
9492         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9493         enable_shared_with_static_runtimes=yes
9494         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9495         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9496         # Don't use ranlib
9497         old_postinstall_cmds='chmod 644 $oldlib'
9498         postlink_cmds='lt_outputfile="@OUTPUT@"~
9499           lt_tool_outputfile="@TOOL_OUTPUT@"~
9500           case $lt_outputfile in
9501             *.exe|*.EXE) ;;
9502             *)
9503               lt_outputfile="$lt_outputfile.exe"
9504               lt_tool_outputfile="$lt_tool_outputfile.exe"
9505               ;;
9506           esac~
9507           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9508             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9509             $RM "$lt_outputfile.manifest";
9510           fi'
9511         ;;
9512       *)
9513         # Assume MSVC wrapper
9514         hardcode_libdir_flag_spec=' '
9515         allow_undefined_flag=unsupported
9516         # Tell ltmain to make .lib files, not .a files.
9517         libext=lib
9518         # Tell ltmain to make .dll files, not .so files.
9519         shrext_cmds=".dll"
9520         # FIXME: Setting linknames here is a bad hack.
9521         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9522         # The linker will automatically build a .lib file if we build a DLL.
9523         old_archive_from_new_cmds='true'
9524         # FIXME: Should let the user specify the lib program.
9525         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9526         enable_shared_with_static_runtimes=yes
9527         ;;
9528       esac
9529       ;;
9530
9531     darwin* | rhapsody*)
9532
9533
9534   archive_cmds_need_lc=no
9535   hardcode_direct=no
9536   hardcode_automatic=yes
9537   hardcode_shlibpath_var=unsupported
9538   if test "$lt_cv_ld_force_load" = "yes"; then
9539     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9540
9541   else
9542     whole_archive_flag_spec=''
9543   fi
9544   link_all_deplibs=yes
9545   allow_undefined_flag="$_lt_dar_allow_undefined"
9546   case $cc_basename in
9547      ifort*) _lt_dar_can_shared=yes ;;
9548      *) _lt_dar_can_shared=$GCC ;;
9549   esac
9550   if test "$_lt_dar_can_shared" = "yes"; then
9551     output_verbose_link_cmd=func_echo_all
9552     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9553     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9554     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}"
9555     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}"
9556
9557   else
9558   ld_shlibs=no
9559   fi
9560
9561       ;;
9562
9563     dgux*)
9564       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9565       hardcode_libdir_flag_spec='-L$libdir'
9566       hardcode_shlibpath_var=no
9567       ;;
9568
9569     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9570     # support.  Future versions do this automatically, but an explicit c++rt0.o
9571     # does not break anything, and helps significantly (at the cost of a little
9572     # extra space).
9573     freebsd2.2*)
9574       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9575       hardcode_libdir_flag_spec='-R$libdir'
9576       hardcode_direct=yes
9577       hardcode_shlibpath_var=no
9578       ;;
9579
9580     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9581     freebsd2.*)
9582       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9583       hardcode_direct=yes
9584       hardcode_minus_L=yes
9585       hardcode_shlibpath_var=no
9586       ;;
9587
9588     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9589     freebsd* | dragonfly*)
9590       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9591       hardcode_libdir_flag_spec='-R$libdir'
9592       hardcode_direct=yes
9593       hardcode_shlibpath_var=no
9594       ;;
9595
9596     hpux9*)
9597       if test "$GCC" = yes; then
9598         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9599       else
9600         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'
9601       fi
9602       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9603       hardcode_libdir_separator=:
9604       hardcode_direct=yes
9605
9606       # hardcode_minus_L: Not really in the search PATH,
9607       # but as the default location of the library.
9608       hardcode_minus_L=yes
9609       export_dynamic_flag_spec='${wl}-E'
9610       ;;
9611
9612     hpux10*)
9613       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9614         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9615       else
9616         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9617       fi
9618       if test "$with_gnu_ld" = no; then
9619         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9620         hardcode_libdir_separator=:
9621         hardcode_direct=yes
9622         hardcode_direct_absolute=yes
9623         export_dynamic_flag_spec='${wl}-E'
9624         # hardcode_minus_L: Not really in the search PATH,
9625         # but as the default location of the library.
9626         hardcode_minus_L=yes
9627       fi
9628       ;;
9629
9630     hpux11*)
9631       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9632         case $host_cpu in
9633         hppa*64*)
9634           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9635           ;;
9636         ia64*)
9637           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9638           ;;
9639         *)
9640           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9641           ;;
9642         esac
9643       else
9644         case $host_cpu in
9645         hppa*64*)
9646           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9647           ;;
9648         ia64*)
9649           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9650           ;;
9651         *)
9652
9653           # Older versions of the 11.00 compiler do not understand -b yet
9654           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9655           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9656 $as_echo_n "checking if $CC understands -b... " >&6; }
9657 if ${lt_cv_prog_compiler__b+:} false; then :
9658   $as_echo_n "(cached) " >&6
9659 else
9660   lt_cv_prog_compiler__b=no
9661    save_LDFLAGS="$LDFLAGS"
9662    LDFLAGS="$LDFLAGS -b"
9663    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9664    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9665      # The linker can only warn and ignore the option if not recognized
9666      # So say no if there are warnings
9667      if test -s conftest.err; then
9668        # Append any errors to the config.log.
9669        cat conftest.err 1>&5
9670        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9671        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9672        if diff conftest.exp conftest.er2 >/dev/null; then
9673          lt_cv_prog_compiler__b=yes
9674        fi
9675      else
9676        lt_cv_prog_compiler__b=yes
9677      fi
9678    fi
9679    $RM -r conftest*
9680    LDFLAGS="$save_LDFLAGS"
9681
9682 fi
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9684 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9685
9686 if test x"$lt_cv_prog_compiler__b" = xyes; then
9687     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9688 else
9689     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9690 fi
9691
9692           ;;
9693         esac
9694       fi
9695       if test "$with_gnu_ld" = no; then
9696         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9697         hardcode_libdir_separator=:
9698
9699         case $host_cpu in
9700         hppa*64*|ia64*)
9701           hardcode_direct=no
9702           hardcode_shlibpath_var=no
9703           ;;
9704         *)
9705           hardcode_direct=yes
9706           hardcode_direct_absolute=yes
9707           export_dynamic_flag_spec='${wl}-E'
9708
9709           # hardcode_minus_L: Not really in the search PATH,
9710           # but as the default location of the library.
9711           hardcode_minus_L=yes
9712           ;;
9713         esac
9714       fi
9715       ;;
9716
9717     irix5* | irix6* | nonstopux*)
9718       if test "$GCC" = yes; then
9719         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9720         # Try to use the -exported_symbol ld option, if it does not
9721         # work, assume that -exports_file does not work either and
9722         # implicitly export all symbols.
9723         # This should be the same for all languages, so no per-tag cache variable.
9724         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9725 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9726 if ${lt_cv_irix_exported_symbol+:} false; then :
9727   $as_echo_n "(cached) " >&6
9728 else
9729   save_LDFLAGS="$LDFLAGS"
9730            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9731            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9732 /* end confdefs.h.  */
9733 int foo (void) { return 0; }
9734 _ACEOF
9735 if ac_fn_c_try_link "$LINENO"; then :
9736   lt_cv_irix_exported_symbol=yes
9737 else
9738   lt_cv_irix_exported_symbol=no
9739 fi
9740 rm -f core conftest.err conftest.$ac_objext \
9741     conftest$ac_exeext conftest.$ac_ext
9742            LDFLAGS="$save_LDFLAGS"
9743 fi
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9745 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9746         if test "$lt_cv_irix_exported_symbol" = yes; then
9747           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9748         fi
9749       else
9750         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9751         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9752       fi
9753       archive_cmds_need_lc='no'
9754       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9755       hardcode_libdir_separator=:
9756       inherit_rpath=yes
9757       link_all_deplibs=yes
9758       ;;
9759
9760     netbsd* | netbsdelf*-gnu)
9761       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9762         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9763       else
9764         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9765       fi
9766       hardcode_libdir_flag_spec='-R$libdir'
9767       hardcode_direct=yes
9768       hardcode_shlibpath_var=no
9769       ;;
9770
9771     newsos6)
9772       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9773       hardcode_direct=yes
9774       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9775       hardcode_libdir_separator=:
9776       hardcode_shlibpath_var=no
9777       ;;
9778
9779     *nto* | *qnx*)
9780       ;;
9781
9782     openbsd*)
9783       if test -f /usr/libexec/ld.so; then
9784         hardcode_direct=yes
9785         hardcode_shlibpath_var=no
9786         hardcode_direct_absolute=yes
9787         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9788           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9789           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9790           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9791           export_dynamic_flag_spec='${wl}-E'
9792         else
9793           case $host_os in
9794            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9795              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9796              hardcode_libdir_flag_spec='-R$libdir'
9797              ;;
9798            *)
9799              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9800              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9801              ;;
9802           esac
9803         fi
9804       else
9805         ld_shlibs=no
9806       fi
9807       ;;
9808
9809     os2*)
9810       hardcode_libdir_flag_spec='-L$libdir'
9811       hardcode_minus_L=yes
9812       allow_undefined_flag=unsupported
9813       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'
9814       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9815       ;;
9816
9817     osf3*)
9818       if test "$GCC" = yes; then
9819         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9820         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9821       else
9822         allow_undefined_flag=' -expect_unresolved \*'
9823         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9824       fi
9825       archive_cmds_need_lc='no'
9826       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9827       hardcode_libdir_separator=:
9828       ;;
9829
9830     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9831       if test "$GCC" = yes; then
9832         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9833         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9834         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9835       else
9836         allow_undefined_flag=' -expect_unresolved \*'
9837         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9838         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~
9839         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9840
9841         # Both c and cxx compiler support -rpath directly
9842         hardcode_libdir_flag_spec='-rpath $libdir'
9843       fi
9844       archive_cmds_need_lc='no'
9845       hardcode_libdir_separator=:
9846       ;;
9847
9848     solaris*)
9849       no_undefined_flag=' -z defs'
9850       if test "$GCC" = yes; then
9851         wlarc='${wl}'
9852         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9853         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9854           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9855       else
9856         case `$CC -V 2>&1` in
9857         *"Compilers 5.0"*)
9858           wlarc=''
9859           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9860           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9861           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9862           ;;
9863         *)
9864           wlarc='${wl}'
9865           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9866           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9867           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9868           ;;
9869         esac
9870       fi
9871       hardcode_libdir_flag_spec='-R$libdir'
9872       hardcode_shlibpath_var=no
9873       case $host_os in
9874       solaris2.[0-5] | solaris2.[0-5].*) ;;
9875       *)
9876         # The compiler driver will combine and reorder linker options,
9877         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9878         # but is careful enough not to reorder.
9879         # Supported since Solaris 2.6 (maybe 2.5.1?)
9880         if test "$GCC" = yes; then
9881           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9882         else
9883           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9884         fi
9885         ;;
9886       esac
9887       link_all_deplibs=yes
9888       ;;
9889
9890     sunos4*)
9891       if test "x$host_vendor" = xsequent; then
9892         # Use $CC to link under sequent, because it throws in some extra .o
9893         # files that make .init and .fini sections work.
9894         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9895       else
9896         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9897       fi
9898       hardcode_libdir_flag_spec='-L$libdir'
9899       hardcode_direct=yes
9900       hardcode_minus_L=yes
9901       hardcode_shlibpath_var=no
9902       ;;
9903
9904     sysv4)
9905       case $host_vendor in
9906         sni)
9907           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9908           hardcode_direct=yes # is this really true???
9909         ;;
9910         siemens)
9911           ## LD is ld it makes a PLAMLIB
9912           ## CC just makes a GrossModule.
9913           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9914           reload_cmds='$CC -r -o $output$reload_objs'
9915           hardcode_direct=no
9916         ;;
9917         motorola)
9918           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9919           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9920         ;;
9921       esac
9922       runpath_var='LD_RUN_PATH'
9923       hardcode_shlibpath_var=no
9924       ;;
9925
9926     sysv4.3*)
9927       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9928       hardcode_shlibpath_var=no
9929       export_dynamic_flag_spec='-Bexport'
9930       ;;
9931
9932     sysv4*MP*)
9933       if test -d /usr/nec; then
9934         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9935         hardcode_shlibpath_var=no
9936         runpath_var=LD_RUN_PATH
9937         hardcode_runpath_var=yes
9938         ld_shlibs=yes
9939       fi
9940       ;;
9941
9942     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9943       no_undefined_flag='${wl}-z,text'
9944       archive_cmds_need_lc=no
9945       hardcode_shlibpath_var=no
9946       runpath_var='LD_RUN_PATH'
9947
9948       if test "$GCC" = yes; then
9949         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9950         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9951       else
9952         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9953         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9954       fi
9955       ;;
9956
9957     sysv5* | sco3.2v5* | sco5v6*)
9958       # Note: We can NOT use -z defs as we might desire, because we do not
9959       # link with -lc, and that would cause any symbols used from libc to
9960       # always be unresolved, which means just about no library would
9961       # ever link correctly.  If we're not using GNU ld we use -z text
9962       # though, which does catch some bad symbols but isn't as heavy-handed
9963       # as -z defs.
9964       no_undefined_flag='${wl}-z,text'
9965       allow_undefined_flag='${wl}-z,nodefs'
9966       archive_cmds_need_lc=no
9967       hardcode_shlibpath_var=no
9968       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9969       hardcode_libdir_separator=':'
9970       link_all_deplibs=yes
9971       export_dynamic_flag_spec='${wl}-Bexport'
9972       runpath_var='LD_RUN_PATH'
9973
9974       if test "$GCC" = yes; then
9975         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9976         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9977       else
9978         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9979         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9980       fi
9981       ;;
9982
9983     uts4*)
9984       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9985       hardcode_libdir_flag_spec='-L$libdir'
9986       hardcode_shlibpath_var=no
9987       ;;
9988
9989     *)
9990       ld_shlibs=no
9991       ;;
9992     esac
9993
9994     if test x$host_vendor = xsni; then
9995       case $host in
9996       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9997         export_dynamic_flag_spec='${wl}-Blargedynsym'
9998         ;;
9999       esac
10000     fi
10001   fi
10002
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10004 $as_echo "$ld_shlibs" >&6; }
10005 test "$ld_shlibs" = no && can_build_shared=no
10006
10007 with_gnu_ld=$with_gnu_ld
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023 #
10024 # Do we need to explicitly link libc?
10025 #
10026 case "x$archive_cmds_need_lc" in
10027 x|xyes)
10028   # Assume -lc should be added
10029   archive_cmds_need_lc=yes
10030
10031   if test "$enable_shared" = yes && test "$GCC" = yes; then
10032     case $archive_cmds in
10033     *'~'*)
10034       # FIXME: we may have to deal with multi-command sequences.
10035       ;;
10036     '$CC '*)
10037       # Test whether the compiler implicitly links with -lc since on some
10038       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10039       # to ld, don't add -lc before -lgcc.
10040       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10041 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10042 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10043   $as_echo_n "(cached) " >&6
10044 else
10045   $RM conftest*
10046         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10047
10048         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10049   (eval $ac_compile) 2>&5
10050   ac_status=$?
10051   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10052   test $ac_status = 0; } 2>conftest.err; then
10053           soname=conftest
10054           lib=conftest
10055           libobjs=conftest.$ac_objext
10056           deplibs=
10057           wl=$lt_prog_compiler_wl
10058           pic_flag=$lt_prog_compiler_pic
10059           compiler_flags=-v
10060           linker_flags=-v
10061           verstring=
10062           output_objdir=.
10063           libname=conftest
10064           lt_save_allow_undefined_flag=$allow_undefined_flag
10065           allow_undefined_flag=
10066           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10067   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10068   ac_status=$?
10069   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10070   test $ac_status = 0; }
10071           then
10072             lt_cv_archive_cmds_need_lc=no
10073           else
10074             lt_cv_archive_cmds_need_lc=yes
10075           fi
10076           allow_undefined_flag=$lt_save_allow_undefined_flag
10077         else
10078           cat conftest.err 1>&5
10079         fi
10080         $RM conftest*
10081
10082 fi
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10084 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10085       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10086       ;;
10087     esac
10088   fi
10089   ;;
10090 esac
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10244 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10245
10246 if test "$GCC" = yes; then
10247   case $host_os in
10248     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10249     *) lt_awk_arg="/^libraries:/" ;;
10250   esac
10251   case $host_os in
10252     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10253     *) lt_sed_strip_eq="s,=/,/,g" ;;
10254   esac
10255   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10256   case $lt_search_path_spec in
10257   *\;*)
10258     # if the path contains ";" then we assume it to be the separator
10259     # otherwise default to the standard path separator (i.e. ":") - it is
10260     # assumed that no part of a normal pathname contains ";" but that should
10261     # okay in the real world where ";" in dirpaths is itself problematic.
10262     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10263     ;;
10264   *)
10265     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10266     ;;
10267   esac
10268   # Ok, now we have the path, separated by spaces, we can step through it
10269   # and add multilib dir if necessary.
10270   lt_tmp_lt_search_path_spec=
10271   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10272   for lt_sys_path in $lt_search_path_spec; do
10273     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10274       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10275     else
10276       test -d "$lt_sys_path" && \
10277         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10278     fi
10279   done
10280   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10281 BEGIN {RS=" "; FS="/|\n";} {
10282   lt_foo="";
10283   lt_count=0;
10284   for (lt_i = NF; lt_i > 0; lt_i--) {
10285     if ($lt_i != "" && $lt_i != ".") {
10286       if ($lt_i == "..") {
10287         lt_count++;
10288       } else {
10289         if (lt_count == 0) {
10290           lt_foo="/" $lt_i lt_foo;
10291         } else {
10292           lt_count--;
10293         }
10294       }
10295     }
10296   }
10297   if (lt_foo != "") { lt_freq[lt_foo]++; }
10298   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10299 }'`
10300   # AWK program above erroneously prepends '/' to C:/dos/paths
10301   # for these hosts.
10302   case $host_os in
10303     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10304       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10305   esac
10306   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10307 else
10308   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10309 fi
10310 library_names_spec=
10311 libname_spec='lib$name'
10312 soname_spec=
10313 shrext_cmds=".so"
10314 postinstall_cmds=
10315 postuninstall_cmds=
10316 finish_cmds=
10317 finish_eval=
10318 shlibpath_var=
10319 shlibpath_overrides_runpath=unknown
10320 version_type=none
10321 dynamic_linker="$host_os ld.so"
10322 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10323 need_lib_prefix=unknown
10324 hardcode_into_libs=no
10325
10326 # when you set need_version to no, make sure it does not cause -set_version
10327 # flags to be left without arguments
10328 need_version=unknown
10329
10330 case $host_os in
10331 aix3*)
10332   version_type=linux # correct to gnu/linux during the next big refactor
10333   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10334   shlibpath_var=LIBPATH
10335
10336   # AIX 3 has no versioning support, so we append a major version to the name.
10337   soname_spec='${libname}${release}${shared_ext}$major'
10338   ;;
10339
10340 aix[4-9]*)
10341   version_type=linux # correct to gnu/linux during the next big refactor
10342   need_lib_prefix=no
10343   need_version=no
10344   hardcode_into_libs=yes
10345   if test "$host_cpu" = ia64; then
10346     # AIX 5 supports IA64
10347     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10348     shlibpath_var=LD_LIBRARY_PATH
10349   else
10350     # With GCC up to 2.95.x, collect2 would create an import file
10351     # for dependence libraries.  The import file would start with
10352     # the line `#! .'.  This would cause the generated library to
10353     # depend on `.', always an invalid library.  This was fixed in
10354     # development snapshots of GCC prior to 3.0.
10355     case $host_os in
10356       aix4 | aix4.[01] | aix4.[01].*)
10357       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10358            echo ' yes '
10359            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10360         :
10361       else
10362         can_build_shared=no
10363       fi
10364       ;;
10365     esac
10366     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10367     # soname into executable. Probably we can add versioning support to
10368     # collect2, so additional links can be useful in future.
10369     if test "$aix_use_runtimelinking" = yes; then
10370       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10371       # instead of lib<name>.a to let people know that these are not
10372       # typical AIX shared libraries.
10373       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10374     else
10375       # We preserve .a as extension for shared libraries through AIX4.2
10376       # and later when we are not doing run time linking.
10377       library_names_spec='${libname}${release}.a $libname.a'
10378       soname_spec='${libname}${release}${shared_ext}$major'
10379     fi
10380     shlibpath_var=LIBPATH
10381   fi
10382   ;;
10383
10384 amigaos*)
10385   case $host_cpu in
10386   powerpc)
10387     # Since July 2007 AmigaOS4 officially supports .so libraries.
10388     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10389     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10390     ;;
10391   m68k)
10392     library_names_spec='$libname.ixlibrary $libname.a'
10393     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10394     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10395     ;;
10396   esac
10397   ;;
10398
10399 beos*)
10400   library_names_spec='${libname}${shared_ext}'
10401   dynamic_linker="$host_os ld.so"
10402   shlibpath_var=LIBRARY_PATH
10403   ;;
10404
10405 bsdi[45]*)
10406   version_type=linux # correct to gnu/linux during the next big refactor
10407   need_version=no
10408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10409   soname_spec='${libname}${release}${shared_ext}$major'
10410   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10411   shlibpath_var=LD_LIBRARY_PATH
10412   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10413   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10414   # the default ld.so.conf also contains /usr/contrib/lib and
10415   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10416   # libtool to hard-code these into programs
10417   ;;
10418
10419 cygwin* | mingw* | pw32* | cegcc*)
10420   version_type=windows
10421   shrext_cmds=".dll"
10422   need_version=no
10423   need_lib_prefix=no
10424
10425   case $GCC,$cc_basename in
10426   yes,*)
10427     # gcc
10428     library_names_spec='$libname.dll.a'
10429     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10430     postinstall_cmds='base_file=`basename \${file}`~
10431       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10432       dldir=$destdir/`dirname \$dlpath`~
10433       test -d \$dldir || mkdir -p \$dldir~
10434       $install_prog $dir/$dlname \$dldir/$dlname~
10435       chmod a+x \$dldir/$dlname~
10436       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10437         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10438       fi'
10439     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10440       dlpath=$dir/\$dldll~
10441        $RM \$dlpath'
10442     shlibpath_overrides_runpath=yes
10443
10444     case $host_os in
10445     cygwin*)
10446       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10447       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10448
10449       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10450       ;;
10451     mingw* | cegcc*)
10452       # MinGW DLLs use traditional 'lib' prefix
10453       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10454       ;;
10455     pw32*)
10456       # pw32 DLLs use 'pw' prefix rather than 'lib'
10457       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10458       ;;
10459     esac
10460     dynamic_linker='Win32 ld.exe'
10461     ;;
10462
10463   *,cl*)
10464     # Native MSVC
10465     libname_spec='$name'
10466     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10467     library_names_spec='${libname}.dll.lib'
10468
10469     case $build_os in
10470     mingw*)
10471       sys_lib_search_path_spec=
10472       lt_save_ifs=$IFS
10473       IFS=';'
10474       for lt_path in $LIB
10475       do
10476         IFS=$lt_save_ifs
10477         # Let DOS variable expansion print the short 8.3 style file name.
10478         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10479         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10480       done
10481       IFS=$lt_save_ifs
10482       # Convert to MSYS style.
10483       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10484       ;;
10485     cygwin*)
10486       # Convert to unix form, then to dos form, then back to unix form
10487       # but this time dos style (no spaces!) so that the unix form looks
10488       # like /cygdrive/c/PROGRA~1:/cygdr...
10489       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10490       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10491       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10492       ;;
10493     *)
10494       sys_lib_search_path_spec="$LIB"
10495       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10496         # It is most probably a Windows format PATH.
10497         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10498       else
10499         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10500       fi
10501       # FIXME: find the short name or the path components, as spaces are
10502       # common. (e.g. "Program Files" -> "PROGRA~1")
10503       ;;
10504     esac
10505
10506     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10507     postinstall_cmds='base_file=`basename \${file}`~
10508       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10509       dldir=$destdir/`dirname \$dlpath`~
10510       test -d \$dldir || mkdir -p \$dldir~
10511       $install_prog $dir/$dlname \$dldir/$dlname'
10512     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10513       dlpath=$dir/\$dldll~
10514        $RM \$dlpath'
10515     shlibpath_overrides_runpath=yes
10516     dynamic_linker='Win32 link.exe'
10517     ;;
10518
10519   *)
10520     # Assume MSVC wrapper
10521     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10522     dynamic_linker='Win32 ld.exe'
10523     ;;
10524   esac
10525   # FIXME: first we should search . and the directory the executable is in
10526   shlibpath_var=PATH
10527   ;;
10528
10529 darwin* | rhapsody*)
10530   dynamic_linker="$host_os dyld"
10531   version_type=darwin
10532   need_lib_prefix=no
10533   need_version=no
10534   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10535   soname_spec='${libname}${release}${major}$shared_ext'
10536   shlibpath_overrides_runpath=yes
10537   shlibpath_var=DYLD_LIBRARY_PATH
10538   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10539
10540   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10541   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10542   ;;
10543
10544 dgux*)
10545   version_type=linux # correct to gnu/linux during the next big refactor
10546   need_lib_prefix=no
10547   need_version=no
10548   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10549   soname_spec='${libname}${release}${shared_ext}$major'
10550   shlibpath_var=LD_LIBRARY_PATH
10551   ;;
10552
10553 freebsd* | dragonfly*)
10554   # DragonFly does not have aout.  When/if they implement a new
10555   # versioning mechanism, adjust this.
10556   if test -x /usr/bin/objformat; then
10557     objformat=`/usr/bin/objformat`
10558   else
10559     case $host_os in
10560     freebsd[23].*) objformat=aout ;;
10561     *) objformat=elf ;;
10562     esac
10563   fi
10564   version_type=freebsd-$objformat
10565   case $version_type in
10566     freebsd-elf*)
10567       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10568       need_version=no
10569       need_lib_prefix=no
10570       ;;
10571     freebsd-*)
10572       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10573       need_version=yes
10574       ;;
10575   esac
10576   shlibpath_var=LD_LIBRARY_PATH
10577   case $host_os in
10578   freebsd2.*)
10579     shlibpath_overrides_runpath=yes
10580     ;;
10581   freebsd3.[01]* | freebsdelf3.[01]*)
10582     shlibpath_overrides_runpath=yes
10583     hardcode_into_libs=yes
10584     ;;
10585   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10586   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10587     shlibpath_overrides_runpath=no
10588     hardcode_into_libs=yes
10589     ;;
10590   *) # from 4.6 on, and DragonFly
10591     shlibpath_overrides_runpath=yes
10592     hardcode_into_libs=yes
10593     ;;
10594   esac
10595   ;;
10596
10597 gnu*)
10598   version_type=linux # correct to gnu/linux during the next big refactor
10599   need_lib_prefix=no
10600   need_version=no
10601   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10602   soname_spec='${libname}${release}${shared_ext}$major'
10603   shlibpath_var=LD_LIBRARY_PATH
10604   shlibpath_overrides_runpath=no
10605   hardcode_into_libs=yes
10606   ;;
10607
10608 haiku*)
10609   version_type=linux # correct to gnu/linux during the next big refactor
10610   need_lib_prefix=no
10611   need_version=no
10612   dynamic_linker="$host_os runtime_loader"
10613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10614   soname_spec='${libname}${release}${shared_ext}$major'
10615   shlibpath_var=LIBRARY_PATH
10616   shlibpath_overrides_runpath=yes
10617   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10618   hardcode_into_libs=yes
10619   ;;
10620
10621 hpux9* | hpux10* | hpux11*)
10622   # Give a soname corresponding to the major version so that dld.sl refuses to
10623   # link against other versions.
10624   version_type=sunos
10625   need_lib_prefix=no
10626   need_version=no
10627   case $host_cpu in
10628   ia64*)
10629     shrext_cmds='.so'
10630     hardcode_into_libs=yes
10631     dynamic_linker="$host_os dld.so"
10632     shlibpath_var=LD_LIBRARY_PATH
10633     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10634     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10635     soname_spec='${libname}${release}${shared_ext}$major'
10636     if test "X$HPUX_IA64_MODE" = X32; then
10637       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10638     else
10639       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10640     fi
10641     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10642     ;;
10643   hppa*64*)
10644     shrext_cmds='.sl'
10645     hardcode_into_libs=yes
10646     dynamic_linker="$host_os dld.sl"
10647     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10648     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10649     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10650     soname_spec='${libname}${release}${shared_ext}$major'
10651     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10652     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10653     ;;
10654   *)
10655     shrext_cmds='.sl'
10656     dynamic_linker="$host_os dld.sl"
10657     shlibpath_var=SHLIB_PATH
10658     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10659     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10660     soname_spec='${libname}${release}${shared_ext}$major'
10661     ;;
10662   esac
10663   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10664   postinstall_cmds='chmod 555 $lib'
10665   # or fails outright, so override atomically:
10666   install_override_mode=555
10667   ;;
10668
10669 interix[3-9]*)
10670   version_type=linux # correct to gnu/linux during the next big refactor
10671   need_lib_prefix=no
10672   need_version=no
10673   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10674   soname_spec='${libname}${release}${shared_ext}$major'
10675   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10676   shlibpath_var=LD_LIBRARY_PATH
10677   shlibpath_overrides_runpath=no
10678   hardcode_into_libs=yes
10679   ;;
10680
10681 irix5* | irix6* | nonstopux*)
10682   case $host_os in
10683     nonstopux*) version_type=nonstopux ;;
10684     *)
10685         if test "$lt_cv_prog_gnu_ld" = yes; then
10686                 version_type=linux # correct to gnu/linux during the next big refactor
10687         else
10688                 version_type=irix
10689         fi ;;
10690   esac
10691   need_lib_prefix=no
10692   need_version=no
10693   soname_spec='${libname}${release}${shared_ext}$major'
10694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10695   case $host_os in
10696   irix5* | nonstopux*)
10697     libsuff= shlibsuff=
10698     ;;
10699   *)
10700     case $LD in # libtool.m4 will add one of these switches to LD
10701     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10702       libsuff= shlibsuff= libmagic=32-bit;;
10703     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10704       libsuff=32 shlibsuff=N32 libmagic=N32;;
10705     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10706       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10707     *) libsuff= shlibsuff= libmagic=never-match;;
10708     esac
10709     ;;
10710   esac
10711   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10712   shlibpath_overrides_runpath=no
10713   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10714   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10715   hardcode_into_libs=yes
10716   ;;
10717
10718 # No shared lib support for Linux oldld, aout, or coff.
10719 linux*oldld* | linux*aout* | linux*coff*)
10720   dynamic_linker=no
10721   ;;
10722
10723 # This must be glibc/ELF.
10724 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10725   version_type=linux # correct to gnu/linux during the next big refactor
10726   need_lib_prefix=no
10727   need_version=no
10728   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10729   soname_spec='${libname}${release}${shared_ext}$major'
10730   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10731   shlibpath_var=LD_LIBRARY_PATH
10732   shlibpath_overrides_runpath=no
10733
10734   # Some binutils ld are patched to set DT_RUNPATH
10735   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10736   $as_echo_n "(cached) " >&6
10737 else
10738   lt_cv_shlibpath_overrides_runpath=no
10739     save_LDFLAGS=$LDFLAGS
10740     save_libdir=$libdir
10741     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10742          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10743     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10744 /* end confdefs.h.  */
10745
10746 int
10747 main ()
10748 {
10749
10750   ;
10751   return 0;
10752 }
10753 _ACEOF
10754 if ac_fn_c_try_link "$LINENO"; then :
10755   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10756   lt_cv_shlibpath_overrides_runpath=yes
10757 fi
10758 fi
10759 rm -f core conftest.err conftest.$ac_objext \
10760     conftest$ac_exeext conftest.$ac_ext
10761     LDFLAGS=$save_LDFLAGS
10762     libdir=$save_libdir
10763
10764 fi
10765
10766   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10767
10768   # This implies no fast_install, which is unacceptable.
10769   # Some rework will be needed to allow for fast_install
10770   # before this can be enabled.
10771   hardcode_into_libs=yes
10772
10773   # Append ld.so.conf contents to the search path
10774   if test -f /etc/ld.so.conf; then
10775     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10776     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10777   fi
10778
10779   # We used to test for /lib/ld.so.1 and disable shared libraries on
10780   # powerpc, because MkLinux only supported shared libraries with the
10781   # GNU dynamic linker.  Since this was broken with cross compilers,
10782   # most powerpc-linux boxes support dynamic linking these days and
10783   # people can always --disable-shared, the test was removed, and we
10784   # assume the GNU/Linux dynamic linker is in use.
10785   dynamic_linker='GNU/Linux ld.so'
10786   ;;
10787
10788 netbsdelf*-gnu)
10789   version_type=linux
10790   need_lib_prefix=no
10791   need_version=no
10792   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10793   soname_spec='${libname}${release}${shared_ext}$major'
10794   shlibpath_var=LD_LIBRARY_PATH
10795   shlibpath_overrides_runpath=no
10796   hardcode_into_libs=yes
10797   dynamic_linker='NetBSD ld.elf_so'
10798   ;;
10799
10800 netbsd*)
10801   version_type=sunos
10802   need_lib_prefix=no
10803   need_version=no
10804   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10805     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10806     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10807     dynamic_linker='NetBSD (a.out) ld.so'
10808   else
10809     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10810     soname_spec='${libname}${release}${shared_ext}$major'
10811     dynamic_linker='NetBSD ld.elf_so'
10812   fi
10813   shlibpath_var=LD_LIBRARY_PATH
10814   shlibpath_overrides_runpath=yes
10815   hardcode_into_libs=yes
10816   ;;
10817
10818 newsos6)
10819   version_type=linux # correct to gnu/linux during the next big refactor
10820   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10821   shlibpath_var=LD_LIBRARY_PATH
10822   shlibpath_overrides_runpath=yes
10823   ;;
10824
10825 *nto* | *qnx*)
10826   version_type=qnx
10827   need_lib_prefix=no
10828   need_version=no
10829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10830   soname_spec='${libname}${release}${shared_ext}$major'
10831   shlibpath_var=LD_LIBRARY_PATH
10832   shlibpath_overrides_runpath=no
10833   hardcode_into_libs=yes
10834   dynamic_linker='ldqnx.so'
10835   ;;
10836
10837 openbsd*)
10838   version_type=sunos
10839   sys_lib_dlsearch_path_spec="/usr/lib"
10840   need_lib_prefix=no
10841   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10842   case $host_os in
10843     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10844     *)                          need_version=no  ;;
10845   esac
10846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10847   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10848   shlibpath_var=LD_LIBRARY_PATH
10849   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10850     case $host_os in
10851       openbsd2.[89] | openbsd2.[89].*)
10852         shlibpath_overrides_runpath=no
10853         ;;
10854       *)
10855         shlibpath_overrides_runpath=yes
10856         ;;
10857       esac
10858   else
10859     shlibpath_overrides_runpath=yes
10860   fi
10861   ;;
10862
10863 os2*)
10864   libname_spec='$name'
10865   shrext_cmds=".dll"
10866   need_lib_prefix=no
10867   library_names_spec='$libname${shared_ext} $libname.a'
10868   dynamic_linker='OS/2 ld.exe'
10869   shlibpath_var=LIBPATH
10870   ;;
10871
10872 osf3* | osf4* | osf5*)
10873   version_type=osf
10874   need_lib_prefix=no
10875   need_version=no
10876   soname_spec='${libname}${release}${shared_ext}$major'
10877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10878   shlibpath_var=LD_LIBRARY_PATH
10879   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10880   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10881   ;;
10882
10883 rdos*)
10884   dynamic_linker=no
10885   ;;
10886
10887 solaris*)
10888   version_type=linux # correct to gnu/linux during the next big refactor
10889   need_lib_prefix=no
10890   need_version=no
10891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10892   soname_spec='${libname}${release}${shared_ext}$major'
10893   shlibpath_var=LD_LIBRARY_PATH
10894   shlibpath_overrides_runpath=yes
10895   hardcode_into_libs=yes
10896   # ldd complains unless libraries are executable
10897   postinstall_cmds='chmod +x $lib'
10898   ;;
10899
10900 sunos4*)
10901   version_type=sunos
10902   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10903   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10904   shlibpath_var=LD_LIBRARY_PATH
10905   shlibpath_overrides_runpath=yes
10906   if test "$with_gnu_ld" = yes; then
10907     need_lib_prefix=no
10908   fi
10909   need_version=yes
10910   ;;
10911
10912 sysv4 | sysv4.3*)
10913   version_type=linux # correct to gnu/linux during the next big refactor
10914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10915   soname_spec='${libname}${release}${shared_ext}$major'
10916   shlibpath_var=LD_LIBRARY_PATH
10917   case $host_vendor in
10918     sni)
10919       shlibpath_overrides_runpath=no
10920       need_lib_prefix=no
10921       runpath_var=LD_RUN_PATH
10922       ;;
10923     siemens)
10924       need_lib_prefix=no
10925       ;;
10926     motorola)
10927       need_lib_prefix=no
10928       need_version=no
10929       shlibpath_overrides_runpath=no
10930       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10931       ;;
10932   esac
10933   ;;
10934
10935 sysv4*MP*)
10936   if test -d /usr/nec ;then
10937     version_type=linux # correct to gnu/linux during the next big refactor
10938     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10939     soname_spec='$libname${shared_ext}.$major'
10940     shlibpath_var=LD_LIBRARY_PATH
10941   fi
10942   ;;
10943
10944 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10945   version_type=freebsd-elf
10946   need_lib_prefix=no
10947   need_version=no
10948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10949   soname_spec='${libname}${release}${shared_ext}$major'
10950   shlibpath_var=LD_LIBRARY_PATH
10951   shlibpath_overrides_runpath=yes
10952   hardcode_into_libs=yes
10953   if test "$with_gnu_ld" = yes; then
10954     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10955   else
10956     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10957     case $host_os in
10958       sco3.2v5*)
10959         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10960         ;;
10961     esac
10962   fi
10963   sys_lib_dlsearch_path_spec='/usr/lib'
10964   ;;
10965
10966 tpf*)
10967   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10968   version_type=linux # correct to gnu/linux during the next big refactor
10969   need_lib_prefix=no
10970   need_version=no
10971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10972   shlibpath_var=LD_LIBRARY_PATH
10973   shlibpath_overrides_runpath=no
10974   hardcode_into_libs=yes
10975   ;;
10976
10977 uts4*)
10978   version_type=linux # correct to gnu/linux during the next big refactor
10979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10980   soname_spec='${libname}${release}${shared_ext}$major'
10981   shlibpath_var=LD_LIBRARY_PATH
10982   ;;
10983
10984 *)
10985   dynamic_linker=no
10986   ;;
10987 esac
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10989 $as_echo "$dynamic_linker" >&6; }
10990 test "$dynamic_linker" = no && can_build_shared=no
10991
10992 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10993 if test "$GCC" = yes; then
10994   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10995 fi
10996
10997 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10998   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10999 fi
11000 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11001   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11002 fi
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11096 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11097 hardcode_action=
11098 if test -n "$hardcode_libdir_flag_spec" ||
11099    test -n "$runpath_var" ||
11100    test "X$hardcode_automatic" = "Xyes" ; then
11101
11102   # We can hardcode non-existent directories.
11103   if test "$hardcode_direct" != no &&
11104      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11105      # have to relink, otherwise we might link with an installed library
11106      # when we should be linking with a yet-to-be-installed one
11107      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11108      test "$hardcode_minus_L" != no; then
11109     # Linking always hardcodes the temporary library directory.
11110     hardcode_action=relink
11111   else
11112     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11113     hardcode_action=immediate
11114   fi
11115 else
11116   # We cannot hardcode anything, or else we can only hardcode existing
11117   # directories.
11118   hardcode_action=unsupported
11119 fi
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11121 $as_echo "$hardcode_action" >&6; }
11122
11123 if test "$hardcode_action" = relink ||
11124    test "$inherit_rpath" = yes; then
11125   # Fast installation is not supported
11126   enable_fast_install=no
11127 elif test "$shlibpath_overrides_runpath" = yes ||
11128      test "$enable_shared" = no; then
11129   # Fast installation is not necessary
11130   enable_fast_install=needless
11131 fi
11132
11133
11134
11135
11136
11137
11138   if test "x$enable_dlopen" != xyes; then
11139   enable_dlopen=unknown
11140   enable_dlopen_self=unknown
11141   enable_dlopen_self_static=unknown
11142 else
11143   lt_cv_dlopen=no
11144   lt_cv_dlopen_libs=
11145
11146   case $host_os in
11147   beos*)
11148     lt_cv_dlopen="load_add_on"
11149     lt_cv_dlopen_libs=
11150     lt_cv_dlopen_self=yes
11151     ;;
11152
11153   mingw* | pw32* | cegcc*)
11154     lt_cv_dlopen="LoadLibrary"
11155     lt_cv_dlopen_libs=
11156     ;;
11157
11158   cygwin*)
11159     lt_cv_dlopen="dlopen"
11160     lt_cv_dlopen_libs=
11161     ;;
11162
11163   darwin*)
11164   # if libdl is installed we need to link against it
11165     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11166 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11167 if ${ac_cv_lib_dl_dlopen+:} false; then :
11168   $as_echo_n "(cached) " >&6
11169 else
11170   ac_check_lib_save_LIBS=$LIBS
11171 LIBS="-ldl  $LIBS"
11172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11173 /* end confdefs.h.  */
11174
11175 /* Override any GCC internal prototype to avoid an error.
11176    Use char because int might match the return type of a GCC
11177    builtin and then its argument prototype would still apply.  */
11178 #ifdef __cplusplus
11179 extern "C"
11180 #endif
11181 char dlopen ();
11182 int
11183 main ()
11184 {
11185 return dlopen ();
11186   ;
11187   return 0;
11188 }
11189 _ACEOF
11190 if ac_fn_c_try_link "$LINENO"; then :
11191   ac_cv_lib_dl_dlopen=yes
11192 else
11193   ac_cv_lib_dl_dlopen=no
11194 fi
11195 rm -f core conftest.err conftest.$ac_objext \
11196     conftest$ac_exeext conftest.$ac_ext
11197 LIBS=$ac_check_lib_save_LIBS
11198 fi
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11200 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11201 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11202   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11203 else
11204
11205     lt_cv_dlopen="dyld"
11206     lt_cv_dlopen_libs=
11207     lt_cv_dlopen_self=yes
11208
11209 fi
11210
11211     ;;
11212
11213   *)
11214     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11215 if test "x$ac_cv_func_shl_load" = xyes; then :
11216   lt_cv_dlopen="shl_load"
11217 else
11218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11219 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11220 if ${ac_cv_lib_dld_shl_load+:} false; then :
11221   $as_echo_n "(cached) " >&6
11222 else
11223   ac_check_lib_save_LIBS=$LIBS
11224 LIBS="-ldld  $LIBS"
11225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11226 /* end confdefs.h.  */
11227
11228 /* Override any GCC internal prototype to avoid an error.
11229    Use char because int might match the return type of a GCC
11230    builtin and then its argument prototype would still apply.  */
11231 #ifdef __cplusplus
11232 extern "C"
11233 #endif
11234 char shl_load ();
11235 int
11236 main ()
11237 {
11238 return shl_load ();
11239   ;
11240   return 0;
11241 }
11242 _ACEOF
11243 if ac_fn_c_try_link "$LINENO"; then :
11244   ac_cv_lib_dld_shl_load=yes
11245 else
11246   ac_cv_lib_dld_shl_load=no
11247 fi
11248 rm -f core conftest.err conftest.$ac_objext \
11249     conftest$ac_exeext conftest.$ac_ext
11250 LIBS=$ac_check_lib_save_LIBS
11251 fi
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11253 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11254 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11255   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11256 else
11257   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11258 if test "x$ac_cv_func_dlopen" = xyes; then :
11259   lt_cv_dlopen="dlopen"
11260 else
11261   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11262 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11263 if ${ac_cv_lib_dl_dlopen+:} false; then :
11264   $as_echo_n "(cached) " >&6
11265 else
11266   ac_check_lib_save_LIBS=$LIBS
11267 LIBS="-ldl  $LIBS"
11268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11269 /* end confdefs.h.  */
11270
11271 /* Override any GCC internal prototype to avoid an error.
11272    Use char because int might match the return type of a GCC
11273    builtin and then its argument prototype would still apply.  */
11274 #ifdef __cplusplus
11275 extern "C"
11276 #endif
11277 char dlopen ();
11278 int
11279 main ()
11280 {
11281 return dlopen ();
11282   ;
11283   return 0;
11284 }
11285 _ACEOF
11286 if ac_fn_c_try_link "$LINENO"; then :
11287   ac_cv_lib_dl_dlopen=yes
11288 else
11289   ac_cv_lib_dl_dlopen=no
11290 fi
11291 rm -f core conftest.err conftest.$ac_objext \
11292     conftest$ac_exeext conftest.$ac_ext
11293 LIBS=$ac_check_lib_save_LIBS
11294 fi
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11296 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11297 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11298   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11299 else
11300   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11301 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11302 if ${ac_cv_lib_svld_dlopen+:} false; then :
11303   $as_echo_n "(cached) " >&6
11304 else
11305   ac_check_lib_save_LIBS=$LIBS
11306 LIBS="-lsvld  $LIBS"
11307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11308 /* end confdefs.h.  */
11309
11310 /* Override any GCC internal prototype to avoid an error.
11311    Use char because int might match the return type of a GCC
11312    builtin and then its argument prototype would still apply.  */
11313 #ifdef __cplusplus
11314 extern "C"
11315 #endif
11316 char dlopen ();
11317 int
11318 main ()
11319 {
11320 return dlopen ();
11321   ;
11322   return 0;
11323 }
11324 _ACEOF
11325 if ac_fn_c_try_link "$LINENO"; then :
11326   ac_cv_lib_svld_dlopen=yes
11327 else
11328   ac_cv_lib_svld_dlopen=no
11329 fi
11330 rm -f core conftest.err conftest.$ac_objext \
11331     conftest$ac_exeext conftest.$ac_ext
11332 LIBS=$ac_check_lib_save_LIBS
11333 fi
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11335 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11336 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11337   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11338 else
11339   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11340 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11341 if ${ac_cv_lib_dld_dld_link+:} false; then :
11342   $as_echo_n "(cached) " >&6
11343 else
11344   ac_check_lib_save_LIBS=$LIBS
11345 LIBS="-ldld  $LIBS"
11346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11347 /* end confdefs.h.  */
11348
11349 /* Override any GCC internal prototype to avoid an error.
11350    Use char because int might match the return type of a GCC
11351    builtin and then its argument prototype would still apply.  */
11352 #ifdef __cplusplus
11353 extern "C"
11354 #endif
11355 char dld_link ();
11356 int
11357 main ()
11358 {
11359 return dld_link ();
11360   ;
11361   return 0;
11362 }
11363 _ACEOF
11364 if ac_fn_c_try_link "$LINENO"; then :
11365   ac_cv_lib_dld_dld_link=yes
11366 else
11367   ac_cv_lib_dld_dld_link=no
11368 fi
11369 rm -f core conftest.err conftest.$ac_objext \
11370     conftest$ac_exeext conftest.$ac_ext
11371 LIBS=$ac_check_lib_save_LIBS
11372 fi
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11374 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11375 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11376   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11377 fi
11378
11379
11380 fi
11381
11382
11383 fi
11384
11385
11386 fi
11387
11388
11389 fi
11390
11391
11392 fi
11393
11394     ;;
11395   esac
11396
11397   if test "x$lt_cv_dlopen" != xno; then
11398     enable_dlopen=yes
11399   else
11400     enable_dlopen=no
11401   fi
11402
11403   case $lt_cv_dlopen in
11404   dlopen)
11405     save_CPPFLAGS="$CPPFLAGS"
11406     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11407
11408     save_LDFLAGS="$LDFLAGS"
11409     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11410
11411     save_LIBS="$LIBS"
11412     LIBS="$lt_cv_dlopen_libs $LIBS"
11413
11414     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11415 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11416 if ${lt_cv_dlopen_self+:} false; then :
11417   $as_echo_n "(cached) " >&6
11418 else
11419           if test "$cross_compiling" = yes; then :
11420   lt_cv_dlopen_self=cross
11421 else
11422   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11423   lt_status=$lt_dlunknown
11424   cat > conftest.$ac_ext <<_LT_EOF
11425 #line $LINENO "configure"
11426 #include "confdefs.h"
11427
11428 #if HAVE_DLFCN_H
11429 #include <dlfcn.h>
11430 #endif
11431
11432 #include <stdio.h>
11433
11434 #ifdef RTLD_GLOBAL
11435 #  define LT_DLGLOBAL           RTLD_GLOBAL
11436 #else
11437 #  ifdef DL_GLOBAL
11438 #    define LT_DLGLOBAL         DL_GLOBAL
11439 #  else
11440 #    define LT_DLGLOBAL         0
11441 #  endif
11442 #endif
11443
11444 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11445    find out it does not work in some platform. */
11446 #ifndef LT_DLLAZY_OR_NOW
11447 #  ifdef RTLD_LAZY
11448 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11449 #  else
11450 #    ifdef DL_LAZY
11451 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11452 #    else
11453 #      ifdef RTLD_NOW
11454 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11455 #      else
11456 #        ifdef DL_NOW
11457 #          define LT_DLLAZY_OR_NOW      DL_NOW
11458 #        else
11459 #          define LT_DLLAZY_OR_NOW      0
11460 #        endif
11461 #      endif
11462 #    endif
11463 #  endif
11464 #endif
11465
11466 /* When -fvisbility=hidden is used, assume the code has been annotated
11467    correspondingly for the symbols needed.  */
11468 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11469 int fnord () __attribute__((visibility("default")));
11470 #endif
11471
11472 int fnord () { return 42; }
11473 int main ()
11474 {
11475   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11476   int status = $lt_dlunknown;
11477
11478   if (self)
11479     {
11480       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11481       else
11482         {
11483           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11484           else puts (dlerror ());
11485         }
11486       /* dlclose (self); */
11487     }
11488   else
11489     puts (dlerror ());
11490
11491   return status;
11492 }
11493 _LT_EOF
11494   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11495   (eval $ac_link) 2>&5
11496   ac_status=$?
11497   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11498   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11499     (./conftest; exit; ) >&5 2>/dev/null
11500     lt_status=$?
11501     case x$lt_status in
11502       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11503       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11504       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11505     esac
11506   else :
11507     # compilation failed
11508     lt_cv_dlopen_self=no
11509   fi
11510 fi
11511 rm -fr conftest*
11512
11513
11514 fi
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11516 $as_echo "$lt_cv_dlopen_self" >&6; }
11517
11518     if test "x$lt_cv_dlopen_self" = xyes; then
11519       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11520       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11521 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11522 if ${lt_cv_dlopen_self_static+:} false; then :
11523   $as_echo_n "(cached) " >&6
11524 else
11525           if test "$cross_compiling" = yes; then :
11526   lt_cv_dlopen_self_static=cross
11527 else
11528   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11529   lt_status=$lt_dlunknown
11530   cat > conftest.$ac_ext <<_LT_EOF
11531 #line $LINENO "configure"
11532 #include "confdefs.h"
11533
11534 #if HAVE_DLFCN_H
11535 #include <dlfcn.h>
11536 #endif
11537
11538 #include <stdio.h>
11539
11540 #ifdef RTLD_GLOBAL
11541 #  define LT_DLGLOBAL           RTLD_GLOBAL
11542 #else
11543 #  ifdef DL_GLOBAL
11544 #    define LT_DLGLOBAL         DL_GLOBAL
11545 #  else
11546 #    define LT_DLGLOBAL         0
11547 #  endif
11548 #endif
11549
11550 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11551    find out it does not work in some platform. */
11552 #ifndef LT_DLLAZY_OR_NOW
11553 #  ifdef RTLD_LAZY
11554 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11555 #  else
11556 #    ifdef DL_LAZY
11557 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11558 #    else
11559 #      ifdef RTLD_NOW
11560 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11561 #      else
11562 #        ifdef DL_NOW
11563 #          define LT_DLLAZY_OR_NOW      DL_NOW
11564 #        else
11565 #          define LT_DLLAZY_OR_NOW      0
11566 #        endif
11567 #      endif
11568 #    endif
11569 #  endif
11570 #endif
11571
11572 /* When -fvisbility=hidden is used, assume the code has been annotated
11573    correspondingly for the symbols needed.  */
11574 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11575 int fnord () __attribute__((visibility("default")));
11576 #endif
11577
11578 int fnord () { return 42; }
11579 int main ()
11580 {
11581   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11582   int status = $lt_dlunknown;
11583
11584   if (self)
11585     {
11586       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11587       else
11588         {
11589           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11590           else puts (dlerror ());
11591         }
11592       /* dlclose (self); */
11593     }
11594   else
11595     puts (dlerror ());
11596
11597   return status;
11598 }
11599 _LT_EOF
11600   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11601   (eval $ac_link) 2>&5
11602   ac_status=$?
11603   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11604   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11605     (./conftest; exit; ) >&5 2>/dev/null
11606     lt_status=$?
11607     case x$lt_status in
11608       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11609       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11610       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11611     esac
11612   else :
11613     # compilation failed
11614     lt_cv_dlopen_self_static=no
11615   fi
11616 fi
11617 rm -fr conftest*
11618
11619
11620 fi
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11622 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11623     fi
11624
11625     CPPFLAGS="$save_CPPFLAGS"
11626     LDFLAGS="$save_LDFLAGS"
11627     LIBS="$save_LIBS"
11628     ;;
11629   esac
11630
11631   case $lt_cv_dlopen_self in
11632   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11633   *) enable_dlopen_self=unknown ;;
11634   esac
11635
11636   case $lt_cv_dlopen_self_static in
11637   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11638   *) enable_dlopen_self_static=unknown ;;
11639   esac
11640 fi
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658 striplib=
11659 old_striplib=
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11661 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11662 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11663   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11664   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11666 $as_echo "yes" >&6; }
11667 else
11668 # FIXME - insert some real tests, host_os isn't really good enough
11669   case $host_os in
11670   darwin*)
11671     if test -n "$STRIP" ; then
11672       striplib="$STRIP -x"
11673       old_striplib="$STRIP -S"
11674       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11675 $as_echo "yes" >&6; }
11676     else
11677       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11678 $as_echo "no" >&6; }
11679     fi
11680     ;;
11681   *)
11682     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11683 $as_echo "no" >&6; }
11684     ;;
11685   esac
11686 fi
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699   # Report which library types will actually be built
11700   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11701 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11703 $as_echo "$can_build_shared" >&6; }
11704
11705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11706 $as_echo_n "checking whether to build shared libraries... " >&6; }
11707   test "$can_build_shared" = "no" && enable_shared=no
11708
11709   # On AIX, shared libraries and static libraries use the same namespace, and
11710   # are all built from PIC.
11711   case $host_os in
11712   aix3*)
11713     test "$enable_shared" = yes && enable_static=no
11714     if test -n "$RANLIB"; then
11715       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11716       postinstall_cmds='$RANLIB $lib'
11717     fi
11718     ;;
11719
11720   aix[4-9]*)
11721     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11722       test "$enable_shared" = yes && enable_static=no
11723     fi
11724     ;;
11725   esac
11726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11727 $as_echo "$enable_shared" >&6; }
11728
11729   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11730 $as_echo_n "checking whether to build static libraries... " >&6; }
11731   # Make sure either enable_shared or enable_static is yes.
11732   test "$enable_shared" = yes || enable_static=yes
11733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11734 $as_echo "$enable_static" >&6; }
11735
11736
11737
11738
11739 fi
11740 ac_ext=c
11741 ac_cpp='$CPP $CPPFLAGS'
11742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11745
11746 CC="$lt_save_CC"
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762         ac_config_commands="$ac_config_commands libtool"
11763
11764
11765
11766
11767 # Only expand once:
11768
11769
11770
11771 # Checks for programs.
11772
11773
11774
11775
11776
11777
11778
11779 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11780         if test -n "$ac_tool_prefix"; then
11781   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11782 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11784 $as_echo_n "checking for $ac_word... " >&6; }
11785 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11786   $as_echo_n "(cached) " >&6
11787 else
11788   case $PKG_CONFIG in
11789   [\\/]* | ?:[\\/]*)
11790   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11791   ;;
11792   *)
11793   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11794 for as_dir in $PATH
11795 do
11796   IFS=$as_save_IFS
11797   test -z "$as_dir" && as_dir=.
11798     for ac_exec_ext in '' $ac_executable_extensions; do
11799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11800     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11801     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11802     break 2
11803   fi
11804 done
11805   done
11806 IFS=$as_save_IFS
11807
11808   ;;
11809 esac
11810 fi
11811 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11812 if test -n "$PKG_CONFIG"; then
11813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11814 $as_echo "$PKG_CONFIG" >&6; }
11815 else
11816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11817 $as_echo "no" >&6; }
11818 fi
11819
11820
11821 fi
11822 if test -z "$ac_cv_path_PKG_CONFIG"; then
11823   ac_pt_PKG_CONFIG=$PKG_CONFIG
11824   # Extract the first word of "pkg-config", so it can be a program name with args.
11825 set dummy pkg-config; ac_word=$2
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11827 $as_echo_n "checking for $ac_word... " >&6; }
11828 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11829   $as_echo_n "(cached) " >&6
11830 else
11831   case $ac_pt_PKG_CONFIG in
11832   [\\/]* | ?:[\\/]*)
11833   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11834   ;;
11835   *)
11836   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11837 for as_dir in $PATH
11838 do
11839   IFS=$as_save_IFS
11840   test -z "$as_dir" && as_dir=.
11841     for ac_exec_ext in '' $ac_executable_extensions; do
11842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11843     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11845     break 2
11846   fi
11847 done
11848   done
11849 IFS=$as_save_IFS
11850
11851   ;;
11852 esac
11853 fi
11854 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11855 if test -n "$ac_pt_PKG_CONFIG"; then
11856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11857 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11858 else
11859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11860 $as_echo "no" >&6; }
11861 fi
11862
11863   if test "x$ac_pt_PKG_CONFIG" = x; then
11864     PKG_CONFIG=""
11865   else
11866     case $cross_compiling:$ac_tool_warned in
11867 yes:)
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11870 ac_tool_warned=yes ;;
11871 esac
11872     PKG_CONFIG=$ac_pt_PKG_CONFIG
11873   fi
11874 else
11875   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11876 fi
11877
11878 fi
11879 if test -n "$PKG_CONFIG"; then
11880         _pkg_min_version=0.23
11881         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11882 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11883         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11884                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11885 $as_echo "yes" >&6; }
11886         else
11887                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11888 $as_echo "no" >&6; }
11889                 PKG_CONFIG=""
11890         fi
11891 fi
11892 ac_ext=c
11893 ac_cpp='$CPP $CPPFLAGS'
11894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11897 if test -n "$ac_tool_prefix"; then
11898   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11899 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11901 $as_echo_n "checking for $ac_word... " >&6; }
11902 if ${ac_cv_prog_CC+:} false; then :
11903   $as_echo_n "(cached) " >&6
11904 else
11905   if test -n "$CC"; then
11906   ac_cv_prog_CC="$CC" # Let the user override the test.
11907 else
11908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11909 for as_dir in $PATH
11910 do
11911   IFS=$as_save_IFS
11912   test -z "$as_dir" && as_dir=.
11913     for ac_exec_ext in '' $ac_executable_extensions; do
11914   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11915     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11917     break 2
11918   fi
11919 done
11920   done
11921 IFS=$as_save_IFS
11922
11923 fi
11924 fi
11925 CC=$ac_cv_prog_CC
11926 if test -n "$CC"; then
11927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11928 $as_echo "$CC" >&6; }
11929 else
11930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11931 $as_echo "no" >&6; }
11932 fi
11933
11934
11935 fi
11936 if test -z "$ac_cv_prog_CC"; then
11937   ac_ct_CC=$CC
11938   # Extract the first word of "gcc", so it can be a program name with args.
11939 set dummy gcc; ac_word=$2
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11941 $as_echo_n "checking for $ac_word... " >&6; }
11942 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11943   $as_echo_n "(cached) " >&6
11944 else
11945   if test -n "$ac_ct_CC"; then
11946   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11947 else
11948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11949 for as_dir in $PATH
11950 do
11951   IFS=$as_save_IFS
11952   test -z "$as_dir" && as_dir=.
11953     for ac_exec_ext in '' $ac_executable_extensions; do
11954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11955     ac_cv_prog_ac_ct_CC="gcc"
11956     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11957     break 2
11958   fi
11959 done
11960   done
11961 IFS=$as_save_IFS
11962
11963 fi
11964 fi
11965 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11966 if test -n "$ac_ct_CC"; then
11967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11968 $as_echo "$ac_ct_CC" >&6; }
11969 else
11970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11971 $as_echo "no" >&6; }
11972 fi
11973
11974   if test "x$ac_ct_CC" = x; then
11975     CC=""
11976   else
11977     case $cross_compiling:$ac_tool_warned in
11978 yes:)
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11981 ac_tool_warned=yes ;;
11982 esac
11983     CC=$ac_ct_CC
11984   fi
11985 else
11986   CC="$ac_cv_prog_CC"
11987 fi
11988
11989 if test -z "$CC"; then
11990           if test -n "$ac_tool_prefix"; then
11991     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11992 set dummy ${ac_tool_prefix}cc; ac_word=$2
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11994 $as_echo_n "checking for $ac_word... " >&6; }
11995 if ${ac_cv_prog_CC+:} false; then :
11996   $as_echo_n "(cached) " >&6
11997 else
11998   if test -n "$CC"; then
11999   ac_cv_prog_CC="$CC" # Let the user override the test.
12000 else
12001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12002 for as_dir in $PATH
12003 do
12004   IFS=$as_save_IFS
12005   test -z "$as_dir" && as_dir=.
12006     for ac_exec_ext in '' $ac_executable_extensions; do
12007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12008     ac_cv_prog_CC="${ac_tool_prefix}cc"
12009     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12010     break 2
12011   fi
12012 done
12013   done
12014 IFS=$as_save_IFS
12015
12016 fi
12017 fi
12018 CC=$ac_cv_prog_CC
12019 if test -n "$CC"; then
12020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12021 $as_echo "$CC" >&6; }
12022 else
12023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12024 $as_echo "no" >&6; }
12025 fi
12026
12027
12028   fi
12029 fi
12030 if test -z "$CC"; then
12031   # Extract the first word of "cc", so it can be a program name with args.
12032 set dummy cc; ac_word=$2
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12034 $as_echo_n "checking for $ac_word... " >&6; }
12035 if ${ac_cv_prog_CC+:} false; then :
12036   $as_echo_n "(cached) " >&6
12037 else
12038   if test -n "$CC"; then
12039   ac_cv_prog_CC="$CC" # Let the user override the test.
12040 else
12041   ac_prog_rejected=no
12042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12043 for as_dir in $PATH
12044 do
12045   IFS=$as_save_IFS
12046   test -z "$as_dir" && as_dir=.
12047     for ac_exec_ext in '' $ac_executable_extensions; do
12048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12049     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12050        ac_prog_rejected=yes
12051        continue
12052      fi
12053     ac_cv_prog_CC="cc"
12054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12055     break 2
12056   fi
12057 done
12058   done
12059 IFS=$as_save_IFS
12060
12061 if test $ac_prog_rejected = yes; then
12062   # We found a bogon in the path, so make sure we never use it.
12063   set dummy $ac_cv_prog_CC
12064   shift
12065   if test $# != 0; then
12066     # We chose a different compiler from the bogus one.
12067     # However, it has the same basename, so the bogon will be chosen
12068     # first if we set CC to just the basename; use the full file name.
12069     shift
12070     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12071   fi
12072 fi
12073 fi
12074 fi
12075 CC=$ac_cv_prog_CC
12076 if test -n "$CC"; then
12077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12078 $as_echo "$CC" >&6; }
12079 else
12080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12081 $as_echo "no" >&6; }
12082 fi
12083
12084
12085 fi
12086 if test -z "$CC"; then
12087   if test -n "$ac_tool_prefix"; then
12088   for ac_prog in cl.exe
12089   do
12090     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12091 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12093 $as_echo_n "checking for $ac_word... " >&6; }
12094 if ${ac_cv_prog_CC+:} false; then :
12095   $as_echo_n "(cached) " >&6
12096 else
12097   if test -n "$CC"; then
12098   ac_cv_prog_CC="$CC" # Let the user override the test.
12099 else
12100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12101 for as_dir in $PATH
12102 do
12103   IFS=$as_save_IFS
12104   test -z "$as_dir" && as_dir=.
12105     for ac_exec_ext in '' $ac_executable_extensions; do
12106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12107     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12108     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12109     break 2
12110   fi
12111 done
12112   done
12113 IFS=$as_save_IFS
12114
12115 fi
12116 fi
12117 CC=$ac_cv_prog_CC
12118 if test -n "$CC"; then
12119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12120 $as_echo "$CC" >&6; }
12121 else
12122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12123 $as_echo "no" >&6; }
12124 fi
12125
12126
12127     test -n "$CC" && break
12128   done
12129 fi
12130 if test -z "$CC"; then
12131   ac_ct_CC=$CC
12132   for ac_prog in cl.exe
12133 do
12134   # Extract the first word of "$ac_prog", so it can be a program name with args.
12135 set dummy $ac_prog; ac_word=$2
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12137 $as_echo_n "checking for $ac_word... " >&6; }
12138 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12139   $as_echo_n "(cached) " >&6
12140 else
12141   if test -n "$ac_ct_CC"; then
12142   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12143 else
12144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12145 for as_dir in $PATH
12146 do
12147   IFS=$as_save_IFS
12148   test -z "$as_dir" && as_dir=.
12149     for ac_exec_ext in '' $ac_executable_extensions; do
12150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12151     ac_cv_prog_ac_ct_CC="$ac_prog"
12152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12153     break 2
12154   fi
12155 done
12156   done
12157 IFS=$as_save_IFS
12158
12159 fi
12160 fi
12161 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12162 if test -n "$ac_ct_CC"; then
12163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12164 $as_echo "$ac_ct_CC" >&6; }
12165 else
12166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12167 $as_echo "no" >&6; }
12168 fi
12169
12170
12171   test -n "$ac_ct_CC" && break
12172 done
12173
12174   if test "x$ac_ct_CC" = x; then
12175     CC=""
12176   else
12177     case $cross_compiling:$ac_tool_warned in
12178 yes:)
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12181 ac_tool_warned=yes ;;
12182 esac
12183     CC=$ac_ct_CC
12184   fi
12185 fi
12186
12187 fi
12188
12189
12190 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12192 as_fn_error $? "no acceptable C compiler found in \$PATH
12193 See \`config.log' for more details" "$LINENO" 5; }
12194
12195 # Provide some information about the compiler.
12196 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12197 set X $ac_compile
12198 ac_compiler=$2
12199 for ac_option in --version -v -V -qversion; do
12200   { { ac_try="$ac_compiler $ac_option >&5"
12201 case "(($ac_try" in
12202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12203   *) ac_try_echo=$ac_try;;
12204 esac
12205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12206 $as_echo "$ac_try_echo"; } >&5
12207   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12208   ac_status=$?
12209   if test -s conftest.err; then
12210     sed '10a\
12211 ... rest of stderr output deleted ...
12212          10q' conftest.err >conftest.er1
12213     cat conftest.er1 >&5
12214   fi
12215   rm -f conftest.er1 conftest.err
12216   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12217   test $ac_status = 0; }
12218 done
12219
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12221 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12222 if ${ac_cv_c_compiler_gnu+:} false; then :
12223   $as_echo_n "(cached) " >&6
12224 else
12225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12226 /* end confdefs.h.  */
12227
12228 int
12229 main ()
12230 {
12231 #ifndef __GNUC__
12232        choke me
12233 #endif
12234
12235   ;
12236   return 0;
12237 }
12238 _ACEOF
12239 if ac_fn_c_try_compile "$LINENO"; then :
12240   ac_compiler_gnu=yes
12241 else
12242   ac_compiler_gnu=no
12243 fi
12244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12245 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12246
12247 fi
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12249 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12250 if test $ac_compiler_gnu = yes; then
12251   GCC=yes
12252 else
12253   GCC=
12254 fi
12255 ac_test_CFLAGS=${CFLAGS+set}
12256 ac_save_CFLAGS=$CFLAGS
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12258 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12259 if ${ac_cv_prog_cc_g+:} false; then :
12260   $as_echo_n "(cached) " >&6
12261 else
12262   ac_save_c_werror_flag=$ac_c_werror_flag
12263    ac_c_werror_flag=yes
12264    ac_cv_prog_cc_g=no
12265    CFLAGS="-g"
12266    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12267 /* end confdefs.h.  */
12268
12269 int
12270 main ()
12271 {
12272
12273   ;
12274   return 0;
12275 }
12276 _ACEOF
12277 if ac_fn_c_try_compile "$LINENO"; then :
12278   ac_cv_prog_cc_g=yes
12279 else
12280   CFLAGS=""
12281       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12282 /* end confdefs.h.  */
12283
12284 int
12285 main ()
12286 {
12287
12288   ;
12289   return 0;
12290 }
12291 _ACEOF
12292 if ac_fn_c_try_compile "$LINENO"; then :
12293
12294 else
12295   ac_c_werror_flag=$ac_save_c_werror_flag
12296          CFLAGS="-g"
12297          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12298 /* end confdefs.h.  */
12299
12300 int
12301 main ()
12302 {
12303
12304   ;
12305   return 0;
12306 }
12307 _ACEOF
12308 if ac_fn_c_try_compile "$LINENO"; then :
12309   ac_cv_prog_cc_g=yes
12310 fi
12311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12312 fi
12313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12314 fi
12315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12316    ac_c_werror_flag=$ac_save_c_werror_flag
12317 fi
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12319 $as_echo "$ac_cv_prog_cc_g" >&6; }
12320 if test "$ac_test_CFLAGS" = set; then
12321   CFLAGS=$ac_save_CFLAGS
12322 elif test $ac_cv_prog_cc_g = yes; then
12323   if test "$GCC" = yes; then
12324     CFLAGS="-g -O2"
12325   else
12326     CFLAGS="-g"
12327   fi
12328 else
12329   if test "$GCC" = yes; then
12330     CFLAGS="-O2"
12331   else
12332     CFLAGS=
12333   fi
12334 fi
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12336 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12337 if ${ac_cv_prog_cc_c89+:} false; then :
12338   $as_echo_n "(cached) " >&6
12339 else
12340   ac_cv_prog_cc_c89=no
12341 ac_save_CC=$CC
12342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12343 /* end confdefs.h.  */
12344 #include <stdarg.h>
12345 #include <stdio.h>
12346 #include <sys/types.h>
12347 #include <sys/stat.h>
12348 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12349 struct buf { int x; };
12350 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12351 static char *e (p, i)
12352      char **p;
12353      int i;
12354 {
12355   return p[i];
12356 }
12357 static char *f (char * (*g) (char **, int), char **p, ...)
12358 {
12359   char *s;
12360   va_list v;
12361   va_start (v,p);
12362   s = g (p, va_arg (v,int));
12363   va_end (v);
12364   return s;
12365 }
12366
12367 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12368    function prototypes and stuff, but not '\xHH' hex character constants.
12369    These don't provoke an error unfortunately, instead are silently treated
12370    as 'x'.  The following induces an error, until -std is added to get
12371    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12372    array size at least.  It's necessary to write '\x00'==0 to get something
12373    that's true only with -std.  */
12374 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12375
12376 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12377    inside strings and character constants.  */
12378 #define FOO(x) 'x'
12379 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12380
12381 int test (int i, double x);
12382 struct s1 {int (*f) (int a);};
12383 struct s2 {int (*f) (double a);};
12384 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12385 int argc;
12386 char **argv;
12387 int
12388 main ()
12389 {
12390 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12391   ;
12392   return 0;
12393 }
12394 _ACEOF
12395 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12396         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12397 do
12398   CC="$ac_save_CC $ac_arg"
12399   if ac_fn_c_try_compile "$LINENO"; then :
12400   ac_cv_prog_cc_c89=$ac_arg
12401 fi
12402 rm -f core conftest.err conftest.$ac_objext
12403   test "x$ac_cv_prog_cc_c89" != "xno" && break
12404 done
12405 rm -f conftest.$ac_ext
12406 CC=$ac_save_CC
12407
12408 fi
12409 # AC_CACHE_VAL
12410 case "x$ac_cv_prog_cc_c89" in
12411   x)
12412     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12413 $as_echo "none needed" >&6; } ;;
12414   xno)
12415     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12416 $as_echo "unsupported" >&6; } ;;
12417   *)
12418     CC="$CC $ac_cv_prog_cc_c89"
12419     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12420 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12421 esac
12422 if test "x$ac_cv_prog_cc_c89" != xno; then :
12423
12424 fi
12425
12426 ac_ext=c
12427 ac_cpp='$CPP $CPPFLAGS'
12428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12431
12432 depcc="$CC"   am_compiler_list=
12433
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12435 $as_echo_n "checking dependency style of $depcc... " >&6; }
12436 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12437   $as_echo_n "(cached) " >&6
12438 else
12439   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12440   # We make a subdir and do the tests there.  Otherwise we can end up
12441   # making bogus files that we don't know about and never remove.  For
12442   # instance it was reported that on HP-UX the gcc test will end up
12443   # making a dummy file named `D' -- because `-MD' means `put the output
12444   # in D'.
12445   rm -rf conftest.dir
12446   mkdir conftest.dir
12447   # Copy depcomp to subdir because otherwise we won't find it if we're
12448   # using a relative directory.
12449   cp "$am_depcomp" conftest.dir
12450   cd conftest.dir
12451   # We will build objects and dependencies in a subdirectory because
12452   # it helps to detect inapplicable dependency modes.  For instance
12453   # both Tru64's cc and ICC support -MD to output dependencies as a
12454   # side effect of compilation, but ICC will put the dependencies in
12455   # the current directory while Tru64 will put them in the object
12456   # directory.
12457   mkdir sub
12458
12459   am_cv_CC_dependencies_compiler_type=none
12460   if test "$am_compiler_list" = ""; then
12461      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12462   fi
12463   am__universal=false
12464   case " $depcc " in #(
12465      *\ -arch\ *\ -arch\ *) am__universal=true ;;
12466      esac
12467
12468   for depmode in $am_compiler_list; do
12469     # Setup a source with many dependencies, because some compilers
12470     # like to wrap large dependency lists on column 80 (with \), and
12471     # we should not choose a depcomp mode which is confused by this.
12472     #
12473     # We need to recreate these files for each test, as the compiler may
12474     # overwrite some of them when testing with obscure command lines.
12475     # This happens at least with the AIX C compiler.
12476     : > sub/conftest.c
12477     for i in 1 2 3 4 5 6; do
12478       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12479       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12480       # Solaris 8's {/usr,}/bin/sh.
12481       touch sub/conftst$i.h
12482     done
12483     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12484
12485     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12486     # mode.  It turns out that the SunPro C++ compiler does not properly
12487     # handle `-M -o', and we need to detect this.  Also, some Intel
12488     # versions had trouble with output in subdirs
12489     am__obj=sub/conftest.${OBJEXT-o}
12490     am__minus_obj="-o $am__obj"
12491     case $depmode in
12492     gcc)
12493       # This depmode causes a compiler race in universal mode.
12494       test "$am__universal" = false || continue
12495       ;;
12496     nosideeffect)
12497       # after this tag, mechanisms are not by side-effect, so they'll
12498       # only be used when explicitly requested
12499       if test "x$enable_dependency_tracking" = xyes; then
12500         continue
12501       else
12502         break
12503       fi
12504       ;;
12505     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12506       # This compiler won't grok `-c -o', but also, the minuso test has
12507       # not run yet.  These depmodes are late enough in the game, and
12508       # so weak that their functioning should not be impacted.
12509       am__obj=conftest.${OBJEXT-o}
12510       am__minus_obj=
12511       ;;
12512     none) break ;;
12513     esac
12514     if depmode=$depmode \
12515        source=sub/conftest.c object=$am__obj \
12516        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12517        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12518          >/dev/null 2>conftest.err &&
12519        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12520        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12521        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12522        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12523       # icc doesn't choke on unknown options, it will just issue warnings
12524       # or remarks (even with -Werror).  So we grep stderr for any message
12525       # that says an option was ignored or not supported.
12526       # When given -MP, icc 7.0 and 7.1 complain thusly:
12527       #   icc: Command line warning: ignoring option '-M'; no argument required
12528       # The diagnosis changed in icc 8.0:
12529       #   icc: Command line remark: option '-MP' not supported
12530       if (grep 'ignoring option' conftest.err ||
12531           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12532         am_cv_CC_dependencies_compiler_type=$depmode
12533         break
12534       fi
12535     fi
12536   done
12537
12538   cd ..
12539   rm -rf conftest.dir
12540 else
12541   am_cv_CC_dependencies_compiler_type=none
12542 fi
12543
12544 fi
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12546 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12547 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12548
12549  if
12550   test "x$enable_dependency_tracking" != xno \
12551   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12552   am__fastdepCC_TRUE=
12553   am__fastdepCC_FALSE='#'
12554 else
12555   am__fastdepCC_TRUE='#'
12556   am__fastdepCC_FALSE=
12557 fi
12558
12559
12560 if test "x$CC" != xcc; then
12561   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
12562 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12563 else
12564   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
12565 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12566 fi
12567 set dummy $CC; ac_cc=`$as_echo "$2" |
12568                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12569 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
12570   $as_echo_n "(cached) " >&6
12571 else
12572   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12573 /* end confdefs.h.  */
12574
12575 int
12576 main ()
12577 {
12578
12579   ;
12580   return 0;
12581 }
12582 _ACEOF
12583 # Make sure it works both with $CC and with simple cc.
12584 # We do the test twice because some compilers refuse to overwrite an
12585 # existing .o file with -o, though they will create one.
12586 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12587 rm -f conftest2.*
12588 if { { case "(($ac_try" in
12589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12590   *) ac_try_echo=$ac_try;;
12591 esac
12592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12593 $as_echo "$ac_try_echo"; } >&5
12594   (eval "$ac_try") 2>&5
12595   ac_status=$?
12596   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12597   test $ac_status = 0; } &&
12598    test -f conftest2.$ac_objext && { { case "(($ac_try" in
12599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12600   *) ac_try_echo=$ac_try;;
12601 esac
12602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12603 $as_echo "$ac_try_echo"; } >&5
12604   (eval "$ac_try") 2>&5
12605   ac_status=$?
12606   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12607   test $ac_status = 0; };
12608 then
12609   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12610   if test "x$CC" != xcc; then
12611     # Test first that cc exists at all.
12612     if { ac_try='cc -c conftest.$ac_ext >&5'
12613   { { case "(($ac_try" in
12614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12615   *) ac_try_echo=$ac_try;;
12616 esac
12617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12618 $as_echo "$ac_try_echo"; } >&5
12619   (eval "$ac_try") 2>&5
12620   ac_status=$?
12621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12622   test $ac_status = 0; }; }; then
12623       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12624       rm -f conftest2.*
12625       if { { case "(($ac_try" in
12626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12627   *) ac_try_echo=$ac_try;;
12628 esac
12629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12630 $as_echo "$ac_try_echo"; } >&5
12631   (eval "$ac_try") 2>&5
12632   ac_status=$?
12633   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12634   test $ac_status = 0; } &&
12635          test -f conftest2.$ac_objext && { { case "(($ac_try" in
12636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12637   *) ac_try_echo=$ac_try;;
12638 esac
12639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12640 $as_echo "$ac_try_echo"; } >&5
12641   (eval "$ac_try") 2>&5
12642   ac_status=$?
12643   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12644   test $ac_status = 0; };
12645       then
12646         # cc works too.
12647         :
12648       else
12649         # cc exists but doesn't like -o.
12650         eval ac_cv_prog_cc_${ac_cc}_c_o=no
12651       fi
12652     fi
12653   fi
12654 else
12655   eval ac_cv_prog_cc_${ac_cc}_c_o=no
12656 fi
12657 rm -f core conftest*
12658
12659 fi
12660 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12662 $as_echo "yes" >&6; }
12663 else
12664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12665 $as_echo "no" >&6; }
12666
12667 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
12668
12669 fi
12670
12671 # FIXME: we rely on the cache variable name because
12672 # there is no other way.
12673 set dummy $CC
12674 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12675 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12676 if test "$am_t" != yes; then
12677    # Losing compiler, so override with the script.
12678    # FIXME: It is wrong to rewrite CC.
12679    # But if we don't then we get into trouble of one sort or another.
12680    # A longer-term fix would be to have automake use am__CC in this case,
12681    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12682    CC="$am_aux_dir/compile $CC"
12683 fi
12684
12685
12686 # Extract the first word of "valac", so it can be a program name with args.
12687 set dummy valac; ac_word=$2
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12689 $as_echo_n "checking for $ac_word... " >&6; }
12690 if ${ac_cv_path_VALAC+:} false; then :
12691   $as_echo_n "(cached) " >&6
12692 else
12693   case $VALAC in
12694   [\\/]* | ?:[\\/]*)
12695   ac_cv_path_VALAC="$VALAC" # Let the user override the test with a path.
12696   ;;
12697   *)
12698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12699 for as_dir in $PATH
12700 do
12701   IFS=$as_save_IFS
12702   test -z "$as_dir" && as_dir=.
12703     for ac_exec_ext in '' $ac_executable_extensions; do
12704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12705     ac_cv_path_VALAC="$as_dir/$ac_word$ac_exec_ext"
12706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12707     break 2
12708   fi
12709 done
12710   done
12711 IFS=$as_save_IFS
12712
12713   ;;
12714 esac
12715 fi
12716 VALAC=$ac_cv_path_VALAC
12717 if test -n "$VALAC"; then
12718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALAC" >&5
12719 $as_echo "$VALAC" >&6; }
12720 else
12721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12722 $as_echo "no" >&6; }
12723 fi
12724
12725
12726  if test -z "$VALAC"; then :
12727   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No Vala compiler found.  You will not be able to compile .vala source files." >&5
12728 $as_echo "$as_me: WARNING: No Vala compiler found.  You will not be able to compile .vala source files." >&2;}
12729 else
12730   if test -n "0.9"; then :
12731   { $as_echo "$as_me:${as_lineno-$LINENO}: checking $VALAC is at least version 0.9" >&5
12732 $as_echo_n "checking $VALAC is at least version 0.9... " >&6; }
12733        am__vala_version=`$VALAC --version | sed 's/Vala  *//'`
12734        as_arg_v1=0.9
12735 as_arg_v2="$am__vala_version"
12736 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
12737 case $? in #(
12738   1) :
12739     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12740 $as_echo "yes" >&6; } ;; #(
12741   0) :
12742     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12743 $as_echo "yes" >&6; } ;; #(
12744   2) :
12745     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12746 $as_echo "no" >&6; }
12747           as_fn_error $? "Vala 0.9 not found." "$LINENO" 5 ;; #(
12748   *) :
12749      ;;
12750 esac
12751 fi
12752 fi
12753
12754
12755 # Platform checks
12756
12757
12758 case "$host" in
12759   *-*-mingw*)
12760     win32=yes
12761     macos=no
12762     linux=no
12763     SERVER_IPC_MODULE="msrpc-glib2-1.0"
12764     CLIENT_IPC_MODULE="msrpc-mingw-1.0"
12765
12766 pkg_failed=no
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
12768 $as_echo_n "checking for GTK... " >&6; }
12769
12770 if test -n "$GTK_CFLAGS"; then
12771     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
12772  elif test -n "$PKG_CONFIG"; then
12773     if test -n "$PKG_CONFIG" && \
12774     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
12775   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
12776   ac_status=$?
12777   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12778   test $ac_status = 0; }; then
12779   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.18" 2>/dev/null`
12780                       test "x$?" != "x0" && pkg_failed=yes
12781 else
12782   pkg_failed=yes
12783 fi
12784  else
12785     pkg_failed=untried
12786 fi
12787 if test -n "$GTK_LIBS"; then
12788     pkg_cv_GTK_LIBS="$GTK_LIBS"
12789  elif test -n "$PKG_CONFIG"; then
12790     if test -n "$PKG_CONFIG" && \
12791     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
12792   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
12793   ac_status=$?
12794   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12795   test $ac_status = 0; }; then
12796   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.18" 2>/dev/null`
12797                       test "x$?" != "x0" && pkg_failed=yes
12798 else
12799   pkg_failed=yes
12800 fi
12801  else
12802     pkg_failed=untried
12803 fi
12804
12805
12806
12807 if test $pkg_failed = yes; then
12808         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12809 $as_echo "no" >&6; }
12810
12811 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12812         _pkg_short_errors_supported=yes
12813 else
12814         _pkg_short_errors_supported=no
12815 fi
12816         if test $_pkg_short_errors_supported = yes; then
12817                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
12818         else
12819                 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
12820         fi
12821         # Put the nasty error message in config.log where it belongs
12822         echo "$GTK_PKG_ERRORS" >&5
12823
12824         as_fn_error $? "Package requirements (gtk+-2.0 >= 2.18) were not met:
12825
12826 $GTK_PKG_ERRORS
12827
12828 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12829 installed software in a non-standard prefix.
12830
12831 Alternatively, you may set the environment variables GTK_CFLAGS
12832 and GTK_LIBS to avoid the need to call pkg-config.
12833 See the pkg-config man page for more details." "$LINENO" 5
12834 elif test $pkg_failed = untried; then
12835         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12836 $as_echo "no" >&6; }
12837         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12839 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12840 is in your PATH or set the PKG_CONFIG environment variable to the full
12841 path to pkg-config.
12842
12843 Alternatively, you may set the environment variables GTK_CFLAGS
12844 and GTK_LIBS to avoid the need to call pkg-config.
12845 See the pkg-config man page for more details.
12846
12847 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12848 See \`config.log' for more details" "$LINENO" 5; }
12849 else
12850         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
12851         GTK_LIBS=$pkg_cv_GTK_LIBS
12852         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12853 $as_echo "yes" >&6; }
12854         GTK_VERSION="gtk+-2.0"
12855
12856 fi
12857     ;;
12858
12859   *darwin*)
12860     win32=no
12861     macos=yes
12862     linux=no
12863
12864     # We require dbus-glib for the client library even if we are using GDBus
12865     # in the server. The reason we can't always use dbus-glib in the server is
12866     # because Vala drops support for it, but as it ships with DBus there is very
12867     # little danger of it being dropped by distros any time soon.
12868     CLIENT_IPC_MODULE="dbus-glib-1"
12869         SERVER_IPC_MODULE="dbus-glib-1"
12870
12871
12872 pkg_failed=no
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAC" >&5
12874 $as_echo_n "checking for MAC... " >&6; }
12875
12876 if test -n "$MAC_CFLAGS"; then
12877     pkg_cv_MAC_CFLAGS="$MAC_CFLAGS"
12878  elif test -n "$PKG_CONFIG"; then
12879     if test -n "$PKG_CONFIG" && \
12880     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-mac-integration >= 1.0.1
12881         \""; } >&5
12882   ($PKG_CONFIG --exists --print-errors "gtk-mac-integration >= 1.0.1
12883         ") 2>&5
12884   ac_status=$?
12885   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12886   test $ac_status = 0; }; then
12887   pkg_cv_MAC_CFLAGS=`$PKG_CONFIG --cflags "gtk-mac-integration >= 1.0.1
12888         " 2>/dev/null`
12889                       test "x$?" != "x0" && pkg_failed=yes
12890 else
12891   pkg_failed=yes
12892 fi
12893  else
12894     pkg_failed=untried
12895 fi
12896 if test -n "$MAC_LIBS"; then
12897     pkg_cv_MAC_LIBS="$MAC_LIBS"
12898  elif test -n "$PKG_CONFIG"; then
12899     if test -n "$PKG_CONFIG" && \
12900     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-mac-integration >= 1.0.1
12901         \""; } >&5
12902   ($PKG_CONFIG --exists --print-errors "gtk-mac-integration >= 1.0.1
12903         ") 2>&5
12904   ac_status=$?
12905   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12906   test $ac_status = 0; }; then
12907   pkg_cv_MAC_LIBS=`$PKG_CONFIG --libs "gtk-mac-integration >= 1.0.1
12908         " 2>/dev/null`
12909                       test "x$?" != "x0" && pkg_failed=yes
12910 else
12911   pkg_failed=yes
12912 fi
12913  else
12914     pkg_failed=untried
12915 fi
12916
12917
12918
12919 if test $pkg_failed = yes; then
12920         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12921 $as_echo "no" >&6; }
12922
12923 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12924         _pkg_short_errors_supported=yes
12925 else
12926         _pkg_short_errors_supported=no
12927 fi
12928         if test $_pkg_short_errors_supported = yes; then
12929                 MAC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk-mac-integration >= 1.0.1
12930         " 2>&1`
12931         else
12932                 MAC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk-mac-integration >= 1.0.1
12933         " 2>&1`
12934         fi
12935         # Put the nasty error message in config.log where it belongs
12936         echo "$MAC_PKG_ERRORS" >&5
12937
12938         as_fn_error $? "Package requirements (gtk-mac-integration >= 1.0.1
12939         ) were not met:
12940
12941 $MAC_PKG_ERRORS
12942
12943 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12944 installed software in a non-standard prefix.
12945
12946 Alternatively, you may set the environment variables MAC_CFLAGS
12947 and MAC_LIBS to avoid the need to call pkg-config.
12948 See the pkg-config man page for more details." "$LINENO" 5
12949 elif test $pkg_failed = untried; then
12950         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12951 $as_echo "no" >&6; }
12952         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12954 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12955 is in your PATH or set the PKG_CONFIG environment variable to the full
12956 path to pkg-config.
12957
12958 Alternatively, you may set the environment variables MAC_CFLAGS
12959 and MAC_LIBS to avoid the need to call pkg-config.
12960 See the pkg-config man page for more details.
12961
12962 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12963 See \`config.log' for more details" "$LINENO" 5; }
12964 else
12965         MAC_CFLAGS=$pkg_cv_MAC_CFLAGS
12966         MAC_LIBS=$pkg_cv_MAC_LIBS
12967         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12968 $as_echo "yes" >&6; }
12969
12970 fi
12971
12972 # TODO: Move to GTK+-3
12973 #            [gtk+-3.0 >= 2.0],
12974 #            [GTK_VERSION="gtk+-3.0"]
12975
12976 pkg_failed=no
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
12978 $as_echo_n "checking for GTK... " >&6; }
12979
12980 if test -n "$GTK_CFLAGS"; then
12981     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
12982  elif test -n "$PKG_CONFIG"; then
12983     if test -n "$PKG_CONFIG" && \
12984     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
12985   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
12986   ac_status=$?
12987   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12988   test $ac_status = 0; }; then
12989   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.18" 2>/dev/null`
12990                       test "x$?" != "x0" && pkg_failed=yes
12991 else
12992   pkg_failed=yes
12993 fi
12994  else
12995     pkg_failed=untried
12996 fi
12997 if test -n "$GTK_LIBS"; then
12998     pkg_cv_GTK_LIBS="$GTK_LIBS"
12999  elif test -n "$PKG_CONFIG"; then
13000     if test -n "$PKG_CONFIG" && \
13001     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
13002   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
13003   ac_status=$?
13004   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13005   test $ac_status = 0; }; then
13006   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.18" 2>/dev/null`
13007                       test "x$?" != "x0" && pkg_failed=yes
13008 else
13009   pkg_failed=yes
13010 fi
13011  else
13012     pkg_failed=untried
13013 fi
13014
13015
13016
13017 if test $pkg_failed = yes; then
13018         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13019 $as_echo "no" >&6; }
13020
13021 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13022         _pkg_short_errors_supported=yes
13023 else
13024         _pkg_short_errors_supported=no
13025 fi
13026         if test $_pkg_short_errors_supported = yes; then
13027                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
13028         else
13029                 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
13030         fi
13031         # Put the nasty error message in config.log where it belongs
13032         echo "$GTK_PKG_ERRORS" >&5
13033
13034         as_fn_error $? "Package requirements (gtk+-2.0 >= 2.18) were not met:
13035
13036 $GTK_PKG_ERRORS
13037
13038 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13039 installed software in a non-standard prefix.
13040
13041 Alternatively, you may set the environment variables GTK_CFLAGS
13042 and GTK_LIBS to avoid the need to call pkg-config.
13043 See the pkg-config man page for more details." "$LINENO" 5
13044 elif test $pkg_failed = untried; then
13045         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13046 $as_echo "no" >&6; }
13047         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13049 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13050 is in your PATH or set the PKG_CONFIG environment variable to the full
13051 path to pkg-config.
13052
13053 Alternatively, you may set the environment variables GTK_CFLAGS
13054 and GTK_LIBS to avoid the need to call pkg-config.
13055 See the pkg-config man page for more details.
13056
13057 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13058 See \`config.log' for more details" "$LINENO" 5; }
13059 else
13060         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
13061         GTK_LIBS=$pkg_cv_GTK_LIBS
13062         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13063 $as_echo "yes" >&6; }
13064         GTK_VERSION="gtk+-2.0"
13065
13066 fi
13067
13068     ;;
13069   *)
13070     macos=no
13071     win32=no
13072     linux=yes
13073
13074     # We require dbus-glib for the client library even if we are using GDBus
13075     # in the server. The reason we can't always use dbus-glib in the server is
13076     # because Vala drops support for it, but as it ships with DBus there is very
13077     # little danger of it being dropped by distros any time soon.
13078     CLIENT_IPC_MODULE="dbus-glib-1"
13079
13080 pkg_failed=no
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GDBUS" >&5
13082 $as_echo_n "checking for GDBUS... " >&6; }
13083
13084 if test -n "$GDBUS_CFLAGS"; then
13085     pkg_cv_GDBUS_CFLAGS="$GDBUS_CFLAGS"
13086  elif test -n "$PKG_CONFIG"; then
13087     if test -n "$PKG_CONFIG" && \
13088     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
13089   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
13090   ac_status=$?
13091   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13092   test $ac_status = 0; }; then
13093   pkg_cv_GDBUS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>/dev/null`
13094                       test "x$?" != "x0" && pkg_failed=yes
13095 else
13096   pkg_failed=yes
13097 fi
13098  else
13099     pkg_failed=untried
13100 fi
13101 if test -n "$GDBUS_LIBS"; then
13102     pkg_cv_GDBUS_LIBS="$GDBUS_LIBS"
13103  elif test -n "$PKG_CONFIG"; then
13104     if test -n "$PKG_CONFIG" && \
13105     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
13106   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
13107   ac_status=$?
13108   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13109   test $ac_status = 0; }; then
13110   pkg_cv_GDBUS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>/dev/null`
13111                       test "x$?" != "x0" && pkg_failed=yes
13112 else
13113   pkg_failed=yes
13114 fi
13115  else
13116     pkg_failed=untried
13117 fi
13118
13119
13120
13121 if test $pkg_failed = yes; then
13122         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13123 $as_echo "no" >&6; }
13124
13125 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13126         _pkg_short_errors_supported=yes
13127 else
13128         _pkg_short_errors_supported=no
13129 fi
13130         if test $_pkg_short_errors_supported = yes; then
13131                 GDBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= 2.26" 2>&1`
13132         else
13133                 GDBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= 2.26" 2>&1`
13134         fi
13135         # Put the nasty error message in config.log where it belongs
13136         echo "$GDBUS_PKG_ERRORS" >&5
13137
13138         SERVER_IPC_MODULE="dbus-glib-1"
13139
13140 elif test $pkg_failed = untried; then
13141         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13142 $as_echo "no" >&6; }
13143         SERVER_IPC_MODULE="dbus-glib-1"
13144
13145 else
13146         GDBUS_CFLAGS=$pkg_cv_GDBUS_CFLAGS
13147         GDBUS_LIBS=$pkg_cv_GDBUS_LIBS
13148         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13149 $as_echo "yes" >&6; }
13150         SERVER_IPC_MODULE="gio-2.0"
13151 fi
13152 # TODO: Move to GTK+-3
13153 #            [gtk+-3.0 >= 2.0],
13154 #            [GTK_VERSION="gtk+-3.0"]
13155
13156 pkg_failed=no
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
13158 $as_echo_n "checking for GTK... " >&6; }
13159
13160 if test -n "$GTK_CFLAGS"; then
13161     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
13162  elif test -n "$PKG_CONFIG"; then
13163     if test -n "$PKG_CONFIG" && \
13164     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
13165   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
13166   ac_status=$?
13167   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13168   test $ac_status = 0; }; then
13169   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.18" 2>/dev/null`
13170                       test "x$?" != "x0" && pkg_failed=yes
13171 else
13172   pkg_failed=yes
13173 fi
13174  else
13175     pkg_failed=untried
13176 fi
13177 if test -n "$GTK_LIBS"; then
13178     pkg_cv_GTK_LIBS="$GTK_LIBS"
13179  elif test -n "$PKG_CONFIG"; then
13180     if test -n "$PKG_CONFIG" && \
13181     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
13182   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
13183   ac_status=$?
13184   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13185   test $ac_status = 0; }; then
13186   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.18" 2>/dev/null`
13187                       test "x$?" != "x0" && pkg_failed=yes
13188 else
13189   pkg_failed=yes
13190 fi
13191  else
13192     pkg_failed=untried
13193 fi
13194
13195
13196
13197 if test $pkg_failed = yes; then
13198         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13199 $as_echo "no" >&6; }
13200
13201 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13202         _pkg_short_errors_supported=yes
13203 else
13204         _pkg_short_errors_supported=no
13205 fi
13206         if test $_pkg_short_errors_supported = yes; then
13207                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
13208         else
13209                 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
13210         fi
13211         # Put the nasty error message in config.log where it belongs
13212         echo "$GTK_PKG_ERRORS" >&5
13213
13214         as_fn_error $? "Package requirements (gtk+-2.0 >= 2.18) were not met:
13215
13216 $GTK_PKG_ERRORS
13217
13218 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13219 installed software in a non-standard prefix.
13220
13221 Alternatively, you may set the environment variables GTK_CFLAGS
13222 and GTK_LIBS to avoid the need to call pkg-config.
13223 See the pkg-config man page for more details." "$LINENO" 5
13224 elif test $pkg_failed = untried; then
13225         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13226 $as_echo "no" >&6; }
13227         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13229 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13230 is in your PATH or set the PKG_CONFIG environment variable to the full
13231 path to pkg-config.
13232
13233 Alternatively, you may set the environment variables GTK_CFLAGS
13234 and GTK_LIBS to avoid the need to call pkg-config.
13235 See the pkg-config man page for more details.
13236
13237 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13238 See \`config.log' for more details" "$LINENO" 5; }
13239 else
13240         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
13241         GTK_LIBS=$pkg_cv_GTK_LIBS
13242         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13243 $as_echo "yes" >&6; }
13244         GTK_VERSION="gtk+-2.0"
13245
13246 fi
13247
13248     ;;
13249 esac
13250
13251  if test "$linux" = "yes"; then
13252   OS_LINUX_TRUE=
13253   OS_LINUX_FALSE='#'
13254 else
13255   OS_LINUX_TRUE='#'
13256   OS_LINUX_FALSE=
13257 fi
13258
13259  if test "$win32" = "yes"; then
13260   OS_WIN32_TRUE=
13261   OS_WIN32_FALSE='#'
13262 else
13263   OS_WIN32_TRUE='#'
13264   OS_WIN32_FALSE=
13265 fi
13266
13267  if test "$macos" = "yes"; then
13268   OS_MACOS_TRUE=
13269   OS_MACOS_FALSE='#'
13270 else
13271   OS_MACOS_TRUE='#'
13272   OS_MACOS_FALSE=
13273 fi
13274
13275
13276  if test "$SERVER_IPC_MODULE" = "msrpc-glib2-1.0"; then
13277   IPC_MSRPC_TRUE=
13278   IPC_MSRPC_FALSE='#'
13279 else
13280   IPC_MSRPC_TRUE='#'
13281   IPC_MSRPC_FALSE=
13282 fi
13283
13284  if test "$SERVER_IPC_MODULE" != "msrpc-glib2-1.0"; then
13285   IPC_DBUS_TRUE=
13286   IPC_DBUS_FALSE='#'
13287 else
13288   IPC_DBUS_TRUE='#'
13289   IPC_DBUS_FALSE=
13290 fi
13291
13292  if test "$SERVER_IPC_MODULE" = "dbus-glib-1"; then
13293   IPC_DBUS_GLIB_TRUE=
13294   IPC_DBUS_GLIB_FALSE='#'
13295 else
13296   IPC_DBUS_GLIB_TRUE='#'
13297   IPC_DBUS_GLIB_FALSE=
13298 fi
13299
13300  if test "$SERVER_IPC_MODULE" = "gio-2.0"; then
13301   IPC_GDBUS_TRUE=
13302   IPC_GDBUS_FALSE='#'
13303 else
13304   IPC_GDBUS_TRUE='#'
13305   IPC_GDBUS_FALSE=
13306 fi
13307
13308
13309 if test "$SERVER_IPC_MODULE" = "dbus-glib-1"; then
13310   { $as_echo "$as_me:${as_lineno-$LINENO}: checking $VALAC is no greater than 0.12.1" >&5
13311 $as_echo_n "checking $VALAC is no greater than 0.12.1... " >&6; }
13312   vala_version=`$VALAC --version | sed 's/Vala  *//'`
13313   as_arg_v1=0.12.2
13314 as_arg_v2="$vala_version"
13315 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
13316 case $? in #(
13317   1) :
13318     vala_supports_dbus_glib="no" ;; #(
13319   0) :
13320     vala_supports_dbus_glib="no" ;; #(
13321   2) :
13322     vala_supports_dbus_glib="yes" ;; #(
13323   *) :
13324      ;;
13325 esac
13326
13327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vala_supports_dbus_glib" >&5
13328 $as_echo "$vala_supports_dbus_glib" >&6; }
13329   if test "$vala_supports_dbus_glib" = "no"; then
13330     as_fn_error $? "
13331 *** Vala 0.12.1 or earlier is required for dbus-glib support. Newer versions
13332 *** require that you have GLib 2.26 or newer (for GDBus support)." "$LINENO" 5
13333   fi
13334 fi
13335
13336 if test "$SERVER_IPC_MODULE" = "msrpc-glib2-1.0"; then
13337   # MS RPC utilities
13338
13339   pkg_config_args="msrpc-mingw-1.0"
13340
13341
13342
13343
13344
13345
13346
13347
13348 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13349         if test -n "$ac_tool_prefix"; then
13350   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13351 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13353 $as_echo_n "checking for $ac_word... " >&6; }
13354 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13355   $as_echo_n "(cached) " >&6
13356 else
13357   case $PKG_CONFIG in
13358   [\\/]* | ?:[\\/]*)
13359   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13360   ;;
13361   *)
13362   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13363 for as_dir in $PATH
13364 do
13365   IFS=$as_save_IFS
13366   test -z "$as_dir" && as_dir=.
13367     for ac_exec_ext in '' $ac_executable_extensions; do
13368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13369     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13371     break 2
13372   fi
13373 done
13374   done
13375 IFS=$as_save_IFS
13376
13377   ;;
13378 esac
13379 fi
13380 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13381 if test -n "$PKG_CONFIG"; then
13382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13383 $as_echo "$PKG_CONFIG" >&6; }
13384 else
13385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13386 $as_echo "no" >&6; }
13387 fi
13388
13389
13390 fi
13391 if test -z "$ac_cv_path_PKG_CONFIG"; then
13392   ac_pt_PKG_CONFIG=$PKG_CONFIG
13393   # Extract the first word of "pkg-config", so it can be a program name with args.
13394 set dummy pkg-config; ac_word=$2
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13396 $as_echo_n "checking for $ac_word... " >&6; }
13397 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13398   $as_echo_n "(cached) " >&6
13399 else
13400   case $ac_pt_PKG_CONFIG in
13401   [\\/]* | ?:[\\/]*)
13402   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13403   ;;
13404   *)
13405   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13406 for as_dir in $PATH
13407 do
13408   IFS=$as_save_IFS
13409   test -z "$as_dir" && as_dir=.
13410     for ac_exec_ext in '' $ac_executable_extensions; do
13411   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13412     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13413     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13414     break 2
13415   fi
13416 done
13417   done
13418 IFS=$as_save_IFS
13419
13420   ;;
13421 esac
13422 fi
13423 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13424 if test -n "$ac_pt_PKG_CONFIG"; then
13425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13426 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13427 else
13428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13429 $as_echo "no" >&6; }
13430 fi
13431
13432   if test "x$ac_pt_PKG_CONFIG" = x; then
13433     PKG_CONFIG=""
13434   else
13435     case $cross_compiling:$ac_tool_warned in
13436 yes:)
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13439 ac_tool_warned=yes ;;
13440 esac
13441     PKG_CONFIG=$ac_pt_PKG_CONFIG
13442   fi
13443 else
13444   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13445 fi
13446
13447 fi
13448 if test -n "$PKG_CONFIG"; then
13449         _pkg_min_version=0.16
13450         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13451 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13452         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13453                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13454 $as_echo "yes" >&6; }
13455         else
13456                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13457 $as_echo "no" >&6; }
13458                 PKG_CONFIG=""
13459         fi
13460 fi
13461
13462   no_msrpc=""
13463
13464   if test "x$PKG_CONFIG" = x ; then
13465     no_msrpc=yes
13466     PKG_CONFIG=no
13467   fi
13468
13469   min_msrpc_mingw_version=0.1.0
13470   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msrpc-mingw - version >= $min_msrpc_version" >&5
13471 $as_echo_n "checking for msrpc-mingw - version >= $min_msrpc_version... " >&6; }
13472
13473   if test x$PKG_CONFIG != xno ; then
13474     if $PKG_CONFIG --uninstalled $pkg_config_args; then
13475       echo "Will use uninstalled version of msrpc-mingw found in PKG_CONFIG_PATH"
13476     fi
13477
13478     if $PKG_CONFIG --atleast-version $min_msrpc_mingw_version $pkg_config_args; then
13479       :
13480     else
13481       no_msrpc=yes
13482     fi
13483   fi
13484
13485   if test x"$no_msrpc" = x ; then
13486     MIDL_WRAPPER=`$PKG_CONFIG --variable=midl_wrapper msrpc-mingw-1.0`
13487     MSRPC_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
13488     MSRPC_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
13489   fi
13490
13491   if test "x$no_msrpc" = x ; then
13492      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13493 $as_echo "yes" >&6; }
13494      :
13495   else
13496      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13497 $as_echo "no" >&6; }
13498      if test "$PKG_CONFIG" = "no" ; then
13499        echo "*** A new enough version of pkg-config was not found."
13500        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
13501      else
13502        echo "not found"
13503      fi
13504      MSRPC_CFLAGS=""
13505      MSRPC_LIBS=""
13506      MIDL_WRAPPER=""
13507      as_fn_error $? "
13508 *** msrpc-mingw 0.1.0 or better is required." "$LINENO" 5
13509   fi
13510
13511
13512
13513
13514
13515   # Extract the first word of "midl", so it can be a program name with args.
13516 set dummy midl; ac_word=$2
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13518 $as_echo_n "checking for $ac_word... " >&6; }
13519 if ${ac_cv_path_MIDL+:} false; then :
13520   $as_echo_n "(cached) " >&6
13521 else
13522   case $MIDL in
13523   [\\/]* | ?:[\\/]*)
13524   ac_cv_path_MIDL="$MIDL" # Let the user override the test with a path.
13525   ;;
13526   *)
13527   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13528 for as_dir in /c/Program\ Files/Microsoft\ SDKs/Windows/v7.0/Bin$PATH_SEPARATOR$PATH
13529 do
13530   IFS=$as_save_IFS
13531   test -z "$as_dir" && as_dir=.
13532     for ac_exec_ext in '' $ac_executable_extensions; do
13533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13534     ac_cv_path_MIDL="$as_dir/$ac_word$ac_exec_ext"
13535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13536     break 2
13537   fi
13538 done
13539   done
13540 IFS=$as_save_IFS
13541
13542   test -z "$ac_cv_path_MIDL" && ac_cv_path_MIDL="no"
13543   ;;
13544 esac
13545 fi
13546 MIDL=$ac_cv_path_MIDL
13547 if test -n "$MIDL"; then
13548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIDL" >&5
13549 $as_echo "$MIDL" >&6; }
13550 else
13551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13552 $as_echo "no" >&6; }
13553 fi
13554
13555
13556   if test "$MIDL" = "no"; then
13557      as_fn_error $? "
13558 *** Could not find the Microsoft interface compiler MIDL.EXE.
13559 *** This program is available as part of the MS Windows SDK, in
13560 *** the Win32 Development Tools package. If it is not in the PATH
13561 *** or its default location you may set the 'MIDL' environment
13562 *** variable to point to its location and rerun configure." "$LINENO" 5
13563   fi
13564 fi
13565
13566 if test "$win32" = "yes"; then
13567   # Other Windows-specific tools
13568
13569   # LIB.EXE from MSVC to build an MSVC-compatible import library.
13570   # Extract the first word of "lib", so it can be a program name with args.
13571 set dummy lib; ac_word=$2
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13573 $as_echo_n "checking for $ac_word... " >&6; }
13574 if ${ac_cv_path_MSVC_LIB+:} false; then :
13575   $as_echo_n "(cached) " >&6
13576 else
13577   case $MSVC_LIB in
13578   [\\/]* | ?:[\\/]*)
13579   ac_cv_path_MSVC_LIB="$MSVC_LIB" # Let the user override the test with a path.
13580   ;;
13581   *)
13582   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13583 for as_dir in /c/Program\ Files/Microsoft\ Visual\ Studio\ 9.0/VC/bin$PATH_SEPARATOR/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio\ 9.0/VC/bin$PATH_SEPARATOR$PATH
13584 do
13585   IFS=$as_save_IFS
13586   test -z "$as_dir" && as_dir=.
13587     for ac_exec_ext in '' $ac_executable_extensions; do
13588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13589     ac_cv_path_MSVC_LIB="$as_dir/$ac_word$ac_exec_ext"
13590     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13591     break 2
13592   fi
13593 done
13594   done
13595 IFS=$as_save_IFS
13596
13597   test -z "$ac_cv_path_MSVC_LIB" && ac_cv_path_MSVC_LIB="no"
13598   ;;
13599 esac
13600 fi
13601 MSVC_LIB=$ac_cv_path_MSVC_LIB
13602 if test -n "$MSVC_LIB"; then
13603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_LIB" >&5
13604 $as_echo "$MSVC_LIB" >&6; }
13605 else
13606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13607 $as_echo "no" >&6; }
13608 fi
13609
13610
13611
13612   if test "$MSVC_LIB" = "no"; then
13613      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13614 *** Could not find the Microsoft 'LIB.EXE' program. This is required
13615 *** to build the Visual C import library for libmoonshot. Use the
13616 *** MSVC_LIB environment variable to pass its location if this is
13617 *** outside the PATH." >&5
13618 $as_echo "$as_me: WARNING:
13619 *** Could not find the Microsoft 'LIB.EXE' program. This is required
13620 *** to build the Visual C import library for libmoonshot. Use the
13621 *** MSVC_LIB environment variable to pass its location if this is
13622 *** outside the PATH." >&2;}
13623   fi
13624
13625
13626   # ImageMagick for the 'make icons' target. Note that
13627   # c:/windows/system32/convert.exe is nothing to do with ImageMagick.
13628   # Extract the first word of "convert", so it can be a program name with args.
13629 set dummy convert; ac_word=$2
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13631 $as_echo_n "checking for $ac_word... " >&6; }
13632 if ${ac_cv_path_IMAGEMAGICK_CONVERT+:} false; then :
13633   $as_echo_n "(cached) " >&6
13634 else
13635   case $IMAGEMAGICK_CONVERT in
13636   [\\/]* | ?:[\\/]*)
13637   ac_cv_path_IMAGEMAGICK_CONVERT="$IMAGEMAGICK_CONVERT" # Let the user override the test with a path.
13638   ;;
13639   *)
13640   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13641 for as_dir in /c/Program\ Files/ImageMagick$PATH_SEPARATOR/c/Program\ Files\ \(x86\)/ImageMagick$PATH_SEPARATOR$PATH
13642 do
13643   IFS=$as_save_IFS
13644   test -z "$as_dir" && as_dir=.
13645     for ac_exec_ext in '' $ac_executable_extensions; do
13646   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13647     ac_cv_path_IMAGEMAGICK_CONVERT="$as_dir/$ac_word$ac_exec_ext"
13648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13649     break 2
13650   fi
13651 done
13652   done
13653 IFS=$as_save_IFS
13654
13655   test -z "$ac_cv_path_IMAGEMAGICK_CONVERT" && ac_cv_path_IMAGEMAGICK_CONVERT="no"
13656   ;;
13657 esac
13658 fi
13659 IMAGEMAGICK_CONVERT=$ac_cv_path_IMAGEMAGICK_CONVERT
13660 if test -n "$IMAGEMAGICK_CONVERT"; then
13661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CONVERT" >&5
13662 $as_echo "$IMAGEMAGICK_CONVERT" >&6; }
13663 else
13664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13665 $as_echo "no" >&6; }
13666 fi
13667
13668
13669
13670   if test "$IMAGEMAGICK_CONVERT" = "no" || test "$IMAGEMAGICK_CONVERT" = "/c/windows/system32/convert"; then
13671      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13672 *** Could not find ImageMagick convert.exe. This is required for the
13673 *** 'make icons' target. Use the IMAGEMAGICK_CONVERT environment
13674 *** variable to pass its location if this is outside the PATH." >&5
13675 $as_echo "$as_me: WARNING:
13676 *** Could not find ImageMagick convert.exe. This is required for the
13677 *** 'make icons' target. Use the IMAGEMAGICK_CONVERT environment
13678 *** variable to pass its location if this is outside the PATH." >&2;}
13679   fi
13680
13681
13682   # Windows Installer XML tools
13683   # Extract the first word of "candle", so it can be a program name with args.
13684 set dummy candle; ac_word=$2
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13686 $as_echo_n "checking for $ac_word... " >&6; }
13687 if ${ac_cv_path_WIX_CANDLE+:} false; then :
13688   $as_echo_n "(cached) " >&6
13689 else
13690   case $WIX_CANDLE in
13691   [\\/]* | ?:[\\/]*)
13692   ac_cv_path_WIX_CANDLE="$WIX_CANDLE" # Let the user override the test with a path.
13693   ;;
13694   *)
13695   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13696 for as_dir in /c/Program\ Files/Windows\ Installer\ XML\ v3.5/bin$PATH_SEPARATOR/c/Program\ Files\ \(x86\)/Windows\ Installer\ XML\ v3.5/bin$PATH_SEPARATOR$PATH
13697 do
13698   IFS=$as_save_IFS
13699   test -z "$as_dir" && as_dir=.
13700     for ac_exec_ext in '' $ac_executable_extensions; do
13701   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13702     ac_cv_path_WIX_CANDLE="$as_dir/$ac_word$ac_exec_ext"
13703     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13704     break 2
13705   fi
13706 done
13707   done
13708 IFS=$as_save_IFS
13709
13710   test -z "$ac_cv_path_WIX_CANDLE" && ac_cv_path_WIX_CANDLE="no"
13711   ;;
13712 esac
13713 fi
13714 WIX_CANDLE=$ac_cv_path_WIX_CANDLE
13715 if test -n "$WIX_CANDLE"; then
13716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WIX_CANDLE" >&5
13717 $as_echo "$WIX_CANDLE" >&6; }
13718 else
13719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13720 $as_echo "no" >&6; }
13721 fi
13722
13723
13724   # Extract the first word of "light", so it can be a program name with args.
13725 set dummy light; ac_word=$2
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13727 $as_echo_n "checking for $ac_word... " >&6; }
13728 if ${ac_cv_path_WIX_LIGHT+:} false; then :
13729   $as_echo_n "(cached) " >&6
13730 else
13731   case $WIX_LIGHT in
13732   [\\/]* | ?:[\\/]*)
13733   ac_cv_path_WIX_LIGHT="$WIX_LIGHT" # Let the user override the test with a path.
13734   ;;
13735   *)
13736   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13737 for as_dir in /c/Program\ Files/Windows\ Installer\ XML\ v3.5/bin$PATH_SEPARATOR/c/Program\ Files\ \(x86\)/Windows\ Installer\ XML\ v3.5/bin$PATH_SEPARATOR$PATH
13738 do
13739   IFS=$as_save_IFS
13740   test -z "$as_dir" && as_dir=.
13741     for ac_exec_ext in '' $ac_executable_extensions; do
13742   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13743     ac_cv_path_WIX_LIGHT="$as_dir/$ac_word$ac_exec_ext"
13744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13745     break 2
13746   fi
13747 done
13748   done
13749 IFS=$as_save_IFS
13750
13751   test -z "$ac_cv_path_WIX_LIGHT" && ac_cv_path_WIX_LIGHT="no"
13752   ;;
13753 esac
13754 fi
13755 WIX_LIGHT=$ac_cv_path_WIX_LIGHT
13756 if test -n "$WIX_LIGHT"; then
13757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WIX_LIGHT" >&5
13758 $as_echo "$WIX_LIGHT" >&6; }
13759 else
13760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13761 $as_echo "no" >&6; }
13762 fi
13763
13764
13765
13766   if test "$WIX_CANDLE" = "no" || test "$WIX_LIGHT" = "no"; then
13767      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13768 *** Could not find the Windows Installer XML tools. These are required
13769 *** for the 'make installer' target. Use the WIX_CANDLE and WIX_LIGHT
13770 *** environment variables to pass their locations if they are outside
13771 *** the PATH." >&5
13772 $as_echo "$as_me: WARNING:
13773 *** Could not find the Windows Installer XML tools. These are required
13774 *** for the 'make installer' target. Use the WIX_CANDLE and WIX_LIGHT
13775 *** environment variables to pass their locations if they are outside
13776 *** the PATH." >&2;}
13777   fi
13778 fi
13779
13780 if test "$linux" = "yes"; then
13781   # Extract the first word of "update-mime-database", so it can be a program name with args.
13782 set dummy update-mime-database; ac_word=$2
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13784 $as_echo_n "checking for $ac_word... " >&6; }
13785 if ${ac_cv_path_UPDATE_MIME_DATABASE+:} false; then :
13786   $as_echo_n "(cached) " >&6
13787 else
13788   case $UPDATE_MIME_DATABASE in
13789   [\\/]* | ?:[\\/]*)
13790   ac_cv_path_UPDATE_MIME_DATABASE="$UPDATE_MIME_DATABASE" # Let the user override the test with a path.
13791   ;;
13792   *)
13793   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13794 for as_dir in $PATH
13795 do
13796   IFS=$as_save_IFS
13797   test -z "$as_dir" && as_dir=.
13798     for ac_exec_ext in '' $ac_executable_extensions; do
13799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13800     ac_cv_path_UPDATE_MIME_DATABASE="$as_dir/$ac_word$ac_exec_ext"
13801     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13802     break 2
13803   fi
13804 done
13805   done
13806 IFS=$as_save_IFS
13807
13808   test -z "$ac_cv_path_UPDATE_MIME_DATABASE" && ac_cv_path_UPDATE_MIME_DATABASE="no"
13809   ;;
13810 esac
13811 fi
13812 UPDATE_MIME_DATABASE=$ac_cv_path_UPDATE_MIME_DATABASE
13813 if test -n "$UPDATE_MIME_DATABASE"; then
13814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_MIME_DATABASE" >&5
13815 $as_echo "$UPDATE_MIME_DATABASE" >&6; }
13816 else
13817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13818 $as_echo "no" >&6; }
13819 fi
13820
13821
13822   if test "$UPDATE_MIME_DATABASE" = "no"; then
13823     as_fn_error $? "
13824 *** Could not find the Freedesktop.org  mime database update tool.
13825 *** Web provisioning files could not be automatically installed." "$LINENO" 5
13826   fi
13827   # Extract the first word of "update-desktop-database", so it can be a program name with args.
13828 set dummy update-desktop-database; ac_word=$2
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13830 $as_echo_n "checking for $ac_word... " >&6; }
13831 if ${ac_cv_path_UPDATE_DESKTOP_DATABASE+:} false; then :
13832   $as_echo_n "(cached) " >&6
13833 else
13834   case $UPDATE_DESKTOP_DATABASE in
13835   [\\/]* | ?:[\\/]*)
13836   ac_cv_path_UPDATE_DESKTOP_DATABASE="$UPDATE_DESKTOP_DATABASE" # Let the user override the test with a path.
13837   ;;
13838   *)
13839   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13840 for as_dir in $PATH
13841 do
13842   IFS=$as_save_IFS
13843   test -z "$as_dir" && as_dir=.
13844     for ac_exec_ext in '' $ac_executable_extensions; do
13845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13846     ac_cv_path_UPDATE_DESKTOP_DATABASE="$as_dir/$ac_word$ac_exec_ext"
13847     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13848     break 2
13849   fi
13850 done
13851   done
13852 IFS=$as_save_IFS
13853
13854   test -z "$ac_cv_path_UPDATE_DESKTOP_DATABASE" && ac_cv_path_UPDATE_DESKTOP_DATABASE="no"
13855   ;;
13856 esac
13857 fi
13858 UPDATE_DESKTOP_DATABASE=$ac_cv_path_UPDATE_DESKTOP_DATABASE
13859 if test -n "$UPDATE_DESKTOP_DATABASE"; then
13860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_DESKTOP_DATABASE" >&5
13861 $as_echo "$UPDATE_DESKTOP_DATABASE" >&6; }
13862 else
13863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13864 $as_echo "no" >&6; }
13865 fi
13866
13867
13868   if test "$UPDATE_DESKTOP_DATABASE" = "no"; then
13869     as_fn_error $? "
13870 *** Could not find the Freedesktop.org desktop entry database update
13871 *** tool. Web provisioning files could not be automatically installed." "$LINENO" 5
13872   fi
13873 fi
13874
13875 MOONSHOT_APP="$bindir/moonshot"
13876 MOONSHOT_WEBP="$bindir/moonshot-webp"
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888 # Dependencies
13889
13890 pkg_failed=no
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moonshot" >&5
13892 $as_echo_n "checking for moonshot... " >&6; }
13893
13894 if test -n "$moonshot_CFLAGS"; then
13895     pkg_cv_moonshot_CFLAGS="$moonshot_CFLAGS"
13896  elif test -n "$PKG_CONFIG"; then
13897     if test -n "$PKG_CONFIG" && \
13898     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
13899         atk >= 1.20
13900         glib-2.0 >= 2.22
13901         gobject-2.0 >= 2.22
13902         \$GTK_VERSION
13903         gee-1.0 >= 0.5
13904         \$SERVER_IPC_MODULE
13905                 \$MAC
13906 \""; } >&5
13907   ($PKG_CONFIG --exists --print-errors "
13908         atk >= 1.20
13909         glib-2.0 >= 2.22
13910         gobject-2.0 >= 2.22
13911         $GTK_VERSION
13912         gee-1.0 >= 0.5
13913         $SERVER_IPC_MODULE
13914                 $MAC
13915 ") 2>&5
13916   ac_status=$?
13917   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13918   test $ac_status = 0; }; then
13919   pkg_cv_moonshot_CFLAGS=`$PKG_CONFIG --cflags "
13920         atk >= 1.20
13921         glib-2.0 >= 2.22
13922         gobject-2.0 >= 2.22
13923         $GTK_VERSION
13924         gee-1.0 >= 0.5
13925         $SERVER_IPC_MODULE
13926                 $MAC
13927 " 2>/dev/null`
13928                       test "x$?" != "x0" && pkg_failed=yes
13929 else
13930   pkg_failed=yes
13931 fi
13932  else
13933     pkg_failed=untried
13934 fi
13935 if test -n "$moonshot_LIBS"; then
13936     pkg_cv_moonshot_LIBS="$moonshot_LIBS"
13937  elif test -n "$PKG_CONFIG"; then
13938     if test -n "$PKG_CONFIG" && \
13939     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
13940         atk >= 1.20
13941         glib-2.0 >= 2.22
13942         gobject-2.0 >= 2.22
13943         \$GTK_VERSION
13944         gee-1.0 >= 0.5
13945         \$SERVER_IPC_MODULE
13946                 \$MAC
13947 \""; } >&5
13948   ($PKG_CONFIG --exists --print-errors "
13949         atk >= 1.20
13950         glib-2.0 >= 2.22
13951         gobject-2.0 >= 2.22
13952         $GTK_VERSION
13953         gee-1.0 >= 0.5
13954         $SERVER_IPC_MODULE
13955                 $MAC
13956 ") 2>&5
13957   ac_status=$?
13958   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13959   test $ac_status = 0; }; then
13960   pkg_cv_moonshot_LIBS=`$PKG_CONFIG --libs "
13961         atk >= 1.20
13962         glib-2.0 >= 2.22
13963         gobject-2.0 >= 2.22
13964         $GTK_VERSION
13965         gee-1.0 >= 0.5
13966         $SERVER_IPC_MODULE
13967                 $MAC
13968 " 2>/dev/null`
13969                       test "x$?" != "x0" && pkg_failed=yes
13970 else
13971   pkg_failed=yes
13972 fi
13973  else
13974     pkg_failed=untried
13975 fi
13976
13977
13978
13979 if test $pkg_failed = yes; then
13980         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13981 $as_echo "no" >&6; }
13982
13983 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13984         _pkg_short_errors_supported=yes
13985 else
13986         _pkg_short_errors_supported=no
13987 fi
13988         if test $_pkg_short_errors_supported = yes; then
13989                 moonshot_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
13990         atk >= 1.20
13991         glib-2.0 >= 2.22
13992         gobject-2.0 >= 2.22
13993         $GTK_VERSION
13994         gee-1.0 >= 0.5
13995         $SERVER_IPC_MODULE
13996                 $MAC
13997 " 2>&1`
13998         else
13999                 moonshot_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
14000         atk >= 1.20
14001         glib-2.0 >= 2.22
14002         gobject-2.0 >= 2.22
14003         $GTK_VERSION
14004         gee-1.0 >= 0.5
14005         $SERVER_IPC_MODULE
14006                 $MAC
14007 " 2>&1`
14008         fi
14009         # Put the nasty error message in config.log where it belongs
14010         echo "$moonshot_PKG_ERRORS" >&5
14011
14012         as_fn_error $? "Package requirements (
14013         atk >= 1.20
14014         glib-2.0 >= 2.22
14015         gobject-2.0 >= 2.22
14016         $GTK_VERSION
14017         gee-1.0 >= 0.5
14018         $SERVER_IPC_MODULE
14019                 $MAC
14020 ) were not met:
14021
14022 $moonshot_PKG_ERRORS
14023
14024 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14025 installed software in a non-standard prefix.
14026
14027 Alternatively, you may set the environment variables moonshot_CFLAGS
14028 and moonshot_LIBS to avoid the need to call pkg-config.
14029 See the pkg-config man page for more details." "$LINENO" 5
14030 elif test $pkg_failed = untried; then
14031         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14032 $as_echo "no" >&6; }
14033         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14034 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14035 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14036 is in your PATH or set the PKG_CONFIG environment variable to the full
14037 path to pkg-config.
14038
14039 Alternatively, you may set the environment variables moonshot_CFLAGS
14040 and moonshot_LIBS to avoid the need to call pkg-config.
14041 See the pkg-config man page for more details.
14042
14043 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14044 See \`config.log' for more details" "$LINENO" 5; }
14045 else
14046         moonshot_CFLAGS=$pkg_cv_moonshot_CFLAGS
14047         moonshot_LIBS=$pkg_cv_moonshot_LIBS
14048         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14049 $as_echo "yes" >&6; }
14050
14051 fi
14052
14053
14054 pkg_failed=no
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmoonshot" >&5
14056 $as_echo_n "checking for libmoonshot... " >&6; }
14057
14058 if test -n "$libmoonshot_CFLAGS"; then
14059     pkg_cv_libmoonshot_CFLAGS="$libmoonshot_CFLAGS"
14060  elif test -n "$PKG_CONFIG"; then
14061     if test -n "$PKG_CONFIG" && \
14062     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
14063         \$CLIENT_IPC_MODULE
14064 \""; } >&5
14065   ($PKG_CONFIG --exists --print-errors "
14066         $CLIENT_IPC_MODULE
14067 ") 2>&5
14068   ac_status=$?
14069   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14070   test $ac_status = 0; }; then
14071   pkg_cv_libmoonshot_CFLAGS=`$PKG_CONFIG --cflags "
14072         $CLIENT_IPC_MODULE
14073 " 2>/dev/null`
14074                       test "x$?" != "x0" && pkg_failed=yes
14075 else
14076   pkg_failed=yes
14077 fi
14078  else
14079     pkg_failed=untried
14080 fi
14081 if test -n "$libmoonshot_LIBS"; then
14082     pkg_cv_libmoonshot_LIBS="$libmoonshot_LIBS"
14083  elif test -n "$PKG_CONFIG"; then
14084     if test -n "$PKG_CONFIG" && \
14085     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
14086         \$CLIENT_IPC_MODULE
14087 \""; } >&5
14088   ($PKG_CONFIG --exists --print-errors "
14089         $CLIENT_IPC_MODULE
14090 ") 2>&5
14091   ac_status=$?
14092   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14093   test $ac_status = 0; }; then
14094   pkg_cv_libmoonshot_LIBS=`$PKG_CONFIG --libs "
14095         $CLIENT_IPC_MODULE
14096 " 2>/dev/null`
14097                       test "x$?" != "x0" && pkg_failed=yes
14098 else
14099   pkg_failed=yes
14100 fi
14101  else
14102     pkg_failed=untried
14103 fi
14104
14105
14106
14107 if test $pkg_failed = yes; then
14108         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14109 $as_echo "no" >&6; }
14110
14111 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14112         _pkg_short_errors_supported=yes
14113 else
14114         _pkg_short_errors_supported=no
14115 fi
14116         if test $_pkg_short_errors_supported = yes; then
14117                 libmoonshot_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
14118         $CLIENT_IPC_MODULE
14119 " 2>&1`
14120         else
14121                 libmoonshot_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
14122         $CLIENT_IPC_MODULE
14123 " 2>&1`
14124         fi
14125         # Put the nasty error message in config.log where it belongs
14126         echo "$libmoonshot_PKG_ERRORS" >&5
14127
14128         as_fn_error $? "Package requirements (
14129         $CLIENT_IPC_MODULE
14130 ) were not met:
14131
14132 $libmoonshot_PKG_ERRORS
14133
14134 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14135 installed software in a non-standard prefix.
14136
14137 Alternatively, you may set the environment variables libmoonshot_CFLAGS
14138 and libmoonshot_LIBS to avoid the need to call pkg-config.
14139 See the pkg-config man page for more details." "$LINENO" 5
14140 elif test $pkg_failed = untried; then
14141         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14142 $as_echo "no" >&6; }
14143         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14145 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14146 is in your PATH or set the PKG_CONFIG environment variable to the full
14147 path to pkg-config.
14148
14149 Alternatively, you may set the environment variables libmoonshot_CFLAGS
14150 and libmoonshot_LIBS to avoid the need to call pkg-config.
14151 See the pkg-config man page for more details.
14152
14153 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14154 See \`config.log' for more details" "$LINENO" 5; }
14155 else
14156         libmoonshot_CFLAGS=$pkg_cv_libmoonshot_CFLAGS
14157         libmoonshot_LIBS=$pkg_cv_libmoonshot_LIBS
14158         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14159 $as_echo "yes" >&6; }
14160
14161 fi
14162
14163 # i18n stuff
14164
14165   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14166 $as_echo_n "checking whether NLS is requested... " >&6; }
14167     # Check whether --enable-nls was given.
14168 if test "${enable_nls+set}" = set; then :
14169   enableval=$enable_nls; USE_NLS=$enableval
14170 else
14171   USE_NLS=yes
14172 fi
14173
14174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14175 $as_echo "$USE_NLS" >&6; }
14176
14177
14178
14179
14180       GETTEXT_MACRO_VERSION=0.18
14181
14182
14183
14184
14185 # Prepare PATH_SEPARATOR.
14186 # The user is always right.
14187 if test "${PATH_SEPARATOR+set}" != set; then
14188   echo "#! /bin/sh" >conf$$.sh
14189   echo  "exit 0"   >>conf$$.sh
14190   chmod +x conf$$.sh
14191   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14192     PATH_SEPARATOR=';'
14193   else
14194     PATH_SEPARATOR=:
14195   fi
14196   rm -f conf$$.sh
14197 fi
14198
14199 # Find out how to test for executable files. Don't use a zero-byte file,
14200 # as systems may use methods other than mode bits to determine executability.
14201 cat >conf$$.file <<_ASEOF
14202 #! /bin/sh
14203 exit 0
14204 _ASEOF
14205 chmod +x conf$$.file
14206 if test -x conf$$.file >/dev/null 2>&1; then
14207   ac_executable_p="test -x"
14208 else
14209   ac_executable_p="test -f"
14210 fi
14211 rm -f conf$$.file
14212
14213 # Extract the first word of "msgfmt", so it can be a program name with args.
14214 set dummy msgfmt; ac_word=$2
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14216 $as_echo_n "checking for $ac_word... " >&6; }
14217 if ${ac_cv_path_MSGFMT+:} false; then :
14218   $as_echo_n "(cached) " >&6
14219 else
14220   case "$MSGFMT" in
14221   [\\/]* | ?:[\\/]*)
14222     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14223     ;;
14224   *)
14225     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14226     for ac_dir in $PATH; do
14227       IFS="$ac_save_IFS"
14228       test -z "$ac_dir" && ac_dir=.
14229       for ac_exec_ext in '' $ac_executable_extensions; do
14230         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14231           echo "$as_me: trying $ac_dir/$ac_word..." >&5
14232           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
14233      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14234             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
14235             break 2
14236           fi
14237         fi
14238       done
14239     done
14240     IFS="$ac_save_IFS"
14241   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14242     ;;
14243 esac
14244 fi
14245 MSGFMT="$ac_cv_path_MSGFMT"
14246 if test "$MSGFMT" != ":"; then
14247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14248 $as_echo "$MSGFMT" >&6; }
14249 else
14250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14251 $as_echo "no" >&6; }
14252 fi
14253
14254   # Extract the first word of "gmsgfmt", so it can be a program name with args.
14255 set dummy gmsgfmt; ac_word=$2
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14257 $as_echo_n "checking for $ac_word... " >&6; }
14258 if ${ac_cv_path_GMSGFMT+:} false; then :
14259   $as_echo_n "(cached) " >&6
14260 else
14261   case $GMSGFMT in
14262   [\\/]* | ?:[\\/]*)
14263   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14264   ;;
14265   *)
14266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14267 for as_dir in $PATH
14268 do
14269   IFS=$as_save_IFS
14270   test -z "$as_dir" && as_dir=.
14271     for ac_exec_ext in '' $ac_executable_extensions; do
14272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14273     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14275     break 2
14276   fi
14277 done
14278   done
14279 IFS=$as_save_IFS
14280
14281   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14282   ;;
14283 esac
14284 fi
14285 GMSGFMT=$ac_cv_path_GMSGFMT
14286 if test -n "$GMSGFMT"; then
14287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
14288 $as_echo "$GMSGFMT" >&6; }
14289 else
14290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14291 $as_echo "no" >&6; }
14292 fi
14293
14294
14295
14296     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14297     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
14298     *) MSGFMT_015=$MSGFMT ;;
14299   esac
14300
14301   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14302     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
14303     *) GMSGFMT_015=$GMSGFMT ;;
14304   esac
14305
14306
14307
14308 # Prepare PATH_SEPARATOR.
14309 # The user is always right.
14310 if test "${PATH_SEPARATOR+set}" != set; then
14311   echo "#! /bin/sh" >conf$$.sh
14312   echo  "exit 0"   >>conf$$.sh
14313   chmod +x conf$$.sh
14314   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14315     PATH_SEPARATOR=';'
14316   else
14317     PATH_SEPARATOR=:
14318   fi
14319   rm -f conf$$.sh
14320 fi
14321
14322 # Find out how to test for executable files. Don't use a zero-byte file,
14323 # as systems may use methods other than mode bits to determine executability.
14324 cat >conf$$.file <<_ASEOF
14325 #! /bin/sh
14326 exit 0
14327 _ASEOF
14328 chmod +x conf$$.file
14329 if test -x conf$$.file >/dev/null 2>&1; then
14330   ac_executable_p="test -x"
14331 else
14332   ac_executable_p="test -f"
14333 fi
14334 rm -f conf$$.file
14335
14336 # Extract the first word of "xgettext", so it can be a program name with args.
14337 set dummy xgettext; ac_word=$2
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14339 $as_echo_n "checking for $ac_word... " >&6; }
14340 if ${ac_cv_path_XGETTEXT+:} false; then :
14341   $as_echo_n "(cached) " >&6
14342 else
14343   case "$XGETTEXT" in
14344   [\\/]* | ?:[\\/]*)
14345     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14346     ;;
14347   *)
14348     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14349     for ac_dir in $PATH; do
14350       IFS="$ac_save_IFS"
14351       test -z "$ac_dir" && ac_dir=.
14352       for ac_exec_ext in '' $ac_executable_extensions; do
14353         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14354           echo "$as_me: trying $ac_dir/$ac_word..." >&5
14355           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
14356      (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
14357             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14358             break 2
14359           fi
14360         fi
14361       done
14362     done
14363     IFS="$ac_save_IFS"
14364   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14365     ;;
14366 esac
14367 fi
14368 XGETTEXT="$ac_cv_path_XGETTEXT"
14369 if test "$XGETTEXT" != ":"; then
14370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14371 $as_echo "$XGETTEXT" >&6; }
14372 else
14373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14374 $as_echo "no" >&6; }
14375 fi
14376
14377     rm -f messages.po
14378
14379     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14380     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
14381     *) XGETTEXT_015=$XGETTEXT ;;
14382   esac
14383
14384
14385
14386 # Prepare PATH_SEPARATOR.
14387 # The user is always right.
14388 if test "${PATH_SEPARATOR+set}" != set; then
14389   echo "#! /bin/sh" >conf$$.sh
14390   echo  "exit 0"   >>conf$$.sh
14391   chmod +x conf$$.sh
14392   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14393     PATH_SEPARATOR=';'
14394   else
14395     PATH_SEPARATOR=:
14396   fi
14397   rm -f conf$$.sh
14398 fi
14399
14400 # Find out how to test for executable files. Don't use a zero-byte file,
14401 # as systems may use methods other than mode bits to determine executability.
14402 cat >conf$$.file <<_ASEOF
14403 #! /bin/sh
14404 exit 0
14405 _ASEOF
14406 chmod +x conf$$.file
14407 if test -x conf$$.file >/dev/null 2>&1; then
14408   ac_executable_p="test -x"
14409 else
14410   ac_executable_p="test -f"
14411 fi
14412 rm -f conf$$.file
14413
14414 # Extract the first word of "msgmerge", so it can be a program name with args.
14415 set dummy msgmerge; ac_word=$2
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14417 $as_echo_n "checking for $ac_word... " >&6; }
14418 if ${ac_cv_path_MSGMERGE+:} false; then :
14419   $as_echo_n "(cached) " >&6
14420 else
14421   case "$MSGMERGE" in
14422   [\\/]* | ?:[\\/]*)
14423     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14424     ;;
14425   *)
14426     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14427     for ac_dir in $PATH; do
14428       IFS="$ac_save_IFS"
14429       test -z "$ac_dir" && ac_dir=.
14430       for ac_exec_ext in '' $ac_executable_extensions; do
14431         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14432           echo "$as_me: trying $ac_dir/$ac_word..." >&5
14433           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
14434             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14435             break 2
14436           fi
14437         fi
14438       done
14439     done
14440     IFS="$ac_save_IFS"
14441   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14442     ;;
14443 esac
14444 fi
14445 MSGMERGE="$ac_cv_path_MSGMERGE"
14446 if test "$MSGMERGE" != ":"; then
14447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14448 $as_echo "$MSGMERGE" >&6; }
14449 else
14450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14451 $as_echo "no" >&6; }
14452 fi
14453
14454
14455         test -n "$localedir" || localedir='${datadir}/locale'
14456
14457
14458     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
14459
14460
14461   ac_config_commands="$ac_config_commands po-directories"
14462
14463
14464
14465       if test "X$prefix" = "XNONE"; then
14466     acl_final_prefix="$ac_default_prefix"
14467   else
14468     acl_final_prefix="$prefix"
14469   fi
14470   if test "X$exec_prefix" = "XNONE"; then
14471     acl_final_exec_prefix='${prefix}'
14472   else
14473     acl_final_exec_prefix="$exec_prefix"
14474   fi
14475   acl_save_prefix="$prefix"
14476   prefix="$acl_final_prefix"
14477   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14478   prefix="$acl_save_prefix"
14479
14480
14481 # Check whether --with-gnu-ld was given.
14482 if test "${with_gnu_ld+set}" = set; then :
14483   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14484 else
14485   with_gnu_ld=no
14486 fi
14487
14488 # Prepare PATH_SEPARATOR.
14489 # The user is always right.
14490 if test "${PATH_SEPARATOR+set}" != set; then
14491   echo "#! /bin/sh" >conf$$.sh
14492   echo  "exit 0"   >>conf$$.sh
14493   chmod +x conf$$.sh
14494   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14495     PATH_SEPARATOR=';'
14496   else
14497     PATH_SEPARATOR=:
14498   fi
14499   rm -f conf$$.sh
14500 fi
14501 ac_prog=ld
14502 if test "$GCC" = yes; then
14503   # Check if gcc -print-prog-name=ld gives a path.
14504   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
14505 $as_echo_n "checking for ld used by GCC... " >&6; }
14506   case $host in
14507   *-*-mingw*)
14508     # gcc leaves a trailing carriage return which upsets mingw
14509     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14510   *)
14511     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14512   esac
14513   case $ac_prog in
14514     # Accept absolute paths.
14515     [\\/]* | [A-Za-z]:[\\/]*)
14516       re_direlt='/[^/][^/]*/\.\./'
14517       # Canonicalize the path of ld
14518       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14519       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14520         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14521       done
14522       test -z "$LD" && LD="$ac_prog"
14523       ;;
14524   "")
14525     # If it fails, then pretend we aren't using GCC.
14526     ac_prog=ld
14527     ;;
14528   *)
14529     # If it is relative, then search for the first ld in PATH.
14530     with_gnu_ld=unknown
14531     ;;
14532   esac
14533 elif test "$with_gnu_ld" = yes; then
14534   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14535 $as_echo_n "checking for GNU ld... " >&6; }
14536 else
14537   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14538 $as_echo_n "checking for non-GNU ld... " >&6; }
14539 fi
14540 if ${acl_cv_path_LD+:} false; then :
14541   $as_echo_n "(cached) " >&6
14542 else
14543   if test -z "$LD"; then
14544   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14545   for ac_dir in $PATH; do
14546     test -z "$ac_dir" && ac_dir=.
14547     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14548       acl_cv_path_LD="$ac_dir/$ac_prog"
14549       # Check to see if the program is GNU ld.  I'd rather use --version,
14550       # but apparently some GNU ld's only accept -v.
14551       # Break only if it was the GNU/non-GNU ld that we prefer.
14552       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
14553       *GNU* | *'with BFD'*)
14554         test "$with_gnu_ld" != no && break ;;
14555       *)
14556         test "$with_gnu_ld" != yes && break ;;
14557       esac
14558     fi
14559   done
14560   IFS="$ac_save_ifs"
14561 else
14562   acl_cv_path_LD="$LD" # Let the user override the test with a path.
14563 fi
14564 fi
14565
14566 LD="$acl_cv_path_LD"
14567 if test -n "$LD"; then
14568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14569 $as_echo "$LD" >&6; }
14570 else
14571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14572 $as_echo "no" >&6; }
14573 fi
14574 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14576 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14577 if ${acl_cv_prog_gnu_ld+:} false; then :
14578   $as_echo_n "(cached) " >&6
14579 else
14580   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14581 case `$LD -v 2>&1 </dev/null` in
14582 *GNU* | *'with BFD'*)
14583   acl_cv_prog_gnu_ld=yes ;;
14584 *)
14585   acl_cv_prog_gnu_ld=no ;;
14586 esac
14587 fi
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14589 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
14590 with_gnu_ld=$acl_cv_prog_gnu_ld
14591
14592
14593
14594
14595                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14596 $as_echo_n "checking for shared library run path origin... " >&6; }
14597 if ${acl_cv_rpath+:} false; then :
14598   $as_echo_n "(cached) " >&6
14599 else
14600
14601     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14602     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14603     . ./conftest.sh
14604     rm -f ./conftest.sh
14605     acl_cv_rpath=done
14606
14607 fi
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14609 $as_echo "$acl_cv_rpath" >&6; }
14610   wl="$acl_cv_wl"
14611   acl_libext="$acl_cv_libext"
14612   acl_shlibext="$acl_cv_shlibext"
14613   acl_libname_spec="$acl_cv_libname_spec"
14614   acl_library_names_spec="$acl_cv_library_names_spec"
14615   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14616   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14617   acl_hardcode_direct="$acl_cv_hardcode_direct"
14618   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
14619     # Check whether --enable-rpath was given.
14620 if test "${enable_rpath+set}" = set; then :
14621   enableval=$enable_rpath; :
14622 else
14623   enable_rpath=yes
14624 fi
14625
14626
14627
14628
14629   acl_libdirstem=lib
14630   acl_libdirstem2=
14631   case "$host_os" in
14632     solaris*)
14633                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
14634 $as_echo_n "checking for 64-bit host... " >&6; }
14635 if ${gl_cv_solaris_64bit+:} false; then :
14636   $as_echo_n "(cached) " >&6
14637 else
14638   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14639 /* end confdefs.h.  */
14640
14641 #ifdef _LP64
14642 sixtyfour bits
14643 #endif
14644
14645 _ACEOF
14646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14647   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
14648   gl_cv_solaris_64bit=yes
14649 else
14650   gl_cv_solaris_64bit=no
14651 fi
14652 rm -f conftest*
14653
14654
14655 fi
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
14657 $as_echo "$gl_cv_solaris_64bit" >&6; }
14658       if test $gl_cv_solaris_64bit = yes; then
14659         acl_libdirstem=lib/64
14660         case "$host_cpu" in
14661           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
14662           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
14663         esac
14664       fi
14665       ;;
14666     *)
14667       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
14668       if test -n "$searchpath"; then
14669         acl_save_IFS="${IFS=    }"; IFS=":"
14670         for searchdir in $searchpath; do
14671           if test -d "$searchdir"; then
14672             case "$searchdir" in
14673               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
14674               */../ | */.. )
14675                 # Better ignore directories of this form. They are misleading.
14676                 ;;
14677               *) searchdir=`cd "$searchdir" && pwd`
14678                  case "$searchdir" in
14679                    */lib64 ) acl_libdirstem=lib64 ;;
14680                  esac ;;
14681             esac
14682           fi
14683         done
14684         IFS="$acl_save_IFS"
14685       fi
14686       ;;
14687   esac
14688   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701     use_additional=yes
14702
14703   acl_save_prefix="$prefix"
14704   prefix="$acl_final_prefix"
14705   acl_save_exec_prefix="$exec_prefix"
14706   exec_prefix="$acl_final_exec_prefix"
14707
14708     eval additional_includedir=\"$includedir\"
14709     eval additional_libdir=\"$libdir\"
14710
14711   exec_prefix="$acl_save_exec_prefix"
14712   prefix="$acl_save_prefix"
14713
14714
14715 # Check whether --with-libiconv-prefix was given.
14716 if test "${with_libiconv_prefix+set}" = set; then :
14717   withval=$with_libiconv_prefix;
14718     if test "X$withval" = "Xno"; then
14719       use_additional=no
14720     else
14721       if test "X$withval" = "X"; then
14722
14723   acl_save_prefix="$prefix"
14724   prefix="$acl_final_prefix"
14725   acl_save_exec_prefix="$exec_prefix"
14726   exec_prefix="$acl_final_exec_prefix"
14727
14728           eval additional_includedir=\"$includedir\"
14729           eval additional_libdir=\"$libdir\"
14730
14731   exec_prefix="$acl_save_exec_prefix"
14732   prefix="$acl_save_prefix"
14733
14734       else
14735         additional_includedir="$withval/include"
14736         additional_libdir="$withval/$acl_libdirstem"
14737         if test "$acl_libdirstem2" != "$acl_libdirstem" \
14738            && ! test -d "$withval/$acl_libdirstem"; then
14739           additional_libdir="$withval/$acl_libdirstem2"
14740         fi
14741       fi
14742     fi
14743
14744 fi
14745
14746       LIBICONV=
14747   LTLIBICONV=
14748   INCICONV=
14749   LIBICONV_PREFIX=
14750       HAVE_LIBICONV=
14751   rpathdirs=
14752   ltrpathdirs=
14753   names_already_handled=
14754   names_next_round='iconv '
14755   while test -n "$names_next_round"; do
14756     names_this_round="$names_next_round"
14757     names_next_round=
14758     for name in $names_this_round; do
14759       already_handled=
14760       for n in $names_already_handled; do
14761         if test "$n" = "$name"; then
14762           already_handled=yes
14763           break
14764         fi
14765       done
14766       if test -z "$already_handled"; then
14767         names_already_handled="$names_already_handled $name"
14768                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14769         eval value=\"\$HAVE_LIB$uppername\"
14770         if test -n "$value"; then
14771           if test "$value" = yes; then
14772             eval value=\"\$LIB$uppername\"
14773             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14774             eval value=\"\$LTLIB$uppername\"
14775             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14776           else
14777                                     :
14778           fi
14779         else
14780                               found_dir=
14781           found_la=
14782           found_so=
14783           found_a=
14784           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
14785           if test -n "$acl_shlibext"; then
14786             shrext=".$acl_shlibext"             # typically: shrext=.so
14787           else
14788             shrext=
14789           fi
14790           if test $use_additional = yes; then
14791             dir="$additional_libdir"
14792                                     if test -n "$acl_shlibext"; then
14793               if test -f "$dir/$libname$shrext"; then
14794                 found_dir="$dir"
14795                 found_so="$dir/$libname$shrext"
14796               else
14797                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14798                   ver=`(cd "$dir" && \
14799                         for f in "$libname$shrext".*; do echo "$f"; done \
14800                         | sed -e "s,^$libname$shrext\\\\.,," \
14801                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14802                         | sed 1q ) 2>/dev/null`
14803                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14804                     found_dir="$dir"
14805                     found_so="$dir/$libname$shrext.$ver"
14806                   fi
14807                 else
14808                   eval library_names=\"$acl_library_names_spec\"
14809                   for f in $library_names; do
14810                     if test -f "$dir/$f"; then
14811                       found_dir="$dir"
14812                       found_so="$dir/$f"
14813                       break
14814                     fi
14815                   done
14816                 fi
14817               fi
14818             fi
14819                         if test "X$found_dir" = "X"; then
14820               if test -f "$dir/$libname.$acl_libext"; then
14821                 found_dir="$dir"
14822                 found_a="$dir/$libname.$acl_libext"
14823               fi
14824             fi
14825             if test "X$found_dir" != "X"; then
14826               if test -f "$dir/$libname.la"; then
14827                 found_la="$dir/$libname.la"
14828               fi
14829             fi
14830           fi
14831           if test "X$found_dir" = "X"; then
14832             for x in $LDFLAGS $LTLIBICONV; do
14833
14834   acl_save_prefix="$prefix"
14835   prefix="$acl_final_prefix"
14836   acl_save_exec_prefix="$exec_prefix"
14837   exec_prefix="$acl_final_exec_prefix"
14838   eval x=\"$x\"
14839   exec_prefix="$acl_save_exec_prefix"
14840   prefix="$acl_save_prefix"
14841
14842               case "$x" in
14843                 -L*)
14844                   dir=`echo "X$x" | sed -e 's/^X-L//'`
14845                                     if test -n "$acl_shlibext"; then
14846                     if test -f "$dir/$libname$shrext"; then
14847                       found_dir="$dir"
14848                       found_so="$dir/$libname$shrext"
14849                     else
14850                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14851                         ver=`(cd "$dir" && \
14852                               for f in "$libname$shrext".*; do echo "$f"; done \
14853                               | sed -e "s,^$libname$shrext\\\\.,," \
14854                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14855                               | sed 1q ) 2>/dev/null`
14856                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14857                           found_dir="$dir"
14858                           found_so="$dir/$libname$shrext.$ver"
14859                         fi
14860                       else
14861                         eval library_names=\"$acl_library_names_spec\"
14862                         for f in $library_names; do
14863                           if test -f "$dir/$f"; then
14864                             found_dir="$dir"
14865                             found_so="$dir/$f"
14866                             break
14867                           fi
14868                         done
14869                       fi
14870                     fi
14871                   fi
14872                                     if test "X$found_dir" = "X"; then
14873                     if test -f "$dir/$libname.$acl_libext"; then
14874                       found_dir="$dir"
14875                       found_a="$dir/$libname.$acl_libext"
14876                     fi
14877                   fi
14878                   if test "X$found_dir" != "X"; then
14879                     if test -f "$dir/$libname.la"; then
14880                       found_la="$dir/$libname.la"
14881                     fi
14882                   fi
14883                   ;;
14884               esac
14885               if test "X$found_dir" != "X"; then
14886                 break
14887               fi
14888             done
14889           fi
14890           if test "X$found_dir" != "X"; then
14891                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14892             if test "X$found_so" != "X"; then
14893                                                         if test "$enable_rpath" = no \
14894                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14895                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14896                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14897               else
14898                                                                                 haveit=
14899                 for x in $ltrpathdirs; do
14900                   if test "X$x" = "X$found_dir"; then
14901                     haveit=yes
14902                     break
14903                   fi
14904                 done
14905                 if test -z "$haveit"; then
14906                   ltrpathdirs="$ltrpathdirs $found_dir"
14907                 fi
14908                                 if test "$acl_hardcode_direct" = yes; then
14909                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14910                 else
14911                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14912                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14913                                                             haveit=
14914                     for x in $rpathdirs; do
14915                       if test "X$x" = "X$found_dir"; then
14916                         haveit=yes
14917                         break
14918                       fi
14919                     done
14920                     if test -z "$haveit"; then
14921                       rpathdirs="$rpathdirs $found_dir"
14922                     fi
14923                   else
14924                                                                                 haveit=
14925                     for x in $LDFLAGS $LIBICONV; do
14926
14927   acl_save_prefix="$prefix"
14928   prefix="$acl_final_prefix"
14929   acl_save_exec_prefix="$exec_prefix"
14930   exec_prefix="$acl_final_exec_prefix"
14931   eval x=\"$x\"
14932   exec_prefix="$acl_save_exec_prefix"
14933   prefix="$acl_save_prefix"
14934
14935                       if test "X$x" = "X-L$found_dir"; then
14936                         haveit=yes
14937                         break
14938                       fi
14939                     done
14940                     if test -z "$haveit"; then
14941                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14942                     fi
14943                     if test "$acl_hardcode_minus_L" != no; then
14944                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14945                     else
14946                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14947                     fi
14948                   fi
14949                 fi
14950               fi
14951             else
14952               if test "X$found_a" != "X"; then
14953                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14954               else
14955                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14956               fi
14957             fi
14958                         additional_includedir=
14959             case "$found_dir" in
14960               */$acl_libdirstem | */$acl_libdirstem/)
14961                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14962                 if test "$name" = 'iconv'; then
14963                   LIBICONV_PREFIX="$basedir"
14964                 fi
14965                 additional_includedir="$basedir/include"
14966                 ;;
14967               */$acl_libdirstem2 | */$acl_libdirstem2/)
14968                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
14969                 if test "$name" = 'iconv'; then
14970                   LIBICONV_PREFIX="$basedir"
14971                 fi
14972                 additional_includedir="$basedir/include"
14973                 ;;
14974             esac
14975             if test "X$additional_includedir" != "X"; then
14976                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
14977                 haveit=
14978                 if test "X$additional_includedir" = "X/usr/local/include"; then
14979                   if test -n "$GCC"; then
14980                     case $host_os in
14981                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14982                     esac
14983                   fi
14984                 fi
14985                 if test -z "$haveit"; then
14986                   for x in $CPPFLAGS $INCICONV; do
14987
14988   acl_save_prefix="$prefix"
14989   prefix="$acl_final_prefix"
14990   acl_save_exec_prefix="$exec_prefix"
14991   exec_prefix="$acl_final_exec_prefix"
14992   eval x=\"$x\"
14993   exec_prefix="$acl_save_exec_prefix"
14994   prefix="$acl_save_prefix"
14995
14996                     if test "X$x" = "X-I$additional_includedir"; then
14997                       haveit=yes
14998                       break
14999                     fi
15000                   done
15001                   if test -z "$haveit"; then
15002                     if test -d "$additional_includedir"; then
15003                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15004                     fi
15005                   fi
15006                 fi
15007               fi
15008             fi
15009                         if test -n "$found_la"; then
15010                                                         save_libdir="$libdir"
15011               case "$found_la" in
15012                 */* | *\\*) . "$found_la" ;;
15013                 *) . "./$found_la" ;;
15014               esac
15015               libdir="$save_libdir"
15016                             for dep in $dependency_libs; do
15017                 case "$dep" in
15018                   -L*)
15019                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15020                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
15021                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
15022                       haveit=
15023                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
15024                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
15025                         if test -n "$GCC"; then
15026                           case $host_os in
15027                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15028                           esac
15029                         fi
15030                       fi
15031                       if test -z "$haveit"; then
15032                         haveit=
15033                         for x in $LDFLAGS $LIBICONV; do
15034
15035   acl_save_prefix="$prefix"
15036   prefix="$acl_final_prefix"
15037   acl_save_exec_prefix="$exec_prefix"
15038   exec_prefix="$acl_final_exec_prefix"
15039   eval x=\"$x\"
15040   exec_prefix="$acl_save_exec_prefix"
15041   prefix="$acl_save_prefix"
15042
15043                           if test "X$x" = "X-L$additional_libdir"; then
15044                             haveit=yes
15045                             break
15046                           fi
15047                         done
15048                         if test -z "$haveit"; then
15049                           if test -d "$additional_libdir"; then
15050                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15051                           fi
15052                         fi
15053                         haveit=
15054                         for x in $LDFLAGS $LTLIBICONV; do
15055
15056   acl_save_prefix="$prefix"
15057   prefix="$acl_final_prefix"
15058   acl_save_exec_prefix="$exec_prefix"
15059   exec_prefix="$acl_final_exec_prefix"
15060   eval x=\"$x\"
15061   exec_prefix="$acl_save_exec_prefix"
15062   prefix="$acl_save_prefix"
15063
15064                           if test "X$x" = "X-L$additional_libdir"; then
15065                             haveit=yes
15066                             break
15067                           fi
15068                         done
15069                         if test -z "$haveit"; then
15070                           if test -d "$additional_libdir"; then
15071                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15072                           fi
15073                         fi
15074                       fi
15075                     fi
15076                     ;;
15077                   -R*)
15078                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
15079                     if test "$enable_rpath" != no; then
15080                                                                   haveit=
15081                       for x in $rpathdirs; do
15082                         if test "X$x" = "X$dir"; then
15083                           haveit=yes
15084                           break
15085                         fi
15086                       done
15087                       if test -z "$haveit"; then
15088                         rpathdirs="$rpathdirs $dir"
15089                       fi
15090                                                                   haveit=
15091                       for x in $ltrpathdirs; do
15092                         if test "X$x" = "X$dir"; then
15093                           haveit=yes
15094                           break
15095                         fi
15096                       done
15097                       if test -z "$haveit"; then
15098                         ltrpathdirs="$ltrpathdirs $dir"
15099                       fi
15100                     fi
15101                     ;;
15102                   -l*)
15103                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15104                     ;;
15105                   *.la)
15106                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15107                     ;;
15108                   *)
15109                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15110                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15111                     ;;
15112                 esac
15113               done
15114             fi
15115           else
15116                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15117             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15118           fi
15119         fi
15120       fi
15121     done
15122   done
15123   if test "X$rpathdirs" != "X"; then
15124     if test -n "$acl_hardcode_libdir_separator"; then
15125                         alldirs=
15126       for found_dir in $rpathdirs; do
15127         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15128       done
15129             acl_save_libdir="$libdir"
15130       libdir="$alldirs"
15131       eval flag=\"$acl_hardcode_libdir_flag_spec\"
15132       libdir="$acl_save_libdir"
15133       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15134     else
15135             for found_dir in $rpathdirs; do
15136         acl_save_libdir="$libdir"
15137         libdir="$found_dir"
15138         eval flag=\"$acl_hardcode_libdir_flag_spec\"
15139         libdir="$acl_save_libdir"
15140         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15141       done
15142     fi
15143   fi
15144   if test "X$ltrpathdirs" != "X"; then
15145             for found_dir in $ltrpathdirs; do
15146       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15147     done
15148   fi
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
15181 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
15182 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
15183   $as_echo_n "(cached) " >&6
15184 else
15185   gt_save_LIBS="$LIBS"
15186      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15187      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15188 /* end confdefs.h.  */
15189 #include <CoreFoundation/CFPreferences.h>
15190 int
15191 main ()
15192 {
15193 CFPreferencesCopyAppValue(NULL, NULL)
15194   ;
15195   return 0;
15196 }
15197 _ACEOF
15198 if ac_fn_c_try_link "$LINENO"; then :
15199   gt_cv_func_CFPreferencesCopyAppValue=yes
15200 else
15201   gt_cv_func_CFPreferencesCopyAppValue=no
15202 fi
15203 rm -f core conftest.err conftest.$ac_objext \
15204     conftest$ac_exeext conftest.$ac_ext
15205      LIBS="$gt_save_LIBS"
15206 fi
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
15208 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
15209   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
15210
15211 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
15212
15213   fi
15214     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
15215 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
15216 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
15217   $as_echo_n "(cached) " >&6
15218 else
15219   gt_save_LIBS="$LIBS"
15220      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15221      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15222 /* end confdefs.h.  */
15223 #include <CoreFoundation/CFLocale.h>
15224 int
15225 main ()
15226 {
15227 CFLocaleCopyCurrent();
15228   ;
15229   return 0;
15230 }
15231 _ACEOF
15232 if ac_fn_c_try_link "$LINENO"; then :
15233   gt_cv_func_CFLocaleCopyCurrent=yes
15234 else
15235   gt_cv_func_CFLocaleCopyCurrent=no
15236 fi
15237 rm -f core conftest.err conftest.$ac_objext \
15238     conftest$ac_exeext conftest.$ac_ext
15239      LIBS="$gt_save_LIBS"
15240 fi
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
15242 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
15243   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15244
15245 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
15246
15247   fi
15248   INTL_MACOSX_LIBS=
15249   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15250     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
15251   fi
15252
15253
15254
15255
15256
15257
15258   LIBINTL=
15259   LTLIBINTL=
15260   POSUB=
15261
15262     case " $gt_needs " in
15263     *" need-formatstring-macros "*) gt_api_version=3 ;;
15264     *" need-ngettext "*) gt_api_version=2 ;;
15265     *) gt_api_version=1 ;;
15266   esac
15267   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
15268   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
15269
15270     if test "$USE_NLS" = "yes"; then
15271     gt_use_preinstalled_gnugettext=no
15272
15273
15274         if test $gt_api_version -ge 3; then
15275           gt_revision_test_code='
15276 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15277 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
15278 #endif
15279 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
15280 '
15281         else
15282           gt_revision_test_code=
15283         fi
15284         if test $gt_api_version -ge 2; then
15285           gt_expression_test_code=' + * ngettext ("", "", 0)'
15286         else
15287           gt_expression_test_code=
15288         fi
15289
15290         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
15291 $as_echo_n "checking for GNU gettext in libc... " >&6; }
15292 if eval \${$gt_func_gnugettext_libc+:} false; then :
15293   $as_echo_n "(cached) " >&6
15294 else
15295   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15296 /* end confdefs.h.  */
15297 #include <libintl.h>
15298 $gt_revision_test_code
15299 extern int _nl_msg_cat_cntr;
15300 extern int *_nl_domain_bindings;
15301 int
15302 main ()
15303 {
15304 bindtextdomain ("", "");
15305 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
15306   ;
15307   return 0;
15308 }
15309 _ACEOF
15310 if ac_fn_c_try_link "$LINENO"; then :
15311   eval "$gt_func_gnugettext_libc=yes"
15312 else
15313   eval "$gt_func_gnugettext_libc=no"
15314 fi
15315 rm -f core conftest.err conftest.$ac_objext \
15316     conftest$ac_exeext conftest.$ac_ext
15317 fi
15318 eval ac_res=\$$gt_func_gnugettext_libc
15319                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15320 $as_echo "$ac_res" >&6; }
15321
15322         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
15323
15324
15325
15326
15327
15328           am_save_CPPFLAGS="$CPPFLAGS"
15329
15330   for element in $INCICONV; do
15331     haveit=
15332     for x in $CPPFLAGS; do
15333
15334   acl_save_prefix="$prefix"
15335   prefix="$acl_final_prefix"
15336   acl_save_exec_prefix="$exec_prefix"
15337   exec_prefix="$acl_final_exec_prefix"
15338   eval x=\"$x\"
15339   exec_prefix="$acl_save_exec_prefix"
15340   prefix="$acl_save_prefix"
15341
15342       if test "X$x" = "X$element"; then
15343         haveit=yes
15344         break
15345       fi
15346     done
15347     if test -z "$haveit"; then
15348       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15349     fi
15350   done
15351
15352
15353   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15354 $as_echo_n "checking for iconv... " >&6; }
15355 if ${am_cv_func_iconv+:} false; then :
15356   $as_echo_n "(cached) " >&6
15357 else
15358
15359     am_cv_func_iconv="no, consider installing GNU libiconv"
15360     am_cv_lib_iconv=no
15361     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15362 /* end confdefs.h.  */
15363 #include <stdlib.h>
15364 #include <iconv.h>
15365 int
15366 main ()
15367 {
15368 iconv_t cd = iconv_open("","");
15369        iconv(cd,NULL,NULL,NULL,NULL);
15370        iconv_close(cd);
15371   ;
15372   return 0;
15373 }
15374 _ACEOF
15375 if ac_fn_c_try_link "$LINENO"; then :
15376   am_cv_func_iconv=yes
15377 fi
15378 rm -f core conftest.err conftest.$ac_objext \
15379     conftest$ac_exeext conftest.$ac_ext
15380     if test "$am_cv_func_iconv" != yes; then
15381       am_save_LIBS="$LIBS"
15382       LIBS="$LIBS $LIBICONV"
15383       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15384 /* end confdefs.h.  */
15385 #include <stdlib.h>
15386 #include <iconv.h>
15387 int
15388 main ()
15389 {
15390 iconv_t cd = iconv_open("","");
15391          iconv(cd,NULL,NULL,NULL,NULL);
15392          iconv_close(cd);
15393   ;
15394   return 0;
15395 }
15396 _ACEOF
15397 if ac_fn_c_try_link "$LINENO"; then :
15398   am_cv_lib_iconv=yes
15399         am_cv_func_iconv=yes
15400 fi
15401 rm -f core conftest.err conftest.$ac_objext \
15402     conftest$ac_exeext conftest.$ac_ext
15403       LIBS="$am_save_LIBS"
15404     fi
15405
15406 fi
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15408 $as_echo "$am_cv_func_iconv" >&6; }
15409   if test "$am_cv_func_iconv" = yes; then
15410     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
15411 $as_echo_n "checking for working iconv... " >&6; }
15412 if ${am_cv_func_iconv_works+:} false; then :
15413   $as_echo_n "(cached) " >&6
15414 else
15415
15416             am_save_LIBS="$LIBS"
15417       if test $am_cv_lib_iconv = yes; then
15418         LIBS="$LIBS $LIBICONV"
15419       fi
15420       if test "$cross_compiling" = yes; then :
15421   case "$host_os" in
15422            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
15423            *)            am_cv_func_iconv_works="guessing yes" ;;
15424          esac
15425 else
15426   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15427 /* end confdefs.h.  */
15428
15429 #include <iconv.h>
15430 #include <string.h>
15431 int main ()
15432 {
15433   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
15434      returns.  */
15435   {
15436     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
15437     if (cd_utf8_to_88591 != (iconv_t)(-1))
15438       {
15439         static const char input[] = "\342\202\254"; /* EURO SIGN */
15440         char buf[10];
15441         const char *inptr = input;
15442         size_t inbytesleft = strlen (input);
15443         char *outptr = buf;
15444         size_t outbytesleft = sizeof (buf);
15445         size_t res = iconv (cd_utf8_to_88591,
15446                             (char **) &inptr, &inbytesleft,
15447                             &outptr, &outbytesleft);
15448         if (res == 0)
15449           return 1;
15450       }
15451   }
15452   /* Test against Solaris 10 bug: Failures are not distinguishable from
15453      successful returns.  */
15454   {
15455     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
15456     if (cd_ascii_to_88591 != (iconv_t)(-1))
15457       {
15458         static const char input[] = "\263";
15459         char buf[10];
15460         const char *inptr = input;
15461         size_t inbytesleft = strlen (input);
15462         char *outptr = buf;
15463         size_t outbytesleft = sizeof (buf);
15464         size_t res = iconv (cd_ascii_to_88591,
15465                             (char **) &inptr, &inbytesleft,
15466                             &outptr, &outbytesleft);
15467         if (res == 0)
15468           return 1;
15469       }
15470   }
15471 #if 0 /* This bug could be worked around by the caller.  */
15472   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
15473   {
15474     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
15475     if (cd_88591_to_utf8 != (iconv_t)(-1))
15476       {
15477         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
15478         char buf[50];
15479         const char *inptr = input;
15480         size_t inbytesleft = strlen (input);
15481         char *outptr = buf;
15482         size_t outbytesleft = sizeof (buf);
15483         size_t res = iconv (cd_88591_to_utf8,
15484                             (char **) &inptr, &inbytesleft,
15485                             &outptr, &outbytesleft);
15486         if ((int)res > 0)
15487           return 1;
15488       }
15489   }
15490 #endif
15491   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
15492      provided.  */
15493   if (/* Try standardized names.  */
15494       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
15495       /* Try IRIX, OSF/1 names.  */
15496       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
15497       /* Try AIX names.  */
15498       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
15499       /* Try HP-UX names.  */
15500       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
15501     return 1;
15502   return 0;
15503 }
15504 _ACEOF
15505 if ac_fn_c_try_run "$LINENO"; then :
15506   am_cv_func_iconv_works=yes
15507 else
15508   am_cv_func_iconv_works=no
15509 fi
15510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15511   conftest.$ac_objext conftest.beam conftest.$ac_ext
15512 fi
15513
15514       LIBS="$am_save_LIBS"
15515
15516 fi
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
15518 $as_echo "$am_cv_func_iconv_works" >&6; }
15519     case "$am_cv_func_iconv_works" in
15520       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
15521       *)   am_func_iconv=yes ;;
15522     esac
15523   else
15524     am_func_iconv=no am_cv_lib_iconv=no
15525   fi
15526   if test "$am_func_iconv" = yes; then
15527
15528 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
15529
15530   fi
15531   if test "$am_cv_lib_iconv" = yes; then
15532     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15533 $as_echo_n "checking how to link with libiconv... " >&6; }
15534     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15535 $as_echo "$LIBICONV" >&6; }
15536   else
15537             CPPFLAGS="$am_save_CPPFLAGS"
15538     LIBICONV=
15539     LTLIBICONV=
15540   fi
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552     use_additional=yes
15553
15554   acl_save_prefix="$prefix"
15555   prefix="$acl_final_prefix"
15556   acl_save_exec_prefix="$exec_prefix"
15557   exec_prefix="$acl_final_exec_prefix"
15558
15559     eval additional_includedir=\"$includedir\"
15560     eval additional_libdir=\"$libdir\"
15561
15562   exec_prefix="$acl_save_exec_prefix"
15563   prefix="$acl_save_prefix"
15564
15565
15566 # Check whether --with-libintl-prefix was given.
15567 if test "${with_libintl_prefix+set}" = set; then :
15568   withval=$with_libintl_prefix;
15569     if test "X$withval" = "Xno"; then
15570       use_additional=no
15571     else
15572       if test "X$withval" = "X"; then
15573
15574   acl_save_prefix="$prefix"
15575   prefix="$acl_final_prefix"
15576   acl_save_exec_prefix="$exec_prefix"
15577   exec_prefix="$acl_final_exec_prefix"
15578
15579           eval additional_includedir=\"$includedir\"
15580           eval additional_libdir=\"$libdir\"
15581
15582   exec_prefix="$acl_save_exec_prefix"
15583   prefix="$acl_save_prefix"
15584
15585       else
15586         additional_includedir="$withval/include"
15587         additional_libdir="$withval/$acl_libdirstem"
15588         if test "$acl_libdirstem2" != "$acl_libdirstem" \
15589            && ! test -d "$withval/$acl_libdirstem"; then
15590           additional_libdir="$withval/$acl_libdirstem2"
15591         fi
15592       fi
15593     fi
15594
15595 fi
15596
15597       LIBINTL=
15598   LTLIBINTL=
15599   INCINTL=
15600   LIBINTL_PREFIX=
15601       HAVE_LIBINTL=
15602   rpathdirs=
15603   ltrpathdirs=
15604   names_already_handled=
15605   names_next_round='intl '
15606   while test -n "$names_next_round"; do
15607     names_this_round="$names_next_round"
15608     names_next_round=
15609     for name in $names_this_round; do
15610       already_handled=
15611       for n in $names_already_handled; do
15612         if test "$n" = "$name"; then
15613           already_handled=yes
15614           break
15615         fi
15616       done
15617       if test -z "$already_handled"; then
15618         names_already_handled="$names_already_handled $name"
15619                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15620         eval value=\"\$HAVE_LIB$uppername\"
15621         if test -n "$value"; then
15622           if test "$value" = yes; then
15623             eval value=\"\$LIB$uppername\"
15624             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
15625             eval value=\"\$LTLIB$uppername\"
15626             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
15627           else
15628                                     :
15629           fi
15630         else
15631                               found_dir=
15632           found_la=
15633           found_so=
15634           found_a=
15635           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
15636           if test -n "$acl_shlibext"; then
15637             shrext=".$acl_shlibext"             # typically: shrext=.so
15638           else
15639             shrext=
15640           fi
15641           if test $use_additional = yes; then
15642             dir="$additional_libdir"
15643                                     if test -n "$acl_shlibext"; then
15644               if test -f "$dir/$libname$shrext"; then
15645                 found_dir="$dir"
15646                 found_so="$dir/$libname$shrext"
15647               else
15648                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15649                   ver=`(cd "$dir" && \
15650                         for f in "$libname$shrext".*; do echo "$f"; done \
15651                         | sed -e "s,^$libname$shrext\\\\.,," \
15652                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15653                         | sed 1q ) 2>/dev/null`
15654                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15655                     found_dir="$dir"
15656                     found_so="$dir/$libname$shrext.$ver"
15657                   fi
15658                 else
15659                   eval library_names=\"$acl_library_names_spec\"
15660                   for f in $library_names; do
15661                     if test -f "$dir/$f"; then
15662                       found_dir="$dir"
15663                       found_so="$dir/$f"
15664                       break
15665                     fi
15666                   done
15667                 fi
15668               fi
15669             fi
15670                         if test "X$found_dir" = "X"; then
15671               if test -f "$dir/$libname.$acl_libext"; then
15672                 found_dir="$dir"
15673                 found_a="$dir/$libname.$acl_libext"
15674               fi
15675             fi
15676             if test "X$found_dir" != "X"; then
15677               if test -f "$dir/$libname.la"; then
15678                 found_la="$dir/$libname.la"
15679               fi
15680             fi
15681           fi
15682           if test "X$found_dir" = "X"; then
15683             for x in $LDFLAGS $LTLIBINTL; do
15684
15685   acl_save_prefix="$prefix"
15686   prefix="$acl_final_prefix"
15687   acl_save_exec_prefix="$exec_prefix"
15688   exec_prefix="$acl_final_exec_prefix"
15689   eval x=\"$x\"
15690   exec_prefix="$acl_save_exec_prefix"
15691   prefix="$acl_save_prefix"
15692
15693               case "$x" in
15694                 -L*)
15695                   dir=`echo "X$x" | sed -e 's/^X-L//'`
15696                                     if test -n "$acl_shlibext"; then
15697                     if test -f "$dir/$libname$shrext"; then
15698                       found_dir="$dir"
15699                       found_so="$dir/$libname$shrext"
15700                     else
15701                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15702                         ver=`(cd "$dir" && \
15703                               for f in "$libname$shrext".*; do echo "$f"; done \
15704                               | sed -e "s,^$libname$shrext\\\\.,," \
15705                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15706                               | sed 1q ) 2>/dev/null`
15707                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15708                           found_dir="$dir"
15709                           found_so="$dir/$libname$shrext.$ver"
15710                         fi
15711                       else
15712                         eval library_names=\"$acl_library_names_spec\"
15713                         for f in $library_names; do
15714                           if test -f "$dir/$f"; then
15715                             found_dir="$dir"
15716                             found_so="$dir/$f"
15717                             break
15718                           fi
15719                         done
15720                       fi
15721                     fi
15722                   fi
15723                                     if test "X$found_dir" = "X"; then
15724                     if test -f "$dir/$libname.$acl_libext"; then
15725                       found_dir="$dir"
15726                       found_a="$dir/$libname.$acl_libext"
15727                     fi
15728                   fi
15729                   if test "X$found_dir" != "X"; then
15730                     if test -f "$dir/$libname.la"; then
15731                       found_la="$dir/$libname.la"
15732                     fi
15733                   fi
15734                   ;;
15735               esac
15736               if test "X$found_dir" != "X"; then
15737                 break
15738               fi
15739             done
15740           fi
15741           if test "X$found_dir" != "X"; then
15742                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
15743             if test "X$found_so" != "X"; then
15744                                                         if test "$enable_rpath" = no \
15745                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
15746                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
15747                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15748               else
15749                                                                                 haveit=
15750                 for x in $ltrpathdirs; do
15751                   if test "X$x" = "X$found_dir"; then
15752                     haveit=yes
15753                     break
15754                   fi
15755                 done
15756                 if test -z "$haveit"; then
15757                   ltrpathdirs="$ltrpathdirs $found_dir"
15758                 fi
15759                                 if test "$acl_hardcode_direct" = yes; then
15760                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15761                 else
15762                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15763                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15764                                                             haveit=
15765                     for x in $rpathdirs; do
15766                       if test "X$x" = "X$found_dir"; then
15767                         haveit=yes
15768                         break
15769                       fi
15770                     done
15771                     if test -z "$haveit"; then
15772                       rpathdirs="$rpathdirs $found_dir"
15773                     fi
15774                   else
15775                                                                                 haveit=
15776                     for x in $LDFLAGS $LIBINTL; do
15777
15778   acl_save_prefix="$prefix"
15779   prefix="$acl_final_prefix"
15780   acl_save_exec_prefix="$exec_prefix"
15781   exec_prefix="$acl_final_exec_prefix"
15782   eval x=\"$x\"
15783   exec_prefix="$acl_save_exec_prefix"
15784   prefix="$acl_save_prefix"
15785
15786                       if test "X$x" = "X-L$found_dir"; then
15787                         haveit=yes
15788                         break
15789                       fi
15790                     done
15791                     if test -z "$haveit"; then
15792                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
15793                     fi
15794                     if test "$acl_hardcode_minus_L" != no; then
15795                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15796                     else
15797                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15798                     fi
15799                   fi
15800                 fi
15801               fi
15802             else
15803               if test "X$found_a" != "X"; then
15804                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
15805               else
15806                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
15807               fi
15808             fi
15809                         additional_includedir=
15810             case "$found_dir" in
15811               */$acl_libdirstem | */$acl_libdirstem/)
15812                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15813                 if test "$name" = 'intl'; then
15814                   LIBINTL_PREFIX="$basedir"
15815                 fi
15816                 additional_includedir="$basedir/include"
15817                 ;;
15818               */$acl_libdirstem2 | */$acl_libdirstem2/)
15819                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
15820                 if test "$name" = 'intl'; then
15821                   LIBINTL_PREFIX="$basedir"
15822                 fi
15823                 additional_includedir="$basedir/include"
15824                 ;;
15825             esac
15826             if test "X$additional_includedir" != "X"; then
15827                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
15828                 haveit=
15829                 if test "X$additional_includedir" = "X/usr/local/include"; then
15830                   if test -n "$GCC"; then
15831                     case $host_os in
15832                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15833                     esac
15834                   fi
15835                 fi
15836                 if test -z "$haveit"; then
15837                   for x in $CPPFLAGS $INCINTL; do
15838
15839   acl_save_prefix="$prefix"
15840   prefix="$acl_final_prefix"
15841   acl_save_exec_prefix="$exec_prefix"
15842   exec_prefix="$acl_final_exec_prefix"
15843   eval x=\"$x\"
15844   exec_prefix="$acl_save_exec_prefix"
15845   prefix="$acl_save_prefix"
15846
15847                     if test "X$x" = "X-I$additional_includedir"; then
15848                       haveit=yes
15849                       break
15850                     fi
15851                   done
15852                   if test -z "$haveit"; then
15853                     if test -d "$additional_includedir"; then
15854                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
15855                     fi
15856                   fi
15857                 fi
15858               fi
15859             fi
15860                         if test -n "$found_la"; then
15861                                                         save_libdir="$libdir"
15862               case "$found_la" in
15863                 */* | *\\*) . "$found_la" ;;
15864                 *) . "./$found_la" ;;
15865               esac
15866               libdir="$save_libdir"
15867                             for dep in $dependency_libs; do
15868                 case "$dep" in
15869                   -L*)
15870                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15871                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
15872                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
15873                       haveit=
15874                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
15875                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
15876                         if test -n "$GCC"; then
15877                           case $host_os in
15878                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15879                           esac
15880                         fi
15881                       fi
15882                       if test -z "$haveit"; then
15883                         haveit=
15884                         for x in $LDFLAGS $LIBINTL; do
15885
15886   acl_save_prefix="$prefix"
15887   prefix="$acl_final_prefix"
15888   acl_save_exec_prefix="$exec_prefix"
15889   exec_prefix="$acl_final_exec_prefix"
15890   eval x=\"$x\"
15891   exec_prefix="$acl_save_exec_prefix"
15892   prefix="$acl_save_prefix"
15893
15894                           if test "X$x" = "X-L$additional_libdir"; then
15895                             haveit=yes
15896                             break
15897                           fi
15898                         done
15899                         if test -z "$haveit"; then
15900                           if test -d "$additional_libdir"; then
15901                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
15902                           fi
15903                         fi
15904                         haveit=
15905                         for x in $LDFLAGS $LTLIBINTL; do
15906
15907   acl_save_prefix="$prefix"
15908   prefix="$acl_final_prefix"
15909   acl_save_exec_prefix="$exec_prefix"
15910   exec_prefix="$acl_final_exec_prefix"
15911   eval x=\"$x\"
15912   exec_prefix="$acl_save_exec_prefix"
15913   prefix="$acl_save_prefix"
15914
15915                           if test "X$x" = "X-L$additional_libdir"; then
15916                             haveit=yes
15917                             break
15918                           fi
15919                         done
15920                         if test -z "$haveit"; then
15921                           if test -d "$additional_libdir"; then
15922                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
15923                           fi
15924                         fi
15925                       fi
15926                     fi
15927                     ;;
15928                   -R*)
15929                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
15930                     if test "$enable_rpath" != no; then
15931                                                                   haveit=
15932                       for x in $rpathdirs; do
15933                         if test "X$x" = "X$dir"; then
15934                           haveit=yes
15935                           break
15936                         fi
15937                       done
15938                       if test -z "$haveit"; then
15939                         rpathdirs="$rpathdirs $dir"
15940                       fi
15941                                                                   haveit=
15942                       for x in $ltrpathdirs; do
15943                         if test "X$x" = "X$dir"; then
15944                           haveit=yes
15945                           break
15946                         fi
15947                       done
15948                       if test -z "$haveit"; then
15949                         ltrpathdirs="$ltrpathdirs $dir"
15950                       fi
15951                     fi
15952                     ;;
15953                   -l*)
15954                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15955                     ;;
15956                   *.la)
15957                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15958                     ;;
15959                   *)
15960                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
15961                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
15962                     ;;
15963                 esac
15964               done
15965             fi
15966           else
15967                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15968             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
15969           fi
15970         fi
15971       fi
15972     done
15973   done
15974   if test "X$rpathdirs" != "X"; then
15975     if test -n "$acl_hardcode_libdir_separator"; then
15976                         alldirs=
15977       for found_dir in $rpathdirs; do
15978         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15979       done
15980             acl_save_libdir="$libdir"
15981       libdir="$alldirs"
15982       eval flag=\"$acl_hardcode_libdir_flag_spec\"
15983       libdir="$acl_save_libdir"
15984       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15985     else
15986             for found_dir in $rpathdirs; do
15987         acl_save_libdir="$libdir"
15988         libdir="$found_dir"
15989         eval flag=\"$acl_hardcode_libdir_flag_spec\"
15990         libdir="$acl_save_libdir"
15991         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15992       done
15993     fi
15994   fi
15995   if test "X$ltrpathdirs" != "X"; then
15996             for found_dir in $ltrpathdirs; do
15997       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
15998     done
15999   fi
16000
16001
16002
16003
16004
16005
16006           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
16007 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
16008 if eval \${$gt_func_gnugettext_libintl+:} false; then :
16009   $as_echo_n "(cached) " >&6
16010 else
16011   gt_save_CPPFLAGS="$CPPFLAGS"
16012             CPPFLAGS="$CPPFLAGS $INCINTL"
16013             gt_save_LIBS="$LIBS"
16014             LIBS="$LIBS $LIBINTL"
16015                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16016 /* end confdefs.h.  */
16017 #include <libintl.h>
16018 $gt_revision_test_code
16019 extern int _nl_msg_cat_cntr;
16020 extern
16021 #ifdef __cplusplus
16022 "C"
16023 #endif
16024 const char *_nl_expand_alias (const char *);
16025 int
16026 main ()
16027 {
16028 bindtextdomain ("", "");
16029 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
16030   ;
16031   return 0;
16032 }
16033 _ACEOF
16034 if ac_fn_c_try_link "$LINENO"; then :
16035   eval "$gt_func_gnugettext_libintl=yes"
16036 else
16037   eval "$gt_func_gnugettext_libintl=no"
16038 fi
16039 rm -f core conftest.err conftest.$ac_objext \
16040     conftest$ac_exeext conftest.$ac_ext
16041                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
16042               LIBS="$LIBS $LIBICONV"
16043               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16044 /* end confdefs.h.  */
16045 #include <libintl.h>
16046 $gt_revision_test_code
16047 extern int _nl_msg_cat_cntr;
16048 extern
16049 #ifdef __cplusplus
16050 "C"
16051 #endif
16052 const char *_nl_expand_alias (const char *);
16053 int
16054 main ()
16055 {
16056 bindtextdomain ("", "");
16057 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
16058   ;
16059   return 0;
16060 }
16061 _ACEOF
16062 if ac_fn_c_try_link "$LINENO"; then :
16063   LIBINTL="$LIBINTL $LIBICONV"
16064                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
16065                 eval "$gt_func_gnugettext_libintl=yes"
16066
16067 fi
16068 rm -f core conftest.err conftest.$ac_objext \
16069     conftest$ac_exeext conftest.$ac_ext
16070             fi
16071             CPPFLAGS="$gt_save_CPPFLAGS"
16072             LIBS="$gt_save_LIBS"
16073 fi
16074 eval ac_res=\$$gt_func_gnugettext_libintl
16075                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16076 $as_echo "$ac_res" >&6; }
16077         fi
16078
16079                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
16080            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
16081                 && test "$PACKAGE" != gettext-runtime \
16082                 && test "$PACKAGE" != gettext-tools; }; then
16083           gt_use_preinstalled_gnugettext=yes
16084         else
16085                     LIBINTL=
16086           LTLIBINTL=
16087           INCINTL=
16088         fi
16089
16090
16091
16092     if test -n "$INTL_MACOSX_LIBS"; then
16093       if test "$gt_use_preinstalled_gnugettext" = "yes" \
16094          || test "$nls_cv_use_gnu_gettext" = "yes"; then
16095                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
16096         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
16097       fi
16098     fi
16099
16100     if test "$gt_use_preinstalled_gnugettext" = "yes" \
16101        || test "$nls_cv_use_gnu_gettext" = "yes"; then
16102
16103 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
16104
16105     else
16106       USE_NLS=no
16107     fi
16108   fi
16109
16110   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
16111 $as_echo_n "checking whether to use NLS... " >&6; }
16112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16113 $as_echo "$USE_NLS" >&6; }
16114   if test "$USE_NLS" = "yes"; then
16115     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
16116 $as_echo_n "checking where the gettext function comes from... " >&6; }
16117     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16118       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16119         gt_source="external libintl"
16120       else
16121         gt_source="libc"
16122       fi
16123     else
16124       gt_source="included intl directory"
16125     fi
16126     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
16127 $as_echo "$gt_source" >&6; }
16128   fi
16129
16130   if test "$USE_NLS" = "yes"; then
16131
16132     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16133       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16134         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
16135 $as_echo_n "checking how to link with libintl... " >&6; }
16136         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
16137 $as_echo "$LIBINTL" >&6; }
16138
16139   for element in $INCINTL; do
16140     haveit=
16141     for x in $CPPFLAGS; do
16142
16143   acl_save_prefix="$prefix"
16144   prefix="$acl_final_prefix"
16145   acl_save_exec_prefix="$exec_prefix"
16146   exec_prefix="$acl_final_exec_prefix"
16147   eval x=\"$x\"
16148   exec_prefix="$acl_save_exec_prefix"
16149   prefix="$acl_save_prefix"
16150
16151       if test "X$x" = "X$element"; then
16152         haveit=yes
16153         break
16154       fi
16155     done
16156     if test -z "$haveit"; then
16157       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16158     fi
16159   done
16160
16161       fi
16162
16163
16164 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
16165
16166
16167 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
16168
16169     fi
16170
16171         POSUB=po
16172   fi
16173
16174
16175
16176     INTLLIBS="$LIBINTL"
16177
16178
16179
16180
16181
16182
16183
16184
16185 GETTEXT_PACKAGE=PACKAGE_TARNAME
16186
16187
16188 $as_echo "#define GETTEXT_PACKAGE PACKAGE_TARNAME" >>confdefs.h
16189
16190
16191 ac_config_files="$ac_config_files Makefile po/Makefile.in moonshot.desktop moonshot-webp.desktop moonshot-ui.spec"
16192
16193
16194 cat >confcache <<\_ACEOF
16195 # This file is a shell script that caches the results of configure
16196 # tests run on this system so they can be shared between configure
16197 # scripts and configure runs, see configure's option --config-cache.
16198 # It is not useful on other systems.  If it contains results you don't
16199 # want to keep, you may remove or edit it.
16200 #
16201 # config.status only pays attention to the cache file if you give it
16202 # the --recheck option to rerun configure.
16203 #
16204 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16205 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16206 # following values.
16207
16208 _ACEOF
16209
16210 # The following way of writing the cache mishandles newlines in values,
16211 # but we know of no workaround that is simple, portable, and efficient.
16212 # So, we kill variables containing newlines.
16213 # Ultrix sh set writes to stderr and can't be redirected directly,
16214 # and sets the high bit in the cache file unless we assign to the vars.
16215 (
16216   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16217     eval ac_val=\$$ac_var
16218     case $ac_val in #(
16219     *${as_nl}*)
16220       case $ac_var in #(
16221       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16222 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16223       esac
16224       case $ac_var in #(
16225       _ | IFS | as_nl) ;; #(
16226       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16227       *) { eval $ac_var=; unset $ac_var;} ;;
16228       esac ;;
16229     esac
16230   done
16231
16232   (set) 2>&1 |
16233     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16234     *${as_nl}ac_space=\ *)
16235       # `set' does not quote correctly, so add quotes: double-quote
16236       # substitution turns \\\\ into \\, and sed turns \\ into \.
16237       sed -n \
16238         "s/'/'\\\\''/g;
16239           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16240       ;; #(
16241     *)
16242       # `set' quotes correctly as required by POSIX, so do not add quotes.
16243       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16244       ;;
16245     esac |
16246     sort
16247 ) |
16248   sed '
16249      /^ac_cv_env_/b end
16250      t clear
16251      :clear
16252      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16253      t end
16254      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16255      :end' >>confcache
16256 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16257   if test -w "$cache_file"; then
16258     if test "x$cache_file" != "x/dev/null"; then
16259       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16260 $as_echo "$as_me: updating cache $cache_file" >&6;}
16261       if test ! -f "$cache_file" || test -h "$cache_file"; then
16262         cat confcache >"$cache_file"
16263       else
16264         case $cache_file in #(
16265         */* | ?:*)
16266           mv -f confcache "$cache_file"$$ &&
16267           mv -f "$cache_file"$$ "$cache_file" ;; #(
16268         *)
16269           mv -f confcache "$cache_file" ;;
16270         esac
16271       fi
16272     fi
16273   else
16274     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16275 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16276   fi
16277 fi
16278 rm -f confcache
16279
16280 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16281 # Let make expand exec_prefix.
16282 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16283
16284 DEFS=-DHAVE_CONFIG_H
16285
16286 ac_libobjs=
16287 ac_ltlibobjs=
16288 U=
16289 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16290   # 1. Remove the extension, and $U if already installed.
16291   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16292   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16293   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16294   #    will be set to the directory where LIBOBJS objects are built.
16295   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16296   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16297 done
16298 LIBOBJS=$ac_libobjs
16299
16300 LTLIBOBJS=$ac_ltlibobjs
16301
16302
16303  if test -n "$EXEEXT"; then
16304   am__EXEEXT_TRUE=
16305   am__EXEEXT_FALSE='#'
16306 else
16307   am__EXEEXT_TRUE='#'
16308   am__EXEEXT_FALSE=
16309 fi
16310
16311 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16312   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16313 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16314 fi
16315 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16316   as_fn_error $? "conditional \"AMDEP\" was never defined.
16317 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16318 fi
16319 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16320   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16321 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16322 fi
16323 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16324   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16325 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16326 fi
16327 if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
16328   as_fn_error $? "conditional \"OS_LINUX\" was never defined.
16329 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16330 fi
16331 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
16332   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
16333 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16334 fi
16335 if test -z "${OS_MACOS_TRUE}" && test -z "${OS_MACOS_FALSE}"; then
16336   as_fn_error $? "conditional \"OS_MACOS\" was never defined.
16337 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16338 fi
16339 if test -z "${IPC_MSRPC_TRUE}" && test -z "${IPC_MSRPC_FALSE}"; then
16340   as_fn_error $? "conditional \"IPC_MSRPC\" was never defined.
16341 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16342 fi
16343 if test -z "${IPC_DBUS_TRUE}" && test -z "${IPC_DBUS_FALSE}"; then
16344   as_fn_error $? "conditional \"IPC_DBUS\" was never defined.
16345 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16346 fi
16347 if test -z "${IPC_DBUS_GLIB_TRUE}" && test -z "${IPC_DBUS_GLIB_FALSE}"; then
16348   as_fn_error $? "conditional \"IPC_DBUS_GLIB\" was never defined.
16349 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16350 fi
16351 if test -z "${IPC_GDBUS_TRUE}" && test -z "${IPC_GDBUS_FALSE}"; then
16352   as_fn_error $? "conditional \"IPC_GDBUS\" was never defined.
16353 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16354 fi
16355
16356 : "${CONFIG_STATUS=./config.status}"
16357 ac_write_fail=0
16358 ac_clean_files_save=$ac_clean_files
16359 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16360 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16361 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16362 as_write_fail=0
16363 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16364 #! $SHELL
16365 # Generated by $as_me.
16366 # Run this file to recreate the current configuration.
16367 # Compiler output produced by configure, useful for debugging
16368 # configure, is in config.log if it exists.
16369
16370 debug=false
16371 ac_cs_recheck=false
16372 ac_cs_silent=false
16373
16374 SHELL=\${CONFIG_SHELL-$SHELL}
16375 export SHELL
16376 _ASEOF
16377 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16378 ## -------------------- ##
16379 ## M4sh Initialization. ##
16380 ## -------------------- ##
16381
16382 # Be more Bourne compatible
16383 DUALCASE=1; export DUALCASE # for MKS sh
16384 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16385   emulate sh
16386   NULLCMD=:
16387   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16388   # is contrary to our usage.  Disable this feature.
16389   alias -g '${1+"$@"}'='"$@"'
16390   setopt NO_GLOB_SUBST
16391 else
16392   case `(set -o) 2>/dev/null` in #(
16393   *posix*) :
16394     set -o posix ;; #(
16395   *) :
16396      ;;
16397 esac
16398 fi
16399
16400
16401 as_nl='
16402 '
16403 export as_nl
16404 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16405 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16406 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16407 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16408 # Prefer a ksh shell builtin over an external printf program on Solaris,
16409 # but without wasting forks for bash or zsh.
16410 if test -z "$BASH_VERSION$ZSH_VERSION" \
16411     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16412   as_echo='print -r --'
16413   as_echo_n='print -rn --'
16414 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16415   as_echo='printf %s\n'
16416   as_echo_n='printf %s'
16417 else
16418   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16419     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16420     as_echo_n='/usr/ucb/echo -n'
16421   else
16422     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16423     as_echo_n_body='eval
16424       arg=$1;
16425       case $arg in #(
16426       *"$as_nl"*)
16427         expr "X$arg" : "X\\(.*\\)$as_nl";
16428         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16429       esac;
16430       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16431     '
16432     export as_echo_n_body
16433     as_echo_n='sh -c $as_echo_n_body as_echo'
16434   fi
16435   export as_echo_body
16436   as_echo='sh -c $as_echo_body as_echo'
16437 fi
16438
16439 # The user is always right.
16440 if test "${PATH_SEPARATOR+set}" != set; then
16441   PATH_SEPARATOR=:
16442   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16443     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16444       PATH_SEPARATOR=';'
16445   }
16446 fi
16447
16448
16449 # IFS
16450 # We need space, tab and new line, in precisely that order.  Quoting is
16451 # there to prevent editors from complaining about space-tab.
16452 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16453 # splitting by setting IFS to empty value.)
16454 IFS=" ""        $as_nl"
16455
16456 # Find who we are.  Look in the path if we contain no directory separator.
16457 as_myself=
16458 case $0 in #((
16459   *[\\/]* ) as_myself=$0 ;;
16460   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16461 for as_dir in $PATH
16462 do
16463   IFS=$as_save_IFS
16464   test -z "$as_dir" && as_dir=.
16465     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16466   done
16467 IFS=$as_save_IFS
16468
16469      ;;
16470 esac
16471 # We did not find ourselves, most probably we were run as `sh COMMAND'
16472 # in which case we are not to be found in the path.
16473 if test "x$as_myself" = x; then
16474   as_myself=$0
16475 fi
16476 if test ! -f "$as_myself"; then
16477   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16478   exit 1
16479 fi
16480
16481 # Unset variables that we do not need and which cause bugs (e.g. in
16482 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16483 # suppresses any "Segmentation fault" message there.  '((' could
16484 # trigger a bug in pdksh 5.2.14.
16485 for as_var in BASH_ENV ENV MAIL MAILPATH
16486 do eval test x\${$as_var+set} = xset \
16487   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16488 done
16489 PS1='$ '
16490 PS2='> '
16491 PS4='+ '
16492
16493 # NLS nuisances.
16494 LC_ALL=C
16495 export LC_ALL
16496 LANGUAGE=C
16497 export LANGUAGE
16498
16499 # CDPATH.
16500 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16501
16502
16503 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16504 # ----------------------------------------
16505 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16506 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16507 # script with STATUS, using 1 if that was 0.
16508 as_fn_error ()
16509 {
16510   as_status=$1; test $as_status -eq 0 && as_status=1
16511   if test "$4"; then
16512     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16513     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16514   fi
16515   $as_echo "$as_me: error: $2" >&2
16516   as_fn_exit $as_status
16517 } # as_fn_error
16518
16519
16520 # as_fn_set_status STATUS
16521 # -----------------------
16522 # Set $? to STATUS, without forking.
16523 as_fn_set_status ()
16524 {
16525   return $1
16526 } # as_fn_set_status
16527
16528 # as_fn_exit STATUS
16529 # -----------------
16530 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16531 as_fn_exit ()
16532 {
16533   set +e
16534   as_fn_set_status $1
16535   exit $1
16536 } # as_fn_exit
16537
16538 # as_fn_unset VAR
16539 # ---------------
16540 # Portably unset VAR.
16541 as_fn_unset ()
16542 {
16543   { eval $1=; unset $1;}
16544 }
16545 as_unset=as_fn_unset
16546 # as_fn_append VAR VALUE
16547 # ----------------------
16548 # Append the text in VALUE to the end of the definition contained in VAR. Take
16549 # advantage of any shell optimizations that allow amortized linear growth over
16550 # repeated appends, instead of the typical quadratic growth present in naive
16551 # implementations.
16552 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16553   eval 'as_fn_append ()
16554   {
16555     eval $1+=\$2
16556   }'
16557 else
16558   as_fn_append ()
16559   {
16560     eval $1=\$$1\$2
16561   }
16562 fi # as_fn_append
16563
16564 # as_fn_arith ARG...
16565 # ------------------
16566 # Perform arithmetic evaluation on the ARGs, and store the result in the
16567 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16568 # must be portable across $(()) and expr.
16569 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16570   eval 'as_fn_arith ()
16571   {
16572     as_val=$(( $* ))
16573   }'
16574 else
16575   as_fn_arith ()
16576   {
16577     as_val=`expr "$@" || test $? -eq 1`
16578   }
16579 fi # as_fn_arith
16580
16581
16582 if expr a : '\(a\)' >/dev/null 2>&1 &&
16583    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16584   as_expr=expr
16585 else
16586   as_expr=false
16587 fi
16588
16589 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16590   as_basename=basename
16591 else
16592   as_basename=false
16593 fi
16594
16595 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16596   as_dirname=dirname
16597 else
16598   as_dirname=false
16599 fi
16600
16601 as_me=`$as_basename -- "$0" ||
16602 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16603          X"$0" : 'X\(//\)$' \| \
16604          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16605 $as_echo X/"$0" |
16606     sed '/^.*\/\([^/][^/]*\)\/*$/{
16607             s//\1/
16608             q
16609           }
16610           /^X\/\(\/\/\)$/{
16611             s//\1/
16612             q
16613           }
16614           /^X\/\(\/\).*/{
16615             s//\1/
16616             q
16617           }
16618           s/.*/./; q'`
16619
16620 # Avoid depending upon Character Ranges.
16621 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16622 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16623 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16624 as_cr_digits='0123456789'
16625 as_cr_alnum=$as_cr_Letters$as_cr_digits
16626
16627 ECHO_C= ECHO_N= ECHO_T=
16628 case `echo -n x` in #(((((
16629 -n*)
16630   case `echo 'xy\c'` in
16631   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16632   xy)  ECHO_C='\c';;
16633   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16634        ECHO_T=' ';;
16635   esac;;
16636 *)
16637   ECHO_N='-n';;
16638 esac
16639
16640 rm -f conf$$ conf$$.exe conf$$.file
16641 if test -d conf$$.dir; then
16642   rm -f conf$$.dir/conf$$.file
16643 else
16644   rm -f conf$$.dir
16645   mkdir conf$$.dir 2>/dev/null
16646 fi
16647 if (echo >conf$$.file) 2>/dev/null; then
16648   if ln -s conf$$.file conf$$ 2>/dev/null; then
16649     as_ln_s='ln -s'
16650     # ... but there are two gotchas:
16651     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16652     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16653     # In both cases, we have to default to `cp -p'.
16654     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16655       as_ln_s='cp -p'
16656   elif ln conf$$.file conf$$ 2>/dev/null; then
16657     as_ln_s=ln
16658   else
16659     as_ln_s='cp -p'
16660   fi
16661 else
16662   as_ln_s='cp -p'
16663 fi
16664 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16665 rmdir conf$$.dir 2>/dev/null
16666
16667
16668 # as_fn_mkdir_p
16669 # -------------
16670 # Create "$as_dir" as a directory, including parents if necessary.
16671 as_fn_mkdir_p ()
16672 {
16673
16674   case $as_dir in #(
16675   -*) as_dir=./$as_dir;;
16676   esac
16677   test -d "$as_dir" || eval $as_mkdir_p || {
16678     as_dirs=
16679     while :; do
16680       case $as_dir in #(
16681       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16682       *) as_qdir=$as_dir;;
16683       esac
16684       as_dirs="'$as_qdir' $as_dirs"
16685       as_dir=`$as_dirname -- "$as_dir" ||
16686 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16687          X"$as_dir" : 'X\(//\)[^/]' \| \
16688          X"$as_dir" : 'X\(//\)$' \| \
16689          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16690 $as_echo X"$as_dir" |
16691     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16692             s//\1/
16693             q
16694           }
16695           /^X\(\/\/\)[^/].*/{
16696             s//\1/
16697             q
16698           }
16699           /^X\(\/\/\)$/{
16700             s//\1/
16701             q
16702           }
16703           /^X\(\/\).*/{
16704             s//\1/
16705             q
16706           }
16707           s/.*/./; q'`
16708       test -d "$as_dir" && break
16709     done
16710     test -z "$as_dirs" || eval "mkdir $as_dirs"
16711   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16712
16713
16714 } # as_fn_mkdir_p
16715 if mkdir -p . 2>/dev/null; then
16716   as_mkdir_p='mkdir -p "$as_dir"'
16717 else
16718   test -d ./-p && rmdir ./-p
16719   as_mkdir_p=false
16720 fi
16721
16722 if test -x / >/dev/null 2>&1; then
16723   as_test_x='test -x'
16724 else
16725   if ls -dL / >/dev/null 2>&1; then
16726     as_ls_L_option=L
16727   else
16728     as_ls_L_option=
16729   fi
16730   as_test_x='
16731     eval sh -c '\''
16732       if test -d "$1"; then
16733         test -d "$1/.";
16734       else
16735         case $1 in #(
16736         -*)set "./$1";;
16737         esac;
16738         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16739         ???[sx]*):;;*)false;;esac;fi
16740     '\'' sh
16741   '
16742 fi
16743 as_executable_p=$as_test_x
16744
16745 # Sed expression to map a string onto a valid CPP name.
16746 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16747
16748 # Sed expression to map a string onto a valid variable name.
16749 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16750
16751
16752 exec 6>&1
16753 ## ----------------------------------- ##
16754 ## Main body of $CONFIG_STATUS script. ##
16755 ## ----------------------------------- ##
16756 _ASEOF
16757 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16758
16759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16760 # Save the log message, to keep $0 and so on meaningful, and to
16761 # report actual input values of CONFIG_FILES etc. instead of their
16762 # values after options handling.
16763 ac_log="
16764 This file was extended by Moonshot-ui $as_me 0.1, which was
16765 generated by GNU Autoconf 2.68.  Invocation command line was
16766
16767   CONFIG_FILES    = $CONFIG_FILES
16768   CONFIG_HEADERS  = $CONFIG_HEADERS
16769   CONFIG_LINKS    = $CONFIG_LINKS
16770   CONFIG_COMMANDS = $CONFIG_COMMANDS
16771   $ $0 $@
16772
16773 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16774 "
16775
16776 _ACEOF
16777
16778 case $ac_config_files in *"
16779 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16780 esac
16781
16782 case $ac_config_headers in *"
16783 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16784 esac
16785
16786
16787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16788 # Files that config.status was made for.
16789 config_files="$ac_config_files"
16790 config_headers="$ac_config_headers"
16791 config_commands="$ac_config_commands"
16792
16793 _ACEOF
16794
16795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16796 ac_cs_usage="\
16797 \`$as_me' instantiates files and other configuration actions
16798 from templates according to the current configuration.  Unless the files
16799 and actions are specified as TAGs, all are instantiated by default.
16800
16801 Usage: $0 [OPTION]... [TAG]...
16802
16803   -h, --help       print this help, then exit
16804   -V, --version    print version number and configuration settings, then exit
16805       --config     print configuration, then exit
16806   -q, --quiet, --silent
16807                    do not print progress messages
16808   -d, --debug      don't remove temporary files
16809       --recheck    update $as_me by reconfiguring in the same conditions
16810       --file=FILE[:TEMPLATE]
16811                    instantiate the configuration file FILE
16812       --header=FILE[:TEMPLATE]
16813                    instantiate the configuration header FILE
16814
16815 Configuration files:
16816 $config_files
16817
16818 Configuration headers:
16819 $config_headers
16820
16821 Configuration commands:
16822 $config_commands
16823
16824 Report bugs to <moonshot-community@jiscmail.ac.uk>.
16825 Moonshot-ui home page: <http://www.project-moonshot.org/>."
16826
16827 _ACEOF
16828 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16829 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16830 ac_cs_version="\\
16831 Moonshot-ui config.status 0.1
16832 configured by $0, generated by GNU Autoconf 2.68,
16833   with options \\"\$ac_cs_config\\"
16834
16835 Copyright (C) 2010 Free Software Foundation, Inc.
16836 This config.status script is free software; the Free Software Foundation
16837 gives unlimited permission to copy, distribute and modify it."
16838
16839 ac_pwd='$ac_pwd'
16840 srcdir='$srcdir'
16841 INSTALL='$INSTALL'
16842 MKDIR_P='$MKDIR_P'
16843 AWK='$AWK'
16844 test -n "\$AWK" || AWK=awk
16845 _ACEOF
16846
16847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16848 # The default lists apply if the user does not specify any file.
16849 ac_need_defaults=:
16850 while test $# != 0
16851 do
16852   case $1 in
16853   --*=?*)
16854     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16855     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16856     ac_shift=:
16857     ;;
16858   --*=)
16859     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16860     ac_optarg=
16861     ac_shift=:
16862     ;;
16863   *)
16864     ac_option=$1
16865     ac_optarg=$2
16866     ac_shift=shift
16867     ;;
16868   esac
16869
16870   case $ac_option in
16871   # Handling of the options.
16872   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16873     ac_cs_recheck=: ;;
16874   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16875     $as_echo "$ac_cs_version"; exit ;;
16876   --config | --confi | --conf | --con | --co | --c )
16877     $as_echo "$ac_cs_config"; exit ;;
16878   --debug | --debu | --deb | --de | --d | -d )
16879     debug=: ;;
16880   --file | --fil | --fi | --f )
16881     $ac_shift
16882     case $ac_optarg in
16883     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16884     '') as_fn_error $? "missing file argument" ;;
16885     esac
16886     as_fn_append CONFIG_FILES " '$ac_optarg'"
16887     ac_need_defaults=false;;
16888   --header | --heade | --head | --hea )
16889     $ac_shift
16890     case $ac_optarg in
16891     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16892     esac
16893     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16894     ac_need_defaults=false;;
16895   --he | --h)
16896     # Conflict between --help and --header
16897     as_fn_error $? "ambiguous option: \`$1'
16898 Try \`$0 --help' for more information.";;
16899   --help | --hel | -h )
16900     $as_echo "$ac_cs_usage"; exit ;;
16901   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16902   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16903     ac_cs_silent=: ;;
16904
16905   # This is an error.
16906   -*) as_fn_error $? "unrecognized option: \`$1'
16907 Try \`$0 --help' for more information." ;;
16908
16909   *) as_fn_append ac_config_targets " $1"
16910      ac_need_defaults=false ;;
16911
16912   esac
16913   shift
16914 done
16915
16916 ac_configure_extra_args=
16917
16918 if $ac_cs_silent; then
16919   exec 6>/dev/null
16920   ac_configure_extra_args="$ac_configure_extra_args --silent"
16921 fi
16922
16923 _ACEOF
16924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16925 if \$ac_cs_recheck; then
16926   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16927   shift
16928   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16929   CONFIG_SHELL='$SHELL'
16930   export CONFIG_SHELL
16931   exec "\$@"
16932 fi
16933
16934 _ACEOF
16935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16936 exec 5>>config.log
16937 {
16938   echo
16939   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16940 ## Running $as_me. ##
16941 _ASBOX
16942   $as_echo "$ac_log"
16943 } >&5
16944
16945 _ACEOF
16946 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16947 #
16948 # INIT-COMMANDS
16949 #
16950 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16951
16952
16953 # The HP-UX ksh and POSIX shell print the target directory to stdout
16954 # if CDPATH is set.
16955 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16956
16957 sed_quote_subst='$sed_quote_subst'
16958 double_quote_subst='$double_quote_subst'
16959 delay_variable_subst='$delay_variable_subst'
16960 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16961 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16962 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16963 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16964 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16965 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16966 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16967 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16968 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16969 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16970 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16971 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16972 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16973 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16974 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16975 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16976 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16977 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16978 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16979 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16980 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16981 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16982 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16983 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16984 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16985 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16986 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16987 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16988 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16989 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16990 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16991 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16992 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16993 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16994 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16995 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16996 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16997 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16998 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16999 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17000 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17001 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17002 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17003 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17004 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17005 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17006 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17007 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17008 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17009 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17010 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17011 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17012 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17013 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17014 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17015 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17016 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17017 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
17018 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17019 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17020 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17021 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17022 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17023 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17024 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17025 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17026 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17027 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17028 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17029 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17030 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17031 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17032 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17033 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17034 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17035 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17036 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17037 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17038 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17039 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17040 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17041 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17042 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17043 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17044 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17045 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17046 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17047 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17048 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17049 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17050 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17051 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17052 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17053 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17054 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17055 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17056 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17057 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17058 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17059 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17060 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17061 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17062 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17063 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17064 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17065 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17066 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17067 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17068 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17069 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17070 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17071 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17072 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17073 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17074 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17075 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17076 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17077 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17078 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17079 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17080 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17081 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17082 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17083 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17084 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17085 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17086 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17087 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17088 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17089 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17090 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17091
17092 LTCC='$LTCC'
17093 LTCFLAGS='$LTCFLAGS'
17094 compiler='$compiler_DEFAULT'
17095
17096 # A function that is used when there is no print builtin or printf.
17097 func_fallback_echo ()
17098 {
17099   eval 'cat <<_LTECHO_EOF
17100 \$1
17101 _LTECHO_EOF'
17102 }
17103
17104 # Quote evaled strings.
17105 for var in AS \
17106 DLLTOOL \
17107 OBJDUMP \
17108 SHELL \
17109 ECHO \
17110 PATH_SEPARATOR \
17111 SED \
17112 GREP \
17113 EGREP \
17114 FGREP \
17115 LD \
17116 NM \
17117 LN_S \
17118 lt_SP2NL \
17119 lt_NL2SP \
17120 reload_flag \
17121 deplibs_check_method \
17122 file_magic_cmd \
17123 file_magic_glob \
17124 want_nocaseglob \
17125 sharedlib_from_linklib_cmd \
17126 AR \
17127 AR_FLAGS \
17128 archiver_list_spec \
17129 STRIP \
17130 RANLIB \
17131 CC \
17132 CFLAGS \
17133 compiler \
17134 lt_cv_sys_global_symbol_pipe \
17135 lt_cv_sys_global_symbol_to_cdecl \
17136 lt_cv_sys_global_symbol_to_c_name_address \
17137 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17138 nm_file_list_spec \
17139 lt_prog_compiler_no_builtin_flag \
17140 lt_prog_compiler_pic \
17141 lt_prog_compiler_wl \
17142 lt_prog_compiler_static \
17143 lt_cv_prog_compiler_c_o \
17144 need_locks \
17145 MANIFEST_TOOL \
17146 DSYMUTIL \
17147 NMEDIT \
17148 LIPO \
17149 OTOOL \
17150 OTOOL64 \
17151 shrext_cmds \
17152 export_dynamic_flag_spec \
17153 whole_archive_flag_spec \
17154 compiler_needs_object \
17155 with_gnu_ld \
17156 allow_undefined_flag \
17157 no_undefined_flag \
17158 hardcode_libdir_flag_spec \
17159 hardcode_libdir_separator \
17160 exclude_expsyms \
17161 include_expsyms \
17162 file_list_spec \
17163 variables_saved_for_relink \
17164 libname_spec \
17165 library_names_spec \
17166 soname_spec \
17167 install_override_mode \
17168 finish_eval \
17169 old_striplib \
17170 striplib; do
17171     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17172     *[\\\\\\\`\\"\\\$]*)
17173       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17174       ;;
17175     *)
17176       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17177       ;;
17178     esac
17179 done
17180
17181 # Double-quote double-evaled strings.
17182 for var in reload_cmds \
17183 old_postinstall_cmds \
17184 old_postuninstall_cmds \
17185 old_archive_cmds \
17186 extract_expsyms_cmds \
17187 old_archive_from_new_cmds \
17188 old_archive_from_expsyms_cmds \
17189 archive_cmds \
17190 archive_expsym_cmds \
17191 module_cmds \
17192 module_expsym_cmds \
17193 export_symbols_cmds \
17194 prelink_cmds \
17195 postlink_cmds \
17196 postinstall_cmds \
17197 postuninstall_cmds \
17198 finish_cmds \
17199 sys_lib_search_path_spec \
17200 sys_lib_dlsearch_path_spec; do
17201     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17202     *[\\\\\\\`\\"\\\$]*)
17203       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17204       ;;
17205     *)
17206       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17207       ;;
17208     esac
17209 done
17210
17211 ac_aux_dir='$ac_aux_dir'
17212 xsi_shell='$xsi_shell'
17213 lt_shell_append='$lt_shell_append'
17214
17215 # See if we are running on zsh, and set the options which allow our
17216 # commands through without removal of \ escapes INIT.
17217 if test -n "\${ZSH_VERSION+set}" ; then
17218    setopt NO_GLOB_SUBST
17219 fi
17220
17221
17222     PACKAGE='$PACKAGE'
17223     VERSION='$VERSION'
17224     TIMESTAMP='$TIMESTAMP'
17225     RM='$RM'
17226     ofile='$ofile'
17227
17228
17229
17230 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17231     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
17232     # from automake < 1.5.
17233     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17234     # Capture the value of LINGUAS because we need it to compute CATALOGS.
17235     LINGUAS="${LINGUAS-%UNSET%}"
17236
17237
17238 _ACEOF
17239
17240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17241
17242 # Handling of arguments.
17243 for ac_config_target in $ac_config_targets
17244 do
17245   case $ac_config_target in
17246     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17247     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17248     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17249     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
17250     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17251     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17252     "moonshot.desktop") CONFIG_FILES="$CONFIG_FILES moonshot.desktop" ;;
17253     "moonshot-webp.desktop") CONFIG_FILES="$CONFIG_FILES moonshot-webp.desktop" ;;
17254     "moonshot-ui.spec") CONFIG_FILES="$CONFIG_FILES moonshot-ui.spec" ;;
17255
17256   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17257   esac
17258 done
17259
17260
17261 # If the user did not use the arguments to specify the items to instantiate,
17262 # then the envvar interface is used.  Set only those that are not.
17263 # We use the long form for the default assignment because of an extremely
17264 # bizarre bug on SunOS 4.1.3.
17265 if $ac_need_defaults; then
17266   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17267   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17268   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17269 fi
17270
17271 # Have a temporary directory for convenience.  Make it in the build tree
17272 # simply because there is no reason against having it here, and in addition,
17273 # creating and moving files from /tmp can sometimes cause problems.
17274 # Hook for its removal unless debugging.
17275 # Note that there is a small window in which the directory will not be cleaned:
17276 # after its creation but before its name has been assigned to `$tmp'.
17277 $debug ||
17278 {
17279   tmp= ac_tmp=
17280   trap 'exit_status=$?
17281   : "${ac_tmp:=$tmp}"
17282   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17283 ' 0
17284   trap 'as_fn_exit 1' 1 2 13 15
17285 }
17286 # Create a (secure) tmp directory for tmp files.
17287
17288 {
17289   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17290   test -d "$tmp"
17291 }  ||
17292 {
17293   tmp=./conf$$-$RANDOM
17294   (umask 077 && mkdir "$tmp")
17295 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17296 ac_tmp=$tmp
17297
17298 # Set up the scripts for CONFIG_FILES section.
17299 # No need to generate them if there are no CONFIG_FILES.
17300 # This happens for instance with `./config.status config.h'.
17301 if test -n "$CONFIG_FILES"; then
17302
17303
17304 ac_cr=`echo X | tr X '\015'`
17305 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17306 # But we know of no other shell where ac_cr would be empty at this
17307 # point, so we can use a bashism as a fallback.
17308 if test "x$ac_cr" = x; then
17309   eval ac_cr=\$\'\\r\'
17310 fi
17311 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17312 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17313   ac_cs_awk_cr='\\r'
17314 else
17315   ac_cs_awk_cr=$ac_cr
17316 fi
17317
17318 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17319 _ACEOF
17320
17321
17322 {
17323   echo "cat >conf$$subs.awk <<_ACEOF" &&
17324   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17325   echo "_ACEOF"
17326 } >conf$$subs.sh ||
17327   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17328 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17329 ac_delim='%!_!# '
17330 for ac_last_try in false false false false false :; do
17331   . ./conf$$subs.sh ||
17332     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17333
17334   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17335   if test $ac_delim_n = $ac_delim_num; then
17336     break
17337   elif $ac_last_try; then
17338     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17339   else
17340     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17341   fi
17342 done
17343 rm -f conf$$subs.sh
17344
17345 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17346 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17347 _ACEOF
17348 sed -n '
17349 h
17350 s/^/S["/; s/!.*/"]=/
17351 p
17352 g
17353 s/^[^!]*!//
17354 :repl
17355 t repl
17356 s/'"$ac_delim"'$//
17357 t delim
17358 :nl
17359 h
17360 s/\(.\{148\}\)..*/\1/
17361 t more1
17362 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17363 p
17364 n
17365 b repl
17366 :more1
17367 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17368 p
17369 g
17370 s/.\{148\}//
17371 t nl
17372 :delim
17373 h
17374 s/\(.\{148\}\)..*/\1/
17375 t more2
17376 s/["\\]/\\&/g; s/^/"/; s/$/"/
17377 p
17378 b
17379 :more2
17380 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17381 p
17382 g
17383 s/.\{148\}//
17384 t delim
17385 ' <conf$$subs.awk | sed '
17386 /^[^""]/{
17387   N
17388   s/\n//
17389 }
17390 ' >>$CONFIG_STATUS || ac_write_fail=1
17391 rm -f conf$$subs.awk
17392 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17393 _ACAWK
17394 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17395   for (key in S) S_is_set[key] = 1
17396   FS = "\a"
17397
17398 }
17399 {
17400   line = $ 0
17401   nfields = split(line, field, "@")
17402   substed = 0
17403   len = length(field[1])
17404   for (i = 2; i < nfields; i++) {
17405     key = field[i]
17406     keylen = length(key)
17407     if (S_is_set[key]) {
17408       value = S[key]
17409       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17410       len += length(value) + length(field[++i])
17411       substed = 1
17412     } else
17413       len += 1 + keylen
17414   }
17415
17416   print line
17417 }
17418
17419 _ACAWK
17420 _ACEOF
17421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17422 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17423   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17424 else
17425   cat
17426 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17427   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17428 _ACEOF
17429
17430 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17431 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17432 # trailing colons and then remove the whole line if VPATH becomes empty
17433 # (actually we leave an empty line to preserve line numbers).
17434 if test "x$srcdir" = x.; then
17435   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17436 h
17437 s///
17438 s/^/:/
17439 s/[      ]*$/:/
17440 s/:\$(srcdir):/:/g
17441 s/:\${srcdir}:/:/g
17442 s/:@srcdir@:/:/g
17443 s/^:*//
17444 s/:*$//
17445 x
17446 s/\(=[   ]*\).*/\1/
17447 G
17448 s/\n//
17449 s/^[^=]*=[       ]*$//
17450 }'
17451 fi
17452
17453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17454 fi # test -n "$CONFIG_FILES"
17455
17456 # Set up the scripts for CONFIG_HEADERS section.
17457 # No need to generate them if there are no CONFIG_HEADERS.
17458 # This happens for instance with `./config.status Makefile'.
17459 if test -n "$CONFIG_HEADERS"; then
17460 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17461 BEGIN {
17462 _ACEOF
17463
17464 # Transform confdefs.h into an awk script `defines.awk', embedded as
17465 # here-document in config.status, that substitutes the proper values into
17466 # config.h.in to produce config.h.
17467
17468 # Create a delimiter string that does not exist in confdefs.h, to ease
17469 # handling of long lines.
17470 ac_delim='%!_!# '
17471 for ac_last_try in false false :; do
17472   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17473   if test -z "$ac_tt"; then
17474     break
17475   elif $ac_last_try; then
17476     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17477   else
17478     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17479   fi
17480 done
17481
17482 # For the awk script, D is an array of macro values keyed by name,
17483 # likewise P contains macro parameters if any.  Preserve backslash
17484 # newline sequences.
17485
17486 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17487 sed -n '
17488 s/.\{148\}/&'"$ac_delim"'/g
17489 t rset
17490 :rset
17491 s/^[     ]*#[    ]*define[       ][      ]*/ /
17492 t def
17493 d
17494 :def
17495 s/\\$//
17496 t bsnl
17497 s/["\\]/\\&/g
17498 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17499 D["\1"]=" \3"/p
17500 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17501 d
17502 :bsnl
17503 s/["\\]/\\&/g
17504 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17505 D["\1"]=" \3\\\\\\n"\\/p
17506 t cont
17507 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17508 t cont
17509 d
17510 :cont
17511 n
17512 s/.\{148\}/&'"$ac_delim"'/g
17513 t clear
17514 :clear
17515 s/\\$//
17516 t bsnlc
17517 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17518 d
17519 :bsnlc
17520 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17521 b cont
17522 ' <confdefs.h | sed '
17523 s/'"$ac_delim"'/"\\\
17524 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17525
17526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17527   for (key in D) D_is_set[key] = 1
17528   FS = "\a"
17529 }
17530 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17531   line = \$ 0
17532   split(line, arg, " ")
17533   if (arg[1] == "#") {
17534     defundef = arg[2]
17535     mac1 = arg[3]
17536   } else {
17537     defundef = substr(arg[1], 2)
17538     mac1 = arg[2]
17539   }
17540   split(mac1, mac2, "(") #)
17541   macro = mac2[1]
17542   prefix = substr(line, 1, index(line, defundef) - 1)
17543   if (D_is_set[macro]) {
17544     # Preserve the white space surrounding the "#".
17545     print prefix "define", macro P[macro] D[macro]
17546     next
17547   } else {
17548     # Replace #undef with comments.  This is necessary, for example,
17549     # in the case of _POSIX_SOURCE, which is predefined and required
17550     # on some systems where configure will not decide to define it.
17551     if (defundef == "undef") {
17552       print "/*", prefix defundef, macro, "*/"
17553       next
17554     }
17555   }
17556 }
17557 { print }
17558 _ACAWK
17559 _ACEOF
17560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17561   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17562 fi # test -n "$CONFIG_HEADERS"
17563
17564
17565 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17566 shift
17567 for ac_tag
17568 do
17569   case $ac_tag in
17570   :[FHLC]) ac_mode=$ac_tag; continue;;
17571   esac
17572   case $ac_mode$ac_tag in
17573   :[FHL]*:*);;
17574   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17575   :[FH]-) ac_tag=-:-;;
17576   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17577   esac
17578   ac_save_IFS=$IFS
17579   IFS=:
17580   set x $ac_tag
17581   IFS=$ac_save_IFS
17582   shift
17583   ac_file=$1
17584   shift
17585
17586   case $ac_mode in
17587   :L) ac_source=$1;;
17588   :[FH])
17589     ac_file_inputs=
17590     for ac_f
17591     do
17592       case $ac_f in
17593       -) ac_f="$ac_tmp/stdin";;
17594       *) # Look for the file first in the build tree, then in the source tree
17595          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17596          # because $ac_f cannot contain `:'.
17597          test -f "$ac_f" ||
17598            case $ac_f in
17599            [\\/$]*) false;;
17600            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17601            esac ||
17602            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17603       esac
17604       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17605       as_fn_append ac_file_inputs " '$ac_f'"
17606     done
17607
17608     # Let's still pretend it is `configure' which instantiates (i.e., don't
17609     # use $as_me), people would be surprised to read:
17610     #    /* config.h.  Generated by config.status.  */
17611     configure_input='Generated from '`
17612           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17613         `' by configure.'
17614     if test x"$ac_file" != x-; then
17615       configure_input="$ac_file.  $configure_input"
17616       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17617 $as_echo "$as_me: creating $ac_file" >&6;}
17618     fi
17619     # Neutralize special characters interpreted by sed in replacement strings.
17620     case $configure_input in #(
17621     *\&* | *\|* | *\\* )
17622        ac_sed_conf_input=`$as_echo "$configure_input" |
17623        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17624     *) ac_sed_conf_input=$configure_input;;
17625     esac
17626
17627     case $ac_tag in
17628     *:-:* | *:-) cat >"$ac_tmp/stdin" \
17629       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17630     esac
17631     ;;
17632   esac
17633
17634   ac_dir=`$as_dirname -- "$ac_file" ||
17635 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17636          X"$ac_file" : 'X\(//\)[^/]' \| \
17637          X"$ac_file" : 'X\(//\)$' \| \
17638          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17639 $as_echo X"$ac_file" |
17640     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17641             s//\1/
17642             q
17643           }
17644           /^X\(\/\/\)[^/].*/{
17645             s//\1/
17646             q
17647           }
17648           /^X\(\/\/\)$/{
17649             s//\1/
17650             q
17651           }
17652           /^X\(\/\).*/{
17653             s//\1/
17654             q
17655           }
17656           s/.*/./; q'`
17657   as_dir="$ac_dir"; as_fn_mkdir_p
17658   ac_builddir=.
17659
17660 case "$ac_dir" in
17661 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17662 *)
17663   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17664   # A ".." for each directory in $ac_dir_suffix.
17665   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17666   case $ac_top_builddir_sub in
17667   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17668   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17669   esac ;;
17670 esac
17671 ac_abs_top_builddir=$ac_pwd
17672 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17673 # for backward compatibility:
17674 ac_top_builddir=$ac_top_build_prefix
17675
17676 case $srcdir in
17677   .)  # We are building in place.
17678     ac_srcdir=.
17679     ac_top_srcdir=$ac_top_builddir_sub
17680     ac_abs_top_srcdir=$ac_pwd ;;
17681   [\\/]* | ?:[\\/]* )  # Absolute name.
17682     ac_srcdir=$srcdir$ac_dir_suffix;
17683     ac_top_srcdir=$srcdir
17684     ac_abs_top_srcdir=$srcdir ;;
17685   *) # Relative name.
17686     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17687     ac_top_srcdir=$ac_top_build_prefix$srcdir
17688     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17689 esac
17690 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17691
17692
17693   case $ac_mode in
17694   :F)
17695   #
17696   # CONFIG_FILE
17697   #
17698
17699   case $INSTALL in
17700   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17701   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17702   esac
17703   ac_MKDIR_P=$MKDIR_P
17704   case $MKDIR_P in
17705   [\\/$]* | ?:[\\/]* ) ;;
17706   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17707   esac
17708 _ACEOF
17709
17710 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17711 # If the template does not know about datarootdir, expand it.
17712 # FIXME: This hack should be removed a few years after 2.60.
17713 ac_datarootdir_hack=; ac_datarootdir_seen=
17714 ac_sed_dataroot='
17715 /datarootdir/ {
17716   p
17717   q
17718 }
17719 /@datadir@/p
17720 /@docdir@/p
17721 /@infodir@/p
17722 /@localedir@/p
17723 /@mandir@/p'
17724 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17725 *datarootdir*) ac_datarootdir_seen=yes;;
17726 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17727   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17728 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17729 _ACEOF
17730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17731   ac_datarootdir_hack='
17732   s&@datadir@&$datadir&g
17733   s&@docdir@&$docdir&g
17734   s&@infodir@&$infodir&g
17735   s&@localedir@&$localedir&g
17736   s&@mandir@&$mandir&g
17737   s&\\\${datarootdir}&$datarootdir&g' ;;
17738 esac
17739 _ACEOF
17740
17741 # Neutralize VPATH when `$srcdir' = `.'.
17742 # Shell code in configure.ac might set extrasub.
17743 # FIXME: do we really want to maintain this feature?
17744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17745 ac_sed_extra="$ac_vpsub
17746 $extrasub
17747 _ACEOF
17748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17749 :t
17750 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17751 s|@configure_input@|$ac_sed_conf_input|;t t
17752 s&@top_builddir@&$ac_top_builddir_sub&;t t
17753 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17754 s&@srcdir@&$ac_srcdir&;t t
17755 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17756 s&@top_srcdir@&$ac_top_srcdir&;t t
17757 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17758 s&@builddir@&$ac_builddir&;t t
17759 s&@abs_builddir@&$ac_abs_builddir&;t t
17760 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17761 s&@INSTALL@&$ac_INSTALL&;t t
17762 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17763 $ac_datarootdir_hack
17764 "
17765 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17766   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17767
17768 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17769   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17770   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17771       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17772   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17773 which seems to be undefined.  Please make sure it is defined" >&5
17774 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17775 which seems to be undefined.  Please make sure it is defined" >&2;}
17776
17777   rm -f "$ac_tmp/stdin"
17778   case $ac_file in
17779   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17780   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17781   esac \
17782   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17783  ;;
17784   :H)
17785   #
17786   # CONFIG_HEADER
17787   #
17788   if test x"$ac_file" != x-; then
17789     {
17790       $as_echo "/* $configure_input  */" \
17791       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17792     } >"$ac_tmp/config.h" \
17793       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17794     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17795       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17796 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17797     else
17798       rm -f "$ac_file"
17799       mv "$ac_tmp/config.h" "$ac_file" \
17800         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17801     fi
17802   else
17803     $as_echo "/* $configure_input  */" \
17804       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17805       || as_fn_error $? "could not create -" "$LINENO" 5
17806   fi
17807 # Compute "$ac_file"'s index in $config_headers.
17808 _am_arg="$ac_file"
17809 _am_stamp_count=1
17810 for _am_header in $config_headers :; do
17811   case $_am_header in
17812     $_am_arg | $_am_arg:* )
17813       break ;;
17814     * )
17815       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17816   esac
17817 done
17818 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17819 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17820          X"$_am_arg" : 'X\(//\)[^/]' \| \
17821          X"$_am_arg" : 'X\(//\)$' \| \
17822          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17823 $as_echo X"$_am_arg" |
17824     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17825             s//\1/
17826             q
17827           }
17828           /^X\(\/\/\)[^/].*/{
17829             s//\1/
17830             q
17831           }
17832           /^X\(\/\/\)$/{
17833             s//\1/
17834             q
17835           }
17836           /^X\(\/\).*/{
17837             s//\1/
17838             q
17839           }
17840           s/.*/./; q'`/stamp-h$_am_stamp_count
17841  ;;
17842
17843   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17844 $as_echo "$as_me: executing $ac_file commands" >&6;}
17845  ;;
17846   esac
17847
17848
17849   case $ac_file$ac_mode in
17850     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17851   # Autoconf 2.62 quotes --file arguments for eval, but not when files
17852   # are listed without --file.  Let's play safe and only enable the eval
17853   # if we detect the quoting.
17854   case $CONFIG_FILES in
17855   *\'*) eval set x "$CONFIG_FILES" ;;
17856   *)   set x $CONFIG_FILES ;;
17857   esac
17858   shift
17859   for mf
17860   do
17861     # Strip MF so we end up with the name of the file.
17862     mf=`echo "$mf" | sed -e 's/:.*$//'`
17863     # Check whether this is an Automake generated Makefile or not.
17864     # We used to match only the files named `Makefile.in', but
17865     # some people rename them; so instead we look at the file content.
17866     # Grep'ing the first line is not enough: some people post-process
17867     # each Makefile.in and add a new line on top of each file to say so.
17868     # Grep'ing the whole file is not good either: AIX grep has a line
17869     # limit of 2048, but all sed's we know have understand at least 4000.
17870     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17871       dirpart=`$as_dirname -- "$mf" ||
17872 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17873          X"$mf" : 'X\(//\)[^/]' \| \
17874          X"$mf" : 'X\(//\)$' \| \
17875          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17876 $as_echo X"$mf" |
17877     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17878             s//\1/
17879             q
17880           }
17881           /^X\(\/\/\)[^/].*/{
17882             s//\1/
17883             q
17884           }
17885           /^X\(\/\/\)$/{
17886             s//\1/
17887             q
17888           }
17889           /^X\(\/\).*/{
17890             s//\1/
17891             q
17892           }
17893           s/.*/./; q'`
17894     else
17895       continue
17896     fi
17897     # Extract the definition of DEPDIR, am__include, and am__quote
17898     # from the Makefile without running `make'.
17899     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17900     test -z "$DEPDIR" && continue
17901     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17902     test -z "am__include" && continue
17903     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17904     # When using ansi2knr, U may be empty or an underscore; expand it
17905     U=`sed -n 's/^U = //p' < "$mf"`
17906     # Find all dependency output files, they are included files with
17907     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17908     # simplest approach to changing $(DEPDIR) to its actual value in the
17909     # expansion.
17910     for file in `sed -n "
17911       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17912          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17913       # Make sure the directory exists.
17914       test -f "$dirpart/$file" && continue
17915       fdir=`$as_dirname -- "$file" ||
17916 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17917          X"$file" : 'X\(//\)[^/]' \| \
17918          X"$file" : 'X\(//\)$' \| \
17919          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17920 $as_echo X"$file" |
17921     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17922             s//\1/
17923             q
17924           }
17925           /^X\(\/\/\)[^/].*/{
17926             s//\1/
17927             q
17928           }
17929           /^X\(\/\/\)$/{
17930             s//\1/
17931             q
17932           }
17933           /^X\(\/\).*/{
17934             s//\1/
17935             q
17936           }
17937           s/.*/./; q'`
17938       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17939       # echo "creating $dirpart/$file"
17940       echo '# dummy' > "$dirpart/$file"
17941     done
17942   done
17943 }
17944  ;;
17945     "libtool":C)
17946
17947     # See if we are running on zsh, and set the options which allow our
17948     # commands through without removal of \ escapes.
17949     if test -n "${ZSH_VERSION+set}" ; then
17950       setopt NO_GLOB_SUBST
17951     fi
17952
17953     cfgfile="${ofile}T"
17954     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17955     $RM "$cfgfile"
17956
17957     cat <<_LT_EOF >> "$cfgfile"
17958 #! $SHELL
17959
17960 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17961 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17962 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17963 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17964 #
17965 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17966 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17967 #                 Foundation, Inc.
17968 #   Written by Gordon Matzigkeit, 1996
17969 #
17970 #   This file is part of GNU Libtool.
17971 #
17972 # GNU Libtool is free software; you can redistribute it and/or
17973 # modify it under the terms of the GNU General Public License as
17974 # published by the Free Software Foundation; either version 2 of
17975 # the License, or (at your option) any later version.
17976 #
17977 # As a special exception to the GNU General Public License,
17978 # if you distribute this file as part of a program or library that
17979 # is built using GNU Libtool, you may include this file under the
17980 # same distribution terms that you use for the rest of that program.
17981 #
17982 # GNU Libtool is distributed in the hope that it will be useful,
17983 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17984 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17985 # GNU General Public License for more details.
17986 #
17987 # You should have received a copy of the GNU General Public License
17988 # along with GNU Libtool; see the file COPYING.  If not, a copy
17989 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17990 # obtained by writing to the Free Software Foundation, Inc.,
17991 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17992
17993
17994 # The names of the tagged configurations supported by this script.
17995 available_tags=""
17996
17997 # ### BEGIN LIBTOOL CONFIG
17998
17999 # Which release of libtool.m4 was used?
18000 macro_version=$macro_version
18001 macro_revision=$macro_revision
18002
18003 # Assembler program.
18004 AS=$lt_AS
18005
18006 # DLL creation program.
18007 DLLTOOL=$lt_DLLTOOL
18008
18009 # Object dumper program.
18010 OBJDUMP=$lt_OBJDUMP
18011
18012 # Whether or not to build shared libraries.
18013 build_libtool_libs=$enable_shared
18014
18015 # Whether or not to build static libraries.
18016 build_old_libs=$enable_static
18017
18018 # What type of objects to build.
18019 pic_mode=$pic_mode
18020
18021 # Whether or not to optimize for fast installation.
18022 fast_install=$enable_fast_install
18023
18024 # Shell to use when invoking shell scripts.
18025 SHELL=$lt_SHELL
18026
18027 # An echo program that protects backslashes.
18028 ECHO=$lt_ECHO
18029
18030 # The PATH separator for the build system.
18031 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18032
18033 # The host system.
18034 host_alias=$host_alias
18035 host=$host
18036 host_os=$host_os
18037
18038 # The build system.
18039 build_alias=$build_alias
18040 build=$build
18041 build_os=$build_os
18042
18043 # A sed program that does not truncate output.
18044 SED=$lt_SED
18045
18046 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18047 Xsed="\$SED -e 1s/^X//"
18048
18049 # A grep program that handles long lines.
18050 GREP=$lt_GREP
18051
18052 # An ERE matcher.
18053 EGREP=$lt_EGREP
18054
18055 # A literal string matcher.
18056 FGREP=$lt_FGREP
18057
18058 # A BSD- or MS-compatible name lister.
18059 NM=$lt_NM
18060
18061 # Whether we need soft or hard links.
18062 LN_S=$lt_LN_S
18063
18064 # What is the maximum length of a command?
18065 max_cmd_len=$max_cmd_len
18066
18067 # Object file suffix (normally "o").
18068 objext=$ac_objext
18069
18070 # Executable file suffix (normally "").
18071 exeext=$exeext
18072
18073 # whether the shell understands "unset".
18074 lt_unset=$lt_unset
18075
18076 # turn spaces into newlines.
18077 SP2NL=$lt_lt_SP2NL
18078
18079 # turn newlines into spaces.
18080 NL2SP=$lt_lt_NL2SP
18081
18082 # convert \$build file names to \$host format.
18083 to_host_file_cmd=$lt_cv_to_host_file_cmd
18084
18085 # convert \$build files to toolchain format.
18086 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18087
18088 # Method to check whether dependent libraries are shared objects.
18089 deplibs_check_method=$lt_deplibs_check_method
18090
18091 # Command to use when deplibs_check_method = "file_magic".
18092 file_magic_cmd=$lt_file_magic_cmd
18093
18094 # How to find potential files when deplibs_check_method = "file_magic".
18095 file_magic_glob=$lt_file_magic_glob
18096
18097 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18098 want_nocaseglob=$lt_want_nocaseglob
18099
18100 # Command to associate shared and link libraries.
18101 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18102
18103 # The archiver.
18104 AR=$lt_AR
18105
18106 # Flags to create an archive.
18107 AR_FLAGS=$lt_AR_FLAGS
18108
18109 # How to feed a file listing to the archiver.
18110 archiver_list_spec=$lt_archiver_list_spec
18111
18112 # A symbol stripping program.
18113 STRIP=$lt_STRIP
18114
18115 # Commands used to install an old-style archive.
18116 RANLIB=$lt_RANLIB
18117 old_postinstall_cmds=$lt_old_postinstall_cmds
18118 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18119
18120 # Whether to use a lock for old archive extraction.
18121 lock_old_archive_extraction=$lock_old_archive_extraction
18122
18123 # A C compiler.
18124 LTCC=$lt_CC
18125
18126 # LTCC compiler flags.
18127 LTCFLAGS=$lt_CFLAGS
18128
18129 # Take the output of nm and produce a listing of raw symbols and C names.
18130 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18131
18132 # Transform the output of nm in a proper C declaration.
18133 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18134
18135 # Transform the output of nm in a C name address pair.
18136 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18137
18138 # Transform the output of nm in a C name address pair when lib prefix is needed.
18139 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18140
18141 # Specify filename containing input files for \$NM.
18142 nm_file_list_spec=$lt_nm_file_list_spec
18143
18144 # The root where to search for dependent libraries,and in which our libraries should be installed.
18145 lt_sysroot=$lt_sysroot
18146
18147 # The name of the directory that contains temporary libtool files.
18148 objdir=$objdir
18149
18150 # Used to examine libraries when file_magic_cmd begins with "file".
18151 MAGIC_CMD=$MAGIC_CMD
18152
18153 # Must we lock files when doing compilation?
18154 need_locks=$lt_need_locks
18155
18156 # Manifest tool.
18157 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18158
18159 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18160 DSYMUTIL=$lt_DSYMUTIL
18161
18162 # Tool to change global to local symbols on Mac OS X.
18163 NMEDIT=$lt_NMEDIT
18164
18165 # Tool to manipulate fat objects and archives on Mac OS X.
18166 LIPO=$lt_LIPO
18167
18168 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18169 OTOOL=$lt_OTOOL
18170
18171 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18172 OTOOL64=$lt_OTOOL64
18173
18174 # Old archive suffix (normally "a").
18175 libext=$libext
18176
18177 # Shared library suffix (normally ".so").
18178 shrext_cmds=$lt_shrext_cmds
18179
18180 # The commands to extract the exported symbol list from a shared archive.
18181 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18182
18183 # Variables whose values should be saved in libtool wrapper scripts and
18184 # restored at link time.
18185 variables_saved_for_relink=$lt_variables_saved_for_relink
18186
18187 # Do we need the "lib" prefix for modules?
18188 need_lib_prefix=$need_lib_prefix
18189
18190 # Do we need a version for libraries?
18191 need_version=$need_version
18192
18193 # Library versioning type.
18194 version_type=$version_type
18195
18196 # Shared library runtime path variable.
18197 runpath_var=$runpath_var
18198
18199 # Shared library path variable.
18200 shlibpath_var=$shlibpath_var
18201
18202 # Is shlibpath searched before the hard-coded library search path?
18203 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18204
18205 # Format of library name prefix.
18206 libname_spec=$lt_libname_spec
18207
18208 # List of archive names.  First name is the real one, the rest are links.
18209 # The last name is the one that the linker finds with -lNAME
18210 library_names_spec=$lt_library_names_spec
18211
18212 # The coded name of the library, if different from the real name.
18213 soname_spec=$lt_soname_spec
18214
18215 # Permission mode override for installation of shared libraries.
18216 install_override_mode=$lt_install_override_mode
18217
18218 # Command to use after installation of a shared archive.
18219 postinstall_cmds=$lt_postinstall_cmds
18220
18221 # Command to use after uninstallation of a shared archive.
18222 postuninstall_cmds=$lt_postuninstall_cmds
18223
18224 # Commands used to finish a libtool library installation in a directory.
18225 finish_cmds=$lt_finish_cmds
18226
18227 # As "finish_cmds", except a single script fragment to be evaled but
18228 # not shown.
18229 finish_eval=$lt_finish_eval
18230
18231 # Whether we should hardcode library paths into libraries.
18232 hardcode_into_libs=$hardcode_into_libs
18233
18234 # Compile-time system search path for libraries.
18235 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18236
18237 # Run-time system search path for libraries.
18238 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18239
18240 # Whether dlopen is supported.
18241 dlopen_support=$enable_dlopen
18242
18243 # Whether dlopen of programs is supported.
18244 dlopen_self=$enable_dlopen_self
18245
18246 # Whether dlopen of statically linked programs is supported.
18247 dlopen_self_static=$enable_dlopen_self_static
18248
18249 # Commands to strip libraries.
18250 old_striplib=$lt_old_striplib
18251 striplib=$lt_striplib
18252
18253
18254 # The linker used to build libraries.
18255 LD=$lt_LD
18256
18257 # How to create reloadable object files.
18258 reload_flag=$lt_reload_flag
18259 reload_cmds=$lt_reload_cmds
18260
18261 # Commands used to build an old-style archive.
18262 old_archive_cmds=$lt_old_archive_cmds
18263
18264 # A language specific compiler.
18265 CC=$lt_compiler
18266
18267 # Is the compiler the GNU compiler?
18268 with_gcc=$GCC
18269
18270 # Compiler flag to turn off builtin functions.
18271 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18272
18273 # Additional compiler flags for building library objects.
18274 pic_flag=$lt_lt_prog_compiler_pic
18275
18276 # How to pass a linker flag through the compiler.
18277 wl=$lt_lt_prog_compiler_wl
18278
18279 # Compiler flag to prevent dynamic linking.
18280 link_static_flag=$lt_lt_prog_compiler_static
18281
18282 # Does compiler simultaneously support -c and -o options?
18283 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18284
18285 # Whether or not to add -lc for building shared libraries.
18286 build_libtool_need_lc=$archive_cmds_need_lc
18287
18288 # Whether or not to disallow shared libs when runtime libs are static.
18289 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18290
18291 # Compiler flag to allow reflexive dlopens.
18292 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18293
18294 # Compiler flag to generate shared objects directly from archives.
18295 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18296
18297 # Whether the compiler copes with passing no objects directly.
18298 compiler_needs_object=$lt_compiler_needs_object
18299
18300 # Create an old-style archive from a shared archive.
18301 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18302
18303 # Create a temporary old-style archive to link instead of a shared archive.
18304 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18305
18306 # Commands used to build a shared archive.
18307 archive_cmds=$lt_archive_cmds
18308 archive_expsym_cmds=$lt_archive_expsym_cmds
18309
18310 # Commands used to build a loadable module if different from building
18311 # a shared archive.
18312 module_cmds=$lt_module_cmds
18313 module_expsym_cmds=$lt_module_expsym_cmds
18314
18315 # Whether we are building with GNU ld or not.
18316 with_gnu_ld=$lt_with_gnu_ld
18317
18318 # Flag that allows shared libraries with undefined symbols to be built.
18319 allow_undefined_flag=$lt_allow_undefined_flag
18320
18321 # Flag that enforces no undefined symbols.
18322 no_undefined_flag=$lt_no_undefined_flag
18323
18324 # Flag to hardcode \$libdir into a binary during linking.
18325 # This must work even if \$libdir does not exist
18326 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18327
18328 # Whether we need a single "-rpath" flag with a separated argument.
18329 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18330
18331 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18332 # DIR into the resulting binary.
18333 hardcode_direct=$hardcode_direct
18334
18335 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18336 # DIR into the resulting binary and the resulting library dependency is
18337 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18338 # library is relocated.
18339 hardcode_direct_absolute=$hardcode_direct_absolute
18340
18341 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18342 # into the resulting binary.
18343 hardcode_minus_L=$hardcode_minus_L
18344
18345 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18346 # into the resulting binary.
18347 hardcode_shlibpath_var=$hardcode_shlibpath_var
18348
18349 # Set to "yes" if building a shared library automatically hardcodes DIR
18350 # into the library and all subsequent libraries and executables linked
18351 # against it.
18352 hardcode_automatic=$hardcode_automatic
18353
18354 # Set to yes if linker adds runtime paths of dependent libraries
18355 # to runtime path list.
18356 inherit_rpath=$inherit_rpath
18357
18358 # Whether libtool must link a program against all its dependency libraries.
18359 link_all_deplibs=$link_all_deplibs
18360
18361 # Set to "yes" if exported symbols are required.
18362 always_export_symbols=$always_export_symbols
18363
18364 # The commands to list exported symbols.
18365 export_symbols_cmds=$lt_export_symbols_cmds
18366
18367 # Symbols that should not be listed in the preloaded symbols.
18368 exclude_expsyms=$lt_exclude_expsyms
18369
18370 # Symbols that must always be exported.
18371 include_expsyms=$lt_include_expsyms
18372
18373 # Commands necessary for linking programs (against libraries) with templates.
18374 prelink_cmds=$lt_prelink_cmds
18375
18376 # Commands necessary for finishing linking programs.
18377 postlink_cmds=$lt_postlink_cmds
18378
18379 # Specify filename containing input files.
18380 file_list_spec=$lt_file_list_spec
18381
18382 # How to hardcode a shared library path into an executable.
18383 hardcode_action=$hardcode_action
18384
18385 # ### END LIBTOOL CONFIG
18386
18387 _LT_EOF
18388
18389   case $host_os in
18390   aix3*)
18391     cat <<\_LT_EOF >> "$cfgfile"
18392 # AIX sometimes has problems with the GCC collect2 program.  For some
18393 # reason, if we set the COLLECT_NAMES environment variable, the problems
18394 # vanish in a puff of smoke.
18395 if test "X${COLLECT_NAMES+set}" != Xset; then
18396   COLLECT_NAMES=
18397   export COLLECT_NAMES
18398 fi
18399 _LT_EOF
18400     ;;
18401   esac
18402
18403
18404 ltmain="$ac_aux_dir/ltmain.sh"
18405
18406
18407   # We use sed instead of cat because bash on DJGPP gets confused if
18408   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18409   # text mode, it properly converts lines to CR/LF.  This bash problem
18410   # is reportedly fixed, but why not run on old versions too?
18411   sed '$q' "$ltmain" >> "$cfgfile" \
18412      || (rm -f "$cfgfile"; exit 1)
18413
18414   if test x"$xsi_shell" = xyes; then
18415   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18416 func_dirname ()\
18417 {\
18418 \    case ${1} in\
18419 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18420 \      *  ) func_dirname_result="${3}" ;;\
18421 \    esac\
18422 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18423   && mv -f "$cfgfile.tmp" "$cfgfile" \
18424     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18425 test 0 -eq $? || _lt_function_replace_fail=:
18426
18427
18428   sed -e '/^func_basename ()$/,/^} # func_basename /c\
18429 func_basename ()\
18430 {\
18431 \    func_basename_result="${1##*/}"\
18432 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18433   && mv -f "$cfgfile.tmp" "$cfgfile" \
18434     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18435 test 0 -eq $? || _lt_function_replace_fail=:
18436
18437
18438   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18439 func_dirname_and_basename ()\
18440 {\
18441 \    case ${1} in\
18442 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18443 \      *  ) func_dirname_result="${3}" ;;\
18444 \    esac\
18445 \    func_basename_result="${1##*/}"\
18446 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18447   && mv -f "$cfgfile.tmp" "$cfgfile" \
18448     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18449 test 0 -eq $? || _lt_function_replace_fail=:
18450
18451
18452   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18453 func_stripname ()\
18454 {\
18455 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18456 \    # positional parameters, so assign one to ordinary parameter first.\
18457 \    func_stripname_result=${3}\
18458 \    func_stripname_result=${func_stripname_result#"${1}"}\
18459 \    func_stripname_result=${func_stripname_result%"${2}"}\
18460 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18461   && mv -f "$cfgfile.tmp" "$cfgfile" \
18462     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18463 test 0 -eq $? || _lt_function_replace_fail=:
18464
18465
18466   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18467 func_split_long_opt ()\
18468 {\
18469 \    func_split_long_opt_name=${1%%=*}\
18470 \    func_split_long_opt_arg=${1#*=}\
18471 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18472   && mv -f "$cfgfile.tmp" "$cfgfile" \
18473     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18474 test 0 -eq $? || _lt_function_replace_fail=:
18475
18476
18477   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18478 func_split_short_opt ()\
18479 {\
18480 \    func_split_short_opt_arg=${1#??}\
18481 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18482 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18483   && mv -f "$cfgfile.tmp" "$cfgfile" \
18484     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18485 test 0 -eq $? || _lt_function_replace_fail=:
18486
18487
18488   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18489 func_lo2o ()\
18490 {\
18491 \    case ${1} in\
18492 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18493 \      *)    func_lo2o_result=${1} ;;\
18494 \    esac\
18495 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18496   && mv -f "$cfgfile.tmp" "$cfgfile" \
18497     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18498 test 0 -eq $? || _lt_function_replace_fail=:
18499
18500
18501   sed -e '/^func_xform ()$/,/^} # func_xform /c\
18502 func_xform ()\
18503 {\
18504     func_xform_result=${1%.*}.lo\
18505 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18506   && mv -f "$cfgfile.tmp" "$cfgfile" \
18507     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18508 test 0 -eq $? || _lt_function_replace_fail=:
18509
18510
18511   sed -e '/^func_arith ()$/,/^} # func_arith /c\
18512 func_arith ()\
18513 {\
18514     func_arith_result=$(( $* ))\
18515 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18516   && mv -f "$cfgfile.tmp" "$cfgfile" \
18517     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18518 test 0 -eq $? || _lt_function_replace_fail=:
18519
18520
18521   sed -e '/^func_len ()$/,/^} # func_len /c\
18522 func_len ()\
18523 {\
18524     func_len_result=${#1}\
18525 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18526   && mv -f "$cfgfile.tmp" "$cfgfile" \
18527     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18528 test 0 -eq $? || _lt_function_replace_fail=:
18529
18530 fi
18531
18532 if test x"$lt_shell_append" = xyes; then
18533   sed -e '/^func_append ()$/,/^} # func_append /c\
18534 func_append ()\
18535 {\
18536     eval "${1}+=\\${2}"\
18537 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18538   && mv -f "$cfgfile.tmp" "$cfgfile" \
18539     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18540 test 0 -eq $? || _lt_function_replace_fail=:
18541
18542
18543   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18544 func_append_quoted ()\
18545 {\
18546 \    func_quote_for_eval "${2}"\
18547 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18548 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18549   && mv -f "$cfgfile.tmp" "$cfgfile" \
18550     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18551 test 0 -eq $? || _lt_function_replace_fail=:
18552
18553
18554   # Save a `func_append' function call where possible by direct use of '+='
18555   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18556     && mv -f "$cfgfile.tmp" "$cfgfile" \
18557       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18558   test 0 -eq $? || _lt_function_replace_fail=:
18559 else
18560   # Save a `func_append' function call even when '+=' is not available
18561   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18562     && mv -f "$cfgfile.tmp" "$cfgfile" \
18563       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18564   test 0 -eq $? || _lt_function_replace_fail=:
18565 fi
18566
18567 if test x"$_lt_function_replace_fail" = x":"; then
18568   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18569 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18570 fi
18571
18572
18573    mv -f "$cfgfile" "$ofile" ||
18574     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18575   chmod +x "$ofile"
18576
18577  ;;
18578     "po-directories":C)
18579     for ac_file in $CONFIG_FILES; do
18580       # Support "outfile[:infile[:infile...]]"
18581       case "$ac_file" in
18582         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18583       esac
18584       # PO directories have a Makefile.in generated from Makefile.in.in.
18585       case "$ac_file" in */Makefile.in)
18586         # Adjust a relative srcdir.
18587         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18588         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18589         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18590         # In autoconf-2.13 it is called $ac_given_srcdir.
18591         # In autoconf-2.50 it is called $srcdir.
18592         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18593         case "$ac_given_srcdir" in
18594           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18595           /*) top_srcdir="$ac_given_srcdir" ;;
18596           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
18597         esac
18598         # Treat a directory as a PO directory if and only if it has a
18599         # POTFILES.in file. This allows packages to have multiple PO
18600         # directories under different names or in different locations.
18601         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18602           rm -f "$ac_dir/POTFILES"
18603           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18604           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18605           POMAKEFILEDEPS="POTFILES.in"
18606           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
18607           # on $ac_dir but don't depend on user-specified configuration
18608           # parameters.
18609           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18610             # The LINGUAS file contains the set of available languages.
18611             if test -n "$OBSOLETE_ALL_LINGUAS"; then
18612               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18613             fi
18614             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18615             # Hide the ALL_LINGUAS assigment from automake < 1.5.
18616             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18617             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18618           else
18619             # The set of available languages was given in configure.in.
18620             # Hide the ALL_LINGUAS assigment from automake < 1.5.
18621             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18622           fi
18623           # Compute POFILES
18624           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
18625           # Compute UPDATEPOFILES
18626           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
18627           # Compute DUMMYPOFILES
18628           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
18629           # Compute GMOFILES
18630           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
18631           case "$ac_given_srcdir" in
18632             .) srcdirpre= ;;
18633             *) srcdirpre='$(srcdir)/' ;;
18634           esac
18635           POFILES=
18636           UPDATEPOFILES=
18637           DUMMYPOFILES=
18638           GMOFILES=
18639           for lang in $ALL_LINGUAS; do
18640             POFILES="$POFILES $srcdirpre$lang.po"
18641             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18642             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18643             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18644           done
18645           # CATALOGS depends on both $ac_dir and the user's LINGUAS
18646           # environment variable.
18647           INST_LINGUAS=
18648           if test -n "$ALL_LINGUAS"; then
18649             for presentlang in $ALL_LINGUAS; do
18650               useit=no
18651               if test "%UNSET%" != "$LINGUAS"; then
18652                 desiredlanguages="$LINGUAS"
18653               else
18654                 desiredlanguages="$ALL_LINGUAS"
18655               fi
18656               for desiredlang in $desiredlanguages; do
18657                 # Use the presentlang catalog if desiredlang is
18658                 #   a. equal to presentlang, or
18659                 #   b. a variant of presentlang (because in this case,
18660                 #      presentlang can be used as a fallback for messages
18661                 #      which are not translated in the desiredlang catalog).
18662                 case "$desiredlang" in
18663                   "$presentlang"*) useit=yes;;
18664                 esac
18665               done
18666               if test $useit = yes; then
18667                 INST_LINGUAS="$INST_LINGUAS $presentlang"
18668               fi
18669             done
18670           fi
18671           CATALOGS=
18672           if test -n "$INST_LINGUAS"; then
18673             for lang in $INST_LINGUAS; do
18674               CATALOGS="$CATALOGS $lang.gmo"
18675             done
18676           fi
18677           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18678           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"
18679           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18680             if test -f "$f"; then
18681               case "$f" in
18682                 *.orig | *.bak | *~) ;;
18683                 *) cat "$f" >> "$ac_dir/Makefile" ;;
18684               esac
18685             fi
18686           done
18687         fi
18688         ;;
18689       esac
18690     done ;;
18691
18692   esac
18693 done # for ac_tag
18694
18695
18696 as_fn_exit 0
18697 _ACEOF
18698 ac_clean_files=$ac_clean_files_save
18699
18700 test $ac_write_fail = 0 ||
18701   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18702
18703
18704 # configure is writing to config.log, and then calls config.status.
18705 # config.status does its own redirection, appending to config.log.
18706 # Unfortunately, on DOS this fails, as config.log is still kept open
18707 # by configure, so config.status won't be able to write to it; its
18708 # output is simply discarded.  So we exec the FD to /dev/null,
18709 # effectively closing config.log, so it can be properly (re)opened and
18710 # appended to by config.status.  When coming back to configure, we
18711 # need to make the FD available again.
18712 if test "$no_create" != yes; then
18713   ac_cs_success=:
18714   ac_config_status_args=
18715   test "$silent" = yes &&
18716     ac_config_status_args="$ac_config_status_args --quiet"
18717   exec 5>/dev/null
18718   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18719   exec 5>>config.log
18720   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18721   # would make configure fail if this is the last instruction.
18722   $ac_cs_success || as_fn_exit 1
18723 fi
18724 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18725   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18726 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18727 fi
18728