initial commit, lordsawar source, slightly modified
[lordsawar] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for lordsawar 0.1.7-pre2.
4 #
5 # Report bugs to <http://sv.nongnu.org/bugs/?group=lordsawar>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # Foundation, Inc.
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 case $0 in #((
93   *[\\/]* ) as_myself=$0 ;;
94   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97   IFS=$as_save_IFS
98   test -z "$as_dir" && as_dir=.
99     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100   done
101 IFS=$as_save_IFS
102
103      ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108   as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112   exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there.  '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138   emulate sh
139   NULLCMD=:
140   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141   # is contrary to our usage.  Disable this feature.
142   alias -g '\${1+\"\$@\"}'='\"\$@\"'
143   setopt NO_GLOB_SUBST
144 else
145   case \`(set -o) 2>/dev/null\` in #(
146   *posix*) :
147     set -o posix ;; #(
148   *) :
149      ;;
150 esac
151 fi
152 "
153   as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167   exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175   if (eval "$as_required") 2>/dev/null; then :
176   as_have_required=yes
177 else
178   as_have_required=no
179 fi
180   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187   IFS=$as_save_IFS
188   test -z "$as_dir" && as_dir=.
189   as_found=:
190   case $as_dir in #(
191          /*)
192            for as_base in sh bash ksh sh5; do
193              # Try only shells that exist, to save several forks.
194              as_shell=$as_dir/$as_base
195              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   CONFIG_SHELL=$as_shell as_have_required=yes
198                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   break 2
200 fi
201 fi
202            done;;
203        esac
204   as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208   CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213       if test "x$CONFIG_SHELL" != x; then :
214   # We cannot yet assume a decent shell, so we have to provide a
215         # neutralization value for shells without unset; and this also
216         # works around shells that cannot unset nonexistent variables.
217         BASH_ENV=/dev/null
218         ENV=/dev/null
219         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220         export CONFIG_SHELL
221         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224     if test x$as_have_required = xno; then :
225   $as_echo "$0: This script requires a shell more modern than all"
226   $as_echo "$0: the shells that I found on your system."
227   if test x${ZSH_VERSION+set} = xset ; then
228     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230   else
231     $as_echo "$0: Please tell bug-autoconf@gnu.org and
232 $0: http://sv.nongnu.org/bugs/?group=lordsawar about your
233 $0: system, including any error possibly output before this
234 $0: message. Then install a modern shell, or manually run
235 $0: the script under such a shell if you do have one."
236   fi
237   exit 1
238 fi
239 fi
240 fi
241 SHELL=${CONFIG_SHELL-/bin/sh}
242 export SHELL
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE= GREP_OPTIONS=
245 unset CLICOLOR_FORCE GREP_OPTIONS
246
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
250 # as_fn_unset VAR
251 # ---------------
252 # Portably unset VAR.
253 as_fn_unset ()
254 {
255   { eval $1=; unset $1;}
256 }
257 as_unset=as_fn_unset
258
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
262 as_fn_set_status ()
263 {
264   return $1
265 } # as_fn_set_status
266
267 # as_fn_exit STATUS
268 # -----------------
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270 as_fn_exit ()
271 {
272   set +e
273   as_fn_set_status $1
274   exit $1
275 } # as_fn_exit
276
277 # as_fn_mkdir_p
278 # -------------
279 # Create "$as_dir" as a directory, including parents if necessary.
280 as_fn_mkdir_p ()
281 {
282
283   case $as_dir in #(
284   -*) as_dir=./$as_dir;;
285   esac
286   test -d "$as_dir" || eval $as_mkdir_p || {
287     as_dirs=
288     while :; do
289       case $as_dir in #(
290       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291       *) as_qdir=$as_dir;;
292       esac
293       as_dirs="'$as_qdir' $as_dirs"
294       as_dir=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296          X"$as_dir" : 'X\(//\)[^/]' \| \
297          X"$as_dir" : 'X\(//\)$' \| \
298          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301             s//\1/
302             q
303           }
304           /^X\(\/\/\)[^/].*/{
305             s//\1/
306             q
307           }
308           /^X\(\/\/\)$/{
309             s//\1/
310             q
311           }
312           /^X\(\/\).*/{
313             s//\1/
314             q
315           }
316           s/.*/./; q'`
317       test -d "$as_dir" && break
318     done
319     test -z "$as_dirs" || eval "mkdir $as_dirs"
320   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321
322
323 } # as_fn_mkdir_p
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
329 # implementations.
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331   eval 'as_fn_append ()
332   {
333     eval $1+=\$2
334   }'
335 else
336   as_fn_append ()
337   {
338     eval $1=\$$1\$2
339   }
340 fi # as_fn_append
341
342 # as_fn_arith ARG...
343 # ------------------
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
348   eval 'as_fn_arith ()
349   {
350     as_val=$(( $* ))
351   }'
352 else
353   as_fn_arith ()
354   {
355     as_val=`expr "$@" || test $? -eq 1`
356   }
357 fi # as_fn_arith
358
359
360 # as_fn_error ERROR [LINENO LOG_FD]
361 # ---------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with status $?, using 1 if that was 0.
365 as_fn_error ()
366 {
367   as_status=$?; test $as_status -eq 0 && as_status=1
368   if test "$3"; then
369     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371   fi
372   $as_echo "$as_me: error: $1" >&2
373   as_fn_exit $as_status
374 } # as_fn_error
375
376 if expr a : '\(a\)' >/dev/null 2>&1 &&
377    test "X`expr 00001 : '.*\(...\)'`" = X001; then
378   as_expr=expr
379 else
380   as_expr=false
381 fi
382
383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384   as_basename=basename
385 else
386   as_basename=false
387 fi
388
389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390   as_dirname=dirname
391 else
392   as_dirname=false
393 fi
394
395 as_me=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397          X"$0" : 'X\(//\)$' \| \
398          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 $as_echo X/"$0" |
400     sed '/^.*\/\([^/][^/]*\)\/*$/{
401             s//\1/
402             q
403           }
404           /^X\/\(\/\/\)$/{
405             s//\1/
406             q
407           }
408           /^X\/\(\/\).*/{
409             s//\1/
410             q
411           }
412           s/.*/./; q'`
413
414 # Avoid depending upon Character Ranges.
415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits='0123456789'
419 as_cr_alnum=$as_cr_Letters$as_cr_digits
420
421
422   as_lineno_1=$LINENO as_lineno_1a=$LINENO
423   as_lineno_2=$LINENO as_lineno_2a=$LINENO
424   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
427   sed -n '
428     p
429     /[$]LINENO/=
430   ' <$as_myself |
431     sed '
432       s/[$]LINENO.*/&-/
433       t lineno
434       b
435       :lineno
436       N
437       :loop
438       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439       t loop
440       s/-\n.*//
441     ' >$as_me.lineno &&
442   chmod +x "$as_me.lineno" ||
443     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444
445   # Don't try to exec as it changes $[0], causing all sort of problems
446   # (the dirname of $[0] is not the place where we might find the
447   # original and so on.  Autoconf is especially sensitive to this).
448   . "./$as_me.lineno"
449   # Exit status is that of the last command.
450   exit
451 }
452
453 ECHO_C= ECHO_N= ECHO_T=
454 case `echo -n x` in #(((((
455 -n*)
456   case `echo 'xy\c'` in
457   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
458   xy)  ECHO_C='\c';;
459   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
460        ECHO_T=' ';;
461   esac;;
462 *)
463   ECHO_N='-n';;
464 esac
465
466 rm -f conf$$ conf$$.exe conf$$.file
467 if test -d conf$$.dir; then
468   rm -f conf$$.dir/conf$$.file
469 else
470   rm -f conf$$.dir
471   mkdir conf$$.dir 2>/dev/null
472 fi
473 if (echo >conf$$.file) 2>/dev/null; then
474   if ln -s conf$$.file conf$$ 2>/dev/null; then
475     as_ln_s='ln -s'
476     # ... but there are two gotchas:
477     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479     # In both cases, we have to default to `cp -p'.
480     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481       as_ln_s='cp -p'
482   elif ln conf$$.file conf$$ 2>/dev/null; then
483     as_ln_s=ln
484   else
485     as_ln_s='cp -p'
486   fi
487 else
488   as_ln_s='cp -p'
489 fi
490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491 rmdir conf$$.dir 2>/dev/null
492
493 if mkdir -p . 2>/dev/null; then
494   as_mkdir_p='mkdir -p "$as_dir"'
495 else
496   test -d ./-p && rmdir ./-p
497   as_mkdir_p=false
498 fi
499
500 if test -x / >/dev/null 2>&1; then
501   as_test_x='test -x'
502 else
503   if ls -dL / >/dev/null 2>&1; then
504     as_ls_L_option=L
505   else
506     as_ls_L_option=
507   fi
508   as_test_x='
509     eval sh -c '\''
510       if test -d "$1"; then
511         test -d "$1/.";
512       else
513         case $1 in #(
514         -*)set "./$1";;
515         esac;
516         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517         ???[sx]*):;;*)false;;esac;fi
518     '\'' sh
519   '
520 fi
521 as_executable_p=$as_test_x
522
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528
529
530
531 # Check that we are running under the correct shell.
532 SHELL=${CONFIG_SHELL-/bin/sh}
533
534 case X$lt_ECHO in
535 X*--fallback-echo)
536   # Remove one level of quotation (which was required for Make).
537   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
538   ;;
539 esac
540
541 ECHO=${lt_ECHO-echo}
542 if test "X$1" = X--no-reexec; then
543   # Discard the --no-reexec flag, and continue.
544   shift
545 elif test "X$1" = X--fallback-echo; then
546   # Avoid inline document here, it may be left over
547   :
548 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
549   # Yippee, $ECHO works!
550   :
551 else
552   # Restart under the correct shell.
553   exec $SHELL "$0" --no-reexec ${1+"$@"}
554 fi
555
556 if test "X$1" = X--fallback-echo; then
557   # used as fallback echo
558   shift
559   cat <<_LT_EOF
560 $*
561 _LT_EOF
562   exit 0
563 fi
564
565 # The HP-UX ksh and POSIX shell print the target directory to stdout
566 # if CDPATH is set.
567 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
568
569 if test -z "$lt_ECHO"; then
570   if test "X${echo_test_string+set}" != Xset; then
571     # find a string as large as possible, as long as the shell can cope with it
572     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
573       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
574       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
575          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
576       then
577         break
578       fi
579     done
580   fi
581
582   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
583      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
584      test "X$echo_testing_string" = "X$echo_test_string"; then
585     :
586   else
587     # The Solaris, AIX, and Digital Unix default echo programs unquote
588     # backslashes.  This makes it impossible to quote backslashes using
589     #   echo "$something" | sed 's/\\/\\\\/g'
590     #
591     # So, first we look for a working echo in the user's PATH.
592
593     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
594     for dir in $PATH /usr/ucb; do
595       IFS="$lt_save_ifs"
596       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
597          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
598          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
599          test "X$echo_testing_string" = "X$echo_test_string"; then
600         ECHO="$dir/echo"
601         break
602       fi
603     done
604     IFS="$lt_save_ifs"
605
606     if test "X$ECHO" = Xecho; then
607       # We didn't find a better echo, so look for alternatives.
608       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
609          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
610          test "X$echo_testing_string" = "X$echo_test_string"; then
611         # This shell has a builtin print -r that does the trick.
612         ECHO='print -r'
613       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
614            test "X$CONFIG_SHELL" != X/bin/ksh; then
615         # If we have ksh, try running configure again with it.
616         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
617         export ORIGINAL_CONFIG_SHELL
618         CONFIG_SHELL=/bin/ksh
619         export CONFIG_SHELL
620         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
621       else
622         # Try using printf.
623         ECHO='printf %s\n'
624         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
625            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
626            test "X$echo_testing_string" = "X$echo_test_string"; then
627           # Cool, printf works
628           :
629         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
630              test "X$echo_testing_string" = 'X\t' &&
631              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
632              test "X$echo_testing_string" = "X$echo_test_string"; then
633           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
634           export CONFIG_SHELL
635           SHELL="$CONFIG_SHELL"
636           export SHELL
637           ECHO="$CONFIG_SHELL $0 --fallback-echo"
638         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639              test "X$echo_testing_string" = 'X\t' &&
640              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641              test "X$echo_testing_string" = "X$echo_test_string"; then
642           ECHO="$CONFIG_SHELL $0 --fallback-echo"
643         else
644           # maybe with a smaller string...
645           prev=:
646
647           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
648             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
649             then
650               break
651             fi
652             prev="$cmd"
653           done
654
655           if test "$prev" != 'sed 50q "$0"'; then
656             echo_test_string=`eval $prev`
657             export echo_test_string
658             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
659           else
660             # Oops.  We lost completely, so just stick with echo.
661             ECHO=echo
662           fi
663         fi
664       fi
665     fi
666   fi
667 fi
668
669 # Copy echo and quote the copy suitably for passing to libtool from
670 # the Makefile, instead of quoting the original, which is used later.
671 lt_ECHO=$ECHO
672 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
673    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
674 fi
675
676
677
678
679 exec 7<&0 </dev/null 6>&1
680
681 # Name of the host.
682 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
686 #
687 # Initializations.
688 #
689 ac_default_prefix=/usr/local
690 ac_clean_files=
691 ac_config_libobj_dir=.
692 LIBOBJS=
693 cross_compiling=no
694 subdirs=
695 MFLAGS=
696 MAKEFLAGS=
697
698 # Identity of this package.
699 PACKAGE_NAME='lordsawar'
700 PACKAGE_TARNAME='lordsawar'
701 PACKAGE_VERSION='0.1.7-pre2'
702 PACKAGE_STRING='lordsawar 0.1.7-pre2'
703 PACKAGE_BUGREPORT='http://sv.nongnu.org/bugs/?group=lordsawar'
704 PACKAGE_URL=''
705
706 ac_unique_file="config.h.in"
707 # Factoring default headers for most tests.
708 ac_includes_default="\
709 #include <stdio.h>
710 #ifdef HAVE_SYS_TYPES_H
711 # include <sys/types.h>
712 #endif
713 #ifdef HAVE_SYS_STAT_H
714 # include <sys/stat.h>
715 #endif
716 #ifdef STDC_HEADERS
717 # include <stdlib.h>
718 # include <stddef.h>
719 #else
720 # ifdef HAVE_STDLIB_H
721 #  include <stdlib.h>
722 # endif
723 #endif
724 #ifdef HAVE_STRING_H
725 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
726 #  include <memory.h>
727 # endif
728 # include <string.h>
729 #endif
730 #ifdef HAVE_STRINGS_H
731 # include <strings.h>
732 #endif
733 #ifdef HAVE_INTTYPES_H
734 # include <inttypes.h>
735 #endif
736 #ifdef HAVE_STDINT_H
737 # include <stdint.h>
738 #endif
739 #ifdef HAVE_UNISTD_H
740 # include <unistd.h>
741 #endif"
742
743 gt_needs=
744 ac_subst_vars='am__EXEEXT_FALSE
745 am__EXEEXT_TRUE
746 LTLIBOBJS
747 LIBOBJS
748 LORDSAWAR_DATADIR
749 BOOST_CPPFLAGS
750 ZIP_FILES
751 SCREEN_RESOLUTION
752 WANT_PBM_FALSE
753 WANT_PBM_TRUE
754 WANT_EDITOR_FALSE
755 WANT_EDITOR_TRUE
756 HOME
757 LIBSIGC_LIBS
758 LIBSIGC_CFLAGS
759 LIBGNET_LIBS
760 LIBGNET_CFLAGS
761 GTKMM_LIBS
762 GTKMM_CFLAGS
763 GLIBMM_LIBS
764 GLIBMM_CFLAGS
765 PKG_CONFIG
766 LTLIBINTL
767 LIBINTL
768 LTLIBICONV
769 LIBICONV
770 INTL_MACOSX_LIBS
771 XGETTEXT_EXTRA_OPTIONS
772 XGETTEXT_015
773 GMSGFMT_015
774 MSGFMT_015
775 GETTEXT_MACRO_VERSION
776 FL_RESRC_FALSE
777 FL_RESRC_TRUE
778 SDLSOUND_LIBS
779 SDL_LIBS
780 SDL_CFLAGS
781 SDL_CONFIG
782 CXXCPP
783 OTOOL64
784 OTOOL
785 LIPO
786 NMEDIT
787 DSYMUTIL
788 lt_ECHO
789 RANLIB
790 AR
791 OBJDUMP
792 LN_S
793 NM
794 ac_ct_DUMPBIN
795 DUMPBIN
796 LD
797 FGREP
798 SED
799 LIBTOOL
800 am__fastdepCXX_FALSE
801 am__fastdepCXX_TRUE
802 CXXDEPMODE
803 ac_ct_CXX
804 CXXFLAGS
805 CXX
806 PROGRAMNAME_LOCALEDIR
807 MKINSTALLDIRS
808 POSUB
809 POFILES
810 PO_IN_DATADIR_FALSE
811 PO_IN_DATADIR_TRUE
812 INTLLIBS
813 INSTOBJEXT
814 GMOFILES
815 CATOBJEXT
816 CATALOGS
817 MSGFMT_OPTS
818 EGREP
819 GREP
820 CPP
821 GETTEXT_PACKAGE
822 DATADIRNAME
823 am__fastdepCC_FALSE
824 am__fastdepCC_TRUE
825 CCDEPMODE
826 AMDEPBACKSLASH
827 AMDEP_FALSE
828 AMDEP_TRUE
829 am__quote
830 am__include
831 DEPDIR
832 OBJEXT
833 EXEEXT
834 ac_ct_CC
835 CPPFLAGS
836 LDFLAGS
837 CFLAGS
838 CC
839 ALL_LINGUAS
840 INTLTOOL_PERL
841 GMSGFMT
842 MSGFMT
843 MSGMERGE
844 XGETTEXT
845 INTLTOOL_POLICY_RULE
846 INTLTOOL_SERVICE_RULE
847 INTLTOOL_THEME_RULE
848 INTLTOOL_SCHEMAS_RULE
849 INTLTOOL_CAVES_RULE
850 INTLTOOL_XML_NOMERGE_RULE
851 INTLTOOL_XML_RULE
852 INTLTOOL_KBD_RULE
853 INTLTOOL_XAM_RULE
854 INTLTOOL_UI_RULE
855 INTLTOOL_SOUNDLIST_RULE
856 INTLTOOL_SHEET_RULE
857 INTLTOOL_SERVER_RULE
858 INTLTOOL_PONG_RULE
859 INTLTOOL_OAF_RULE
860 INTLTOOL_PROP_RULE
861 INTLTOOL_KEYS_RULE
862 INTLTOOL_DIRECTORY_RULE
863 INTLTOOL_DESKTOP_RULE
864 INTLTOOL_EXTRACT
865 INTLTOOL_MERGE
866 INTLTOOL_UPDATE
867 USE_NLS
868 am__untar
869 am__tar
870 AMTAR
871 am__leading_dot
872 SET_MAKE
873 AWK
874 mkdir_p
875 MKDIR_P
876 INSTALL_STRIP_PROGRAM
877 STRIP
878 install_sh
879 MAKEINFO
880 AUTOHEADER
881 AUTOMAKE
882 AUTOCONF
883 ACLOCAL
884 VERSION
885 PACKAGE
886 CYGPATH_W
887 am__isrc
888 INSTALL_DATA
889 INSTALL_SCRIPT
890 INSTALL_PROGRAM
891 target_os
892 target_vendor
893 target_cpu
894 target
895 host_os
896 host_vendor
897 host_cpu
898 host
899 build_os
900 build_vendor
901 build_cpu
902 build
903 target_alias
904 host_alias
905 build_alias
906 LIBS
907 ECHO_T
908 ECHO_N
909 ECHO_C
910 DEFS
911 mandir
912 localedir
913 libdir
914 psdir
915 pdfdir
916 dvidir
917 htmldir
918 infodir
919 docdir
920 oldincludedir
921 includedir
922 localstatedir
923 sharedstatedir
924 sysconfdir
925 datadir
926 datarootdir
927 libexecdir
928 sbindir
929 bindir
930 program_transform_name
931 prefix
932 exec_prefix
933 PACKAGE_URL
934 PACKAGE_BUGREPORT
935 PACKAGE_STRING
936 PACKAGE_VERSION
937 PACKAGE_TARNAME
938 PACKAGE_NAME
939 PATH_SEPARATOR
940 SHELL'
941 ac_subst_files=''
942 ac_user_opts='
943 enable_option_checking
944 enable_nls
945 enable_dependency_tracking
946 enable_shared
947 enable_static
948 with_pic
949 enable_fast_install
950 with_gnu_ld
951 enable_libtool_lock
952 with_sdl_prefix
953 with_sdl_exec_prefix
954 enable_sdltest
955 enable_sound
956 with_expat
957 with_libtar
958 enable_winlibs
959 enable_rpath
960 with_libiconv_prefix
961 with_libintl_prefix
962 enable_editor
963 enable_pbm
964 with_resolution
965 enable_zipfiles
966 enable_optimizations
967 with_boost_includedir
968 '
969       ac_precious_vars='build_alias
970 host_alias
971 target_alias
972 CC
973 CFLAGS
974 LDFLAGS
975 LIBS
976 CPPFLAGS
977 CPP
978 CXX
979 CXXFLAGS
980 CCC
981 CXXCPP
982 PKG_CONFIG
983 GLIBMM_CFLAGS
984 GLIBMM_LIBS
985 GTKMM_CFLAGS
986 GTKMM_LIBS
987 LIBGNET_CFLAGS
988 LIBGNET_LIBS
989 LIBSIGC_CFLAGS
990 LIBSIGC_LIBS'
991
992
993 # Initialize some variables set by options.
994 ac_init_help=
995 ac_init_version=false
996 ac_unrecognized_opts=
997 ac_unrecognized_sep=
998 # The variables have the same names as the options, with
999 # dashes changed to underlines.
1000 cache_file=/dev/null
1001 exec_prefix=NONE
1002 no_create=
1003 no_recursion=
1004 prefix=NONE
1005 program_prefix=NONE
1006 program_suffix=NONE
1007 program_transform_name=s,x,x,
1008 silent=
1009 site=
1010 srcdir=
1011 verbose=
1012 x_includes=NONE
1013 x_libraries=NONE
1014
1015 # Installation directory options.
1016 # These are left unexpanded so users can "make install exec_prefix=/foo"
1017 # and all the variables that are supposed to be based on exec_prefix
1018 # by default will actually change.
1019 # Use braces instead of parens because sh, perl, etc. also accept them.
1020 # (The list follows the same order as the GNU Coding Standards.)
1021 bindir='${exec_prefix}/bin'
1022 sbindir='${exec_prefix}/sbin'
1023 libexecdir='${exec_prefix}/libexec'
1024 datarootdir='${prefix}/share'
1025 datadir='${datarootdir}'
1026 sysconfdir='${prefix}/etc'
1027 sharedstatedir='${prefix}/com'
1028 localstatedir='${prefix}/var'
1029 includedir='${prefix}/include'
1030 oldincludedir='/usr/include'
1031 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1032 infodir='${datarootdir}/info'
1033 htmldir='${docdir}'
1034 dvidir='${docdir}'
1035 pdfdir='${docdir}'
1036 psdir='${docdir}'
1037 libdir='${exec_prefix}/lib'
1038 localedir='${datarootdir}/locale'
1039 mandir='${datarootdir}/man'
1040
1041 ac_prev=
1042 ac_dashdash=
1043 for ac_option
1044 do
1045   # If the previous option needs an argument, assign it.
1046   if test -n "$ac_prev"; then
1047     eval $ac_prev=\$ac_option
1048     ac_prev=
1049     continue
1050   fi
1051
1052   case $ac_option in
1053   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1054   *)    ac_optarg=yes ;;
1055   esac
1056
1057   # Accept the important Cygnus configure options, so we can diagnose typos.
1058
1059   case $ac_dashdash$ac_option in
1060   --)
1061     ac_dashdash=yes ;;
1062
1063   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1064     ac_prev=bindir ;;
1065   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1066     bindir=$ac_optarg ;;
1067
1068   -build | --build | --buil | --bui | --bu)
1069     ac_prev=build_alias ;;
1070   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1071     build_alias=$ac_optarg ;;
1072
1073   -cache-file | --cache-file | --cache-fil | --cache-fi \
1074   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1075     ac_prev=cache_file ;;
1076   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1077   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1078     cache_file=$ac_optarg ;;
1079
1080   --config-cache | -C)
1081     cache_file=config.cache ;;
1082
1083   -datadir | --datadir | --datadi | --datad)
1084     ac_prev=datadir ;;
1085   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1086     datadir=$ac_optarg ;;
1087
1088   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1089   | --dataroo | --dataro | --datar)
1090     ac_prev=datarootdir ;;
1091   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1092   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1093     datarootdir=$ac_optarg ;;
1094
1095   -disable-* | --disable-*)
1096     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1097     # Reject names that are not valid shell variable names.
1098     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099       as_fn_error "invalid feature name: $ac_useropt"
1100     ac_useropt_orig=$ac_useropt
1101     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102     case $ac_user_opts in
1103       *"
1104 "enable_$ac_useropt"
1105 "*) ;;
1106       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1107          ac_unrecognized_sep=', ';;
1108     esac
1109     eval enable_$ac_useropt=no ;;
1110
1111   -docdir | --docdir | --docdi | --doc | --do)
1112     ac_prev=docdir ;;
1113   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1114     docdir=$ac_optarg ;;
1115
1116   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1117     ac_prev=dvidir ;;
1118   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1119     dvidir=$ac_optarg ;;
1120
1121   -enable-* | --enable-*)
1122     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1123     # Reject names that are not valid shell variable names.
1124     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125       as_fn_error "invalid feature name: $ac_useropt"
1126     ac_useropt_orig=$ac_useropt
1127     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128     case $ac_user_opts in
1129       *"
1130 "enable_$ac_useropt"
1131 "*) ;;
1132       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1133          ac_unrecognized_sep=', ';;
1134     esac
1135     eval enable_$ac_useropt=\$ac_optarg ;;
1136
1137   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1138   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1139   | --exec | --exe | --ex)
1140     ac_prev=exec_prefix ;;
1141   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1142   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1143   | --exec=* | --exe=* | --ex=*)
1144     exec_prefix=$ac_optarg ;;
1145
1146   -gas | --gas | --ga | --g)
1147     # Obsolete; use --with-gas.
1148     with_gas=yes ;;
1149
1150   -help | --help | --hel | --he | -h)
1151     ac_init_help=long ;;
1152   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1153     ac_init_help=recursive ;;
1154   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1155     ac_init_help=short ;;
1156
1157   -host | --host | --hos | --ho)
1158     ac_prev=host_alias ;;
1159   -host=* | --host=* | --hos=* | --ho=*)
1160     host_alias=$ac_optarg ;;
1161
1162   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1163     ac_prev=htmldir ;;
1164   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1165   | --ht=*)
1166     htmldir=$ac_optarg ;;
1167
1168   -includedir | --includedir | --includedi | --included | --include \
1169   | --includ | --inclu | --incl | --inc)
1170     ac_prev=includedir ;;
1171   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1172   | --includ=* | --inclu=* | --incl=* | --inc=*)
1173     includedir=$ac_optarg ;;
1174
1175   -infodir | --infodir | --infodi | --infod | --info | --inf)
1176     ac_prev=infodir ;;
1177   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1178     infodir=$ac_optarg ;;
1179
1180   -libdir | --libdir | --libdi | --libd)
1181     ac_prev=libdir ;;
1182   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1183     libdir=$ac_optarg ;;
1184
1185   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1186   | --libexe | --libex | --libe)
1187     ac_prev=libexecdir ;;
1188   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1189   | --libexe=* | --libex=* | --libe=*)
1190     libexecdir=$ac_optarg ;;
1191
1192   -localedir | --localedir | --localedi | --localed | --locale)
1193     ac_prev=localedir ;;
1194   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1195     localedir=$ac_optarg ;;
1196
1197   -localstatedir | --localstatedir | --localstatedi | --localstated \
1198   | --localstate | --localstat | --localsta | --localst | --locals)
1199     ac_prev=localstatedir ;;
1200   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1201   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1202     localstatedir=$ac_optarg ;;
1203
1204   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1205     ac_prev=mandir ;;
1206   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1207     mandir=$ac_optarg ;;
1208
1209   -nfp | --nfp | --nf)
1210     # Obsolete; use --without-fp.
1211     with_fp=no ;;
1212
1213   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1214   | --no-cr | --no-c | -n)
1215     no_create=yes ;;
1216
1217   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1218   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1219     no_recursion=yes ;;
1220
1221   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1222   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1223   | --oldin | --oldi | --old | --ol | --o)
1224     ac_prev=oldincludedir ;;
1225   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1226   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1227   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1228     oldincludedir=$ac_optarg ;;
1229
1230   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1231     ac_prev=prefix ;;
1232   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1233     prefix=$ac_optarg ;;
1234
1235   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1236   | --program-pre | --program-pr | --program-p)
1237     ac_prev=program_prefix ;;
1238   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1239   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1240     program_prefix=$ac_optarg ;;
1241
1242   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1243   | --program-suf | --program-su | --program-s)
1244     ac_prev=program_suffix ;;
1245   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1246   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1247     program_suffix=$ac_optarg ;;
1248
1249   -program-transform-name | --program-transform-name \
1250   | --program-transform-nam | --program-transform-na \
1251   | --program-transform-n | --program-transform- \
1252   | --program-transform | --program-transfor \
1253   | --program-transfo | --program-transf \
1254   | --program-trans | --program-tran \
1255   | --progr-tra | --program-tr | --program-t)
1256     ac_prev=program_transform_name ;;
1257   -program-transform-name=* | --program-transform-name=* \
1258   | --program-transform-nam=* | --program-transform-na=* \
1259   | --program-transform-n=* | --program-transform-=* \
1260   | --program-transform=* | --program-transfor=* \
1261   | --program-transfo=* | --program-transf=* \
1262   | --program-trans=* | --program-tran=* \
1263   | --progr-tra=* | --program-tr=* | --program-t=*)
1264     program_transform_name=$ac_optarg ;;
1265
1266   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1267     ac_prev=pdfdir ;;
1268   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1269     pdfdir=$ac_optarg ;;
1270
1271   -psdir | --psdir | --psdi | --psd | --ps)
1272     ac_prev=psdir ;;
1273   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1274     psdir=$ac_optarg ;;
1275
1276   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1277   | -silent | --silent | --silen | --sile | --sil)
1278     silent=yes ;;
1279
1280   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1281     ac_prev=sbindir ;;
1282   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1283   | --sbi=* | --sb=*)
1284     sbindir=$ac_optarg ;;
1285
1286   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1287   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1288   | --sharedst | --shareds | --shared | --share | --shar \
1289   | --sha | --sh)
1290     ac_prev=sharedstatedir ;;
1291   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1292   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1293   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1294   | --sha=* | --sh=*)
1295     sharedstatedir=$ac_optarg ;;
1296
1297   -site | --site | --sit)
1298     ac_prev=site ;;
1299   -site=* | --site=* | --sit=*)
1300     site=$ac_optarg ;;
1301
1302   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1303     ac_prev=srcdir ;;
1304   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1305     srcdir=$ac_optarg ;;
1306
1307   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1308   | --syscon | --sysco | --sysc | --sys | --sy)
1309     ac_prev=sysconfdir ;;
1310   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1311   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1312     sysconfdir=$ac_optarg ;;
1313
1314   -target | --target | --targe | --targ | --tar | --ta | --t)
1315     ac_prev=target_alias ;;
1316   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1317     target_alias=$ac_optarg ;;
1318
1319   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1320     verbose=yes ;;
1321
1322   -version | --version | --versio | --versi | --vers | -V)
1323     ac_init_version=: ;;
1324
1325   -with-* | --with-*)
1326     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1327     # Reject names that are not valid shell variable names.
1328     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1329       as_fn_error "invalid package name: $ac_useropt"
1330     ac_useropt_orig=$ac_useropt
1331     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1332     case $ac_user_opts in
1333       *"
1334 "with_$ac_useropt"
1335 "*) ;;
1336       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1337          ac_unrecognized_sep=', ';;
1338     esac
1339     eval with_$ac_useropt=\$ac_optarg ;;
1340
1341   -without-* | --without-*)
1342     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1343     # Reject names that are not valid shell variable names.
1344     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1345       as_fn_error "invalid package name: $ac_useropt"
1346     ac_useropt_orig=$ac_useropt
1347     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1348     case $ac_user_opts in
1349       *"
1350 "with_$ac_useropt"
1351 "*) ;;
1352       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1353          ac_unrecognized_sep=', ';;
1354     esac
1355     eval with_$ac_useropt=no ;;
1356
1357   --x)
1358     # Obsolete; use --with-x.
1359     with_x=yes ;;
1360
1361   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1362   | --x-incl | --x-inc | --x-in | --x-i)
1363     ac_prev=x_includes ;;
1364   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1365   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1366     x_includes=$ac_optarg ;;
1367
1368   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1369   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1370     ac_prev=x_libraries ;;
1371   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1372   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1373     x_libraries=$ac_optarg ;;
1374
1375   -*) as_fn_error "unrecognized option: \`$ac_option'
1376 Try \`$0 --help' for more information."
1377     ;;
1378
1379   *=*)
1380     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1381     # Reject names that are not valid shell variable names.
1382     case $ac_envvar in #(
1383       '' | [0-9]* | *[!_$as_cr_alnum]* )
1384       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1385     esac
1386     eval $ac_envvar=\$ac_optarg
1387     export $ac_envvar ;;
1388
1389   *)
1390     # FIXME: should be removed in autoconf 3.0.
1391     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1392     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1393       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1394     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1395     ;;
1396
1397   esac
1398 done
1399
1400 if test -n "$ac_prev"; then
1401   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1402   as_fn_error "missing argument to $ac_option"
1403 fi
1404
1405 if test -n "$ac_unrecognized_opts"; then
1406   case $enable_option_checking in
1407     no) ;;
1408     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1409     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1410   esac
1411 fi
1412
1413 # Check all directory arguments for consistency.
1414 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1415                 datadir sysconfdir sharedstatedir localstatedir includedir \
1416                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1417                 libdir localedir mandir
1418 do
1419   eval ac_val=\$$ac_var
1420   # Remove trailing slashes.
1421   case $ac_val in
1422     */ )
1423       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1424       eval $ac_var=\$ac_val;;
1425   esac
1426   # Be sure to have absolute directory names.
1427   case $ac_val in
1428     [\\/$]* | ?:[\\/]* )  continue;;
1429     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1430   esac
1431   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1432 done
1433
1434 # There might be people who depend on the old broken behavior: `$host'
1435 # used to hold the argument of --host etc.
1436 # FIXME: To remove some day.
1437 build=$build_alias
1438 host=$host_alias
1439 target=$target_alias
1440
1441 # FIXME: To remove some day.
1442 if test "x$host_alias" != x; then
1443   if test "x$build_alias" = x; then
1444     cross_compiling=maybe
1445     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1446     If a cross compiler is detected then cross compile mode will be used." >&2
1447   elif test "x$build_alias" != "x$host_alias"; then
1448     cross_compiling=yes
1449   fi
1450 fi
1451
1452 ac_tool_prefix=
1453 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1454
1455 test "$silent" = yes && exec 6>/dev/null
1456
1457
1458 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1459 ac_ls_di=`ls -di .` &&
1460 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1461   as_fn_error "working directory cannot be determined"
1462 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1463   as_fn_error "pwd does not report name of working directory"
1464
1465
1466 # Find the source files, if location was not specified.
1467 if test -z "$srcdir"; then
1468   ac_srcdir_defaulted=yes
1469   # Try the directory containing this script, then the parent directory.
1470   ac_confdir=`$as_dirname -- "$as_myself" ||
1471 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1472          X"$as_myself" : 'X\(//\)[^/]' \| \
1473          X"$as_myself" : 'X\(//\)$' \| \
1474          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1475 $as_echo X"$as_myself" |
1476     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1477             s//\1/
1478             q
1479           }
1480           /^X\(\/\/\)[^/].*/{
1481             s//\1/
1482             q
1483           }
1484           /^X\(\/\/\)$/{
1485             s//\1/
1486             q
1487           }
1488           /^X\(\/\).*/{
1489             s//\1/
1490             q
1491           }
1492           s/.*/./; q'`
1493   srcdir=$ac_confdir
1494   if test ! -r "$srcdir/$ac_unique_file"; then
1495     srcdir=..
1496   fi
1497 else
1498   ac_srcdir_defaulted=no
1499 fi
1500 if test ! -r "$srcdir/$ac_unique_file"; then
1501   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1502   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1503 fi
1504 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1505 ac_abs_confdir=`(
1506         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1507         pwd)`
1508 # When building in place, set srcdir=.
1509 if test "$ac_abs_confdir" = "$ac_pwd"; then
1510   srcdir=.
1511 fi
1512 # Remove unnecessary trailing slashes from srcdir.
1513 # Double slashes in file names in object file debugging info
1514 # mess up M-x gdb in Emacs.
1515 case $srcdir in
1516 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1517 esac
1518 for ac_var in $ac_precious_vars; do
1519   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1520   eval ac_env_${ac_var}_value=\$${ac_var}
1521   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1522   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1523 done
1524
1525 #
1526 # Report the --help message.
1527 #
1528 if test "$ac_init_help" = "long"; then
1529   # Omit some internal or obsolete options to make the list less imposing.
1530   # This message is too long to be a string in the A/UX 3.1 sh.
1531   cat <<_ACEOF
1532 \`configure' configures lordsawar 0.1.7-pre2 to adapt to many kinds of systems.
1533
1534 Usage: $0 [OPTION]... [VAR=VALUE]...
1535
1536 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1537 VAR=VALUE.  See below for descriptions of some of the useful variables.
1538
1539 Defaults for the options are specified in brackets.
1540
1541 Configuration:
1542   -h, --help              display this help and exit
1543       --help=short        display options specific to this package
1544       --help=recursive    display the short help of all the included packages
1545   -V, --version           display version information and exit
1546   -q, --quiet, --silent   do not print \`checking...' messages
1547       --cache-file=FILE   cache test results in FILE [disabled]
1548   -C, --config-cache      alias for \`--cache-file=config.cache'
1549   -n, --no-create         do not create output files
1550       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1551
1552 Installation directories:
1553   --prefix=PREFIX         install architecture-independent files in PREFIX
1554                           [$ac_default_prefix]
1555   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1556                           [PREFIX]
1557
1558 By default, \`make install' will install all the files in
1559 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1560 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1561 for instance \`--prefix=\$HOME'.
1562
1563 For better control, use the options below.
1564
1565 Fine tuning of the installation directories:
1566   --bindir=DIR            user executables [EPREFIX/bin]
1567   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1568   --libexecdir=DIR        program executables [EPREFIX/libexec]
1569   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1570   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1571   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1572   --libdir=DIR            object code libraries [EPREFIX/lib]
1573   --includedir=DIR        C header files [PREFIX/include]
1574   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1575   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1576   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1577   --infodir=DIR           info documentation [DATAROOTDIR/info]
1578   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1579   --mandir=DIR            man documentation [DATAROOTDIR/man]
1580   --docdir=DIR            documentation root [DATAROOTDIR/doc/lordsawar]
1581   --htmldir=DIR           html documentation [DOCDIR]
1582   --dvidir=DIR            dvi documentation [DOCDIR]
1583   --pdfdir=DIR            pdf documentation [DOCDIR]
1584   --psdir=DIR             ps documentation [DOCDIR]
1585 _ACEOF
1586
1587   cat <<\_ACEOF
1588
1589 Program names:
1590   --program-prefix=PREFIX            prepend PREFIX to installed program names
1591   --program-suffix=SUFFIX            append SUFFIX to installed program names
1592   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1593
1594 System types:
1595   --build=BUILD     configure for building on BUILD [guessed]
1596   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1597   --target=TARGET   configure for building compilers for TARGET [HOST]
1598 _ACEOF
1599 fi
1600
1601 if test -n "$ac_init_help"; then
1602   case $ac_init_help in
1603      short | recursive ) echo "Configuration of lordsawar 0.1.7-pre2:";;
1604    esac
1605   cat <<\_ACEOF
1606
1607 Optional Features:
1608   --disable-option-checking  ignore unrecognized --enable/--with options
1609   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1610   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1611   --disable-nls           do not use Native Language Support
1612   --disable-dependency-tracking  speeds up one-time build
1613   --enable-dependency-tracking   do not reject slow dependency extractors
1614   --enable-shared[=PKGS]  build shared libraries [default=yes]
1615   --enable-static[=PKGS]  build static libraries [default=yes]
1616   --enable-fast-install[=PKGS]
1617                           optimize for fast installation [default=yes]
1618   --disable-libtool-lock  avoid locking (might break parallel builds)
1619   --disable-sdltest       Do not try to compile and run a test SDL program
1620   --enable-sound         Enable or disable sound usage (default on)
1621   --enable-winlibs         enable windows cross-compiling libs
1622   --disable-rpath         do not hardcode runtime library paths
1623   --enable-editor  compile editor (default=yes)
1624   --enable-pbm     compile play-by-mail (default=yes)
1625   --enable-zipping    zip save files (experimental) default=no
1626   --enable-optimizations    enable compiler optimizations (disable for debugging) default=yes
1627
1628 Optional Packages:
1629   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1630   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1631   --with-pic              try to use only PIC/non-PIC objects [default=use
1632                           both]
1633   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1634   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1635   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1636   --with-expat=<dir>      Use expat from here
1637   --with-libtar=<dir>      Use libtar from here
1638   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1639   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1640   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1641   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1642   --without-libintl-prefix     don't search for libintl in includedir and libdir
1643   --with-resolution=RES standard resolution for lordsawar default=800x600
1644   --with-boost-includedir=DIR
1645                           Use Boost library installed at specified path
1646                           (default /usr/include)
1647
1648 Some influential environment variables:
1649   CC          C compiler command
1650   CFLAGS      C compiler flags
1651   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1652               nonstandard directory <lib dir>
1653   LIBS        libraries to pass to the linker, e.g. -l<library>
1654   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1655               you have headers in a nonstandard directory <include dir>
1656   CPP         C preprocessor
1657   CXX         C++ compiler command
1658   CXXFLAGS    C++ compiler flags
1659   CXXCPP      C++ preprocessor
1660   PKG_CONFIG  path to pkg-config utility
1661   GLIBMM_CFLAGS
1662               C compiler flags for GLIBMM, overriding pkg-config
1663   GLIBMM_LIBS linker flags for GLIBMM, overriding pkg-config
1664   GTKMM_CFLAGS
1665               C compiler flags for GTKMM, overriding pkg-config
1666   GTKMM_LIBS  linker flags for GTKMM, overriding pkg-config
1667   LIBGNET_CFLAGS
1668               C compiler flags for LIBGNET, overriding pkg-config
1669   LIBGNET_LIBS
1670               linker flags for LIBGNET, overriding pkg-config
1671   LIBSIGC_CFLAGS
1672               C compiler flags for LIBSIGC, overriding pkg-config
1673   LIBSIGC_LIBS
1674               linker flags for LIBSIGC, overriding pkg-config
1675
1676 Use these variables to override the choices made by `configure' or to help
1677 it to find libraries and programs with nonstandard names/locations.
1678
1679 Report bugs to <http://sv.nongnu.org/bugs/?group=lordsawar>.
1680 _ACEOF
1681 ac_status=$?
1682 fi
1683
1684 if test "$ac_init_help" = "recursive"; then
1685   # If there are subdirs, report their specific --help.
1686   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1687     test -d "$ac_dir" ||
1688       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1689       continue
1690     ac_builddir=.
1691
1692 case "$ac_dir" in
1693 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1694 *)
1695   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1696   # A ".." for each directory in $ac_dir_suffix.
1697   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1698   case $ac_top_builddir_sub in
1699   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1700   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1701   esac ;;
1702 esac
1703 ac_abs_top_builddir=$ac_pwd
1704 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1705 # for backward compatibility:
1706 ac_top_builddir=$ac_top_build_prefix
1707
1708 case $srcdir in
1709   .)  # We are building in place.
1710     ac_srcdir=.
1711     ac_top_srcdir=$ac_top_builddir_sub
1712     ac_abs_top_srcdir=$ac_pwd ;;
1713   [\\/]* | ?:[\\/]* )  # Absolute name.
1714     ac_srcdir=$srcdir$ac_dir_suffix;
1715     ac_top_srcdir=$srcdir
1716     ac_abs_top_srcdir=$srcdir ;;
1717   *) # Relative name.
1718     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1719     ac_top_srcdir=$ac_top_build_prefix$srcdir
1720     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1721 esac
1722 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1723
1724     cd "$ac_dir" || { ac_status=$?; continue; }
1725     # Check for guested configure.
1726     if test -f "$ac_srcdir/configure.gnu"; then
1727       echo &&
1728       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1729     elif test -f "$ac_srcdir/configure"; then
1730       echo &&
1731       $SHELL "$ac_srcdir/configure" --help=recursive
1732     else
1733       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1734     fi || ac_status=$?
1735     cd "$ac_pwd" || { ac_status=$?; break; }
1736   done
1737 fi
1738
1739 test -n "$ac_init_help" && exit $ac_status
1740 if $ac_init_version; then
1741   cat <<\_ACEOF
1742 lordsawar configure 0.1.7-pre2
1743 generated by GNU Autoconf 2.64
1744
1745 Copyright (C) 2009 Free Software Foundation, Inc.
1746 This configure script is free software; the Free Software Foundation
1747 gives unlimited permission to copy, distribute and modify it.
1748 _ACEOF
1749   exit
1750 fi
1751
1752 ## ------------------------ ##
1753 ## Autoconf initialization. ##
1754 ## ------------------------ ##
1755
1756 # ac_fn_c_try_compile LINENO
1757 # --------------------------
1758 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1759 ac_fn_c_try_compile ()
1760 {
1761   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762   rm -f conftest.$ac_objext
1763   if { { ac_try="$ac_compile"
1764 case "(($ac_try" in
1765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766   *) ac_try_echo=$ac_try;;
1767 esac
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770   (eval "$ac_compile") 2>conftest.err
1771   ac_status=$?
1772   if test -s conftest.err; then
1773     grep -v '^ *+' conftest.err >conftest.er1
1774     cat conftest.er1 >&5
1775     mv -f conftest.er1 conftest.err
1776   fi
1777   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778   test $ac_status = 0; } && {
1779          test -z "$ac_c_werror_flag" ||
1780          test ! -s conftest.err
1781        } && test -s conftest.$ac_objext; then :
1782   ac_retval=0
1783 else
1784   $as_echo "$as_me: failed program was:" >&5
1785 sed 's/^/| /' conftest.$ac_ext >&5
1786
1787         ac_retval=1
1788 fi
1789   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1790   return $ac_retval
1791
1792 } # ac_fn_c_try_compile
1793
1794 # ac_fn_c_try_link LINENO
1795 # -----------------------
1796 # Try to link conftest.$ac_ext, and return whether this succeeded.
1797 ac_fn_c_try_link ()
1798 {
1799   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800   rm -f conftest.$ac_objext conftest$ac_exeext
1801   if { { ac_try="$ac_link"
1802 case "(($ac_try" in
1803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804   *) ac_try_echo=$ac_try;;
1805 esac
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 $as_echo "$ac_try_echo"; } >&5
1808   (eval "$ac_link") 2>conftest.err
1809   ac_status=$?
1810   if test -s conftest.err; then
1811     grep -v '^ *+' conftest.err >conftest.er1
1812     cat conftest.er1 >&5
1813     mv -f conftest.er1 conftest.err
1814   fi
1815   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816   test $ac_status = 0; } && {
1817          test -z "$ac_c_werror_flag" ||
1818          test ! -s conftest.err
1819        } && test -s conftest$ac_exeext && {
1820          test "$cross_compiling" = yes ||
1821          $as_test_x conftest$ac_exeext
1822        }; then :
1823   ac_retval=0
1824 else
1825   $as_echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1827
1828         ac_retval=1
1829 fi
1830   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1831   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1832   # interfere with the next link command; also delete a directory that is
1833   # left behind by Apple's compiler.  We do this before executing the actions.
1834   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1835   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1836   return $ac_retval
1837
1838 } # ac_fn_c_try_link
1839
1840 # ac_fn_c_check_func LINENO FUNC VAR
1841 # ----------------------------------
1842 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1843 ac_fn_c_check_func ()
1844 {
1845   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847 $as_echo_n "checking for $2... " >&6; }
1848 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1849   $as_echo_n "(cached) " >&6
1850 else
1851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h.  */
1853 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1854    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1855 #define $2 innocuous_$2
1856
1857 /* System header to define __stub macros and hopefully few prototypes,
1858     which can conflict with char $2 (); below.
1859     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1860     <limits.h> exists even on freestanding compilers.  */
1861
1862 #ifdef __STDC__
1863 # include <limits.h>
1864 #else
1865 # include <assert.h>
1866 #endif
1867
1868 #undef $2
1869
1870 /* Override any GCC internal prototype to avoid an error.
1871    Use char because int might match the return type of a GCC
1872    builtin and then its argument prototype would still apply.  */
1873 #ifdef __cplusplus
1874 extern "C"
1875 #endif
1876 char $2 ();
1877 /* The GNU C library defines this for functions which it implements
1878     to always fail with ENOSYS.  Some functions are actually named
1879     something starting with __ and the normal name is an alias.  */
1880 #if defined __stub_$2 || defined __stub___$2
1881 choke me
1882 #endif
1883
1884 int
1885 main ()
1886 {
1887 return $2 ();
1888   ;
1889   return 0;
1890 }
1891 _ACEOF
1892 if ac_fn_c_try_link "$LINENO"; then :
1893   eval "$3=yes"
1894 else
1895   eval "$3=no"
1896 fi
1897 rm -f core conftest.err conftest.$ac_objext \
1898     conftest$ac_exeext conftest.$ac_ext
1899 fi
1900 eval ac_res=\$$3
1901                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1903   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1904
1905 } # ac_fn_c_check_func
1906
1907 # ac_fn_c_try_cpp LINENO
1908 # ----------------------
1909 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1910 ac_fn_c_try_cpp ()
1911 {
1912   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913   if { { ac_try="$ac_cpp conftest.$ac_ext"
1914 case "(($ac_try" in
1915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1916   *) ac_try_echo=$ac_try;;
1917 esac
1918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1919 $as_echo "$ac_try_echo"; } >&5
1920   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1921   ac_status=$?
1922   if test -s conftest.err; then
1923     grep -v '^ *+' conftest.err >conftest.er1
1924     cat conftest.er1 >&5
1925     mv -f conftest.er1 conftest.err
1926   fi
1927   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1928   test $ac_status = 0; } >/dev/null && {
1929          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1930          test ! -s conftest.err
1931        }; then :
1932   ac_retval=0
1933 else
1934   $as_echo "$as_me: failed program was:" >&5
1935 sed 's/^/| /' conftest.$ac_ext >&5
1936
1937     ac_retval=1
1938 fi
1939   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1940   return $ac_retval
1941
1942 } # ac_fn_c_try_cpp
1943
1944 # ac_fn_c_try_run LINENO
1945 # ----------------------
1946 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1947 # that executables *can* be run.
1948 ac_fn_c_try_run ()
1949 {
1950   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951   if { { ac_try="$ac_link"
1952 case "(($ac_try" in
1953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1954   *) ac_try_echo=$ac_try;;
1955 esac
1956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1957 $as_echo "$ac_try_echo"; } >&5
1958   (eval "$ac_link") 2>&5
1959   ac_status=$?
1960   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1961   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1962   { { case "(($ac_try" in
1963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1964   *) ac_try_echo=$ac_try;;
1965 esac
1966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1967 $as_echo "$ac_try_echo"; } >&5
1968   (eval "$ac_try") 2>&5
1969   ac_status=$?
1970   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1971   test $ac_status = 0; }; }; then :
1972   ac_retval=0
1973 else
1974   $as_echo "$as_me: program exited with status $ac_status" >&5
1975        $as_echo "$as_me: failed program was:" >&5
1976 sed 's/^/| /' conftest.$ac_ext >&5
1977
1978        ac_retval=$ac_status
1979 fi
1980   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1981   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1982   return $ac_retval
1983
1984 } # ac_fn_c_try_run
1985
1986 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1987 # -------------------------------------------------------
1988 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1989 # the include files in INCLUDES and setting the cache variable VAR
1990 # accordingly.
1991 ac_fn_c_check_header_mongrel ()
1992 {
1993   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1995   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1996 $as_echo_n "checking for $2... " >&6; }
1997 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1998   $as_echo_n "(cached) " >&6
1999 fi
2000 eval ac_res=\$$3
2001                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002 $as_echo "$ac_res" >&6; }
2003 else
2004   # Is the header compilable?
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2006 $as_echo_n "checking $2 usability... " >&6; }
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h.  */
2009 $4
2010 #include <$2>
2011 _ACEOF
2012 if ac_fn_c_try_compile "$LINENO"; then :
2013   ac_header_compiler=yes
2014 else
2015   ac_header_compiler=no
2016 fi
2017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2019 $as_echo "$ac_header_compiler" >&6; }
2020
2021 # Is the header present?
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2023 $as_echo_n "checking $2 presence... " >&6; }
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h.  */
2026 #include <$2>
2027 _ACEOF
2028 if ac_fn_c_try_cpp "$LINENO"; then :
2029   ac_header_preproc=yes
2030 else
2031   ac_header_preproc=no
2032 fi
2033 rm -f conftest.err conftest.$ac_ext
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2035 $as_echo "$ac_header_preproc" >&6; }
2036
2037 # So?  What about this header?
2038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2039   yes:no: )
2040     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2041 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2042     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2043 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2044     ;;
2045   no:yes:* )
2046     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2047 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2048     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2049 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2050     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2051 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2052     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2053 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2054     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2055 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2056 ( cat <<\_ASBOX
2057 ## --------------------------------------------------------- ##
2058 ## Report this to http://sv.nongnu.org/bugs/?group=lordsawar ##
2059 ## --------------------------------------------------------- ##
2060 _ASBOX
2061      ) | sed "s/^/$as_me: WARNING:     /" >&2
2062     ;;
2063 esac
2064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2065 $as_echo_n "checking for $2... " >&6; }
2066 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2067   $as_echo_n "(cached) " >&6
2068 else
2069   eval "$3=\$ac_header_compiler"
2070 fi
2071 eval ac_res=\$$3
2072                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2073 $as_echo "$ac_res" >&6; }
2074 fi
2075   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2076
2077 } # ac_fn_c_check_header_mongrel
2078
2079 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2080 # -------------------------------------------------------
2081 # Tests whether HEADER exists and can be compiled using the include files in
2082 # INCLUDES, setting the cache variable VAR accordingly.
2083 ac_fn_c_check_header_compile ()
2084 {
2085   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2087 $as_echo_n "checking for $2... " >&6; }
2088 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2089   $as_echo_n "(cached) " >&6
2090 else
2091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h.  */
2093 $4
2094 #include <$2>
2095 _ACEOF
2096 if ac_fn_c_try_compile "$LINENO"; then :
2097   eval "$3=yes"
2098 else
2099   eval "$3=no"
2100 fi
2101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102 fi
2103 eval ac_res=\$$3
2104                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2105 $as_echo "$ac_res" >&6; }
2106   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2107
2108 } # ac_fn_c_check_header_compile
2109
2110 # ac_fn_cxx_try_compile LINENO
2111 # ----------------------------
2112 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2113 ac_fn_cxx_try_compile ()
2114 {
2115   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116   rm -f conftest.$ac_objext
2117   if { { ac_try="$ac_compile"
2118 case "(($ac_try" in
2119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2120   *) ac_try_echo=$ac_try;;
2121 esac
2122 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2123 $as_echo "$ac_try_echo"; } >&5
2124   (eval "$ac_compile") 2>conftest.err
2125   ac_status=$?
2126   if test -s conftest.err; then
2127     grep -v '^ *+' conftest.err >conftest.er1
2128     cat conftest.er1 >&5
2129     mv -f conftest.er1 conftest.err
2130   fi
2131   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2132   test $ac_status = 0; } && {
2133          test -z "$ac_cxx_werror_flag" ||
2134          test ! -s conftest.err
2135        } && test -s conftest.$ac_objext; then :
2136   ac_retval=0
2137 else
2138   $as_echo "$as_me: failed program was:" >&5
2139 sed 's/^/| /' conftest.$ac_ext >&5
2140
2141         ac_retval=1
2142 fi
2143   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2144   return $ac_retval
2145
2146 } # ac_fn_cxx_try_compile
2147
2148 # ac_fn_cxx_try_cpp LINENO
2149 # ------------------------
2150 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2151 ac_fn_cxx_try_cpp ()
2152 {
2153   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2154   if { { ac_try="$ac_cpp conftest.$ac_ext"
2155 case "(($ac_try" in
2156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2157   *) ac_try_echo=$ac_try;;
2158 esac
2159 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2160 $as_echo "$ac_try_echo"; } >&5
2161   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2162   ac_status=$?
2163   if test -s conftest.err; then
2164     grep -v '^ *+' conftest.err >conftest.er1
2165     cat conftest.er1 >&5
2166     mv -f conftest.er1 conftest.err
2167   fi
2168   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2169   test $ac_status = 0; } >/dev/null && {
2170          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2171          test ! -s conftest.err
2172        }; then :
2173   ac_retval=0
2174 else
2175   $as_echo "$as_me: failed program was:" >&5
2176 sed 's/^/| /' conftest.$ac_ext >&5
2177
2178     ac_retval=1
2179 fi
2180   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2181   return $ac_retval
2182
2183 } # ac_fn_cxx_try_cpp
2184
2185 # ac_fn_cxx_try_link LINENO
2186 # -------------------------
2187 # Try to link conftest.$ac_ext, and return whether this succeeded.
2188 ac_fn_cxx_try_link ()
2189 {
2190   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2191   rm -f conftest.$ac_objext conftest$ac_exeext
2192   if { { ac_try="$ac_link"
2193 case "(($ac_try" in
2194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2195   *) ac_try_echo=$ac_try;;
2196 esac
2197 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2198 $as_echo "$ac_try_echo"; } >&5
2199   (eval "$ac_link") 2>conftest.err
2200   ac_status=$?
2201   if test -s conftest.err; then
2202     grep -v '^ *+' conftest.err >conftest.er1
2203     cat conftest.er1 >&5
2204     mv -f conftest.er1 conftest.err
2205   fi
2206   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2207   test $ac_status = 0; } && {
2208          test -z "$ac_cxx_werror_flag" ||
2209          test ! -s conftest.err
2210        } && test -s conftest$ac_exeext && {
2211          test "$cross_compiling" = yes ||
2212          $as_test_x conftest$ac_exeext
2213        }; then :
2214   ac_retval=0
2215 else
2216   $as_echo "$as_me: failed program was:" >&5
2217 sed 's/^/| /' conftest.$ac_ext >&5
2218
2219         ac_retval=1
2220 fi
2221   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2222   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2223   # interfere with the next link command; also delete a directory that is
2224   # left behind by Apple's compiler.  We do this before executing the actions.
2225   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2226   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2227   return $ac_retval
2228
2229 } # ac_fn_cxx_try_link
2230
2231 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2232 # ---------------------------------------------------------
2233 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2234 # the include files in INCLUDES and setting the cache variable VAR
2235 # accordingly.
2236 ac_fn_cxx_check_header_mongrel ()
2237 {
2238   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2239   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2240   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2241 $as_echo_n "checking for $2... " >&6; }
2242 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2243   $as_echo_n "(cached) " >&6
2244 fi
2245 eval ac_res=\$$3
2246                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2247 $as_echo "$ac_res" >&6; }
2248 else
2249   # Is the header compilable?
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2251 $as_echo_n "checking $2 usability... " >&6; }
2252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h.  */
2254 $4
2255 #include <$2>
2256 _ACEOF
2257 if ac_fn_cxx_try_compile "$LINENO"; then :
2258   ac_header_compiler=yes
2259 else
2260   ac_header_compiler=no
2261 fi
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2264 $as_echo "$ac_header_compiler" >&6; }
2265
2266 # Is the header present?
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2268 $as_echo_n "checking $2 presence... " >&6; }
2269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270 /* end confdefs.h.  */
2271 #include <$2>
2272 _ACEOF
2273 if ac_fn_cxx_try_cpp "$LINENO"; then :
2274   ac_header_preproc=yes
2275 else
2276   ac_header_preproc=no
2277 fi
2278 rm -f conftest.err conftest.$ac_ext
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2280 $as_echo "$ac_header_preproc" >&6; }
2281
2282 # So?  What about this header?
2283 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2284   yes:no: )
2285     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2286 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2287     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2288 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2289     ;;
2290   no:yes:* )
2291     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2292 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2293     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2294 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2295     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2296 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2297     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2298 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2299     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2300 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2301 ( cat <<\_ASBOX
2302 ## --------------------------------------------------------- ##
2303 ## Report this to http://sv.nongnu.org/bugs/?group=lordsawar ##
2304 ## --------------------------------------------------------- ##
2305 _ASBOX
2306      ) | sed "s/^/$as_me: WARNING:     /" >&2
2307     ;;
2308 esac
2309   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2310 $as_echo_n "checking for $2... " >&6; }
2311 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2312   $as_echo_n "(cached) " >&6
2313 else
2314   eval "$3=\$ac_header_compiler"
2315 fi
2316 eval ac_res=\$$3
2317                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2318 $as_echo "$ac_res" >&6; }
2319 fi
2320   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2321
2322 } # ac_fn_cxx_check_header_mongrel
2323 cat >config.log <<_ACEOF
2324 This file contains any messages produced by compilers while
2325 running configure, to aid debugging if configure makes a mistake.
2326
2327 It was created by lordsawar $as_me 0.1.7-pre2, which was
2328 generated by GNU Autoconf 2.64.  Invocation command line was
2329
2330   $ $0 $@
2331
2332 _ACEOF
2333 exec 5>>config.log
2334 {
2335 cat <<_ASUNAME
2336 ## --------- ##
2337 ## Platform. ##
2338 ## --------- ##
2339
2340 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2341 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2342 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2343 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2344 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2345
2346 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2347 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2348
2349 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2350 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2351 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2352 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2353 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2354 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2355 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2356
2357 _ASUNAME
2358
2359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360 for as_dir in $PATH
2361 do
2362   IFS=$as_save_IFS
2363   test -z "$as_dir" && as_dir=.
2364     $as_echo "PATH: $as_dir"
2365   done
2366 IFS=$as_save_IFS
2367
2368 } >&5
2369
2370 cat >&5 <<_ACEOF
2371
2372
2373 ## ----------- ##
2374 ## Core tests. ##
2375 ## ----------- ##
2376
2377 _ACEOF
2378
2379
2380 # Keep a trace of the command line.
2381 # Strip out --no-create and --no-recursion so they do not pile up.
2382 # Strip out --silent because we don't want to record it for future runs.
2383 # Also quote any args containing shell meta-characters.
2384 # Make two passes to allow for proper duplicate-argument suppression.
2385 ac_configure_args=
2386 ac_configure_args0=
2387 ac_configure_args1=
2388 ac_must_keep_next=false
2389 for ac_pass in 1 2
2390 do
2391   for ac_arg
2392   do
2393     case $ac_arg in
2394     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2395     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2396     | -silent | --silent | --silen | --sile | --sil)
2397       continue ;;
2398     *\'*)
2399       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2400     esac
2401     case $ac_pass in
2402     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2403     2)
2404       as_fn_append ac_configure_args1 " '$ac_arg'"
2405       if test $ac_must_keep_next = true; then
2406         ac_must_keep_next=false # Got value, back to normal.
2407       else
2408         case $ac_arg in
2409           *=* | --config-cache | -C | -disable-* | --disable-* \
2410           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2411           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2412           | -with-* | --with-* | -without-* | --without-* | --x)
2413             case "$ac_configure_args0 " in
2414               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2415             esac
2416             ;;
2417           -* ) ac_must_keep_next=true ;;
2418         esac
2419       fi
2420       as_fn_append ac_configure_args " '$ac_arg'"
2421       ;;
2422     esac
2423   done
2424 done
2425 { ac_configure_args0=; unset ac_configure_args0;}
2426 { ac_configure_args1=; unset ac_configure_args1;}
2427
2428 # When interrupted or exit'd, cleanup temporary files, and complete
2429 # config.log.  We remove comments because anyway the quotes in there
2430 # would cause problems or look ugly.
2431 # WARNING: Use '\'' to represent an apostrophe within the trap.
2432 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2433 trap 'exit_status=$?
2434   # Save into config.log some information that might help in debugging.
2435   {
2436     echo
2437
2438     cat <<\_ASBOX
2439 ## ---------------- ##
2440 ## Cache variables. ##
2441 ## ---------------- ##
2442 _ASBOX
2443     echo
2444     # The following way of writing the cache mishandles newlines in values,
2445 (
2446   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2447     eval ac_val=\$$ac_var
2448     case $ac_val in #(
2449     *${as_nl}*)
2450       case $ac_var in #(
2451       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2452 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2453       esac
2454       case $ac_var in #(
2455       _ | IFS | as_nl) ;; #(
2456       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2457       *) { eval $ac_var=; unset $ac_var;} ;;
2458       esac ;;
2459     esac
2460   done
2461   (set) 2>&1 |
2462     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2463     *${as_nl}ac_space=\ *)
2464       sed -n \
2465         "s/'\''/'\''\\\\'\'''\''/g;
2466           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2467       ;; #(
2468     *)
2469       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2470       ;;
2471     esac |
2472     sort
2473 )
2474     echo
2475
2476     cat <<\_ASBOX
2477 ## ----------------- ##
2478 ## Output variables. ##
2479 ## ----------------- ##
2480 _ASBOX
2481     echo
2482     for ac_var in $ac_subst_vars
2483     do
2484       eval ac_val=\$$ac_var
2485       case $ac_val in
2486       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2487       esac
2488       $as_echo "$ac_var='\''$ac_val'\''"
2489     done | sort
2490     echo
2491
2492     if test -n "$ac_subst_files"; then
2493       cat <<\_ASBOX
2494 ## ------------------- ##
2495 ## File substitutions. ##
2496 ## ------------------- ##
2497 _ASBOX
2498       echo
2499       for ac_var in $ac_subst_files
2500       do
2501         eval ac_val=\$$ac_var
2502         case $ac_val in
2503         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2504         esac
2505         $as_echo "$ac_var='\''$ac_val'\''"
2506       done | sort
2507       echo
2508     fi
2509
2510     if test -s confdefs.h; then
2511       cat <<\_ASBOX
2512 ## ----------- ##
2513 ## confdefs.h. ##
2514 ## ----------- ##
2515 _ASBOX
2516       echo
2517       cat confdefs.h
2518       echo
2519     fi
2520     test "$ac_signal" != 0 &&
2521       $as_echo "$as_me: caught signal $ac_signal"
2522     $as_echo "$as_me: exit $exit_status"
2523   } >&5
2524   rm -f core *.core core.conftest.* &&
2525     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2526     exit $exit_status
2527 ' 0
2528 for ac_signal in 1 2 13 15; do
2529   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2530 done
2531 ac_signal=0
2532
2533 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2534 rm -f -r conftest* confdefs.h
2535
2536 $as_echo "/* confdefs.h */" > confdefs.h
2537
2538 # Predefined preprocessor variables.
2539
2540 cat >>confdefs.h <<_ACEOF
2541 #define PACKAGE_NAME "$PACKAGE_NAME"
2542 _ACEOF
2543
2544 cat >>confdefs.h <<_ACEOF
2545 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2546 _ACEOF
2547
2548 cat >>confdefs.h <<_ACEOF
2549 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2550 _ACEOF
2551
2552 cat >>confdefs.h <<_ACEOF
2553 #define PACKAGE_STRING "$PACKAGE_STRING"
2554 _ACEOF
2555
2556 cat >>confdefs.h <<_ACEOF
2557 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2558 _ACEOF
2559
2560 cat >>confdefs.h <<_ACEOF
2561 #define PACKAGE_URL "$PACKAGE_URL"
2562 _ACEOF
2563
2564
2565 # Let the site file select an alternate cache file if it wants to.
2566 # Prefer an explicitly selected file to automatically selected ones.
2567 ac_site_file1=NONE
2568 ac_site_file2=NONE
2569 if test -n "$CONFIG_SITE"; then
2570   ac_site_file1=$CONFIG_SITE
2571 elif test "x$prefix" != xNONE; then
2572   ac_site_file1=$prefix/share/config.site
2573   ac_site_file2=$prefix/etc/config.site
2574 else
2575   ac_site_file1=$ac_default_prefix/share/config.site
2576   ac_site_file2=$ac_default_prefix/etc/config.site
2577 fi
2578 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2579 do
2580   test "x$ac_site_file" = xNONE && continue
2581   if test -r "$ac_site_file"; then
2582     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2583 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2584     sed 's/^/| /' "$ac_site_file" >&5
2585     . "$ac_site_file"
2586   fi
2587 done
2588
2589 if test -r "$cache_file"; then
2590   # Some versions of bash will fail to source /dev/null (special
2591   # files actually), so we avoid doing that.
2592   if test -f "$cache_file"; then
2593     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2594 $as_echo "$as_me: loading cache $cache_file" >&6;}
2595     case $cache_file in
2596       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2597       *)                      . "./$cache_file";;
2598     esac
2599   fi
2600 else
2601   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2602 $as_echo "$as_me: creating cache $cache_file" >&6;}
2603   >$cache_file
2604 fi
2605
2606 gt_needs="$gt_needs "
2607 # Check that the precious variables saved in the cache have kept the same
2608 # value.
2609 ac_cache_corrupted=false
2610 for ac_var in $ac_precious_vars; do
2611   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2612   eval ac_new_set=\$ac_env_${ac_var}_set
2613   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2614   eval ac_new_val=\$ac_env_${ac_var}_value
2615   case $ac_old_set,$ac_new_set in
2616     set,)
2617       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2618 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2619       ac_cache_corrupted=: ;;
2620     ,set)
2621       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2622 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2623       ac_cache_corrupted=: ;;
2624     ,);;
2625     *)
2626       if test "x$ac_old_val" != "x$ac_new_val"; then
2627         # differences in whitespace do not lead to failure.
2628         ac_old_val_w=`echo x $ac_old_val`
2629         ac_new_val_w=`echo x $ac_new_val`
2630         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2631           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2632 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2633           ac_cache_corrupted=:
2634         else
2635           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2636 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2637           eval $ac_var=\$ac_old_val
2638         fi
2639         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2640 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2641         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2642 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2643       fi;;
2644   esac
2645   # Pass precious variables to config.status.
2646   if test "$ac_new_set" = set; then
2647     case $ac_new_val in
2648     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2649     *) ac_arg=$ac_var=$ac_new_val ;;
2650     esac
2651     case " $ac_configure_args " in
2652       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2653       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2654     esac
2655   fi
2656 done
2657 if $ac_cache_corrupted; then
2658   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2660   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2661 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2662   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2663 fi
2664 ## -------------------- ##
2665 ## Main body of script. ##
2666 ## -------------------- ##
2667
2668 ac_ext=c
2669 ac_cpp='$CPP $CPPFLAGS'
2670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2673
2674
2675
2676 ac_config_headers="$ac_config_headers config.h"
2677
2678
2679
2680 ac_aux_dir=
2681 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2682   for ac_t in install-sh install.sh shtool; do
2683     if test -f "$ac_dir/$ac_t"; then
2684       ac_aux_dir=$ac_dir
2685       ac_install_sh="$ac_aux_dir/$ac_t -c"
2686       break 2
2687     fi
2688   done
2689 done
2690 if test -z "$ac_aux_dir"; then
2691   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2692 fi
2693
2694 # These three variables are undocumented and unsupported,
2695 # and are intended to be withdrawn in a future Autoconf release.
2696 # They can cause serious problems if a builder's source tree is in a directory
2697 # whose full name contains unusual characters.
2698 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2699 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2700 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2701
2702
2703 # Make sure we can run config.sub.
2704 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2705   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2706
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2708 $as_echo_n "checking build system type... " >&6; }
2709 if test "${ac_cv_build+set}" = set; then :
2710   $as_echo_n "(cached) " >&6
2711 else
2712   ac_build_alias=$build_alias
2713 test "x$ac_build_alias" = x &&
2714   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2715 test "x$ac_build_alias" = x &&
2716   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2717 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2718   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2719
2720 fi
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2722 $as_echo "$ac_cv_build" >&6; }
2723 case $ac_cv_build in
2724 *-*-*) ;;
2725 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2726 esac
2727 build=$ac_cv_build
2728 ac_save_IFS=$IFS; IFS='-'
2729 set x $ac_cv_build
2730 shift
2731 build_cpu=$1
2732 build_vendor=$2
2733 shift; shift
2734 # Remember, the first character of IFS is used to create $*,
2735 # except with old shells:
2736 build_os=$*
2737 IFS=$ac_save_IFS
2738 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2739
2740
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2742 $as_echo_n "checking host system type... " >&6; }
2743 if test "${ac_cv_host+set}" = set; then :
2744   $as_echo_n "(cached) " >&6
2745 else
2746   if test "x$host_alias" = x; then
2747   ac_cv_host=$ac_cv_build
2748 else
2749   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2750     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2751 fi
2752
2753 fi
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2755 $as_echo "$ac_cv_host" >&6; }
2756 case $ac_cv_host in
2757 *-*-*) ;;
2758 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2759 esac
2760 host=$ac_cv_host
2761 ac_save_IFS=$IFS; IFS='-'
2762 set x $ac_cv_host
2763 shift
2764 host_cpu=$1
2765 host_vendor=$2
2766 shift; shift
2767 # Remember, the first character of IFS is used to create $*,
2768 # except with old shells:
2769 host_os=$*
2770 IFS=$ac_save_IFS
2771 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2772
2773
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2775 $as_echo_n "checking target system type... " >&6; }
2776 if test "${ac_cv_target+set}" = set; then :
2777   $as_echo_n "(cached) " >&6
2778 else
2779   if test "x$target_alias" = x; then
2780   ac_cv_target=$ac_cv_host
2781 else
2782   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2783     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2784 fi
2785
2786 fi
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2788 $as_echo "$ac_cv_target" >&6; }
2789 case $ac_cv_target in
2790 *-*-*) ;;
2791 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2792 esac
2793 target=$ac_cv_target
2794 ac_save_IFS=$IFS; IFS='-'
2795 set x $ac_cv_target
2796 shift
2797 target_cpu=$1
2798 target_vendor=$2
2799 shift; shift
2800 # Remember, the first character of IFS is used to create $*,
2801 # except with old shells:
2802 target_os=$*
2803 IFS=$ac_save_IFS
2804 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2805
2806
2807 # The aliases save the names the user supplied, while $host etc.
2808 # will get canonicalized.
2809 test -n "$target_alias" &&
2810   test "$program_prefix$program_suffix$program_transform_name" = \
2811     NONENONEs,x,x, &&
2812   program_prefix=${target_alias}-
2813
2814 am__api_version='1.11'
2815
2816 # Find a good install program.  We prefer a C program (faster),
2817 # so one script is as good as another.  But avoid the broken or
2818 # incompatible versions:
2819 # SysV /etc/install, /usr/sbin/install
2820 # SunOS /usr/etc/install
2821 # IRIX /sbin/install
2822 # AIX /bin/install
2823 # AmigaOS /C/install, which installs bootblocks on floppy discs
2824 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2825 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2826 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2827 # OS/2's system install, which has a completely different semantic
2828 # ./install, which can be erroneously created by make from ./install.sh.
2829 # Reject install programs that cannot install multiple files.
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2831 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2832 if test -z "$INSTALL"; then
2833 if test "${ac_cv_path_install+set}" = set; then :
2834   $as_echo_n "(cached) " >&6
2835 else
2836   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 for as_dir in $PATH
2838 do
2839   IFS=$as_save_IFS
2840   test -z "$as_dir" && as_dir=.
2841     # Account for people who put trailing slashes in PATH elements.
2842 case $as_dir/ in #((
2843   ./ | .// | /[cC]/* | \
2844   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2845   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2846   /usr/ucb/* ) ;;
2847   *)
2848     # OSF1 and SCO ODT 3.0 have their own names for install.
2849     # Don't use installbsd from OSF since it installs stuff as root
2850     # by default.
2851     for ac_prog in ginstall scoinst install; do
2852       for ac_exec_ext in '' $ac_executable_extensions; do
2853         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2854           if test $ac_prog = install &&
2855             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2856             # AIX install.  It has an incompatible calling convention.
2857             :
2858           elif test $ac_prog = install &&
2859             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2860             # program-specific install script used by HP pwplus--don't use.
2861             :
2862           else
2863             rm -rf conftest.one conftest.two conftest.dir
2864             echo one > conftest.one
2865             echo two > conftest.two
2866             mkdir conftest.dir
2867             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2868               test -s conftest.one && test -s conftest.two &&
2869               test -s conftest.dir/conftest.one &&
2870               test -s conftest.dir/conftest.two
2871             then
2872               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2873               break 3
2874             fi
2875           fi
2876         fi
2877       done
2878     done
2879     ;;
2880 esac
2881
2882   done
2883 IFS=$as_save_IFS
2884
2885 rm -rf conftest.one conftest.two conftest.dir
2886
2887 fi
2888   if test "${ac_cv_path_install+set}" = set; then
2889     INSTALL=$ac_cv_path_install
2890   else
2891     # As a last resort, use the slow shell script.  Don't cache a
2892     # value for INSTALL within a source directory, because that will
2893     # break other packages using the cache if that directory is
2894     # removed, or if the value is a relative name.
2895     INSTALL=$ac_install_sh
2896   fi
2897 fi
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2899 $as_echo "$INSTALL" >&6; }
2900
2901 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2902 # It thinks the first close brace ends the variable substitution.
2903 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2904
2905 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2906
2907 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2908
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2910 $as_echo_n "checking whether build environment is sane... " >&6; }
2911 # Just in case
2912 sleep 1
2913 echo timestamp > conftest.file
2914 # Reject unsafe characters in $srcdir or the absolute working directory
2915 # name.  Accept space and tab only in the latter.
2916 am_lf='
2917 '
2918 case `pwd` in
2919   *[\\\"\#\$\&\'\`$am_lf]*)
2920     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2921 esac
2922 case $srcdir in
2923   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2924     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2925 esac
2926
2927 # Do `set' in a subshell so we don't clobber the current shell's
2928 # arguments.  Must try -L first in case configure is actually a
2929 # symlink; some systems play weird games with the mod time of symlinks
2930 # (eg FreeBSD returns the mod time of the symlink's containing
2931 # directory).
2932 if (
2933    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2934    if test "$*" = "X"; then
2935       # -L didn't work.
2936       set X `ls -t "$srcdir/configure" conftest.file`
2937    fi
2938    rm -f conftest.file
2939    if test "$*" != "X $srcdir/configure conftest.file" \
2940       && test "$*" != "X conftest.file $srcdir/configure"; then
2941
2942       # If neither matched, then we have a broken ls.  This can happen
2943       # if, for instance, CONFIG_SHELL is bash and it inherits a
2944       # broken ls alias from the environment.  This has actually
2945       # happened.  Such a system could not be considered "sane".
2946       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2947 alias in your environment" "$LINENO" 5
2948    fi
2949
2950    test "$2" = conftest.file
2951    )
2952 then
2953    # Ok.
2954    :
2955 else
2956    as_fn_error "newly created file is older than distributed files!
2957 Check your system clock" "$LINENO" 5
2958 fi
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2960 $as_echo "yes" >&6; }
2961 test "$program_prefix" != NONE &&
2962   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2963 # Use a double $ so make ignores it.
2964 test "$program_suffix" != NONE &&
2965   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2966 # Double any \ or $.
2967 # By default was `s,x,x', remove it if useless.
2968 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2969 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2970
2971 # expand $ac_aux_dir to an absolute path
2972 am_aux_dir=`cd $ac_aux_dir && pwd`
2973
2974 if test x"${MISSING+set}" != xset; then
2975   case $am_aux_dir in
2976   *\ * | *\     *)
2977     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2978   *)
2979     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2980   esac
2981 fi
2982 # Use eval to expand $SHELL
2983 if eval "$MISSING --run true"; then
2984   am_missing_run="$MISSING --run "
2985 else
2986   am_missing_run=
2987   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2988 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2989 fi
2990
2991 if test x"${install_sh}" != xset; then
2992   case $am_aux_dir in
2993   *\ * | *\     *)
2994     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2995   *)
2996     install_sh="\${SHELL} $am_aux_dir/install-sh"
2997   esac
2998 fi
2999
3000 # Installed binaries are usually stripped using `strip' when the user
3001 # run `make install-strip'.  However `strip' might not be the right
3002 # tool to use in cross-compilation environments, therefore Automake
3003 # will honor the `STRIP' environment variable to overrule this program.
3004 if test "$cross_compiling" != no; then
3005   if test -n "$ac_tool_prefix"; then
3006   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3007 set dummy ${ac_tool_prefix}strip; ac_word=$2
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3009 $as_echo_n "checking for $ac_word... " >&6; }
3010 if test "${ac_cv_prog_STRIP+set}" = set; then :
3011   $as_echo_n "(cached) " >&6
3012 else
3013   if test -n "$STRIP"; then
3014   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3015 else
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 for as_dir in $PATH
3018 do
3019   IFS=$as_save_IFS
3020   test -z "$as_dir" && as_dir=.
3021     for ac_exec_ext in '' $ac_executable_extensions; do
3022   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3023     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3025     break 2
3026   fi
3027 done
3028   done
3029 IFS=$as_save_IFS
3030
3031 fi
3032 fi
3033 STRIP=$ac_cv_prog_STRIP
3034 if test -n "$STRIP"; then
3035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3036 $as_echo "$STRIP" >&6; }
3037 else
3038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3039 $as_echo "no" >&6; }
3040 fi
3041
3042
3043 fi
3044 if test -z "$ac_cv_prog_STRIP"; then
3045   ac_ct_STRIP=$STRIP
3046   # Extract the first word of "strip", so it can be a program name with args.
3047 set dummy strip; ac_word=$2
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3049 $as_echo_n "checking for $ac_word... " >&6; }
3050 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3051   $as_echo_n "(cached) " >&6
3052 else
3053   if test -n "$ac_ct_STRIP"; then
3054   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3055 else
3056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 for as_dir in $PATH
3058 do
3059   IFS=$as_save_IFS
3060   test -z "$as_dir" && as_dir=.
3061     for ac_exec_ext in '' $ac_executable_extensions; do
3062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3063     ac_cv_prog_ac_ct_STRIP="strip"
3064     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3065     break 2
3066   fi
3067 done
3068   done
3069 IFS=$as_save_IFS
3070
3071 fi
3072 fi
3073 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3074 if test -n "$ac_ct_STRIP"; then
3075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3076 $as_echo "$ac_ct_STRIP" >&6; }
3077 else
3078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3079 $as_echo "no" >&6; }
3080 fi
3081
3082   if test "x$ac_ct_STRIP" = x; then
3083     STRIP=":"
3084   else
3085     case $cross_compiling:$ac_tool_warned in
3086 yes:)
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3089 ac_tool_warned=yes ;;
3090 esac
3091     STRIP=$ac_ct_STRIP
3092   fi
3093 else
3094   STRIP="$ac_cv_prog_STRIP"
3095 fi
3096
3097 fi
3098 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3099
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3101 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3102 if test -z "$MKDIR_P"; then
3103   if test "${ac_cv_path_mkdir+set}" = set; then :
3104   $as_echo_n "(cached) " >&6
3105 else
3106   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3108 do
3109   IFS=$as_save_IFS
3110   test -z "$as_dir" && as_dir=.
3111     for ac_prog in mkdir gmkdir; do
3112          for ac_exec_ext in '' $ac_executable_extensions; do
3113            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3114            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3115              'mkdir (GNU coreutils) '* | \
3116              'mkdir (coreutils) '* | \
3117              'mkdir (fileutils) '4.1*)
3118                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3119                break 3;;
3120            esac
3121          done
3122        done
3123   done
3124 IFS=$as_save_IFS
3125
3126 fi
3127
3128   if test "${ac_cv_path_mkdir+set}" = set; then
3129     MKDIR_P="$ac_cv_path_mkdir -p"
3130   else
3131     # As a last resort, use the slow shell script.  Don't cache a
3132     # value for MKDIR_P within a source directory, because that will
3133     # break other packages using the cache if that directory is
3134     # removed, or if the value is a relative name.
3135     test -d ./--version && rmdir ./--version
3136     MKDIR_P="$ac_install_sh -d"
3137   fi
3138 fi
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3140 $as_echo "$MKDIR_P" >&6; }
3141
3142 mkdir_p="$MKDIR_P"
3143 case $mkdir_p in
3144   [\\/$]* | ?:[\\/]*) ;;
3145   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3146 esac
3147
3148 for ac_prog in gawk mawk nawk awk
3149 do
3150   # Extract the first word of "$ac_prog", so it can be a program name with args.
3151 set dummy $ac_prog; ac_word=$2
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3153 $as_echo_n "checking for $ac_word... " >&6; }
3154 if test "${ac_cv_prog_AWK+set}" = set; then :
3155   $as_echo_n "(cached) " >&6
3156 else
3157   if test -n "$AWK"; then
3158   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3159 else
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161 for as_dir in $PATH
3162 do
3163   IFS=$as_save_IFS
3164   test -z "$as_dir" && as_dir=.
3165     for ac_exec_ext in '' $ac_executable_extensions; do
3166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3167     ac_cv_prog_AWK="$ac_prog"
3168     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3169     break 2
3170   fi
3171 done
3172   done
3173 IFS=$as_save_IFS
3174
3175 fi
3176 fi
3177 AWK=$ac_cv_prog_AWK
3178 if test -n "$AWK"; then
3179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3180 $as_echo "$AWK" >&6; }
3181 else
3182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183 $as_echo "no" >&6; }
3184 fi
3185
3186
3187   test -n "$AWK" && break
3188 done
3189
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3191 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3192 set x ${MAKE-make}
3193 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3194 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3195   $as_echo_n "(cached) " >&6
3196 else
3197   cat >conftest.make <<\_ACEOF
3198 SHELL = /bin/sh
3199 all:
3200         @echo '@@@%%%=$(MAKE)=@@@%%%'
3201 _ACEOF
3202 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3203 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3204   *@@@%%%=?*=@@@%%%*)
3205     eval ac_cv_prog_make_${ac_make}_set=yes;;
3206   *)
3207     eval ac_cv_prog_make_${ac_make}_set=no;;
3208 esac
3209 rm -f conftest.make
3210 fi
3211 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3213 $as_echo "yes" >&6; }
3214   SET_MAKE=
3215 else
3216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 $as_echo "no" >&6; }
3218   SET_MAKE="MAKE=${MAKE-make}"
3219 fi
3220
3221 rm -rf .tst 2>/dev/null
3222 mkdir .tst 2>/dev/null
3223 if test -d .tst; then
3224   am__leading_dot=.
3225 else
3226   am__leading_dot=_
3227 fi
3228 rmdir .tst 2>/dev/null
3229
3230 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3231   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3232   # is not polluted with repeated "-I."
3233   am__isrc=' -I$(srcdir)'
3234   # test to see if srcdir already configured
3235   if test -f $srcdir/config.status; then
3236     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3237   fi
3238 fi
3239
3240 # test whether we have cygpath
3241 if test -z "$CYGPATH_W"; then
3242   if (cygpath --version) >/dev/null 2>/dev/null; then
3243     CYGPATH_W='cygpath -w'
3244   else
3245     CYGPATH_W=echo
3246   fi
3247 fi
3248
3249
3250 # Define the identity of the package.
3251  PACKAGE='lordsawar'
3252  VERSION='0.1.7-pre2'
3253
3254
3255 cat >>confdefs.h <<_ACEOF
3256 #define PACKAGE "$PACKAGE"
3257 _ACEOF
3258
3259
3260 cat >>confdefs.h <<_ACEOF
3261 #define VERSION "$VERSION"
3262 _ACEOF
3263
3264 # Some tools Automake needs.
3265
3266 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3267
3268
3269 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3270
3271
3272 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3273
3274
3275 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3276
3277
3278 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3279
3280 # We need awk for the "check" target.  The system "awk" is bad on
3281 # some platforms.
3282 # Always define AMTAR for backward compatibility.
3283
3284 AMTAR=${AMTAR-"${am_missing_run}tar"}
3285
3286 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3287
3288
3289
3290
3291
3292
3293
3294   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
3295 $as_echo_n "checking whether NLS is requested... " >&6; }
3296     # Check whether --enable-nls was given.
3297 if test "${enable_nls+set}" = set; then :
3298   enableval=$enable_nls; USE_NLS=$enableval
3299 else
3300   USE_NLS=yes
3301 fi
3302
3303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
3304 $as_echo "$USE_NLS" >&6; }
3305
3306
3307 DEPDIR="${am__leading_dot}deps"
3308
3309 ac_config_commands="$ac_config_commands depfiles"
3310
3311
3312 am_make=${MAKE-make}
3313 cat > confinc << 'END'
3314 am__doit:
3315         @echo this is the am__doit target
3316 .PHONY: am__doit
3317 END
3318 # If we don't find an include directive, just comment out the code.
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3320 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3321 am__include="#"
3322 am__quote=
3323 _am_result=none
3324 # First try GNU make style include.
3325 echo "include confinc" > confmf
3326 # Ignore all kinds of additional output from `make'.
3327 case `$am_make -s -f confmf 2> /dev/null` in #(
3328 *the\ am__doit\ target*)
3329   am__include=include
3330   am__quote=
3331   _am_result=GNU
3332   ;;
3333 esac
3334 # Now try BSD make style include.
3335 if test "$am__include" = "#"; then
3336    echo '.include "confinc"' > confmf
3337    case `$am_make -s -f confmf 2> /dev/null` in #(
3338    *the\ am__doit\ target*)
3339      am__include=.include
3340      am__quote="\""
3341      _am_result=BSD
3342      ;;
3343    esac
3344 fi
3345
3346
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3348 $as_echo "$_am_result" >&6; }
3349 rm -f confinc confmf
3350
3351 # Check whether --enable-dependency-tracking was given.
3352 if test "${enable_dependency_tracking+set}" = set; then :
3353   enableval=$enable_dependency_tracking;
3354 fi
3355
3356 if test "x$enable_dependency_tracking" != xno; then
3357   am_depcomp="$ac_aux_dir/depcomp"
3358   AMDEPBACKSLASH='\'
3359 fi
3360  if test "x$enable_dependency_tracking" != xno; then
3361   AMDEP_TRUE=
3362   AMDEP_FALSE='#'
3363 else
3364   AMDEP_TRUE='#'
3365   AMDEP_FALSE=
3366 fi
3367
3368
3369 ac_ext=c
3370 ac_cpp='$CPP $CPPFLAGS'
3371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3374 if test -n "$ac_tool_prefix"; then
3375   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3376 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3378 $as_echo_n "checking for $ac_word... " >&6; }
3379 if test "${ac_cv_prog_CC+set}" = set; then :
3380   $as_echo_n "(cached) " >&6
3381 else
3382   if test -n "$CC"; then
3383   ac_cv_prog_CC="$CC" # Let the user override the test.
3384 else
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386 for as_dir in $PATH
3387 do
3388   IFS=$as_save_IFS
3389   test -z "$as_dir" && as_dir=.
3390     for ac_exec_ext in '' $ac_executable_extensions; do
3391   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3392     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3394     break 2
3395   fi
3396 done
3397   done
3398 IFS=$as_save_IFS
3399
3400 fi
3401 fi
3402 CC=$ac_cv_prog_CC
3403 if test -n "$CC"; then
3404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3405 $as_echo "$CC" >&6; }
3406 else
3407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408 $as_echo "no" >&6; }
3409 fi
3410
3411
3412 fi
3413 if test -z "$ac_cv_prog_CC"; then
3414   ac_ct_CC=$CC
3415   # Extract the first word of "gcc", so it can be a program name with args.
3416 set dummy gcc; ac_word=$2
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3418 $as_echo_n "checking for $ac_word... " >&6; }
3419 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3420   $as_echo_n "(cached) " >&6
3421 else
3422   if test -n "$ac_ct_CC"; then
3423   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3424 else
3425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426 for as_dir in $PATH
3427 do
3428   IFS=$as_save_IFS
3429   test -z "$as_dir" && as_dir=.
3430     for ac_exec_ext in '' $ac_executable_extensions; do
3431   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3432     ac_cv_prog_ac_ct_CC="gcc"
3433     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3434     break 2
3435   fi
3436 done
3437   done
3438 IFS=$as_save_IFS
3439
3440 fi
3441 fi
3442 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3443 if test -n "$ac_ct_CC"; then
3444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3445 $as_echo "$ac_ct_CC" >&6; }
3446 else
3447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3448 $as_echo "no" >&6; }
3449 fi
3450
3451   if test "x$ac_ct_CC" = x; then
3452     CC=""
3453   else
3454     case $cross_compiling:$ac_tool_warned in
3455 yes:)
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3457 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3458 ac_tool_warned=yes ;;
3459 esac
3460     CC=$ac_ct_CC
3461   fi
3462 else
3463   CC="$ac_cv_prog_CC"
3464 fi
3465
3466 if test -z "$CC"; then
3467           if test -n "$ac_tool_prefix"; then
3468     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3469 set dummy ${ac_tool_prefix}cc; ac_word=$2
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3471 $as_echo_n "checking for $ac_word... " >&6; }
3472 if test "${ac_cv_prog_CC+set}" = set; then :
3473   $as_echo_n "(cached) " >&6
3474 else
3475   if test -n "$CC"; then
3476   ac_cv_prog_CC="$CC" # Let the user override the test.
3477 else
3478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479 for as_dir in $PATH
3480 do
3481   IFS=$as_save_IFS
3482   test -z "$as_dir" && as_dir=.
3483     for ac_exec_ext in '' $ac_executable_extensions; do
3484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3485     ac_cv_prog_CC="${ac_tool_prefix}cc"
3486     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3487     break 2
3488   fi
3489 done
3490   done
3491 IFS=$as_save_IFS
3492
3493 fi
3494 fi
3495 CC=$ac_cv_prog_CC
3496 if test -n "$CC"; then
3497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3498 $as_echo "$CC" >&6; }
3499 else
3500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3501 $as_echo "no" >&6; }
3502 fi
3503
3504
3505   fi
3506 fi
3507 if test -z "$CC"; then
3508   # Extract the first word of "cc", so it can be a program name with args.
3509 set dummy cc; ac_word=$2
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3511 $as_echo_n "checking for $ac_word... " >&6; }
3512 if test "${ac_cv_prog_CC+set}" = set; then :
3513   $as_echo_n "(cached) " >&6
3514 else
3515   if test -n "$CC"; then
3516   ac_cv_prog_CC="$CC" # Let the user override the test.
3517 else
3518   ac_prog_rejected=no
3519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520 for as_dir in $PATH
3521 do
3522   IFS=$as_save_IFS
3523   test -z "$as_dir" && as_dir=.
3524     for ac_exec_ext in '' $ac_executable_extensions; do
3525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3526     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3527        ac_prog_rejected=yes
3528        continue
3529      fi
3530     ac_cv_prog_CC="cc"
3531     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3532     break 2
3533   fi
3534 done
3535   done
3536 IFS=$as_save_IFS
3537
3538 if test $ac_prog_rejected = yes; then
3539   # We found a bogon in the path, so make sure we never use it.
3540   set dummy $ac_cv_prog_CC
3541   shift
3542   if test $# != 0; then
3543     # We chose a different compiler from the bogus one.
3544     # However, it has the same basename, so the bogon will be chosen
3545     # first if we set CC to just the basename; use the full file name.
3546     shift
3547     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3548   fi
3549 fi
3550 fi
3551 fi
3552 CC=$ac_cv_prog_CC
3553 if test -n "$CC"; then
3554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3555 $as_echo "$CC" >&6; }
3556 else
3557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3558 $as_echo "no" >&6; }
3559 fi
3560
3561
3562 fi
3563 if test -z "$CC"; then
3564   if test -n "$ac_tool_prefix"; then
3565   for ac_prog in cl.exe
3566   do
3567     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3568 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3570 $as_echo_n "checking for $ac_word... " >&6; }
3571 if test "${ac_cv_prog_CC+set}" = set; then :
3572   $as_echo_n "(cached) " >&6
3573 else
3574   if test -n "$CC"; then
3575   ac_cv_prog_CC="$CC" # Let the user override the test.
3576 else
3577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3578 for as_dir in $PATH
3579 do
3580   IFS=$as_save_IFS
3581   test -z "$as_dir" && as_dir=.
3582     for ac_exec_ext in '' $ac_executable_extensions; do
3583   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3584     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3586     break 2
3587   fi
3588 done
3589   done
3590 IFS=$as_save_IFS
3591
3592 fi
3593 fi
3594 CC=$ac_cv_prog_CC
3595 if test -n "$CC"; then
3596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3597 $as_echo "$CC" >&6; }
3598 else
3599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3600 $as_echo "no" >&6; }
3601 fi
3602
3603
3604     test -n "$CC" && break
3605   done
3606 fi
3607 if test -z "$CC"; then
3608   ac_ct_CC=$CC
3609   for ac_prog in cl.exe
3610 do
3611   # Extract the first word of "$ac_prog", so it can be a program name with args.
3612 set dummy $ac_prog; ac_word=$2
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3614 $as_echo_n "checking for $ac_word... " >&6; }
3615 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3616   $as_echo_n "(cached) " >&6
3617 else
3618   if test -n "$ac_ct_CC"; then
3619   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3620 else
3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622 for as_dir in $PATH
3623 do
3624   IFS=$as_save_IFS
3625   test -z "$as_dir" && as_dir=.
3626     for ac_exec_ext in '' $ac_executable_extensions; do
3627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3628     ac_cv_prog_ac_ct_CC="$ac_prog"
3629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3630     break 2
3631   fi
3632 done
3633   done
3634 IFS=$as_save_IFS
3635
3636 fi
3637 fi
3638 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3639 if test -n "$ac_ct_CC"; then
3640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3641 $as_echo "$ac_ct_CC" >&6; }
3642 else
3643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644 $as_echo "no" >&6; }
3645 fi
3646
3647
3648   test -n "$ac_ct_CC" && break
3649 done
3650
3651   if test "x$ac_ct_CC" = x; then
3652     CC=""
3653   else
3654     case $cross_compiling:$ac_tool_warned in
3655 yes:)
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3658 ac_tool_warned=yes ;;
3659 esac
3660     CC=$ac_ct_CC
3661   fi
3662 fi
3663
3664 fi
3665
3666
3667 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3668 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3669 as_fn_error "no acceptable C compiler found in \$PATH
3670 See \`config.log' for more details." "$LINENO" 5; }
3671
3672 # Provide some information about the compiler.
3673 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3674 set X $ac_compile
3675 ac_compiler=$2
3676 for ac_option in --version -v -V -qversion; do
3677   { { ac_try="$ac_compiler $ac_option >&5"
3678 case "(($ac_try" in
3679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680   *) ac_try_echo=$ac_try;;
3681 esac
3682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3683 $as_echo "$ac_try_echo"; } >&5
3684   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3685   ac_status=$?
3686   if test -s conftest.err; then
3687     sed '10a\
3688 ... rest of stderr output deleted ...
3689          10q' conftest.err >conftest.er1
3690     cat conftest.er1 >&5
3691     rm -f conftest.er1 conftest.err
3692   fi
3693   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3694   test $ac_status = 0; }
3695 done
3696
3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698 /* end confdefs.h.  */
3699 #include <stdio.h>
3700 int
3701 main ()
3702 {
3703 FILE *f = fopen ("conftest.out", "w");
3704  return ferror (f) || fclose (f) != 0;
3705
3706   ;
3707   return 0;
3708 }
3709 _ACEOF
3710 ac_clean_files_save=$ac_clean_files
3711 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3712 # Try to create an executable without -o first, disregard a.out.
3713 # It will help us diagnose broken compilers, and finding out an intuition
3714 # of exeext.
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3716 $as_echo_n "checking for C compiler default output file name... " >&6; }
3717 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3718
3719 # The possible output files:
3720 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3721
3722 ac_rmfiles=
3723 for ac_file in $ac_files
3724 do
3725   case $ac_file in
3726     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3727     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3728   esac
3729 done
3730 rm -f $ac_rmfiles
3731
3732 if { { ac_try="$ac_link_default"
3733 case "(($ac_try" in
3734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3735   *) ac_try_echo=$ac_try;;
3736 esac
3737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3738 $as_echo "$ac_try_echo"; } >&5
3739   (eval "$ac_link_default") 2>&5
3740   ac_status=$?
3741   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3742   test $ac_status = 0; }; then :
3743   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3744 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3745 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3746 # so that the user can short-circuit this test for compilers unknown to
3747 # Autoconf.
3748 for ac_file in $ac_files ''
3749 do
3750   test -f "$ac_file" || continue
3751   case $ac_file in
3752     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3753         ;;
3754     [ab].out )
3755         # We found the default executable, but exeext='' is most
3756         # certainly right.
3757         break;;
3758     *.* )
3759         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3760         then :; else
3761            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3762         fi
3763         # We set ac_cv_exeext here because the later test for it is not
3764         # safe: cross compilers may not add the suffix if given an `-o'
3765         # argument, so we may need to know it at that point already.
3766         # Even if this section looks crufty: it has the advantage of
3767         # actually working.
3768         break;;
3769     * )
3770         break;;
3771   esac
3772 done
3773 test "$ac_cv_exeext" = no && ac_cv_exeext=
3774
3775 else
3776   ac_file=''
3777 fi
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3779 $as_echo "$ac_file" >&6; }
3780 if test -z "$ac_file"; then :
3781   $as_echo "$as_me: failed program was:" >&5
3782 sed 's/^/| /' conftest.$ac_ext >&5
3783
3784 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3786 { as_fn_set_status 77
3787 as_fn_error "C compiler cannot create executables
3788 See \`config.log' for more details." "$LINENO" 5; }; }
3789 fi
3790 ac_exeext=$ac_cv_exeext
3791
3792 # Check that the compiler produces executables we can run.  If not, either
3793 # the compiler is broken, or we cross compile.
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3795 $as_echo_n "checking whether the C compiler works... " >&6; }
3796 # If not cross compiling, check that we can run a simple program.
3797 if test "$cross_compiling" != yes; then
3798   if { ac_try='./$ac_file'
3799   { { case "(($ac_try" in
3800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801   *) ac_try_echo=$ac_try;;
3802 esac
3803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3804 $as_echo "$ac_try_echo"; } >&5
3805   (eval "$ac_try") 2>&5
3806   ac_status=$?
3807   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3808   test $ac_status = 0; }; }; then
3809     cross_compiling=no
3810   else
3811     if test "$cross_compiling" = maybe; then
3812         cross_compiling=yes
3813     else
3814         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3815 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3816 as_fn_error "cannot run C compiled programs.
3817 If you meant to cross compile, use \`--host'.
3818 See \`config.log' for more details." "$LINENO" 5; }
3819     fi
3820   fi
3821 fi
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3823 $as_echo "yes" >&6; }
3824
3825 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3826 ac_clean_files=$ac_clean_files_save
3827 # Check that the compiler produces executables we can run.  If not, either
3828 # the compiler is broken, or we cross compile.
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3830 $as_echo_n "checking whether we are cross compiling... " >&6; }
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3832 $as_echo "$cross_compiling" >&6; }
3833
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3835 $as_echo_n "checking for suffix of executables... " >&6; }
3836 if { { ac_try="$ac_link"
3837 case "(($ac_try" in
3838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3839   *) ac_try_echo=$ac_try;;
3840 esac
3841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3842 $as_echo "$ac_try_echo"; } >&5
3843   (eval "$ac_link") 2>&5
3844   ac_status=$?
3845   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3846   test $ac_status = 0; }; then :
3847   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3848 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3849 # work properly (i.e., refer to `conftest.exe'), while it won't with
3850 # `rm'.
3851 for ac_file in conftest.exe conftest conftest.*; do
3852   test -f "$ac_file" || continue
3853   case $ac_file in
3854     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3855     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3856           break;;
3857     * ) break;;
3858   esac
3859 done
3860 else
3861   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3862 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3863 as_fn_error "cannot compute suffix of executables: cannot compile and link
3864 See \`config.log' for more details." "$LINENO" 5; }
3865 fi
3866 rm -f conftest$ac_cv_exeext
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3868 $as_echo "$ac_cv_exeext" >&6; }
3869
3870 rm -f conftest.$ac_ext
3871 EXEEXT=$ac_cv_exeext
3872 ac_exeext=$EXEEXT
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3874 $as_echo_n "checking for suffix of object files... " >&6; }
3875 if test "${ac_cv_objext+set}" = set; then :
3876   $as_echo_n "(cached) " >&6
3877 else
3878   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h.  */
3880
3881 int
3882 main ()
3883 {
3884
3885   ;
3886   return 0;
3887 }
3888 _ACEOF
3889 rm -f conftest.o conftest.obj
3890 if { { ac_try="$ac_compile"
3891 case "(($ac_try" in
3892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893   *) ac_try_echo=$ac_try;;
3894 esac
3895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3896 $as_echo "$ac_try_echo"; } >&5
3897   (eval "$ac_compile") 2>&5
3898   ac_status=$?
3899   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3900   test $ac_status = 0; }; then :
3901   for ac_file in conftest.o conftest.obj conftest.*; do
3902   test -f "$ac_file" || continue;
3903   case $ac_file in
3904     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3905     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3906        break;;
3907   esac
3908 done
3909 else
3910   $as_echo "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.$ac_ext >&5
3912
3913 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3915 as_fn_error "cannot compute suffix of object files: cannot compile
3916 See \`config.log' for more details." "$LINENO" 5; }
3917 fi
3918 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3919 fi
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3921 $as_echo "$ac_cv_objext" >&6; }
3922 OBJEXT=$ac_cv_objext
3923 ac_objext=$OBJEXT
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3925 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3926 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3927   $as_echo_n "(cached) " >&6
3928 else
3929   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930 /* end confdefs.h.  */
3931
3932 int
3933 main ()
3934 {
3935 #ifndef __GNUC__
3936        choke me
3937 #endif
3938
3939   ;
3940   return 0;
3941 }
3942 _ACEOF
3943 if ac_fn_c_try_compile "$LINENO"; then :
3944   ac_compiler_gnu=yes
3945 else
3946   ac_compiler_gnu=no
3947 fi
3948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3949 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3950
3951 fi
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3953 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3954 if test $ac_compiler_gnu = yes; then
3955   GCC=yes
3956 else
3957   GCC=
3958 fi
3959 ac_test_CFLAGS=${CFLAGS+set}
3960 ac_save_CFLAGS=$CFLAGS
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3962 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3963 if test "${ac_cv_prog_cc_g+set}" = set; then :
3964   $as_echo_n "(cached) " >&6
3965 else
3966   ac_save_c_werror_flag=$ac_c_werror_flag
3967    ac_c_werror_flag=yes
3968    ac_cv_prog_cc_g=no
3969    CFLAGS="-g"
3970    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971 /* end confdefs.h.  */
3972
3973 int
3974 main ()
3975 {
3976
3977   ;
3978   return 0;
3979 }
3980 _ACEOF
3981 if ac_fn_c_try_compile "$LINENO"; then :
3982   ac_cv_prog_cc_g=yes
3983 else
3984   CFLAGS=""
3985       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h.  */
3987
3988 int
3989 main ()
3990 {
3991
3992   ;
3993   return 0;
3994 }
3995 _ACEOF
3996 if ac_fn_c_try_compile "$LINENO"; then :
3997
3998 else
3999   ac_c_werror_flag=$ac_save_c_werror_flag
4000          CFLAGS="-g"
4001          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h.  */
4003
4004 int
4005 main ()
4006 {
4007
4008   ;
4009   return 0;
4010 }
4011 _ACEOF
4012 if ac_fn_c_try_compile "$LINENO"; then :
4013   ac_cv_prog_cc_g=yes
4014 fi
4015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4016 fi
4017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4018 fi
4019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4020    ac_c_werror_flag=$ac_save_c_werror_flag
4021 fi
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4023 $as_echo "$ac_cv_prog_cc_g" >&6; }
4024 if test "$ac_test_CFLAGS" = set; then
4025   CFLAGS=$ac_save_CFLAGS
4026 elif test $ac_cv_prog_cc_g = yes; then
4027   if test "$GCC" = yes; then
4028     CFLAGS="-g -O2"
4029   else
4030     CFLAGS="-g"
4031   fi
4032 else
4033   if test "$GCC" = yes; then
4034     CFLAGS="-O2"
4035   else
4036     CFLAGS=
4037   fi
4038 fi
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4040 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4041 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4042   $as_echo_n "(cached) " >&6
4043 else
4044   ac_cv_prog_cc_c89=no
4045 ac_save_CC=$CC
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h.  */
4048 #include <stdarg.h>
4049 #include <stdio.h>
4050 #include <sys/types.h>
4051 #include <sys/stat.h>
4052 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4053 struct buf { int x; };
4054 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4055 static char *e (p, i)
4056      char **p;
4057      int i;
4058 {
4059   return p[i];
4060 }
4061 static char *f (char * (*g) (char **, int), char **p, ...)
4062 {
4063   char *s;
4064   va_list v;
4065   va_start (v,p);
4066   s = g (p, va_arg (v,int));
4067   va_end (v);
4068   return s;
4069 }
4070
4071 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4072    function prototypes and stuff, but not '\xHH' hex character constants.
4073    These don't provoke an error unfortunately, instead are silently treated
4074    as 'x'.  The following induces an error, until -std is added to get
4075    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4076    array size at least.  It's necessary to write '\x00'==0 to get something
4077    that's true only with -std.  */
4078 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4079
4080 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4081    inside strings and character constants.  */
4082 #define FOO(x) 'x'
4083 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4084
4085 int test (int i, double x);
4086 struct s1 {int (*f) (int a);};
4087 struct s2 {int (*f) (double a);};
4088 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4089 int argc;
4090 char **argv;
4091 int
4092 main ()
4093 {
4094 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4095   ;
4096   return 0;
4097 }
4098 _ACEOF
4099 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4100         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4101 do
4102   CC="$ac_save_CC $ac_arg"
4103   if ac_fn_c_try_compile "$LINENO"; then :
4104   ac_cv_prog_cc_c89=$ac_arg
4105 fi
4106 rm -f core conftest.err conftest.$ac_objext
4107   test "x$ac_cv_prog_cc_c89" != "xno" && break
4108 done
4109 rm -f conftest.$ac_ext
4110 CC=$ac_save_CC
4111
4112 fi
4113 # AC_CACHE_VAL
4114 case "x$ac_cv_prog_cc_c89" in
4115   x)
4116     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4117 $as_echo "none needed" >&6; } ;;
4118   xno)
4119     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4120 $as_echo "unsupported" >&6; } ;;
4121   *)
4122     CC="$CC $ac_cv_prog_cc_c89"
4123     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4124 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4125 esac
4126 if test "x$ac_cv_prog_cc_c89" != xno; then :
4127
4128 fi
4129
4130 ac_ext=c
4131 ac_cpp='$CPP $CPPFLAGS'
4132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4135
4136 depcc="$CC"   am_compiler_list=
4137
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4139 $as_echo_n "checking dependency style of $depcc... " >&6; }
4140 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4141   $as_echo_n "(cached) " >&6
4142 else
4143   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4144   # We make a subdir and do the tests there.  Otherwise we can end up
4145   # making bogus files that we don't know about and never remove.  For
4146   # instance it was reported that on HP-UX the gcc test will end up
4147   # making a dummy file named `D' -- because `-MD' means `put the output
4148   # in D'.
4149   mkdir conftest.dir
4150   # Copy depcomp to subdir because otherwise we won't find it if we're
4151   # using a relative directory.
4152   cp "$am_depcomp" conftest.dir
4153   cd conftest.dir
4154   # We will build objects and dependencies in a subdirectory because
4155   # it helps to detect inapplicable dependency modes.  For instance
4156   # both Tru64's cc and ICC support -MD to output dependencies as a
4157   # side effect of compilation, but ICC will put the dependencies in
4158   # the current directory while Tru64 will put them in the object
4159   # directory.
4160   mkdir sub
4161
4162   am_cv_CC_dependencies_compiler_type=none
4163   if test "$am_compiler_list" = ""; then
4164      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4165   fi
4166   am__universal=false
4167   case " $depcc " in #(
4168      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4169      esac
4170
4171   for depmode in $am_compiler_list; do
4172     # Setup a source with many dependencies, because some compilers
4173     # like to wrap large dependency lists on column 80 (with \), and
4174     # we should not choose a depcomp mode which is confused by this.
4175     #
4176     # We need to recreate these files for each test, as the compiler may
4177     # overwrite some of them when testing with obscure command lines.
4178     # This happens at least with the AIX C compiler.
4179     : > sub/conftest.c
4180     for i in 1 2 3 4 5 6; do
4181       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4182       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4183       # Solaris 8's {/usr,}/bin/sh.
4184       touch sub/conftst$i.h
4185     done
4186     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4187
4188     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4189     # mode.  It turns out that the SunPro C++ compiler does not properly
4190     # handle `-M -o', and we need to detect this.  Also, some Intel
4191     # versions had trouble with output in subdirs
4192     am__obj=sub/conftest.${OBJEXT-o}
4193     am__minus_obj="-o $am__obj"
4194     case $depmode in
4195     gcc)
4196       # This depmode causes a compiler race in universal mode.
4197       test "$am__universal" = false || continue
4198       ;;
4199     nosideeffect)
4200       # after this tag, mechanisms are not by side-effect, so they'll
4201       # only be used when explicitly requested
4202       if test "x$enable_dependency_tracking" = xyes; then
4203         continue
4204       else
4205         break
4206       fi
4207       ;;
4208     msvisualcpp | msvcmsys)
4209       # This compiler won't grok `-c -o', but also, the minuso test has
4210       # not run yet.  These depmodes are late enough in the game, and
4211       # so weak that their functioning should not be impacted.
4212       am__obj=conftest.${OBJEXT-o}
4213       am__minus_obj=
4214       ;;
4215     none) break ;;
4216     esac
4217     if depmode=$depmode \
4218        source=sub/conftest.c object=$am__obj \
4219        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4220        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4221          >/dev/null 2>conftest.err &&
4222        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4223        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4224        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4225        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4226       # icc doesn't choke on unknown options, it will just issue warnings
4227       # or remarks (even with -Werror).  So we grep stderr for any message
4228       # that says an option was ignored or not supported.
4229       # When given -MP, icc 7.0 and 7.1 complain thusly:
4230       #   icc: Command line warning: ignoring option '-M'; no argument required
4231       # The diagnosis changed in icc 8.0:
4232       #   icc: Command line remark: option '-MP' not supported
4233       if (grep 'ignoring option' conftest.err ||
4234           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4235         am_cv_CC_dependencies_compiler_type=$depmode
4236         break
4237       fi
4238     fi
4239   done
4240
4241   cd ..
4242   rm -rf conftest.dir
4243 else
4244   am_cv_CC_dependencies_compiler_type=none
4245 fi
4246
4247 fi
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4249 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4250 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4251
4252  if
4253   test "x$enable_dependency_tracking" != xno \
4254   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4255   am__fastdepCC_TRUE=
4256   am__fastdepCC_FALSE='#'
4257 else
4258   am__fastdepCC_TRUE='#'
4259   am__fastdepCC_FALSE=
4260 fi
4261
4262
4263
4264
4265
4266 case "$am__api_version" in
4267     1.01234)
4268         as_fn_error "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
4269     ;;
4270     *)
4271     ;;
4272 esac
4273
4274 if test -n "0.35.5"; then
4275     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.35.5" >&5
4276 $as_echo_n "checking for intltool >= 0.35.5... " >&6; }
4277
4278     INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.5 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
4279     INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
4280     INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
4281
4282     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
4283 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
4284     test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
4285         as_fn_error "Your intltool is too old.  You need intltool 0.35.5 or later." "$LINENO" 5
4286 fi
4287
4288 # Extract the first word of "intltool-update", so it can be a program name with args.
4289 set dummy intltool-update; ac_word=$2
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4291 $as_echo_n "checking for $ac_word... " >&6; }
4292 if test "${ac_cv_path_INTLTOOL_UPDATE+set}" = set; then :
4293   $as_echo_n "(cached) " >&6
4294 else
4295   case $INTLTOOL_UPDATE in
4296   [\\/]* | ?:[\\/]*)
4297   ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
4298   ;;
4299   *)
4300   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4301 for as_dir in $PATH
4302 do
4303   IFS=$as_save_IFS
4304   test -z "$as_dir" && as_dir=.
4305     for ac_exec_ext in '' $ac_executable_extensions; do
4306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4307     ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
4308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4309     break 2
4310   fi
4311 done
4312   done
4313 IFS=$as_save_IFS
4314
4315   ;;
4316 esac
4317 fi
4318 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
4319 if test -n "$INTLTOOL_UPDATE"; then
4320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
4321 $as_echo "$INTLTOOL_UPDATE" >&6; }
4322 else
4323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4324 $as_echo "no" >&6; }
4325 fi
4326
4327
4328 # Extract the first word of "intltool-merge", so it can be a program name with args.
4329 set dummy intltool-merge; ac_word=$2
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4331 $as_echo_n "checking for $ac_word... " >&6; }
4332 if test "${ac_cv_path_INTLTOOL_MERGE+set}" = set; then :
4333   $as_echo_n "(cached) " >&6
4334 else
4335   case $INTLTOOL_MERGE in
4336   [\\/]* | ?:[\\/]*)
4337   ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
4338   ;;
4339   *)
4340   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341 for as_dir in $PATH
4342 do
4343   IFS=$as_save_IFS
4344   test -z "$as_dir" && as_dir=.
4345     for ac_exec_ext in '' $ac_executable_extensions; do
4346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4347     ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
4348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4349     break 2
4350   fi
4351 done
4352   done
4353 IFS=$as_save_IFS
4354
4355   ;;
4356 esac
4357 fi
4358 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
4359 if test -n "$INTLTOOL_MERGE"; then
4360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
4361 $as_echo "$INTLTOOL_MERGE" >&6; }
4362 else
4363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4364 $as_echo "no" >&6; }
4365 fi
4366
4367
4368 # Extract the first word of "intltool-extract", so it can be a program name with args.
4369 set dummy intltool-extract; ac_word=$2
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4371 $as_echo_n "checking for $ac_word... " >&6; }
4372 if test "${ac_cv_path_INTLTOOL_EXTRACT+set}" = set; then :
4373   $as_echo_n "(cached) " >&6
4374 else
4375   case $INTLTOOL_EXTRACT in
4376   [\\/]* | ?:[\\/]*)
4377   ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
4378   ;;
4379   *)
4380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381 for as_dir in $PATH
4382 do
4383   IFS=$as_save_IFS
4384   test -z "$as_dir" && as_dir=.
4385     for ac_exec_ext in '' $ac_executable_extensions; do
4386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4387     ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
4388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4389     break 2
4390   fi
4391 done
4392   done
4393 IFS=$as_save_IFS
4394
4395   ;;
4396 esac
4397 fi
4398 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
4399 if test -n "$INTLTOOL_EXTRACT"; then
4400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
4401 $as_echo "$INTLTOOL_EXTRACT" >&6; }
4402 else
4403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4404 $as_echo "no" >&6; }
4405 fi
4406
4407
4408 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
4409     as_fn_error "The intltool scripts were not found. Please install intltool." "$LINENO" 5
4410 fi
4411
4412   INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4413 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4414      INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4415      INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4416       INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
4417      INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4418    INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4419     INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4420 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4421        INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4422       INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4423       INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
4424       INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4425       INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4426     INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4427   INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4428     INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4429     INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4430    INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528 # Check the gettext tools to make sure they are GNU
4529 # Extract the first word of "xgettext", so it can be a program name with args.
4530 set dummy xgettext; ac_word=$2
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4532 $as_echo_n "checking for $ac_word... " >&6; }
4533 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
4534   $as_echo_n "(cached) " >&6
4535 else
4536   case $XGETTEXT in
4537   [\\/]* | ?:[\\/]*)
4538   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4539   ;;
4540   *)
4541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542 for as_dir in $PATH
4543 do
4544   IFS=$as_save_IFS
4545   test -z "$as_dir" && as_dir=.
4546     for ac_exec_ext in '' $ac_executable_extensions; do
4547   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4548     ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
4549     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4550     break 2
4551   fi
4552 done
4553   done
4554 IFS=$as_save_IFS
4555
4556   ;;
4557 esac
4558 fi
4559 XGETTEXT=$ac_cv_path_XGETTEXT
4560 if test -n "$XGETTEXT"; then
4561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
4562 $as_echo "$XGETTEXT" >&6; }
4563 else
4564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4565 $as_echo "no" >&6; }
4566 fi
4567
4568
4569 # Extract the first word of "msgmerge", so it can be a program name with args.
4570 set dummy msgmerge; ac_word=$2
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4572 $as_echo_n "checking for $ac_word... " >&6; }
4573 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
4574   $as_echo_n "(cached) " >&6
4575 else
4576   case $MSGMERGE in
4577   [\\/]* | ?:[\\/]*)
4578   ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4579   ;;
4580   *)
4581   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582 for as_dir in $PATH
4583 do
4584   IFS=$as_save_IFS
4585   test -z "$as_dir" && as_dir=.
4586     for ac_exec_ext in '' $ac_executable_extensions; do
4587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4588     ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
4589     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4590     break 2
4591   fi
4592 done
4593   done
4594 IFS=$as_save_IFS
4595
4596   ;;
4597 esac
4598 fi
4599 MSGMERGE=$ac_cv_path_MSGMERGE
4600 if test -n "$MSGMERGE"; then
4601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
4602 $as_echo "$MSGMERGE" >&6; }
4603 else
4604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4605 $as_echo "no" >&6; }
4606 fi
4607
4608
4609 # Extract the first word of "msgfmt", so it can be a program name with args.
4610 set dummy msgfmt; ac_word=$2
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4612 $as_echo_n "checking for $ac_word... " >&6; }
4613 if test "${ac_cv_path_MSGFMT+set}" = set; then :
4614   $as_echo_n "(cached) " >&6
4615 else
4616   case $MSGFMT in
4617   [\\/]* | ?:[\\/]*)
4618   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4619   ;;
4620   *)
4621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622 for as_dir in $PATH
4623 do
4624   IFS=$as_save_IFS
4625   test -z "$as_dir" && as_dir=.
4626     for ac_exec_ext in '' $ac_executable_extensions; do
4627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4628     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4630     break 2
4631   fi
4632 done
4633   done
4634 IFS=$as_save_IFS
4635
4636   ;;
4637 esac
4638 fi
4639 MSGFMT=$ac_cv_path_MSGFMT
4640 if test -n "$MSGFMT"; then
4641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4642 $as_echo "$MSGFMT" >&6; }
4643 else
4644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4645 $as_echo "no" >&6; }
4646 fi
4647
4648
4649 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4650 set dummy gmsgfmt; ac_word=$2
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4652 $as_echo_n "checking for $ac_word... " >&6; }
4653 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
4654   $as_echo_n "(cached) " >&6
4655 else
4656   case $GMSGFMT in
4657   [\\/]* | ?:[\\/]*)
4658   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4659   ;;
4660   *)
4661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH
4663 do
4664   IFS=$as_save_IFS
4665   test -z "$as_dir" && as_dir=.
4666     for ac_exec_ext in '' $ac_executable_extensions; do
4667   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4668     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4669     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4670     break 2
4671   fi
4672 done
4673   done
4674 IFS=$as_save_IFS
4675
4676   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4677   ;;
4678 esac
4679 fi
4680 GMSGFMT=$ac_cv_path_GMSGFMT
4681 if test -n "$GMSGFMT"; then
4682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
4683 $as_echo "$GMSGFMT" >&6; }
4684 else
4685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4686 $as_echo "no" >&6; }
4687 fi
4688
4689
4690 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
4691     as_fn_error "GNU gettext tools not found; required for intltool" "$LINENO" 5
4692 fi
4693 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
4694 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
4695 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
4696 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
4697     as_fn_error "GNU gettext tools not found; required for intltool" "$LINENO" 5
4698 fi
4699
4700 # Extract the first word of "perl", so it can be a program name with args.
4701 set dummy perl; ac_word=$2
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4703 $as_echo_n "checking for $ac_word... " >&6; }
4704 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then :
4705   $as_echo_n "(cached) " >&6
4706 else
4707   case $INTLTOOL_PERL in
4708   [\\/]* | ?:[\\/]*)
4709   ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
4710   ;;
4711   *)
4712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713 for as_dir in $PATH
4714 do
4715   IFS=$as_save_IFS
4716   test -z "$as_dir" && as_dir=.
4717     for ac_exec_ext in '' $ac_executable_extensions; do
4718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4719     ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
4720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4721     break 2
4722   fi
4723 done
4724   done
4725 IFS=$as_save_IFS
4726
4727   ;;
4728 esac
4729 fi
4730 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
4731 if test -n "$INTLTOOL_PERL"; then
4732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
4733 $as_echo "$INTLTOOL_PERL" >&6; }
4734 else
4735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4736 $as_echo "no" >&6; }
4737 fi
4738
4739
4740 if test -z "$INTLTOOL_PERL"; then
4741    as_fn_error "perl not found" "$LINENO" 5
4742 fi
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5
4744 $as_echo_n "checking for perl >= 5.8.1... " >&6; }
4745 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
4746 if test $? -ne 0; then
4747    as_fn_error "perl 5.8.1 is required for intltool" "$LINENO" 5
4748 else
4749    IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
4750    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
4751 $as_echo "$IT_PERL_VERSION" >&6; }
4752 fi
4753 if test "x" != "xno-xml"; then
4754    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
4755 $as_echo_n "checking for XML::Parser... " >&6; }
4756    if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
4757        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
4758 $as_echo "ok" >&6; }
4759    else
4760        as_fn_error "XML::Parser perl module is required for intltool" "$LINENO" 5
4761    fi
4762 fi
4763
4764 # Substitute ALL_LINGUAS so we can use it in po/Makefile
4765
4766
4767 # Set DATADIRNAME correctly if it is not set yet
4768 # (copied from glib-gettext.m4)
4769 if test -z "$DATADIRNAME"; then
4770   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771 /* end confdefs.h.  */
4772
4773 int
4774 main ()
4775 {
4776 extern int _nl_msg_cat_cntr;
4777                        return _nl_msg_cat_cntr
4778   ;
4779   return 0;
4780 }
4781 _ACEOF
4782 if ac_fn_c_try_link "$LINENO"; then :
4783   DATADIRNAME=share
4784 else
4785   case $host in
4786     *-*-solaris*)
4787                         ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
4788 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
4789   DATADIRNAME=share
4790 else
4791   DATADIRNAME=lib
4792 fi
4793
4794     ;;
4795     *)
4796     DATADIRNAME=lib
4797     ;;
4798     esac
4799 fi
4800 rm -f core conftest.err conftest.$ac_objext \
4801     conftest$ac_exeext conftest.$ac_ext
4802 fi
4803
4804
4805
4806
4807
4808
4809 GETTEXT_PACKAGE=lordsawar
4810
4811
4812 cat >>confdefs.h <<_ACEOF
4813 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
4814 _ACEOF
4815
4816 ac_ext=c
4817 ac_cpp='$CPP $CPPFLAGS'
4818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4822 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4823 # On Suns, sometimes $CPP names a directory.
4824 if test -n "$CPP" && test -d "$CPP"; then
4825   CPP=
4826 fi
4827 if test -z "$CPP"; then
4828   if test "${ac_cv_prog_CPP+set}" = set; then :
4829   $as_echo_n "(cached) " >&6
4830 else
4831       # Double quotes because CPP needs to be expanded
4832     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4833     do
4834       ac_preproc_ok=false
4835 for ac_c_preproc_warn_flag in '' yes
4836 do
4837   # Use a header file that comes with gcc, so configuring glibc
4838   # with a fresh cross-compiler works.
4839   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4840   # <limits.h> exists even on freestanding compilers.
4841   # On the NeXT, cc -E runs the code through the compiler's parser,
4842   # not just through cpp. "Syntax error" is here to catch this case.
4843   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844 /* end confdefs.h.  */
4845 #ifdef __STDC__
4846 # include <limits.h>
4847 #else
4848 # include <assert.h>
4849 #endif
4850                      Syntax error
4851 _ACEOF
4852 if ac_fn_c_try_cpp "$LINENO"; then :
4853
4854 else
4855   # Broken: fails on valid input.
4856 continue
4857 fi
4858 rm -f conftest.err conftest.$ac_ext
4859
4860   # OK, works on sane cases.  Now check whether nonexistent headers
4861   # can be detected and how.
4862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4863 /* end confdefs.h.  */
4864 #include <ac_nonexistent.h>
4865 _ACEOF
4866 if ac_fn_c_try_cpp "$LINENO"; then :
4867   # Broken: success on invalid input.
4868 continue
4869 else
4870   # Passes both tests.
4871 ac_preproc_ok=:
4872 break
4873 fi
4874 rm -f conftest.err conftest.$ac_ext
4875
4876 done
4877 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4878 rm -f conftest.err conftest.$ac_ext
4879 if $ac_preproc_ok; then :
4880   break
4881 fi
4882
4883     done
4884     ac_cv_prog_CPP=$CPP
4885
4886 fi
4887   CPP=$ac_cv_prog_CPP
4888 else
4889   ac_cv_prog_CPP=$CPP
4890 fi
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4892 $as_echo "$CPP" >&6; }
4893 ac_preproc_ok=false
4894 for ac_c_preproc_warn_flag in '' yes
4895 do
4896   # Use a header file that comes with gcc, so configuring glibc
4897   # with a fresh cross-compiler works.
4898   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4899   # <limits.h> exists even on freestanding compilers.
4900   # On the NeXT, cc -E runs the code through the compiler's parser,
4901   # not just through cpp. "Syntax error" is here to catch this case.
4902   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4903 /* end confdefs.h.  */
4904 #ifdef __STDC__
4905 # include <limits.h>
4906 #else
4907 # include <assert.h>
4908 #endif
4909                      Syntax error
4910 _ACEOF
4911 if ac_fn_c_try_cpp "$LINENO"; then :
4912
4913 else
4914   # Broken: fails on valid input.
4915 continue
4916 fi
4917 rm -f conftest.err conftest.$ac_ext
4918
4919   # OK, works on sane cases.  Now check whether nonexistent headers
4920   # can be detected and how.
4921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4922 /* end confdefs.h.  */
4923 #include <ac_nonexistent.h>
4924 _ACEOF
4925 if ac_fn_c_try_cpp "$LINENO"; then :
4926   # Broken: success on invalid input.
4927 continue
4928 else
4929   # Passes both tests.
4930 ac_preproc_ok=:
4931 break
4932 fi
4933 rm -f conftest.err conftest.$ac_ext
4934
4935 done
4936 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4937 rm -f conftest.err conftest.$ac_ext
4938 if $ac_preproc_ok; then :
4939
4940 else
4941   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4943 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4944 See \`config.log' for more details." "$LINENO" 5; }
4945 fi
4946
4947 ac_ext=c
4948 ac_cpp='$CPP $CPPFLAGS'
4949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4952
4953
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4955 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4956 if test "${ac_cv_path_GREP+set}" = set; then :
4957   $as_echo_n "(cached) " >&6
4958 else
4959   if test -z "$GREP"; then
4960   ac_path_GREP_found=false
4961   # Loop through the user's path and test for each of PROGNAME-LIST
4962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4964 do
4965   IFS=$as_save_IFS
4966   test -z "$as_dir" && as_dir=.
4967     for ac_prog in grep ggrep; do
4968     for ac_exec_ext in '' $ac_executable_extensions; do
4969       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4970       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4971 # Check for GNU ac_path_GREP and select it if it is found.
4972   # Check for GNU $ac_path_GREP
4973 case `"$ac_path_GREP" --version 2>&1` in
4974 *GNU*)
4975   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4976 *)
4977   ac_count=0
4978   $as_echo_n 0123456789 >"conftest.in"
4979   while :
4980   do
4981     cat "conftest.in" "conftest.in" >"conftest.tmp"
4982     mv "conftest.tmp" "conftest.in"
4983     cp "conftest.in" "conftest.nl"
4984     $as_echo 'GREP' >> "conftest.nl"
4985     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4986     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4987     as_fn_arith $ac_count + 1 && ac_count=$as_val
4988     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4989       # Best one so far, save it but keep looking for a better one
4990       ac_cv_path_GREP="$ac_path_GREP"
4991       ac_path_GREP_max=$ac_count
4992     fi
4993     # 10*(2^10) chars as input seems more than enough
4994     test $ac_count -gt 10 && break
4995   done
4996   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4997 esac
4998
4999       $ac_path_GREP_found && break 3
5000     done
5001   done
5002   done
5003 IFS=$as_save_IFS
5004   if test -z "$ac_cv_path_GREP"; then
5005     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5006   fi
5007 else
5008   ac_cv_path_GREP=$GREP
5009 fi
5010
5011 fi
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5013 $as_echo "$ac_cv_path_GREP" >&6; }
5014  GREP="$ac_cv_path_GREP"
5015
5016
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5018 $as_echo_n "checking for egrep... " >&6; }
5019 if test "${ac_cv_path_EGREP+set}" = set; then :
5020   $as_echo_n "(cached) " >&6
5021 else
5022   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5023    then ac_cv_path_EGREP="$GREP -E"
5024    else
5025      if test -z "$EGREP"; then
5026   ac_path_EGREP_found=false
5027   # Loop through the user's path and test for each of PROGNAME-LIST
5028   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5030 do
5031   IFS=$as_save_IFS
5032   test -z "$as_dir" && as_dir=.
5033     for ac_prog in egrep; do
5034     for ac_exec_ext in '' $ac_executable_extensions; do
5035       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5036       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5037 # Check for GNU ac_path_EGREP and select it if it is found.
5038   # Check for GNU $ac_path_EGREP
5039 case `"$ac_path_EGREP" --version 2>&1` in
5040 *GNU*)
5041   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5042 *)
5043   ac_count=0
5044   $as_echo_n 0123456789 >"conftest.in"
5045   while :
5046   do
5047     cat "conftest.in" "conftest.in" >"conftest.tmp"
5048     mv "conftest.tmp" "conftest.in"
5049     cp "conftest.in" "conftest.nl"
5050     $as_echo 'EGREP' >> "conftest.nl"
5051     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5052     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5053     as_fn_arith $ac_count + 1 && ac_count=$as_val
5054     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5055       # Best one so far, save it but keep looking for a better one
5056       ac_cv_path_EGREP="$ac_path_EGREP"
5057       ac_path_EGREP_max=$ac_count
5058     fi
5059     # 10*(2^10) chars as input seems more than enough
5060     test $ac_count -gt 10 && break
5061   done
5062   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5063 esac
5064
5065       $ac_path_EGREP_found && break 3
5066     done
5067   done
5068   done
5069 IFS=$as_save_IFS
5070   if test -z "$ac_cv_path_EGREP"; then
5071     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5072   fi
5073 else
5074   ac_cv_path_EGREP=$EGREP
5075 fi
5076
5077    fi
5078 fi
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5080 $as_echo "$ac_cv_path_EGREP" >&6; }
5081  EGREP="$ac_cv_path_EGREP"
5082
5083
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5085 $as_echo_n "checking for ANSI C header files... " >&6; }
5086 if test "${ac_cv_header_stdc+set}" = set; then :
5087   $as_echo_n "(cached) " >&6
5088 else
5089   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5090 /* end confdefs.h.  */
5091 #include <stdlib.h>
5092 #include <stdarg.h>
5093 #include <string.h>
5094 #include <float.h>
5095
5096 int
5097 main ()
5098 {
5099
5100   ;
5101   return 0;
5102 }
5103 _ACEOF
5104 if ac_fn_c_try_compile "$LINENO"; then :
5105   ac_cv_header_stdc=yes
5106 else
5107   ac_cv_header_stdc=no
5108 fi
5109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5110
5111 if test $ac_cv_header_stdc = yes; then
5112   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5114 /* end confdefs.h.  */
5115 #include <string.h>
5116
5117 _ACEOF
5118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5119   $EGREP "memchr" >/dev/null 2>&1; then :
5120
5121 else
5122   ac_cv_header_stdc=no
5123 fi
5124 rm -f conftest*
5125
5126 fi
5127
5128 if test $ac_cv_header_stdc = yes; then
5129   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5130   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5131 /* end confdefs.h.  */
5132 #include <stdlib.h>
5133
5134 _ACEOF
5135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5136   $EGREP "free" >/dev/null 2>&1; then :
5137
5138 else
5139   ac_cv_header_stdc=no
5140 fi
5141 rm -f conftest*
5142
5143 fi
5144
5145 if test $ac_cv_header_stdc = yes; then
5146   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5147   if test "$cross_compiling" = yes; then :
5148   :
5149 else
5150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5151 /* end confdefs.h.  */
5152 #include <ctype.h>
5153 #include <stdlib.h>
5154 #if ((' ' & 0x0FF) == 0x020)
5155 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5156 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5157 #else
5158 # define ISLOWER(c) \
5159                    (('a' <= (c) && (c) <= 'i') \
5160                      || ('j' <= (c) && (c) <= 'r') \
5161                      || ('s' <= (c) && (c) <= 'z'))
5162 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5163 #endif
5164
5165 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5166 int
5167 main ()
5168 {
5169   int i;
5170   for (i = 0; i < 256; i++)
5171     if (XOR (islower (i), ISLOWER (i))
5172         || toupper (i) != TOUPPER (i))
5173       return 2;
5174   return 0;
5175 }
5176 _ACEOF
5177 if ac_fn_c_try_run "$LINENO"; then :
5178
5179 else
5180   ac_cv_header_stdc=no
5181 fi
5182 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5183   conftest.$ac_objext conftest.beam conftest.$ac_ext
5184 fi
5185
5186 fi
5187 fi
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5189 $as_echo "$ac_cv_header_stdc" >&6; }
5190 if test $ac_cv_header_stdc = yes; then
5191
5192 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5193
5194 fi
5195
5196 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5197 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5198                   inttypes.h stdint.h unistd.h
5199 do :
5200   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5201 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5202 "
5203 eval as_val=\$$as_ac_Header
5204    if test "x$as_val" = x""yes; then :
5205   cat >>confdefs.h <<_ACEOF
5206 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5207 _ACEOF
5208
5209 fi
5210
5211 done
5212
5213
5214
5215    for ac_header in locale.h
5216 do :
5217   ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
5218 if test "x$ac_cv_header_locale_h" = x""yes; then :
5219   cat >>confdefs.h <<_ACEOF
5220 #define HAVE_LOCALE_H 1
5221 _ACEOF
5222
5223 fi
5224
5225 done
5226
5227     if test $ac_cv_header_locale_h = yes; then
5228     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
5229 $as_echo_n "checking for LC_MESSAGES... " >&6; }
5230 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
5231   $as_echo_n "(cached) " >&6
5232 else
5233   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5234 /* end confdefs.h.  */
5235 #include <locale.h>
5236 int
5237 main ()
5238 {
5239 return LC_MESSAGES
5240   ;
5241   return 0;
5242 }
5243 _ACEOF
5244 if ac_fn_c_try_link "$LINENO"; then :
5245   am_cv_val_LC_MESSAGES=yes
5246 else
5247   am_cv_val_LC_MESSAGES=no
5248 fi
5249 rm -f core conftest.err conftest.$ac_objext \
5250     conftest$ac_exeext conftest.$ac_ext
5251 fi
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
5253 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
5254     if test $am_cv_val_LC_MESSAGES = yes; then
5255
5256 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
5257
5258     fi
5259   fi
5260      USE_NLS=yes
5261
5262
5263     gt_cv_have_gettext=no
5264
5265     CATOBJEXT=NONE
5266     XGETTEXT=:
5267     INTLLIBS=
5268
5269     ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
5270 if test "x$ac_cv_header_libintl_h" = x""yes; then :
5271   gt_cv_func_dgettext_libintl="no"
5272       libintl_extra_libs=""
5273
5274       #
5275       # First check in libc
5276       #
5277       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
5278 $as_echo_n "checking for ngettext in libc... " >&6; }
5279 if test "${gt_cv_func_ngettext_libc+set}" = set; then :
5280   $as_echo_n "(cached) " >&6
5281 else
5282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283 /* end confdefs.h.  */
5284
5285 #include <libintl.h>
5286
5287 int
5288 main ()
5289 {
5290 return !ngettext ("","", 1)
5291   ;
5292   return 0;
5293 }
5294 _ACEOF
5295 if ac_fn_c_try_link "$LINENO"; then :
5296   gt_cv_func_ngettext_libc=yes
5297 else
5298   gt_cv_func_ngettext_libc=no
5299 fi
5300 rm -f core conftest.err conftest.$ac_objext \
5301     conftest$ac_exeext conftest.$ac_ext
5302
5303 fi
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
5305 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
5306
5307       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
5308               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
5309 $as_echo_n "checking for dgettext in libc... " >&6; }
5310 if test "${gt_cv_func_dgettext_libc+set}" = set; then :
5311   $as_echo_n "(cached) " >&6
5312 else
5313   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5314 /* end confdefs.h.  */
5315
5316 #include <libintl.h>
5317
5318 int
5319 main ()
5320 {
5321 return !dgettext ("","")
5322   ;
5323   return 0;
5324 }
5325 _ACEOF
5326 if ac_fn_c_try_link "$LINENO"; then :
5327   gt_cv_func_dgettext_libc=yes
5328 else
5329   gt_cv_func_dgettext_libc=no
5330 fi
5331 rm -f core conftest.err conftest.$ac_objext \
5332     conftest$ac_exeext conftest.$ac_ext
5333
5334 fi
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
5336 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
5337       fi
5338
5339       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
5340         for ac_func in bind_textdomain_codeset
5341 do :
5342   ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
5343 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
5344   cat >>confdefs.h <<_ACEOF
5345 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
5346 _ACEOF
5347
5348 fi
5349 done
5350
5351       fi
5352
5353       #
5354       # If we don't have everything we want, check in libintl
5355       #
5356       if test "$gt_cv_func_dgettext_libc" != "yes" \
5357          || test "$gt_cv_func_ngettext_libc" != "yes" \
5358          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
5359
5360         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
5361 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
5362 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then :
5363   $as_echo_n "(cached) " >&6
5364 else
5365   ac_check_lib_save_LIBS=$LIBS
5366 LIBS="-lintl  $LIBS"
5367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5368 /* end confdefs.h.  */
5369
5370 /* Override any GCC internal prototype to avoid an error.
5371    Use char because int might match the return type of a GCC
5372    builtin and then its argument prototype would still apply.  */
5373 #ifdef __cplusplus
5374 extern "C"
5375 #endif
5376 char bindtextdomain ();
5377 int
5378 main ()
5379 {
5380 return bindtextdomain ();
5381   ;
5382   return 0;
5383 }
5384 _ACEOF
5385 if ac_fn_c_try_link "$LINENO"; then :
5386   ac_cv_lib_intl_bindtextdomain=yes
5387 else
5388   ac_cv_lib_intl_bindtextdomain=no
5389 fi
5390 rm -f core conftest.err conftest.$ac_objext \
5391     conftest$ac_exeext conftest.$ac_ext
5392 LIBS=$ac_check_lib_save_LIBS
5393 fi
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
5395 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
5396 if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then :
5397   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
5398 $as_echo_n "checking for ngettext in -lintl... " >&6; }
5399 if test "${ac_cv_lib_intl_ngettext+set}" = set; then :
5400   $as_echo_n "(cached) " >&6
5401 else
5402   ac_check_lib_save_LIBS=$LIBS
5403 LIBS="-lintl  $LIBS"
5404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5405 /* end confdefs.h.  */
5406
5407 /* Override any GCC internal prototype to avoid an error.
5408    Use char because int might match the return type of a GCC
5409    builtin and then its argument prototype would still apply.  */
5410 #ifdef __cplusplus
5411 extern "C"
5412 #endif
5413 char ngettext ();
5414 int
5415 main ()
5416 {
5417 return ngettext ();
5418   ;
5419   return 0;
5420 }
5421 _ACEOF
5422 if ac_fn_c_try_link "$LINENO"; then :
5423   ac_cv_lib_intl_ngettext=yes
5424 else
5425   ac_cv_lib_intl_ngettext=no
5426 fi
5427 rm -f core conftest.err conftest.$ac_objext \
5428     conftest$ac_exeext conftest.$ac_ext
5429 LIBS=$ac_check_lib_save_LIBS
5430 fi
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
5432 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
5433 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then :
5434   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
5435 $as_echo_n "checking for dgettext in -lintl... " >&6; }
5436 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
5437   $as_echo_n "(cached) " >&6
5438 else
5439   ac_check_lib_save_LIBS=$LIBS
5440 LIBS="-lintl  $LIBS"
5441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5442 /* end confdefs.h.  */
5443
5444 /* Override any GCC internal prototype to avoid an error.
5445    Use char because int might match the return type of a GCC
5446    builtin and then its argument prototype would still apply.  */
5447 #ifdef __cplusplus
5448 extern "C"
5449 #endif
5450 char dgettext ();
5451 int
5452 main ()
5453 {
5454 return dgettext ();
5455   ;
5456   return 0;
5457 }
5458 _ACEOF
5459 if ac_fn_c_try_link "$LINENO"; then :
5460   ac_cv_lib_intl_dgettext=yes
5461 else
5462   ac_cv_lib_intl_dgettext=no
5463 fi
5464 rm -f core conftest.err conftest.$ac_objext \
5465     conftest$ac_exeext conftest.$ac_ext
5466 LIBS=$ac_check_lib_save_LIBS
5467 fi
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
5469 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
5470 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
5471   gt_cv_func_dgettext_libintl=yes
5472 fi
5473
5474 fi
5475
5476 fi
5477
5478
5479         if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
5480           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
5481 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
5482           { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
5483 $as_echo "" >&6; }
5484           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
5485 $as_echo_n "checking for ngettext in -lintl... " >&6; }
5486 if test "${ac_cv_lib_intl_ngettext+set}" = set; then :
5487   $as_echo_n "(cached) " >&6
5488 else
5489   ac_check_lib_save_LIBS=$LIBS
5490 LIBS="-lintl -liconv $LIBS"
5491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5492 /* end confdefs.h.  */
5493
5494 /* Override any GCC internal prototype to avoid an error.
5495    Use char because int might match the return type of a GCC
5496    builtin and then its argument prototype would still apply.  */
5497 #ifdef __cplusplus
5498 extern "C"
5499 #endif
5500 char ngettext ();
5501 int
5502 main ()
5503 {
5504 return ngettext ();
5505   ;
5506   return 0;
5507 }
5508 _ACEOF
5509 if ac_fn_c_try_link "$LINENO"; then :
5510   ac_cv_lib_intl_ngettext=yes
5511 else
5512   ac_cv_lib_intl_ngettext=no
5513 fi
5514 rm -f core conftest.err conftest.$ac_objext \
5515     conftest$ac_exeext conftest.$ac_ext
5516 LIBS=$ac_check_lib_save_LIBS
5517 fi
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
5519 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
5520 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then :
5521   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
5522 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
5523 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then :
5524   $as_echo_n "(cached) " >&6
5525 else
5526   ac_check_lib_save_LIBS=$LIBS
5527 LIBS="-lintl -liconv $LIBS"
5528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5529 /* end confdefs.h.  */
5530
5531 /* Override any GCC internal prototype to avoid an error.
5532    Use char because int might match the return type of a GCC
5533    builtin and then its argument prototype would still apply.  */
5534 #ifdef __cplusplus
5535 extern "C"
5536 #endif
5537 char dcgettext ();
5538 int
5539 main ()
5540 {
5541 return dcgettext ();
5542   ;
5543   return 0;
5544 }
5545 _ACEOF
5546 if ac_fn_c_try_link "$LINENO"; then :
5547   ac_cv_lib_intl_dcgettext=yes
5548 else
5549   ac_cv_lib_intl_dcgettext=no
5550 fi
5551 rm -f core conftest.err conftest.$ac_objext \
5552     conftest$ac_exeext conftest.$ac_ext
5553 LIBS=$ac_check_lib_save_LIBS
5554 fi
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
5556 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
5557 if test "x$ac_cv_lib_intl_dcgettext" = x""yes; then :
5558   gt_cv_func_dgettext_libintl=yes
5559                         libintl_extra_libs=-liconv
5560 else
5561   :
5562 fi
5563
5564 else
5565   :
5566 fi
5567
5568         fi
5569
5570         #
5571         # If we found libintl, then check in it for bind_textdomain_codeset();
5572         # we'll prefer libc if neither have bind_textdomain_codeset(),
5573         # and both have dgettext and ngettext
5574         #
5575         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
5576           glib_save_LIBS="$LIBS"
5577           LIBS="$LIBS -lintl $libintl_extra_libs"
5578           unset ac_cv_func_bind_textdomain_codeset
5579           for ac_func in bind_textdomain_codeset
5580 do :
5581   ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
5582 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
5583   cat >>confdefs.h <<_ACEOF
5584 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
5585 _ACEOF
5586
5587 fi
5588 done
5589
5590           LIBS="$glib_save_LIBS"
5591
5592           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
5593             gt_cv_func_dgettext_libc=no
5594           else
5595             if test "$gt_cv_func_dgettext_libc" = "yes" \
5596                 && test "$gt_cv_func_ngettext_libc" = "yes"; then
5597               gt_cv_func_dgettext_libintl=no
5598             fi
5599           fi
5600         fi
5601       fi
5602
5603       if test "$gt_cv_func_dgettext_libc" = "yes" \
5604         || test "$gt_cv_func_dgettext_libintl" = "yes"; then
5605         gt_cv_have_gettext=yes
5606       fi
5607
5608       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
5609         INTLLIBS="-lintl $libintl_extra_libs"
5610       fi
5611
5612       if test "$gt_cv_have_gettext" = "yes"; then
5613
5614 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
5615
5616         # Extract the first word of "msgfmt", so it can be a program name with args.
5617 set dummy msgfmt; ac_word=$2
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5619 $as_echo_n "checking for $ac_word... " >&6; }
5620 if test "${ac_cv_path_MSGFMT+set}" = set; then :
5621   $as_echo_n "(cached) " >&6
5622 else
5623   case "$MSGFMT" in
5624   /*)
5625   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5626   ;;
5627   *)
5628   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5629   for ac_dir in $PATH; do
5630     test -z "$ac_dir" && ac_dir=.
5631     if test -f $ac_dir/$ac_word; then
5632       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5633         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5634         break
5635       fi
5636     fi
5637   done
5638   IFS="$ac_save_ifs"
5639   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5640   ;;
5641 esac
5642 fi
5643 MSGFMT="$ac_cv_path_MSGFMT"
5644 if test "$MSGFMT" != "no"; then
5645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5646 $as_echo "$MSGFMT" >&6; }
5647 else
5648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649 $as_echo "no" >&6; }
5650 fi
5651         if test "$MSGFMT" != "no"; then
5652           glib_save_LIBS="$LIBS"
5653           LIBS="$LIBS $INTLLIBS"
5654           for ac_func in dcgettext
5655 do :
5656   ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
5657 if test "x$ac_cv_func_dcgettext" = x""yes; then :
5658   cat >>confdefs.h <<_ACEOF
5659 #define HAVE_DCGETTEXT 1
5660 _ACEOF
5661
5662 fi
5663 done
5664
5665           MSGFMT_OPTS=
5666           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
5667 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
5668           cat >conftest.foo <<_ACEOF
5669
5670 msgid ""
5671 msgstr ""
5672 "Content-Type: text/plain; charset=UTF-8\n"
5673 "Project-Id-Version: test 1.0\n"
5674 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
5675 "Last-Translator: test <foo@bar.xx>\n"
5676 "Language-Team: C <LL@li.org>\n"
5677 "MIME-Version: 1.0\n"
5678 "Content-Transfer-Encoding: 8bit\n"
5679
5680 _ACEOF
5681 if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
5682   ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
5683   ac_status=$?
5684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5685   test $ac_status = 0; }; then
5686   MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5687 $as_echo "yes" >&6; }
5688 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5689 $as_echo "no" >&6; }
5690 echo "$as_me: failed input was:" >&5
5691 sed 's/^/| /' conftest.foo >&5
5692 fi
5693
5694           # Extract the first word of "gmsgfmt", so it can be a program name with args.
5695 set dummy gmsgfmt; ac_word=$2
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5697 $as_echo_n "checking for $ac_word... " >&6; }
5698 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
5699   $as_echo_n "(cached) " >&6
5700 else
5701   case $GMSGFMT in
5702   [\\/]* | ?:[\\/]*)
5703   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5704   ;;
5705   *)
5706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707 for as_dir in $PATH
5708 do
5709   IFS=$as_save_IFS
5710   test -z "$as_dir" && as_dir=.
5711     for ac_exec_ext in '' $ac_executable_extensions; do
5712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5713     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5715     break 2
5716   fi
5717 done
5718   done
5719 IFS=$as_save_IFS
5720
5721   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5722   ;;
5723 esac
5724 fi
5725 GMSGFMT=$ac_cv_path_GMSGFMT
5726 if test -n "$GMSGFMT"; then
5727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5728 $as_echo "$GMSGFMT" >&6; }
5729 else
5730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5731 $as_echo "no" >&6; }
5732 fi
5733
5734
5735           # Extract the first word of "xgettext", so it can be a program name with args.
5736 set dummy xgettext; ac_word=$2
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5738 $as_echo_n "checking for $ac_word... " >&6; }
5739 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
5740   $as_echo_n "(cached) " >&6
5741 else
5742   case "$XGETTEXT" in
5743   /*)
5744   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5745   ;;
5746   *)
5747   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5748   for ac_dir in $PATH; do
5749     test -z "$ac_dir" && ac_dir=.
5750     if test -f $ac_dir/$ac_word; then
5751       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5752         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5753         break
5754       fi
5755     fi
5756   done
5757   IFS="$ac_save_ifs"
5758   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5759   ;;
5760 esac
5761 fi
5762 XGETTEXT="$ac_cv_path_XGETTEXT"
5763 if test "$XGETTEXT" != ":"; then
5764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5765 $as_echo "$XGETTEXT" >&6; }
5766 else
5767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5768 $as_echo "no" >&6; }
5769 fi
5770
5771           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5772 /* end confdefs.h.  */
5773
5774 int
5775 main ()
5776 {
5777 extern int _nl_msg_cat_cntr;
5778                          return _nl_msg_cat_cntr
5779   ;
5780   return 0;
5781 }
5782 _ACEOF
5783 if ac_fn_c_try_link "$LINENO"; then :
5784   CATOBJEXT=.gmo
5785              DATADIRNAME=share
5786 else
5787   case $host in
5788             *-*-solaris*)
5789                                                                 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
5790 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
5791   CATOBJEXT=.gmo
5792                DATADIRNAME=share
5793 else
5794   CATOBJEXT=.mo
5795                DATADIRNAME=lib
5796 fi
5797
5798             ;;
5799             *)
5800             CATOBJEXT=.mo
5801             DATADIRNAME=lib
5802             ;;
5803             esac
5804 fi
5805 rm -f core conftest.err conftest.$ac_objext \
5806     conftest$ac_exeext conftest.$ac_ext
5807           LIBS="$glib_save_LIBS"
5808           INSTOBJEXT=.mo
5809         else
5810           gt_cv_have_gettext=no
5811         fi
5812       fi
5813
5814 fi
5815
5816
5817
5818     if test "$gt_cv_have_gettext" = "yes" ; then
5819
5820 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5821
5822     fi
5823
5824         if test "$XGETTEXT" != ":"; then
5825                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5826         : ;
5827       else
5828         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
5829 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
5830         XGETTEXT=":"
5831       fi
5832     fi
5833
5834     # We need to process the po/ directory.
5835     POSUB=po
5836
5837     ac_config_commands="$ac_config_commands default-1"
5838
5839
5840                 for lang in $ALL_LINGUAS; do
5841       GMOFILES="$GMOFILES $lang.gmo"
5842       POFILES="$POFILES $lang.po"
5843     done
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857    if test "$gt_cv_have_gettext" = "yes"; then
5858      if test "x$ALL_LINGUAS" = "x"; then
5859        LINGUAS=
5860      else
5861        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
5862 $as_echo_n "checking for catalogs to be installed... " >&6; }
5863        NEW_LINGUAS=
5864        for presentlang in $ALL_LINGUAS; do
5865          useit=no
5866          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
5867            desiredlanguages="$LINGUAS"
5868          else
5869            desiredlanguages="$ALL_LINGUAS"
5870          fi
5871          for desiredlang in $desiredlanguages; do
5872            # Use the presentlang catalog if desiredlang is
5873            #   a. equal to presentlang, or
5874            #   b. a variant of presentlang (because in this case,
5875            #      presentlang can be used as a fallback for messages
5876            #      which are not translated in the desiredlang catalog).
5877            case "$desiredlang" in
5878              "$presentlang"*) useit=yes;;
5879            esac
5880          done
5881          if test $useit = yes; then
5882            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
5883          fi
5884        done
5885        LINGUAS=$NEW_LINGUAS
5886        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
5887 $as_echo "$LINGUAS" >&6; }
5888      fi
5889
5890           if test -n "$LINGUAS"; then
5891        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5892      fi
5893    fi
5894
5895             MKINSTALLDIRS=
5896    if test -n "$ac_aux_dir"; then
5897      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
5898    fi
5899    if test -z "$MKINSTALLDIRS"; then
5900      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5901    fi
5902
5903
5904          test -d po || mkdir po
5905    if test "x$srcdir" != "x."; then
5906      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5907        posrcprefix="$srcdir/"
5908      else
5909        posrcprefix="../$srcdir/"
5910      fi
5911    else
5912      posrcprefix="../"
5913    fi
5914    rm -f po/POTFILES
5915    sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5916         < $srcdir/po/POTFILES.in > po/POTFILES
5917
5918
5919 PROGRAMNAME_LOCALEDIR=${datadir}/locale
5920
5921
5922 ac_ext=cpp
5923 ac_cpp='$CXXCPP $CPPFLAGS'
5924 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5925 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5926 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5927 if test -z "$CXX"; then
5928   if test -n "$CCC"; then
5929     CXX=$CCC
5930   else
5931     if test -n "$ac_tool_prefix"; then
5932   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5933   do
5934     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5935 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5937 $as_echo_n "checking for $ac_word... " >&6; }
5938 if test "${ac_cv_prog_CXX+set}" = set; then :
5939   $as_echo_n "(cached) " >&6
5940 else
5941   if test -n "$CXX"; then
5942   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5943 else
5944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945 for as_dir in $PATH
5946 do
5947   IFS=$as_save_IFS
5948   test -z "$as_dir" && as_dir=.
5949     for ac_exec_ext in '' $ac_executable_extensions; do
5950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5951     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5953     break 2
5954   fi
5955 done
5956   done
5957 IFS=$as_save_IFS
5958
5959 fi
5960 fi
5961 CXX=$ac_cv_prog_CXX
5962 if test -n "$CXX"; then
5963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5964 $as_echo "$CXX" >&6; }
5965 else
5966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5967 $as_echo "no" >&6; }
5968 fi
5969
5970
5971     test -n "$CXX" && break
5972   done
5973 fi
5974 if test -z "$CXX"; then
5975   ac_ct_CXX=$CXX
5976   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5977 do
5978   # Extract the first word of "$ac_prog", so it can be a program name with args.
5979 set dummy $ac_prog; ac_word=$2
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5981 $as_echo_n "checking for $ac_word... " >&6; }
5982 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5983   $as_echo_n "(cached) " >&6
5984 else
5985   if test -n "$ac_ct_CXX"; then
5986   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5987 else
5988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5989 for as_dir in $PATH
5990 do
5991   IFS=$as_save_IFS
5992   test -z "$as_dir" && as_dir=.
5993     for ac_exec_ext in '' $ac_executable_extensions; do
5994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5995     ac_cv_prog_ac_ct_CXX="$ac_prog"
5996     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5997     break 2
5998   fi
5999 done
6000   done
6001 IFS=$as_save_IFS
6002
6003 fi
6004 fi
6005 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6006 if test -n "$ac_ct_CXX"; then
6007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6008 $as_echo "$ac_ct_CXX" >&6; }
6009 else
6010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6011 $as_echo "no" >&6; }
6012 fi
6013
6014
6015   test -n "$ac_ct_CXX" && break
6016 done
6017
6018   if test "x$ac_ct_CXX" = x; then
6019     CXX="g++"
6020   else
6021     case $cross_compiling:$ac_tool_warned in
6022 yes:)
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6025 ac_tool_warned=yes ;;
6026 esac
6027     CXX=$ac_ct_CXX
6028   fi
6029 fi
6030
6031   fi
6032 fi
6033 # Provide some information about the compiler.
6034 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6035 set X $ac_compile
6036 ac_compiler=$2
6037 for ac_option in --version -v -V -qversion; do
6038   { { ac_try="$ac_compiler $ac_option >&5"
6039 case "(($ac_try" in
6040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6041   *) ac_try_echo=$ac_try;;
6042 esac
6043 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6044 $as_echo "$ac_try_echo"; } >&5
6045   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6046   ac_status=$?
6047   if test -s conftest.err; then
6048     sed '10a\
6049 ... rest of stderr output deleted ...
6050          10q' conftest.err >conftest.er1
6051     cat conftest.er1 >&5
6052     rm -f conftest.er1 conftest.err
6053   fi
6054   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6055   test $ac_status = 0; }
6056 done
6057
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6059 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6060 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6061   $as_echo_n "(cached) " >&6
6062 else
6063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064 /* end confdefs.h.  */
6065
6066 int
6067 main ()
6068 {
6069 #ifndef __GNUC__
6070        choke me
6071 #endif
6072
6073   ;
6074   return 0;
6075 }
6076 _ACEOF
6077 if ac_fn_cxx_try_compile "$LINENO"; then :
6078   ac_compiler_gnu=yes
6079 else
6080   ac_compiler_gnu=no
6081 fi
6082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6083 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6084
6085 fi
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6087 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6088 if test $ac_compiler_gnu = yes; then
6089   GXX=yes
6090 else
6091   GXX=
6092 fi
6093 ac_test_CXXFLAGS=${CXXFLAGS+set}
6094 ac_save_CXXFLAGS=$CXXFLAGS
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6096 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6097 if test "${ac_cv_prog_cxx_g+set}" = set; then :
6098   $as_echo_n "(cached) " >&6
6099 else
6100   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6101    ac_cxx_werror_flag=yes
6102    ac_cv_prog_cxx_g=no
6103    CXXFLAGS="-g"
6104    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6105 /* end confdefs.h.  */
6106
6107 int
6108 main ()
6109 {
6110
6111   ;
6112   return 0;
6113 }
6114 _ACEOF
6115 if ac_fn_cxx_try_compile "$LINENO"; then :
6116   ac_cv_prog_cxx_g=yes
6117 else
6118   CXXFLAGS=""
6119       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6120 /* end confdefs.h.  */
6121
6122 int
6123 main ()
6124 {
6125
6126   ;
6127   return 0;
6128 }
6129 _ACEOF
6130 if ac_fn_cxx_try_compile "$LINENO"; then :
6131
6132 else
6133   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6134          CXXFLAGS="-g"
6135          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6136 /* end confdefs.h.  */
6137
6138 int
6139 main ()
6140 {
6141
6142   ;
6143   return 0;
6144 }
6145 _ACEOF
6146 if ac_fn_cxx_try_compile "$LINENO"; then :
6147   ac_cv_prog_cxx_g=yes
6148 fi
6149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6150 fi
6151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6152 fi
6153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6154    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6155 fi
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6157 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6158 if test "$ac_test_CXXFLAGS" = set; then
6159   CXXFLAGS=$ac_save_CXXFLAGS
6160 elif test $ac_cv_prog_cxx_g = yes; then
6161   if test "$GXX" = yes; then
6162     CXXFLAGS="-g -O2"
6163   else
6164     CXXFLAGS="-g"
6165   fi
6166 else
6167   if test "$GXX" = yes; then
6168     CXXFLAGS="-O2"
6169   else
6170     CXXFLAGS=
6171   fi
6172 fi
6173 ac_ext=c
6174 ac_cpp='$CPP $CPPFLAGS'
6175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6178
6179 depcc="$CXX"  am_compiler_list=
6180
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6182 $as_echo_n "checking dependency style of $depcc... " >&6; }
6183 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6184   $as_echo_n "(cached) " >&6
6185 else
6186   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6187   # We make a subdir and do the tests there.  Otherwise we can end up
6188   # making bogus files that we don't know about and never remove.  For
6189   # instance it was reported that on HP-UX the gcc test will end up
6190   # making a dummy file named `D' -- because `-MD' means `put the output
6191   # in D'.
6192   mkdir conftest.dir
6193   # Copy depcomp to subdir because otherwise we won't find it if we're
6194   # using a relative directory.
6195   cp "$am_depcomp" conftest.dir
6196   cd conftest.dir
6197   # We will build objects and dependencies in a subdirectory because
6198   # it helps to detect inapplicable dependency modes.  For instance
6199   # both Tru64's cc and ICC support -MD to output dependencies as a
6200   # side effect of compilation, but ICC will put the dependencies in
6201   # the current directory while Tru64 will put them in the object
6202   # directory.
6203   mkdir sub
6204
6205   am_cv_CXX_dependencies_compiler_type=none
6206   if test "$am_compiler_list" = ""; then
6207      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6208   fi
6209   am__universal=false
6210   case " $depcc " in #(
6211      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6212      esac
6213
6214   for depmode in $am_compiler_list; do
6215     # Setup a source with many dependencies, because some compilers
6216     # like to wrap large dependency lists on column 80 (with \), and
6217     # we should not choose a depcomp mode which is confused by this.
6218     #
6219     # We need to recreate these files for each test, as the compiler may
6220     # overwrite some of them when testing with obscure command lines.
6221     # This happens at least with the AIX C compiler.
6222     : > sub/conftest.c
6223     for i in 1 2 3 4 5 6; do
6224       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6225       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6226       # Solaris 8's {/usr,}/bin/sh.
6227       touch sub/conftst$i.h
6228     done
6229     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6230
6231     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6232     # mode.  It turns out that the SunPro C++ compiler does not properly
6233     # handle `-M -o', and we need to detect this.  Also, some Intel
6234     # versions had trouble with output in subdirs
6235     am__obj=sub/conftest.${OBJEXT-o}
6236     am__minus_obj="-o $am__obj"
6237     case $depmode in
6238     gcc)
6239       # This depmode causes a compiler race in universal mode.
6240       test "$am__universal" = false || continue
6241       ;;
6242     nosideeffect)
6243       # after this tag, mechanisms are not by side-effect, so they'll
6244       # only be used when explicitly requested
6245       if test "x$enable_dependency_tracking" = xyes; then
6246         continue
6247       else
6248         break
6249       fi
6250       ;;
6251     msvisualcpp | msvcmsys)
6252       # This compiler won't grok `-c -o', but also, the minuso test has
6253       # not run yet.  These depmodes are late enough in the game, and
6254       # so weak that their functioning should not be impacted.
6255       am__obj=conftest.${OBJEXT-o}
6256       am__minus_obj=
6257       ;;
6258     none) break ;;
6259     esac
6260     if depmode=$depmode \
6261        source=sub/conftest.c object=$am__obj \
6262        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6263        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6264          >/dev/null 2>conftest.err &&
6265        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6266        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6267        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6268        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6269       # icc doesn't choke on unknown options, it will just issue warnings
6270       # or remarks (even with -Werror).  So we grep stderr for any message
6271       # that says an option was ignored or not supported.
6272       # When given -MP, icc 7.0 and 7.1 complain thusly:
6273       #   icc: Command line warning: ignoring option '-M'; no argument required
6274       # The diagnosis changed in icc 8.0:
6275       #   icc: Command line remark: option '-MP' not supported
6276       if (grep 'ignoring option' conftest.err ||
6277           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6278         am_cv_CXX_dependencies_compiler_type=$depmode
6279         break
6280       fi
6281     fi
6282   done
6283
6284   cd ..
6285   rm -rf conftest.dir
6286 else
6287   am_cv_CXX_dependencies_compiler_type=none
6288 fi
6289
6290 fi
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6292 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6293 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6294
6295  if
6296   test "x$enable_dependency_tracking" != xno \
6297   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6298   am__fastdepCXX_TRUE=
6299   am__fastdepCXX_FALSE='#'
6300 else
6301   am__fastdepCXX_TRUE='#'
6302   am__fastdepCXX_FALSE=
6303 fi
6304
6305
6306 case `pwd` in
6307   *\ * | *\     *)
6308     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6309 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6310 esac
6311
6312
6313
6314 macro_version='2.2.6'
6315 macro_revision='1.3012'
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329 ltmain="$ac_aux_dir/ltmain.sh"
6330
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6332 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6333 if test "${ac_cv_path_SED+set}" = set; then :
6334   $as_echo_n "(cached) " >&6
6335 else
6336             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6337      for ac_i in 1 2 3 4 5 6 7; do
6338        ac_script="$ac_script$as_nl$ac_script"
6339      done
6340      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6341      { ac_script=; unset ac_script;}
6342      if test -z "$SED"; then
6343   ac_path_SED_found=false
6344   # Loop through the user's path and test for each of PROGNAME-LIST
6345   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346 for as_dir in $PATH
6347 do
6348   IFS=$as_save_IFS
6349   test -z "$as_dir" && as_dir=.
6350     for ac_prog in sed gsed; do
6351     for ac_exec_ext in '' $ac_executable_extensions; do
6352       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6353       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6354 # Check for GNU ac_path_SED and select it if it is found.
6355   # Check for GNU $ac_path_SED
6356 case `"$ac_path_SED" --version 2>&1` in
6357 *GNU*)
6358   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6359 *)
6360   ac_count=0
6361   $as_echo_n 0123456789 >"conftest.in"
6362   while :
6363   do
6364     cat "conftest.in" "conftest.in" >"conftest.tmp"
6365     mv "conftest.tmp" "conftest.in"
6366     cp "conftest.in" "conftest.nl"
6367     $as_echo '' >> "conftest.nl"
6368     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6369     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6370     as_fn_arith $ac_count + 1 && ac_count=$as_val
6371     if test $ac_count -gt ${ac_path_SED_max-0}; then
6372       # Best one so far, save it but keep looking for a better one
6373       ac_cv_path_SED="$ac_path_SED"
6374       ac_path_SED_max=$ac_count
6375     fi
6376     # 10*(2^10) chars as input seems more than enough
6377     test $ac_count -gt 10 && break
6378   done
6379   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6380 esac
6381
6382       $ac_path_SED_found && break 3
6383     done
6384   done
6385   done
6386 IFS=$as_save_IFS
6387   if test -z "$ac_cv_path_SED"; then
6388     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6389   fi
6390 else
6391   ac_cv_path_SED=$SED
6392 fi
6393
6394 fi
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6396 $as_echo "$ac_cv_path_SED" >&6; }
6397  SED="$ac_cv_path_SED"
6398   rm -f conftest.sed
6399
6400 test -z "$SED" && SED=sed
6401 Xsed="$SED -e 1s/^X//"
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6414 $as_echo_n "checking for fgrep... " >&6; }
6415 if test "${ac_cv_path_FGREP+set}" = set; then :
6416   $as_echo_n "(cached) " >&6
6417 else
6418   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6419    then ac_cv_path_FGREP="$GREP -F"
6420    else
6421      if test -z "$FGREP"; then
6422   ac_path_FGREP_found=false
6423   # Loop through the user's path and test for each of PROGNAME-LIST
6424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6426 do
6427   IFS=$as_save_IFS
6428   test -z "$as_dir" && as_dir=.
6429     for ac_prog in fgrep; do
6430     for ac_exec_ext in '' $ac_executable_extensions; do
6431       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6432       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6433 # Check for GNU ac_path_FGREP and select it if it is found.
6434   # Check for GNU $ac_path_FGREP
6435 case `"$ac_path_FGREP" --version 2>&1` in
6436 *GNU*)
6437   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6438 *)
6439   ac_count=0
6440   $as_echo_n 0123456789 >"conftest.in"
6441   while :
6442   do
6443     cat "conftest.in" "conftest.in" >"conftest.tmp"
6444     mv "conftest.tmp" "conftest.in"
6445     cp "conftest.in" "conftest.nl"
6446     $as_echo 'FGREP' >> "conftest.nl"
6447     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6448     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6449     as_fn_arith $ac_count + 1 && ac_count=$as_val
6450     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6451       # Best one so far, save it but keep looking for a better one
6452       ac_cv_path_FGREP="$ac_path_FGREP"
6453       ac_path_FGREP_max=$ac_count
6454     fi
6455     # 10*(2^10) chars as input seems more than enough
6456     test $ac_count -gt 10 && break
6457   done
6458   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6459 esac
6460
6461       $ac_path_FGREP_found && break 3
6462     done
6463   done
6464   done
6465 IFS=$as_save_IFS
6466   if test -z "$ac_cv_path_FGREP"; then
6467     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6468   fi
6469 else
6470   ac_cv_path_FGREP=$FGREP
6471 fi
6472
6473    fi
6474 fi
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6476 $as_echo "$ac_cv_path_FGREP" >&6; }
6477  FGREP="$ac_cv_path_FGREP"
6478
6479
6480 test -z "$GREP" && GREP=grep
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500 # Check whether --with-gnu-ld was given.
6501 if test "${with_gnu_ld+set}" = set; then :
6502   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6503 else
6504   with_gnu_ld=no
6505 fi
6506
6507 ac_prog=ld
6508 if test "$GCC" = yes; then
6509   # Check if gcc -print-prog-name=ld gives a path.
6510   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6511 $as_echo_n "checking for ld used by $CC... " >&6; }
6512   case $host in
6513   *-*-mingw*)
6514     # gcc leaves a trailing carriage return which upsets mingw
6515     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6516   *)
6517     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6518   esac
6519   case $ac_prog in
6520     # Accept absolute paths.
6521     [\\/]* | ?:[\\/]*)
6522       re_direlt='/[^/][^/]*/\.\./'
6523       # Canonicalize the pathname of ld
6524       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6525       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6526         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6527       done
6528       test -z "$LD" && LD="$ac_prog"
6529       ;;
6530   "")
6531     # If it fails, then pretend we aren't using GCC.
6532     ac_prog=ld
6533     ;;
6534   *)
6535     # If it is relative, then search for the first ld in PATH.
6536     with_gnu_ld=unknown
6537     ;;
6538   esac
6539 elif test "$with_gnu_ld" = yes; then
6540   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6541 $as_echo_n "checking for GNU ld... " >&6; }
6542 else
6543   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6544 $as_echo_n "checking for non-GNU ld... " >&6; }
6545 fi
6546 if test "${lt_cv_path_LD+set}" = set; then :
6547   $as_echo_n "(cached) " >&6
6548 else
6549   if test -z "$LD"; then
6550   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6551   for ac_dir in $PATH; do
6552     IFS="$lt_save_ifs"
6553     test -z "$ac_dir" && ac_dir=.
6554     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6555       lt_cv_path_LD="$ac_dir/$ac_prog"
6556       # Check to see if the program is GNU ld.  I'd rather use --version,
6557       # but apparently some variants of GNU ld only accept -v.
6558       # Break only if it was the GNU/non-GNU ld that we prefer.
6559       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6560       *GNU* | *'with BFD'*)
6561         test "$with_gnu_ld" != no && break
6562         ;;
6563       *)
6564         test "$with_gnu_ld" != yes && break
6565         ;;
6566       esac
6567     fi
6568   done
6569   IFS="$lt_save_ifs"
6570 else
6571   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6572 fi
6573 fi
6574
6575 LD="$lt_cv_path_LD"
6576 if test -n "$LD"; then
6577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6578 $as_echo "$LD" >&6; }
6579 else
6580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6581 $as_echo "no" >&6; }
6582 fi
6583 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6585 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6586 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6587   $as_echo_n "(cached) " >&6
6588 else
6589   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6590 case `$LD -v 2>&1 </dev/null` in
6591 *GNU* | *'with BFD'*)
6592   lt_cv_prog_gnu_ld=yes
6593   ;;
6594 *)
6595   lt_cv_prog_gnu_ld=no
6596   ;;
6597 esac
6598 fi
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6600 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6601 with_gnu_ld=$lt_cv_prog_gnu_ld
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6612 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6613 if test "${lt_cv_path_NM+set}" = set; then :
6614   $as_echo_n "(cached) " >&6
6615 else
6616   if test -n "$NM"; then
6617   # Let the user override the test.
6618   lt_cv_path_NM="$NM"
6619 else
6620   lt_nm_to_check="${ac_tool_prefix}nm"
6621   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6622     lt_nm_to_check="$lt_nm_to_check nm"
6623   fi
6624   for lt_tmp_nm in $lt_nm_to_check; do
6625     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6626     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6627       IFS="$lt_save_ifs"
6628       test -z "$ac_dir" && ac_dir=.
6629       tmp_nm="$ac_dir/$lt_tmp_nm"
6630       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6631         # Check to see if the nm accepts a BSD-compat flag.
6632         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6633         #   nm: unknown option "B" ignored
6634         # Tru64's nm complains that /dev/null is an invalid object file
6635         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6636         */dev/null* | *'Invalid file or object type'*)
6637           lt_cv_path_NM="$tmp_nm -B"
6638           break
6639           ;;
6640         *)
6641           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6642           */dev/null*)
6643             lt_cv_path_NM="$tmp_nm -p"
6644             break
6645             ;;
6646           *)
6647             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6648             continue # so that we can try to find one that supports BSD flags
6649             ;;
6650           esac
6651           ;;
6652         esac
6653       fi
6654     done
6655     IFS="$lt_save_ifs"
6656   done
6657   : ${lt_cv_path_NM=no}
6658 fi
6659 fi
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6661 $as_echo "$lt_cv_path_NM" >&6; }
6662 if test "$lt_cv_path_NM" != "no"; then
6663   NM="$lt_cv_path_NM"
6664 else
6665   # Didn't find any BSD compatible name lister, look for dumpbin.
6666   if test -n "$ac_tool_prefix"; then
6667   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6668   do
6669     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6670 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6672 $as_echo_n "checking for $ac_word... " >&6; }
6673 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6674   $as_echo_n "(cached) " >&6
6675 else
6676   if test -n "$DUMPBIN"; then
6677   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6678 else
6679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680 for as_dir in $PATH
6681 do
6682   IFS=$as_save_IFS
6683   test -z "$as_dir" && as_dir=.
6684     for ac_exec_ext in '' $ac_executable_extensions; do
6685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6686     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6688     break 2
6689   fi
6690 done
6691   done
6692 IFS=$as_save_IFS
6693
6694 fi
6695 fi
6696 DUMPBIN=$ac_cv_prog_DUMPBIN
6697 if test -n "$DUMPBIN"; then
6698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6699 $as_echo "$DUMPBIN" >&6; }
6700 else
6701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6702 $as_echo "no" >&6; }
6703 fi
6704
6705
6706     test -n "$DUMPBIN" && break
6707   done
6708 fi
6709 if test -z "$DUMPBIN"; then
6710   ac_ct_DUMPBIN=$DUMPBIN
6711   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6712 do
6713   # Extract the first word of "$ac_prog", so it can be a program name with args.
6714 set dummy $ac_prog; ac_word=$2
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6716 $as_echo_n "checking for $ac_word... " >&6; }
6717 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6718   $as_echo_n "(cached) " >&6
6719 else
6720   if test -n "$ac_ct_DUMPBIN"; then
6721   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6722 else
6723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724 for as_dir in $PATH
6725 do
6726   IFS=$as_save_IFS
6727   test -z "$as_dir" && as_dir=.
6728     for ac_exec_ext in '' $ac_executable_extensions; do
6729   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6730     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6732     break 2
6733   fi
6734 done
6735   done
6736 IFS=$as_save_IFS
6737
6738 fi
6739 fi
6740 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6741 if test -n "$ac_ct_DUMPBIN"; then
6742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6743 $as_echo "$ac_ct_DUMPBIN" >&6; }
6744 else
6745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6746 $as_echo "no" >&6; }
6747 fi
6748
6749
6750   test -n "$ac_ct_DUMPBIN" && break
6751 done
6752
6753   if test "x$ac_ct_DUMPBIN" = x; then
6754     DUMPBIN=":"
6755   else
6756     case $cross_compiling:$ac_tool_warned in
6757 yes:)
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6760 ac_tool_warned=yes ;;
6761 esac
6762     DUMPBIN=$ac_ct_DUMPBIN
6763   fi
6764 fi
6765
6766
6767   if test "$DUMPBIN" != ":"; then
6768     NM="$DUMPBIN"
6769   fi
6770 fi
6771 test -z "$NM" && NM=nm
6772
6773
6774
6775
6776
6777
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6779 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6780 if test "${lt_cv_nm_interface+set}" = set; then :
6781   $as_echo_n "(cached) " >&6
6782 else
6783   lt_cv_nm_interface="BSD nm"
6784   echo "int some_variable = 0;" > conftest.$ac_ext
6785   (eval echo "\"\$as_me:6785: $ac_compile\"" >&5)
6786   (eval "$ac_compile" 2>conftest.err)
6787   cat conftest.err >&5
6788   (eval echo "\"\$as_me:6788: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6789   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6790   cat conftest.err >&5
6791   (eval echo "\"\$as_me:6791: output\"" >&5)
6792   cat conftest.out >&5
6793   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6794     lt_cv_nm_interface="MS dumpbin"
6795   fi
6796   rm -f conftest*
6797 fi
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6799 $as_echo "$lt_cv_nm_interface" >&6; }
6800
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6802 $as_echo_n "checking whether ln -s works... " >&6; }
6803 LN_S=$as_ln_s
6804 if test "$LN_S" = "ln -s"; then
6805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6806 $as_echo "yes" >&6; }
6807 else
6808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6809 $as_echo "no, using $LN_S" >&6; }
6810 fi
6811
6812 # find the maximum length of command line arguments
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6814 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6815 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6816   $as_echo_n "(cached) " >&6
6817 else
6818     i=0
6819   teststring="ABCD"
6820
6821   case $build_os in
6822   msdosdjgpp*)
6823     # On DJGPP, this test can blow up pretty badly due to problems in libc
6824     # (any single argument exceeding 2000 bytes causes a buffer overrun
6825     # during glob expansion).  Even if it were fixed, the result of this
6826     # check would be larger than it should be.
6827     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6828     ;;
6829
6830   gnu*)
6831     # Under GNU Hurd, this test is not required because there is
6832     # no limit to the length of command line arguments.
6833     # Libtool will interpret -1 as no limit whatsoever
6834     lt_cv_sys_max_cmd_len=-1;
6835     ;;
6836
6837   cygwin* | mingw* | cegcc*)
6838     # On Win9x/ME, this test blows up -- it succeeds, but takes
6839     # about 5 minutes as the teststring grows exponentially.
6840     # Worse, since 9x/ME are not pre-emptively multitasking,
6841     # you end up with a "frozen" computer, even though with patience
6842     # the test eventually succeeds (with a max line length of 256k).
6843     # Instead, let's just punt: use the minimum linelength reported by
6844     # all of the supported platforms: 8192 (on NT/2K/XP).
6845     lt_cv_sys_max_cmd_len=8192;
6846     ;;
6847
6848   amigaos*)
6849     # On AmigaOS with pdksh, this test takes hours, literally.
6850     # So we just punt and use a minimum line length of 8192.
6851     lt_cv_sys_max_cmd_len=8192;
6852     ;;
6853
6854   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6855     # This has been around since 386BSD, at least.  Likely further.
6856     if test -x /sbin/sysctl; then
6857       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6858     elif test -x /usr/sbin/sysctl; then
6859       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6860     else
6861       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6862     fi
6863     # And add a safety zone
6864     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6865     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6866     ;;
6867
6868   interix*)
6869     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6870     lt_cv_sys_max_cmd_len=196608
6871     ;;
6872
6873   osf*)
6874     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6875     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6876     # nice to cause kernel panics so lets avoid the loop below.
6877     # First set a reasonable default.
6878     lt_cv_sys_max_cmd_len=16384
6879     #
6880     if test -x /sbin/sysconfig; then
6881       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6882         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6883       esac
6884     fi
6885     ;;
6886   sco3.2v5*)
6887     lt_cv_sys_max_cmd_len=102400
6888     ;;
6889   sysv5* | sco5v6* | sysv4.2uw2*)
6890     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6891     if test -n "$kargmax"; then
6892       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6893     else
6894       lt_cv_sys_max_cmd_len=32768
6895     fi
6896     ;;
6897   *)
6898     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6899     if test -n "$lt_cv_sys_max_cmd_len"; then
6900       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6901       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6902     else
6903       # Make teststring a little bigger before we do anything with it.
6904       # a 1K string should be a reasonable start.
6905       for i in 1 2 3 4 5 6 7 8 ; do
6906         teststring=$teststring$teststring
6907       done
6908       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6909       # If test is not a shell built-in, we'll probably end up computing a
6910       # maximum length that is only half of the actual maximum length, but
6911       # we can't tell.
6912       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6913                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6914               test $i != 17 # 1/2 MB should be enough
6915       do
6916         i=`expr $i + 1`
6917         teststring=$teststring$teststring
6918       done
6919       # Only check the string length outside the loop.
6920       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6921       teststring=
6922       # Add a significant safety factor because C++ compilers can tack on
6923       # massive amounts of additional arguments before passing them to the
6924       # linker.  It appears as though 1/2 is a usable value.
6925       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6926     fi
6927     ;;
6928   esac
6929
6930 fi
6931
6932 if test -n $lt_cv_sys_max_cmd_len ; then
6933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6934 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6935 else
6936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6937 $as_echo "none" >&6; }
6938 fi
6939 max_cmd_len=$lt_cv_sys_max_cmd_len
6940
6941
6942
6943
6944
6945
6946 : ${CP="cp -f"}
6947 : ${MV="mv -f"}
6948 : ${RM="rm -f"}
6949
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6951 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6952 # Try some XSI features
6953 xsi_shell=no
6954 ( _lt_dummy="a/b/c"
6955   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6956       = c,a/b,, \
6957     && eval 'test $(( 1 + 1 )) -eq 2 \
6958     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6959   && xsi_shell=yes
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6961 $as_echo "$xsi_shell" >&6; }
6962
6963
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6965 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6966 lt_shell_append=no
6967 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6968     >/dev/null 2>&1 \
6969   && lt_shell_append=yes
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6971 $as_echo "$lt_shell_append" >&6; }
6972
6973
6974 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6975   lt_unset=unset
6976 else
6977   lt_unset=false
6978 fi
6979
6980
6981
6982
6983
6984 # test EBCDIC or ASCII
6985 case `echo X|tr X '\101'` in
6986  A) # ASCII based system
6987     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6988   lt_SP2NL='tr \040 \012'
6989   lt_NL2SP='tr \015\012 \040\040'
6990   ;;
6991  *) # EBCDIC based system
6992   lt_SP2NL='tr \100 \n'
6993   lt_NL2SP='tr \r\n \100\100'
6994   ;;
6995 esac
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7006 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7007 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7008   $as_echo_n "(cached) " >&6
7009 else
7010   lt_cv_ld_reload_flag='-r'
7011 fi
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7013 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7014 reload_flag=$lt_cv_ld_reload_flag
7015 case $reload_flag in
7016 "" | " "*) ;;
7017 *) reload_flag=" $reload_flag" ;;
7018 esac
7019 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7020 case $host_os in
7021   darwin*)
7022     if test "$GCC" = yes; then
7023       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7024     else
7025       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7026     fi
7027     ;;
7028 esac
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038 if test -n "$ac_tool_prefix"; then
7039   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7040 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7042 $as_echo_n "checking for $ac_word... " >&6; }
7043 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7044   $as_echo_n "(cached) " >&6
7045 else
7046   if test -n "$OBJDUMP"; then
7047   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7048 else
7049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050 for as_dir in $PATH
7051 do
7052   IFS=$as_save_IFS
7053   test -z "$as_dir" && as_dir=.
7054     for ac_exec_ext in '' $ac_executable_extensions; do
7055   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7056     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7057     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7058     break 2
7059   fi
7060 done
7061   done
7062 IFS=$as_save_IFS
7063
7064 fi
7065 fi
7066 OBJDUMP=$ac_cv_prog_OBJDUMP
7067 if test -n "$OBJDUMP"; then
7068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7069 $as_echo "$OBJDUMP" >&6; }
7070 else
7071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7072 $as_echo "no" >&6; }
7073 fi
7074
7075
7076 fi
7077 if test -z "$ac_cv_prog_OBJDUMP"; then
7078   ac_ct_OBJDUMP=$OBJDUMP
7079   # Extract the first word of "objdump", so it can be a program name with args.
7080 set dummy objdump; ac_word=$2
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7082 $as_echo_n "checking for $ac_word... " >&6; }
7083 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7084   $as_echo_n "(cached) " >&6
7085 else
7086   if test -n "$ac_ct_OBJDUMP"; then
7087   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7088 else
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 for as_dir in $PATH
7091 do
7092   IFS=$as_save_IFS
7093   test -z "$as_dir" && as_dir=.
7094     for ac_exec_ext in '' $ac_executable_extensions; do
7095   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7096     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7097     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7098     break 2
7099   fi
7100 done
7101   done
7102 IFS=$as_save_IFS
7103
7104 fi
7105 fi
7106 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7107 if test -n "$ac_ct_OBJDUMP"; then
7108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7109 $as_echo "$ac_ct_OBJDUMP" >&6; }
7110 else
7111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7112 $as_echo "no" >&6; }
7113 fi
7114
7115   if test "x$ac_ct_OBJDUMP" = x; then
7116     OBJDUMP="false"
7117   else
7118     case $cross_compiling:$ac_tool_warned in
7119 yes:)
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7122 ac_tool_warned=yes ;;
7123 esac
7124     OBJDUMP=$ac_ct_OBJDUMP
7125   fi
7126 else
7127   OBJDUMP="$ac_cv_prog_OBJDUMP"
7128 fi
7129
7130 test -z "$OBJDUMP" && OBJDUMP=objdump
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7141 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7142 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7143   $as_echo_n "(cached) " >&6
7144 else
7145   lt_cv_file_magic_cmd='$MAGIC_CMD'
7146 lt_cv_file_magic_test_file=
7147 lt_cv_deplibs_check_method='unknown'
7148 # Need to set the preceding variable on all platforms that support
7149 # interlibrary dependencies.
7150 # 'none' -- dependencies not supported.
7151 # `unknown' -- same as none, but documents that we really don't know.
7152 # 'pass_all' -- all dependencies passed with no checks.
7153 # 'test_compile' -- check by making test program.
7154 # 'file_magic [[regex]]' -- check by looking for files in library path
7155 # which responds to the $file_magic_cmd with a given extended regex.
7156 # If you have `file' or equivalent on your system and you're not sure
7157 # whether `pass_all' will *always* work, you probably want this one.
7158
7159 case $host_os in
7160 aix[4-9]*)
7161   lt_cv_deplibs_check_method=pass_all
7162   ;;
7163
7164 beos*)
7165   lt_cv_deplibs_check_method=pass_all
7166   ;;
7167
7168 bsdi[45]*)
7169   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7170   lt_cv_file_magic_cmd='/usr/bin/file -L'
7171   lt_cv_file_magic_test_file=/shlib/libc.so
7172   ;;
7173
7174 cygwin*)
7175   # func_win32_libid is a shell function defined in ltmain.sh
7176   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7177   lt_cv_file_magic_cmd='func_win32_libid'
7178   ;;
7179
7180 mingw* | pw32*)
7181   # Base MSYS/MinGW do not provide the 'file' command needed by
7182   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7183   # unless we find 'file', for example because we are cross-compiling.
7184   if ( file / ) >/dev/null 2>&1; then
7185     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7186     lt_cv_file_magic_cmd='func_win32_libid'
7187   else
7188     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7189     lt_cv_file_magic_cmd='$OBJDUMP -f'
7190   fi
7191   ;;
7192
7193 cegcc)
7194   # use the weaker test based on 'objdump'. See mingw*.
7195   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7196   lt_cv_file_magic_cmd='$OBJDUMP -f'
7197   ;;
7198
7199 darwin* | rhapsody*)
7200   lt_cv_deplibs_check_method=pass_all
7201   ;;
7202
7203 freebsd* | dragonfly*)
7204   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7205     case $host_cpu in
7206     i*86 )
7207       # Not sure whether the presence of OpenBSD here was a mistake.
7208       # Let's accept both of them until this is cleared up.
7209       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7210       lt_cv_file_magic_cmd=/usr/bin/file
7211       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7212       ;;
7213     esac
7214   else
7215     lt_cv_deplibs_check_method=pass_all
7216   fi
7217   ;;
7218
7219 gnu*)
7220   lt_cv_deplibs_check_method=pass_all
7221   ;;
7222
7223 hpux10.20* | hpux11*)
7224   lt_cv_file_magic_cmd=/usr/bin/file
7225   case $host_cpu in
7226   ia64*)
7227     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7228     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7229     ;;
7230   hppa*64*)
7231     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
7232     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7233     ;;
7234   *)
7235     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7236     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7237     ;;
7238   esac
7239   ;;
7240
7241 interix[3-9]*)
7242   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7243   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7244   ;;
7245
7246 irix5* | irix6* | nonstopux*)
7247   case $LD in
7248   *-32|*"-32 ") libmagic=32-bit;;
7249   *-n32|*"-n32 ") libmagic=N32;;
7250   *-64|*"-64 ") libmagic=64-bit;;
7251   *) libmagic=never-match;;
7252   esac
7253   lt_cv_deplibs_check_method=pass_all
7254   ;;
7255
7256 # This must be Linux ELF.
7257 linux* | k*bsd*-gnu)
7258   lt_cv_deplibs_check_method=pass_all
7259   ;;
7260
7261 netbsd* | netbsdelf*-gnu)
7262   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7263     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7264   else
7265     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7266   fi
7267   ;;
7268
7269 newos6*)
7270   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7271   lt_cv_file_magic_cmd=/usr/bin/file
7272   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7273   ;;
7274
7275 *nto* | *qnx*)
7276   lt_cv_deplibs_check_method=pass_all
7277   ;;
7278
7279 openbsd*)
7280   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7281     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7282   else
7283     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7284   fi
7285   ;;
7286
7287 osf3* | osf4* | osf5*)
7288   lt_cv_deplibs_check_method=pass_all
7289   ;;
7290
7291 rdos*)
7292   lt_cv_deplibs_check_method=pass_all
7293   ;;
7294
7295 solaris*)
7296   lt_cv_deplibs_check_method=pass_all
7297   ;;
7298
7299 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7300   lt_cv_deplibs_check_method=pass_all
7301   ;;
7302
7303 sysv4 | sysv4.3*)
7304   case $host_vendor in
7305   motorola)
7306     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]'
7307     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7308     ;;
7309   ncr)
7310     lt_cv_deplibs_check_method=pass_all
7311     ;;
7312   sequent)
7313     lt_cv_file_magic_cmd='/bin/file'
7314     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7315     ;;
7316   sni)
7317     lt_cv_file_magic_cmd='/bin/file'
7318     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7319     lt_cv_file_magic_test_file=/lib/libc.so
7320     ;;
7321   siemens)
7322     lt_cv_deplibs_check_method=pass_all
7323     ;;
7324   pc)
7325     lt_cv_deplibs_check_method=pass_all
7326     ;;
7327   esac
7328   ;;
7329
7330 tpf*)
7331   lt_cv_deplibs_check_method=pass_all
7332   ;;
7333 esac
7334
7335 fi
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7337 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7338 file_magic_cmd=$lt_cv_file_magic_cmd
7339 deplibs_check_method=$lt_cv_deplibs_check_method
7340 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353 if test -n "$ac_tool_prefix"; then
7354   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7355 set dummy ${ac_tool_prefix}ar; ac_word=$2
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7357 $as_echo_n "checking for $ac_word... " >&6; }
7358 if test "${ac_cv_prog_AR+set}" = set; then :
7359   $as_echo_n "(cached) " >&6
7360 else
7361   if test -n "$AR"; then
7362   ac_cv_prog_AR="$AR" # Let the user override the test.
7363 else
7364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365 for as_dir in $PATH
7366 do
7367   IFS=$as_save_IFS
7368   test -z "$as_dir" && as_dir=.
7369     for ac_exec_ext in '' $ac_executable_extensions; do
7370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7371     ac_cv_prog_AR="${ac_tool_prefix}ar"
7372     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7373     break 2
7374   fi
7375 done
7376   done
7377 IFS=$as_save_IFS
7378
7379 fi
7380 fi
7381 AR=$ac_cv_prog_AR
7382 if test -n "$AR"; then
7383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7384 $as_echo "$AR" >&6; }
7385 else
7386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7387 $as_echo "no" >&6; }
7388 fi
7389
7390
7391 fi
7392 if test -z "$ac_cv_prog_AR"; then
7393   ac_ct_AR=$AR
7394   # Extract the first word of "ar", so it can be a program name with args.
7395 set dummy ar; ac_word=$2
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7397 $as_echo_n "checking for $ac_word... " >&6; }
7398 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7399   $as_echo_n "(cached) " >&6
7400 else
7401   if test -n "$ac_ct_AR"; then
7402   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7403 else
7404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405 for as_dir in $PATH
7406 do
7407   IFS=$as_save_IFS
7408   test -z "$as_dir" && as_dir=.
7409     for ac_exec_ext in '' $ac_executable_extensions; do
7410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7411     ac_cv_prog_ac_ct_AR="ar"
7412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7413     break 2
7414   fi
7415 done
7416   done
7417 IFS=$as_save_IFS
7418
7419 fi
7420 fi
7421 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7422 if test -n "$ac_ct_AR"; then
7423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7424 $as_echo "$ac_ct_AR" >&6; }
7425 else
7426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7427 $as_echo "no" >&6; }
7428 fi
7429
7430   if test "x$ac_ct_AR" = x; then
7431     AR="false"
7432   else
7433     case $cross_compiling:$ac_tool_warned in
7434 yes:)
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7437 ac_tool_warned=yes ;;
7438 esac
7439     AR=$ac_ct_AR
7440   fi
7441 else
7442   AR="$ac_cv_prog_AR"
7443 fi
7444
7445 test -z "$AR" && AR=ar
7446 test -z "$AR_FLAGS" && AR_FLAGS=cru
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458 if test -n "$ac_tool_prefix"; then
7459   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7460 set dummy ${ac_tool_prefix}strip; ac_word=$2
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7462 $as_echo_n "checking for $ac_word... " >&6; }
7463 if test "${ac_cv_prog_STRIP+set}" = set; then :
7464   $as_echo_n "(cached) " >&6
7465 else
7466   if test -n "$STRIP"; then
7467   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7468 else
7469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470 for as_dir in $PATH
7471 do
7472   IFS=$as_save_IFS
7473   test -z "$as_dir" && as_dir=.
7474     for ac_exec_ext in '' $ac_executable_extensions; do
7475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7476     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7477     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7478     break 2
7479   fi
7480 done
7481   done
7482 IFS=$as_save_IFS
7483
7484 fi
7485 fi
7486 STRIP=$ac_cv_prog_STRIP
7487 if test -n "$STRIP"; then
7488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7489 $as_echo "$STRIP" >&6; }
7490 else
7491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7492 $as_echo "no" >&6; }
7493 fi
7494
7495
7496 fi
7497 if test -z "$ac_cv_prog_STRIP"; then
7498   ac_ct_STRIP=$STRIP
7499   # Extract the first word of "strip", so it can be a program name with args.
7500 set dummy strip; ac_word=$2
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7502 $as_echo_n "checking for $ac_word... " >&6; }
7503 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7504   $as_echo_n "(cached) " >&6
7505 else
7506   if test -n "$ac_ct_STRIP"; then
7507   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7508 else
7509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510 for as_dir in $PATH
7511 do
7512   IFS=$as_save_IFS
7513   test -z "$as_dir" && as_dir=.
7514     for ac_exec_ext in '' $ac_executable_extensions; do
7515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7516     ac_cv_prog_ac_ct_STRIP="strip"
7517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7518     break 2
7519   fi
7520 done
7521   done
7522 IFS=$as_save_IFS
7523
7524 fi
7525 fi
7526 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7527 if test -n "$ac_ct_STRIP"; then
7528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7529 $as_echo "$ac_ct_STRIP" >&6; }
7530 else
7531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7532 $as_echo "no" >&6; }
7533 fi
7534
7535   if test "x$ac_ct_STRIP" = x; then
7536     STRIP=":"
7537   else
7538     case $cross_compiling:$ac_tool_warned in
7539 yes:)
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7542 ac_tool_warned=yes ;;
7543 esac
7544     STRIP=$ac_ct_STRIP
7545   fi
7546 else
7547   STRIP="$ac_cv_prog_STRIP"
7548 fi
7549
7550 test -z "$STRIP" && STRIP=:
7551
7552
7553
7554
7555
7556
7557 if test -n "$ac_tool_prefix"; then
7558   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7559 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7561 $as_echo_n "checking for $ac_word... " >&6; }
7562 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7563   $as_echo_n "(cached) " >&6
7564 else
7565   if test -n "$RANLIB"; then
7566   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7567 else
7568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7569 for as_dir in $PATH
7570 do
7571   IFS=$as_save_IFS
7572   test -z "$as_dir" && as_dir=.
7573     for ac_exec_ext in '' $ac_executable_extensions; do
7574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7575     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7576     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7577     break 2
7578   fi
7579 done
7580   done
7581 IFS=$as_save_IFS
7582
7583 fi
7584 fi
7585 RANLIB=$ac_cv_prog_RANLIB
7586 if test -n "$RANLIB"; then
7587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7588 $as_echo "$RANLIB" >&6; }
7589 else
7590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7591 $as_echo "no" >&6; }
7592 fi
7593
7594
7595 fi
7596 if test -z "$ac_cv_prog_RANLIB"; then
7597   ac_ct_RANLIB=$RANLIB
7598   # Extract the first word of "ranlib", so it can be a program name with args.
7599 set dummy ranlib; ac_word=$2
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7601 $as_echo_n "checking for $ac_word... " >&6; }
7602 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7603   $as_echo_n "(cached) " >&6
7604 else
7605   if test -n "$ac_ct_RANLIB"; then
7606   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7607 else
7608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7609 for as_dir in $PATH
7610 do
7611   IFS=$as_save_IFS
7612   test -z "$as_dir" && as_dir=.
7613     for ac_exec_ext in '' $ac_executable_extensions; do
7614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7615     ac_cv_prog_ac_ct_RANLIB="ranlib"
7616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7617     break 2
7618   fi
7619 done
7620   done
7621 IFS=$as_save_IFS
7622
7623 fi
7624 fi
7625 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7626 if test -n "$ac_ct_RANLIB"; then
7627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7628 $as_echo "$ac_ct_RANLIB" >&6; }
7629 else
7630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7631 $as_echo "no" >&6; }
7632 fi
7633
7634   if test "x$ac_ct_RANLIB" = x; then
7635     RANLIB=":"
7636   else
7637     case $cross_compiling:$ac_tool_warned in
7638 yes:)
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7641 ac_tool_warned=yes ;;
7642 esac
7643     RANLIB=$ac_ct_RANLIB
7644   fi
7645 else
7646   RANLIB="$ac_cv_prog_RANLIB"
7647 fi
7648
7649 test -z "$RANLIB" && RANLIB=:
7650
7651
7652
7653
7654
7655
7656 # Determine commands to create old-style static archives.
7657 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7658 old_postinstall_cmds='chmod 644 $oldlib'
7659 old_postuninstall_cmds=
7660
7661 if test -n "$RANLIB"; then
7662   case $host_os in
7663   openbsd*)
7664     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7665     ;;
7666   *)
7667     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7668     ;;
7669   esac
7670   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7671 fi
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706 # If no C compiler was specified, use CC.
7707 LTCC=${LTCC-"$CC"}
7708
7709 # If no C compiler flags were specified, use CFLAGS.
7710 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7711
7712 # Allow CC to be a program name with arguments.
7713 compiler=$CC
7714
7715
7716 # Check for command to grab the raw symbol name followed by C symbol from nm.
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7718 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7719 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7720   $as_echo_n "(cached) " >&6
7721 else
7722
7723 # These are sane defaults that work on at least a few old systems.
7724 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7725
7726 # Character class describing NM global symbol codes.
7727 symcode='[BCDEGRST]'
7728
7729 # Regexp to match symbols that can be accessed directly from C.
7730 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7731
7732 # Define system-specific variables.
7733 case $host_os in
7734 aix*)
7735   symcode='[BCDT]'
7736   ;;
7737 cygwin* | mingw* | pw32* | cegcc*)
7738   symcode='[ABCDGISTW]'
7739   ;;
7740 hpux*)
7741   if test "$host_cpu" = ia64; then
7742     symcode='[ABCDEGRST]'
7743   fi
7744   ;;
7745 irix* | nonstopux*)
7746   symcode='[BCDEGRST]'
7747   ;;
7748 osf*)
7749   symcode='[BCDEGQRST]'
7750   ;;
7751 solaris*)
7752   symcode='[BDRT]'
7753   ;;
7754 sco3.2v5*)
7755   symcode='[DT]'
7756   ;;
7757 sysv4.2uw2*)
7758   symcode='[DT]'
7759   ;;
7760 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7761   symcode='[ABDT]'
7762   ;;
7763 sysv4)
7764   symcode='[DFNSTU]'
7765   ;;
7766 esac
7767
7768 # If we're using GNU nm, then use its standard symbol codes.
7769 case `$NM -V 2>&1` in
7770 *GNU* | *'with BFD'*)
7771   symcode='[ABCDGIRSTW]' ;;
7772 esac
7773
7774 # Transform an extracted symbol line into a proper C declaration.
7775 # Some systems (esp. on ia64) link data and code symbols differently,
7776 # so use this general approach.
7777 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7778
7779 # Transform an extracted symbol line into symbol name and symbol address
7780 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7781 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'"
7782
7783 # Handle CRLF in mingw tool chain
7784 opt_cr=
7785 case $build_os in
7786 mingw*)
7787   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7788   ;;
7789 esac
7790
7791 # Try without a prefix underscore, then with it.
7792 for ac_symprfx in "" "_"; do
7793
7794   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7795   symxfrm="\\1 $ac_symprfx\\2 \\2"
7796
7797   # Write the raw and C identifiers.
7798   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7799     # Fake it for dumpbin and say T for any non-static function
7800     # and D for any global variable.
7801     # Also find C++ and __fastcall symbols from MSVC++,
7802     # which start with @ or ?.
7803     lt_cv_sys_global_symbol_pipe="$AWK '"\
7804 "     {last_section=section; section=\$ 3};"\
7805 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7806 "     \$ 0!~/External *\|/{next};"\
7807 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7808 "     {if(hide[section]) next};"\
7809 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7810 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7811 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7812 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7813 "     ' prfx=^$ac_symprfx"
7814   else
7815     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7816   fi
7817
7818   # Check to see that the pipe works correctly.
7819   pipe_works=no
7820
7821   rm -f conftest*
7822   cat > conftest.$ac_ext <<_LT_EOF
7823 #ifdef __cplusplus
7824 extern "C" {
7825 #endif
7826 char nm_test_var;
7827 void nm_test_func(void);
7828 void nm_test_func(void){}
7829 #ifdef __cplusplus
7830 }
7831 #endif
7832 int main(){nm_test_var='a';nm_test_func();return(0);}
7833 _LT_EOF
7834
7835   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7836   (eval $ac_compile) 2>&5
7837   ac_status=$?
7838   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7839   test $ac_status = 0; }; then
7840     # Now try to grab the symbols.
7841     nlist=conftest.nm
7842     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7843   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7844   ac_status=$?
7845   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7846   test $ac_status = 0; } && test -s "$nlist"; then
7847       # Try sorting and uniquifying the output.
7848       if sort "$nlist" | uniq > "$nlist"T; then
7849         mv -f "$nlist"T "$nlist"
7850       else
7851         rm -f "$nlist"T
7852       fi
7853
7854       # Make sure that we snagged all the symbols we need.
7855       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7856         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7857           cat <<_LT_EOF > conftest.$ac_ext
7858 #ifdef __cplusplus
7859 extern "C" {
7860 #endif
7861
7862 _LT_EOF
7863           # Now generate the symbol file.
7864           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7865
7866           cat <<_LT_EOF >> conftest.$ac_ext
7867
7868 /* The mapping between symbol names and symbols.  */
7869 const struct {
7870   const char *name;
7871   void       *address;
7872 }
7873 lt__PROGRAM__LTX_preloaded_symbols[] =
7874 {
7875   { "@PROGRAM@", (void *) 0 },
7876 _LT_EOF
7877           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7878           cat <<\_LT_EOF >> conftest.$ac_ext
7879   {0, (void *) 0}
7880 };
7881
7882 /* This works around a problem in FreeBSD linker */
7883 #ifdef FREEBSD_WORKAROUND
7884 static const void *lt_preloaded_setup() {
7885   return lt__PROGRAM__LTX_preloaded_symbols;
7886 }
7887 #endif
7888
7889 #ifdef __cplusplus
7890 }
7891 #endif
7892 _LT_EOF
7893           # Now try linking the two files.
7894           mv conftest.$ac_objext conftstm.$ac_objext
7895           lt_save_LIBS="$LIBS"
7896           lt_save_CFLAGS="$CFLAGS"
7897           LIBS="conftstm.$ac_objext"
7898           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7899           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7900   (eval $ac_link) 2>&5
7901   ac_status=$?
7902   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7903   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7904             pipe_works=yes
7905           fi
7906           LIBS="$lt_save_LIBS"
7907           CFLAGS="$lt_save_CFLAGS"
7908         else
7909           echo "cannot find nm_test_func in $nlist" >&5
7910         fi
7911       else
7912         echo "cannot find nm_test_var in $nlist" >&5
7913       fi
7914     else
7915       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7916     fi
7917   else
7918     echo "$progname: failed program was:" >&5
7919     cat conftest.$ac_ext >&5
7920   fi
7921   rm -rf conftest* conftst*
7922
7923   # Do not use the global_symbol_pipe unless it works.
7924   if test "$pipe_works" = yes; then
7925     break
7926   else
7927     lt_cv_sys_global_symbol_pipe=
7928   fi
7929 done
7930
7931 fi
7932
7933 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7934   lt_cv_sys_global_symbol_to_cdecl=
7935 fi
7936 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7938 $as_echo "failed" >&6; }
7939 else
7940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7941 $as_echo "ok" >&6; }
7942 fi
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965 # Check whether --enable-libtool-lock was given.
7966 if test "${enable_libtool_lock+set}" = set; then :
7967   enableval=$enable_libtool_lock;
7968 fi
7969
7970 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7971
7972 # Some flags need to be propagated to the compiler or linker for good
7973 # libtool support.
7974 case $host in
7975 ia64-*-hpux*)
7976   # Find out which ABI we are using.
7977   echo 'int i;' > conftest.$ac_ext
7978   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7979   (eval $ac_compile) 2>&5
7980   ac_status=$?
7981   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7982   test $ac_status = 0; }; then
7983     case `/usr/bin/file conftest.$ac_objext` in
7984       *ELF-32*)
7985         HPUX_IA64_MODE="32"
7986         ;;
7987       *ELF-64*)
7988         HPUX_IA64_MODE="64"
7989         ;;
7990     esac
7991   fi
7992   rm -rf conftest*
7993   ;;
7994 *-*-irix6*)
7995   # Find out which ABI we are using.
7996   echo '#line 7996 "configure"' > conftest.$ac_ext
7997   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7998   (eval $ac_compile) 2>&5
7999   ac_status=$?
8000   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8001   test $ac_status = 0; }; then
8002     if test "$lt_cv_prog_gnu_ld" = yes; then
8003       case `/usr/bin/file conftest.$ac_objext` in
8004         *32-bit*)
8005           LD="${LD-ld} -melf32bsmip"
8006           ;;
8007         *N32*)
8008           LD="${LD-ld} -melf32bmipn32"
8009           ;;
8010         *64-bit*)
8011           LD="${LD-ld} -melf64bmip"
8012         ;;
8013       esac
8014     else
8015       case `/usr/bin/file conftest.$ac_objext` in
8016         *32-bit*)
8017           LD="${LD-ld} -32"
8018           ;;
8019         *N32*)
8020           LD="${LD-ld} -n32"
8021           ;;
8022         *64-bit*)
8023           LD="${LD-ld} -64"
8024           ;;
8025       esac
8026     fi
8027   fi
8028   rm -rf conftest*
8029   ;;
8030
8031 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8032 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8033   # Find out which ABI we are using.
8034   echo 'int i;' > conftest.$ac_ext
8035   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8036   (eval $ac_compile) 2>&5
8037   ac_status=$?
8038   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8039   test $ac_status = 0; }; then
8040     case `/usr/bin/file conftest.o` in
8041       *32-bit*)
8042         case $host in
8043           x86_64-*kfreebsd*-gnu)
8044             LD="${LD-ld} -m elf_i386_fbsd"
8045             ;;
8046           x86_64-*linux*)
8047             LD="${LD-ld} -m elf_i386"
8048             ;;
8049           ppc64-*linux*|powerpc64-*linux*)
8050             LD="${LD-ld} -m elf32ppclinux"
8051             ;;
8052           s390x-*linux*)
8053             LD="${LD-ld} -m elf_s390"
8054             ;;
8055           sparc64-*linux*)
8056             LD="${LD-ld} -m elf32_sparc"
8057             ;;
8058         esac
8059         ;;
8060       *64-bit*)
8061         case $host in
8062           x86_64-*kfreebsd*-gnu)
8063             LD="${LD-ld} -m elf_x86_64_fbsd"
8064             ;;
8065           x86_64-*linux*)
8066             LD="${LD-ld} -m elf_x86_64"
8067             ;;
8068           ppc*-*linux*|powerpc*-*linux*)
8069             LD="${LD-ld} -m elf64ppc"
8070             ;;
8071           s390*-*linux*|s390*-*tpf*)
8072             LD="${LD-ld} -m elf64_s390"
8073             ;;
8074           sparc*-*linux*)
8075             LD="${LD-ld} -m elf64_sparc"
8076             ;;
8077         esac
8078         ;;
8079     esac
8080   fi
8081   rm -rf conftest*
8082   ;;
8083
8084 *-*-sco3.2v5*)
8085   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8086   SAVE_CFLAGS="$CFLAGS"
8087   CFLAGS="$CFLAGS -belf"
8088   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8089 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8090 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8091   $as_echo_n "(cached) " >&6
8092 else
8093   ac_ext=c
8094 ac_cpp='$CPP $CPPFLAGS'
8095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8098
8099      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8100 /* end confdefs.h.  */
8101
8102 int
8103 main ()
8104 {
8105
8106   ;
8107   return 0;
8108 }
8109 _ACEOF
8110 if ac_fn_c_try_link "$LINENO"; then :
8111   lt_cv_cc_needs_belf=yes
8112 else
8113   lt_cv_cc_needs_belf=no
8114 fi
8115 rm -f core conftest.err conftest.$ac_objext \
8116     conftest$ac_exeext conftest.$ac_ext
8117      ac_ext=c
8118 ac_cpp='$CPP $CPPFLAGS'
8119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8122
8123 fi
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8125 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8126   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8127     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8128     CFLAGS="$SAVE_CFLAGS"
8129   fi
8130   ;;
8131 sparc*-*solaris*)
8132   # Find out which ABI we are using.
8133   echo 'int i;' > conftest.$ac_ext
8134   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8135   (eval $ac_compile) 2>&5
8136   ac_status=$?
8137   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8138   test $ac_status = 0; }; then
8139     case `/usr/bin/file conftest.o` in
8140     *64-bit*)
8141       case $lt_cv_prog_gnu_ld in
8142       yes*) LD="${LD-ld} -m elf64_sparc" ;;
8143       *)
8144         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8145           LD="${LD-ld} -64"
8146         fi
8147         ;;
8148       esac
8149       ;;
8150     esac
8151   fi
8152   rm -rf conftest*
8153   ;;
8154 esac
8155
8156 need_locks="$enable_libtool_lock"
8157
8158
8159   case $host_os in
8160     rhapsody* | darwin*)
8161     if test -n "$ac_tool_prefix"; then
8162   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8163 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8165 $as_echo_n "checking for $ac_word... " >&6; }
8166 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8167   $as_echo_n "(cached) " >&6
8168 else
8169   if test -n "$DSYMUTIL"; then
8170   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8171 else
8172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8173 for as_dir in $PATH
8174 do
8175   IFS=$as_save_IFS
8176   test -z "$as_dir" && as_dir=.
8177     for ac_exec_ext in '' $ac_executable_extensions; do
8178   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8179     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8180     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8181     break 2
8182   fi
8183 done
8184   done
8185 IFS=$as_save_IFS
8186
8187 fi
8188 fi
8189 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8190 if test -n "$DSYMUTIL"; then
8191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8192 $as_echo "$DSYMUTIL" >&6; }
8193 else
8194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8195 $as_echo "no" >&6; }
8196 fi
8197
8198
8199 fi
8200 if test -z "$ac_cv_prog_DSYMUTIL"; then
8201   ac_ct_DSYMUTIL=$DSYMUTIL
8202   # Extract the first word of "dsymutil", so it can be a program name with args.
8203 set dummy dsymutil; ac_word=$2
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8205 $as_echo_n "checking for $ac_word... " >&6; }
8206 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8207   $as_echo_n "(cached) " >&6
8208 else
8209   if test -n "$ac_ct_DSYMUTIL"; then
8210   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8211 else
8212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8213 for as_dir in $PATH
8214 do
8215   IFS=$as_save_IFS
8216   test -z "$as_dir" && as_dir=.
8217     for ac_exec_ext in '' $ac_executable_extensions; do
8218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8219     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8220     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8221     break 2
8222   fi
8223 done
8224   done
8225 IFS=$as_save_IFS
8226
8227 fi
8228 fi
8229 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8230 if test -n "$ac_ct_DSYMUTIL"; then
8231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8232 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8233 else
8234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8235 $as_echo "no" >&6; }
8236 fi
8237
8238   if test "x$ac_ct_DSYMUTIL" = x; then
8239     DSYMUTIL=":"
8240   else
8241     case $cross_compiling:$ac_tool_warned in
8242 yes:)
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8245 ac_tool_warned=yes ;;
8246 esac
8247     DSYMUTIL=$ac_ct_DSYMUTIL
8248   fi
8249 else
8250   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8251 fi
8252
8253     if test -n "$ac_tool_prefix"; then
8254   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8255 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8257 $as_echo_n "checking for $ac_word... " >&6; }
8258 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8259   $as_echo_n "(cached) " >&6
8260 else
8261   if test -n "$NMEDIT"; then
8262   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8263 else
8264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8265 for as_dir in $PATH
8266 do
8267   IFS=$as_save_IFS
8268   test -z "$as_dir" && as_dir=.
8269     for ac_exec_ext in '' $ac_executable_extensions; do
8270   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8271     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8272     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8273     break 2
8274   fi
8275 done
8276   done
8277 IFS=$as_save_IFS
8278
8279 fi
8280 fi
8281 NMEDIT=$ac_cv_prog_NMEDIT
8282 if test -n "$NMEDIT"; then
8283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8284 $as_echo "$NMEDIT" >&6; }
8285 else
8286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8287 $as_echo "no" >&6; }
8288 fi
8289
8290
8291 fi
8292 if test -z "$ac_cv_prog_NMEDIT"; then
8293   ac_ct_NMEDIT=$NMEDIT
8294   # Extract the first word of "nmedit", so it can be a program name with args.
8295 set dummy nmedit; ac_word=$2
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8297 $as_echo_n "checking for $ac_word... " >&6; }
8298 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8299   $as_echo_n "(cached) " >&6
8300 else
8301   if test -n "$ac_ct_NMEDIT"; then
8302   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8303 else
8304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305 for as_dir in $PATH
8306 do
8307   IFS=$as_save_IFS
8308   test -z "$as_dir" && as_dir=.
8309     for ac_exec_ext in '' $ac_executable_extensions; do
8310   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8311     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8313     break 2
8314   fi
8315 done
8316   done
8317 IFS=$as_save_IFS
8318
8319 fi
8320 fi
8321 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8322 if test -n "$ac_ct_NMEDIT"; then
8323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8324 $as_echo "$ac_ct_NMEDIT" >&6; }
8325 else
8326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8327 $as_echo "no" >&6; }
8328 fi
8329
8330   if test "x$ac_ct_NMEDIT" = x; then
8331     NMEDIT=":"
8332   else
8333     case $cross_compiling:$ac_tool_warned in
8334 yes:)
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8337 ac_tool_warned=yes ;;
8338 esac
8339     NMEDIT=$ac_ct_NMEDIT
8340   fi
8341 else
8342   NMEDIT="$ac_cv_prog_NMEDIT"
8343 fi
8344
8345     if test -n "$ac_tool_prefix"; then
8346   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8347 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8349 $as_echo_n "checking for $ac_word... " >&6; }
8350 if test "${ac_cv_prog_LIPO+set}" = set; then :
8351   $as_echo_n "(cached) " >&6
8352 else
8353   if test -n "$LIPO"; then
8354   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8355 else
8356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8357 for as_dir in $PATH
8358 do
8359   IFS=$as_save_IFS
8360   test -z "$as_dir" && as_dir=.
8361     for ac_exec_ext in '' $ac_executable_extensions; do
8362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8363     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8364     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8365     break 2
8366   fi
8367 done
8368   done
8369 IFS=$as_save_IFS
8370
8371 fi
8372 fi
8373 LIPO=$ac_cv_prog_LIPO
8374 if test -n "$LIPO"; then
8375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8376 $as_echo "$LIPO" >&6; }
8377 else
8378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8379 $as_echo "no" >&6; }
8380 fi
8381
8382
8383 fi
8384 if test -z "$ac_cv_prog_LIPO"; then
8385   ac_ct_LIPO=$LIPO
8386   # Extract the first word of "lipo", so it can be a program name with args.
8387 set dummy lipo; ac_word=$2
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8389 $as_echo_n "checking for $ac_word... " >&6; }
8390 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8391   $as_echo_n "(cached) " >&6
8392 else
8393   if test -n "$ac_ct_LIPO"; then
8394   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8395 else
8396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8397 for as_dir in $PATH
8398 do
8399   IFS=$as_save_IFS
8400   test -z "$as_dir" && as_dir=.
8401     for ac_exec_ext in '' $ac_executable_extensions; do
8402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8403     ac_cv_prog_ac_ct_LIPO="lipo"
8404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8405     break 2
8406   fi
8407 done
8408   done
8409 IFS=$as_save_IFS
8410
8411 fi
8412 fi
8413 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8414 if test -n "$ac_ct_LIPO"; then
8415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8416 $as_echo "$ac_ct_LIPO" >&6; }
8417 else
8418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8419 $as_echo "no" >&6; }
8420 fi
8421
8422   if test "x$ac_ct_LIPO" = x; then
8423     LIPO=":"
8424   else
8425     case $cross_compiling:$ac_tool_warned in
8426 yes:)
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8429 ac_tool_warned=yes ;;
8430 esac
8431     LIPO=$ac_ct_LIPO
8432   fi
8433 else
8434   LIPO="$ac_cv_prog_LIPO"
8435 fi
8436
8437     if test -n "$ac_tool_prefix"; then
8438   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8439 set dummy ${ac_tool_prefix}otool; ac_word=$2
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8441 $as_echo_n "checking for $ac_word... " >&6; }
8442 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8443   $as_echo_n "(cached) " >&6
8444 else
8445   if test -n "$OTOOL"; then
8446   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8447 else
8448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8449 for as_dir in $PATH
8450 do
8451   IFS=$as_save_IFS
8452   test -z "$as_dir" && as_dir=.
8453     for ac_exec_ext in '' $ac_executable_extensions; do
8454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8455     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8457     break 2
8458   fi
8459 done
8460   done
8461 IFS=$as_save_IFS
8462
8463 fi
8464 fi
8465 OTOOL=$ac_cv_prog_OTOOL
8466 if test -n "$OTOOL"; then
8467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8468 $as_echo "$OTOOL" >&6; }
8469 else
8470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8471 $as_echo "no" >&6; }
8472 fi
8473
8474
8475 fi
8476 if test -z "$ac_cv_prog_OTOOL"; then
8477   ac_ct_OTOOL=$OTOOL
8478   # Extract the first word of "otool", so it can be a program name with args.
8479 set dummy otool; ac_word=$2
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8481 $as_echo_n "checking for $ac_word... " >&6; }
8482 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8483   $as_echo_n "(cached) " >&6
8484 else
8485   if test -n "$ac_ct_OTOOL"; then
8486   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8487 else
8488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8489 for as_dir in $PATH
8490 do
8491   IFS=$as_save_IFS
8492   test -z "$as_dir" && as_dir=.
8493     for ac_exec_ext in '' $ac_executable_extensions; do
8494   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8495     ac_cv_prog_ac_ct_OTOOL="otool"
8496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8497     break 2
8498   fi
8499 done
8500   done
8501 IFS=$as_save_IFS
8502
8503 fi
8504 fi
8505 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8506 if test -n "$ac_ct_OTOOL"; then
8507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8508 $as_echo "$ac_ct_OTOOL" >&6; }
8509 else
8510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8511 $as_echo "no" >&6; }
8512 fi
8513
8514   if test "x$ac_ct_OTOOL" = x; then
8515     OTOOL=":"
8516   else
8517     case $cross_compiling:$ac_tool_warned in
8518 yes:)
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8521 ac_tool_warned=yes ;;
8522 esac
8523     OTOOL=$ac_ct_OTOOL
8524   fi
8525 else
8526   OTOOL="$ac_cv_prog_OTOOL"
8527 fi
8528
8529     if test -n "$ac_tool_prefix"; then
8530   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8531 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8533 $as_echo_n "checking for $ac_word... " >&6; }
8534 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8535   $as_echo_n "(cached) " >&6
8536 else
8537   if test -n "$OTOOL64"; then
8538   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8539 else
8540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8541 for as_dir in $PATH
8542 do
8543   IFS=$as_save_IFS
8544   test -z "$as_dir" && as_dir=.
8545     for ac_exec_ext in '' $ac_executable_extensions; do
8546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8547     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8548     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8549     break 2
8550   fi
8551 done
8552   done
8553 IFS=$as_save_IFS
8554
8555 fi
8556 fi
8557 OTOOL64=$ac_cv_prog_OTOOL64
8558 if test -n "$OTOOL64"; then
8559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8560 $as_echo "$OTOOL64" >&6; }
8561 else
8562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8563 $as_echo "no" >&6; }
8564 fi
8565
8566
8567 fi
8568 if test -z "$ac_cv_prog_OTOOL64"; then
8569   ac_ct_OTOOL64=$OTOOL64
8570   # Extract the first word of "otool64", so it can be a program name with args.
8571 set dummy otool64; ac_word=$2
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8573 $as_echo_n "checking for $ac_word... " >&6; }
8574 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8575   $as_echo_n "(cached) " >&6
8576 else
8577   if test -n "$ac_ct_OTOOL64"; then
8578   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8579 else
8580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8581 for as_dir in $PATH
8582 do
8583   IFS=$as_save_IFS
8584   test -z "$as_dir" && as_dir=.
8585     for ac_exec_ext in '' $ac_executable_extensions; do
8586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8587     ac_cv_prog_ac_ct_OTOOL64="otool64"
8588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8589     break 2
8590   fi
8591 done
8592   done
8593 IFS=$as_save_IFS
8594
8595 fi
8596 fi
8597 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8598 if test -n "$ac_ct_OTOOL64"; then
8599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8600 $as_echo "$ac_ct_OTOOL64" >&6; }
8601 else
8602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8603 $as_echo "no" >&6; }
8604 fi
8605
8606   if test "x$ac_ct_OTOOL64" = x; then
8607     OTOOL64=":"
8608   else
8609     case $cross_compiling:$ac_tool_warned in
8610 yes:)
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8613 ac_tool_warned=yes ;;
8614 esac
8615     OTOOL64=$ac_ct_OTOOL64
8616   fi
8617 else
8618   OTOOL64="$ac_cv_prog_OTOOL64"
8619 fi
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8648 $as_echo_n "checking for -single_module linker flag... " >&6; }
8649 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8650   $as_echo_n "(cached) " >&6
8651 else
8652   lt_cv_apple_cc_single_mod=no
8653       if test -z "${LT_MULTI_MODULE}"; then
8654         # By default we will add the -single_module flag. You can override
8655         # by either setting the environment variable LT_MULTI_MODULE
8656         # non-empty at configure time, or by adding -multi_module to the
8657         # link flags.
8658         rm -rf libconftest.dylib*
8659         echo "int foo(void){return 1;}" > conftest.c
8660         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8661 -dynamiclib -Wl,-single_module conftest.c" >&5
8662         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8663           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8664         _lt_result=$?
8665         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8666           lt_cv_apple_cc_single_mod=yes
8667         else
8668           cat conftest.err >&5
8669         fi
8670         rm -rf libconftest.dylib*
8671         rm -f conftest.*
8672       fi
8673 fi
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8675 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8676     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8677 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8678 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8679   $as_echo_n "(cached) " >&6
8680 else
8681   lt_cv_ld_exported_symbols_list=no
8682       save_LDFLAGS=$LDFLAGS
8683       echo "_main" > conftest.sym
8684       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8685       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8686 /* end confdefs.h.  */
8687
8688 int
8689 main ()
8690 {
8691
8692   ;
8693   return 0;
8694 }
8695 _ACEOF
8696 if ac_fn_c_try_link "$LINENO"; then :
8697   lt_cv_ld_exported_symbols_list=yes
8698 else
8699   lt_cv_ld_exported_symbols_list=no
8700 fi
8701 rm -f core conftest.err conftest.$ac_objext \
8702     conftest$ac_exeext conftest.$ac_ext
8703         LDFLAGS="$save_LDFLAGS"
8704
8705 fi
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8707 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8708     case $host_os in
8709     rhapsody* | darwin1.[012])
8710       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8711     darwin1.*)
8712       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8713     darwin*) # darwin 5.x on
8714       # if running on 10.5 or later, the deployment target defaults
8715       # to the OS version, if on x86, and 10.4, the deployment
8716       # target defaults to 10.4. Don't you love it?
8717       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8718         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8719           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8720         10.[012]*)
8721           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8722         10.*)
8723           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8724       esac
8725     ;;
8726   esac
8727     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8728       _lt_dar_single_mod='$single_module'
8729     fi
8730     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8731       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8732     else
8733       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8734     fi
8735     if test "$DSYMUTIL" != ":"; then
8736       _lt_dsymutil='~$DSYMUTIL $lib || :'
8737     else
8738       _lt_dsymutil=
8739     fi
8740     ;;
8741   esac
8742
8743 for ac_header in dlfcn.h
8744 do :
8745   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8746 "
8747 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8748   cat >>confdefs.h <<_ACEOF
8749 #define HAVE_DLFCN_H 1
8750 _ACEOF
8751
8752 fi
8753
8754 done
8755
8756
8757
8758 ac_ext=cpp
8759 ac_cpp='$CXXCPP $CPPFLAGS'
8760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8763 if test -z "$CXX"; then
8764   if test -n "$CCC"; then
8765     CXX=$CCC
8766   else
8767     if test -n "$ac_tool_prefix"; then
8768   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8769   do
8770     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8771 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8773 $as_echo_n "checking for $ac_word... " >&6; }
8774 if test "${ac_cv_prog_CXX+set}" = set; then :
8775   $as_echo_n "(cached) " >&6
8776 else
8777   if test -n "$CXX"; then
8778   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8779 else
8780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8781 for as_dir in $PATH
8782 do
8783   IFS=$as_save_IFS
8784   test -z "$as_dir" && as_dir=.
8785     for ac_exec_ext in '' $ac_executable_extensions; do
8786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8787     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8788     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8789     break 2
8790   fi
8791 done
8792   done
8793 IFS=$as_save_IFS
8794
8795 fi
8796 fi
8797 CXX=$ac_cv_prog_CXX
8798 if test -n "$CXX"; then
8799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8800 $as_echo "$CXX" >&6; }
8801 else
8802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8803 $as_echo "no" >&6; }
8804 fi
8805
8806
8807     test -n "$CXX" && break
8808   done
8809 fi
8810 if test -z "$CXX"; then
8811   ac_ct_CXX=$CXX
8812   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8813 do
8814   # Extract the first word of "$ac_prog", so it can be a program name with args.
8815 set dummy $ac_prog; ac_word=$2
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8817 $as_echo_n "checking for $ac_word... " >&6; }
8818 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
8819   $as_echo_n "(cached) " >&6
8820 else
8821   if test -n "$ac_ct_CXX"; then
8822   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8823 else
8824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8825 for as_dir in $PATH
8826 do
8827   IFS=$as_save_IFS
8828   test -z "$as_dir" && as_dir=.
8829     for ac_exec_ext in '' $ac_executable_extensions; do
8830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8831     ac_cv_prog_ac_ct_CXX="$ac_prog"
8832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8833     break 2
8834   fi
8835 done
8836   done
8837 IFS=$as_save_IFS
8838
8839 fi
8840 fi
8841 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8842 if test -n "$ac_ct_CXX"; then
8843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8844 $as_echo "$ac_ct_CXX" >&6; }
8845 else
8846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8847 $as_echo "no" >&6; }
8848 fi
8849
8850
8851   test -n "$ac_ct_CXX" && break
8852 done
8853
8854   if test "x$ac_ct_CXX" = x; then
8855     CXX="g++"
8856   else
8857     case $cross_compiling:$ac_tool_warned in
8858 yes:)
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8861 ac_tool_warned=yes ;;
8862 esac
8863     CXX=$ac_ct_CXX
8864   fi
8865 fi
8866
8867   fi
8868 fi
8869 # Provide some information about the compiler.
8870 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8871 set X $ac_compile
8872 ac_compiler=$2
8873 for ac_option in --version -v -V -qversion; do
8874   { { ac_try="$ac_compiler $ac_option >&5"
8875 case "(($ac_try" in
8876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8877   *) ac_try_echo=$ac_try;;
8878 esac
8879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8880 $as_echo "$ac_try_echo"; } >&5
8881   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8882   ac_status=$?
8883   if test -s conftest.err; then
8884     sed '10a\
8885 ... rest of stderr output deleted ...
8886          10q' conftest.err >conftest.er1
8887     cat conftest.er1 >&5
8888     rm -f conftest.er1 conftest.err
8889   fi
8890   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8891   test $ac_status = 0; }
8892 done
8893
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8895 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8896 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8897   $as_echo_n "(cached) " >&6
8898 else
8899   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8900 /* end confdefs.h.  */
8901
8902 int
8903 main ()
8904 {
8905 #ifndef __GNUC__
8906        choke me
8907 #endif
8908
8909   ;
8910   return 0;
8911 }
8912 _ACEOF
8913 if ac_fn_cxx_try_compile "$LINENO"; then :
8914   ac_compiler_gnu=yes
8915 else
8916   ac_compiler_gnu=no
8917 fi
8918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8919 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8920
8921 fi
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8923 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8924 if test $ac_compiler_gnu = yes; then
8925   GXX=yes
8926 else
8927   GXX=
8928 fi
8929 ac_test_CXXFLAGS=${CXXFLAGS+set}
8930 ac_save_CXXFLAGS=$CXXFLAGS
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8932 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8933 if test "${ac_cv_prog_cxx_g+set}" = set; then :
8934   $as_echo_n "(cached) " >&6
8935 else
8936   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8937    ac_cxx_werror_flag=yes
8938    ac_cv_prog_cxx_g=no
8939    CXXFLAGS="-g"
8940    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941 /* end confdefs.h.  */
8942
8943 int
8944 main ()
8945 {
8946
8947   ;
8948   return 0;
8949 }
8950 _ACEOF
8951 if ac_fn_cxx_try_compile "$LINENO"; then :
8952   ac_cv_prog_cxx_g=yes
8953 else
8954   CXXFLAGS=""
8955       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8956 /* end confdefs.h.  */
8957
8958 int
8959 main ()
8960 {
8961
8962   ;
8963   return 0;
8964 }
8965 _ACEOF
8966 if ac_fn_cxx_try_compile "$LINENO"; then :
8967
8968 else
8969   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8970          CXXFLAGS="-g"
8971          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8972 /* end confdefs.h.  */
8973
8974 int
8975 main ()
8976 {
8977
8978   ;
8979   return 0;
8980 }
8981 _ACEOF
8982 if ac_fn_cxx_try_compile "$LINENO"; then :
8983   ac_cv_prog_cxx_g=yes
8984 fi
8985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8986 fi
8987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8988 fi
8989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8990    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8991 fi
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8993 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8994 if test "$ac_test_CXXFLAGS" = set; then
8995   CXXFLAGS=$ac_save_CXXFLAGS
8996 elif test $ac_cv_prog_cxx_g = yes; then
8997   if test "$GXX" = yes; then
8998     CXXFLAGS="-g -O2"
8999   else
9000     CXXFLAGS="-g"
9001   fi
9002 else
9003   if test "$GXX" = yes; then
9004     CXXFLAGS="-O2"
9005   else
9006     CXXFLAGS=
9007   fi
9008 fi
9009 ac_ext=c
9010 ac_cpp='$CPP $CPPFLAGS'
9011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9014
9015 depcc="$CXX"  am_compiler_list=
9016
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9018 $as_echo_n "checking dependency style of $depcc... " >&6; }
9019 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9020   $as_echo_n "(cached) " >&6
9021 else
9022   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9023   # We make a subdir and do the tests there.  Otherwise we can end up
9024   # making bogus files that we don't know about and never remove.  For
9025   # instance it was reported that on HP-UX the gcc test will end up
9026   # making a dummy file named `D' -- because `-MD' means `put the output
9027   # in D'.
9028   mkdir conftest.dir
9029   # Copy depcomp to subdir because otherwise we won't find it if we're
9030   # using a relative directory.
9031   cp "$am_depcomp" conftest.dir
9032   cd conftest.dir
9033   # We will build objects and dependencies in a subdirectory because
9034   # it helps to detect inapplicable dependency modes.  For instance
9035   # both Tru64's cc and ICC support -MD to output dependencies as a
9036   # side effect of compilation, but ICC will put the dependencies in
9037   # the current directory while Tru64 will put them in the object
9038   # directory.
9039   mkdir sub
9040
9041   am_cv_CXX_dependencies_compiler_type=none
9042   if test "$am_compiler_list" = ""; then
9043      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9044   fi
9045   am__universal=false
9046   case " $depcc " in #(
9047      *\ -arch\ *\ -arch\ *) am__universal=true ;;
9048      esac
9049
9050   for depmode in $am_compiler_list; do
9051     # Setup a source with many dependencies, because some compilers
9052     # like to wrap large dependency lists on column 80 (with \), and
9053     # we should not choose a depcomp mode which is confused by this.
9054     #
9055     # We need to recreate these files for each test, as the compiler may
9056     # overwrite some of them when testing with obscure command lines.
9057     # This happens at least with the AIX C compiler.
9058     : > sub/conftest.c
9059     for i in 1 2 3 4 5 6; do
9060       echo '#include "conftst'$i'.h"' >> sub/conftest.c
9061       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9062       # Solaris 8's {/usr,}/bin/sh.
9063       touch sub/conftst$i.h
9064     done
9065     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9066
9067     # We check with `-c' and `-o' for the sake of the "dashmstdout"
9068     # mode.  It turns out that the SunPro C++ compiler does not properly
9069     # handle `-M -o', and we need to detect this.  Also, some Intel
9070     # versions had trouble with output in subdirs
9071     am__obj=sub/conftest.${OBJEXT-o}
9072     am__minus_obj="-o $am__obj"
9073     case $depmode in
9074     gcc)
9075       # This depmode causes a compiler race in universal mode.
9076       test "$am__universal" = false || continue
9077       ;;
9078     nosideeffect)
9079       # after this tag, mechanisms are not by side-effect, so they'll
9080       # only be used when explicitly requested
9081       if test "x$enable_dependency_tracking" = xyes; then
9082         continue
9083       else
9084         break
9085       fi
9086       ;;
9087     msvisualcpp | msvcmsys)
9088       # This compiler won't grok `-c -o', but also, the minuso test has
9089       # not run yet.  These depmodes are late enough in the game, and
9090       # so weak that their functioning should not be impacted.
9091       am__obj=conftest.${OBJEXT-o}
9092       am__minus_obj=
9093       ;;
9094     none) break ;;
9095     esac
9096     if depmode=$depmode \
9097        source=sub/conftest.c object=$am__obj \
9098        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9099        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9100          >/dev/null 2>conftest.err &&
9101        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9102        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9103        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9104        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9105       # icc doesn't choke on unknown options, it will just issue warnings
9106       # or remarks (even with -Werror).  So we grep stderr for any message
9107       # that says an option was ignored or not supported.
9108       # When given -MP, icc 7.0 and 7.1 complain thusly:
9109       #   icc: Command line warning: ignoring option '-M'; no argument required
9110       # The diagnosis changed in icc 8.0:
9111       #   icc: Command line remark: option '-MP' not supported
9112       if (grep 'ignoring option' conftest.err ||
9113           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9114         am_cv_CXX_dependencies_compiler_type=$depmode
9115         break
9116       fi
9117     fi
9118   done
9119
9120   cd ..
9121   rm -rf conftest.dir
9122 else
9123   am_cv_CXX_dependencies_compiler_type=none
9124 fi
9125
9126 fi
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9128 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9129 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9130
9131  if
9132   test "x$enable_dependency_tracking" != xno \
9133   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
9134   am__fastdepCXX_TRUE=
9135   am__fastdepCXX_FALSE='#'
9136 else
9137   am__fastdepCXX_TRUE='#'
9138   am__fastdepCXX_FALSE=
9139 fi
9140
9141
9142 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9143     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9144     (test "X$CXX" != "Xg++"))) ; then
9145   ac_ext=cpp
9146 ac_cpp='$CXXCPP $CPPFLAGS'
9147 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9148 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9149 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9151 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9152 if test -z "$CXXCPP"; then
9153   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9154   $as_echo_n "(cached) " >&6
9155 else
9156       # Double quotes because CXXCPP needs to be expanded
9157     for CXXCPP in "$CXX -E" "/lib/cpp"
9158     do
9159       ac_preproc_ok=false
9160 for ac_cxx_preproc_warn_flag in '' yes
9161 do
9162   # Use a header file that comes with gcc, so configuring glibc
9163   # with a fresh cross-compiler works.
9164   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9165   # <limits.h> exists even on freestanding compilers.
9166   # On the NeXT, cc -E runs the code through the compiler's parser,
9167   # not just through cpp. "Syntax error" is here to catch this case.
9168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9169 /* end confdefs.h.  */
9170 #ifdef __STDC__
9171 # include <limits.h>
9172 #else
9173 # include <assert.h>
9174 #endif
9175                      Syntax error
9176 _ACEOF
9177 if ac_fn_cxx_try_cpp "$LINENO"; then :
9178
9179 else
9180   # Broken: fails on valid input.
9181 continue
9182 fi
9183 rm -f conftest.err conftest.$ac_ext
9184
9185   # OK, works on sane cases.  Now check whether nonexistent headers
9186   # can be detected and how.
9187   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9188 /* end confdefs.h.  */
9189 #include <ac_nonexistent.h>
9190 _ACEOF
9191 if ac_fn_cxx_try_cpp "$LINENO"; then :
9192   # Broken: success on invalid input.
9193 continue
9194 else
9195   # Passes both tests.
9196 ac_preproc_ok=:
9197 break
9198 fi
9199 rm -f conftest.err conftest.$ac_ext
9200
9201 done
9202 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9203 rm -f conftest.err conftest.$ac_ext
9204 if $ac_preproc_ok; then :
9205   break
9206 fi
9207
9208     done
9209     ac_cv_prog_CXXCPP=$CXXCPP
9210
9211 fi
9212   CXXCPP=$ac_cv_prog_CXXCPP
9213 else
9214   ac_cv_prog_CXXCPP=$CXXCPP
9215 fi
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9217 $as_echo "$CXXCPP" >&6; }
9218 ac_preproc_ok=false
9219 for ac_cxx_preproc_warn_flag in '' yes
9220 do
9221   # Use a header file that comes with gcc, so configuring glibc
9222   # with a fresh cross-compiler works.
9223   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9224   # <limits.h> exists even on freestanding compilers.
9225   # On the NeXT, cc -E runs the code through the compiler's parser,
9226   # not just through cpp. "Syntax error" is here to catch this case.
9227   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9228 /* end confdefs.h.  */
9229 #ifdef __STDC__
9230 # include <limits.h>
9231 #else
9232 # include <assert.h>
9233 #endif
9234                      Syntax error
9235 _ACEOF
9236 if ac_fn_cxx_try_cpp "$LINENO"; then :
9237
9238 else
9239   # Broken: fails on valid input.
9240 continue
9241 fi
9242 rm -f conftest.err conftest.$ac_ext
9243
9244   # OK, works on sane cases.  Now check whether nonexistent headers
9245   # can be detected and how.
9246   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9247 /* end confdefs.h.  */
9248 #include <ac_nonexistent.h>
9249 _ACEOF
9250 if ac_fn_cxx_try_cpp "$LINENO"; then :
9251   # Broken: success on invalid input.
9252 continue
9253 else
9254   # Passes both tests.
9255 ac_preproc_ok=:
9256 break
9257 fi
9258 rm -f conftest.err conftest.$ac_ext
9259
9260 done
9261 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9262 rm -f conftest.err conftest.$ac_ext
9263 if $ac_preproc_ok; then :
9264
9265 else
9266   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9268 _lt_caught_CXX_error=yes; }
9269 fi
9270
9271 ac_ext=c
9272 ac_cpp='$CPP $CPPFLAGS'
9273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9276
9277 else
9278   _lt_caught_CXX_error=yes
9279 fi
9280
9281
9282
9283
9284
9285 # Set options
9286
9287
9288
9289         enable_dlopen=no
9290
9291
9292   enable_win32_dll=no
9293
9294
9295             # Check whether --enable-shared was given.
9296 if test "${enable_shared+set}" = set; then :
9297   enableval=$enable_shared; p=${PACKAGE-default}
9298     case $enableval in
9299     yes) enable_shared=yes ;;
9300     no) enable_shared=no ;;
9301     *)
9302       enable_shared=no
9303       # Look at the argument we got.  We use all the common list separators.
9304       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9305       for pkg in $enableval; do
9306         IFS="$lt_save_ifs"
9307         if test "X$pkg" = "X$p"; then
9308           enable_shared=yes
9309         fi
9310       done
9311       IFS="$lt_save_ifs"
9312       ;;
9313     esac
9314 else
9315   enable_shared=yes
9316 fi
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326   # Check whether --enable-static was given.
9327 if test "${enable_static+set}" = set; then :
9328   enableval=$enable_static; p=${PACKAGE-default}
9329     case $enableval in
9330     yes) enable_static=yes ;;
9331     no) enable_static=no ;;
9332     *)
9333      enable_static=no
9334       # Look at the argument we got.  We use all the common list separators.
9335       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9336       for pkg in $enableval; do
9337         IFS="$lt_save_ifs"
9338         if test "X$pkg" = "X$p"; then
9339           enable_static=yes
9340         fi
9341       done
9342       IFS="$lt_save_ifs"
9343       ;;
9344     esac
9345 else
9346   enable_static=yes
9347 fi
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358 # Check whether --with-pic was given.
9359 if test "${with_pic+set}" = set; then :
9360   withval=$with_pic; pic_mode="$withval"
9361 else
9362   pic_mode=default
9363 fi
9364
9365
9366 test -z "$pic_mode" && pic_mode=default
9367
9368
9369
9370
9371
9372
9373
9374   # Check whether --enable-fast-install was given.
9375 if test "${enable_fast_install+set}" = set; then :
9376   enableval=$enable_fast_install; p=${PACKAGE-default}
9377     case $enableval in
9378     yes) enable_fast_install=yes ;;
9379     no) enable_fast_install=no ;;
9380     *)
9381       enable_fast_install=no
9382       # Look at the argument we got.  We use all the common list separators.
9383       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9384       for pkg in $enableval; do
9385         IFS="$lt_save_ifs"
9386         if test "X$pkg" = "X$p"; then
9387           enable_fast_install=yes
9388         fi
9389       done
9390       IFS="$lt_save_ifs"
9391       ;;
9392     esac
9393 else
9394   enable_fast_install=yes
9395 fi
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407 # This can be used to rebuild libtool when needed
9408 LIBTOOL_DEPS="$ltmain"
9409
9410 # Always use our own libtool.
9411 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437 test -z "$LN_S" && LN_S="ln -s"
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452 if test -n "${ZSH_VERSION+set}" ; then
9453    setopt NO_GLOB_SUBST
9454 fi
9455
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9457 $as_echo_n "checking for objdir... " >&6; }
9458 if test "${lt_cv_objdir+set}" = set; then :
9459   $as_echo_n "(cached) " >&6
9460 else
9461   rm -f .libs 2>/dev/null
9462 mkdir .libs 2>/dev/null
9463 if test -d .libs; then
9464   lt_cv_objdir=.libs
9465 else
9466   # MS-DOS does not allow filenames that begin with a dot.
9467   lt_cv_objdir=_libs
9468 fi
9469 rmdir .libs 2>/dev/null
9470 fi
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9472 $as_echo "$lt_cv_objdir" >&6; }
9473 objdir=$lt_cv_objdir
9474
9475
9476
9477
9478
9479 cat >>confdefs.h <<_ACEOF
9480 #define LT_OBJDIR "$lt_cv_objdir/"
9481 _ACEOF
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499 case $host_os in
9500 aix3*)
9501   # AIX sometimes has problems with the GCC collect2 program.  For some
9502   # reason, if we set the COLLECT_NAMES environment variable, the problems
9503   # vanish in a puff of smoke.
9504   if test "X${COLLECT_NAMES+set}" != Xset; then
9505     COLLECT_NAMES=
9506     export COLLECT_NAMES
9507   fi
9508   ;;
9509 esac
9510
9511 # Sed substitution that helps us do robust quoting.  It backslashifies
9512 # metacharacters that are still active within double-quoted strings.
9513 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9514
9515 # Same as above, but do not quote variable references.
9516 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9517
9518 # Sed substitution to delay expansion of an escaped shell variable in a
9519 # double_quote_subst'ed string.
9520 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9521
9522 # Sed substitution to delay expansion of an escaped single quote.
9523 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9524
9525 # Sed substitution to avoid accidental globbing in evaled expressions
9526 no_glob_subst='s/\*/\\\*/g'
9527
9528 # Global variables:
9529 ofile=libtool
9530 can_build_shared=yes
9531
9532 # All known linkers require a `.a' archive for static linking (except MSVC,
9533 # which needs '.lib').
9534 libext=a
9535
9536 with_gnu_ld="$lt_cv_prog_gnu_ld"
9537
9538 old_CC="$CC"
9539 old_CFLAGS="$CFLAGS"
9540
9541 # Set sane defaults for various variables
9542 test -z "$CC" && CC=cc
9543 test -z "$LTCC" && LTCC=$CC
9544 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9545 test -z "$LD" && LD=ld
9546 test -z "$ac_objext" && ac_objext=o
9547
9548 for cc_temp in $compiler""; do
9549   case $cc_temp in
9550     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9551     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9552     \-*) ;;
9553     *) break;;
9554   esac
9555 done
9556 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9557
9558
9559 # Only perform the check for file, if the check method requires it
9560 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9561 case $deplibs_check_method in
9562 file_magic*)
9563   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9564     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9565 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9566 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9567   $as_echo_n "(cached) " >&6
9568 else
9569   case $MAGIC_CMD in
9570 [\\/*] |  ?:[\\/]*)
9571   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9572   ;;
9573 *)
9574   lt_save_MAGIC_CMD="$MAGIC_CMD"
9575   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9576   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9577   for ac_dir in $ac_dummy; do
9578     IFS="$lt_save_ifs"
9579     test -z "$ac_dir" && ac_dir=.
9580     if test -f $ac_dir/${ac_tool_prefix}file; then
9581       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9582       if test -n "$file_magic_test_file"; then
9583         case $deplibs_check_method in
9584         "file_magic "*)
9585           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9586           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9587           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9588             $EGREP "$file_magic_regex" > /dev/null; then
9589             :
9590           else
9591             cat <<_LT_EOF 1>&2
9592
9593 *** Warning: the command libtool uses to detect shared libraries,
9594 *** $file_magic_cmd, produces output that libtool cannot recognize.
9595 *** The result is that libtool may fail to recognize shared libraries
9596 *** as such.  This will affect the creation of libtool libraries that
9597 *** depend on shared libraries, but programs linked with such libtool
9598 *** libraries will work regardless of this problem.  Nevertheless, you
9599 *** may want to report the problem to your system manager and/or to
9600 *** bug-libtool@gnu.org
9601
9602 _LT_EOF
9603           fi ;;
9604         esac
9605       fi
9606       break
9607     fi
9608   done
9609   IFS="$lt_save_ifs"
9610   MAGIC_CMD="$lt_save_MAGIC_CMD"
9611   ;;
9612 esac
9613 fi
9614
9615 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9616 if test -n "$MAGIC_CMD"; then
9617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9618 $as_echo "$MAGIC_CMD" >&6; }
9619 else
9620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9621 $as_echo "no" >&6; }
9622 fi
9623
9624
9625
9626
9627
9628 if test -z "$lt_cv_path_MAGIC_CMD"; then
9629   if test -n "$ac_tool_prefix"; then
9630     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9631 $as_echo_n "checking for file... " >&6; }
9632 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9633   $as_echo_n "(cached) " >&6
9634 else
9635   case $MAGIC_CMD in
9636 [\\/*] |  ?:[\\/]*)
9637   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9638   ;;
9639 *)
9640   lt_save_MAGIC_CMD="$MAGIC_CMD"
9641   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9642   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9643   for ac_dir in $ac_dummy; do
9644     IFS="$lt_save_ifs"
9645     test -z "$ac_dir" && ac_dir=.
9646     if test -f $ac_dir/file; then
9647       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9648       if test -n "$file_magic_test_file"; then
9649         case $deplibs_check_method in
9650         "file_magic "*)
9651           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9652           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9653           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9654             $EGREP "$file_magic_regex" > /dev/null; then
9655             :
9656           else
9657             cat <<_LT_EOF 1>&2
9658
9659 *** Warning: the command libtool uses to detect shared libraries,
9660 *** $file_magic_cmd, produces output that libtool cannot recognize.
9661 *** The result is that libtool may fail to recognize shared libraries
9662 *** as such.  This will affect the creation of libtool libraries that
9663 *** depend on shared libraries, but programs linked with such libtool
9664 *** libraries will work regardless of this problem.  Nevertheless, you
9665 *** may want to report the problem to your system manager and/or to
9666 *** bug-libtool@gnu.org
9667
9668 _LT_EOF
9669           fi ;;
9670         esac
9671       fi
9672       break
9673     fi
9674   done
9675   IFS="$lt_save_ifs"
9676   MAGIC_CMD="$lt_save_MAGIC_CMD"
9677   ;;
9678 esac
9679 fi
9680
9681 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9682 if test -n "$MAGIC_CMD"; then
9683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9684 $as_echo "$MAGIC_CMD" >&6; }
9685 else
9686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9687 $as_echo "no" >&6; }
9688 fi
9689
9690
9691   else
9692     MAGIC_CMD=:
9693   fi
9694 fi
9695
9696   fi
9697   ;;
9698 esac
9699
9700 # Use C for the default configuration in the libtool script
9701
9702 lt_save_CC="$CC"
9703 ac_ext=c
9704 ac_cpp='$CPP $CPPFLAGS'
9705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9708
9709
9710 # Source file extension for C test sources.
9711 ac_ext=c
9712
9713 # Object file extension for compiled C test sources.
9714 objext=o
9715 objext=$objext
9716
9717 # Code to be used in simple compile tests
9718 lt_simple_compile_test_code="int some_variable = 0;"
9719
9720 # Code to be used in simple link tests
9721 lt_simple_link_test_code='int main(){return(0);}'
9722
9723
9724
9725
9726
9727
9728
9729 # If no C compiler was specified, use CC.
9730 LTCC=${LTCC-"$CC"}
9731
9732 # If no C compiler flags were specified, use CFLAGS.
9733 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9734
9735 # Allow CC to be a program name with arguments.
9736 compiler=$CC
9737
9738 # Save the default compiler, since it gets overwritten when the other
9739 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9740 compiler_DEFAULT=$CC
9741
9742 # save warnings/boilerplate of simple test code
9743 ac_outfile=conftest.$ac_objext
9744 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9745 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9746 _lt_compiler_boilerplate=`cat conftest.err`
9747 $RM conftest*
9748
9749 ac_outfile=conftest.$ac_objext
9750 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9751 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9752 _lt_linker_boilerplate=`cat conftest.err`
9753 $RM -r conftest*
9754
9755
9756 ## CAVEAT EMPTOR:
9757 ## There is no encapsulation within the following macros, do not change
9758 ## the running order or otherwise move them around unless you know exactly
9759 ## what you are doing...
9760 if test -n "$compiler"; then
9761
9762 lt_prog_compiler_no_builtin_flag=
9763
9764 if test "$GCC" = yes; then
9765   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9766
9767   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9768 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9769 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9770   $as_echo_n "(cached) " >&6
9771 else
9772   lt_cv_prog_compiler_rtti_exceptions=no
9773    ac_outfile=conftest.$ac_objext
9774    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9775    lt_compiler_flag="-fno-rtti -fno-exceptions"
9776    # Insert the option either (1) after the last *FLAGS variable, or
9777    # (2) before a word containing "conftest.", or (3) at the end.
9778    # Note that $ac_compile itself does not contain backslashes and begins
9779    # with a dollar sign (not a hyphen), so the echo should work correctly.
9780    # The option is referenced via a variable to avoid confusing sed.
9781    lt_compile=`echo "$ac_compile" | $SED \
9782    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9783    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9784    -e 's:$: $lt_compiler_flag:'`
9785    (eval echo "\"\$as_me:9785: $lt_compile\"" >&5)
9786    (eval "$lt_compile" 2>conftest.err)
9787    ac_status=$?
9788    cat conftest.err >&5
9789    echo "$as_me:9789: \$? = $ac_status" >&5
9790    if (exit $ac_status) && test -s "$ac_outfile"; then
9791      # The compiler can only warn and ignore the option if not recognized
9792      # So say no if there are warnings other than the usual output.
9793      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9794      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9795      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9796        lt_cv_prog_compiler_rtti_exceptions=yes
9797      fi
9798    fi
9799    $RM conftest*
9800
9801 fi
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9803 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9804
9805 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9806     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9807 else
9808     :
9809 fi
9810
9811 fi
9812
9813
9814
9815
9816
9817
9818   lt_prog_compiler_wl=
9819 lt_prog_compiler_pic=
9820 lt_prog_compiler_static=
9821
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9823 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9824
9825   if test "$GCC" = yes; then
9826     lt_prog_compiler_wl='-Wl,'
9827     lt_prog_compiler_static='-static'
9828
9829     case $host_os in
9830       aix*)
9831       # All AIX code is PIC.
9832       if test "$host_cpu" = ia64; then
9833         # AIX 5 now supports IA64 processor
9834         lt_prog_compiler_static='-Bstatic'
9835       fi
9836       ;;
9837
9838     amigaos*)
9839       case $host_cpu in
9840       powerpc)
9841             # see comment about AmigaOS4 .so support
9842             lt_prog_compiler_pic='-fPIC'
9843         ;;
9844       m68k)
9845             # FIXME: we need at least 68020 code to build shared libraries, but
9846             # adding the `-m68020' flag to GCC prevents building anything better,
9847             # like `-m68040'.
9848             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9849         ;;
9850       esac
9851       ;;
9852
9853     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9854       # PIC is the default for these OSes.
9855       ;;
9856
9857     mingw* | cygwin* | pw32* | os2* | cegcc*)
9858       # This hack is so that the source file can tell whether it is being
9859       # built for inclusion in a dll (and should export symbols for example).
9860       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9861       # (--disable-auto-import) libraries
9862       lt_prog_compiler_pic='-DDLL_EXPORT'
9863       ;;
9864
9865     darwin* | rhapsody*)
9866       # PIC is the default on this platform
9867       # Common symbols not allowed in MH_DYLIB files
9868       lt_prog_compiler_pic='-fno-common'
9869       ;;
9870
9871     hpux*)
9872       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9873       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9874       # sets the default TLS model and affects inlining.
9875       case $host_cpu in
9876       hppa*64*)
9877         # +Z the default
9878         ;;
9879       *)
9880         lt_prog_compiler_pic='-fPIC'
9881         ;;
9882       esac
9883       ;;
9884
9885     interix[3-9]*)
9886       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9887       # Instead, we relocate shared libraries at runtime.
9888       ;;
9889
9890     msdosdjgpp*)
9891       # Just because we use GCC doesn't mean we suddenly get shared libraries
9892       # on systems that don't support them.
9893       lt_prog_compiler_can_build_shared=no
9894       enable_shared=no
9895       ;;
9896
9897     *nto* | *qnx*)
9898       # QNX uses GNU C++, but need to define -shared option too, otherwise
9899       # it will coredump.
9900       lt_prog_compiler_pic='-fPIC -shared'
9901       ;;
9902
9903     sysv4*MP*)
9904       if test -d /usr/nec; then
9905         lt_prog_compiler_pic=-Kconform_pic
9906       fi
9907       ;;
9908
9909     *)
9910       lt_prog_compiler_pic='-fPIC'
9911       ;;
9912     esac
9913   else
9914     # PORTME Check for flag to pass linker flags through the system compiler.
9915     case $host_os in
9916     aix*)
9917       lt_prog_compiler_wl='-Wl,'
9918       if test "$host_cpu" = ia64; then
9919         # AIX 5 now supports IA64 processor
9920         lt_prog_compiler_static='-Bstatic'
9921       else
9922         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9923       fi
9924       ;;
9925
9926     mingw* | cygwin* | pw32* | os2* | cegcc*)
9927       # This hack is so that the source file can tell whether it is being
9928       # built for inclusion in a dll (and should export symbols for example).
9929       lt_prog_compiler_pic='-DDLL_EXPORT'
9930       ;;
9931
9932     hpux9* | hpux10* | hpux11*)
9933       lt_prog_compiler_wl='-Wl,'
9934       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9935       # not for PA HP-UX.
9936       case $host_cpu in
9937       hppa*64*|ia64*)
9938         # +Z the default
9939         ;;
9940       *)
9941         lt_prog_compiler_pic='+Z'
9942         ;;
9943       esac
9944       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9945       lt_prog_compiler_static='${wl}-a ${wl}archive'
9946       ;;
9947
9948     irix5* | irix6* | nonstopux*)
9949       lt_prog_compiler_wl='-Wl,'
9950       # PIC (with -KPIC) is the default.
9951       lt_prog_compiler_static='-non_shared'
9952       ;;
9953
9954     linux* | k*bsd*-gnu)
9955       case $cc_basename in
9956       # old Intel for x86_64 which still supported -KPIC.
9957       ecc*)
9958         lt_prog_compiler_wl='-Wl,'
9959         lt_prog_compiler_pic='-KPIC'
9960         lt_prog_compiler_static='-static'
9961         ;;
9962       # icc used to be incompatible with GCC.
9963       # ICC 10 doesn't accept -KPIC any more.
9964       icc* | ifort*)
9965         lt_prog_compiler_wl='-Wl,'
9966         lt_prog_compiler_pic='-fPIC'
9967         lt_prog_compiler_static='-static'
9968         ;;
9969       # Lahey Fortran 8.1.
9970       lf95*)
9971         lt_prog_compiler_wl='-Wl,'
9972         lt_prog_compiler_pic='--shared'
9973         lt_prog_compiler_static='--static'
9974         ;;
9975       pgcc* | pgf77* | pgf90* | pgf95*)
9976         # Portland Group compilers (*not* the Pentium gcc compiler,
9977         # which looks to be a dead project)
9978         lt_prog_compiler_wl='-Wl,'
9979         lt_prog_compiler_pic='-fpic'
9980         lt_prog_compiler_static='-Bstatic'
9981         ;;
9982       ccc*)
9983         lt_prog_compiler_wl='-Wl,'
9984         # All Alpha code is PIC.
9985         lt_prog_compiler_static='-non_shared'
9986         ;;
9987       xl*)
9988         # IBM XL C 8.0/Fortran 10.1 on PPC
9989         lt_prog_compiler_wl='-Wl,'
9990         lt_prog_compiler_pic='-qpic'
9991         lt_prog_compiler_static='-qstaticlink'
9992         ;;
9993       *)
9994         case `$CC -V 2>&1 | sed 5q` in
9995         *Sun\ C*)
9996           # Sun C 5.9
9997           lt_prog_compiler_pic='-KPIC'
9998           lt_prog_compiler_static='-Bstatic'
9999           lt_prog_compiler_wl='-Wl,'
10000           ;;
10001         *Sun\ F*)
10002           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10003           lt_prog_compiler_pic='-KPIC'
10004           lt_prog_compiler_static='-Bstatic'
10005           lt_prog_compiler_wl=''
10006           ;;
10007         esac
10008         ;;
10009       esac
10010       ;;
10011
10012     newsos6)
10013       lt_prog_compiler_pic='-KPIC'
10014       lt_prog_compiler_static='-Bstatic'
10015       ;;
10016
10017     *nto* | *qnx*)
10018       # QNX uses GNU C++, but need to define -shared option too, otherwise
10019       # it will coredump.
10020       lt_prog_compiler_pic='-fPIC -shared'
10021       ;;
10022
10023     osf3* | osf4* | osf5*)
10024       lt_prog_compiler_wl='-Wl,'
10025       # All OSF/1 code is PIC.
10026       lt_prog_compiler_static='-non_shared'
10027       ;;
10028
10029     rdos*)
10030       lt_prog_compiler_static='-non_shared'
10031       ;;
10032
10033     solaris*)
10034       lt_prog_compiler_pic='-KPIC'
10035       lt_prog_compiler_static='-Bstatic'
10036       case $cc_basename in
10037       f77* | f90* | f95*)
10038         lt_prog_compiler_wl='-Qoption ld ';;
10039       *)
10040         lt_prog_compiler_wl='-Wl,';;
10041       esac
10042       ;;
10043
10044     sunos4*)
10045       lt_prog_compiler_wl='-Qoption ld '
10046       lt_prog_compiler_pic='-PIC'
10047       lt_prog_compiler_static='-Bstatic'
10048       ;;
10049
10050     sysv4 | sysv4.2uw2* | sysv4.3*)
10051       lt_prog_compiler_wl='-Wl,'
10052       lt_prog_compiler_pic='-KPIC'
10053       lt_prog_compiler_static='-Bstatic'
10054       ;;
10055
10056     sysv4*MP*)
10057       if test -d /usr/nec ;then
10058         lt_prog_compiler_pic='-Kconform_pic'
10059         lt_prog_compiler_static='-Bstatic'
10060       fi
10061       ;;
10062
10063     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10064       lt_prog_compiler_wl='-Wl,'
10065       lt_prog_compiler_pic='-KPIC'
10066       lt_prog_compiler_static='-Bstatic'
10067       ;;
10068
10069     unicos*)
10070       lt_prog_compiler_wl='-Wl,'
10071       lt_prog_compiler_can_build_shared=no
10072       ;;
10073
10074     uts4*)
10075       lt_prog_compiler_pic='-pic'
10076       lt_prog_compiler_static='-Bstatic'
10077       ;;
10078
10079     *)
10080       lt_prog_compiler_can_build_shared=no
10081       ;;
10082     esac
10083   fi
10084
10085 case $host_os in
10086   # For platforms which do not support PIC, -DPIC is meaningless:
10087   *djgpp*)
10088     lt_prog_compiler_pic=
10089     ;;
10090   *)
10091     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10092     ;;
10093 esac
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10095 $as_echo "$lt_prog_compiler_pic" >&6; }
10096
10097
10098
10099
10100
10101
10102 #
10103 # Check to make sure the PIC flag actually works.
10104 #
10105 if test -n "$lt_prog_compiler_pic"; then
10106   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10107 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10108 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10109   $as_echo_n "(cached) " >&6
10110 else
10111   lt_cv_prog_compiler_pic_works=no
10112    ac_outfile=conftest.$ac_objext
10113    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10114    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10115    # Insert the option either (1) after the last *FLAGS variable, or
10116    # (2) before a word containing "conftest.", or (3) at the end.
10117    # Note that $ac_compile itself does not contain backslashes and begins
10118    # with a dollar sign (not a hyphen), so the echo should work correctly.
10119    # The option is referenced via a variable to avoid confusing sed.
10120    lt_compile=`echo "$ac_compile" | $SED \
10121    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10122    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10123    -e 's:$: $lt_compiler_flag:'`
10124    (eval echo "\"\$as_me:10124: $lt_compile\"" >&5)
10125    (eval "$lt_compile" 2>conftest.err)
10126    ac_status=$?
10127    cat conftest.err >&5
10128    echo "$as_me:10128: \$? = $ac_status" >&5
10129    if (exit $ac_status) && test -s "$ac_outfile"; then
10130      # The compiler can only warn and ignore the option if not recognized
10131      # So say no if there are warnings other than the usual output.
10132      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10133      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10134      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10135        lt_cv_prog_compiler_pic_works=yes
10136      fi
10137    fi
10138    $RM conftest*
10139
10140 fi
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10142 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10143
10144 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10145     case $lt_prog_compiler_pic in
10146      "" | " "*) ;;
10147      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10148      esac
10149 else
10150     lt_prog_compiler_pic=
10151      lt_prog_compiler_can_build_shared=no
10152 fi
10153
10154 fi
10155
10156
10157
10158
10159
10160
10161 #
10162 # Check to make sure the static flag actually works.
10163 #
10164 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10166 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10167 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10168   $as_echo_n "(cached) " >&6
10169 else
10170   lt_cv_prog_compiler_static_works=no
10171    save_LDFLAGS="$LDFLAGS"
10172    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10173    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10174    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10175      # The linker can only warn and ignore the option if not recognized
10176      # So say no if there are warnings
10177      if test -s conftest.err; then
10178        # Append any errors to the config.log.
10179        cat conftest.err 1>&5
10180        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10181        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10182        if diff conftest.exp conftest.er2 >/dev/null; then
10183          lt_cv_prog_compiler_static_works=yes
10184        fi
10185      else
10186        lt_cv_prog_compiler_static_works=yes
10187      fi
10188    fi
10189    $RM -r conftest*
10190    LDFLAGS="$save_LDFLAGS"
10191
10192 fi
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10194 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10195
10196 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10197     :
10198 else
10199     lt_prog_compiler_static=
10200 fi
10201
10202
10203
10204
10205
10206
10207
10208   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10209 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10210 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10211   $as_echo_n "(cached) " >&6
10212 else
10213   lt_cv_prog_compiler_c_o=no
10214    $RM -r conftest 2>/dev/null
10215    mkdir conftest
10216    cd conftest
10217    mkdir out
10218    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10219
10220    lt_compiler_flag="-o out/conftest2.$ac_objext"
10221    # Insert the option either (1) after the last *FLAGS variable, or
10222    # (2) before a word containing "conftest.", or (3) at the end.
10223    # Note that $ac_compile itself does not contain backslashes and begins
10224    # with a dollar sign (not a hyphen), so the echo should work correctly.
10225    lt_compile=`echo "$ac_compile" | $SED \
10226    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10227    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10228    -e 's:$: $lt_compiler_flag:'`
10229    (eval echo "\"\$as_me:10229: $lt_compile\"" >&5)
10230    (eval "$lt_compile" 2>out/conftest.err)
10231    ac_status=$?
10232    cat out/conftest.err >&5
10233    echo "$as_me:10233: \$? = $ac_status" >&5
10234    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10235    then
10236      # The compiler can only warn and ignore the option if not recognized
10237      # So say no if there are warnings
10238      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10239      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10240      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10241        lt_cv_prog_compiler_c_o=yes
10242      fi
10243    fi
10244    chmod u+w . 2>&5
10245    $RM conftest*
10246    # SGI C++ compiler will create directory out/ii_files/ for
10247    # template instantiation
10248    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10249    $RM out/* && rmdir out
10250    cd ..
10251    $RM -r conftest
10252    $RM conftest*
10253
10254 fi
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10256 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10257
10258
10259
10260
10261
10262
10263   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10264 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10265 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10266   $as_echo_n "(cached) " >&6
10267 else
10268   lt_cv_prog_compiler_c_o=no
10269    $RM -r conftest 2>/dev/null
10270    mkdir conftest
10271    cd conftest
10272    mkdir out
10273    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10274
10275    lt_compiler_flag="-o out/conftest2.$ac_objext"
10276    # Insert the option either (1) after the last *FLAGS variable, or
10277    # (2) before a word containing "conftest.", or (3) at the end.
10278    # Note that $ac_compile itself does not contain backslashes and begins
10279    # with a dollar sign (not a hyphen), so the echo should work correctly.
10280    lt_compile=`echo "$ac_compile" | $SED \
10281    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10282    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10283    -e 's:$: $lt_compiler_flag:'`
10284    (eval echo "\"\$as_me:10284: $lt_compile\"" >&5)
10285    (eval "$lt_compile" 2>out/conftest.err)
10286    ac_status=$?
10287    cat out/conftest.err >&5
10288    echo "$as_me:10288: \$? = $ac_status" >&5
10289    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10290    then
10291      # The compiler can only warn and ignore the option if not recognized
10292      # So say no if there are warnings
10293      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10294      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10295      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10296        lt_cv_prog_compiler_c_o=yes
10297      fi
10298    fi
10299    chmod u+w . 2>&5
10300    $RM conftest*
10301    # SGI C++ compiler will create directory out/ii_files/ for
10302    # template instantiation
10303    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10304    $RM out/* && rmdir out
10305    cd ..
10306    $RM -r conftest
10307    $RM conftest*
10308
10309 fi
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10311 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10312
10313
10314
10315
10316 hard_links="nottested"
10317 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10318   # do not overwrite the value of need_locks provided by the user
10319   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10320 $as_echo_n "checking if we can lock with hard links... " >&6; }
10321   hard_links=yes
10322   $RM conftest*
10323   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10324   touch conftest.a
10325   ln conftest.a conftest.b 2>&5 || hard_links=no
10326   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10328 $as_echo "$hard_links" >&6; }
10329   if test "$hard_links" = no; then
10330     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10331 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10332     need_locks=warn
10333   fi
10334 else
10335   need_locks=no
10336 fi
10337
10338
10339
10340
10341
10342
10343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10344 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10345
10346   runpath_var=
10347   allow_undefined_flag=
10348   always_export_symbols=no
10349   archive_cmds=
10350   archive_expsym_cmds=
10351   compiler_needs_object=no
10352   enable_shared_with_static_runtimes=no
10353   export_dynamic_flag_spec=
10354   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10355   hardcode_automatic=no
10356   hardcode_direct=no
10357   hardcode_direct_absolute=no
10358   hardcode_libdir_flag_spec=
10359   hardcode_libdir_flag_spec_ld=
10360   hardcode_libdir_separator=
10361   hardcode_minus_L=no
10362   hardcode_shlibpath_var=unsupported
10363   inherit_rpath=no
10364   link_all_deplibs=unknown
10365   module_cmds=
10366   module_expsym_cmds=
10367   old_archive_from_new_cmds=
10368   old_archive_from_expsyms_cmds=
10369   thread_safe_flag_spec=
10370   whole_archive_flag_spec=
10371   # include_expsyms should be a list of space-separated symbols to be *always*
10372   # included in the symbol list
10373   include_expsyms=
10374   # exclude_expsyms can be an extended regexp of symbols to exclude
10375   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10376   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10377   # as well as any symbol that contains `d'.
10378   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10379   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10380   # platforms (ab)use it in PIC code, but their linkers get confused if
10381   # the symbol is explicitly referenced.  Since portable code cannot
10382   # rely on this symbol name, it's probably fine to never include it in
10383   # preloaded symbol tables.
10384   # Exclude shared library initialization/finalization symbols.
10385   extract_expsyms_cmds=
10386
10387   case $host_os in
10388   cygwin* | mingw* | pw32* | cegcc*)
10389     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10390     # When not using gcc, we currently assume that we are using
10391     # Microsoft Visual C++.
10392     if test "$GCC" != yes; then
10393       with_gnu_ld=no
10394     fi
10395     ;;
10396   interix*)
10397     # we just hope/assume this is gcc and not c89 (= MSVC++)
10398     with_gnu_ld=yes
10399     ;;
10400   openbsd*)
10401     with_gnu_ld=no
10402     ;;
10403   linux* | k*bsd*-gnu)
10404     link_all_deplibs=no
10405     ;;
10406   esac
10407
10408   ld_shlibs=yes
10409   if test "$with_gnu_ld" = yes; then
10410     # If archive_cmds runs LD, not CC, wlarc should be empty
10411     wlarc='${wl}'
10412
10413     # Set some defaults for GNU ld with shared library support. These
10414     # are reset later if shared libraries are not supported. Putting them
10415     # here allows them to be overridden if necessary.
10416     runpath_var=LD_RUN_PATH
10417     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10418     export_dynamic_flag_spec='${wl}--export-dynamic'
10419     # ancient GNU ld didn't support --whole-archive et. al.
10420     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10421       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10422     else
10423       whole_archive_flag_spec=
10424     fi
10425     supports_anon_versioning=no
10426     case `$LD -v 2>&1` in
10427       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10428       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10429       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10430       *\ 2.11.*) ;; # other 2.11 versions
10431       *) supports_anon_versioning=yes ;;
10432     esac
10433
10434     # See if GNU ld supports shared libraries.
10435     case $host_os in
10436     aix[3-9]*)
10437       # On AIX/PPC, the GNU linker is very broken
10438       if test "$host_cpu" != ia64; then
10439         ld_shlibs=no
10440         cat <<_LT_EOF 1>&2
10441
10442 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10443 *** to be unable to reliably create shared libraries on AIX.
10444 *** Therefore, libtool is disabling shared libraries support.  If you
10445 *** really care for shared libraries, you may want to modify your PATH
10446 *** so that a non-GNU linker is found, and then restart.
10447
10448 _LT_EOF
10449       fi
10450       ;;
10451
10452     amigaos*)
10453       case $host_cpu in
10454       powerpc)
10455             # see comment about AmigaOS4 .so support
10456             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10457             archive_expsym_cmds=''
10458         ;;
10459       m68k)
10460             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)'
10461             hardcode_libdir_flag_spec='-L$libdir'
10462             hardcode_minus_L=yes
10463         ;;
10464       esac
10465       ;;
10466
10467     beos*)
10468       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10469         allow_undefined_flag=unsupported
10470         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10471         # support --undefined.  This deserves some investigation.  FIXME
10472         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10473       else
10474         ld_shlibs=no
10475       fi
10476       ;;
10477
10478     cygwin* | mingw* | pw32* | cegcc*)
10479       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10480       # as there is no search path for DLLs.
10481       hardcode_libdir_flag_spec='-L$libdir'
10482       allow_undefined_flag=unsupported
10483       always_export_symbols=no
10484       enable_shared_with_static_runtimes=yes
10485       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10486
10487       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10488         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10489         # If the export-symbols file already is a .def file (1st line
10490         # is EXPORTS), use it as is; otherwise, prepend...
10491         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10492           cp $export_symbols $output_objdir/$soname.def;
10493         else
10494           echo EXPORTS > $output_objdir/$soname.def;
10495           cat $export_symbols >> $output_objdir/$soname.def;
10496         fi~
10497         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10498       else
10499         ld_shlibs=no
10500       fi
10501       ;;
10502
10503     interix[3-9]*)
10504       hardcode_direct=no
10505       hardcode_shlibpath_var=no
10506       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10507       export_dynamic_flag_spec='${wl}-E'
10508       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10509       # Instead, shared libraries are loaded at an image base (0x10000000 by
10510       # default) and relocated if they conflict, which is a slow very memory
10511       # consuming and fragmenting process.  To avoid this, we pick a random,
10512       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10513       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10514       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10515       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'
10516       ;;
10517
10518     gnu* | linux* | tpf* | k*bsd*-gnu)
10519       tmp_diet=no
10520       if test "$host_os" = linux-dietlibc; then
10521         case $cc_basename in
10522           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10523         esac
10524       fi
10525       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10526          && test "$tmp_diet" = no
10527       then
10528         tmp_addflag=
10529         tmp_sharedflag='-shared'
10530         case $cc_basename,$host_cpu in
10531         pgcc*)                          # Portland Group C compiler
10532           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10533           tmp_addflag=' $pic_flag'
10534           ;;
10535         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10536           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10537           tmp_addflag=' $pic_flag -Mnomain' ;;
10538         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10539           tmp_addflag=' -i_dynamic' ;;
10540         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10541           tmp_addflag=' -i_dynamic -nofor_main' ;;
10542         ifc* | ifort*)                  # Intel Fortran compiler
10543           tmp_addflag=' -nofor_main' ;;
10544         lf95*)                          # Lahey Fortran 8.1
10545           whole_archive_flag_spec=
10546           tmp_sharedflag='--shared' ;;
10547         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10548           tmp_sharedflag='-qmkshrobj'
10549           tmp_addflag= ;;
10550         esac
10551         case `$CC -V 2>&1 | sed 5q` in
10552         *Sun\ C*)                       # Sun C 5.9
10553           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10554           compiler_needs_object=yes
10555           tmp_sharedflag='-G' ;;
10556         *Sun\ F*)                       # Sun Fortran 8.3
10557           tmp_sharedflag='-G' ;;
10558         esac
10559         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10560
10561         if test "x$supports_anon_versioning" = xyes; then
10562           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10563             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10564             echo "local: *; };" >> $output_objdir/$libname.ver~
10565             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10566         fi
10567
10568         case $cc_basename in
10569         xlf*)
10570           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10571           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10572           hardcode_libdir_flag_spec=
10573           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10574           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10575           if test "x$supports_anon_versioning" = xyes; then
10576             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10577               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10578               echo "local: *; };" >> $output_objdir/$libname.ver~
10579               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10580           fi
10581           ;;
10582         esac
10583       else
10584         ld_shlibs=no
10585       fi
10586       ;;
10587
10588     netbsd* | netbsdelf*-gnu)
10589       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10590         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10591         wlarc=
10592       else
10593         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10594         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10595       fi
10596       ;;
10597
10598     solaris*)
10599       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10600         ld_shlibs=no
10601         cat <<_LT_EOF 1>&2
10602
10603 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10604 *** create shared libraries on Solaris systems.  Therefore, libtool
10605 *** is disabling shared libraries support.  We urge you to upgrade GNU
10606 *** binutils to release 2.9.1 or newer.  Another option is to modify
10607 *** your PATH or compiler configuration so that the native linker is
10608 *** used, and then restart.
10609
10610 _LT_EOF
10611       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10612         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10613         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10614       else
10615         ld_shlibs=no
10616       fi
10617       ;;
10618
10619     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10620       case `$LD -v 2>&1` in
10621         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10622         ld_shlibs=no
10623         cat <<_LT_EOF 1>&2
10624
10625 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10626 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10627 *** is disabling shared libraries support.  We urge you to upgrade GNU
10628 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10629 *** your PATH or compiler configuration so that the native linker is
10630 *** used, and then restart.
10631
10632 _LT_EOF
10633         ;;
10634         *)
10635           # For security reasons, it is highly recommended that you always
10636           # use absolute paths for naming shared libraries, and exclude the
10637           # DT_RUNPATH tag from executables and libraries.  But doing so
10638           # requires that you compile everything twice, which is a pain.
10639           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10640             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10641             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10642             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10643           else
10644             ld_shlibs=no
10645           fi
10646         ;;
10647       esac
10648       ;;
10649
10650     sunos4*)
10651       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10652       wlarc=
10653       hardcode_direct=yes
10654       hardcode_shlibpath_var=no
10655       ;;
10656
10657     *)
10658       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10659         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10660         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10661       else
10662         ld_shlibs=no
10663       fi
10664       ;;
10665     esac
10666
10667     if test "$ld_shlibs" = no; then
10668       runpath_var=
10669       hardcode_libdir_flag_spec=
10670       export_dynamic_flag_spec=
10671       whole_archive_flag_spec=
10672     fi
10673   else
10674     # PORTME fill in a description of your system's linker (not GNU ld)
10675     case $host_os in
10676     aix3*)
10677       allow_undefined_flag=unsupported
10678       always_export_symbols=yes
10679       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'
10680       # Note: this linker hardcodes the directories in LIBPATH if there
10681       # are no directories specified by -L.
10682       hardcode_minus_L=yes
10683       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10684         # Neither direct hardcoding nor static linking is supported with a
10685         # broken collect2.
10686         hardcode_direct=unsupported
10687       fi
10688       ;;
10689
10690     aix[4-9]*)
10691       if test "$host_cpu" = ia64; then
10692         # On IA64, the linker does run time linking by default, so we don't
10693         # have to do anything special.
10694         aix_use_runtimelinking=no
10695         exp_sym_flag='-Bexport'
10696         no_entry_flag=""
10697       else
10698         # If we're using GNU nm, then we don't want the "-C" option.
10699         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10700         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10701           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10702         else
10703           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'
10704         fi
10705         aix_use_runtimelinking=no
10706
10707         # Test if we are trying to use run time linking or normal
10708         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10709         # need to do runtime linking.
10710         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10711           for ld_flag in $LDFLAGS; do
10712           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10713             aix_use_runtimelinking=yes
10714             break
10715           fi
10716           done
10717           ;;
10718         esac
10719
10720         exp_sym_flag='-bexport'
10721         no_entry_flag='-bnoentry'
10722       fi
10723
10724       # When large executables or shared objects are built, AIX ld can
10725       # have problems creating the table of contents.  If linking a library
10726       # or program results in "error TOC overflow" add -mminimal-toc to
10727       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10728       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10729
10730       archive_cmds=''
10731       hardcode_direct=yes
10732       hardcode_direct_absolute=yes
10733       hardcode_libdir_separator=':'
10734       link_all_deplibs=yes
10735       file_list_spec='${wl}-f,'
10736
10737       if test "$GCC" = yes; then
10738         case $host_os in aix4.[012]|aix4.[012].*)
10739         # We only want to do this on AIX 4.2 and lower, the check
10740         # below for broken collect2 doesn't work under 4.3+
10741           collect2name=`${CC} -print-prog-name=collect2`
10742           if test -f "$collect2name" &&
10743            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10744           then
10745           # We have reworked collect2
10746           :
10747           else
10748           # We have old collect2
10749           hardcode_direct=unsupported
10750           # It fails to find uninstalled libraries when the uninstalled
10751           # path is not listed in the libpath.  Setting hardcode_minus_L
10752           # to unsupported forces relinking
10753           hardcode_minus_L=yes
10754           hardcode_libdir_flag_spec='-L$libdir'
10755           hardcode_libdir_separator=
10756           fi
10757           ;;
10758         esac
10759         shared_flag='-shared'
10760         if test "$aix_use_runtimelinking" = yes; then
10761           shared_flag="$shared_flag "'${wl}-G'
10762         fi
10763         link_all_deplibs=no
10764       else
10765         # not using gcc
10766         if test "$host_cpu" = ia64; then
10767         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10768         # chokes on -Wl,-G. The following line is correct:
10769           shared_flag='-G'
10770         else
10771           if test "$aix_use_runtimelinking" = yes; then
10772             shared_flag='${wl}-G'
10773           else
10774             shared_flag='${wl}-bM:SRE'
10775           fi
10776         fi
10777       fi
10778
10779       export_dynamic_flag_spec='${wl}-bexpall'
10780       # It seems that -bexpall does not export symbols beginning with
10781       # underscore (_), so it is better to generate a list of symbols to export.
10782       always_export_symbols=yes
10783       if test "$aix_use_runtimelinking" = yes; then
10784         # Warning - without using the other runtime loading flags (-brtl),
10785         # -berok will link without error, but may produce a broken library.
10786         allow_undefined_flag='-berok'
10787         # Determine the default libpath from the value encoded in an
10788         # empty executable.
10789         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10790 /* end confdefs.h.  */
10791
10792 int
10793 main ()
10794 {
10795
10796   ;
10797   return 0;
10798 }
10799 _ACEOF
10800 if ac_fn_c_try_link "$LINENO"; then :
10801
10802 lt_aix_libpath_sed='
10803     /Import File Strings/,/^$/ {
10804         /^0/ {
10805             s/^0  *\(.*\)$/\1/
10806             p
10807         }
10808     }'
10809 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10810 # Check for a 64-bit object if we didn't find anything.
10811 if test -z "$aix_libpath"; then
10812   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10813 fi
10814 fi
10815 rm -f core conftest.err conftest.$ac_objext \
10816     conftest$ac_exeext conftest.$ac_ext
10817 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10818
10819         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10820         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10821       else
10822         if test "$host_cpu" = ia64; then
10823           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10824           allow_undefined_flag="-z nodefs"
10825           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"
10826         else
10827          # Determine the default libpath from the value encoded in an
10828          # empty executable.
10829          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10830 /* end confdefs.h.  */
10831
10832 int
10833 main ()
10834 {
10835
10836   ;
10837   return 0;
10838 }
10839 _ACEOF
10840 if ac_fn_c_try_link "$LINENO"; then :
10841
10842 lt_aix_libpath_sed='
10843     /Import File Strings/,/^$/ {
10844         /^0/ {
10845             s/^0  *\(.*\)$/\1/
10846             p
10847         }
10848     }'
10849 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10850 # Check for a 64-bit object if we didn't find anything.
10851 if test -z "$aix_libpath"; then
10852   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10853 fi
10854 fi
10855 rm -f core conftest.err conftest.$ac_objext \
10856     conftest$ac_exeext conftest.$ac_ext
10857 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10858
10859          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10860           # Warning - without using the other run time loading flags,
10861           # -berok will link without error, but may produce a broken library.
10862           no_undefined_flag=' ${wl}-bernotok'
10863           allow_undefined_flag=' ${wl}-berok'
10864           # Exported symbols can be pulled into shared objects from archives
10865           whole_archive_flag_spec='$convenience'
10866           archive_cmds_need_lc=yes
10867           # This is similar to how AIX traditionally builds its shared libraries.
10868           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'
10869         fi
10870       fi
10871       ;;
10872
10873     amigaos*)
10874       case $host_cpu in
10875       powerpc)
10876             # see comment about AmigaOS4 .so support
10877             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10878             archive_expsym_cmds=''
10879         ;;
10880       m68k)
10881             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)'
10882             hardcode_libdir_flag_spec='-L$libdir'
10883             hardcode_minus_L=yes
10884         ;;
10885       esac
10886       ;;
10887
10888     bsdi[45]*)
10889       export_dynamic_flag_spec=-rdynamic
10890       ;;
10891
10892     cygwin* | mingw* | pw32* | cegcc*)
10893       # When not using gcc, we currently assume that we are using
10894       # Microsoft Visual C++.
10895       # hardcode_libdir_flag_spec is actually meaningless, as there is
10896       # no search path for DLLs.
10897       hardcode_libdir_flag_spec=' '
10898       allow_undefined_flag=unsupported
10899       # Tell ltmain to make .lib files, not .a files.
10900       libext=lib
10901       # Tell ltmain to make .dll files, not .so files.
10902       shrext_cmds=".dll"
10903       # FIXME: Setting linknames here is a bad hack.
10904       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10905       # The linker will automatically build a .lib file if we build a DLL.
10906       old_archive_from_new_cmds='true'
10907       # FIXME: Should let the user specify the lib program.
10908       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10909       fix_srcfile_path='`cygpath -w "$srcfile"`'
10910       enable_shared_with_static_runtimes=yes
10911       ;;
10912
10913     darwin* | rhapsody*)
10914
10915
10916   archive_cmds_need_lc=no
10917   hardcode_direct=no
10918   hardcode_automatic=yes
10919   hardcode_shlibpath_var=unsupported
10920   whole_archive_flag_spec=''
10921   link_all_deplibs=yes
10922   allow_undefined_flag="$_lt_dar_allow_undefined"
10923   case $cc_basename in
10924      ifort*) _lt_dar_can_shared=yes ;;
10925      *) _lt_dar_can_shared=$GCC ;;
10926   esac
10927   if test "$_lt_dar_can_shared" = "yes"; then
10928     output_verbose_link_cmd=echo
10929     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10930     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10931     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}"
10932     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}"
10933
10934   else
10935   ld_shlibs=no
10936   fi
10937
10938       ;;
10939
10940     dgux*)
10941       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10942       hardcode_libdir_flag_spec='-L$libdir'
10943       hardcode_shlibpath_var=no
10944       ;;
10945
10946     freebsd1*)
10947       ld_shlibs=no
10948       ;;
10949
10950     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10951     # support.  Future versions do this automatically, but an explicit c++rt0.o
10952     # does not break anything, and helps significantly (at the cost of a little
10953     # extra space).
10954     freebsd2.2*)
10955       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10956       hardcode_libdir_flag_spec='-R$libdir'
10957       hardcode_direct=yes
10958       hardcode_shlibpath_var=no
10959       ;;
10960
10961     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10962     freebsd2*)
10963       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10964       hardcode_direct=yes
10965       hardcode_minus_L=yes
10966       hardcode_shlibpath_var=no
10967       ;;
10968
10969     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10970     freebsd* | dragonfly*)
10971       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10972       hardcode_libdir_flag_spec='-R$libdir'
10973       hardcode_direct=yes
10974       hardcode_shlibpath_var=no
10975       ;;
10976
10977     hpux9*)
10978       if test "$GCC" = yes; then
10979         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10980       else
10981         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'
10982       fi
10983       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10984       hardcode_libdir_separator=:
10985       hardcode_direct=yes
10986
10987       # hardcode_minus_L: Not really in the search PATH,
10988       # but as the default location of the library.
10989       hardcode_minus_L=yes
10990       export_dynamic_flag_spec='${wl}-E'
10991       ;;
10992
10993     hpux10*)
10994       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10995         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10996       else
10997         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10998       fi
10999       if test "$with_gnu_ld" = no; then
11000         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11001         hardcode_libdir_flag_spec_ld='+b $libdir'
11002         hardcode_libdir_separator=:
11003         hardcode_direct=yes
11004         hardcode_direct_absolute=yes
11005         export_dynamic_flag_spec='${wl}-E'
11006         # hardcode_minus_L: Not really in the search PATH,
11007         # but as the default location of the library.
11008         hardcode_minus_L=yes
11009       fi
11010       ;;
11011
11012     hpux11*)
11013       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11014         case $host_cpu in
11015         hppa*64*)
11016           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11017           ;;
11018         ia64*)
11019           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11020           ;;
11021         *)
11022           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11023           ;;
11024         esac
11025       else
11026         case $host_cpu in
11027         hppa*64*)
11028           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11029           ;;
11030         ia64*)
11031           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11032           ;;
11033         *)
11034           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11035           ;;
11036         esac
11037       fi
11038       if test "$with_gnu_ld" = no; then
11039         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11040         hardcode_libdir_separator=:
11041
11042         case $host_cpu in
11043         hppa*64*|ia64*)
11044           hardcode_direct=no
11045           hardcode_shlibpath_var=no
11046           ;;
11047         *)
11048           hardcode_direct=yes
11049           hardcode_direct_absolute=yes
11050           export_dynamic_flag_spec='${wl}-E'
11051
11052           # hardcode_minus_L: Not really in the search PATH,
11053           # but as the default location of the library.
11054           hardcode_minus_L=yes
11055           ;;
11056         esac
11057       fi
11058       ;;
11059
11060     irix5* | irix6* | nonstopux*)
11061       if test "$GCC" = yes; then
11062         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11063         # Try to use the -exported_symbol ld option, if it does not
11064         # work, assume that -exports_file does not work either and
11065         # implicitly export all symbols.
11066         save_LDFLAGS="$LDFLAGS"
11067         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11068         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11069 /* end confdefs.h.  */
11070 int foo(void) {}
11071 _ACEOF
11072 if ac_fn_c_try_link "$LINENO"; then :
11073   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11074
11075 fi
11076 rm -f core conftest.err conftest.$ac_objext \
11077     conftest$ac_exeext conftest.$ac_ext
11078         LDFLAGS="$save_LDFLAGS"
11079       else
11080         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11081         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11082       fi
11083       archive_cmds_need_lc='no'
11084       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11085       hardcode_libdir_separator=:
11086       inherit_rpath=yes
11087       link_all_deplibs=yes
11088       ;;
11089
11090     netbsd* | netbsdelf*-gnu)
11091       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11092         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11093       else
11094         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11095       fi
11096       hardcode_libdir_flag_spec='-R$libdir'
11097       hardcode_direct=yes
11098       hardcode_shlibpath_var=no
11099       ;;
11100
11101     newsos6)
11102       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11103       hardcode_direct=yes
11104       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11105       hardcode_libdir_separator=:
11106       hardcode_shlibpath_var=no
11107       ;;
11108
11109     *nto* | *qnx*)
11110       ;;
11111
11112     openbsd*)
11113       if test -f /usr/libexec/ld.so; then
11114         hardcode_direct=yes
11115         hardcode_shlibpath_var=no
11116         hardcode_direct_absolute=yes
11117         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11118           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11119           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11120           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11121           export_dynamic_flag_spec='${wl}-E'
11122         else
11123           case $host_os in
11124            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11125              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11126              hardcode_libdir_flag_spec='-R$libdir'
11127              ;;
11128            *)
11129              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11130              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11131              ;;
11132           esac
11133         fi
11134       else
11135         ld_shlibs=no
11136       fi
11137       ;;
11138
11139     os2*)
11140       hardcode_libdir_flag_spec='-L$libdir'
11141       hardcode_minus_L=yes
11142       allow_undefined_flag=unsupported
11143       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'
11144       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11145       ;;
11146
11147     osf3*)
11148       if test "$GCC" = yes; then
11149         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11150         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11151       else
11152         allow_undefined_flag=' -expect_unresolved \*'
11153         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11154       fi
11155       archive_cmds_need_lc='no'
11156       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11157       hardcode_libdir_separator=:
11158       ;;
11159
11160     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11161       if test "$GCC" = yes; then
11162         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11163         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11164         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11165       else
11166         allow_undefined_flag=' -expect_unresolved \*'
11167         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11168         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~
11169         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11170
11171         # Both c and cxx compiler support -rpath directly
11172         hardcode_libdir_flag_spec='-rpath $libdir'
11173       fi
11174       archive_cmds_need_lc='no'
11175       hardcode_libdir_separator=:
11176       ;;
11177
11178     solaris*)
11179       no_undefined_flag=' -z defs'
11180       if test "$GCC" = yes; then
11181         wlarc='${wl}'
11182         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11183         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11184           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11185       else
11186         case `$CC -V 2>&1` in
11187         *"Compilers 5.0"*)
11188           wlarc=''
11189           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11190           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11191           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11192           ;;
11193         *)
11194           wlarc='${wl}'
11195           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11196           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11197           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11198           ;;
11199         esac
11200       fi
11201       hardcode_libdir_flag_spec='-R$libdir'
11202       hardcode_shlibpath_var=no
11203       case $host_os in
11204       solaris2.[0-5] | solaris2.[0-5].*) ;;
11205       *)
11206         # The compiler driver will combine and reorder linker options,
11207         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11208         # but is careful enough not to reorder.
11209         # Supported since Solaris 2.6 (maybe 2.5.1?)
11210         if test "$GCC" = yes; then
11211           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11212         else
11213           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11214         fi
11215         ;;
11216       esac
11217       link_all_deplibs=yes
11218       ;;
11219
11220     sunos4*)
11221       if test "x$host_vendor" = xsequent; then
11222         # Use $CC to link under sequent, because it throws in some extra .o
11223         # files that make .init and .fini sections work.
11224         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11225       else
11226         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11227       fi
11228       hardcode_libdir_flag_spec='-L$libdir'
11229       hardcode_direct=yes
11230       hardcode_minus_L=yes
11231       hardcode_shlibpath_var=no
11232       ;;
11233
11234     sysv4)
11235       case $host_vendor in
11236         sni)
11237           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11238           hardcode_direct=yes # is this really true???
11239         ;;
11240         siemens)
11241           ## LD is ld it makes a PLAMLIB
11242           ## CC just makes a GrossModule.
11243           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11244           reload_cmds='$CC -r -o $output$reload_objs'
11245           hardcode_direct=no
11246         ;;
11247         motorola)
11248           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11249           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11250         ;;
11251       esac
11252       runpath_var='LD_RUN_PATH'
11253       hardcode_shlibpath_var=no
11254       ;;
11255
11256     sysv4.3*)
11257       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11258       hardcode_shlibpath_var=no
11259       export_dynamic_flag_spec='-Bexport'
11260       ;;
11261
11262     sysv4*MP*)
11263       if test -d /usr/nec; then
11264         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11265         hardcode_shlibpath_var=no
11266         runpath_var=LD_RUN_PATH
11267         hardcode_runpath_var=yes
11268         ld_shlibs=yes
11269       fi
11270       ;;
11271
11272     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11273       no_undefined_flag='${wl}-z,text'
11274       archive_cmds_need_lc=no
11275       hardcode_shlibpath_var=no
11276       runpath_var='LD_RUN_PATH'
11277
11278       if test "$GCC" = yes; then
11279         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11280         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11281       else
11282         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11283         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11284       fi
11285       ;;
11286
11287     sysv5* | sco3.2v5* | sco5v6*)
11288       # Note: We can NOT use -z defs as we might desire, because we do not
11289       # link with -lc, and that would cause any symbols used from libc to
11290       # always be unresolved, which means just about no library would
11291       # ever link correctly.  If we're not using GNU ld we use -z text
11292       # though, which does catch some bad symbols but isn't as heavy-handed
11293       # as -z defs.
11294       no_undefined_flag='${wl}-z,text'
11295       allow_undefined_flag='${wl}-z,nodefs'
11296       archive_cmds_need_lc=no
11297       hardcode_shlibpath_var=no
11298       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11299       hardcode_libdir_separator=':'
11300       link_all_deplibs=yes
11301       export_dynamic_flag_spec='${wl}-Bexport'
11302       runpath_var='LD_RUN_PATH'
11303
11304       if test "$GCC" = yes; then
11305         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11306         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11307       else
11308         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11309         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11310       fi
11311       ;;
11312
11313     uts4*)
11314       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11315       hardcode_libdir_flag_spec='-L$libdir'
11316       hardcode_shlibpath_var=no
11317       ;;
11318
11319     *)
11320       ld_shlibs=no
11321       ;;
11322     esac
11323
11324     if test x$host_vendor = xsni; then
11325       case $host in
11326       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11327         export_dynamic_flag_spec='${wl}-Blargedynsym'
11328         ;;
11329       esac
11330     fi
11331   fi
11332
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11334 $as_echo "$ld_shlibs" >&6; }
11335 test "$ld_shlibs" = no && can_build_shared=no
11336
11337 with_gnu_ld=$with_gnu_ld
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353 #
11354 # Do we need to explicitly link libc?
11355 #
11356 case "x$archive_cmds_need_lc" in
11357 x|xyes)
11358   # Assume -lc should be added
11359   archive_cmds_need_lc=yes
11360
11361   if test "$enable_shared" = yes && test "$GCC" = yes; then
11362     case $archive_cmds in
11363     *'~'*)
11364       # FIXME: we may have to deal with multi-command sequences.
11365       ;;
11366     '$CC '*)
11367       # Test whether the compiler implicitly links with -lc since on some
11368       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11369       # to ld, don't add -lc before -lgcc.
11370       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11371 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11372       $RM conftest*
11373       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11374
11375       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11376   (eval $ac_compile) 2>&5
11377   ac_status=$?
11378   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11379   test $ac_status = 0; } 2>conftest.err; then
11380         soname=conftest
11381         lib=conftest
11382         libobjs=conftest.$ac_objext
11383         deplibs=
11384         wl=$lt_prog_compiler_wl
11385         pic_flag=$lt_prog_compiler_pic
11386         compiler_flags=-v
11387         linker_flags=-v
11388         verstring=
11389         output_objdir=.
11390         libname=conftest
11391         lt_save_allow_undefined_flag=$allow_undefined_flag
11392         allow_undefined_flag=
11393         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11394   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11395   ac_status=$?
11396   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11397   test $ac_status = 0; }
11398         then
11399           archive_cmds_need_lc=no
11400         else
11401           archive_cmds_need_lc=yes
11402         fi
11403         allow_undefined_flag=$lt_save_allow_undefined_flag
11404       else
11405         cat conftest.err 1>&5
11406       fi
11407       $RM conftest*
11408       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11409 $as_echo "$archive_cmds_need_lc" >&6; }
11410       ;;
11411     esac
11412   fi
11413   ;;
11414 esac
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11573 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11574
11575 if test "$GCC" = yes; then
11576   case $host_os in
11577     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11578     *) lt_awk_arg="/^libraries:/" ;;
11579   esac
11580   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11581   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11582     # if the path contains ";" then we assume it to be the separator
11583     # otherwise default to the standard path separator (i.e. ":") - it is
11584     # assumed that no part of a normal pathname contains ";" but that should
11585     # okay in the real world where ";" in dirpaths is itself problematic.
11586     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11587   else
11588     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11589   fi
11590   # Ok, now we have the path, separated by spaces, we can step through it
11591   # and add multilib dir if necessary.
11592   lt_tmp_lt_search_path_spec=
11593   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11594   for lt_sys_path in $lt_search_path_spec; do
11595     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11596       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11597     else
11598       test -d "$lt_sys_path" && \
11599         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11600     fi
11601   done
11602   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11603 BEGIN {RS=" "; FS="/|\n";} {
11604   lt_foo="";
11605   lt_count=0;
11606   for (lt_i = NF; lt_i > 0; lt_i--) {
11607     if ($lt_i != "" && $lt_i != ".") {
11608       if ($lt_i == "..") {
11609         lt_count++;
11610       } else {
11611         if (lt_count == 0) {
11612           lt_foo="/" $lt_i lt_foo;
11613         } else {
11614           lt_count--;
11615         }
11616       }
11617     }
11618   }
11619   if (lt_foo != "") { lt_freq[lt_foo]++; }
11620   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11621 }'`
11622   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11623 else
11624   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11625 fi
11626 library_names_spec=
11627 libname_spec='lib$name'
11628 soname_spec=
11629 shrext_cmds=".so"
11630 postinstall_cmds=
11631 postuninstall_cmds=
11632 finish_cmds=
11633 finish_eval=
11634 shlibpath_var=
11635 shlibpath_overrides_runpath=unknown
11636 version_type=none
11637 dynamic_linker="$host_os ld.so"
11638 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11639 need_lib_prefix=unknown
11640 hardcode_into_libs=no
11641
11642 # when you set need_version to no, make sure it does not cause -set_version
11643 # flags to be left without arguments
11644 need_version=unknown
11645
11646 case $host_os in
11647 aix3*)
11648   version_type=linux
11649   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11650   shlibpath_var=LIBPATH
11651
11652   # AIX 3 has no versioning support, so we append a major version to the name.
11653   soname_spec='${libname}${release}${shared_ext}$major'
11654   ;;
11655
11656 aix[4-9]*)
11657   version_type=linux
11658   need_lib_prefix=no
11659   need_version=no
11660   hardcode_into_libs=yes
11661   if test "$host_cpu" = ia64; then
11662     # AIX 5 supports IA64
11663     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11664     shlibpath_var=LD_LIBRARY_PATH
11665   else
11666     # With GCC up to 2.95.x, collect2 would create an import file
11667     # for dependence libraries.  The import file would start with
11668     # the line `#! .'.  This would cause the generated library to
11669     # depend on `.', always an invalid library.  This was fixed in
11670     # development snapshots of GCC prior to 3.0.
11671     case $host_os in
11672       aix4 | aix4.[01] | aix4.[01].*)
11673       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11674            echo ' yes '
11675            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11676         :
11677       else
11678         can_build_shared=no
11679       fi
11680       ;;
11681     esac
11682     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11683     # soname into executable. Probably we can add versioning support to
11684     # collect2, so additional links can be useful in future.
11685     if test "$aix_use_runtimelinking" = yes; then
11686       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11687       # instead of lib<name>.a to let people know that these are not
11688       # typical AIX shared libraries.
11689       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11690     else
11691       # We preserve .a as extension for shared libraries through AIX4.2
11692       # and later when we are not doing run time linking.
11693       library_names_spec='${libname}${release}.a $libname.a'
11694       soname_spec='${libname}${release}${shared_ext}$major'
11695     fi
11696     shlibpath_var=LIBPATH
11697   fi
11698   ;;
11699
11700 amigaos*)
11701   case $host_cpu in
11702   powerpc)
11703     # Since July 2007 AmigaOS4 officially supports .so libraries.
11704     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11705     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11706     ;;
11707   m68k)
11708     library_names_spec='$libname.ixlibrary $libname.a'
11709     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11710     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11711     ;;
11712   esac
11713   ;;
11714
11715 beos*)
11716   library_names_spec='${libname}${shared_ext}'
11717   dynamic_linker="$host_os ld.so"
11718   shlibpath_var=LIBRARY_PATH
11719   ;;
11720
11721 bsdi[45]*)
11722   version_type=linux
11723   need_version=no
11724   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11725   soname_spec='${libname}${release}${shared_ext}$major'
11726   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11727   shlibpath_var=LD_LIBRARY_PATH
11728   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11729   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11730   # the default ld.so.conf also contains /usr/contrib/lib and
11731   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11732   # libtool to hard-code these into programs
11733   ;;
11734
11735 cygwin* | mingw* | pw32* | cegcc*)
11736   version_type=windows
11737   shrext_cmds=".dll"
11738   need_version=no
11739   need_lib_prefix=no
11740
11741   case $GCC,$host_os in
11742   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11743     library_names_spec='$libname.dll.a'
11744     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11745     postinstall_cmds='base_file=`basename \${file}`~
11746       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11747       dldir=$destdir/`dirname \$dlpath`~
11748       test -d \$dldir || mkdir -p \$dldir~
11749       $install_prog $dir/$dlname \$dldir/$dlname~
11750       chmod a+x \$dldir/$dlname~
11751       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11752         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11753       fi'
11754     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11755       dlpath=$dir/\$dldll~
11756        $RM \$dlpath'
11757     shlibpath_overrides_runpath=yes
11758
11759     case $host_os in
11760     cygwin*)
11761       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11762       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11763       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11764       ;;
11765     mingw* | cegcc*)
11766       # MinGW DLLs use traditional 'lib' prefix
11767       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11768       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11769       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11770         # It is most probably a Windows format PATH printed by
11771         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11772         # path with ; separators, and with drive letters. We can handle the
11773         # drive letters (cygwin fileutils understands them), so leave them,
11774         # especially as we might pass files found there to a mingw objdump,
11775         # which wouldn't understand a cygwinified path. Ahh.
11776         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11777       else
11778         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11779       fi
11780       ;;
11781     pw32*)
11782       # pw32 DLLs use 'pw' prefix rather than 'lib'
11783       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11784       ;;
11785     esac
11786     ;;
11787
11788   *)
11789     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11790     ;;
11791   esac
11792   dynamic_linker='Win32 ld.exe'
11793   # FIXME: first we should search . and the directory the executable is in
11794   shlibpath_var=PATH
11795   ;;
11796
11797 darwin* | rhapsody*)
11798   dynamic_linker="$host_os dyld"
11799   version_type=darwin
11800   need_lib_prefix=no
11801   need_version=no
11802   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11803   soname_spec='${libname}${release}${major}$shared_ext'
11804   shlibpath_overrides_runpath=yes
11805   shlibpath_var=DYLD_LIBRARY_PATH
11806   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11807
11808   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11809   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11810   ;;
11811
11812 dgux*)
11813   version_type=linux
11814   need_lib_prefix=no
11815   need_version=no
11816   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11817   soname_spec='${libname}${release}${shared_ext}$major'
11818   shlibpath_var=LD_LIBRARY_PATH
11819   ;;
11820
11821 freebsd1*)
11822   dynamic_linker=no
11823   ;;
11824
11825 freebsd* | dragonfly*)
11826   # DragonFly does not have aout.  When/if they implement a new
11827   # versioning mechanism, adjust this.
11828   if test -x /usr/bin/objformat; then
11829     objformat=`/usr/bin/objformat`
11830   else
11831     case $host_os in
11832     freebsd[123]*) objformat=aout ;;
11833     *) objformat=elf ;;
11834     esac
11835   fi
11836   version_type=freebsd-$objformat
11837   case $version_type in
11838     freebsd-elf*)
11839       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11840       need_version=no
11841       need_lib_prefix=no
11842       ;;
11843     freebsd-*)
11844       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11845       need_version=yes
11846       ;;
11847   esac
11848   shlibpath_var=LD_LIBRARY_PATH
11849   case $host_os in
11850   freebsd2*)
11851     shlibpath_overrides_runpath=yes
11852     ;;
11853   freebsd3.[01]* | freebsdelf3.[01]*)
11854     shlibpath_overrides_runpath=yes
11855     hardcode_into_libs=yes
11856     ;;
11857   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11858   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11859     shlibpath_overrides_runpath=no
11860     hardcode_into_libs=yes
11861     ;;
11862   *) # from 4.6 on, and DragonFly
11863     shlibpath_overrides_runpath=yes
11864     hardcode_into_libs=yes
11865     ;;
11866   esac
11867   ;;
11868
11869 gnu*)
11870   version_type=linux
11871   need_lib_prefix=no
11872   need_version=no
11873   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11874   soname_spec='${libname}${release}${shared_ext}$major'
11875   shlibpath_var=LD_LIBRARY_PATH
11876   hardcode_into_libs=yes
11877   ;;
11878
11879 hpux9* | hpux10* | hpux11*)
11880   # Give a soname corresponding to the major version so that dld.sl refuses to
11881   # link against other versions.
11882   version_type=sunos
11883   need_lib_prefix=no
11884   need_version=no
11885   case $host_cpu in
11886   ia64*)
11887     shrext_cmds='.so'
11888     hardcode_into_libs=yes
11889     dynamic_linker="$host_os dld.so"
11890     shlibpath_var=LD_LIBRARY_PATH
11891     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11892     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11893     soname_spec='${libname}${release}${shared_ext}$major'
11894     if test "X$HPUX_IA64_MODE" = X32; then
11895       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11896     else
11897       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11898     fi
11899     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11900     ;;
11901   hppa*64*)
11902     shrext_cmds='.sl'
11903     hardcode_into_libs=yes
11904     dynamic_linker="$host_os dld.sl"
11905     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11906     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11907     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11908     soname_spec='${libname}${release}${shared_ext}$major'
11909     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11910     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11911     ;;
11912   *)
11913     shrext_cmds='.sl'
11914     dynamic_linker="$host_os dld.sl"
11915     shlibpath_var=SHLIB_PATH
11916     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11917     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11918     soname_spec='${libname}${release}${shared_ext}$major'
11919     ;;
11920   esac
11921   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11922   postinstall_cmds='chmod 555 $lib'
11923   ;;
11924
11925 interix[3-9]*)
11926   version_type=linux
11927   need_lib_prefix=no
11928   need_version=no
11929   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11930   soname_spec='${libname}${release}${shared_ext}$major'
11931   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11932   shlibpath_var=LD_LIBRARY_PATH
11933   shlibpath_overrides_runpath=no
11934   hardcode_into_libs=yes
11935   ;;
11936
11937 irix5* | irix6* | nonstopux*)
11938   case $host_os in
11939     nonstopux*) version_type=nonstopux ;;
11940     *)
11941         if test "$lt_cv_prog_gnu_ld" = yes; then
11942                 version_type=linux
11943         else
11944                 version_type=irix
11945         fi ;;
11946   esac
11947   need_lib_prefix=no
11948   need_version=no
11949   soname_spec='${libname}${release}${shared_ext}$major'
11950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11951   case $host_os in
11952   irix5* | nonstopux*)
11953     libsuff= shlibsuff=
11954     ;;
11955   *)
11956     case $LD in # libtool.m4 will add one of these switches to LD
11957     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11958       libsuff= shlibsuff= libmagic=32-bit;;
11959     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11960       libsuff=32 shlibsuff=N32 libmagic=N32;;
11961     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11962       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11963     *) libsuff= shlibsuff= libmagic=never-match;;
11964     esac
11965     ;;
11966   esac
11967   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11968   shlibpath_overrides_runpath=no
11969   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11970   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11971   hardcode_into_libs=yes
11972   ;;
11973
11974 # No shared lib support for Linux oldld, aout, or coff.
11975 linux*oldld* | linux*aout* | linux*coff*)
11976   dynamic_linker=no
11977   ;;
11978
11979 # This must be Linux ELF.
11980 linux* | k*bsd*-gnu)
11981   version_type=linux
11982   need_lib_prefix=no
11983   need_version=no
11984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11985   soname_spec='${libname}${release}${shared_ext}$major'
11986   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11987   shlibpath_var=LD_LIBRARY_PATH
11988   shlibpath_overrides_runpath=no
11989   # Some binutils ld are patched to set DT_RUNPATH
11990   save_LDFLAGS=$LDFLAGS
11991   save_libdir=$libdir
11992   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11993        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11995 /* end confdefs.h.  */
11996
11997 int
11998 main ()
11999 {
12000
12001   ;
12002   return 0;
12003 }
12004 _ACEOF
12005 if ac_fn_c_try_link "$LINENO"; then :
12006   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12007   shlibpath_overrides_runpath=yes
12008 fi
12009 fi
12010 rm -f core conftest.err conftest.$ac_objext \
12011     conftest$ac_exeext conftest.$ac_ext
12012   LDFLAGS=$save_LDFLAGS
12013   libdir=$save_libdir
12014
12015   # This implies no fast_install, which is unacceptable.
12016   # Some rework will be needed to allow for fast_install
12017   # before this can be enabled.
12018   hardcode_into_libs=yes
12019
12020   # Append ld.so.conf contents to the search path
12021   if test -f /etc/ld.so.conf; then
12022     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12023     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12024   fi
12025
12026   # We used to test for /lib/ld.so.1 and disable shared libraries on
12027   # powerpc, because MkLinux only supported shared libraries with the
12028   # GNU dynamic linker.  Since this was broken with cross compilers,
12029   # most powerpc-linux boxes support dynamic linking these days and
12030   # people can always --disable-shared, the test was removed, and we
12031   # assume the GNU/Linux dynamic linker is in use.
12032   dynamic_linker='GNU/Linux ld.so'
12033   ;;
12034
12035 netbsdelf*-gnu)
12036   version_type=linux
12037   need_lib_prefix=no
12038   need_version=no
12039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12040   soname_spec='${libname}${release}${shared_ext}$major'
12041   shlibpath_var=LD_LIBRARY_PATH
12042   shlibpath_overrides_runpath=no
12043   hardcode_into_libs=yes
12044   dynamic_linker='NetBSD ld.elf_so'
12045   ;;
12046
12047 netbsd*)
12048   version_type=sunos
12049   need_lib_prefix=no
12050   need_version=no
12051   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12052     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12053     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12054     dynamic_linker='NetBSD (a.out) ld.so'
12055   else
12056     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12057     soname_spec='${libname}${release}${shared_ext}$major'
12058     dynamic_linker='NetBSD ld.elf_so'
12059   fi
12060   shlibpath_var=LD_LIBRARY_PATH
12061   shlibpath_overrides_runpath=yes
12062   hardcode_into_libs=yes
12063   ;;
12064
12065 newsos6)
12066   version_type=linux
12067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12068   shlibpath_var=LD_LIBRARY_PATH
12069   shlibpath_overrides_runpath=yes
12070   ;;
12071
12072 *nto* | *qnx*)
12073   version_type=qnx
12074   need_lib_prefix=no
12075   need_version=no
12076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12077   soname_spec='${libname}${release}${shared_ext}$major'
12078   shlibpath_var=LD_LIBRARY_PATH
12079   shlibpath_overrides_runpath=no
12080   hardcode_into_libs=yes
12081   dynamic_linker='ldqnx.so'
12082   ;;
12083
12084 openbsd*)
12085   version_type=sunos
12086   sys_lib_dlsearch_path_spec="/usr/lib"
12087   need_lib_prefix=no
12088   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12089   case $host_os in
12090     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12091     *)                          need_version=no  ;;
12092   esac
12093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12094   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12095   shlibpath_var=LD_LIBRARY_PATH
12096   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12097     case $host_os in
12098       openbsd2.[89] | openbsd2.[89].*)
12099         shlibpath_overrides_runpath=no
12100         ;;
12101       *)
12102         shlibpath_overrides_runpath=yes
12103         ;;
12104       esac
12105   else
12106     shlibpath_overrides_runpath=yes
12107   fi
12108   ;;
12109
12110 os2*)
12111   libname_spec='$name'
12112   shrext_cmds=".dll"
12113   need_lib_prefix=no
12114   library_names_spec='$libname${shared_ext} $libname.a'
12115   dynamic_linker='OS/2 ld.exe'
12116   shlibpath_var=LIBPATH
12117   ;;
12118
12119 osf3* | osf4* | osf5*)
12120   version_type=osf
12121   need_lib_prefix=no
12122   need_version=no
12123   soname_spec='${libname}${release}${shared_ext}$major'
12124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12125   shlibpath_var=LD_LIBRARY_PATH
12126   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12127   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12128   ;;
12129
12130 rdos*)
12131   dynamic_linker=no
12132   ;;
12133
12134 solaris*)
12135   version_type=linux
12136   need_lib_prefix=no
12137   need_version=no
12138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12139   soname_spec='${libname}${release}${shared_ext}$major'
12140   shlibpath_var=LD_LIBRARY_PATH
12141   shlibpath_overrides_runpath=yes
12142   hardcode_into_libs=yes
12143   # ldd complains unless libraries are executable
12144   postinstall_cmds='chmod +x $lib'
12145   ;;
12146
12147 sunos4*)
12148   version_type=sunos
12149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12150   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12151   shlibpath_var=LD_LIBRARY_PATH
12152   shlibpath_overrides_runpath=yes
12153   if test "$with_gnu_ld" = yes; then
12154     need_lib_prefix=no
12155   fi
12156   need_version=yes
12157   ;;
12158
12159 sysv4 | sysv4.3*)
12160   version_type=linux
12161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12162   soname_spec='${libname}${release}${shared_ext}$major'
12163   shlibpath_var=LD_LIBRARY_PATH
12164   case $host_vendor in
12165     sni)
12166       shlibpath_overrides_runpath=no
12167       need_lib_prefix=no
12168       runpath_var=LD_RUN_PATH
12169       ;;
12170     siemens)
12171       need_lib_prefix=no
12172       ;;
12173     motorola)
12174       need_lib_prefix=no
12175       need_version=no
12176       shlibpath_overrides_runpath=no
12177       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12178       ;;
12179   esac
12180   ;;
12181
12182 sysv4*MP*)
12183   if test -d /usr/nec ;then
12184     version_type=linux
12185     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12186     soname_spec='$libname${shared_ext}.$major'
12187     shlibpath_var=LD_LIBRARY_PATH
12188   fi
12189   ;;
12190
12191 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12192   version_type=freebsd-elf
12193   need_lib_prefix=no
12194   need_version=no
12195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12196   soname_spec='${libname}${release}${shared_ext}$major'
12197   shlibpath_var=LD_LIBRARY_PATH
12198   shlibpath_overrides_runpath=yes
12199   hardcode_into_libs=yes
12200   if test "$with_gnu_ld" = yes; then
12201     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12202   else
12203     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12204     case $host_os in
12205       sco3.2v5*)
12206         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12207         ;;
12208     esac
12209   fi
12210   sys_lib_dlsearch_path_spec='/usr/lib'
12211   ;;
12212
12213 tpf*)
12214   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12215   version_type=linux
12216   need_lib_prefix=no
12217   need_version=no
12218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12219   shlibpath_var=LD_LIBRARY_PATH
12220   shlibpath_overrides_runpath=no
12221   hardcode_into_libs=yes
12222   ;;
12223
12224 uts4*)
12225   version_type=linux
12226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12227   soname_spec='${libname}${release}${shared_ext}$major'
12228   shlibpath_var=LD_LIBRARY_PATH
12229   ;;
12230
12231 *)
12232   dynamic_linker=no
12233   ;;
12234 esac
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12236 $as_echo "$dynamic_linker" >&6; }
12237 test "$dynamic_linker" = no && can_build_shared=no
12238
12239 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12240 if test "$GCC" = yes; then
12241   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12242 fi
12243
12244 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12245   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12246 fi
12247 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12248   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12249 fi
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12338 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12339 hardcode_action=
12340 if test -n "$hardcode_libdir_flag_spec" ||
12341    test -n "$runpath_var" ||
12342    test "X$hardcode_automatic" = "Xyes" ; then
12343
12344   # We can hardcode non-existent directories.
12345   if test "$hardcode_direct" != no &&
12346      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12347      # have to relink, otherwise we might link with an installed library
12348      # when we should be linking with a yet-to-be-installed one
12349      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12350      test "$hardcode_minus_L" != no; then
12351     # Linking always hardcodes the temporary library directory.
12352     hardcode_action=relink
12353   else
12354     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12355     hardcode_action=immediate
12356   fi
12357 else
12358   # We cannot hardcode anything, or else we can only hardcode existing
12359   # directories.
12360   hardcode_action=unsupported
12361 fi
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12363 $as_echo "$hardcode_action" >&6; }
12364
12365 if test "$hardcode_action" = relink ||
12366    test "$inherit_rpath" = yes; then
12367   # Fast installation is not supported
12368   enable_fast_install=no
12369 elif test "$shlibpath_overrides_runpath" = yes ||
12370      test "$enable_shared" = no; then
12371   # Fast installation is not necessary
12372   enable_fast_install=needless
12373 fi
12374
12375
12376
12377
12378
12379
12380   if test "x$enable_dlopen" != xyes; then
12381   enable_dlopen=unknown
12382   enable_dlopen_self=unknown
12383   enable_dlopen_self_static=unknown
12384 else
12385   lt_cv_dlopen=no
12386   lt_cv_dlopen_libs=
12387
12388   case $host_os in
12389   beos*)
12390     lt_cv_dlopen="load_add_on"
12391     lt_cv_dlopen_libs=
12392     lt_cv_dlopen_self=yes
12393     ;;
12394
12395   mingw* | pw32* | cegcc*)
12396     lt_cv_dlopen="LoadLibrary"
12397     lt_cv_dlopen_libs=
12398     ;;
12399
12400   cygwin*)
12401     lt_cv_dlopen="dlopen"
12402     lt_cv_dlopen_libs=
12403     ;;
12404
12405   darwin*)
12406   # if libdl is installed we need to link against it
12407     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12408 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12409 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12410   $as_echo_n "(cached) " >&6
12411 else
12412   ac_check_lib_save_LIBS=$LIBS
12413 LIBS="-ldl  $LIBS"
12414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12415 /* end confdefs.h.  */
12416
12417 /* Override any GCC internal prototype to avoid an error.
12418    Use char because int might match the return type of a GCC
12419    builtin and then its argument prototype would still apply.  */
12420 #ifdef __cplusplus
12421 extern "C"
12422 #endif
12423 char dlopen ();
12424 int
12425 main ()
12426 {
12427 return dlopen ();
12428   ;
12429   return 0;
12430 }
12431 _ACEOF
12432 if ac_fn_c_try_link "$LINENO"; then :
12433   ac_cv_lib_dl_dlopen=yes
12434 else
12435   ac_cv_lib_dl_dlopen=no
12436 fi
12437 rm -f core conftest.err conftest.$ac_objext \
12438     conftest$ac_exeext conftest.$ac_ext
12439 LIBS=$ac_check_lib_save_LIBS
12440 fi
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12442 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12443 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12444   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12445 else
12446
12447     lt_cv_dlopen="dyld"
12448     lt_cv_dlopen_libs=
12449     lt_cv_dlopen_self=yes
12450
12451 fi
12452
12453     ;;
12454
12455   *)
12456     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12457 if test "x$ac_cv_func_shl_load" = x""yes; then :
12458   lt_cv_dlopen="shl_load"
12459 else
12460   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12461 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12462 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12463   $as_echo_n "(cached) " >&6
12464 else
12465   ac_check_lib_save_LIBS=$LIBS
12466 LIBS="-ldld  $LIBS"
12467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12468 /* end confdefs.h.  */
12469
12470 /* Override any GCC internal prototype to avoid an error.
12471    Use char because int might match the return type of a GCC
12472    builtin and then its argument prototype would still apply.  */
12473 #ifdef __cplusplus
12474 extern "C"
12475 #endif
12476 char shl_load ();
12477 int
12478 main ()
12479 {
12480 return shl_load ();
12481   ;
12482   return 0;
12483 }
12484 _ACEOF
12485 if ac_fn_c_try_link "$LINENO"; then :
12486   ac_cv_lib_dld_shl_load=yes
12487 else
12488   ac_cv_lib_dld_shl_load=no
12489 fi
12490 rm -f core conftest.err conftest.$ac_objext \
12491     conftest$ac_exeext conftest.$ac_ext
12492 LIBS=$ac_check_lib_save_LIBS
12493 fi
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12495 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12496 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12497   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12498 else
12499   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12500 if test "x$ac_cv_func_dlopen" = x""yes; then :
12501   lt_cv_dlopen="dlopen"
12502 else
12503   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12504 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12505 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12506   $as_echo_n "(cached) " >&6
12507 else
12508   ac_check_lib_save_LIBS=$LIBS
12509 LIBS="-ldl  $LIBS"
12510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12511 /* end confdefs.h.  */
12512
12513 /* Override any GCC internal prototype to avoid an error.
12514    Use char because int might match the return type of a GCC
12515    builtin and then its argument prototype would still apply.  */
12516 #ifdef __cplusplus
12517 extern "C"
12518 #endif
12519 char dlopen ();
12520 int
12521 main ()
12522 {
12523 return dlopen ();
12524   ;
12525   return 0;
12526 }
12527 _ACEOF
12528 if ac_fn_c_try_link "$LINENO"; then :
12529   ac_cv_lib_dl_dlopen=yes
12530 else
12531   ac_cv_lib_dl_dlopen=no
12532 fi
12533 rm -f core conftest.err conftest.$ac_objext \
12534     conftest$ac_exeext conftest.$ac_ext
12535 LIBS=$ac_check_lib_save_LIBS
12536 fi
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12538 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12539 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12540   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12541 else
12542   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12543 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12544 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12545   $as_echo_n "(cached) " >&6
12546 else
12547   ac_check_lib_save_LIBS=$LIBS
12548 LIBS="-lsvld  $LIBS"
12549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12550 /* end confdefs.h.  */
12551
12552 /* Override any GCC internal prototype to avoid an error.
12553    Use char because int might match the return type of a GCC
12554    builtin and then its argument prototype would still apply.  */
12555 #ifdef __cplusplus
12556 extern "C"
12557 #endif
12558 char dlopen ();
12559 int
12560 main ()
12561 {
12562 return dlopen ();
12563   ;
12564   return 0;
12565 }
12566 _ACEOF
12567 if ac_fn_c_try_link "$LINENO"; then :
12568   ac_cv_lib_svld_dlopen=yes
12569 else
12570   ac_cv_lib_svld_dlopen=no
12571 fi
12572 rm -f core conftest.err conftest.$ac_objext \
12573     conftest$ac_exeext conftest.$ac_ext
12574 LIBS=$ac_check_lib_save_LIBS
12575 fi
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12577 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12578 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12579   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12580 else
12581   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12582 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12583 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12584   $as_echo_n "(cached) " >&6
12585 else
12586   ac_check_lib_save_LIBS=$LIBS
12587 LIBS="-ldld  $LIBS"
12588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12589 /* end confdefs.h.  */
12590
12591 /* Override any GCC internal prototype to avoid an error.
12592    Use char because int might match the return type of a GCC
12593    builtin and then its argument prototype would still apply.  */
12594 #ifdef __cplusplus
12595 extern "C"
12596 #endif
12597 char dld_link ();
12598 int
12599 main ()
12600 {
12601 return dld_link ();
12602   ;
12603   return 0;
12604 }
12605 _ACEOF
12606 if ac_fn_c_try_link "$LINENO"; then :
12607   ac_cv_lib_dld_dld_link=yes
12608 else
12609   ac_cv_lib_dld_dld_link=no
12610 fi
12611 rm -f core conftest.err conftest.$ac_objext \
12612     conftest$ac_exeext conftest.$ac_ext
12613 LIBS=$ac_check_lib_save_LIBS
12614 fi
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12616 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12617 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12618   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12619 fi
12620
12621
12622 fi
12623
12624
12625 fi
12626
12627
12628 fi
12629
12630
12631 fi
12632
12633
12634 fi
12635
12636     ;;
12637   esac
12638
12639   if test "x$lt_cv_dlopen" != xno; then
12640     enable_dlopen=yes
12641   else
12642     enable_dlopen=no
12643   fi
12644
12645   case $lt_cv_dlopen in
12646   dlopen)
12647     save_CPPFLAGS="$CPPFLAGS"
12648     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12649
12650     save_LDFLAGS="$LDFLAGS"
12651     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12652
12653     save_LIBS="$LIBS"
12654     LIBS="$lt_cv_dlopen_libs $LIBS"
12655
12656     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12657 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12658 if test "${lt_cv_dlopen_self+set}" = set; then :
12659   $as_echo_n "(cached) " >&6
12660 else
12661           if test "$cross_compiling" = yes; then :
12662   lt_cv_dlopen_self=cross
12663 else
12664   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12665   lt_status=$lt_dlunknown
12666   cat > conftest.$ac_ext <<_LT_EOF
12667 #line 12667 "configure"
12668 #include "confdefs.h"
12669
12670 #if HAVE_DLFCN_H
12671 #include <dlfcn.h>
12672 #endif
12673
12674 #include <stdio.h>
12675
12676 #ifdef RTLD_GLOBAL
12677 #  define LT_DLGLOBAL           RTLD_GLOBAL
12678 #else
12679 #  ifdef DL_GLOBAL
12680 #    define LT_DLGLOBAL         DL_GLOBAL
12681 #  else
12682 #    define LT_DLGLOBAL         0
12683 #  endif
12684 #endif
12685
12686 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12687    find out it does not work in some platform. */
12688 #ifndef LT_DLLAZY_OR_NOW
12689 #  ifdef RTLD_LAZY
12690 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12691 #  else
12692 #    ifdef DL_LAZY
12693 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12694 #    else
12695 #      ifdef RTLD_NOW
12696 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12697 #      else
12698 #        ifdef DL_NOW
12699 #          define LT_DLLAZY_OR_NOW      DL_NOW
12700 #        else
12701 #          define LT_DLLAZY_OR_NOW      0
12702 #        endif
12703 #      endif
12704 #    endif
12705 #  endif
12706 #endif
12707
12708 void fnord() { int i=42;}
12709 int main ()
12710 {
12711   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12712   int status = $lt_dlunknown;
12713
12714   if (self)
12715     {
12716       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12717       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12718       /* dlclose (self); */
12719     }
12720   else
12721     puts (dlerror ());
12722
12723   return status;
12724 }
12725 _LT_EOF
12726   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12727   (eval $ac_link) 2>&5
12728   ac_status=$?
12729   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12730   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12731     (./conftest; exit; ) >&5 2>/dev/null
12732     lt_status=$?
12733     case x$lt_status in
12734       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12735       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12736       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12737     esac
12738   else :
12739     # compilation failed
12740     lt_cv_dlopen_self=no
12741   fi
12742 fi
12743 rm -fr conftest*
12744
12745
12746 fi
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12748 $as_echo "$lt_cv_dlopen_self" >&6; }
12749
12750     if test "x$lt_cv_dlopen_self" = xyes; then
12751       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12752       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12753 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12754 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12755   $as_echo_n "(cached) " >&6
12756 else
12757           if test "$cross_compiling" = yes; then :
12758   lt_cv_dlopen_self_static=cross
12759 else
12760   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12761   lt_status=$lt_dlunknown
12762   cat > conftest.$ac_ext <<_LT_EOF
12763 #line 12763 "configure"
12764 #include "confdefs.h"
12765
12766 #if HAVE_DLFCN_H
12767 #include <dlfcn.h>
12768 #endif
12769
12770 #include <stdio.h>
12771
12772 #ifdef RTLD_GLOBAL
12773 #  define LT_DLGLOBAL           RTLD_GLOBAL
12774 #else
12775 #  ifdef DL_GLOBAL
12776 #    define LT_DLGLOBAL         DL_GLOBAL
12777 #  else
12778 #    define LT_DLGLOBAL         0
12779 #  endif
12780 #endif
12781
12782 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12783    find out it does not work in some platform. */
12784 #ifndef LT_DLLAZY_OR_NOW
12785 #  ifdef RTLD_LAZY
12786 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12787 #  else
12788 #    ifdef DL_LAZY
12789 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12790 #    else
12791 #      ifdef RTLD_NOW
12792 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12793 #      else
12794 #        ifdef DL_NOW
12795 #          define LT_DLLAZY_OR_NOW      DL_NOW
12796 #        else
12797 #          define LT_DLLAZY_OR_NOW      0
12798 #        endif
12799 #      endif
12800 #    endif
12801 #  endif
12802 #endif
12803
12804 void fnord() { int i=42;}
12805 int main ()
12806 {
12807   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12808   int status = $lt_dlunknown;
12809
12810   if (self)
12811     {
12812       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12813       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12814       /* dlclose (self); */
12815     }
12816   else
12817     puts (dlerror ());
12818
12819   return status;
12820 }
12821 _LT_EOF
12822   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12823   (eval $ac_link) 2>&5
12824   ac_status=$?
12825   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12826   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12827     (./conftest; exit; ) >&5 2>/dev/null
12828     lt_status=$?
12829     case x$lt_status in
12830       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12831       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12832       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12833     esac
12834   else :
12835     # compilation failed
12836     lt_cv_dlopen_self_static=no
12837   fi
12838 fi
12839 rm -fr conftest*
12840
12841
12842 fi
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12844 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12845     fi
12846
12847     CPPFLAGS="$save_CPPFLAGS"
12848     LDFLAGS="$save_LDFLAGS"
12849     LIBS="$save_LIBS"
12850     ;;
12851   esac
12852
12853   case $lt_cv_dlopen_self in
12854   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12855   *) enable_dlopen_self=unknown ;;
12856   esac
12857
12858   case $lt_cv_dlopen_self_static in
12859   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12860   *) enable_dlopen_self_static=unknown ;;
12861   esac
12862 fi
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880 striplib=
12881 old_striplib=
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12883 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12884 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12885   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12886   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12888 $as_echo "yes" >&6; }
12889 else
12890 # FIXME - insert some real tests, host_os isn't really good enough
12891   case $host_os in
12892   darwin*)
12893     if test -n "$STRIP" ; then
12894       striplib="$STRIP -x"
12895       old_striplib="$STRIP -S"
12896       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12897 $as_echo "yes" >&6; }
12898     else
12899       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12900 $as_echo "no" >&6; }
12901     fi
12902     ;;
12903   *)
12904     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12905 $as_echo "no" >&6; }
12906     ;;
12907   esac
12908 fi
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921   # Report which library types will actually be built
12922   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12923 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12925 $as_echo "$can_build_shared" >&6; }
12926
12927   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12928 $as_echo_n "checking whether to build shared libraries... " >&6; }
12929   test "$can_build_shared" = "no" && enable_shared=no
12930
12931   # On AIX, shared libraries and static libraries use the same namespace, and
12932   # are all built from PIC.
12933   case $host_os in
12934   aix3*)
12935     test "$enable_shared" = yes && enable_static=no
12936     if test -n "$RANLIB"; then
12937       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12938       postinstall_cmds='$RANLIB $lib'
12939     fi
12940     ;;
12941
12942   aix[4-9]*)
12943     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12944       test "$enable_shared" = yes && enable_static=no
12945     fi
12946     ;;
12947   esac
12948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12949 $as_echo "$enable_shared" >&6; }
12950
12951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12952 $as_echo_n "checking whether to build static libraries... " >&6; }
12953   # Make sure either enable_shared or enable_static is yes.
12954   test "$enable_shared" = yes || enable_static=yes
12955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12956 $as_echo "$enable_static" >&6; }
12957
12958
12959
12960
12961 fi
12962 ac_ext=c
12963 ac_cpp='$CPP $CPPFLAGS'
12964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12967
12968 CC="$lt_save_CC"
12969
12970
12971 ac_ext=cpp
12972 ac_cpp='$CXXCPP $CPPFLAGS'
12973 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12974 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12975 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12976
12977 archive_cmds_need_lc_CXX=no
12978 allow_undefined_flag_CXX=
12979 always_export_symbols_CXX=no
12980 archive_expsym_cmds_CXX=
12981 compiler_needs_object_CXX=no
12982 export_dynamic_flag_spec_CXX=
12983 hardcode_direct_CXX=no
12984 hardcode_direct_absolute_CXX=no
12985 hardcode_libdir_flag_spec_CXX=
12986 hardcode_libdir_flag_spec_ld_CXX=
12987 hardcode_libdir_separator_CXX=
12988 hardcode_minus_L_CXX=no
12989 hardcode_shlibpath_var_CXX=unsupported
12990 hardcode_automatic_CXX=no
12991 inherit_rpath_CXX=no
12992 module_cmds_CXX=
12993 module_expsym_cmds_CXX=
12994 link_all_deplibs_CXX=unknown
12995 old_archive_cmds_CXX=$old_archive_cmds
12996 no_undefined_flag_CXX=
12997 whole_archive_flag_spec_CXX=
12998 enable_shared_with_static_runtimes_CXX=no
12999
13000 # Source file extension for C++ test sources.
13001 ac_ext=cpp
13002
13003 # Object file extension for compiled C++ test sources.
13004 objext=o
13005 objext_CXX=$objext
13006
13007 # No sense in running all these tests if we already determined that
13008 # the CXX compiler isn't working.  Some variables (like enable_shared)
13009 # are currently assumed to apply to all compilers on this platform,
13010 # and will be corrupted by setting them based on a non-working compiler.
13011 if test "$_lt_caught_CXX_error" != yes; then
13012   # Code to be used in simple compile tests
13013   lt_simple_compile_test_code="int some_variable = 0;"
13014
13015   # Code to be used in simple link tests
13016   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13017
13018   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13019
13020
13021
13022
13023
13024
13025 # If no C compiler was specified, use CC.
13026 LTCC=${LTCC-"$CC"}
13027
13028 # If no C compiler flags were specified, use CFLAGS.
13029 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13030
13031 # Allow CC to be a program name with arguments.
13032 compiler=$CC
13033
13034
13035   # save warnings/boilerplate of simple test code
13036   ac_outfile=conftest.$ac_objext
13037 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13038 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13039 _lt_compiler_boilerplate=`cat conftest.err`
13040 $RM conftest*
13041
13042   ac_outfile=conftest.$ac_objext
13043 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13044 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13045 _lt_linker_boilerplate=`cat conftest.err`
13046 $RM -r conftest*
13047
13048
13049   # Allow CC to be a program name with arguments.
13050   lt_save_CC=$CC
13051   lt_save_LD=$LD
13052   lt_save_GCC=$GCC
13053   GCC=$GXX
13054   lt_save_with_gnu_ld=$with_gnu_ld
13055   lt_save_path_LD=$lt_cv_path_LD
13056   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13057     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13058   else
13059     $as_unset lt_cv_prog_gnu_ld
13060   fi
13061   if test -n "${lt_cv_path_LDCXX+set}"; then
13062     lt_cv_path_LD=$lt_cv_path_LDCXX
13063   else
13064     $as_unset lt_cv_path_LD
13065   fi
13066   test -z "${LDCXX+set}" || LD=$LDCXX
13067   CC=${CXX-"c++"}
13068   compiler=$CC
13069   compiler_CXX=$CC
13070   for cc_temp in $compiler""; do
13071   case $cc_temp in
13072     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13073     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13074     \-*) ;;
13075     *) break;;
13076   esac
13077 done
13078 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13079
13080
13081   if test -n "$compiler"; then
13082     # We don't want -fno-exception when compiling C++ code, so set the
13083     # no_builtin_flag separately
13084     if test "$GXX" = yes; then
13085       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13086     else
13087       lt_prog_compiler_no_builtin_flag_CXX=
13088     fi
13089
13090     if test "$GXX" = yes; then
13091       # Set up default GNU C++ configuration
13092
13093
13094
13095 # Check whether --with-gnu-ld was given.
13096 if test "${with_gnu_ld+set}" = set; then :
13097   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13098 else
13099   with_gnu_ld=no
13100 fi
13101
13102 ac_prog=ld
13103 if test "$GCC" = yes; then
13104   # Check if gcc -print-prog-name=ld gives a path.
13105   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13106 $as_echo_n "checking for ld used by $CC... " >&6; }
13107   case $host in
13108   *-*-mingw*)
13109     # gcc leaves a trailing carriage return which upsets mingw
13110     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13111   *)
13112     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13113   esac
13114   case $ac_prog in
13115     # Accept absolute paths.
13116     [\\/]* | ?:[\\/]*)
13117       re_direlt='/[^/][^/]*/\.\./'
13118       # Canonicalize the pathname of ld
13119       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13120       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13121         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13122       done
13123       test -z "$LD" && LD="$ac_prog"
13124       ;;
13125   "")
13126     # If it fails, then pretend we aren't using GCC.
13127     ac_prog=ld
13128     ;;
13129   *)
13130     # If it is relative, then search for the first ld in PATH.
13131     with_gnu_ld=unknown
13132     ;;
13133   esac
13134 elif test "$with_gnu_ld" = yes; then
13135   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13136 $as_echo_n "checking for GNU ld... " >&6; }
13137 else
13138   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13139 $as_echo_n "checking for non-GNU ld... " >&6; }
13140 fi
13141 if test "${lt_cv_path_LD+set}" = set; then :
13142   $as_echo_n "(cached) " >&6
13143 else
13144   if test -z "$LD"; then
13145   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13146   for ac_dir in $PATH; do
13147     IFS="$lt_save_ifs"
13148     test -z "$ac_dir" && ac_dir=.
13149     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13150       lt_cv_path_LD="$ac_dir/$ac_prog"
13151       # Check to see if the program is GNU ld.  I'd rather use --version,
13152       # but apparently some variants of GNU ld only accept -v.
13153       # Break only if it was the GNU/non-GNU ld that we prefer.
13154       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13155       *GNU* | *'with BFD'*)
13156         test "$with_gnu_ld" != no && break
13157         ;;
13158       *)
13159         test "$with_gnu_ld" != yes && break
13160         ;;
13161       esac
13162     fi
13163   done
13164   IFS="$lt_save_ifs"
13165 else
13166   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13167 fi
13168 fi
13169
13170 LD="$lt_cv_path_LD"
13171 if test -n "$LD"; then
13172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13173 $as_echo "$LD" >&6; }
13174 else
13175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13176 $as_echo "no" >&6; }
13177 fi
13178 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13180 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13181 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
13182   $as_echo_n "(cached) " >&6
13183 else
13184   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13185 case `$LD -v 2>&1 </dev/null` in
13186 *GNU* | *'with BFD'*)
13187   lt_cv_prog_gnu_ld=yes
13188   ;;
13189 *)
13190   lt_cv_prog_gnu_ld=no
13191   ;;
13192 esac
13193 fi
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13195 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13196 with_gnu_ld=$lt_cv_prog_gnu_ld
13197
13198
13199
13200
13201
13202
13203
13204       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13205       # archiving commands below assume that GNU ld is being used.
13206       if test "$with_gnu_ld" = yes; then
13207         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13208         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13209
13210         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13211         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13212
13213         # If archive_cmds runs LD, not CC, wlarc should be empty
13214         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13215         #     investigate it a little bit more. (MM)
13216         wlarc='${wl}'
13217
13218         # ancient GNU ld didn't support --whole-archive et. al.
13219         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13220           $GREP 'no-whole-archive' > /dev/null; then
13221           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13222         else
13223           whole_archive_flag_spec_CXX=
13224         fi
13225       else
13226         with_gnu_ld=no
13227         wlarc=
13228
13229         # A generic and very simple default shared library creation
13230         # command for GNU C++ for the case where it uses the native
13231         # linker, instead of GNU ld.  If possible, this setting should
13232         # overridden to take advantage of the native linker features on
13233         # the platform it is being used on.
13234         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13235       fi
13236
13237       # Commands to make compiler produce verbose output that lists
13238       # what "hidden" libraries, object files and flags are used when
13239       # linking a shared library.
13240       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13241
13242     else
13243       GXX=no
13244       with_gnu_ld=no
13245       wlarc=
13246     fi
13247
13248     # PORTME: fill in a description of your system's C++ link characteristics
13249     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13250 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13251     ld_shlibs_CXX=yes
13252     case $host_os in
13253       aix3*)
13254         # FIXME: insert proper C++ library support
13255         ld_shlibs_CXX=no
13256         ;;
13257       aix[4-9]*)
13258         if test "$host_cpu" = ia64; then
13259           # On IA64, the linker does run time linking by default, so we don't
13260           # have to do anything special.
13261           aix_use_runtimelinking=no
13262           exp_sym_flag='-Bexport'
13263           no_entry_flag=""
13264         else
13265           aix_use_runtimelinking=no
13266
13267           # Test if we are trying to use run time linking or normal
13268           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13269           # need to do runtime linking.
13270           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13271             for ld_flag in $LDFLAGS; do
13272               case $ld_flag in
13273               *-brtl*)
13274                 aix_use_runtimelinking=yes
13275                 break
13276                 ;;
13277               esac
13278             done
13279             ;;
13280           esac
13281
13282           exp_sym_flag='-bexport'
13283           no_entry_flag='-bnoentry'
13284         fi
13285
13286         # When large executables or shared objects are built, AIX ld can
13287         # have problems creating the table of contents.  If linking a library
13288         # or program results in "error TOC overflow" add -mminimal-toc to
13289         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13290         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13291
13292         archive_cmds_CXX=''
13293         hardcode_direct_CXX=yes
13294         hardcode_direct_absolute_CXX=yes
13295         hardcode_libdir_separator_CXX=':'
13296         link_all_deplibs_CXX=yes
13297         file_list_spec_CXX='${wl}-f,'
13298
13299         if test "$GXX" = yes; then
13300           case $host_os in aix4.[012]|aix4.[012].*)
13301           # We only want to do this on AIX 4.2 and lower, the check
13302           # below for broken collect2 doesn't work under 4.3+
13303           collect2name=`${CC} -print-prog-name=collect2`
13304           if test -f "$collect2name" &&
13305              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13306           then
13307             # We have reworked collect2
13308             :
13309           else
13310             # We have old collect2
13311             hardcode_direct_CXX=unsupported
13312             # It fails to find uninstalled libraries when the uninstalled
13313             # path is not listed in the libpath.  Setting hardcode_minus_L
13314             # to unsupported forces relinking
13315             hardcode_minus_L_CXX=yes
13316             hardcode_libdir_flag_spec_CXX='-L$libdir'
13317             hardcode_libdir_separator_CXX=
13318           fi
13319           esac
13320           shared_flag='-shared'
13321           if test "$aix_use_runtimelinking" = yes; then
13322             shared_flag="$shared_flag "'${wl}-G'
13323           fi
13324         else
13325           # not using gcc
13326           if test "$host_cpu" = ia64; then
13327           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13328           # chokes on -Wl,-G. The following line is correct:
13329           shared_flag='-G'
13330           else
13331             if test "$aix_use_runtimelinking" = yes; then
13332               shared_flag='${wl}-G'
13333             else
13334               shared_flag='${wl}-bM:SRE'
13335             fi
13336           fi
13337         fi
13338
13339         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13340         # It seems that -bexpall does not export symbols beginning with
13341         # underscore (_), so it is better to generate a list of symbols to
13342         # export.
13343         always_export_symbols_CXX=yes
13344         if test "$aix_use_runtimelinking" = yes; then
13345           # Warning - without using the other runtime loading flags (-brtl),
13346           # -berok will link without error, but may produce a broken library.
13347           allow_undefined_flag_CXX='-berok'
13348           # Determine the default libpath from the value encoded in an empty
13349           # executable.
13350           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13351 /* end confdefs.h.  */
13352
13353 int
13354 main ()
13355 {
13356
13357   ;
13358   return 0;
13359 }
13360 _ACEOF
13361 if ac_fn_cxx_try_link "$LINENO"; then :
13362
13363 lt_aix_libpath_sed='
13364     /Import File Strings/,/^$/ {
13365         /^0/ {
13366             s/^0  *\(.*\)$/\1/
13367             p
13368         }
13369     }'
13370 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13371 # Check for a 64-bit object if we didn't find anything.
13372 if test -z "$aix_libpath"; then
13373   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13374 fi
13375 fi
13376 rm -f core conftest.err conftest.$ac_objext \
13377     conftest$ac_exeext conftest.$ac_ext
13378 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13379
13380           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13381
13382           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13383         else
13384           if test "$host_cpu" = ia64; then
13385             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13386             allow_undefined_flag_CXX="-z nodefs"
13387             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13388           else
13389             # Determine the default libpath from the value encoded in an
13390             # empty executable.
13391             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13392 /* end confdefs.h.  */
13393
13394 int
13395 main ()
13396 {
13397
13398   ;
13399   return 0;
13400 }
13401 _ACEOF
13402 if ac_fn_cxx_try_link "$LINENO"; then :
13403
13404 lt_aix_libpath_sed='
13405     /Import File Strings/,/^$/ {
13406         /^0/ {
13407             s/^0  *\(.*\)$/\1/
13408             p
13409         }
13410     }'
13411 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13412 # Check for a 64-bit object if we didn't find anything.
13413 if test -z "$aix_libpath"; then
13414   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13415 fi
13416 fi
13417 rm -f core conftest.err conftest.$ac_objext \
13418     conftest$ac_exeext conftest.$ac_ext
13419 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13420
13421             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13422             # Warning - without using the other run time loading flags,
13423             # -berok will link without error, but may produce a broken library.
13424             no_undefined_flag_CXX=' ${wl}-bernotok'
13425             allow_undefined_flag_CXX=' ${wl}-berok'
13426             # Exported symbols can be pulled into shared objects from archives
13427             whole_archive_flag_spec_CXX='$convenience'
13428             archive_cmds_need_lc_CXX=yes
13429             # This is similar to how AIX traditionally builds its shared
13430             # libraries.
13431             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13432           fi
13433         fi
13434         ;;
13435
13436       beos*)
13437         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13438           allow_undefined_flag_CXX=unsupported
13439           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13440           # support --undefined.  This deserves some investigation.  FIXME
13441           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13442         else
13443           ld_shlibs_CXX=no
13444         fi
13445         ;;
13446
13447       chorus*)
13448         case $cc_basename in
13449           *)
13450           # FIXME: insert proper C++ library support
13451           ld_shlibs_CXX=no
13452           ;;
13453         esac
13454         ;;
13455
13456       cygwin* | mingw* | pw32* | cegcc*)
13457         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13458         # as there is no search path for DLLs.
13459         hardcode_libdir_flag_spec_CXX='-L$libdir'
13460         allow_undefined_flag_CXX=unsupported
13461         always_export_symbols_CXX=no
13462         enable_shared_with_static_runtimes_CXX=yes
13463
13464         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13465           archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13466           # If the export-symbols file already is a .def file (1st line
13467           # is EXPORTS), use it as is; otherwise, prepend...
13468           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13469             cp $export_symbols $output_objdir/$soname.def;
13470           else
13471             echo EXPORTS > $output_objdir/$soname.def;
13472             cat $export_symbols >> $output_objdir/$soname.def;
13473           fi~
13474           $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13475         else
13476           ld_shlibs_CXX=no
13477         fi
13478         ;;
13479       darwin* | rhapsody*)
13480
13481
13482   archive_cmds_need_lc_CXX=no
13483   hardcode_direct_CXX=no
13484   hardcode_automatic_CXX=yes
13485   hardcode_shlibpath_var_CXX=unsupported
13486   whole_archive_flag_spec_CXX=''
13487   link_all_deplibs_CXX=yes
13488   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13489   case $cc_basename in
13490      ifort*) _lt_dar_can_shared=yes ;;
13491      *) _lt_dar_can_shared=$GCC ;;
13492   esac
13493   if test "$_lt_dar_can_shared" = "yes"; then
13494     output_verbose_link_cmd=echo
13495     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13496     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13497     archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13498     module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13499        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13500       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13501       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13502     fi
13503
13504   else
13505   ld_shlibs_CXX=no
13506   fi
13507
13508         ;;
13509
13510       dgux*)
13511         case $cc_basename in
13512           ec++*)
13513             # FIXME: insert proper C++ library support
13514             ld_shlibs_CXX=no
13515             ;;
13516           ghcx*)
13517             # Green Hills C++ Compiler
13518             # FIXME: insert proper C++ library support
13519             ld_shlibs_CXX=no
13520             ;;
13521           *)
13522             # FIXME: insert proper C++ library support
13523             ld_shlibs_CXX=no
13524             ;;
13525         esac
13526         ;;
13527
13528       freebsd[12]*)
13529         # C++ shared libraries reported to be fairly broken before
13530         # switch to ELF
13531         ld_shlibs_CXX=no
13532         ;;
13533
13534       freebsd-elf*)
13535         archive_cmds_need_lc_CXX=no
13536         ;;
13537
13538       freebsd* | dragonfly*)
13539         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13540         # conventions
13541         ld_shlibs_CXX=yes
13542         ;;
13543
13544       gnu*)
13545         ;;
13546
13547       hpux9*)
13548         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13549         hardcode_libdir_separator_CXX=:
13550         export_dynamic_flag_spec_CXX='${wl}-E'
13551         hardcode_direct_CXX=yes
13552         hardcode_minus_L_CXX=yes # Not in the search PATH,
13553                                              # but as the default
13554                                              # location of the library.
13555
13556         case $cc_basename in
13557           CC*)
13558             # FIXME: insert proper C++ library support
13559             ld_shlibs_CXX=no
13560             ;;
13561           aCC*)
13562             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13563             # Commands to make compiler produce verbose output that lists
13564             # what "hidden" libraries, object files and flags are used when
13565             # linking a shared library.
13566             #
13567             # There doesn't appear to be a way to prevent this compiler from
13568             # explicitly linking system object files so we need to strip them
13569             # from the output so that they don't get included in the library
13570             # dependencies.
13571             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13572             ;;
13573           *)
13574             if test "$GXX" = yes; then
13575               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13576             else
13577               # FIXME: insert proper C++ library support
13578               ld_shlibs_CXX=no
13579             fi
13580             ;;
13581         esac
13582         ;;
13583
13584       hpux10*|hpux11*)
13585         if test $with_gnu_ld = no; then
13586           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13587           hardcode_libdir_separator_CXX=:
13588
13589           case $host_cpu in
13590             hppa*64*|ia64*)
13591               ;;
13592             *)
13593               export_dynamic_flag_spec_CXX='${wl}-E'
13594               ;;
13595           esac
13596         fi
13597         case $host_cpu in
13598           hppa*64*|ia64*)
13599             hardcode_direct_CXX=no
13600             hardcode_shlibpath_var_CXX=no
13601             ;;
13602           *)
13603             hardcode_direct_CXX=yes
13604             hardcode_direct_absolute_CXX=yes
13605             hardcode_minus_L_CXX=yes # Not in the search PATH,
13606                                                  # but as the default
13607                                                  # location of the library.
13608             ;;
13609         esac
13610
13611         case $cc_basename in
13612           CC*)
13613             # FIXME: insert proper C++ library support
13614             ld_shlibs_CXX=no
13615             ;;
13616           aCC*)
13617             case $host_cpu in
13618               hppa*64*)
13619                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13620                 ;;
13621               ia64*)
13622                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13623                 ;;
13624               *)
13625                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13626                 ;;
13627             esac
13628             # Commands to make compiler produce verbose output that lists
13629             # what "hidden" libraries, object files and flags are used when
13630             # linking a shared library.
13631             #
13632             # There doesn't appear to be a way to prevent this compiler from
13633             # explicitly linking system object files so we need to strip them
13634             # from the output so that they don't get included in the library
13635             # dependencies.
13636             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13637             ;;
13638           *)
13639             if test "$GXX" = yes; then
13640               if test $with_gnu_ld = no; then
13641                 case $host_cpu in
13642                   hppa*64*)
13643                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13644                     ;;
13645                   ia64*)
13646                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13647                     ;;
13648                   *)
13649                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13650                     ;;
13651                 esac
13652               fi
13653             else
13654               # FIXME: insert proper C++ library support
13655               ld_shlibs_CXX=no
13656             fi
13657             ;;
13658         esac
13659         ;;
13660
13661       interix[3-9]*)
13662         hardcode_direct_CXX=no
13663         hardcode_shlibpath_var_CXX=no
13664         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13665         export_dynamic_flag_spec_CXX='${wl}-E'
13666         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13667         # Instead, shared libraries are loaded at an image base (0x10000000 by
13668         # default) and relocated if they conflict, which is a slow very memory
13669         # consuming and fragmenting process.  To avoid this, we pick a random,
13670         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13671         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13672         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13673         archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13674         ;;
13675       irix5* | irix6*)
13676         case $cc_basename in
13677           CC*)
13678             # SGI C++
13679             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13680
13681             # Archives containing C++ object files must be created using
13682             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13683             # necessary to make sure instantiated templates are included
13684             # in the archive.
13685             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13686             ;;
13687           *)
13688             if test "$GXX" = yes; then
13689               if test "$with_gnu_ld" = no; then
13690                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13691               else
13692                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13693               fi
13694             fi
13695             link_all_deplibs_CXX=yes
13696             ;;
13697         esac
13698         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13699         hardcode_libdir_separator_CXX=:
13700         inherit_rpath_CXX=yes
13701         ;;
13702
13703       linux* | k*bsd*-gnu)
13704         case $cc_basename in
13705           KCC*)
13706             # Kuck and Associates, Inc. (KAI) C++ Compiler
13707
13708             # KCC will only create a shared library if the output file
13709             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13710             # to its proper name (with version) after linking.
13711             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13712             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13713             # Commands to make compiler produce verbose output that lists
13714             # what "hidden" libraries, object files and flags are used when
13715             # linking a shared library.
13716             #
13717             # There doesn't appear to be a way to prevent this compiler from
13718             # explicitly linking system object files so we need to strip them
13719             # from the output so that they don't get included in the library
13720             # dependencies.
13721             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13722
13723             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13724             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13725
13726             # Archives containing C++ object files must be created using
13727             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13728             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13729             ;;
13730           icpc* | ecpc* )
13731             # Intel C++
13732             with_gnu_ld=yes
13733             # version 8.0 and above of icpc choke on multiply defined symbols
13734             # if we add $predep_objects and $postdep_objects, however 7.1 and
13735             # earlier do not add the objects themselves.
13736             case `$CC -V 2>&1` in
13737               *"Version 7."*)
13738                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13739                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13740                 ;;
13741               *)  # Version 8.0 or newer
13742                 tmp_idyn=
13743                 case $host_cpu in
13744                   ia64*) tmp_idyn=' -i_dynamic';;
13745                 esac
13746                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13747                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13748                 ;;
13749             esac
13750             archive_cmds_need_lc_CXX=no
13751             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13752             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13753             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13754             ;;
13755           pgCC* | pgcpp*)
13756             # Portland Group C++ compiler
13757             case `$CC -V` in
13758             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13759               prelink_cmds_CXX='tpldir=Template.dir~
13760                 rm -rf $tpldir~
13761                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13762                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13763               old_archive_cmds_CXX='tpldir=Template.dir~
13764                 rm -rf $tpldir~
13765                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13766                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13767                 $RANLIB $oldlib'
13768               archive_cmds_CXX='tpldir=Template.dir~
13769                 rm -rf $tpldir~
13770                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13771                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13772               archive_expsym_cmds_CXX='tpldir=Template.dir~
13773                 rm -rf $tpldir~
13774                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13775                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13776               ;;
13777             *) # Version 6 will use weak symbols
13778               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13779               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13780               ;;
13781             esac
13782
13783             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13784             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13785             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13786             ;;
13787           cxx*)
13788             # Compaq C++
13789             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13790             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13791
13792             runpath_var=LD_RUN_PATH
13793             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13794             hardcode_libdir_separator_CXX=:
13795
13796             # Commands to make compiler produce verbose output that lists
13797             # what "hidden" libraries, object files and flags are used when
13798             # linking a shared library.
13799             #
13800             # There doesn't appear to be a way to prevent this compiler from
13801             # explicitly linking system object files so we need to strip them
13802             # from the output so that they don't get included in the library
13803             # dependencies.
13804             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13805             ;;
13806           xl*)
13807             # IBM XL 8.0 on PPC, with GNU ld
13808             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13809             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13810             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13811             if test "x$supports_anon_versioning" = xyes; then
13812               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13813                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13814                 echo "local: *; };" >> $output_objdir/$libname.ver~
13815                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13816             fi
13817             ;;
13818           *)
13819             case `$CC -V 2>&1 | sed 5q` in
13820             *Sun\ C*)
13821               # Sun C++ 5.9
13822               no_undefined_flag_CXX=' -zdefs'
13823               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13824               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13825               hardcode_libdir_flag_spec_CXX='-R$libdir'
13826               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13827               compiler_needs_object_CXX=yes
13828
13829               # Not sure whether something based on
13830               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13831               # would be better.
13832               output_verbose_link_cmd='echo'
13833
13834               # Archives containing C++ object files must be created using
13835               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13836               # necessary to make sure instantiated templates are included
13837               # in the archive.
13838               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13839               ;;
13840             esac
13841             ;;
13842         esac
13843         ;;
13844
13845       lynxos*)
13846         # FIXME: insert proper C++ library support
13847         ld_shlibs_CXX=no
13848         ;;
13849
13850       m88k*)
13851         # FIXME: insert proper C++ library support
13852         ld_shlibs_CXX=no
13853         ;;
13854
13855       mvs*)
13856         case $cc_basename in
13857           cxx*)
13858             # FIXME: insert proper C++ library support
13859             ld_shlibs_CXX=no
13860             ;;
13861           *)
13862             # FIXME: insert proper C++ library support
13863             ld_shlibs_CXX=no
13864             ;;
13865         esac
13866         ;;
13867
13868       netbsd*)
13869         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13870           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13871           wlarc=
13872           hardcode_libdir_flag_spec_CXX='-R$libdir'
13873           hardcode_direct_CXX=yes
13874           hardcode_shlibpath_var_CXX=no
13875         fi
13876         # Workaround some broken pre-1.5 toolchains
13877         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13878         ;;
13879
13880       *nto* | *qnx*)
13881         ld_shlibs_CXX=yes
13882         ;;
13883
13884       openbsd2*)
13885         # C++ shared libraries are fairly broken
13886         ld_shlibs_CXX=no
13887         ;;
13888
13889       openbsd*)
13890         if test -f /usr/libexec/ld.so; then
13891           hardcode_direct_CXX=yes
13892           hardcode_shlibpath_var_CXX=no
13893           hardcode_direct_absolute_CXX=yes
13894           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13895           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13896           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13897             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13898             export_dynamic_flag_spec_CXX='${wl}-E'
13899             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13900           fi
13901           output_verbose_link_cmd=echo
13902         else
13903           ld_shlibs_CXX=no
13904         fi
13905         ;;
13906
13907       osf3* | osf4* | osf5*)
13908         case $cc_basename in
13909           KCC*)
13910             # Kuck and Associates, Inc. (KAI) C++ Compiler
13911
13912             # KCC will only create a shared library if the output file
13913             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13914             # to its proper name (with version) after linking.
13915             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13916
13917             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13918             hardcode_libdir_separator_CXX=:
13919
13920             # Archives containing C++ object files must be created using
13921             # the KAI C++ compiler.
13922             case $host in
13923               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13924               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13925             esac
13926             ;;
13927           RCC*)
13928             # Rational C++ 2.4.1
13929             # FIXME: insert proper C++ library support
13930             ld_shlibs_CXX=no
13931             ;;
13932           cxx*)
13933             case $host in
13934               osf3*)
13935                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13936                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13937                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13938                 ;;
13939               *)
13940                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13941                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13942                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13943                   echo "-hidden">> $lib.exp~
13944                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13945                   $RM $lib.exp'
13946                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13947                 ;;
13948             esac
13949
13950             hardcode_libdir_separator_CXX=:
13951
13952             # Commands to make compiler produce verbose output that lists
13953             # what "hidden" libraries, object files and flags are used when
13954             # linking a shared library.
13955             #
13956             # There doesn't appear to be a way to prevent this compiler from
13957             # explicitly linking system object files so we need to strip them
13958             # from the output so that they don't get included in the library
13959             # dependencies.
13960             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13961             ;;
13962           *)
13963             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13964               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13965               case $host in
13966                 osf3*)
13967                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13968                   ;;
13969                 *)
13970                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13971                   ;;
13972               esac
13973
13974               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13975               hardcode_libdir_separator_CXX=:
13976
13977               # Commands to make compiler produce verbose output that lists
13978               # what "hidden" libraries, object files and flags are used when
13979               # linking a shared library.
13980               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13981
13982             else
13983               # FIXME: insert proper C++ library support
13984               ld_shlibs_CXX=no
13985             fi
13986             ;;
13987         esac
13988         ;;
13989
13990       psos*)
13991         # FIXME: insert proper C++ library support
13992         ld_shlibs_CXX=no
13993         ;;
13994
13995       sunos4*)
13996         case $cc_basename in
13997           CC*)
13998             # Sun C++ 4.x
13999             # FIXME: insert proper C++ library support
14000             ld_shlibs_CXX=no
14001             ;;
14002           lcc*)
14003             # Lucid
14004             # FIXME: insert proper C++ library support
14005             ld_shlibs_CXX=no
14006             ;;
14007           *)
14008             # FIXME: insert proper C++ library support
14009             ld_shlibs_CXX=no
14010             ;;
14011         esac
14012         ;;
14013
14014       solaris*)
14015         case $cc_basename in
14016           CC*)
14017             # Sun C++ 4.2, 5.x and Centerline C++
14018             archive_cmds_need_lc_CXX=yes
14019             no_undefined_flag_CXX=' -zdefs'
14020             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14021             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14022               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14023
14024             hardcode_libdir_flag_spec_CXX='-R$libdir'
14025             hardcode_shlibpath_var_CXX=no
14026             case $host_os in
14027               solaris2.[0-5] | solaris2.[0-5].*) ;;
14028               *)
14029                 # The compiler driver will combine and reorder linker options,
14030                 # but understands `-z linker_flag'.
14031                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14032                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14033                 ;;
14034             esac
14035             link_all_deplibs_CXX=yes
14036
14037             output_verbose_link_cmd='echo'
14038
14039             # Archives containing C++ object files must be created using
14040             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14041             # necessary to make sure instantiated templates are included
14042             # in the archive.
14043             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14044             ;;
14045           gcx*)
14046             # Green Hills C++ Compiler
14047             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14048
14049             # The C++ compiler must be used to create the archive.
14050             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14051             ;;
14052           *)
14053             # GNU C++ compiler with Solaris linker
14054             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14055               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14056               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14057                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14058                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14059                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14060
14061                 # Commands to make compiler produce verbose output that lists
14062                 # what "hidden" libraries, object files and flags are used when
14063                 # linking a shared library.
14064                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14065               else
14066                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14067                 # platform.
14068                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14069                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14070                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14071
14072                 # Commands to make compiler produce verbose output that lists
14073                 # what "hidden" libraries, object files and flags are used when
14074                 # linking a shared library.
14075                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14076               fi
14077
14078               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14079               case $host_os in
14080                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14081                 *)
14082                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14083                   ;;
14084               esac
14085             fi
14086             ;;
14087         esac
14088         ;;
14089
14090     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14091       no_undefined_flag_CXX='${wl}-z,text'
14092       archive_cmds_need_lc_CXX=no
14093       hardcode_shlibpath_var_CXX=no
14094       runpath_var='LD_RUN_PATH'
14095
14096       case $cc_basename in
14097         CC*)
14098           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14099           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14100           ;;
14101         *)
14102           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14103           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14104           ;;
14105       esac
14106       ;;
14107
14108       sysv5* | sco3.2v5* | sco5v6*)
14109         # Note: We can NOT use -z defs as we might desire, because we do not
14110         # link with -lc, and that would cause any symbols used from libc to
14111         # always be unresolved, which means just about no library would
14112         # ever link correctly.  If we're not using GNU ld we use -z text
14113         # though, which does catch some bad symbols but isn't as heavy-handed
14114         # as -z defs.
14115         no_undefined_flag_CXX='${wl}-z,text'
14116         allow_undefined_flag_CXX='${wl}-z,nodefs'
14117         archive_cmds_need_lc_CXX=no
14118         hardcode_shlibpath_var_CXX=no
14119         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14120         hardcode_libdir_separator_CXX=':'
14121         link_all_deplibs_CXX=yes
14122         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14123         runpath_var='LD_RUN_PATH'
14124
14125         case $cc_basename in
14126           CC*)
14127             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14128             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14129             ;;
14130           *)
14131             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14132             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14133             ;;
14134         esac
14135       ;;
14136
14137       tandem*)
14138         case $cc_basename in
14139           NCC*)
14140             # NonStop-UX NCC 3.20
14141             # FIXME: insert proper C++ library support
14142             ld_shlibs_CXX=no
14143             ;;
14144           *)
14145             # FIXME: insert proper C++ library support
14146             ld_shlibs_CXX=no
14147             ;;
14148         esac
14149         ;;
14150
14151       vxworks*)
14152         # FIXME: insert proper C++ library support
14153         ld_shlibs_CXX=no
14154         ;;
14155
14156       *)
14157         # FIXME: insert proper C++ library support
14158         ld_shlibs_CXX=no
14159         ;;
14160     esac
14161
14162     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14163 $as_echo "$ld_shlibs_CXX" >&6; }
14164     test "$ld_shlibs_CXX" = no && can_build_shared=no
14165
14166     GCC_CXX="$GXX"
14167     LD_CXX="$LD"
14168
14169     ## CAVEAT EMPTOR:
14170     ## There is no encapsulation within the following macros, do not change
14171     ## the running order or otherwise move them around unless you know exactly
14172     ## what you are doing...
14173     # Dependencies to place before and after the object being linked:
14174 predep_objects_CXX=
14175 postdep_objects_CXX=
14176 predeps_CXX=
14177 postdeps_CXX=
14178 compiler_lib_search_path_CXX=
14179
14180 cat > conftest.$ac_ext <<_LT_EOF
14181 class Foo
14182 {
14183 public:
14184   Foo (void) { a = 0; }
14185 private:
14186   int a;
14187 };
14188 _LT_EOF
14189
14190 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14191   (eval $ac_compile) 2>&5
14192   ac_status=$?
14193   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14194   test $ac_status = 0; }; then
14195   # Parse the compiler output and extract the necessary
14196   # objects, libraries and library flags.
14197
14198   # Sentinel used to keep track of whether or not we are before
14199   # the conftest object file.
14200   pre_test_object_deps_done=no
14201
14202   for p in `eval "$output_verbose_link_cmd"`; do
14203     case $p in
14204
14205     -L* | -R* | -l*)
14206        # Some compilers place space between "-{L,R}" and the path.
14207        # Remove the space.
14208        if test $p = "-L" ||
14209           test $p = "-R"; then
14210          prev=$p
14211          continue
14212        else
14213          prev=
14214        fi
14215
14216        if test "$pre_test_object_deps_done" = no; then
14217          case $p in
14218          -L* | -R*)
14219            # Internal compiler library paths should come after those
14220            # provided the user.  The postdeps already come after the
14221            # user supplied libs so there is no need to process them.
14222            if test -z "$compiler_lib_search_path_CXX"; then
14223              compiler_lib_search_path_CXX="${prev}${p}"
14224            else
14225              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14226            fi
14227            ;;
14228          # The "-l" case would never come before the object being
14229          # linked, so don't bother handling this case.
14230          esac
14231        else
14232          if test -z "$postdeps_CXX"; then
14233            postdeps_CXX="${prev}${p}"
14234          else
14235            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14236          fi
14237        fi
14238        ;;
14239
14240     *.$objext)
14241        # This assumes that the test object file only shows up
14242        # once in the compiler output.
14243        if test "$p" = "conftest.$objext"; then
14244          pre_test_object_deps_done=yes
14245          continue
14246        fi
14247
14248        if test "$pre_test_object_deps_done" = no; then
14249          if test -z "$predep_objects_CXX"; then
14250            predep_objects_CXX="$p"
14251          else
14252            predep_objects_CXX="$predep_objects_CXX $p"
14253          fi
14254        else
14255          if test -z "$postdep_objects_CXX"; then
14256            postdep_objects_CXX="$p"
14257          else
14258            postdep_objects_CXX="$postdep_objects_CXX $p"
14259          fi
14260        fi
14261        ;;
14262
14263     *) ;; # Ignore the rest.
14264
14265     esac
14266   done
14267
14268   # Clean up.
14269   rm -f a.out a.exe
14270 else
14271   echo "libtool.m4: error: problem compiling CXX test program"
14272 fi
14273
14274 $RM -f confest.$objext
14275
14276 # PORTME: override above test on systems where it is broken
14277 case $host_os in
14278 interix[3-9]*)
14279   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14280   # hack all around it, let's just trust "g++" to DTRT.
14281   predep_objects_CXX=
14282   postdep_objects_CXX=
14283   postdeps_CXX=
14284   ;;
14285
14286 linux*)
14287   case `$CC -V 2>&1 | sed 5q` in
14288   *Sun\ C*)
14289     # Sun C++ 5.9
14290
14291     # The more standards-conforming stlport4 library is
14292     # incompatible with the Cstd library. Avoid specifying
14293     # it if it's in CXXFLAGS. Ignore libCrun as
14294     # -library=stlport4 depends on it.
14295     case " $CXX $CXXFLAGS " in
14296     *" -library=stlport4 "*)
14297       solaris_use_stlport4=yes
14298       ;;
14299     esac
14300
14301     if test "$solaris_use_stlport4" != yes; then
14302       postdeps_CXX='-library=Cstd -library=Crun'
14303     fi
14304     ;;
14305   esac
14306   ;;
14307
14308 solaris*)
14309   case $cc_basename in
14310   CC*)
14311     # The more standards-conforming stlport4 library is
14312     # incompatible with the Cstd library. Avoid specifying
14313     # it if it's in CXXFLAGS. Ignore libCrun as
14314     # -library=stlport4 depends on it.
14315     case " $CXX $CXXFLAGS " in
14316     *" -library=stlport4 "*)
14317       solaris_use_stlport4=yes
14318       ;;
14319     esac
14320
14321     # Adding this requires a known-good setup of shared libraries for
14322     # Sun compiler versions before 5.6, else PIC objects from an old
14323     # archive will be linked into the output, leading to subtle bugs.
14324     if test "$solaris_use_stlport4" != yes; then
14325       postdeps_CXX='-library=Cstd -library=Crun'
14326     fi
14327     ;;
14328   esac
14329   ;;
14330 esac
14331
14332
14333 case " $postdeps_CXX " in
14334 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14335 esac
14336  compiler_lib_search_dirs_CXX=
14337 if test -n "${compiler_lib_search_path_CXX}"; then
14338  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14339 fi
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371     lt_prog_compiler_wl_CXX=
14372 lt_prog_compiler_pic_CXX=
14373 lt_prog_compiler_static_CXX=
14374
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14376 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14377
14378   # C++ specific cases for pic, static, wl, etc.
14379   if test "$GXX" = yes; then
14380     lt_prog_compiler_wl_CXX='-Wl,'
14381     lt_prog_compiler_static_CXX='-static'
14382
14383     case $host_os in
14384     aix*)
14385       # All AIX code is PIC.
14386       if test "$host_cpu" = ia64; then
14387         # AIX 5 now supports IA64 processor
14388         lt_prog_compiler_static_CXX='-Bstatic'
14389       fi
14390       ;;
14391
14392     amigaos*)
14393       case $host_cpu in
14394       powerpc)
14395             # see comment about AmigaOS4 .so support
14396             lt_prog_compiler_pic_CXX='-fPIC'
14397         ;;
14398       m68k)
14399             # FIXME: we need at least 68020 code to build shared libraries, but
14400             # adding the `-m68020' flag to GCC prevents building anything better,
14401             # like `-m68040'.
14402             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14403         ;;
14404       esac
14405       ;;
14406
14407     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14408       # PIC is the default for these OSes.
14409       ;;
14410     mingw* | cygwin* | os2* | pw32* | cegcc*)
14411       # This hack is so that the source file can tell whether it is being
14412       # built for inclusion in a dll (and should export symbols for example).
14413       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14414       # (--disable-auto-import) libraries
14415       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14416       ;;
14417     darwin* | rhapsody*)
14418       # PIC is the default on this platform
14419       # Common symbols not allowed in MH_DYLIB files
14420       lt_prog_compiler_pic_CXX='-fno-common'
14421       ;;
14422     *djgpp*)
14423       # DJGPP does not support shared libraries at all
14424       lt_prog_compiler_pic_CXX=
14425       ;;
14426     interix[3-9]*)
14427       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14428       # Instead, we relocate shared libraries at runtime.
14429       ;;
14430     sysv4*MP*)
14431       if test -d /usr/nec; then
14432         lt_prog_compiler_pic_CXX=-Kconform_pic
14433       fi
14434       ;;
14435     hpux*)
14436       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14437       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14438       # sets the default TLS model and affects inlining.
14439       case $host_cpu in
14440       hppa*64*)
14441         ;;
14442       *)
14443         lt_prog_compiler_pic_CXX='-fPIC'
14444         ;;
14445       esac
14446       ;;
14447     *qnx* | *nto*)
14448       # QNX uses GNU C++, but need to define -shared option too, otherwise
14449       # it will coredump.
14450       lt_prog_compiler_pic_CXX='-fPIC -shared'
14451       ;;
14452     *)
14453       lt_prog_compiler_pic_CXX='-fPIC'
14454       ;;
14455     esac
14456   else
14457     case $host_os in
14458       aix[4-9]*)
14459         # All AIX code is PIC.
14460         if test "$host_cpu" = ia64; then
14461           # AIX 5 now supports IA64 processor
14462           lt_prog_compiler_static_CXX='-Bstatic'
14463         else
14464           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14465         fi
14466         ;;
14467       chorus*)
14468         case $cc_basename in
14469         cxch68*)
14470           # Green Hills C++ Compiler
14471           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14472           ;;
14473         esac
14474         ;;
14475       dgux*)
14476         case $cc_basename in
14477           ec++*)
14478             lt_prog_compiler_pic_CXX='-KPIC'
14479             ;;
14480           ghcx*)
14481             # Green Hills C++ Compiler
14482             lt_prog_compiler_pic_CXX='-pic'
14483             ;;
14484           *)
14485             ;;
14486         esac
14487         ;;
14488       freebsd* | dragonfly*)
14489         # FreeBSD uses GNU C++
14490         ;;
14491       hpux9* | hpux10* | hpux11*)
14492         case $cc_basename in
14493           CC*)
14494             lt_prog_compiler_wl_CXX='-Wl,'
14495             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14496             if test "$host_cpu" != ia64; then
14497               lt_prog_compiler_pic_CXX='+Z'
14498             fi
14499             ;;
14500           aCC*)
14501             lt_prog_compiler_wl_CXX='-Wl,'
14502             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14503             case $host_cpu in
14504             hppa*64*|ia64*)
14505               # +Z the default
14506               ;;
14507             *)
14508               lt_prog_compiler_pic_CXX='+Z'
14509               ;;
14510             esac
14511             ;;
14512           *)
14513             ;;
14514         esac
14515         ;;
14516       interix*)
14517         # This is c89, which is MS Visual C++ (no shared libs)
14518         # Anyone wants to do a port?
14519         ;;
14520       irix5* | irix6* | nonstopux*)
14521         case $cc_basename in
14522           CC*)
14523             lt_prog_compiler_wl_CXX='-Wl,'
14524             lt_prog_compiler_static_CXX='-non_shared'
14525             # CC pic flag -KPIC is the default.
14526             ;;
14527           *)
14528             ;;
14529         esac
14530         ;;
14531       linux* | k*bsd*-gnu)
14532         case $cc_basename in
14533           KCC*)
14534             # KAI C++ Compiler
14535             lt_prog_compiler_wl_CXX='--backend -Wl,'
14536             lt_prog_compiler_pic_CXX='-fPIC'
14537             ;;
14538           ecpc* )
14539             # old Intel C++ for x86_64 which still supported -KPIC.
14540             lt_prog_compiler_wl_CXX='-Wl,'
14541             lt_prog_compiler_pic_CXX='-KPIC'
14542             lt_prog_compiler_static_CXX='-static'
14543             ;;
14544           icpc* )
14545             # Intel C++, used to be incompatible with GCC.
14546             # ICC 10 doesn't accept -KPIC any more.
14547             lt_prog_compiler_wl_CXX='-Wl,'
14548             lt_prog_compiler_pic_CXX='-fPIC'
14549             lt_prog_compiler_static_CXX='-static'
14550             ;;
14551           pgCC* | pgcpp*)
14552             # Portland Group C++ compiler
14553             lt_prog_compiler_wl_CXX='-Wl,'
14554             lt_prog_compiler_pic_CXX='-fpic'
14555             lt_prog_compiler_static_CXX='-Bstatic'
14556             ;;
14557           cxx*)
14558             # Compaq C++
14559             # Make sure the PIC flag is empty.  It appears that all Alpha
14560             # Linux and Compaq Tru64 Unix objects are PIC.
14561             lt_prog_compiler_pic_CXX=
14562             lt_prog_compiler_static_CXX='-non_shared'
14563             ;;
14564           xlc* | xlC*)
14565             # IBM XL 8.0 on PPC
14566             lt_prog_compiler_wl_CXX='-Wl,'
14567             lt_prog_compiler_pic_CXX='-qpic'
14568             lt_prog_compiler_static_CXX='-qstaticlink'
14569             ;;
14570           *)
14571             case `$CC -V 2>&1 | sed 5q` in
14572             *Sun\ C*)
14573               # Sun C++ 5.9
14574               lt_prog_compiler_pic_CXX='-KPIC'
14575               lt_prog_compiler_static_CXX='-Bstatic'
14576               lt_prog_compiler_wl_CXX='-Qoption ld '
14577               ;;
14578             esac
14579             ;;
14580         esac
14581         ;;
14582       lynxos*)
14583         ;;
14584       m88k*)
14585         ;;
14586       mvs*)
14587         case $cc_basename in
14588           cxx*)
14589             lt_prog_compiler_pic_CXX='-W c,exportall'
14590             ;;
14591           *)
14592             ;;
14593         esac
14594         ;;
14595       netbsd* | netbsdelf*-gnu)
14596         ;;
14597       *qnx* | *nto*)
14598         # QNX uses GNU C++, but need to define -shared option too, otherwise
14599         # it will coredump.
14600         lt_prog_compiler_pic_CXX='-fPIC -shared'
14601         ;;
14602       osf3* | osf4* | osf5*)
14603         case $cc_basename in
14604           KCC*)
14605             lt_prog_compiler_wl_CXX='--backend -Wl,'
14606             ;;
14607           RCC*)
14608             # Rational C++ 2.4.1
14609             lt_prog_compiler_pic_CXX='-pic'
14610             ;;
14611           cxx*)
14612             # Digital/Compaq C++
14613             lt_prog_compiler_wl_CXX='-Wl,'
14614             # Make sure the PIC flag is empty.  It appears that all Alpha
14615             # Linux and Compaq Tru64 Unix objects are PIC.
14616             lt_prog_compiler_pic_CXX=
14617             lt_prog_compiler_static_CXX='-non_shared'
14618             ;;
14619           *)
14620             ;;
14621         esac
14622         ;;
14623       psos*)
14624         ;;
14625       solaris*)
14626         case $cc_basename in
14627           CC*)
14628             # Sun C++ 4.2, 5.x and Centerline C++
14629             lt_prog_compiler_pic_CXX='-KPIC'
14630             lt_prog_compiler_static_CXX='-Bstatic'
14631             lt_prog_compiler_wl_CXX='-Qoption ld '
14632             ;;
14633           gcx*)
14634             # Green Hills C++ Compiler
14635             lt_prog_compiler_pic_CXX='-PIC'
14636             ;;
14637           *)
14638             ;;
14639         esac
14640         ;;
14641       sunos4*)
14642         case $cc_basename in
14643           CC*)
14644             # Sun C++ 4.x
14645             lt_prog_compiler_pic_CXX='-pic'
14646             lt_prog_compiler_static_CXX='-Bstatic'
14647             ;;
14648           lcc*)
14649             # Lucid
14650             lt_prog_compiler_pic_CXX='-pic'
14651             ;;
14652           *)
14653             ;;
14654         esac
14655         ;;
14656       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14657         case $cc_basename in
14658           CC*)
14659             lt_prog_compiler_wl_CXX='-Wl,'
14660             lt_prog_compiler_pic_CXX='-KPIC'
14661             lt_prog_compiler_static_CXX='-Bstatic'
14662             ;;
14663         esac
14664         ;;
14665       tandem*)
14666         case $cc_basename in
14667           NCC*)
14668             # NonStop-UX NCC 3.20
14669             lt_prog_compiler_pic_CXX='-KPIC'
14670             ;;
14671           *)
14672             ;;
14673         esac
14674         ;;
14675       vxworks*)
14676         ;;
14677       *)
14678         lt_prog_compiler_can_build_shared_CXX=no
14679         ;;
14680     esac
14681   fi
14682
14683 case $host_os in
14684   # For platforms which do not support PIC, -DPIC is meaningless:
14685   *djgpp*)
14686     lt_prog_compiler_pic_CXX=
14687     ;;
14688   *)
14689     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14690     ;;
14691 esac
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14693 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14694
14695
14696
14697 #
14698 # Check to make sure the PIC flag actually works.
14699 #
14700 if test -n "$lt_prog_compiler_pic_CXX"; then
14701   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14702 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14703 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14704   $as_echo_n "(cached) " >&6
14705 else
14706   lt_cv_prog_compiler_pic_works_CXX=no
14707    ac_outfile=conftest.$ac_objext
14708    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14709    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14710    # Insert the option either (1) after the last *FLAGS variable, or
14711    # (2) before a word containing "conftest.", or (3) at the end.
14712    # Note that $ac_compile itself does not contain backslashes and begins
14713    # with a dollar sign (not a hyphen), so the echo should work correctly.
14714    # The option is referenced via a variable to avoid confusing sed.
14715    lt_compile=`echo "$ac_compile" | $SED \
14716    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14717    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14718    -e 's:$: $lt_compiler_flag:'`
14719    (eval echo "\"\$as_me:14719: $lt_compile\"" >&5)
14720    (eval "$lt_compile" 2>conftest.err)
14721    ac_status=$?
14722    cat conftest.err >&5
14723    echo "$as_me:14723: \$? = $ac_status" >&5
14724    if (exit $ac_status) && test -s "$ac_outfile"; then
14725      # The compiler can only warn and ignore the option if not recognized
14726      # So say no if there are warnings other than the usual output.
14727      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14728      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14729      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14730        lt_cv_prog_compiler_pic_works_CXX=yes
14731      fi
14732    fi
14733    $RM conftest*
14734
14735 fi
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14737 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14738
14739 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14740     case $lt_prog_compiler_pic_CXX in
14741      "" | " "*) ;;
14742      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14743      esac
14744 else
14745     lt_prog_compiler_pic_CXX=
14746      lt_prog_compiler_can_build_shared_CXX=no
14747 fi
14748
14749 fi
14750
14751
14752
14753 #
14754 # Check to make sure the static flag actually works.
14755 #
14756 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14758 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14759 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14760   $as_echo_n "(cached) " >&6
14761 else
14762   lt_cv_prog_compiler_static_works_CXX=no
14763    save_LDFLAGS="$LDFLAGS"
14764    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14765    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14766    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14767      # The linker can only warn and ignore the option if not recognized
14768      # So say no if there are warnings
14769      if test -s conftest.err; then
14770        # Append any errors to the config.log.
14771        cat conftest.err 1>&5
14772        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14773        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14774        if diff conftest.exp conftest.er2 >/dev/null; then
14775          lt_cv_prog_compiler_static_works_CXX=yes
14776        fi
14777      else
14778        lt_cv_prog_compiler_static_works_CXX=yes
14779      fi
14780    fi
14781    $RM -r conftest*
14782    LDFLAGS="$save_LDFLAGS"
14783
14784 fi
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14786 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14787
14788 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14789     :
14790 else
14791     lt_prog_compiler_static_CXX=
14792 fi
14793
14794
14795
14796
14797     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14798 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14799 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14800   $as_echo_n "(cached) " >&6
14801 else
14802   lt_cv_prog_compiler_c_o_CXX=no
14803    $RM -r conftest 2>/dev/null
14804    mkdir conftest
14805    cd conftest
14806    mkdir out
14807    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14808
14809    lt_compiler_flag="-o out/conftest2.$ac_objext"
14810    # Insert the option either (1) after the last *FLAGS variable, or
14811    # (2) before a word containing "conftest.", or (3) at the end.
14812    # Note that $ac_compile itself does not contain backslashes and begins
14813    # with a dollar sign (not a hyphen), so the echo should work correctly.
14814    lt_compile=`echo "$ac_compile" | $SED \
14815    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14816    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14817    -e 's:$: $lt_compiler_flag:'`
14818    (eval echo "\"\$as_me:14818: $lt_compile\"" >&5)
14819    (eval "$lt_compile" 2>out/conftest.err)
14820    ac_status=$?
14821    cat out/conftest.err >&5
14822    echo "$as_me:14822: \$? = $ac_status" >&5
14823    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14824    then
14825      # The compiler can only warn and ignore the option if not recognized
14826      # So say no if there are warnings
14827      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14828      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14829      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14830        lt_cv_prog_compiler_c_o_CXX=yes
14831      fi
14832    fi
14833    chmod u+w . 2>&5
14834    $RM conftest*
14835    # SGI C++ compiler will create directory out/ii_files/ for
14836    # template instantiation
14837    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14838    $RM out/* && rmdir out
14839    cd ..
14840    $RM -r conftest
14841    $RM conftest*
14842
14843 fi
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14845 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14846
14847
14848
14849     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14850 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14851 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14852   $as_echo_n "(cached) " >&6
14853 else
14854   lt_cv_prog_compiler_c_o_CXX=no
14855    $RM -r conftest 2>/dev/null
14856    mkdir conftest
14857    cd conftest
14858    mkdir out
14859    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14860
14861    lt_compiler_flag="-o out/conftest2.$ac_objext"
14862    # Insert the option either (1) after the last *FLAGS variable, or
14863    # (2) before a word containing "conftest.", or (3) at the end.
14864    # Note that $ac_compile itself does not contain backslashes and begins
14865    # with a dollar sign (not a hyphen), so the echo should work correctly.
14866    lt_compile=`echo "$ac_compile" | $SED \
14867    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14868    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14869    -e 's:$: $lt_compiler_flag:'`
14870    (eval echo "\"\$as_me:14870: $lt_compile\"" >&5)
14871    (eval "$lt_compile" 2>out/conftest.err)
14872    ac_status=$?
14873    cat out/conftest.err >&5
14874    echo "$as_me:14874: \$? = $ac_status" >&5
14875    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14876    then
14877      # The compiler can only warn and ignore the option if not recognized
14878      # So say no if there are warnings
14879      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14880      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14881      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14882        lt_cv_prog_compiler_c_o_CXX=yes
14883      fi
14884    fi
14885    chmod u+w . 2>&5
14886    $RM conftest*
14887    # SGI C++ compiler will create directory out/ii_files/ for
14888    # template instantiation
14889    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14890    $RM out/* && rmdir out
14891    cd ..
14892    $RM -r conftest
14893    $RM conftest*
14894
14895 fi
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14897 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14898
14899
14900
14901
14902 hard_links="nottested"
14903 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14904   # do not overwrite the value of need_locks provided by the user
14905   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14906 $as_echo_n "checking if we can lock with hard links... " >&6; }
14907   hard_links=yes
14908   $RM conftest*
14909   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14910   touch conftest.a
14911   ln conftest.a conftest.b 2>&5 || hard_links=no
14912   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14914 $as_echo "$hard_links" >&6; }
14915   if test "$hard_links" = no; then
14916     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14917 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14918     need_locks=warn
14919   fi
14920 else
14921   need_locks=no
14922 fi
14923
14924
14925
14926     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14927 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14928
14929   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14930   case $host_os in
14931   aix[4-9]*)
14932     # If we're using GNU nm, then we don't want the "-C" option.
14933     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14934     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14935       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14936     else
14937       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14938     fi
14939     ;;
14940   pw32*)
14941     export_symbols_cmds_CXX="$ltdll_cmds"
14942   ;;
14943   cygwin* | mingw* | cegcc*)
14944     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14945   ;;
14946   linux* | k*bsd*-gnu)
14947     link_all_deplibs_CXX=no
14948   ;;
14949   *)
14950     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14951   ;;
14952   esac
14953   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14954
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14956 $as_echo "$ld_shlibs_CXX" >&6; }
14957 test "$ld_shlibs_CXX" = no && can_build_shared=no
14958
14959 with_gnu_ld_CXX=$with_gnu_ld
14960
14961
14962
14963
14964
14965
14966 #
14967 # Do we need to explicitly link libc?
14968 #
14969 case "x$archive_cmds_need_lc_CXX" in
14970 x|xyes)
14971   # Assume -lc should be added
14972   archive_cmds_need_lc_CXX=yes
14973
14974   if test "$enable_shared" = yes && test "$GCC" = yes; then
14975     case $archive_cmds_CXX in
14976     *'~'*)
14977       # FIXME: we may have to deal with multi-command sequences.
14978       ;;
14979     '$CC '*)
14980       # Test whether the compiler implicitly links with -lc since on some
14981       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14982       # to ld, don't add -lc before -lgcc.
14983       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14984 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14985       $RM conftest*
14986       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14987
14988       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14989   (eval $ac_compile) 2>&5
14990   ac_status=$?
14991   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14992   test $ac_status = 0; } 2>conftest.err; then
14993         soname=conftest
14994         lib=conftest
14995         libobjs=conftest.$ac_objext
14996         deplibs=
14997         wl=$lt_prog_compiler_wl_CXX
14998         pic_flag=$lt_prog_compiler_pic_CXX
14999         compiler_flags=-v
15000         linker_flags=-v
15001         verstring=
15002         output_objdir=.
15003         libname=conftest
15004         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15005         allow_undefined_flag_CXX=
15006         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15007   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15008   ac_status=$?
15009   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15010   test $ac_status = 0; }
15011         then
15012           archive_cmds_need_lc_CXX=no
15013         else
15014           archive_cmds_need_lc_CXX=yes
15015         fi
15016         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15017       else
15018         cat conftest.err 1>&5
15019       fi
15020       $RM conftest*
15021       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
15022 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
15023       ;;
15024     esac
15025   fi
15026   ;;
15027 esac
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15093 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15094
15095 library_names_spec=
15096 libname_spec='lib$name'
15097 soname_spec=
15098 shrext_cmds=".so"
15099 postinstall_cmds=
15100 postuninstall_cmds=
15101 finish_cmds=
15102 finish_eval=
15103 shlibpath_var=
15104 shlibpath_overrides_runpath=unknown
15105 version_type=none
15106 dynamic_linker="$host_os ld.so"
15107 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15108 need_lib_prefix=unknown
15109 hardcode_into_libs=no
15110
15111 # when you set need_version to no, make sure it does not cause -set_version
15112 # flags to be left without arguments
15113 need_version=unknown
15114
15115 case $host_os in
15116 aix3*)
15117   version_type=linux
15118   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15119   shlibpath_var=LIBPATH
15120
15121   # AIX 3 has no versioning support, so we append a major version to the name.
15122   soname_spec='${libname}${release}${shared_ext}$major'
15123   ;;
15124
15125 aix[4-9]*)
15126   version_type=linux
15127   need_lib_prefix=no
15128   need_version=no
15129   hardcode_into_libs=yes
15130   if test "$host_cpu" = ia64; then
15131     # AIX 5 supports IA64
15132     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15133     shlibpath_var=LD_LIBRARY_PATH
15134   else
15135     # With GCC up to 2.95.x, collect2 would create an import file
15136     # for dependence libraries.  The import file would start with
15137     # the line `#! .'.  This would cause the generated library to
15138     # depend on `.', always an invalid library.  This was fixed in
15139     # development snapshots of GCC prior to 3.0.
15140     case $host_os in
15141       aix4 | aix4.[01] | aix4.[01].*)
15142       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15143            echo ' yes '
15144            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15145         :
15146       else
15147         can_build_shared=no
15148       fi
15149       ;;
15150     esac
15151     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15152     # soname into executable. Probably we can add versioning support to
15153     # collect2, so additional links can be useful in future.
15154     if test "$aix_use_runtimelinking" = yes; then
15155       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15156       # instead of lib<name>.a to let people know that these are not
15157       # typical AIX shared libraries.
15158       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15159     else
15160       # We preserve .a as extension for shared libraries through AIX4.2
15161       # and later when we are not doing run time linking.
15162       library_names_spec='${libname}${release}.a $libname.a'
15163       soname_spec='${libname}${release}${shared_ext}$major'
15164     fi
15165     shlibpath_var=LIBPATH
15166   fi
15167   ;;
15168
15169 amigaos*)
15170   case $host_cpu in
15171   powerpc)
15172     # Since July 2007 AmigaOS4 officially supports .so libraries.
15173     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15174     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15175     ;;
15176   m68k)
15177     library_names_spec='$libname.ixlibrary $libname.a'
15178     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15179     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15180     ;;
15181   esac
15182   ;;
15183
15184 beos*)
15185   library_names_spec='${libname}${shared_ext}'
15186   dynamic_linker="$host_os ld.so"
15187   shlibpath_var=LIBRARY_PATH
15188   ;;
15189
15190 bsdi[45]*)
15191   version_type=linux
15192   need_version=no
15193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15194   soname_spec='${libname}${release}${shared_ext}$major'
15195   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15196   shlibpath_var=LD_LIBRARY_PATH
15197   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15198   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15199   # the default ld.so.conf also contains /usr/contrib/lib and
15200   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15201   # libtool to hard-code these into programs
15202   ;;
15203
15204 cygwin* | mingw* | pw32* | cegcc*)
15205   version_type=windows
15206   shrext_cmds=".dll"
15207   need_version=no
15208   need_lib_prefix=no
15209
15210   case $GCC,$host_os in
15211   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15212     library_names_spec='$libname.dll.a'
15213     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15214     postinstall_cmds='base_file=`basename \${file}`~
15215       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15216       dldir=$destdir/`dirname \$dlpath`~
15217       test -d \$dldir || mkdir -p \$dldir~
15218       $install_prog $dir/$dlname \$dldir/$dlname~
15219       chmod a+x \$dldir/$dlname~
15220       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15221         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15222       fi'
15223     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15224       dlpath=$dir/\$dldll~
15225        $RM \$dlpath'
15226     shlibpath_overrides_runpath=yes
15227
15228     case $host_os in
15229     cygwin*)
15230       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15231       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15232       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15233       ;;
15234     mingw* | cegcc*)
15235       # MinGW DLLs use traditional 'lib' prefix
15236       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15237       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15238       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15239         # It is most probably a Windows format PATH printed by
15240         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15241         # path with ; separators, and with drive letters. We can handle the
15242         # drive letters (cygwin fileutils understands them), so leave them,
15243         # especially as we might pass files found there to a mingw objdump,
15244         # which wouldn't understand a cygwinified path. Ahh.
15245         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15246       else
15247         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15248       fi
15249       ;;
15250     pw32*)
15251       # pw32 DLLs use 'pw' prefix rather than 'lib'
15252       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15253       ;;
15254     esac
15255     ;;
15256
15257   *)
15258     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15259     ;;
15260   esac
15261   dynamic_linker='Win32 ld.exe'
15262   # FIXME: first we should search . and the directory the executable is in
15263   shlibpath_var=PATH
15264   ;;
15265
15266 darwin* | rhapsody*)
15267   dynamic_linker="$host_os dyld"
15268   version_type=darwin
15269   need_lib_prefix=no
15270   need_version=no
15271   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15272   soname_spec='${libname}${release}${major}$shared_ext'
15273   shlibpath_overrides_runpath=yes
15274   shlibpath_var=DYLD_LIBRARY_PATH
15275   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15276
15277   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15278   ;;
15279
15280 dgux*)
15281   version_type=linux
15282   need_lib_prefix=no
15283   need_version=no
15284   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15285   soname_spec='${libname}${release}${shared_ext}$major'
15286   shlibpath_var=LD_LIBRARY_PATH
15287   ;;
15288
15289 freebsd1*)
15290   dynamic_linker=no
15291   ;;
15292
15293 freebsd* | dragonfly*)
15294   # DragonFly does not have aout.  When/if they implement a new
15295   # versioning mechanism, adjust this.
15296   if test -x /usr/bin/objformat; then
15297     objformat=`/usr/bin/objformat`
15298   else
15299     case $host_os in
15300     freebsd[123]*) objformat=aout ;;
15301     *) objformat=elf ;;
15302     esac
15303   fi
15304   version_type=freebsd-$objformat
15305   case $version_type in
15306     freebsd-elf*)
15307       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15308       need_version=no
15309       need_lib_prefix=no
15310       ;;
15311     freebsd-*)
15312       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15313       need_version=yes
15314       ;;
15315   esac
15316   shlibpath_var=LD_LIBRARY_PATH
15317   case $host_os in
15318   freebsd2*)
15319     shlibpath_overrides_runpath=yes
15320     ;;
15321   freebsd3.[01]* | freebsdelf3.[01]*)
15322     shlibpath_overrides_runpath=yes
15323     hardcode_into_libs=yes
15324     ;;
15325   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15326   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15327     shlibpath_overrides_runpath=no
15328     hardcode_into_libs=yes
15329     ;;
15330   *) # from 4.6 on, and DragonFly
15331     shlibpath_overrides_runpath=yes
15332     hardcode_into_libs=yes
15333     ;;
15334   esac
15335   ;;
15336
15337 gnu*)
15338   version_type=linux
15339   need_lib_prefix=no
15340   need_version=no
15341   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15342   soname_spec='${libname}${release}${shared_ext}$major'
15343   shlibpath_var=LD_LIBRARY_PATH
15344   hardcode_into_libs=yes
15345   ;;
15346
15347 hpux9* | hpux10* | hpux11*)
15348   # Give a soname corresponding to the major version so that dld.sl refuses to
15349   # link against other versions.
15350   version_type=sunos
15351   need_lib_prefix=no
15352   need_version=no
15353   case $host_cpu in
15354   ia64*)
15355     shrext_cmds='.so'
15356     hardcode_into_libs=yes
15357     dynamic_linker="$host_os dld.so"
15358     shlibpath_var=LD_LIBRARY_PATH
15359     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15360     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15361     soname_spec='${libname}${release}${shared_ext}$major'
15362     if test "X$HPUX_IA64_MODE" = X32; then
15363       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15364     else
15365       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15366     fi
15367     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15368     ;;
15369   hppa*64*)
15370     shrext_cmds='.sl'
15371     hardcode_into_libs=yes
15372     dynamic_linker="$host_os dld.sl"
15373     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15374     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15375     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15376     soname_spec='${libname}${release}${shared_ext}$major'
15377     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15378     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15379     ;;
15380   *)
15381     shrext_cmds='.sl'
15382     dynamic_linker="$host_os dld.sl"
15383     shlibpath_var=SHLIB_PATH
15384     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15385     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15386     soname_spec='${libname}${release}${shared_ext}$major'
15387     ;;
15388   esac
15389   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15390   postinstall_cmds='chmod 555 $lib'
15391   ;;
15392
15393 interix[3-9]*)
15394   version_type=linux
15395   need_lib_prefix=no
15396   need_version=no
15397   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15398   soname_spec='${libname}${release}${shared_ext}$major'
15399   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15400   shlibpath_var=LD_LIBRARY_PATH
15401   shlibpath_overrides_runpath=no
15402   hardcode_into_libs=yes
15403   ;;
15404
15405 irix5* | irix6* | nonstopux*)
15406   case $host_os in
15407     nonstopux*) version_type=nonstopux ;;
15408     *)
15409         if test "$lt_cv_prog_gnu_ld" = yes; then
15410                 version_type=linux
15411         else
15412                 version_type=irix
15413         fi ;;
15414   esac
15415   need_lib_prefix=no
15416   need_version=no
15417   soname_spec='${libname}${release}${shared_ext}$major'
15418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15419   case $host_os in
15420   irix5* | nonstopux*)
15421     libsuff= shlibsuff=
15422     ;;
15423   *)
15424     case $LD in # libtool.m4 will add one of these switches to LD
15425     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15426       libsuff= shlibsuff= libmagic=32-bit;;
15427     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15428       libsuff=32 shlibsuff=N32 libmagic=N32;;
15429     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15430       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15431     *) libsuff= shlibsuff= libmagic=never-match;;
15432     esac
15433     ;;
15434   esac
15435   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15436   shlibpath_overrides_runpath=no
15437   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15438   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15439   hardcode_into_libs=yes
15440   ;;
15441
15442 # No shared lib support for Linux oldld, aout, or coff.
15443 linux*oldld* | linux*aout* | linux*coff*)
15444   dynamic_linker=no
15445   ;;
15446
15447 # This must be Linux ELF.
15448 linux* | k*bsd*-gnu)
15449   version_type=linux
15450   need_lib_prefix=no
15451   need_version=no
15452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15453   soname_spec='${libname}${release}${shared_ext}$major'
15454   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15455   shlibpath_var=LD_LIBRARY_PATH
15456   shlibpath_overrides_runpath=no
15457   # Some binutils ld are patched to set DT_RUNPATH
15458   save_LDFLAGS=$LDFLAGS
15459   save_libdir=$libdir
15460   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15461        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15462   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15463 /* end confdefs.h.  */
15464
15465 int
15466 main ()
15467 {
15468
15469   ;
15470   return 0;
15471 }
15472 _ACEOF
15473 if ac_fn_cxx_try_link "$LINENO"; then :
15474   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15475   shlibpath_overrides_runpath=yes
15476 fi
15477 fi
15478 rm -f core conftest.err conftest.$ac_objext \
15479     conftest$ac_exeext conftest.$ac_ext
15480   LDFLAGS=$save_LDFLAGS
15481   libdir=$save_libdir
15482
15483   # This implies no fast_install, which is unacceptable.
15484   # Some rework will be needed to allow for fast_install
15485   # before this can be enabled.
15486   hardcode_into_libs=yes
15487
15488   # Append ld.so.conf contents to the search path
15489   if test -f /etc/ld.so.conf; then
15490     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15491     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15492   fi
15493
15494   # We used to test for /lib/ld.so.1 and disable shared libraries on
15495   # powerpc, because MkLinux only supported shared libraries with the
15496   # GNU dynamic linker.  Since this was broken with cross compilers,
15497   # most powerpc-linux boxes support dynamic linking these days and
15498   # people can always --disable-shared, the test was removed, and we
15499   # assume the GNU/Linux dynamic linker is in use.
15500   dynamic_linker='GNU/Linux ld.so'
15501   ;;
15502
15503 netbsdelf*-gnu)
15504   version_type=linux
15505   need_lib_prefix=no
15506   need_version=no
15507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15508   soname_spec='${libname}${release}${shared_ext}$major'
15509   shlibpath_var=LD_LIBRARY_PATH
15510   shlibpath_overrides_runpath=no
15511   hardcode_into_libs=yes
15512   dynamic_linker='NetBSD ld.elf_so'
15513   ;;
15514
15515 netbsd*)
15516   version_type=sunos
15517   need_lib_prefix=no
15518   need_version=no
15519   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15520     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15521     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15522     dynamic_linker='NetBSD (a.out) ld.so'
15523   else
15524     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15525     soname_spec='${libname}${release}${shared_ext}$major'
15526     dynamic_linker='NetBSD ld.elf_so'
15527   fi
15528   shlibpath_var=LD_LIBRARY_PATH
15529   shlibpath_overrides_runpath=yes
15530   hardcode_into_libs=yes
15531   ;;
15532
15533 newsos6)
15534   version_type=linux
15535   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15536   shlibpath_var=LD_LIBRARY_PATH
15537   shlibpath_overrides_runpath=yes
15538   ;;
15539
15540 *nto* | *qnx*)
15541   version_type=qnx
15542   need_lib_prefix=no
15543   need_version=no
15544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15545   soname_spec='${libname}${release}${shared_ext}$major'
15546   shlibpath_var=LD_LIBRARY_PATH
15547   shlibpath_overrides_runpath=no
15548   hardcode_into_libs=yes
15549   dynamic_linker='ldqnx.so'
15550   ;;
15551
15552 openbsd*)
15553   version_type=sunos
15554   sys_lib_dlsearch_path_spec="/usr/lib"
15555   need_lib_prefix=no
15556   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15557   case $host_os in
15558     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15559     *)                          need_version=no  ;;
15560   esac
15561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15562   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15563   shlibpath_var=LD_LIBRARY_PATH
15564   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15565     case $host_os in
15566       openbsd2.[89] | openbsd2.[89].*)
15567         shlibpath_overrides_runpath=no
15568         ;;
15569       *)
15570         shlibpath_overrides_runpath=yes
15571         ;;
15572       esac
15573   else
15574     shlibpath_overrides_runpath=yes
15575   fi
15576   ;;
15577
15578 os2*)
15579   libname_spec='$name'
15580   shrext_cmds=".dll"
15581   need_lib_prefix=no
15582   library_names_spec='$libname${shared_ext} $libname.a'
15583   dynamic_linker='OS/2 ld.exe'
15584   shlibpath_var=LIBPATH
15585   ;;
15586
15587 osf3* | osf4* | osf5*)
15588   version_type=osf
15589   need_lib_prefix=no
15590   need_version=no
15591   soname_spec='${libname}${release}${shared_ext}$major'
15592   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15593   shlibpath_var=LD_LIBRARY_PATH
15594   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15595   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15596   ;;
15597
15598 rdos*)
15599   dynamic_linker=no
15600   ;;
15601
15602 solaris*)
15603   version_type=linux
15604   need_lib_prefix=no
15605   need_version=no
15606   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15607   soname_spec='${libname}${release}${shared_ext}$major'
15608   shlibpath_var=LD_LIBRARY_PATH
15609   shlibpath_overrides_runpath=yes
15610   hardcode_into_libs=yes
15611   # ldd complains unless libraries are executable
15612   postinstall_cmds='chmod +x $lib'
15613   ;;
15614
15615 sunos4*)
15616   version_type=sunos
15617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15618   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15619   shlibpath_var=LD_LIBRARY_PATH
15620   shlibpath_overrides_runpath=yes
15621   if test "$with_gnu_ld" = yes; then
15622     need_lib_prefix=no
15623   fi
15624   need_version=yes
15625   ;;
15626
15627 sysv4 | sysv4.3*)
15628   version_type=linux
15629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15630   soname_spec='${libname}${release}${shared_ext}$major'
15631   shlibpath_var=LD_LIBRARY_PATH
15632   case $host_vendor in
15633     sni)
15634       shlibpath_overrides_runpath=no
15635       need_lib_prefix=no
15636       runpath_var=LD_RUN_PATH
15637       ;;
15638     siemens)
15639       need_lib_prefix=no
15640       ;;
15641     motorola)
15642       need_lib_prefix=no
15643       need_version=no
15644       shlibpath_overrides_runpath=no
15645       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15646       ;;
15647   esac
15648   ;;
15649
15650 sysv4*MP*)
15651   if test -d /usr/nec ;then
15652     version_type=linux
15653     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15654     soname_spec='$libname${shared_ext}.$major'
15655     shlibpath_var=LD_LIBRARY_PATH
15656   fi
15657   ;;
15658
15659 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15660   version_type=freebsd-elf
15661   need_lib_prefix=no
15662   need_version=no
15663   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15664   soname_spec='${libname}${release}${shared_ext}$major'
15665   shlibpath_var=LD_LIBRARY_PATH
15666   shlibpath_overrides_runpath=yes
15667   hardcode_into_libs=yes
15668   if test "$with_gnu_ld" = yes; then
15669     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15670   else
15671     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15672     case $host_os in
15673       sco3.2v5*)
15674         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15675         ;;
15676     esac
15677   fi
15678   sys_lib_dlsearch_path_spec='/usr/lib'
15679   ;;
15680
15681 tpf*)
15682   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15683   version_type=linux
15684   need_lib_prefix=no
15685   need_version=no
15686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15687   shlibpath_var=LD_LIBRARY_PATH
15688   shlibpath_overrides_runpath=no
15689   hardcode_into_libs=yes
15690   ;;
15691
15692 uts4*)
15693   version_type=linux
15694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15695   soname_spec='${libname}${release}${shared_ext}$major'
15696   shlibpath_var=LD_LIBRARY_PATH
15697   ;;
15698
15699 *)
15700   dynamic_linker=no
15701   ;;
15702 esac
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15704 $as_echo "$dynamic_linker" >&6; }
15705 test "$dynamic_linker" = no && can_build_shared=no
15706
15707 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15708 if test "$GCC" = yes; then
15709   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15710 fi
15711
15712 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15713   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15714 fi
15715 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15716   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15717 fi
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15755 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15756 hardcode_action_CXX=
15757 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15758    test -n "$runpath_var_CXX" ||
15759    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15760
15761   # We can hardcode non-existent directories.
15762   if test "$hardcode_direct_CXX" != no &&
15763      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15764      # have to relink, otherwise we might link with an installed library
15765      # when we should be linking with a yet-to-be-installed one
15766      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15767      test "$hardcode_minus_L_CXX" != no; then
15768     # Linking always hardcodes the temporary library directory.
15769     hardcode_action_CXX=relink
15770   else
15771     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15772     hardcode_action_CXX=immediate
15773   fi
15774 else
15775   # We cannot hardcode anything, or else we can only hardcode existing
15776   # directories.
15777   hardcode_action_CXX=unsupported
15778 fi
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15780 $as_echo "$hardcode_action_CXX" >&6; }
15781
15782 if test "$hardcode_action_CXX" = relink ||
15783    test "$inherit_rpath_CXX" = yes; then
15784   # Fast installation is not supported
15785   enable_fast_install=no
15786 elif test "$shlibpath_overrides_runpath" = yes ||
15787      test "$enable_shared" = no; then
15788   # Fast installation is not necessary
15789   enable_fast_install=needless
15790 fi
15791
15792
15793
15794
15795
15796
15797
15798   fi # test -n "$compiler"
15799
15800   CC=$lt_save_CC
15801   LDCXX=$LD
15802   LD=$lt_save_LD
15803   GCC=$lt_save_GCC
15804   with_gnu_ld=$lt_save_with_gnu_ld
15805   lt_cv_path_LDCXX=$lt_cv_path_LD
15806   lt_cv_path_LD=$lt_save_path_LD
15807   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15808   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15809 fi # test "$_lt_caught_CXX_error" != yes
15810
15811 ac_ext=c
15812 ac_cpp='$CPP $CPPFLAGS'
15813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829         ac_config_commands="$ac_config_commands libtool"
15830
15831
15832
15833
15834 # Only expand once:
15835
15836
15837
15838 SDL_VERSION=1.2.0
15839
15840 ac_save_ldflags=$LDFLAGS
15841
15842 # Check whether --with-sdl-prefix was given.
15843 if test "${with_sdl_prefix+set}" = set; then :
15844   withval=$with_sdl_prefix; sdl_prefix="$withval"
15845 else
15846   sdl_prefix=""
15847 fi
15848
15849
15850 # Check whether --with-sdl-exec-prefix was given.
15851 if test "${with_sdl_exec_prefix+set}" = set; then :
15852   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
15853 else
15854   sdl_exec_prefix=""
15855 fi
15856
15857 # Check whether --enable-sdltest was given.
15858 if test "${enable_sdltest+set}" = set; then :
15859   enableval=$enable_sdltest;
15860 else
15861   enable_sdltest=yes
15862 fi
15863
15864
15865   if test x$sdl_exec_prefix != x ; then
15866     sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
15867     if test x${SDL_CONFIG+set} != xset ; then
15868       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
15869     fi
15870   fi
15871   if test x$sdl_prefix != x ; then
15872     sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
15873     if test x${SDL_CONFIG+set} != xset ; then
15874       SDL_CONFIG=$sdl_prefix/bin/sdl-config
15875     fi
15876   fi
15877
15878   if test "x$prefix" != xNONE; then
15879     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
15880   fi
15881   # Extract the first word of "sdl-config", so it can be a program name with args.
15882 set dummy sdl-config; ac_word=$2
15883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15884 $as_echo_n "checking for $ac_word... " >&6; }
15885 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then :
15886   $as_echo_n "(cached) " >&6
15887 else
15888   case $SDL_CONFIG in
15889   [\\/]* | ?:[\\/]*)
15890   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
15891   ;;
15892   *)
15893   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15894 for as_dir in $PATH
15895 do
15896   IFS=$as_save_IFS
15897   test -z "$as_dir" && as_dir=.
15898     for ac_exec_ext in '' $ac_executable_extensions; do
15899   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15900     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15902     break 2
15903   fi
15904 done
15905   done
15906 IFS=$as_save_IFS
15907
15908   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
15909   ;;
15910 esac
15911 fi
15912 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
15913 if test -n "$SDL_CONFIG"; then
15914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
15915 $as_echo "$SDL_CONFIG" >&6; }
15916 else
15917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15918 $as_echo "no" >&6; }
15919 fi
15920
15921
15922   min_sdl_version=$SDL_VERSION
15923   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
15924 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
15925   no_sdl=""
15926   if test "$SDL_CONFIG" = "no" ; then
15927     no_sdl=yes
15928   else
15929     SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
15930     SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
15931
15932     sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
15933            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
15934     sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
15935            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
15936     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
15937            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
15938     if test "x$enable_sdltest" = "xyes" ; then
15939       ac_save_CFLAGS="$CFLAGS"
15940       ac_save_CXXFLAGS="$CXXFLAGS"
15941       ac_save_LIBS="$LIBS"
15942       CFLAGS="$CFLAGS $SDL_CFLAGS"
15943       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
15944       LIBS="$LIBS $SDL_LIBS"
15945       rm -f conf.sdltest
15946       if test "$cross_compiling" = yes; then :
15947   echo $ac_n "cross compiling; assumed OK... $ac_c"
15948 else
15949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15950 /* end confdefs.h.  */
15951
15952 #include <stdio.h>
15953 #include <stdlib.h>
15954 #include <string.h>
15955 #include "SDL.h"
15956
15957 char*
15958 my_strdup (char *str)
15959 {
15960   char *new_str;
15961
15962   if (str)
15963     {
15964       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
15965       strcpy (new_str, str);
15966     }
15967   else
15968     new_str = NULL;
15969
15970   return new_str;
15971 }
15972
15973 int main (int argc, char *argv[])
15974 {
15975   int major, minor, micro;
15976   char *tmp_version;
15977
15978   /* This hangs on some systems (?)
15979   system ("touch conf.sdltest");
15980   */
15981   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
15982
15983   /* HP/UX 9 (%@#!) writes to sscanf strings */
15984   tmp_version = my_strdup("$min_sdl_version");
15985   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
15986      printf("%s, bad version string\n", "$min_sdl_version");
15987      exit(1);
15988    }
15989
15990    if (($sdl_major_version > major) ||
15991       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
15992       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
15993     {
15994       return 0;
15995     }
15996   else
15997     {
15998       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
15999       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
16000       printf("*** best to upgrade to the required version.\n");
16001       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
16002       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
16003       printf("*** config.cache before re-running configure\n");
16004       return 1;
16005     }
16006 }
16007
16008
16009 _ACEOF
16010 if ac_fn_c_try_run "$LINENO"; then :
16011
16012 else
16013   no_sdl=yes
16014 fi
16015 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16016   conftest.$ac_objext conftest.beam conftest.$ac_ext
16017 fi
16018
16019        CFLAGS="$ac_save_CFLAGS"
16020        CXXFLAGS="$ac_save_CXXFLAGS"
16021        LIBS="$ac_save_LIBS"
16022      fi
16023   fi
16024   if test "x$no_sdl" = x ; then
16025      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16026 $as_echo "yes" >&6; }
16027      :
16028   else
16029      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16030 $as_echo "no" >&6; }
16031      if test "$SDL_CONFIG" = "no" ; then
16032        echo "*** The sdl-config script installed by SDL could not be found"
16033        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
16034        echo "*** your path, or set the SDL_CONFIG environment variable to the"
16035        echo "*** full path to sdl-config."
16036      else
16037        if test -f conf.sdltest ; then
16038         :
16039        else
16040           echo "*** Could not run SDL test program, checking why..."
16041           CFLAGS="$CFLAGS $SDL_CFLAGS"
16042           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
16043           LIBS="$LIBS $SDL_LIBS"
16044           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16045 /* end confdefs.h.  */
16046
16047 #include <stdio.h>
16048 #include "SDL.h"
16049
16050 int main(int argc, char *argv[])
16051 { return 0; }
16052 #undef  main
16053 #define main K_and_R_C_main
16054
16055 int
16056 main ()
16057 {
16058  return 0;
16059   ;
16060   return 0;
16061 }
16062 _ACEOF
16063 if ac_fn_c_try_link "$LINENO"; then :
16064    echo "*** The test program compiled, but did not run. This usually means"
16065           echo "*** that the run-time linker is not finding SDL or finding the wrong"
16066           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
16067           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
16068           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
16069           echo "*** is required on your system"
16070           echo "***"
16071           echo "*** If you have an old version installed, it is best to remove it, although"
16072           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
16073 else
16074    echo "*** The test program failed to compile or link. See the file config.log for the"
16075           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
16076           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
16077           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
16078 fi
16079 rm -f core conftest.err conftest.$ac_objext \
16080     conftest$ac_exeext conftest.$ac_ext
16081           CFLAGS="$ac_save_CFLAGS"
16082           CXXFLAGS="$ac_save_CXXFLAGS"
16083           LIBS="$ac_save_LIBS"
16084        fi
16085      fi
16086      SDL_CFLAGS=""
16087      SDL_LIBS=""
16088      as_fn_error "*** SDL version $SDL_VERSION not found!" "$LINENO" 5
16089
16090   fi
16091
16092
16093   rm -f conf.sdltest
16094
16095
16096 LDFLAGS=$ac_save_ldflags
16097
16098
16099 ac_save_cflags=$CFLAGS
16100 ac_save_ldflags=$LDFLAGS
16101 ac_save_libs=$LIBS
16102
16103 use_sound=1
16104 # Check whether --enable-sound was given.
16105 if test "${enable_sound+set}" = set; then :
16106   enableval=$enable_sound; use_sound="$enableval"
16107 else
16108   use_sound="yes"
16109 fi
16110
16111
16112 SDLSOUND_LIBS=
16113 if test $use_sound = yes; then
16114
16115     CFLAGS="$CFLAGS $SDL_CFLAGS"
16116     LDFLAGS="$LDFLAGS -lSDL_mixer"
16117     LIBS="-lSDL_mixer $LIBS"
16118
16119             if test $CC = "gcc" || test $CXX = "g++"; then
16120
16121        if test "$cross_compiling" = yes; then :
16122   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16124 as_fn_error "cannot run test program while cross compiling
16125 See \`config.log' for more details." "$LINENO" 5; }
16126 else
16127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16128 /* end confdefs.h.  */
16129
16130        #include <SDL/SDL_mixer.h>
16131        #include <stdio.h>
16132
16133        int main()
16134        {
16135            if (!Mix_LoadMUS("${srcdir}" "/dat/music/victory.ogg"))
16136                return -1;
16137            return 0;
16138        }
16139
16140 _ACEOF
16141 if ac_fn_c_try_run "$LINENO"; then :
16142
16143 else
16144   as_fn_error "*** SDL_mixer is not installed or has not been compiled
16145                          *** with ogg vorbis support" "$LINENO" 5
16146 fi
16147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16148   conftest.$ac_objext conftest.beam conftest.$ac_ext
16149 fi
16150
16151
16152        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Test SDL_Mixer Run OK." >&5
16153 $as_echo "Test SDL_Mixer Run OK." >&6; }
16154
16155     else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Skipping SDL_Mixer Run. We are cross-compiling for windows!" >&5
16156 $as_echo "$as_me: WARNING: Skipping SDL_Mixer Run. We are cross-compiling for windows!" >&2;}
16157     fi
16158
16159
16160 $as_echo "#define FL_SOUND 1" >>confdefs.h
16161
16162
16163     SDLSOUND_LIBS="-lSDL_mixer"
16164
16165     CFLAGS=$ac_save_CFLAGS
16166     LDFLAGS="$ac_save_LDFLAGS"
16167     LIBS="$ac_save_libs"
16168 fi
16169
16170
16171
16172 expat=0
16173
16174 # Check whether --with-expat was given.
16175 if test "${with_expat+set}" = set; then :
16176   withval=$with_expat;
16177                       expat=$withval
16178                       CPPFLAGS="$CPPFLAGS -I$withval/include"
16179                       LDFLAGS="$LDFLAGS -L$withval/lib"
16180                       LIBS="$LIBS -lexpat"
16181
16182
16183 fi
16184
16185 #echo "EXPAT=$expat"
16186 if test $expat = 0 ; then
16187    for ac_header in expat.h
16188 do :
16189   ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
16190 if test "x$ac_cv_header_expat_h" = x""yes; then :
16191   cat >>confdefs.h <<_ACEOF
16192 #define HAVE_EXPAT_H 1
16193 _ACEOF
16194
16195 else
16196   as_fn_error "*** Expat not found!" "$LINENO" 5
16197 fi
16198
16199 done
16200
16201    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
16202 $as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
16203 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then :
16204   $as_echo_n "(cached) " >&6
16205 else
16206   ac_check_lib_save_LIBS=$LIBS
16207 LIBS="-lexpat  $LIBS"
16208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16209 /* end confdefs.h.  */
16210
16211 /* Override any GCC internal prototype to avoid an error.
16212    Use char because int might match the return type of a GCC
16213    builtin and then its argument prototype would still apply.  */
16214 #ifdef __cplusplus
16215 extern "C"
16216 #endif
16217 char XML_ParserCreate ();
16218 int
16219 main ()
16220 {
16221 return XML_ParserCreate ();
16222   ;
16223   return 0;
16224 }
16225 _ACEOF
16226 if ac_fn_c_try_link "$LINENO"; then :
16227   ac_cv_lib_expat_XML_ParserCreate=yes
16228 else
16229   ac_cv_lib_expat_XML_ParserCreate=no
16230 fi
16231 rm -f core conftest.err conftest.$ac_objext \
16232     conftest$ac_exeext conftest.$ac_ext
16233 LIBS=$ac_check_lib_save_LIBS
16234 fi
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
16236 $as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
16237 if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then :
16238   cat >>confdefs.h <<_ACEOF
16239 #define HAVE_LIBEXPAT 1
16240 _ACEOF
16241
16242   LIBS="-lexpat $LIBS"
16243
16244 else
16245   as_fn_error "*** Expat not found!" "$LINENO" 5
16246 fi
16247
16248 fi
16249
16250 libtar=0
16251
16252 # Check whether --with-libtar was given.
16253 if test "${with_libtar+set}" = set; then :
16254   withval=$with_libtar;
16255                       libtar=$withval
16256                       CPPFLAGS="$CPPFLAGS -I$withval/include"
16257                       LDFLAGS="$LDFLAGS -L$withval/lib"
16258                       LIBS="$LIBS -ltar"
16259
16260
16261 fi
16262
16263 if test $libtar = 0 ; then
16264    for ac_header in libtar.h
16265 do :
16266   ac_fn_c_check_header_mongrel "$LINENO" "libtar.h" "ac_cv_header_libtar_h" "$ac_includes_default"
16267 if test "x$ac_cv_header_libtar_h" = x""yes; then :
16268   cat >>confdefs.h <<_ACEOF
16269 #define HAVE_LIBTAR_H 1
16270 _ACEOF
16271
16272 else
16273   as_fn_error "*** Libtar not found!" "$LINENO" 5
16274 fi
16275
16276 done
16277
16278    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar_open in -ltar" >&5
16279 $as_echo_n "checking for tar_open in -ltar... " >&6; }
16280 if test "${ac_cv_lib_tar_tar_open+set}" = set; then :
16281   $as_echo_n "(cached) " >&6
16282 else
16283   ac_check_lib_save_LIBS=$LIBS
16284 LIBS="-ltar  $LIBS"
16285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16286 /* end confdefs.h.  */
16287
16288 /* Override any GCC internal prototype to avoid an error.
16289    Use char because int might match the return type of a GCC
16290    builtin and then its argument prototype would still apply.  */
16291 #ifdef __cplusplus
16292 extern "C"
16293 #endif
16294 char tar_open ();
16295 int
16296 main ()
16297 {
16298 return tar_open ();
16299   ;
16300   return 0;
16301 }
16302 _ACEOF
16303 if ac_fn_c_try_link "$LINENO"; then :
16304   ac_cv_lib_tar_tar_open=yes
16305 else
16306   ac_cv_lib_tar_tar_open=no
16307 fi
16308 rm -f core conftest.err conftest.$ac_objext \
16309     conftest$ac_exeext conftest.$ac_ext
16310 LIBS=$ac_check_lib_save_LIBS
16311 fi
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tar_tar_open" >&5
16313 $as_echo "$ac_cv_lib_tar_tar_open" >&6; }
16314 if test "x$ac_cv_lib_tar_tar_open" = x""yes; then :
16315   cat >>confdefs.h <<_ACEOF
16316 #define HAVE_LIBTAR 1
16317 _ACEOF
16318
16319   LIBS="-ltar $LIBS"
16320
16321 else
16322   as_fn_error "*** Libtar not found!" "$LINENO" 5
16323 fi
16324
16325 fi
16326
16327 # Check whether --enable-winlibs was given.
16328 if test "${enable_winlibs+set}" = set; then :
16329   enableval=$enable_winlibs; LIBS="-lmingw32 -lws2_32 -lintl -lz -lpthreadGC2 -lpthreadGCE2 $LIBS"
16330               flrc=true;
16331
16332 else
16333   flrc=false
16334
16335 fi
16336
16337
16338  if test x$flrc = xtrue; then
16339   FL_RESRC_TRUE=
16340   FL_RESRC_FALSE='#'
16341 else
16342   FL_RESRC_TRUE='#'
16343   FL_RESRC_FALSE=
16344 fi
16345
16346
16347 #winnls=no
16348 #AC_ARG_ENABLE(winnls,
16349 #              [  --enable-winnls         enable windows cross-compiling nls],
16350 #              USE_NLS=yes
16351 #              winnls=yes
16352 #              AC_SUBST(USE_NLS)
16353 #             )
16354
16355 #if test $winnls = no ; then
16356
16357
16358
16359       GETTEXT_MACRO_VERSION=0.17
16360
16361
16362
16363
16364 # Prepare PATH_SEPARATOR.
16365 # The user is always right.
16366 if test "${PATH_SEPARATOR+set}" != set; then
16367   echo "#! /bin/sh" >conf$$.sh
16368   echo  "exit 0"   >>conf$$.sh
16369   chmod +x conf$$.sh
16370   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16371     PATH_SEPARATOR=';'
16372   else
16373     PATH_SEPARATOR=:
16374   fi
16375   rm -f conf$$.sh
16376 fi
16377
16378 # Find out how to test for executable files. Don't use a zero-byte file,
16379 # as systems may use methods other than mode bits to determine executability.
16380 cat >conf$$.file <<_ASEOF
16381 #! /bin/sh
16382 exit 0
16383 _ASEOF
16384 chmod +x conf$$.file
16385 if test -x conf$$.file >/dev/null 2>&1; then
16386   ac_executable_p="test -x"
16387 else
16388   ac_executable_p="test -f"
16389 fi
16390 rm -f conf$$.file
16391
16392 # Extract the first word of "msgfmt", so it can be a program name with args.
16393 set dummy msgfmt; ac_word=$2
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16395 $as_echo_n "checking for $ac_word... " >&6; }
16396 if test "${ac_cv_path_MSGFMT+set}" = set; then :
16397   $as_echo_n "(cached) " >&6
16398 else
16399   case "$MSGFMT" in
16400   [\\/]* | ?:[\\/]*)
16401     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16402     ;;
16403   *)
16404     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16405     for ac_dir in $PATH; do
16406       IFS="$ac_save_IFS"
16407       test -z "$ac_dir" && ac_dir=.
16408       for ac_exec_ext in '' $ac_executable_extensions; do
16409         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16410           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16411           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16412      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16413             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16414             break 2
16415           fi
16416         fi
16417       done
16418     done
16419     IFS="$ac_save_IFS"
16420   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16421     ;;
16422 esac
16423 fi
16424 MSGFMT="$ac_cv_path_MSGFMT"
16425 if test "$MSGFMT" != ":"; then
16426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16427 $as_echo "$MSGFMT" >&6; }
16428 else
16429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16430 $as_echo "no" >&6; }
16431 fi
16432
16433   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16434 set dummy gmsgfmt; ac_word=$2
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16436 $as_echo_n "checking for $ac_word... " >&6; }
16437 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
16438   $as_echo_n "(cached) " >&6
16439 else
16440   case $GMSGFMT in
16441   [\\/]* | ?:[\\/]*)
16442   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16443   ;;
16444   *)
16445   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16446 for as_dir in $PATH
16447 do
16448   IFS=$as_save_IFS
16449   test -z "$as_dir" && as_dir=.
16450     for ac_exec_ext in '' $ac_executable_extensions; do
16451   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16452     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16453     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16454     break 2
16455   fi
16456 done
16457   done
16458 IFS=$as_save_IFS
16459
16460   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16461   ;;
16462 esac
16463 fi
16464 GMSGFMT=$ac_cv_path_GMSGFMT
16465 if test -n "$GMSGFMT"; then
16466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16467 $as_echo "$GMSGFMT" >&6; }
16468 else
16469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16470 $as_echo "no" >&6; }
16471 fi
16472
16473
16474
16475     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
16476     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
16477     *) MSGFMT_015=$MSGFMT ;;
16478   esac
16479
16480   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
16481     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
16482     *) GMSGFMT_015=$GMSGFMT ;;
16483   esac
16484
16485
16486
16487 # Prepare PATH_SEPARATOR.
16488 # The user is always right.
16489 if test "${PATH_SEPARATOR+set}" != set; then
16490   echo "#! /bin/sh" >conf$$.sh
16491   echo  "exit 0"   >>conf$$.sh
16492   chmod +x conf$$.sh
16493   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16494     PATH_SEPARATOR=';'
16495   else
16496     PATH_SEPARATOR=:
16497   fi
16498   rm -f conf$$.sh
16499 fi
16500
16501 # Find out how to test for executable files. Don't use a zero-byte file,
16502 # as systems may use methods other than mode bits to determine executability.
16503 cat >conf$$.file <<_ASEOF
16504 #! /bin/sh
16505 exit 0
16506 _ASEOF
16507 chmod +x conf$$.file
16508 if test -x conf$$.file >/dev/null 2>&1; then
16509   ac_executable_p="test -x"
16510 else
16511   ac_executable_p="test -f"
16512 fi
16513 rm -f conf$$.file
16514
16515 # Extract the first word of "xgettext", so it can be a program name with args.
16516 set dummy xgettext; ac_word=$2
16517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16518 $as_echo_n "checking for $ac_word... " >&6; }
16519 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
16520   $as_echo_n "(cached) " >&6
16521 else
16522   case "$XGETTEXT" in
16523   [\\/]* | ?:[\\/]*)
16524     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16525     ;;
16526   *)
16527     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16528     for ac_dir in $PATH; do
16529       IFS="$ac_save_IFS"
16530       test -z "$ac_dir" && ac_dir=.
16531       for ac_exec_ext in '' $ac_executable_extensions; do
16532         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16533           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16534           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16535      (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
16536             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16537             break 2
16538           fi
16539         fi
16540       done
16541     done
16542     IFS="$ac_save_IFS"
16543   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16544     ;;
16545 esac
16546 fi
16547 XGETTEXT="$ac_cv_path_XGETTEXT"
16548 if test "$XGETTEXT" != ":"; then
16549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16550 $as_echo "$XGETTEXT" >&6; }
16551 else
16552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16553 $as_echo "no" >&6; }
16554 fi
16555
16556     rm -f messages.po
16557
16558     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
16559     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
16560     *) XGETTEXT_015=$XGETTEXT ;;
16561   esac
16562
16563
16564
16565 # Prepare PATH_SEPARATOR.
16566 # The user is always right.
16567 if test "${PATH_SEPARATOR+set}" != set; then
16568   echo "#! /bin/sh" >conf$$.sh
16569   echo  "exit 0"   >>conf$$.sh
16570   chmod +x conf$$.sh
16571   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16572     PATH_SEPARATOR=';'
16573   else
16574     PATH_SEPARATOR=:
16575   fi
16576   rm -f conf$$.sh
16577 fi
16578
16579 # Find out how to test for executable files. Don't use a zero-byte file,
16580 # as systems may use methods other than mode bits to determine executability.
16581 cat >conf$$.file <<_ASEOF
16582 #! /bin/sh
16583 exit 0
16584 _ASEOF
16585 chmod +x conf$$.file
16586 if test -x conf$$.file >/dev/null 2>&1; then
16587   ac_executable_p="test -x"
16588 else
16589   ac_executable_p="test -f"
16590 fi
16591 rm -f conf$$.file
16592
16593 # Extract the first word of "msgmerge", so it can be a program name with args.
16594 set dummy msgmerge; ac_word=$2
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16596 $as_echo_n "checking for $ac_word... " >&6; }
16597 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
16598   $as_echo_n "(cached) " >&6
16599 else
16600   case "$MSGMERGE" in
16601   [\\/]* | ?:[\\/]*)
16602     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16603     ;;
16604   *)
16605     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16606     for ac_dir in $PATH; do
16607       IFS="$ac_save_IFS"
16608       test -z "$ac_dir" && ac_dir=.
16609       for ac_exec_ext in '' $ac_executable_extensions; do
16610         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16611           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16612           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16613             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16614             break 2
16615           fi
16616         fi
16617       done
16618     done
16619     IFS="$ac_save_IFS"
16620   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16621     ;;
16622 esac
16623 fi
16624 MSGMERGE="$ac_cv_path_MSGMERGE"
16625 if test "$MSGMERGE" != ":"; then
16626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16627 $as_echo "$MSGMERGE" >&6; }
16628 else
16629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16630 $as_echo "no" >&6; }
16631 fi
16632
16633
16634         test -n "$localedir" || localedir='${datadir}/locale'
16635
16636
16637     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
16638
16639
16640   ac_config_commands="$ac_config_commands po-directories"
16641
16642
16643
16644       if test "X$prefix" = "XNONE"; then
16645     acl_final_prefix="$ac_default_prefix"
16646   else
16647     acl_final_prefix="$prefix"
16648   fi
16649   if test "X$exec_prefix" = "XNONE"; then
16650     acl_final_exec_prefix='${prefix}'
16651   else
16652     acl_final_exec_prefix="$exec_prefix"
16653   fi
16654   acl_save_prefix="$prefix"
16655   prefix="$acl_final_prefix"
16656   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16657   prefix="$acl_save_prefix"
16658
16659
16660 # Check whether --with-gnu-ld was given.
16661 if test "${with_gnu_ld+set}" = set; then :
16662   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16663 else
16664   with_gnu_ld=no
16665 fi
16666
16667 # Prepare PATH_SEPARATOR.
16668 # The user is always right.
16669 if test "${PATH_SEPARATOR+set}" != set; then
16670   echo "#! /bin/sh" >conf$$.sh
16671   echo  "exit 0"   >>conf$$.sh
16672   chmod +x conf$$.sh
16673   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16674     PATH_SEPARATOR=';'
16675   else
16676     PATH_SEPARATOR=:
16677   fi
16678   rm -f conf$$.sh
16679 fi
16680 ac_prog=ld
16681 if test "$GCC" = yes; then
16682   # Check if gcc -print-prog-name=ld gives a path.
16683   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16684 $as_echo_n "checking for ld used by GCC... " >&6; }
16685   case $host in
16686   *-*-mingw*)
16687     # gcc leaves a trailing carriage return which upsets mingw
16688     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16689   *)
16690     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16691   esac
16692   case $ac_prog in
16693     # Accept absolute paths.
16694     [\\/]* | [A-Za-z]:[\\/]*)
16695       re_direlt='/[^/][^/]*/\.\./'
16696       # Canonicalize the path of ld
16697       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16698       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16699         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16700       done
16701       test -z "$LD" && LD="$ac_prog"
16702       ;;
16703   "")
16704     # If it fails, then pretend we aren't using GCC.
16705     ac_prog=ld
16706     ;;
16707   *)
16708     # If it is relative, then search for the first ld in PATH.
16709     with_gnu_ld=unknown
16710     ;;
16711   esac
16712 elif test "$with_gnu_ld" = yes; then
16713   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16714 $as_echo_n "checking for GNU ld... " >&6; }
16715 else
16716   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16717 $as_echo_n "checking for non-GNU ld... " >&6; }
16718 fi
16719 if test "${acl_cv_path_LD+set}" = set; then :
16720   $as_echo_n "(cached) " >&6
16721 else
16722   if test -z "$LD"; then
16723   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16724   for ac_dir in $PATH; do
16725     test -z "$ac_dir" && ac_dir=.
16726     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16727       acl_cv_path_LD="$ac_dir/$ac_prog"
16728       # Check to see if the program is GNU ld.  I'd rather use --version,
16729       # but apparently some GNU ld's only accept -v.
16730       # Break only if it was the GNU/non-GNU ld that we prefer.
16731       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16732       *GNU* | *'with BFD'*)
16733         test "$with_gnu_ld" != no && break ;;
16734       *)
16735         test "$with_gnu_ld" != yes && break ;;
16736       esac
16737     fi
16738   done
16739   IFS="$ac_save_ifs"
16740 else
16741   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16742 fi
16743 fi
16744
16745 LD="$acl_cv_path_LD"
16746 if test -n "$LD"; then
16747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16748 $as_echo "$LD" >&6; }
16749 else
16750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16751 $as_echo "no" >&6; }
16752 fi
16753 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16755 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16756 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
16757   $as_echo_n "(cached) " >&6
16758 else
16759   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16760 case `$LD -v 2>&1 </dev/null` in
16761 *GNU* | *'with BFD'*)
16762   acl_cv_prog_gnu_ld=yes ;;
16763 *)
16764   acl_cv_prog_gnu_ld=no ;;
16765 esac
16766 fi
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16768 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16769 with_gnu_ld=$acl_cv_prog_gnu_ld
16770
16771
16772
16773
16774                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16775 $as_echo_n "checking for shared library run path origin... " >&6; }
16776 if test "${acl_cv_rpath+set}" = set; then :
16777   $as_echo_n "(cached) " >&6
16778 else
16779
16780     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16781     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16782     . ./conftest.sh
16783     rm -f ./conftest.sh
16784     acl_cv_rpath=done
16785
16786 fi
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16788 $as_echo "$acl_cv_rpath" >&6; }
16789   wl="$acl_cv_wl"
16790   acl_libext="$acl_cv_libext"
16791   acl_shlibext="$acl_cv_shlibext"
16792   acl_libname_spec="$acl_cv_libname_spec"
16793   acl_library_names_spec="$acl_cv_library_names_spec"
16794   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16795   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16796   acl_hardcode_direct="$acl_cv_hardcode_direct"
16797   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
16798     # Check whether --enable-rpath was given.
16799 if test "${enable_rpath+set}" = set; then :
16800   enableval=$enable_rpath; :
16801 else
16802   enable_rpath=yes
16803 fi
16804
16805
16806
16807                   acl_libdirstem=lib
16808   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
16809   if test -n "$searchpath"; then
16810     acl_save_IFS="${IFS=        }"; IFS=":"
16811     for searchdir in $searchpath; do
16812       if test -d "$searchdir"; then
16813         case "$searchdir" in
16814           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
16815           *) searchdir=`cd "$searchdir" && pwd`
16816              case "$searchdir" in
16817                */lib64 ) acl_libdirstem=lib64 ;;
16818              esac ;;
16819         esac
16820       fi
16821     done
16822     IFS="$acl_save_IFS"
16823   fi
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833     use_additional=yes
16834
16835   acl_save_prefix="$prefix"
16836   prefix="$acl_final_prefix"
16837   acl_save_exec_prefix="$exec_prefix"
16838   exec_prefix="$acl_final_exec_prefix"
16839
16840     eval additional_includedir=\"$includedir\"
16841     eval additional_libdir=\"$libdir\"
16842
16843   exec_prefix="$acl_save_exec_prefix"
16844   prefix="$acl_save_prefix"
16845
16846
16847 # Check whether --with-libiconv-prefix was given.
16848 if test "${with_libiconv_prefix+set}" = set; then :
16849   withval=$with_libiconv_prefix;
16850     if test "X$withval" = "Xno"; then
16851       use_additional=no
16852     else
16853       if test "X$withval" = "X"; then
16854
16855   acl_save_prefix="$prefix"
16856   prefix="$acl_final_prefix"
16857   acl_save_exec_prefix="$exec_prefix"
16858   exec_prefix="$acl_final_exec_prefix"
16859
16860           eval additional_includedir=\"$includedir\"
16861           eval additional_libdir=\"$libdir\"
16862
16863   exec_prefix="$acl_save_exec_prefix"
16864   prefix="$acl_save_prefix"
16865
16866       else
16867         additional_includedir="$withval/include"
16868         additional_libdir="$withval/$acl_libdirstem"
16869       fi
16870     fi
16871
16872 fi
16873
16874       LIBICONV=
16875   LTLIBICONV=
16876   INCICONV=
16877   LIBICONV_PREFIX=
16878   rpathdirs=
16879   ltrpathdirs=
16880   names_already_handled=
16881   names_next_round='iconv '
16882   while test -n "$names_next_round"; do
16883     names_this_round="$names_next_round"
16884     names_next_round=
16885     for name in $names_this_round; do
16886       already_handled=
16887       for n in $names_already_handled; do
16888         if test "$n" = "$name"; then
16889           already_handled=yes
16890           break
16891         fi
16892       done
16893       if test -z "$already_handled"; then
16894         names_already_handled="$names_already_handled $name"
16895                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16896         eval value=\"\$HAVE_LIB$uppername\"
16897         if test -n "$value"; then
16898           if test "$value" = yes; then
16899             eval value=\"\$LIB$uppername\"
16900             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16901             eval value=\"\$LTLIB$uppername\"
16902             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16903           else
16904                                     :
16905           fi
16906         else
16907                               found_dir=
16908           found_la=
16909           found_so=
16910           found_a=
16911           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
16912           if test -n "$acl_shlibext"; then
16913             shrext=".$acl_shlibext"             # typically: shrext=.so
16914           else
16915             shrext=
16916           fi
16917           if test $use_additional = yes; then
16918             dir="$additional_libdir"
16919                                     if test -n "$acl_shlibext"; then
16920               if test -f "$dir/$libname$shrext"; then
16921                 found_dir="$dir"
16922                 found_so="$dir/$libname$shrext"
16923               else
16924                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16925                   ver=`(cd "$dir" && \
16926                         for f in "$libname$shrext".*; do echo "$f"; done \
16927                         | sed -e "s,^$libname$shrext\\\\.,," \
16928                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16929                         | sed 1q ) 2>/dev/null`
16930                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16931                     found_dir="$dir"
16932                     found_so="$dir/$libname$shrext.$ver"
16933                   fi
16934                 else
16935                   eval library_names=\"$acl_library_names_spec\"
16936                   for f in $library_names; do
16937                     if test -f "$dir/$f"; then
16938                       found_dir="$dir"
16939                       found_so="$dir/$f"
16940                       break
16941                     fi
16942                   done
16943                 fi
16944               fi
16945             fi
16946                         if test "X$found_dir" = "X"; then
16947               if test -f "$dir/$libname.$acl_libext"; then
16948                 found_dir="$dir"
16949                 found_a="$dir/$libname.$acl_libext"
16950               fi
16951             fi
16952             if test "X$found_dir" != "X"; then
16953               if test -f "$dir/$libname.la"; then
16954                 found_la="$dir/$libname.la"
16955               fi
16956             fi
16957           fi
16958           if test "X$found_dir" = "X"; then
16959             for x in $LDFLAGS $LTLIBICONV; do
16960
16961   acl_save_prefix="$prefix"
16962   prefix="$acl_final_prefix"
16963   acl_save_exec_prefix="$exec_prefix"
16964   exec_prefix="$acl_final_exec_prefix"
16965   eval x=\"$x\"
16966   exec_prefix="$acl_save_exec_prefix"
16967   prefix="$acl_save_prefix"
16968
16969               case "$x" in
16970                 -L*)
16971                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16972                                     if test -n "$acl_shlibext"; then
16973                     if test -f "$dir/$libname$shrext"; then
16974                       found_dir="$dir"
16975                       found_so="$dir/$libname$shrext"
16976                     else
16977                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16978                         ver=`(cd "$dir" && \
16979                               for f in "$libname$shrext".*; do echo "$f"; done \
16980                               | sed -e "s,^$libname$shrext\\\\.,," \
16981                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16982                               | sed 1q ) 2>/dev/null`
16983                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16984                           found_dir="$dir"
16985                           found_so="$dir/$libname$shrext.$ver"
16986                         fi
16987                       else
16988                         eval library_names=\"$acl_library_names_spec\"
16989                         for f in $library_names; do
16990                           if test -f "$dir/$f"; then
16991                             found_dir="$dir"
16992                             found_so="$dir/$f"
16993                             break
16994                           fi
16995                         done
16996                       fi
16997                     fi
16998                   fi
16999                                     if test "X$found_dir" = "X"; then
17000                     if test -f "$dir/$libname.$acl_libext"; then
17001                       found_dir="$dir"
17002                       found_a="$dir/$libname.$acl_libext"
17003                     fi
17004                   fi
17005                   if test "X$found_dir" != "X"; then
17006                     if test -f "$dir/$libname.la"; then
17007                       found_la="$dir/$libname.la"
17008                     fi
17009                   fi
17010                   ;;
17011               esac
17012               if test "X$found_dir" != "X"; then
17013                 break
17014               fi
17015             done
17016           fi
17017           if test "X$found_dir" != "X"; then
17018                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17019             if test "X$found_so" != "X"; then
17020                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
17021                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17022               else
17023                                                                                 haveit=
17024                 for x in $ltrpathdirs; do
17025                   if test "X$x" = "X$found_dir"; then
17026                     haveit=yes
17027                     break
17028                   fi
17029                 done
17030                 if test -z "$haveit"; then
17031                   ltrpathdirs="$ltrpathdirs $found_dir"
17032                 fi
17033                                 if test "$acl_hardcode_direct" = yes; then
17034                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17035                 else
17036                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
17037                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17038                                                             haveit=
17039                     for x in $rpathdirs; do
17040                       if test "X$x" = "X$found_dir"; then
17041                         haveit=yes
17042                         break
17043                       fi
17044                     done
17045                     if test -z "$haveit"; then
17046                       rpathdirs="$rpathdirs $found_dir"
17047                     fi
17048                   else
17049                                                                                 haveit=
17050                     for x in $LDFLAGS $LIBICONV; do
17051
17052   acl_save_prefix="$prefix"
17053   prefix="$acl_final_prefix"
17054   acl_save_exec_prefix="$exec_prefix"
17055   exec_prefix="$acl_final_exec_prefix"
17056   eval x=\"$x\"
17057   exec_prefix="$acl_save_exec_prefix"
17058   prefix="$acl_save_prefix"
17059
17060                       if test "X$x" = "X-L$found_dir"; then
17061                         haveit=yes
17062                         break
17063                       fi
17064                     done
17065                     if test -z "$haveit"; then
17066                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17067                     fi
17068                     if test "$acl_hardcode_minus_L" != no; then
17069                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17070                     else
17071                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17072                     fi
17073                   fi
17074                 fi
17075               fi
17076             else
17077               if test "X$found_a" != "X"; then
17078                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17079               else
17080                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17081               fi
17082             fi
17083                         additional_includedir=
17084             case "$found_dir" in
17085               */$acl_libdirstem | */$acl_libdirstem/)
17086                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
17087                 LIBICONV_PREFIX="$basedir"
17088                 additional_includedir="$basedir/include"
17089                 ;;
17090             esac
17091             if test "X$additional_includedir" != "X"; then
17092                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17093                 haveit=
17094                 if test "X$additional_includedir" = "X/usr/local/include"; then
17095                   if test -n "$GCC"; then
17096                     case $host_os in
17097                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17098                     esac
17099                   fi
17100                 fi
17101                 if test -z "$haveit"; then
17102                   for x in $CPPFLAGS $INCICONV; do
17103
17104   acl_save_prefix="$prefix"
17105   prefix="$acl_final_prefix"
17106   acl_save_exec_prefix="$exec_prefix"
17107   exec_prefix="$acl_final_exec_prefix"
17108   eval x=\"$x\"
17109   exec_prefix="$acl_save_exec_prefix"
17110   prefix="$acl_save_prefix"
17111
17112                     if test "X$x" = "X-I$additional_includedir"; then
17113                       haveit=yes
17114                       break
17115                     fi
17116                   done
17117                   if test -z "$haveit"; then
17118                     if test -d "$additional_includedir"; then
17119                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17120                     fi
17121                   fi
17122                 fi
17123               fi
17124             fi
17125                         if test -n "$found_la"; then
17126                                                         save_libdir="$libdir"
17127               case "$found_la" in
17128                 */* | *\\*) . "$found_la" ;;
17129                 *) . "./$found_la" ;;
17130               esac
17131               libdir="$save_libdir"
17132                             for dep in $dependency_libs; do
17133                 case "$dep" in
17134                   -L*)
17135                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17136                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
17137                       haveit=
17138                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
17139                         if test -n "$GCC"; then
17140                           case $host_os in
17141                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17142                           esac
17143                         fi
17144                       fi
17145                       if test -z "$haveit"; then
17146                         haveit=
17147                         for x in $LDFLAGS $LIBICONV; do
17148
17149   acl_save_prefix="$prefix"
17150   prefix="$acl_final_prefix"
17151   acl_save_exec_prefix="$exec_prefix"
17152   exec_prefix="$acl_final_exec_prefix"
17153   eval x=\"$x\"
17154   exec_prefix="$acl_save_exec_prefix"
17155   prefix="$acl_save_prefix"
17156
17157                           if test "X$x" = "X-L$additional_libdir"; then
17158                             haveit=yes
17159                             break
17160                           fi
17161                         done
17162                         if test -z "$haveit"; then
17163                           if test -d "$additional_libdir"; then
17164                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17165                           fi
17166                         fi
17167                         haveit=
17168                         for x in $LDFLAGS $LTLIBICONV; do
17169
17170   acl_save_prefix="$prefix"
17171   prefix="$acl_final_prefix"
17172   acl_save_exec_prefix="$exec_prefix"
17173   exec_prefix="$acl_final_exec_prefix"
17174   eval x=\"$x\"
17175   exec_prefix="$acl_save_exec_prefix"
17176   prefix="$acl_save_prefix"
17177
17178                           if test "X$x" = "X-L$additional_libdir"; then
17179                             haveit=yes
17180                             break
17181                           fi
17182                         done
17183                         if test -z "$haveit"; then
17184                           if test -d "$additional_libdir"; then
17185                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17186                           fi
17187                         fi
17188                       fi
17189                     fi
17190                     ;;
17191                   -R*)
17192                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17193                     if test "$enable_rpath" != no; then
17194                                                                   haveit=
17195                       for x in $rpathdirs; do
17196                         if test "X$x" = "X$dir"; then
17197                           haveit=yes
17198                           break
17199                         fi
17200                       done
17201                       if test -z "$haveit"; then
17202                         rpathdirs="$rpathdirs $dir"
17203                       fi
17204                                                                   haveit=
17205                       for x in $ltrpathdirs; do
17206                         if test "X$x" = "X$dir"; then
17207                           haveit=yes
17208                           break
17209                         fi
17210                       done
17211                       if test -z "$haveit"; then
17212                         ltrpathdirs="$ltrpathdirs $dir"
17213                       fi
17214                     fi
17215                     ;;
17216                   -l*)
17217                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17218                     ;;
17219                   *.la)
17220                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17221                     ;;
17222                   *)
17223                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17224                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17225                     ;;
17226                 esac
17227               done
17228             fi
17229           else
17230                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17231             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17232           fi
17233         fi
17234       fi
17235     done
17236   done
17237   if test "X$rpathdirs" != "X"; then
17238     if test -n "$acl_hardcode_libdir_separator"; then
17239                         alldirs=
17240       for found_dir in $rpathdirs; do
17241         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
17242       done
17243             acl_save_libdir="$libdir"
17244       libdir="$alldirs"
17245       eval flag=\"$acl_hardcode_libdir_flag_spec\"
17246       libdir="$acl_save_libdir"
17247       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17248     else
17249             for found_dir in $rpathdirs; do
17250         acl_save_libdir="$libdir"
17251         libdir="$found_dir"
17252         eval flag=\"$acl_hardcode_libdir_flag_spec\"
17253         libdir="$acl_save_libdir"
17254         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17255       done
17256     fi
17257   fi
17258   if test "X$ltrpathdirs" != "X"; then
17259             for found_dir in $ltrpathdirs; do
17260       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17261     done
17262   fi
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
17289 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
17290 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
17291   $as_echo_n "(cached) " >&6
17292 else
17293   gt_save_LIBS="$LIBS"
17294      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
17295      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17296 /* end confdefs.h.  */
17297 #include <CoreFoundation/CFPreferences.h>
17298 int
17299 main ()
17300 {
17301 CFPreferencesCopyAppValue(NULL, NULL)
17302   ;
17303   return 0;
17304 }
17305 _ACEOF
17306 if ac_fn_c_try_link "$LINENO"; then :
17307   gt_cv_func_CFPreferencesCopyAppValue=yes
17308 else
17309   gt_cv_func_CFPreferencesCopyAppValue=no
17310 fi
17311 rm -f core conftest.err conftest.$ac_objext \
17312     conftest$ac_exeext conftest.$ac_ext
17313      LIBS="$gt_save_LIBS"
17314 fi
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17316 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17317   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17318
17319 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
17320
17321   fi
17322     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
17323 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
17324 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
17325   $as_echo_n "(cached) " >&6
17326 else
17327   gt_save_LIBS="$LIBS"
17328      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
17329      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17330 /* end confdefs.h.  */
17331 #include <CoreFoundation/CFLocale.h>
17332 int
17333 main ()
17334 {
17335 CFLocaleCopyCurrent();
17336   ;
17337   return 0;
17338 }
17339 _ACEOF
17340 if ac_fn_c_try_link "$LINENO"; then :
17341   gt_cv_func_CFLocaleCopyCurrent=yes
17342 else
17343   gt_cv_func_CFLocaleCopyCurrent=no
17344 fi
17345 rm -f core conftest.err conftest.$ac_objext \
17346     conftest$ac_exeext conftest.$ac_ext
17347      LIBS="$gt_save_LIBS"
17348 fi
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17350 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17351   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17352
17353 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
17354
17355   fi
17356   INTL_MACOSX_LIBS=
17357   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17358     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17359   fi
17360
17361
17362
17363
17364
17365
17366   LIBINTL=
17367   LTLIBINTL=
17368   POSUB=
17369
17370     case " $gt_needs " in
17371     *" need-formatstring-macros "*) gt_api_version=3 ;;
17372     *" need-ngettext "*) gt_api_version=2 ;;
17373     *) gt_api_version=1 ;;
17374   esac
17375   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
17376   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
17377
17378     if test "$USE_NLS" = "yes"; then
17379     gt_use_preinstalled_gnugettext=no
17380
17381
17382         if test $gt_api_version -ge 3; then
17383           gt_revision_test_code='
17384 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17385 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
17386 #endif
17387 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
17388 '
17389         else
17390           gt_revision_test_code=
17391         fi
17392         if test $gt_api_version -ge 2; then
17393           gt_expression_test_code=' + * ngettext ("", "", 0)'
17394         else
17395           gt_expression_test_code=
17396         fi
17397
17398         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17399 $as_echo_n "checking for GNU gettext in libc... " >&6; }
17400 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
17401   $as_echo_n "(cached) " >&6
17402 else
17403   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17404 /* end confdefs.h.  */
17405 #include <libintl.h>
17406 $gt_revision_test_code
17407 extern int _nl_msg_cat_cntr;
17408 extern int *_nl_domain_bindings;
17409 int
17410 main ()
17411 {
17412 bindtextdomain ("", "");
17413 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
17414   ;
17415   return 0;
17416 }
17417 _ACEOF
17418 if ac_fn_c_try_link "$LINENO"; then :
17419   eval "$gt_func_gnugettext_libc=yes"
17420 else
17421   eval "$gt_func_gnugettext_libc=no"
17422 fi
17423 rm -f core conftest.err conftest.$ac_objext \
17424     conftest$ac_exeext conftest.$ac_ext
17425 fi
17426 eval ac_res=\$$gt_func_gnugettext_libc
17427                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17428 $as_echo "$ac_res" >&6; }
17429
17430         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
17431
17432
17433
17434
17435
17436           am_save_CPPFLAGS="$CPPFLAGS"
17437
17438   for element in $INCICONV; do
17439     haveit=
17440     for x in $CPPFLAGS; do
17441
17442   acl_save_prefix="$prefix"
17443   prefix="$acl_final_prefix"
17444   acl_save_exec_prefix="$exec_prefix"
17445   exec_prefix="$acl_final_exec_prefix"
17446   eval x=\"$x\"
17447   exec_prefix="$acl_save_exec_prefix"
17448   prefix="$acl_save_prefix"
17449
17450       if test "X$x" = "X$element"; then
17451         haveit=yes
17452         break
17453       fi
17454     done
17455     if test -z "$haveit"; then
17456       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17457     fi
17458   done
17459
17460
17461   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17462 $as_echo_n "checking for iconv... " >&6; }
17463 if test "${am_cv_func_iconv+set}" = set; then :
17464   $as_echo_n "(cached) " >&6
17465 else
17466
17467     am_cv_func_iconv="no, consider installing GNU libiconv"
17468     am_cv_lib_iconv=no
17469     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17470 /* end confdefs.h.  */
17471 #include <stdlib.h>
17472 #include <iconv.h>
17473 int
17474 main ()
17475 {
17476 iconv_t cd = iconv_open("","");
17477        iconv(cd,NULL,NULL,NULL,NULL);
17478        iconv_close(cd);
17479   ;
17480   return 0;
17481 }
17482 _ACEOF
17483 if ac_fn_c_try_link "$LINENO"; then :
17484   am_cv_func_iconv=yes
17485 fi
17486 rm -f core conftest.err conftest.$ac_objext \
17487     conftest$ac_exeext conftest.$ac_ext
17488     if test "$am_cv_func_iconv" != yes; then
17489       am_save_LIBS="$LIBS"
17490       LIBS="$LIBS $LIBICONV"
17491       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17492 /* end confdefs.h.  */
17493 #include <stdlib.h>
17494 #include <iconv.h>
17495 int
17496 main ()
17497 {
17498 iconv_t cd = iconv_open("","");
17499          iconv(cd,NULL,NULL,NULL,NULL);
17500          iconv_close(cd);
17501   ;
17502   return 0;
17503 }
17504 _ACEOF
17505 if ac_fn_c_try_link "$LINENO"; then :
17506   am_cv_lib_iconv=yes
17507         am_cv_func_iconv=yes
17508 fi
17509 rm -f core conftest.err conftest.$ac_objext \
17510     conftest$ac_exeext conftest.$ac_ext
17511       LIBS="$am_save_LIBS"
17512     fi
17513
17514 fi
17515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17516 $as_echo "$am_cv_func_iconv" >&6; }
17517   if test "$am_cv_func_iconv" = yes; then
17518     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
17519 $as_echo_n "checking for working iconv... " >&6; }
17520 if test "${am_cv_func_iconv_works+set}" = set; then :
17521   $as_echo_n "(cached) " >&6
17522 else
17523
17524             am_save_LIBS="$LIBS"
17525       if test $am_cv_lib_iconv = yes; then
17526         LIBS="$LIBS $LIBICONV"
17527       fi
17528       if test "$cross_compiling" = yes; then :
17529   case "$host_os" in
17530            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
17531            *)            am_cv_func_iconv_works="guessing yes" ;;
17532          esac
17533 else
17534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17535 /* end confdefs.h.  */
17536
17537 #include <iconv.h>
17538 #include <string.h>
17539 int main ()
17540 {
17541   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
17542      returns.  */
17543   {
17544     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
17545     if (cd_utf8_to_88591 != (iconv_t)(-1))
17546       {
17547         static const char input[] = "\342\202\254"; /* EURO SIGN */
17548         char buf[10];
17549         const char *inptr = input;
17550         size_t inbytesleft = strlen (input);
17551         char *outptr = buf;
17552         size_t outbytesleft = sizeof (buf);
17553         size_t res = iconv (cd_utf8_to_88591,
17554                             (char **) &inptr, &inbytesleft,
17555                             &outptr, &outbytesleft);
17556         if (res == 0)
17557           return 1;
17558       }
17559   }
17560 #if 0 /* This bug could be worked around by the caller.  */
17561   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
17562   {
17563     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
17564     if (cd_88591_to_utf8 != (iconv_t)(-1))
17565       {
17566         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
17567         char buf[50];
17568         const char *inptr = input;
17569         size_t inbytesleft = strlen (input);
17570         char *outptr = buf;
17571         size_t outbytesleft = sizeof (buf);
17572         size_t res = iconv (cd_88591_to_utf8,
17573                             (char **) &inptr, &inbytesleft,
17574                             &outptr, &outbytesleft);
17575         if ((int)res > 0)
17576           return 1;
17577       }
17578   }
17579 #endif
17580   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
17581      provided.  */
17582   if (/* Try standardized names.  */
17583       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
17584       /* Try IRIX, OSF/1 names.  */
17585       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
17586       /* Try AIX names.  */
17587       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
17588       /* Try HP-UX names.  */
17589       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
17590     return 1;
17591   return 0;
17592 }
17593 _ACEOF
17594 if ac_fn_c_try_run "$LINENO"; then :
17595   am_cv_func_iconv_works=yes
17596 else
17597   am_cv_func_iconv_works=no
17598 fi
17599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17600   conftest.$ac_objext conftest.beam conftest.$ac_ext
17601 fi
17602
17603       LIBS="$am_save_LIBS"
17604
17605 fi
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
17607 $as_echo "$am_cv_func_iconv_works" >&6; }
17608     case "$am_cv_func_iconv_works" in
17609       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
17610       *)   am_func_iconv=yes ;;
17611     esac
17612   else
17613     am_func_iconv=no am_cv_lib_iconv=no
17614   fi
17615   if test "$am_func_iconv" = yes; then
17616
17617 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17618
17619   fi
17620   if test "$am_cv_lib_iconv" = yes; then
17621     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17622 $as_echo_n "checking how to link with libiconv... " >&6; }
17623     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17624 $as_echo "$LIBICONV" >&6; }
17625   else
17626             CPPFLAGS="$am_save_CPPFLAGS"
17627     LIBICONV=
17628     LTLIBICONV=
17629   fi
17630
17631
17632
17633
17634
17635
17636
17637
17638     use_additional=yes
17639
17640   acl_save_prefix="$prefix"
17641   prefix="$acl_final_prefix"
17642   acl_save_exec_prefix="$exec_prefix"
17643   exec_prefix="$acl_final_exec_prefix"
17644
17645     eval additional_includedir=\"$includedir\"
17646     eval additional_libdir=\"$libdir\"
17647
17648   exec_prefix="$acl_save_exec_prefix"
17649   prefix="$acl_save_prefix"
17650
17651
17652 # Check whether --with-libintl-prefix was given.
17653 if test "${with_libintl_prefix+set}" = set; then :
17654   withval=$with_libintl_prefix;
17655     if test "X$withval" = "Xno"; then
17656       use_additional=no
17657     else
17658       if test "X$withval" = "X"; then
17659
17660   acl_save_prefix="$prefix"
17661   prefix="$acl_final_prefix"
17662   acl_save_exec_prefix="$exec_prefix"
17663   exec_prefix="$acl_final_exec_prefix"
17664
17665           eval additional_includedir=\"$includedir\"
17666           eval additional_libdir=\"$libdir\"
17667
17668   exec_prefix="$acl_save_exec_prefix"
17669   prefix="$acl_save_prefix"
17670
17671       else
17672         additional_includedir="$withval/include"
17673         additional_libdir="$withval/$acl_libdirstem"
17674       fi
17675     fi
17676
17677 fi
17678
17679       LIBINTL=
17680   LTLIBINTL=
17681   INCINTL=
17682   LIBINTL_PREFIX=
17683   rpathdirs=
17684   ltrpathdirs=
17685   names_already_handled=
17686   names_next_round='intl '
17687   while test -n "$names_next_round"; do
17688     names_this_round="$names_next_round"
17689     names_next_round=
17690     for name in $names_this_round; do
17691       already_handled=
17692       for n in $names_already_handled; do
17693         if test "$n" = "$name"; then
17694           already_handled=yes
17695           break
17696         fi
17697       done
17698       if test -z "$already_handled"; then
17699         names_already_handled="$names_already_handled $name"
17700                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17701         eval value=\"\$HAVE_LIB$uppername\"
17702         if test -n "$value"; then
17703           if test "$value" = yes; then
17704             eval value=\"\$LIB$uppername\"
17705             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17706             eval value=\"\$LTLIB$uppername\"
17707             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17708           else
17709                                     :
17710           fi
17711         else
17712                               found_dir=
17713           found_la=
17714           found_so=
17715           found_a=
17716           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
17717           if test -n "$acl_shlibext"; then
17718             shrext=".$acl_shlibext"             # typically: shrext=.so
17719           else
17720             shrext=
17721           fi
17722           if test $use_additional = yes; then
17723             dir="$additional_libdir"
17724                                     if test -n "$acl_shlibext"; then
17725               if test -f "$dir/$libname$shrext"; then
17726                 found_dir="$dir"
17727                 found_so="$dir/$libname$shrext"
17728               else
17729                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17730                   ver=`(cd "$dir" && \
17731                         for f in "$libname$shrext".*; do echo "$f"; done \
17732                         | sed -e "s,^$libname$shrext\\\\.,," \
17733                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17734                         | sed 1q ) 2>/dev/null`
17735                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17736                     found_dir="$dir"
17737                     found_so="$dir/$libname$shrext.$ver"
17738                   fi
17739                 else
17740                   eval library_names=\"$acl_library_names_spec\"
17741                   for f in $library_names; do
17742                     if test -f "$dir/$f"; then
17743                       found_dir="$dir"
17744                       found_so="$dir/$f"
17745                       break
17746                     fi
17747                   done
17748                 fi
17749               fi
17750             fi
17751                         if test "X$found_dir" = "X"; then
17752               if test -f "$dir/$libname.$acl_libext"; then
17753                 found_dir="$dir"
17754                 found_a="$dir/$libname.$acl_libext"
17755               fi
17756             fi
17757             if test "X$found_dir" != "X"; then
17758               if test -f "$dir/$libname.la"; then
17759                 found_la="$dir/$libname.la"
17760               fi
17761             fi
17762           fi
17763           if test "X$found_dir" = "X"; then
17764             for x in $LDFLAGS $LTLIBINTL; do
17765
17766   acl_save_prefix="$prefix"
17767   prefix="$acl_final_prefix"
17768   acl_save_exec_prefix="$exec_prefix"
17769   exec_prefix="$acl_final_exec_prefix"
17770   eval x=\"$x\"
17771   exec_prefix="$acl_save_exec_prefix"
17772   prefix="$acl_save_prefix"
17773
17774               case "$x" in
17775                 -L*)
17776                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17777                                     if test -n "$acl_shlibext"; then
17778                     if test -f "$dir/$libname$shrext"; then
17779                       found_dir="$dir"
17780                       found_so="$dir/$libname$shrext"
17781                     else
17782                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17783                         ver=`(cd "$dir" && \
17784                               for f in "$libname$shrext".*; do echo "$f"; done \
17785                               | sed -e "s,^$libname$shrext\\\\.,," \
17786                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17787                               | sed 1q ) 2>/dev/null`
17788                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17789                           found_dir="$dir"
17790                           found_so="$dir/$libname$shrext.$ver"
17791                         fi
17792                       else
17793                         eval library_names=\"$acl_library_names_spec\"
17794                         for f in $library_names; do
17795                           if test -f "$dir/$f"; then
17796                             found_dir="$dir"
17797                             found_so="$dir/$f"
17798                             break
17799                           fi
17800                         done
17801                       fi
17802                     fi
17803                   fi
17804                                     if test "X$found_dir" = "X"; then
17805                     if test -f "$dir/$libname.$acl_libext"; then
17806                       found_dir="$dir"
17807                       found_a="$dir/$libname.$acl_libext"
17808                     fi
17809                   fi
17810                   if test "X$found_dir" != "X"; then
17811                     if test -f "$dir/$libname.la"; then
17812                       found_la="$dir/$libname.la"
17813                     fi
17814                   fi
17815                   ;;
17816               esac
17817               if test "X$found_dir" != "X"; then
17818                 break
17819               fi
17820             done
17821           fi
17822           if test "X$found_dir" != "X"; then
17823                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17824             if test "X$found_so" != "X"; then
17825                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
17826                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17827               else
17828                                                                                 haveit=
17829                 for x in $ltrpathdirs; do
17830                   if test "X$x" = "X$found_dir"; then
17831                     haveit=yes
17832                     break
17833                   fi
17834                 done
17835                 if test -z "$haveit"; then
17836                   ltrpathdirs="$ltrpathdirs $found_dir"
17837                 fi
17838                                 if test "$acl_hardcode_direct" = yes; then
17839                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17840                 else
17841                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
17842                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17843                                                             haveit=
17844                     for x in $rpathdirs; do
17845                       if test "X$x" = "X$found_dir"; then
17846                         haveit=yes
17847                         break
17848                       fi
17849                     done
17850                     if test -z "$haveit"; then
17851                       rpathdirs="$rpathdirs $found_dir"
17852                     fi
17853                   else
17854                                                                                 haveit=
17855                     for x in $LDFLAGS $LIBINTL; do
17856
17857   acl_save_prefix="$prefix"
17858   prefix="$acl_final_prefix"
17859   acl_save_exec_prefix="$exec_prefix"
17860   exec_prefix="$acl_final_exec_prefix"
17861   eval x=\"$x\"
17862   exec_prefix="$acl_save_exec_prefix"
17863   prefix="$acl_save_prefix"
17864
17865                       if test "X$x" = "X-L$found_dir"; then
17866                         haveit=yes
17867                         break
17868                       fi
17869                     done
17870                     if test -z "$haveit"; then
17871                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17872                     fi
17873                     if test "$acl_hardcode_minus_L" != no; then
17874                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17875                     else
17876                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17877                     fi
17878                   fi
17879                 fi
17880               fi
17881             else
17882               if test "X$found_a" != "X"; then
17883                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17884               else
17885                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17886               fi
17887             fi
17888                         additional_includedir=
17889             case "$found_dir" in
17890               */$acl_libdirstem | */$acl_libdirstem/)
17891                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
17892                 LIBINTL_PREFIX="$basedir"
17893                 additional_includedir="$basedir/include"
17894                 ;;
17895             esac
17896             if test "X$additional_includedir" != "X"; then
17897                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17898                 haveit=
17899                 if test "X$additional_includedir" = "X/usr/local/include"; then
17900                   if test -n "$GCC"; then
17901                     case $host_os in
17902                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17903                     esac
17904                   fi
17905                 fi
17906                 if test -z "$haveit"; then
17907                   for x in $CPPFLAGS $INCINTL; do
17908
17909   acl_save_prefix="$prefix"
17910   prefix="$acl_final_prefix"
17911   acl_save_exec_prefix="$exec_prefix"
17912   exec_prefix="$acl_final_exec_prefix"
17913   eval x=\"$x\"
17914   exec_prefix="$acl_save_exec_prefix"
17915   prefix="$acl_save_prefix"
17916
17917                     if test "X$x" = "X-I$additional_includedir"; then
17918                       haveit=yes
17919                       break
17920                     fi
17921                   done
17922                   if test -z "$haveit"; then
17923                     if test -d "$additional_includedir"; then
17924                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17925                     fi
17926                   fi
17927                 fi
17928               fi
17929             fi
17930                         if test -n "$found_la"; then
17931                                                         save_libdir="$libdir"
17932               case "$found_la" in
17933                 */* | *\\*) . "$found_la" ;;
17934                 *) . "./$found_la" ;;
17935               esac
17936               libdir="$save_libdir"
17937                             for dep in $dependency_libs; do
17938                 case "$dep" in
17939                   -L*)
17940                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17941                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
17942                       haveit=
17943                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
17944                         if test -n "$GCC"; then
17945                           case $host_os in
17946                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17947                           esac
17948                         fi
17949                       fi
17950                       if test -z "$haveit"; then
17951                         haveit=
17952                         for x in $LDFLAGS $LIBINTL; do
17953
17954   acl_save_prefix="$prefix"
17955   prefix="$acl_final_prefix"
17956   acl_save_exec_prefix="$exec_prefix"
17957   exec_prefix="$acl_final_exec_prefix"
17958   eval x=\"$x\"
17959   exec_prefix="$acl_save_exec_prefix"
17960   prefix="$acl_save_prefix"
17961
17962                           if test "X$x" = "X-L$additional_libdir"; then
17963                             haveit=yes
17964                             break
17965                           fi
17966                         done
17967                         if test -z "$haveit"; then
17968                           if test -d "$additional_libdir"; then
17969                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17970                           fi
17971                         fi
17972                         haveit=
17973                         for x in $LDFLAGS $LTLIBINTL; do
17974
17975   acl_save_prefix="$prefix"
17976   prefix="$acl_final_prefix"
17977   acl_save_exec_prefix="$exec_prefix"
17978   exec_prefix="$acl_final_exec_prefix"
17979   eval x=\"$x\"
17980   exec_prefix="$acl_save_exec_prefix"
17981   prefix="$acl_save_prefix"
17982
17983                           if test "X$x" = "X-L$additional_libdir"; then
17984                             haveit=yes
17985                             break
17986                           fi
17987                         done
17988                         if test -z "$haveit"; then
17989                           if test -d "$additional_libdir"; then
17990                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17991                           fi
17992                         fi
17993                       fi
17994                     fi
17995                     ;;
17996                   -R*)
17997                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17998                     if test "$enable_rpath" != no; then
17999                                                                   haveit=
18000                       for x in $rpathdirs; do
18001                         if test "X$x" = "X$dir"; then
18002                           haveit=yes
18003                           break
18004                         fi
18005                       done
18006                       if test -z "$haveit"; then
18007                         rpathdirs="$rpathdirs $dir"
18008                       fi
18009                                                                   haveit=
18010                       for x in $ltrpathdirs; do
18011                         if test "X$x" = "X$dir"; then
18012                           haveit=yes
18013                           break
18014                         fi
18015                       done
18016                       if test -z "$haveit"; then
18017                         ltrpathdirs="$ltrpathdirs $dir"
18018                       fi
18019                     fi
18020                     ;;
18021                   -l*)
18022                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18023                     ;;
18024                   *.la)
18025                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18026                     ;;
18027                   *)
18028                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18029                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18030                     ;;
18031                 esac
18032               done
18033             fi
18034           else
18035                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18036             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18037           fi
18038         fi
18039       fi
18040     done
18041   done
18042   if test "X$rpathdirs" != "X"; then
18043     if test -n "$acl_hardcode_libdir_separator"; then
18044                         alldirs=
18045       for found_dir in $rpathdirs; do
18046         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
18047       done
18048             acl_save_libdir="$libdir"
18049       libdir="$alldirs"
18050       eval flag=\"$acl_hardcode_libdir_flag_spec\"
18051       libdir="$acl_save_libdir"
18052       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18053     else
18054             for found_dir in $rpathdirs; do
18055         acl_save_libdir="$libdir"
18056         libdir="$found_dir"
18057         eval flag=\"$acl_hardcode_libdir_flag_spec\"
18058         libdir="$acl_save_libdir"
18059         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18060       done
18061     fi
18062   fi
18063   if test "X$ltrpathdirs" != "X"; then
18064             for found_dir in $ltrpathdirs; do
18065       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18066     done
18067   fi
18068
18069           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18070 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18071 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
18072   $as_echo_n "(cached) " >&6
18073 else
18074   gt_save_CPPFLAGS="$CPPFLAGS"
18075             CPPFLAGS="$CPPFLAGS $INCINTL"
18076             gt_save_LIBS="$LIBS"
18077             LIBS="$LIBS $LIBINTL"
18078                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18079 /* end confdefs.h.  */
18080 #include <libintl.h>
18081 $gt_revision_test_code
18082 extern int _nl_msg_cat_cntr;
18083 extern
18084 #ifdef __cplusplus
18085 "C"
18086 #endif
18087 const char *_nl_expand_alias (const char *);
18088 int
18089 main ()
18090 {
18091 bindtextdomain ("", "");
18092 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18093   ;
18094   return 0;
18095 }
18096 _ACEOF
18097 if ac_fn_c_try_link "$LINENO"; then :
18098   eval "$gt_func_gnugettext_libintl=yes"
18099 else
18100   eval "$gt_func_gnugettext_libintl=no"
18101 fi
18102 rm -f core conftest.err conftest.$ac_objext \
18103     conftest$ac_exeext conftest.$ac_ext
18104                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
18105               LIBS="$LIBS $LIBICONV"
18106               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18107 /* end confdefs.h.  */
18108 #include <libintl.h>
18109 $gt_revision_test_code
18110 extern int _nl_msg_cat_cntr;
18111 extern
18112 #ifdef __cplusplus
18113 "C"
18114 #endif
18115 const char *_nl_expand_alias (const char *);
18116 int
18117 main ()
18118 {
18119 bindtextdomain ("", "");
18120 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18121   ;
18122   return 0;
18123 }
18124 _ACEOF
18125 if ac_fn_c_try_link "$LINENO"; then :
18126   LIBINTL="$LIBINTL $LIBICONV"
18127                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18128                 eval "$gt_func_gnugettext_libintl=yes"
18129
18130 fi
18131 rm -f core conftest.err conftest.$ac_objext \
18132     conftest$ac_exeext conftest.$ac_ext
18133             fi
18134             CPPFLAGS="$gt_save_CPPFLAGS"
18135             LIBS="$gt_save_LIBS"
18136 fi
18137 eval ac_res=\$$gt_func_gnugettext_libintl
18138                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18139 $as_echo "$ac_res" >&6; }
18140         fi
18141
18142                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
18143            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
18144                 && test "$PACKAGE" != gettext-runtime \
18145                 && test "$PACKAGE" != gettext-tools; }; then
18146           gt_use_preinstalled_gnugettext=yes
18147         else
18148                     LIBINTL=
18149           LTLIBINTL=
18150           INCINTL=
18151         fi
18152
18153
18154
18155     if test -n "$INTL_MACOSX_LIBS"; then
18156       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18157          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18158                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18159         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18160       fi
18161     fi
18162
18163     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18164        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18165
18166 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18167
18168     else
18169       USE_NLS=no
18170     fi
18171   fi
18172
18173   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18174 $as_echo_n "checking whether to use NLS... " >&6; }
18175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18176 $as_echo "$USE_NLS" >&6; }
18177   if test "$USE_NLS" = "yes"; then
18178     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18179 $as_echo_n "checking where the gettext function comes from... " >&6; }
18180     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18181       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
18182         gt_source="external libintl"
18183       else
18184         gt_source="libc"
18185       fi
18186     else
18187       gt_source="included intl directory"
18188     fi
18189     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18190 $as_echo "$gt_source" >&6; }
18191   fi
18192
18193   if test "$USE_NLS" = "yes"; then
18194
18195     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18196       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
18197         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18198 $as_echo_n "checking how to link with libintl... " >&6; }
18199         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18200 $as_echo "$LIBINTL" >&6; }
18201
18202   for element in $INCINTL; do
18203     haveit=
18204     for x in $CPPFLAGS; do
18205
18206   acl_save_prefix="$prefix"
18207   prefix="$acl_final_prefix"
18208   acl_save_exec_prefix="$exec_prefix"
18209   exec_prefix="$acl_final_exec_prefix"
18210   eval x=\"$x\"
18211   exec_prefix="$acl_save_exec_prefix"
18212   prefix="$acl_save_prefix"
18213
18214       if test "X$x" = "X$element"; then
18215         haveit=yes
18216         break
18217       fi
18218     done
18219     if test -z "$haveit"; then
18220       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18221     fi
18222   done
18223
18224       fi
18225
18226
18227 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18228
18229
18230 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18231
18232     fi
18233
18234         POSUB=po
18235   fi
18236
18237
18238
18239     INTLLIBS="$LIBINTL"
18240
18241
18242
18243
18244
18245
18246 #fi
18247
18248
18249
18250
18251 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18252         if test -n "$ac_tool_prefix"; then
18253   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18254 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18256 $as_echo_n "checking for $ac_word... " >&6; }
18257 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
18258   $as_echo_n "(cached) " >&6
18259 else
18260   case $PKG_CONFIG in
18261   [\\/]* | ?:[\\/]*)
18262   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18263   ;;
18264   *)
18265   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18266 for as_dir in $PATH
18267 do
18268   IFS=$as_save_IFS
18269   test -z "$as_dir" && as_dir=.
18270     for ac_exec_ext in '' $ac_executable_extensions; do
18271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18272     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18273     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18274     break 2
18275   fi
18276 done
18277   done
18278 IFS=$as_save_IFS
18279
18280   ;;
18281 esac
18282 fi
18283 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18284 if test -n "$PKG_CONFIG"; then
18285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18286 $as_echo "$PKG_CONFIG" >&6; }
18287 else
18288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18289 $as_echo "no" >&6; }
18290 fi
18291
18292
18293 fi
18294 if test -z "$ac_cv_path_PKG_CONFIG"; then
18295   ac_pt_PKG_CONFIG=$PKG_CONFIG
18296   # Extract the first word of "pkg-config", so it can be a program name with args.
18297 set dummy pkg-config; ac_word=$2
18298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18299 $as_echo_n "checking for $ac_word... " >&6; }
18300 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
18301   $as_echo_n "(cached) " >&6
18302 else
18303   case $ac_pt_PKG_CONFIG in
18304   [\\/]* | ?:[\\/]*)
18305   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18306   ;;
18307   *)
18308   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18309 for as_dir in $PATH
18310 do
18311   IFS=$as_save_IFS
18312   test -z "$as_dir" && as_dir=.
18313     for ac_exec_ext in '' $ac_executable_extensions; do
18314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18315     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18317     break 2
18318   fi
18319 done
18320   done
18321 IFS=$as_save_IFS
18322
18323   ;;
18324 esac
18325 fi
18326 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18327 if test -n "$ac_pt_PKG_CONFIG"; then
18328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18329 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18330 else
18331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18332 $as_echo "no" >&6; }
18333 fi
18334
18335   if test "x$ac_pt_PKG_CONFIG" = x; then
18336     PKG_CONFIG=""
18337   else
18338     case $cross_compiling:$ac_tool_warned in
18339 yes:)
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18342 ac_tool_warned=yes ;;
18343 esac
18344     PKG_CONFIG=$ac_pt_PKG_CONFIG
18345   fi
18346 else
18347   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18348 fi
18349
18350 fi
18351 if test -n "$PKG_CONFIG"; then
18352         _pkg_min_version=0.9.0
18353         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18354 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18355         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18356                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18357 $as_echo "yes" >&6; }
18358         else
18359                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18360 $as_echo "no" >&6; }
18361                 PKG_CONFIG=""
18362         fi
18363
18364 fi
18365
18366 pkg_failed=no
18367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIBMM" >&5
18368 $as_echo_n "checking for GLIBMM... " >&6; }
18369
18370 if test -n "$PKG_CONFIG"; then
18371     if test -n "$GLIBMM_CFLAGS"; then
18372         pkg_cv_GLIBMM_CFLAGS="$GLIBMM_CFLAGS"
18373     else
18374         if test -n "$PKG_CONFIG" && \
18375     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glibmm-2.4\""; } >&5
18376   ($PKG_CONFIG --exists --print-errors "glibmm-2.4") 2>&5
18377   ac_status=$?
18378   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18379   test $ac_status = 0; }; then
18380   pkg_cv_GLIBMM_CFLAGS=`$PKG_CONFIG --cflags "glibmm-2.4" 2>/dev/null`
18381 else
18382   pkg_failed=yes
18383 fi
18384     fi
18385 else
18386         pkg_failed=untried
18387 fi
18388 if test -n "$PKG_CONFIG"; then
18389     if test -n "$GLIBMM_LIBS"; then
18390         pkg_cv_GLIBMM_LIBS="$GLIBMM_LIBS"
18391     else
18392         if test -n "$PKG_CONFIG" && \
18393     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glibmm-2.4\""; } >&5
18394   ($PKG_CONFIG --exists --print-errors "glibmm-2.4") 2>&5
18395   ac_status=$?
18396   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18397   test $ac_status = 0; }; then
18398   pkg_cv_GLIBMM_LIBS=`$PKG_CONFIG --libs "glibmm-2.4" 2>/dev/null`
18399 else
18400   pkg_failed=yes
18401 fi
18402     fi
18403 else
18404         pkg_failed=untried
18405 fi
18406
18407
18408
18409 if test $pkg_failed = yes; then
18410
18411 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18412         _pkg_short_errors_supported=yes
18413 else
18414         _pkg_short_errors_supported=no
18415 fi
18416         if test $_pkg_short_errors_supported = yes; then
18417                 GLIBMM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glibmm-2.4"`
18418         else
18419                 GLIBMM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glibmm-2.4"`
18420         fi
18421         # Put the nasty error message in config.log where it belongs
18422         echo "$GLIBMM_PKG_ERRORS" >&5
18423
18424         as_fn_error "Package requirements (glibmm-2.4) were not met:
18425
18426 $GLIBMM_PKG_ERRORS
18427
18428 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18429 installed software in a non-standard prefix.
18430
18431 Alternatively, you may set the environment variables GLIBMM_CFLAGS
18432 and GLIBMM_LIBS to avoid the need to call pkg-config.
18433 See the pkg-config man page for more details.
18434 " "$LINENO" 5
18435 elif test $pkg_failed = untried; then
18436         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18438 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
18439 is in your PATH or set the PKG_CONFIG environment variable to the full
18440 path to pkg-config.
18441
18442 Alternatively, you may set the environment variables GLIBMM_CFLAGS
18443 and GLIBMM_LIBS to avoid the need to call pkg-config.
18444 See the pkg-config man page for more details.
18445
18446 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18447 See \`config.log' for more details." "$LINENO" 5; }
18448 else
18449         GLIBMM_CFLAGS=$pkg_cv_GLIBMM_CFLAGS
18450         GLIBMM_LIBS=$pkg_cv_GLIBMM_LIBS
18451         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18452 $as_echo "yes" >&6; }
18453         :
18454 fi
18455
18456
18457
18458
18459
18460
18461 pkg_failed=no
18462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKMM" >&5
18463 $as_echo_n "checking for GTKMM... " >&6; }
18464
18465 if test -n "$PKG_CONFIG"; then
18466     if test -n "$GTKMM_CFLAGS"; then
18467         pkg_cv_GTKMM_CFLAGS="$GTKMM_CFLAGS"
18468     else
18469         if test -n "$PKG_CONFIG" && \
18470     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtkmm-2.4\""; } >&5
18471   ($PKG_CONFIG --exists --print-errors "gtkmm-2.4") 2>&5
18472   ac_status=$?
18473   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18474   test $ac_status = 0; }; then
18475   pkg_cv_GTKMM_CFLAGS=`$PKG_CONFIG --cflags "gtkmm-2.4" 2>/dev/null`
18476 else
18477   pkg_failed=yes
18478 fi
18479     fi
18480 else
18481         pkg_failed=untried
18482 fi
18483 if test -n "$PKG_CONFIG"; then
18484     if test -n "$GTKMM_LIBS"; then
18485         pkg_cv_GTKMM_LIBS="$GTKMM_LIBS"
18486     else
18487         if test -n "$PKG_CONFIG" && \
18488     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtkmm-2.4\""; } >&5
18489   ($PKG_CONFIG --exists --print-errors "gtkmm-2.4") 2>&5
18490   ac_status=$?
18491   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18492   test $ac_status = 0; }; then
18493   pkg_cv_GTKMM_LIBS=`$PKG_CONFIG --libs "gtkmm-2.4" 2>/dev/null`
18494 else
18495   pkg_failed=yes
18496 fi
18497     fi
18498 else
18499         pkg_failed=untried
18500 fi
18501
18502
18503
18504 if test $pkg_failed = yes; then
18505
18506 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18507         _pkg_short_errors_supported=yes
18508 else
18509         _pkg_short_errors_supported=no
18510 fi
18511         if test $_pkg_short_errors_supported = yes; then
18512                 GTKMM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtkmm-2.4"`
18513         else
18514                 GTKMM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtkmm-2.4"`
18515         fi
18516         # Put the nasty error message in config.log where it belongs
18517         echo "$GTKMM_PKG_ERRORS" >&5
18518
18519         as_fn_error "Package requirements (gtkmm-2.4) were not met:
18520
18521 $GTKMM_PKG_ERRORS
18522
18523 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18524 installed software in a non-standard prefix.
18525
18526 Alternatively, you may set the environment variables GTKMM_CFLAGS
18527 and GTKMM_LIBS to avoid the need to call pkg-config.
18528 See the pkg-config man page for more details.
18529 " "$LINENO" 5
18530 elif test $pkg_failed = untried; then
18531         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18533 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
18534 is in your PATH or set the PKG_CONFIG environment variable to the full
18535 path to pkg-config.
18536
18537 Alternatively, you may set the environment variables GTKMM_CFLAGS
18538 and GTKMM_LIBS to avoid the need to call pkg-config.
18539 See the pkg-config man page for more details.
18540
18541 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18542 See \`config.log' for more details." "$LINENO" 5; }
18543 else
18544         GTKMM_CFLAGS=$pkg_cv_GTKMM_CFLAGS
18545         GTKMM_LIBS=$pkg_cv_GTKMM_LIBS
18546         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18547 $as_echo "yes" >&6; }
18548         :
18549 fi
18550
18551
18552
18553
18554
18555
18556 pkg_failed=no
18557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGNET" >&5
18558 $as_echo_n "checking for LIBGNET... " >&6; }
18559
18560 if test -n "$PKG_CONFIG"; then
18561     if test -n "$LIBGNET_CFLAGS"; then
18562         pkg_cv_LIBGNET_CFLAGS="$LIBGNET_CFLAGS"
18563     else
18564         if test -n "$PKG_CONFIG" && \
18565     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnet-2.0\""; } >&5
18566   ($PKG_CONFIG --exists --print-errors "gnet-2.0") 2>&5
18567   ac_status=$?
18568   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18569   test $ac_status = 0; }; then
18570   pkg_cv_LIBGNET_CFLAGS=`$PKG_CONFIG --cflags "gnet-2.0" 2>/dev/null`
18571 else
18572   pkg_failed=yes
18573 fi
18574     fi
18575 else
18576         pkg_failed=untried
18577 fi
18578 if test -n "$PKG_CONFIG"; then
18579     if test -n "$LIBGNET_LIBS"; then
18580         pkg_cv_LIBGNET_LIBS="$LIBGNET_LIBS"
18581     else
18582         if test -n "$PKG_CONFIG" && \
18583     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnet-2.0\""; } >&5
18584   ($PKG_CONFIG --exists --print-errors "gnet-2.0") 2>&5
18585   ac_status=$?
18586   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18587   test $ac_status = 0; }; then
18588   pkg_cv_LIBGNET_LIBS=`$PKG_CONFIG --libs "gnet-2.0" 2>/dev/null`
18589 else
18590   pkg_failed=yes
18591 fi
18592     fi
18593 else
18594         pkg_failed=untried
18595 fi
18596
18597
18598
18599 if test $pkg_failed = yes; then
18600
18601 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18602         _pkg_short_errors_supported=yes
18603 else
18604         _pkg_short_errors_supported=no
18605 fi
18606         if test $_pkg_short_errors_supported = yes; then
18607                 LIBGNET_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnet-2.0"`
18608         else
18609                 LIBGNET_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnet-2.0"`
18610         fi
18611         # Put the nasty error message in config.log where it belongs
18612         echo "$LIBGNET_PKG_ERRORS" >&5
18613
18614         as_fn_error "Package requirements (gnet-2.0) were not met:
18615
18616 $LIBGNET_PKG_ERRORS
18617
18618 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18619 installed software in a non-standard prefix.
18620
18621 Alternatively, you may set the environment variables LIBGNET_CFLAGS
18622 and LIBGNET_LIBS to avoid the need to call pkg-config.
18623 See the pkg-config man page for more details.
18624 " "$LINENO" 5
18625 elif test $pkg_failed = untried; then
18626         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18628 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
18629 is in your PATH or set the PKG_CONFIG environment variable to the full
18630 path to pkg-config.
18631
18632 Alternatively, you may set the environment variables LIBGNET_CFLAGS
18633 and LIBGNET_LIBS to avoid the need to call pkg-config.
18634 See the pkg-config man page for more details.
18635
18636 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18637 See \`config.log' for more details." "$LINENO" 5; }
18638 else
18639         LIBGNET_CFLAGS=$pkg_cv_LIBGNET_CFLAGS
18640         LIBGNET_LIBS=$pkg_cv_LIBGNET_LIBS
18641         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18642 $as_echo "yes" >&6; }
18643         :
18644 fi
18645
18646
18647
18648
18649
18650
18651 pkg_failed=no
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSIGC" >&5
18653 $as_echo_n "checking for LIBSIGC... " >&6; }
18654
18655 if test -n "$PKG_CONFIG"; then
18656     if test -n "$LIBSIGC_CFLAGS"; then
18657         pkg_cv_LIBSIGC_CFLAGS="$LIBSIGC_CFLAGS"
18658     else
18659         if test -n "$PKG_CONFIG" && \
18660     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sigc++-2.0\""; } >&5
18661   ($PKG_CONFIG --exists --print-errors "sigc++-2.0") 2>&5
18662   ac_status=$?
18663   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18664   test $ac_status = 0; }; then
18665   pkg_cv_LIBSIGC_CFLAGS=`$PKG_CONFIG --cflags "sigc++-2.0" 2>/dev/null`
18666 else
18667   pkg_failed=yes
18668 fi
18669     fi
18670 else
18671         pkg_failed=untried
18672 fi
18673 if test -n "$PKG_CONFIG"; then
18674     if test -n "$LIBSIGC_LIBS"; then
18675         pkg_cv_LIBSIGC_LIBS="$LIBSIGC_LIBS"
18676     else
18677         if test -n "$PKG_CONFIG" && \
18678     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sigc++-2.0\""; } >&5
18679   ($PKG_CONFIG --exists --print-errors "sigc++-2.0") 2>&5
18680   ac_status=$?
18681   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18682   test $ac_status = 0; }; then
18683   pkg_cv_LIBSIGC_LIBS=`$PKG_CONFIG --libs "sigc++-2.0" 2>/dev/null`
18684 else
18685   pkg_failed=yes
18686 fi
18687     fi
18688 else
18689         pkg_failed=untried
18690 fi
18691
18692
18693
18694 if test $pkg_failed = yes; then
18695
18696 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18697         _pkg_short_errors_supported=yes
18698 else
18699         _pkg_short_errors_supported=no
18700 fi
18701         if test $_pkg_short_errors_supported = yes; then
18702                 LIBSIGC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sigc++-2.0"`
18703         else
18704                 LIBSIGC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sigc++-2.0"`
18705         fi
18706         # Put the nasty error message in config.log where it belongs
18707         echo "$LIBSIGC_PKG_ERRORS" >&5
18708
18709         as_fn_error "Package requirements (sigc++-2.0) were not met:
18710
18711 $LIBSIGC_PKG_ERRORS
18712
18713 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18714 installed software in a non-standard prefix.
18715
18716 Alternatively, you may set the environment variables LIBSIGC_CFLAGS
18717 and LIBSIGC_LIBS to avoid the need to call pkg-config.
18718 See the pkg-config man page for more details.
18719 " "$LINENO" 5
18720 elif test $pkg_failed = untried; then
18721         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18723 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
18724 is in your PATH or set the PKG_CONFIG environment variable to the full
18725 path to pkg-config.
18726
18727 Alternatively, you may set the environment variables LIBSIGC_CFLAGS
18728 and LIBSIGC_LIBS to avoid the need to call pkg-config.
18729 See the pkg-config man page for more details.
18730
18731 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18732 See \`config.log' for more details." "$LINENO" 5; }
18733 else
18734         LIBSIGC_CFLAGS=$pkg_cv_LIBSIGC_CFLAGS
18735         LIBSIGC_LIBS=$pkg_cv_LIBSIGC_LIBS
18736         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18737 $as_echo "yes" >&6; }
18738         :
18739 fi
18740
18741
18742
18743
18744
18745
18746
18747 # Check whether --enable-editor was given.
18748 if test "${enable_editor+set}" = set; then :
18749   enableval=$enable_editor; use_editor="$enableval"
18750 else
18751   use_editor="yes"
18752 fi
18753
18754  if test $use_editor = "yes"; then
18755   WANT_EDITOR_TRUE=
18756   WANT_EDITOR_FALSE='#'
18757 else
18758   WANT_EDITOR_TRUE='#'
18759   WANT_EDITOR_FALSE=
18760 fi
18761
18762
18763 # Check whether --enable-pbm was given.
18764 if test "${enable_pbm+set}" = set; then :
18765   enableval=$enable_pbm; use_pbm="$enableval"
18766 else
18767   use_pbm="yes"
18768 fi
18769
18770  if test $use_pbm = "yes"; then
18771   WANT_PBM_TRUE=
18772   WANT_PBM_FALSE='#'
18773 else
18774   WANT_PBM_TRUE='#'
18775   WANT_PBM_FALSE=
18776 fi
18777
18778
18779
18780 # Check whether --with-resolution was given.
18781 if test "${with_resolution+set}" = set; then :
18782   withval=$with_resolution; SCREEN_RESOLUTION="$withval"
18783 else
18784   SCREEN_RESOLUTION="800x600"
18785 fi
18786
18787
18788
18789 # Check whether --enable-zipfiles was given.
18790 if test "${enable_zipfiles+set}" = set; then :
18791   enableval=$enable_zipfiles; zipfiles="$enableval"
18792 else
18793   zipfiles="no"
18794 fi
18795
18796
18797 ZIP_FILES="false"
18798 if test x$zipfiles = xyes; then
18799     ZIP_FILES="true"
18800 fi
18801
18802
18803
18804 # Check whether --enable-optimizations was given.
18805 if test "${enable_optimizations+set}" = set; then :
18806   enableval=$enable_optimizations; use_opts="$enableval"
18807 else
18808   use_opts="yes"
18809 fi
18810
18811
18812 if test x$use_opts = xno; then
18813     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Optimizations have been disabled" >&5
18814 $as_echo "$as_me: WARNING: Optimizations have been disabled" >&2;}
18815     CXXFLAGS=-g
18816 fi
18817
18818
18819
18820
18821
18822
18823     am_boost_dir_default=/usr/include
18824     BOOST_CPPFLAGS=''
18825
18826 # Check whether --with-boost_includedir was given.
18827 if test "${with_boost_includedir+set}" = set; then :
18828   withval=$with_boost_includedir; am_boost_dir=$withval
18829 else
18830   am_boost_dir=$am_boost_dir_default
18831 fi
18832
18833
18834     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost directory" >&5
18835 $as_echo_n "checking for boost directory... " >&6; }
18836     if test -d $am_boost_dir/boost; then
18837         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_boost_dir/boost" >&5
18838 $as_echo "$am_boost_dir/boost" >&6; }
18839         BOOST_CPPFLAGS="-I$am_boost_dir"
18840         old_CPPFLAGS=$CPPFLAGS
18841         CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18842         ac_ext=cpp
18843 ac_cpp='$CXXCPP $CPPFLAGS'
18844 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18845 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18846 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18847
18848         for ac_header in boost/version.hpp
18849 do :
18850   ac_fn_cxx_check_header_mongrel "$LINENO" "boost/version.hpp" "ac_cv_header_boost_version_hpp" "$ac_includes_default"
18851 if test "x$ac_cv_header_boost_version_hpp" = x""yes; then :
18852   cat >>confdefs.h <<_ACEOF
18853 #define HAVE_BOOST_VERSION_HPP 1
18854 _ACEOF
18855  :
18856 else
18857   as_fn_error "*** Boost library not found! Install it." "$LINENO" 5
18858 fi
18859
18860 done
18861
18862         ac_ext=c
18863 ac_cpp='$CPP $CPPFLAGS'
18864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18867
18868         CPPFLAGS=$old_CPPFLAGS
18869
18870     else
18871         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18872 $as_echo "not found" >&6; }
18873         as_fn_error "*** Can't find directory $am_boost_dir/boost" "$LINENO" 5
18874         as_fn_error "*** Boost library not found! Install it." "$LINENO" 5
18875     fi
18876
18877
18878
18879 if test x$prefix = xNONE; then
18880     prefix="/usr/local"
18881 fi
18882
18883 rm -f src/main.o
18884
18885 LORDSAWAR_DATADIR="$datadir/lordsawar"
18886 LORDSAWAR_DATADIR=${LORDSAWAR_DATADIR/'${prefix}'/$prefix}
18887
18888
18889 ac_config_files="$ac_config_files dat/Makefile dat/army/Makefile dat/army/default/Makefile dat/army/bigdefault/Makefile dat/tilesets/Makefile dat/tilesets/default/Makefile dat/tilesets/bigdefault/Makefile dat/tilesets/stark/Makefile dat/tilesets/bigstark/Makefile dat/tilesets/wesnoth/Makefile dat/tilesets/bigwesnoth/Makefile dat/shield/Makefile dat/shield/default/Makefile dat/shield/plain/Makefile dat/shield/dol/Makefile dat/citysets/Makefile dat/citysets/default/Makefile dat/citysets/bigdefault/Makefile dat/citysets/dol/Makefile dat/citysets/bigdol/Makefile dat/various/Makefile dat/various/items/Makefile dat/various/editor/Makefile dat/map/Makefile dat/music/Makefile dat/glade/Makefile dat/glade/editor/Makefile po/Makefile.in Makefile src/Makefile doc/Makefile help/Makefile help/figures/Makefile src/editor/Makefile src/pbm/Makefile src/gui/Makefile"
18890
18891 cat >confcache <<\_ACEOF
18892 # This file is a shell script that caches the results of configure
18893 # tests run on this system so they can be shared between configure
18894 # scripts and configure runs, see configure's option --config-cache.
18895 # It is not useful on other systems.  If it contains results you don't
18896 # want to keep, you may remove or edit it.
18897 #
18898 # config.status only pays attention to the cache file if you give it
18899 # the --recheck option to rerun configure.
18900 #
18901 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18902 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18903 # following values.
18904
18905 _ACEOF
18906
18907 # The following way of writing the cache mishandles newlines in values,
18908 # but we know of no workaround that is simple, portable, and efficient.
18909 # So, we kill variables containing newlines.
18910 # Ultrix sh set writes to stderr and can't be redirected directly,
18911 # and sets the high bit in the cache file unless we assign to the vars.
18912 (
18913   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18914     eval ac_val=\$$ac_var
18915     case $ac_val in #(
18916     *${as_nl}*)
18917       case $ac_var in #(
18918       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18919 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18920       esac
18921       case $ac_var in #(
18922       _ | IFS | as_nl) ;; #(
18923       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18924       *) { eval $ac_var=; unset $ac_var;} ;;
18925       esac ;;
18926     esac
18927   done
18928
18929   (set) 2>&1 |
18930     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18931     *${as_nl}ac_space=\ *)
18932       # `set' does not quote correctly, so add quotes: double-quote
18933       # substitution turns \\\\ into \\, and sed turns \\ into \.
18934       sed -n \
18935         "s/'/'\\\\''/g;
18936           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18937       ;; #(
18938     *)
18939       # `set' quotes correctly as required by POSIX, so do not add quotes.
18940       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18941       ;;
18942     esac |
18943     sort
18944 ) |
18945   sed '
18946      /^ac_cv_env_/b end
18947      t clear
18948      :clear
18949      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18950      t end
18951      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18952      :end' >>confcache
18953 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18954   if test -w "$cache_file"; then
18955     test "x$cache_file" != "x/dev/null" &&
18956       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18957 $as_echo "$as_me: updating cache $cache_file" >&6;}
18958     cat confcache >$cache_file
18959   else
18960     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18961 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18962   fi
18963 fi
18964 rm -f confcache
18965
18966 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18967 # Let make expand exec_prefix.
18968 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18969
18970 DEFS=-DHAVE_CONFIG_H
18971
18972 ac_libobjs=
18973 ac_ltlibobjs=
18974 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18975   # 1. Remove the extension, and $U if already installed.
18976   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18977   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18978   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18979   #    will be set to the directory where LIBOBJS objects are built.
18980   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18981   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18982 done
18983 LIBOBJS=$ac_libobjs
18984
18985 LTLIBOBJS=$ac_ltlibobjs
18986
18987
18988  if test -n "$EXEEXT"; then
18989   am__EXEEXT_TRUE=
18990   am__EXEEXT_FALSE='#'
18991 else
18992   am__EXEEXT_TRUE='#'
18993   am__EXEEXT_FALSE=
18994 fi
18995
18996 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18997   as_fn_error "conditional \"AMDEP\" was never defined.
18998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18999 fi
19000 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19001   as_fn_error "conditional \"am__fastdepCC\" was never defined.
19002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19003 fi
19004
19005   ac_config_commands="$ac_config_commands po/stamp-it"
19006
19007
19008 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19009   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
19010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19011 fi
19012 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19013   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
19014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19015 fi
19016 if test -z "${FL_RESRC_TRUE}" && test -z "${FL_RESRC_FALSE}"; then
19017   as_fn_error "conditional \"FL_RESRC\" was never defined.
19018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19019 fi
19020 if test -z "${WANT_EDITOR_TRUE}" && test -z "${WANT_EDITOR_FALSE}"; then
19021   as_fn_error "conditional \"WANT_EDITOR\" was never defined.
19022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19023 fi
19024 if test -z "${WANT_PBM_TRUE}" && test -z "${WANT_PBM_FALSE}"; then
19025   as_fn_error "conditional \"WANT_PBM\" was never defined.
19026 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19027 fi
19028
19029 : ${CONFIG_STATUS=./config.status}
19030 ac_write_fail=0
19031 ac_clean_files_save=$ac_clean_files
19032 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19033 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19034 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19035 as_write_fail=0
19036 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19037 #! $SHELL
19038 # Generated by $as_me.
19039 # Run this file to recreate the current configuration.
19040 # Compiler output produced by configure, useful for debugging
19041 # configure, is in config.log if it exists.
19042
19043 debug=false
19044 ac_cs_recheck=false
19045 ac_cs_silent=false
19046
19047 SHELL=\${CONFIG_SHELL-$SHELL}
19048 export SHELL
19049 _ASEOF
19050 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19051 ## -------------------- ##
19052 ## M4sh Initialization. ##
19053 ## -------------------- ##
19054
19055 # Be more Bourne compatible
19056 DUALCASE=1; export DUALCASE # for MKS sh
19057 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19058   emulate sh
19059   NULLCMD=:
19060   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19061   # is contrary to our usage.  Disable this feature.
19062   alias -g '${1+"$@"}'='"$@"'
19063   setopt NO_GLOB_SUBST
19064 else
19065   case `(set -o) 2>/dev/null` in #(
19066   *posix*) :
19067     set -o posix ;; #(
19068   *) :
19069      ;;
19070 esac
19071 fi
19072
19073
19074 as_nl='
19075 '
19076 export as_nl
19077 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19078 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19079 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19080 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19081 # Prefer a ksh shell builtin over an external printf program on Solaris,
19082 # but without wasting forks for bash or zsh.
19083 if test -z "$BASH_VERSION$ZSH_VERSION" \
19084     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19085   as_echo='print -r --'
19086   as_echo_n='print -rn --'
19087 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19088   as_echo='printf %s\n'
19089   as_echo_n='printf %s'
19090 else
19091   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19092     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19093     as_echo_n='/usr/ucb/echo -n'
19094   else
19095     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19096     as_echo_n_body='eval
19097       arg=$1;
19098       case $arg in #(
19099       *"$as_nl"*)
19100         expr "X$arg" : "X\\(.*\\)$as_nl";
19101         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19102       esac;
19103       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19104     '
19105     export as_echo_n_body
19106     as_echo_n='sh -c $as_echo_n_body as_echo'
19107   fi
19108   export as_echo_body
19109   as_echo='sh -c $as_echo_body as_echo'
19110 fi
19111
19112 # The user is always right.
19113 if test "${PATH_SEPARATOR+set}" != set; then
19114   PATH_SEPARATOR=:
19115   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19116     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19117       PATH_SEPARATOR=';'
19118   }
19119 fi
19120
19121
19122 # IFS
19123 # We need space, tab and new line, in precisely that order.  Quoting is
19124 # there to prevent editors from complaining about space-tab.
19125 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19126 # splitting by setting IFS to empty value.)
19127 IFS=" ""        $as_nl"
19128
19129 # Find who we are.  Look in the path if we contain no directory separator.
19130 case $0 in #((
19131   *[\\/]* ) as_myself=$0 ;;
19132   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19133 for as_dir in $PATH
19134 do
19135   IFS=$as_save_IFS
19136   test -z "$as_dir" && as_dir=.
19137     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19138   done
19139 IFS=$as_save_IFS
19140
19141      ;;
19142 esac
19143 # We did not find ourselves, most probably we were run as `sh COMMAND'
19144 # in which case we are not to be found in the path.
19145 if test "x$as_myself" = x; then
19146   as_myself=$0
19147 fi
19148 if test ! -f "$as_myself"; then
19149   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19150   exit 1
19151 fi
19152
19153 # Unset variables that we do not need and which cause bugs (e.g. in
19154 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19155 # suppresses any "Segmentation fault" message there.  '((' could
19156 # trigger a bug in pdksh 5.2.14.
19157 for as_var in BASH_ENV ENV MAIL MAILPATH
19158 do eval test x\${$as_var+set} = xset \
19159   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19160 done
19161 PS1='$ '
19162 PS2='> '
19163 PS4='+ '
19164
19165 # NLS nuisances.
19166 LC_ALL=C
19167 export LC_ALL
19168 LANGUAGE=C
19169 export LANGUAGE
19170
19171 # CDPATH.
19172 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19173
19174
19175 # as_fn_error ERROR [LINENO LOG_FD]
19176 # ---------------------------------
19177 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19178 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19179 # script with status $?, using 1 if that was 0.
19180 as_fn_error ()
19181 {
19182   as_status=$?; test $as_status -eq 0 && as_status=1
19183   if test "$3"; then
19184     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19185     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
19186   fi
19187   $as_echo "$as_me: error: $1" >&2
19188   as_fn_exit $as_status
19189 } # as_fn_error
19190
19191
19192 # as_fn_set_status STATUS
19193 # -----------------------
19194 # Set $? to STATUS, without forking.
19195 as_fn_set_status ()
19196 {
19197   return $1
19198 } # as_fn_set_status
19199
19200 # as_fn_exit STATUS
19201 # -----------------
19202 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19203 as_fn_exit ()
19204 {
19205   set +e
19206   as_fn_set_status $1
19207   exit $1
19208 } # as_fn_exit
19209
19210 # as_fn_unset VAR
19211 # ---------------
19212 # Portably unset VAR.
19213 as_fn_unset ()
19214 {
19215   { eval $1=; unset $1;}
19216 }
19217 as_unset=as_fn_unset
19218 # as_fn_append VAR VALUE
19219 # ----------------------
19220 # Append the text in VALUE to the end of the definition contained in VAR. Take
19221 # advantage of any shell optimizations that allow amortized linear growth over
19222 # repeated appends, instead of the typical quadratic growth present in naive
19223 # implementations.
19224 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19225   eval 'as_fn_append ()
19226   {
19227     eval $1+=\$2
19228   }'
19229 else
19230   as_fn_append ()
19231   {
19232     eval $1=\$$1\$2
19233   }
19234 fi # as_fn_append
19235
19236 # as_fn_arith ARG...
19237 # ------------------
19238 # Perform arithmetic evaluation on the ARGs, and store the result in the
19239 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19240 # must be portable across $(()) and expr.
19241 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19242   eval 'as_fn_arith ()
19243   {
19244     as_val=$(( $* ))
19245   }'
19246 else
19247   as_fn_arith ()
19248   {
19249     as_val=`expr "$@" || test $? -eq 1`
19250   }
19251 fi # as_fn_arith
19252
19253
19254 if expr a : '\(a\)' >/dev/null 2>&1 &&
19255    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19256   as_expr=expr
19257 else
19258   as_expr=false
19259 fi
19260
19261 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19262   as_basename=basename
19263 else
19264   as_basename=false
19265 fi
19266
19267 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19268   as_dirname=dirname
19269 else
19270   as_dirname=false
19271 fi
19272
19273 as_me=`$as_basename -- "$0" ||
19274 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19275          X"$0" : 'X\(//\)$' \| \
19276          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19277 $as_echo X/"$0" |
19278     sed '/^.*\/\([^/][^/]*\)\/*$/{
19279             s//\1/
19280             q
19281           }
19282           /^X\/\(\/\/\)$/{
19283             s//\1/
19284             q
19285           }
19286           /^X\/\(\/\).*/{
19287             s//\1/
19288             q
19289           }
19290           s/.*/./; q'`
19291
19292 # Avoid depending upon Character Ranges.
19293 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19294 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19295 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19296 as_cr_digits='0123456789'
19297 as_cr_alnum=$as_cr_Letters$as_cr_digits
19298
19299 ECHO_C= ECHO_N= ECHO_T=
19300 case `echo -n x` in #(((((
19301 -n*)
19302   case `echo 'xy\c'` in
19303   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19304   xy)  ECHO_C='\c';;
19305   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19306        ECHO_T=' ';;
19307   esac;;
19308 *)
19309   ECHO_N='-n';;
19310 esac
19311
19312 rm -f conf$$ conf$$.exe conf$$.file
19313 if test -d conf$$.dir; then
19314   rm -f conf$$.dir/conf$$.file
19315 else
19316   rm -f conf$$.dir
19317   mkdir conf$$.dir 2>/dev/null
19318 fi
19319 if (echo >conf$$.file) 2>/dev/null; then
19320   if ln -s conf$$.file conf$$ 2>/dev/null; then
19321     as_ln_s='ln -s'
19322     # ... but there are two gotchas:
19323     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19324     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19325     # In both cases, we have to default to `cp -p'.
19326     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19327       as_ln_s='cp -p'
19328   elif ln conf$$.file conf$$ 2>/dev/null; then
19329     as_ln_s=ln
19330   else
19331     as_ln_s='cp -p'
19332   fi
19333 else
19334   as_ln_s='cp -p'
19335 fi
19336 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19337 rmdir conf$$.dir 2>/dev/null
19338
19339
19340 # as_fn_mkdir_p
19341 # -------------
19342 # Create "$as_dir" as a directory, including parents if necessary.
19343 as_fn_mkdir_p ()
19344 {
19345
19346   case $as_dir in #(
19347   -*) as_dir=./$as_dir;;
19348   esac
19349   test -d "$as_dir" || eval $as_mkdir_p || {
19350     as_dirs=
19351     while :; do
19352       case $as_dir in #(
19353       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19354       *) as_qdir=$as_dir;;
19355       esac
19356       as_dirs="'$as_qdir' $as_dirs"
19357       as_dir=`$as_dirname -- "$as_dir" ||
19358 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19359          X"$as_dir" : 'X\(//\)[^/]' \| \
19360          X"$as_dir" : 'X\(//\)$' \| \
19361          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19362 $as_echo X"$as_dir" |
19363     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19364             s//\1/
19365             q
19366           }
19367           /^X\(\/\/\)[^/].*/{
19368             s//\1/
19369             q
19370           }
19371           /^X\(\/\/\)$/{
19372             s//\1/
19373             q
19374           }
19375           /^X\(\/\).*/{
19376             s//\1/
19377             q
19378           }
19379           s/.*/./; q'`
19380       test -d "$as_dir" && break
19381     done
19382     test -z "$as_dirs" || eval "mkdir $as_dirs"
19383   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
19384
19385
19386 } # as_fn_mkdir_p
19387 if mkdir -p . 2>/dev/null; then
19388   as_mkdir_p='mkdir -p "$as_dir"'
19389 else
19390   test -d ./-p && rmdir ./-p
19391   as_mkdir_p=false
19392 fi
19393
19394 if test -x / >/dev/null 2>&1; then
19395   as_test_x='test -x'
19396 else
19397   if ls -dL / >/dev/null 2>&1; then
19398     as_ls_L_option=L
19399   else
19400     as_ls_L_option=
19401   fi
19402   as_test_x='
19403     eval sh -c '\''
19404       if test -d "$1"; then
19405         test -d "$1/.";
19406       else
19407         case $1 in #(
19408         -*)set "./$1";;
19409         esac;
19410         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19411         ???[sx]*):;;*)false;;esac;fi
19412     '\'' sh
19413   '
19414 fi
19415 as_executable_p=$as_test_x
19416
19417 # Sed expression to map a string onto a valid CPP name.
19418 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19419
19420 # Sed expression to map a string onto a valid variable name.
19421 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19422
19423
19424 exec 6>&1
19425 ## ----------------------------------- ##
19426 ## Main body of $CONFIG_STATUS script. ##
19427 ## ----------------------------------- ##
19428 _ASEOF
19429 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19430
19431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19432 # Save the log message, to keep $0 and so on meaningful, and to
19433 # report actual input values of CONFIG_FILES etc. instead of their
19434 # values after options handling.
19435 ac_log="
19436 This file was extended by lordsawar $as_me 0.1.7-pre2, which was
19437 generated by GNU Autoconf 2.64.  Invocation command line was
19438
19439   CONFIG_FILES    = $CONFIG_FILES
19440   CONFIG_HEADERS  = $CONFIG_HEADERS
19441   CONFIG_LINKS    = $CONFIG_LINKS
19442   CONFIG_COMMANDS = $CONFIG_COMMANDS
19443   $ $0 $@
19444
19445 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19446 "
19447
19448 _ACEOF
19449
19450 case $ac_config_files in *"
19451 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19452 esac
19453
19454 case $ac_config_headers in *"
19455 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19456 esac
19457
19458
19459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19460 # Files that config.status was made for.
19461 config_files="$ac_config_files"
19462 config_headers="$ac_config_headers"
19463 config_commands="$ac_config_commands"
19464
19465 _ACEOF
19466
19467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19468 ac_cs_usage="\
19469 \`$as_me' instantiates files and other configuration actions
19470 from templates according to the current configuration.  Unless the files
19471 and actions are specified as TAGs, all are instantiated by default.
19472
19473 Usage: $0 [OPTION]... [TAG]...
19474
19475   -h, --help       print this help, then exit
19476   -V, --version    print version number and configuration settings, then exit
19477   -q, --quiet, --silent
19478                    do not print progress messages
19479   -d, --debug      don't remove temporary files
19480       --recheck    update $as_me by reconfiguring in the same conditions
19481       --file=FILE[:TEMPLATE]
19482                    instantiate the configuration file FILE
19483       --header=FILE[:TEMPLATE]
19484                    instantiate the configuration header FILE
19485
19486 Configuration files:
19487 $config_files
19488
19489 Configuration headers:
19490 $config_headers
19491
19492 Configuration commands:
19493 $config_commands
19494
19495 Report bugs to <http://sv.nongnu.org/bugs/?group=lordsawar>."
19496
19497 _ACEOF
19498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19499 ac_cs_version="\\
19500 lordsawar config.status 0.1.7-pre2
19501 configured by $0, generated by GNU Autoconf 2.64,
19502   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19503
19504 Copyright (C) 2009 Free Software Foundation, Inc.
19505 This config.status script is free software; the Free Software Foundation
19506 gives unlimited permission to copy, distribute and modify it."
19507
19508 ac_pwd='$ac_pwd'
19509 srcdir='$srcdir'
19510 INSTALL='$INSTALL'
19511 MKDIR_P='$MKDIR_P'
19512 AWK='$AWK'
19513 test -n "\$AWK" || AWK=awk
19514 _ACEOF
19515
19516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19517 # The default lists apply if the user does not specify any file.
19518 ac_need_defaults=:
19519 while test $# != 0
19520 do
19521   case $1 in
19522   --*=*)
19523     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19524     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19525     ac_shift=:
19526     ;;
19527   *)
19528     ac_option=$1
19529     ac_optarg=$2
19530     ac_shift=shift
19531     ;;
19532   esac
19533
19534   case $ac_option in
19535   # Handling of the options.
19536   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19537     ac_cs_recheck=: ;;
19538   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19539     $as_echo "$ac_cs_version"; exit ;;
19540   --debug | --debu | --deb | --de | --d | -d )
19541     debug=: ;;
19542   --file | --fil | --fi | --f )
19543     $ac_shift
19544     case $ac_optarg in
19545     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19546     esac
19547     as_fn_append CONFIG_FILES " '$ac_optarg'"
19548     ac_need_defaults=false;;
19549   --header | --heade | --head | --hea )
19550     $ac_shift
19551     case $ac_optarg in
19552     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19553     esac
19554     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19555     ac_need_defaults=false;;
19556   --he | --h)
19557     # Conflict between --help and --header
19558     as_fn_error "ambiguous option: \`$1'
19559 Try \`$0 --help' for more information.";;
19560   --help | --hel | -h )
19561     $as_echo "$ac_cs_usage"; exit ;;
19562   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19563   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19564     ac_cs_silent=: ;;
19565
19566   # This is an error.
19567   -*) as_fn_error "unrecognized option: \`$1'
19568 Try \`$0 --help' for more information." ;;
19569
19570   *) as_fn_append ac_config_targets " $1"
19571      ac_need_defaults=false ;;
19572
19573   esac
19574   shift
19575 done
19576
19577 ac_configure_extra_args=
19578
19579 if $ac_cs_silent; then
19580   exec 6>/dev/null
19581   ac_configure_extra_args="$ac_configure_extra_args --silent"
19582 fi
19583
19584 _ACEOF
19585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19586 if \$ac_cs_recheck; then
19587   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19588   shift
19589   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19590   CONFIG_SHELL='$SHELL'
19591   export CONFIG_SHELL
19592   exec "\$@"
19593 fi
19594
19595 _ACEOF
19596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19597 exec 5>>config.log
19598 {
19599   echo
19600   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19601 ## Running $as_me. ##
19602 _ASBOX
19603   $as_echo "$ac_log"
19604 } >&5
19605
19606 _ACEOF
19607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19608 #
19609 # INIT-COMMANDS
19610 #
19611 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19612
19613
19614
19615 # The HP-UX ksh and POSIX shell print the target directory to stdout
19616 # if CDPATH is set.
19617 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19618
19619 sed_quote_subst='$sed_quote_subst'
19620 double_quote_subst='$double_quote_subst'
19621 delay_variable_subst='$delay_variable_subst'
19622 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
19623 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
19624 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
19625 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
19626 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
19627 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
19628 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
19629 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
19630 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
19631 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
19632 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
19633 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
19634 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
19635 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
19636 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
19637 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
19638 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
19639 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
19640 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
19641 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
19642 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
19643 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
19644 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
19645 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
19646 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
19647 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
19648 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
19649 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19650 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
19651 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
19652 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
19653 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
19654 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19655 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
19656 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
19657 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19658 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19659 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19660 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
19661 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19662 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
19663 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
19664 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
19665 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
19666 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
19667 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19668 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
19669 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
19670 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
19671 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
19672 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
19673 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
19674 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
19675 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
19676 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
19677 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
19678 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
19679 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
19680 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
19681 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
19682 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
19683 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
19684 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19685 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19686 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
19687 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
19688 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19689 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19690 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
19691 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19692 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19693 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19694 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19695 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19696 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19697 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
19698 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19699 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19700 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19701 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
19702 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
19703 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
19704 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
19705 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
19706 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19707 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
19708 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
19709 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
19710 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
19711 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
19712 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19713 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19714 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19715 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19716 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
19717 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
19718 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19719 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
19720 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
19721 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19722 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19723 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
19724 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19725 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
19726 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19727 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19728 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19729 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19730 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
19731 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
19732 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19733 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19734 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
19735 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
19736 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
19737 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
19738 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
19739 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
19740 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
19741 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
19742 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
19743 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
19744 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
19745 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
19746 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19747 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19748 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19749 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19750 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19751 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19752 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19753 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19754 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19755 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19756 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19757 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19758 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19759 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19760 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19761 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19762 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19763 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19764 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19765 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19766 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19767 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19768 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19769 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19770 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19771 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19772 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19773 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19774 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19775 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19776 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19777 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19778 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19779 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19780 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19781 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19782 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19783 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19784 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19785 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19786 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19787 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19788 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19789 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19790 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19791 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19792 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19793
19794 LTCC='$LTCC'
19795 LTCFLAGS='$LTCFLAGS'
19796 compiler='$compiler_DEFAULT'
19797
19798 # Quote evaled strings.
19799 for var in SED \
19800 GREP \
19801 EGREP \
19802 FGREP \
19803 LD \
19804 NM \
19805 LN_S \
19806 lt_SP2NL \
19807 lt_NL2SP \
19808 reload_flag \
19809 OBJDUMP \
19810 deplibs_check_method \
19811 file_magic_cmd \
19812 AR \
19813 AR_FLAGS \
19814 STRIP \
19815 RANLIB \
19816 CC \
19817 CFLAGS \
19818 compiler \
19819 lt_cv_sys_global_symbol_pipe \
19820 lt_cv_sys_global_symbol_to_cdecl \
19821 lt_cv_sys_global_symbol_to_c_name_address \
19822 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19823 SHELL \
19824 ECHO \
19825 lt_prog_compiler_no_builtin_flag \
19826 lt_prog_compiler_wl \
19827 lt_prog_compiler_pic \
19828 lt_prog_compiler_static \
19829 lt_cv_prog_compiler_c_o \
19830 need_locks \
19831 DSYMUTIL \
19832 NMEDIT \
19833 LIPO \
19834 OTOOL \
19835 OTOOL64 \
19836 shrext_cmds \
19837 export_dynamic_flag_spec \
19838 whole_archive_flag_spec \
19839 compiler_needs_object \
19840 with_gnu_ld \
19841 allow_undefined_flag \
19842 no_undefined_flag \
19843 hardcode_libdir_flag_spec \
19844 hardcode_libdir_flag_spec_ld \
19845 hardcode_libdir_separator \
19846 fix_srcfile_path \
19847 exclude_expsyms \
19848 include_expsyms \
19849 file_list_spec \
19850 variables_saved_for_relink \
19851 libname_spec \
19852 library_names_spec \
19853 soname_spec \
19854 finish_eval \
19855 old_striplib \
19856 striplib \
19857 compiler_lib_search_dirs \
19858 predep_objects \
19859 postdep_objects \
19860 predeps \
19861 postdeps \
19862 compiler_lib_search_path \
19863 LD_CXX \
19864 compiler_CXX \
19865 lt_prog_compiler_no_builtin_flag_CXX \
19866 lt_prog_compiler_wl_CXX \
19867 lt_prog_compiler_pic_CXX \
19868 lt_prog_compiler_static_CXX \
19869 lt_cv_prog_compiler_c_o_CXX \
19870 export_dynamic_flag_spec_CXX \
19871 whole_archive_flag_spec_CXX \
19872 compiler_needs_object_CXX \
19873 with_gnu_ld_CXX \
19874 allow_undefined_flag_CXX \
19875 no_undefined_flag_CXX \
19876 hardcode_libdir_flag_spec_CXX \
19877 hardcode_libdir_flag_spec_ld_CXX \
19878 hardcode_libdir_separator_CXX \
19879 fix_srcfile_path_CXX \
19880 exclude_expsyms_CXX \
19881 include_expsyms_CXX \
19882 file_list_spec_CXX \
19883 compiler_lib_search_dirs_CXX \
19884 predep_objects_CXX \
19885 postdep_objects_CXX \
19886 predeps_CXX \
19887 postdeps_CXX \
19888 compiler_lib_search_path_CXX; do
19889     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19890     *[\\\\\\\`\\"\\\$]*)
19891       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19892       ;;
19893     *)
19894       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19895       ;;
19896     esac
19897 done
19898
19899 # Double-quote double-evaled strings.
19900 for var in reload_cmds \
19901 old_postinstall_cmds \
19902 old_postuninstall_cmds \
19903 old_archive_cmds \
19904 extract_expsyms_cmds \
19905 old_archive_from_new_cmds \
19906 old_archive_from_expsyms_cmds \
19907 archive_cmds \
19908 archive_expsym_cmds \
19909 module_cmds \
19910 module_expsym_cmds \
19911 export_symbols_cmds \
19912 prelink_cmds \
19913 postinstall_cmds \
19914 postuninstall_cmds \
19915 finish_cmds \
19916 sys_lib_search_path_spec \
19917 sys_lib_dlsearch_path_spec \
19918 old_archive_cmds_CXX \
19919 old_archive_from_new_cmds_CXX \
19920 old_archive_from_expsyms_cmds_CXX \
19921 archive_cmds_CXX \
19922 archive_expsym_cmds_CXX \
19923 module_cmds_CXX \
19924 module_expsym_cmds_CXX \
19925 export_symbols_cmds_CXX \
19926 prelink_cmds_CXX; do
19927     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19928     *[\\\\\\\`\\"\\\$]*)
19929       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19930       ;;
19931     *)
19932       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19933       ;;
19934     esac
19935 done
19936
19937 # Fix-up fallback echo if it was mangled by the above quoting rules.
19938 case \$lt_ECHO in
19939 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
19940   ;;
19941 esac
19942
19943 ac_aux_dir='$ac_aux_dir'
19944 xsi_shell='$xsi_shell'
19945 lt_shell_append='$lt_shell_append'
19946
19947 # See if we are running on zsh, and set the options which allow our
19948 # commands through without removal of \ escapes INIT.
19949 if test -n "\${ZSH_VERSION+set}" ; then
19950    setopt NO_GLOB_SUBST
19951 fi
19952
19953
19954     PACKAGE='$PACKAGE'
19955     VERSION='$VERSION'
19956     TIMESTAMP='$TIMESTAMP'
19957     RM='$RM'
19958     ofile='$ofile'
19959
19960
19961
19962
19963
19964 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
19965     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
19966     # from automake < 1.5.
19967     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
19968     # Capture the value of LINGUAS because we need it to compute CATALOGS.
19969     LINGUAS="${LINGUAS-%UNSET%}"
19970
19971
19972 _ACEOF
19973
19974 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19975
19976 # Handling of arguments.
19977 for ac_config_target in $ac_config_targets
19978 do
19979   case $ac_config_target in
19980     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19981     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19982     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
19983     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19984     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
19985     "dat/Makefile") CONFIG_FILES="$CONFIG_FILES dat/Makefile" ;;
19986     "dat/army/Makefile") CONFIG_FILES="$CONFIG_FILES dat/army/Makefile" ;;
19987     "dat/army/default/Makefile") CONFIG_FILES="$CONFIG_FILES dat/army/default/Makefile" ;;
19988     "dat/army/bigdefault/Makefile") CONFIG_FILES="$CONFIG_FILES dat/army/bigdefault/Makefile" ;;
19989     "dat/tilesets/Makefile") CONFIG_FILES="$CONFIG_FILES dat/tilesets/Makefile" ;;
19990     "dat/tilesets/default/Makefile") CONFIG_FILES="$CONFIG_FILES dat/tilesets/default/Makefile" ;;
19991     "dat/tilesets/bigdefault/Makefile") CONFIG_FILES="$CONFIG_FILES dat/tilesets/bigdefault/Makefile" ;;
19992     "dat/tilesets/stark/Makefile") CONFIG_FILES="$CONFIG_FILES dat/tilesets/stark/Makefile" ;;
19993     "dat/tilesets/bigstark/Makefile") CONFIG_FILES="$CONFIG_FILES dat/tilesets/bigstark/Makefile" ;;
19994     "dat/tilesets/wesnoth/Makefile") CONFIG_FILES="$CONFIG_FILES dat/tilesets/wesnoth/Makefile" ;;
19995     "dat/tilesets/bigwesnoth/Makefile") CONFIG_FILES="$CONFIG_FILES dat/tilesets/bigwesnoth/Makefile" ;;
19996     "dat/shield/Makefile") CONFIG_FILES="$CONFIG_FILES dat/shield/Makefile" ;;
19997     "dat/shield/default/Makefile") CONFIG_FILES="$CONFIG_FILES dat/shield/default/Makefile" ;;
19998     "dat/shield/plain/Makefile") CONFIG_FILES="$CONFIG_FILES dat/shield/plain/Makefile" ;;
19999     "dat/shield/dol/Makefile") CONFIG_FILES="$CONFIG_FILES dat/shield/dol/Makefile" ;;
20000     "dat/citysets/Makefile") CONFIG_FILES="$CONFIG_FILES dat/citysets/Makefile" ;;
20001     "dat/citysets/default/Makefile") CONFIG_FILES="$CONFIG_FILES dat/citysets/default/Makefile" ;;
20002     "dat/citysets/bigdefault/Makefile") CONFIG_FILES="$CONFIG_FILES dat/citysets/bigdefault/Makefile" ;;
20003     "dat/citysets/dol/Makefile") CONFIG_FILES="$CONFIG_FILES dat/citysets/dol/Makefile" ;;
20004     "dat/citysets/bigdol/Makefile") CONFIG_FILES="$CONFIG_FILES dat/citysets/bigdol/Makefile" ;;
20005     "dat/various/Makefile") CONFIG_FILES="$CONFIG_FILES dat/various/Makefile" ;;
20006     "dat/various/items/Makefile") CONFIG_FILES="$CONFIG_FILES dat/various/items/Makefile" ;;
20007     "dat/various/editor/Makefile") CONFIG_FILES="$CONFIG_FILES dat/various/editor/Makefile" ;;
20008     "dat/map/Makefile") CONFIG_FILES="$CONFIG_FILES dat/map/Makefile" ;;
20009     "dat/music/Makefile") CONFIG_FILES="$CONFIG_FILES dat/music/Makefile" ;;
20010     "dat/glade/Makefile") CONFIG_FILES="$CONFIG_FILES dat/glade/Makefile" ;;
20011     "dat/glade/editor/Makefile") CONFIG_FILES="$CONFIG_FILES dat/glade/editor/Makefile" ;;
20012     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
20013     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20014     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20015     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20016     "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
20017     "help/figures/Makefile") CONFIG_FILES="$CONFIG_FILES help/figures/Makefile" ;;
20018     "src/editor/Makefile") CONFIG_FILES="$CONFIG_FILES src/editor/Makefile" ;;
20019     "src/pbm/Makefile") CONFIG_FILES="$CONFIG_FILES src/pbm/Makefile" ;;
20020     "src/gui/Makefile") CONFIG_FILES="$CONFIG_FILES src/gui/Makefile" ;;
20021     "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
20022
20023   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20024   esac
20025 done
20026
20027
20028 # If the user did not use the arguments to specify the items to instantiate,
20029 # then the envvar interface is used.  Set only those that are not.
20030 # We use the long form for the default assignment because of an extremely
20031 # bizarre bug on SunOS 4.1.3.
20032 if $ac_need_defaults; then
20033   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20034   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20035   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20036 fi
20037
20038 # Have a temporary directory for convenience.  Make it in the build tree
20039 # simply because there is no reason against having it here, and in addition,
20040 # creating and moving files from /tmp can sometimes cause problems.
20041 # Hook for its removal unless debugging.
20042 # Note that there is a small window in which the directory will not be cleaned:
20043 # after its creation but before its name has been assigned to `$tmp'.
20044 $debug ||
20045 {
20046   tmp=
20047   trap 'exit_status=$?
20048   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20049 ' 0
20050   trap 'as_fn_exit 1' 1 2 13 15
20051 }
20052 # Create a (secure) tmp directory for tmp files.
20053
20054 {
20055   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20056   test -n "$tmp" && test -d "$tmp"
20057 }  ||
20058 {
20059   tmp=./conf$$-$RANDOM
20060   (umask 077 && mkdir "$tmp")
20061 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
20062
20063 # Set up the scripts for CONFIG_FILES section.
20064 # No need to generate them if there are no CONFIG_FILES.
20065 # This happens for instance with `./config.status config.h'.
20066 if test -n "$CONFIG_FILES"; then
20067
20068
20069 ac_cr=`echo X | tr X '\015'`
20070 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20071 # But we know of no other shell where ac_cr would be empty at this
20072 # point, so we can use a bashism as a fallback.
20073 if test "x$ac_cr" = x; then
20074   eval ac_cr=\$\'\\r\'
20075 fi
20076 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20077 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20078   ac_cs_awk_cr='\r'
20079 else
20080   ac_cs_awk_cr=$ac_cr
20081 fi
20082
20083 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20084 _ACEOF
20085
20086
20087 {
20088   echo "cat >conf$$subs.awk <<_ACEOF" &&
20089   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20090   echo "_ACEOF"
20091 } >conf$$subs.sh ||
20092   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20093 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20094 ac_delim='%!_!# '
20095 for ac_last_try in false false false false false :; do
20096   . ./conf$$subs.sh ||
20097     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20098
20099   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20100   if test $ac_delim_n = $ac_delim_num; then
20101     break
20102   elif $ac_last_try; then
20103     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20104   else
20105     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20106   fi
20107 done
20108 rm -f conf$$subs.sh
20109
20110 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20111 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20112 _ACEOF
20113 sed -n '
20114 h
20115 s/^/S["/; s/!.*/"]=/
20116 p
20117 g
20118 s/^[^!]*!//
20119 :repl
20120 t repl
20121 s/'"$ac_delim"'$//
20122 t delim
20123 :nl
20124 h
20125 s/\(.\{148\}\).*/\1/
20126 t more1
20127 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20128 p
20129 n
20130 b repl
20131 :more1
20132 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20133 p
20134 g
20135 s/.\{148\}//
20136 t nl
20137 :delim
20138 h
20139 s/\(.\{148\}\).*/\1/
20140 t more2
20141 s/["\\]/\\&/g; s/^/"/; s/$/"/
20142 p
20143 b
20144 :more2
20145 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20146 p
20147 g
20148 s/.\{148\}//
20149 t delim
20150 ' <conf$$subs.awk | sed '
20151 /^[^""]/{
20152   N
20153   s/\n//
20154 }
20155 ' >>$CONFIG_STATUS || ac_write_fail=1
20156 rm -f conf$$subs.awk
20157 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20158 _ACAWK
20159 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
20160   for (key in S) S_is_set[key] = 1
20161   FS = "\a"
20162
20163 }
20164 {
20165   line = $ 0
20166   nfields = split(line, field, "@")
20167   substed = 0
20168   len = length(field[1])
20169   for (i = 2; i < nfields; i++) {
20170     key = field[i]
20171     keylen = length(key)
20172     if (S_is_set[key]) {
20173       value = S[key]
20174       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20175       len += length(value) + length(field[++i])
20176       substed = 1
20177     } else
20178       len += 1 + keylen
20179   }
20180
20181   print line
20182 }
20183
20184 _ACAWK
20185 _ACEOF
20186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20187 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20188   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20189 else
20190   cat
20191 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
20192   || as_fn_error "could not setup config files machinery" "$LINENO" 5
20193 _ACEOF
20194
20195 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20196 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20197 # trailing colons and then remove the whole line if VPATH becomes empty
20198 # (actually we leave an empty line to preserve line numbers).
20199 if test "x$srcdir" = x.; then
20200   ac_vpsub='/^[  ]*VPATH[        ]*=/{
20201 s/:*\$(srcdir):*/:/
20202 s/:*\${srcdir}:*/:/
20203 s/:*@srcdir@:*/:/
20204 s/^\([^=]*=[     ]*\):*/\1/
20205 s/:*$//
20206 s/^[^=]*=[       ]*$//
20207 }'
20208 fi
20209
20210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20211 fi # test -n "$CONFIG_FILES"
20212
20213 # Set up the scripts for CONFIG_HEADERS section.
20214 # No need to generate them if there are no CONFIG_HEADERS.
20215 # This happens for instance with `./config.status Makefile'.
20216 if test -n "$CONFIG_HEADERS"; then
20217 cat >"$tmp/defines.awk" <<\_ACAWK ||
20218 BEGIN {
20219 _ACEOF
20220
20221 # Transform confdefs.h into an awk script `defines.awk', embedded as
20222 # here-document in config.status, that substitutes the proper values into
20223 # config.h.in to produce config.h.
20224
20225 # Create a delimiter string that does not exist in confdefs.h, to ease
20226 # handling of long lines.
20227 ac_delim='%!_!# '
20228 for ac_last_try in false false :; do
20229   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
20230   if test -z "$ac_t"; then
20231     break
20232   elif $ac_last_try; then
20233     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
20234   else
20235     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20236   fi
20237 done
20238
20239 # For the awk script, D is an array of macro values keyed by name,
20240 # likewise P contains macro parameters if any.  Preserve backslash
20241 # newline sequences.
20242
20243 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20244 sed -n '
20245 s/.\{148\}/&'"$ac_delim"'/g
20246 t rset
20247 :rset
20248 s/^[     ]*#[    ]*define[       ][      ]*/ /
20249 t def
20250 d
20251 :def
20252 s/\\$//
20253 t bsnl
20254 s/["\\]/\\&/g
20255 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20256 D["\1"]=" \3"/p
20257 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
20258 d
20259 :bsnl
20260 s/["\\]/\\&/g
20261 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20262 D["\1"]=" \3\\\\\\n"\\/p
20263 t cont
20264 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20265 t cont
20266 d
20267 :cont
20268 n
20269 s/.\{148\}/&'"$ac_delim"'/g
20270 t clear
20271 :clear
20272 s/\\$//
20273 t bsnlc
20274 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20275 d
20276 :bsnlc
20277 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20278 b cont
20279 ' <confdefs.h | sed '
20280 s/'"$ac_delim"'/"\\\
20281 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20282
20283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20284   for (key in D) D_is_set[key] = 1
20285   FS = "\a"
20286 }
20287 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20288   line = \$ 0
20289   split(line, arg, " ")
20290   if (arg[1] == "#") {
20291     defundef = arg[2]
20292     mac1 = arg[3]
20293   } else {
20294     defundef = substr(arg[1], 2)
20295     mac1 = arg[2]
20296   }
20297   split(mac1, mac2, "(") #)
20298   macro = mac2[1]
20299   prefix = substr(line, 1, index(line, defundef) - 1)
20300   if (D_is_set[macro]) {
20301     # Preserve the white space surrounding the "#".
20302     print prefix "define", macro P[macro] D[macro]
20303     next
20304   } else {
20305     # Replace #undef with comments.  This is necessary, for example,
20306     # in the case of _POSIX_SOURCE, which is predefined and required
20307     # on some systems where configure will not decide to define it.
20308     if (defundef == "undef") {
20309       print "/*", prefix defundef, macro, "*/"
20310       next
20311     }
20312   }
20313 }
20314 { print }
20315 _ACAWK
20316 _ACEOF
20317 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20318   as_fn_error "could not setup config headers machinery" "$LINENO" 5
20319 fi # test -n "$CONFIG_HEADERS"
20320
20321
20322 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20323 shift
20324 for ac_tag
20325 do
20326   case $ac_tag in
20327   :[FHLC]) ac_mode=$ac_tag; continue;;
20328   esac
20329   case $ac_mode$ac_tag in
20330   :[FHL]*:*);;
20331   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
20332   :[FH]-) ac_tag=-:-;;
20333   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20334   esac
20335   ac_save_IFS=$IFS
20336   IFS=:
20337   set x $ac_tag
20338   IFS=$ac_save_IFS
20339   shift
20340   ac_file=$1
20341   shift
20342
20343   case $ac_mode in
20344   :L) ac_source=$1;;
20345   :[FH])
20346     ac_file_inputs=
20347     for ac_f
20348     do
20349       case $ac_f in
20350       -) ac_f="$tmp/stdin";;
20351       *) # Look for the file first in the build tree, then in the source tree
20352          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20353          # because $ac_f cannot contain `:'.
20354          test -f "$ac_f" ||
20355            case $ac_f in
20356            [\\/$]*) false;;
20357            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20358            esac ||
20359            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20360       esac
20361       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20362       as_fn_append ac_file_inputs " '$ac_f'"
20363     done
20364
20365     # Let's still pretend it is `configure' which instantiates (i.e., don't
20366     # use $as_me), people would be surprised to read:
20367     #    /* config.h.  Generated by config.status.  */
20368     configure_input='Generated from '`
20369           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20370         `' by configure.'
20371     if test x"$ac_file" != x-; then
20372       configure_input="$ac_file.  $configure_input"
20373       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20374 $as_echo "$as_me: creating $ac_file" >&6;}
20375     fi
20376     # Neutralize special characters interpreted by sed in replacement strings.
20377     case $configure_input in #(
20378     *\&* | *\|* | *\\* )
20379        ac_sed_conf_input=`$as_echo "$configure_input" |
20380        sed 's/[\\\\&|]/\\\\&/g'`;; #(
20381     *) ac_sed_conf_input=$configure_input;;
20382     esac
20383
20384     case $ac_tag in
20385     *:-:* | *:-) cat >"$tmp/stdin" \
20386       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
20387     esac
20388     ;;
20389   esac
20390
20391   ac_dir=`$as_dirname -- "$ac_file" ||
20392 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20393          X"$ac_file" : 'X\(//\)[^/]' \| \
20394          X"$ac_file" : 'X\(//\)$' \| \
20395          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20396 $as_echo X"$ac_file" |
20397     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20398             s//\1/
20399             q
20400           }
20401           /^X\(\/\/\)[^/].*/{
20402             s//\1/
20403             q
20404           }
20405           /^X\(\/\/\)$/{
20406             s//\1/
20407             q
20408           }
20409           /^X\(\/\).*/{
20410             s//\1/
20411             q
20412           }
20413           s/.*/./; q'`
20414   as_dir="$ac_dir"; as_fn_mkdir_p
20415   ac_builddir=.
20416
20417 case "$ac_dir" in
20418 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20419 *)
20420   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20421   # A ".." for each directory in $ac_dir_suffix.
20422   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20423   case $ac_top_builddir_sub in
20424   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20425   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20426   esac ;;
20427 esac
20428 ac_abs_top_builddir=$ac_pwd
20429 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20430 # for backward compatibility:
20431 ac_top_builddir=$ac_top_build_prefix
20432
20433 case $srcdir in
20434   .)  # We are building in place.
20435     ac_srcdir=.
20436     ac_top_srcdir=$ac_top_builddir_sub
20437     ac_abs_top_srcdir=$ac_pwd ;;
20438   [\\/]* | ?:[\\/]* )  # Absolute name.
20439     ac_srcdir=$srcdir$ac_dir_suffix;
20440     ac_top_srcdir=$srcdir
20441     ac_abs_top_srcdir=$srcdir ;;
20442   *) # Relative name.
20443     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20444     ac_top_srcdir=$ac_top_build_prefix$srcdir
20445     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20446 esac
20447 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20448
20449
20450   case $ac_mode in
20451   :F)
20452   #
20453   # CONFIG_FILE
20454   #
20455
20456   case $INSTALL in
20457   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20458   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20459   esac
20460   ac_MKDIR_P=$MKDIR_P
20461   case $MKDIR_P in
20462   [\\/$]* | ?:[\\/]* ) ;;
20463   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20464   esac
20465 _ACEOF
20466
20467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20468 # If the template does not know about datarootdir, expand it.
20469 # FIXME: This hack should be removed a few years after 2.60.
20470 ac_datarootdir_hack=; ac_datarootdir_seen=
20471 ac_sed_dataroot='
20472 /datarootdir/ {
20473   p
20474   q
20475 }
20476 /@datadir@/p
20477 /@docdir@/p
20478 /@infodir@/p
20479 /@localedir@/p
20480 /@mandir@/p'
20481 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20482 *datarootdir*) ac_datarootdir_seen=yes;;
20483 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20484   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20485 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20486 _ACEOF
20487 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20488   ac_datarootdir_hack='
20489   s&@datadir@&$datadir&g
20490   s&@docdir@&$docdir&g
20491   s&@infodir@&$infodir&g
20492   s&@localedir@&$localedir&g
20493   s&@mandir@&$mandir&g
20494   s&\\\${datarootdir}&$datarootdir&g' ;;
20495 esac
20496 _ACEOF
20497
20498 # Neutralize VPATH when `$srcdir' = `.'.
20499 # Shell code in configure.ac might set extrasub.
20500 # FIXME: do we really want to maintain this feature?
20501 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20502 ac_sed_extra="$ac_vpsub
20503 $extrasub
20504 _ACEOF
20505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20506 :t
20507 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20508 s|@configure_input@|$ac_sed_conf_input|;t t
20509 s&@top_builddir@&$ac_top_builddir_sub&;t t
20510 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20511 s&@srcdir@&$ac_srcdir&;t t
20512 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20513 s&@top_srcdir@&$ac_top_srcdir&;t t
20514 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20515 s&@builddir@&$ac_builddir&;t t
20516 s&@abs_builddir@&$ac_abs_builddir&;t t
20517 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20518 s&@INSTALL@&$ac_INSTALL&;t t
20519 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20520 $ac_datarootdir_hack
20521 "
20522 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
20523   || as_fn_error "could not create $ac_file" "$LINENO" 5
20524
20525 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20526   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20527   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20528   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20529 which seems to be undefined.  Please make sure it is defined." >&5
20530 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20531 which seems to be undefined.  Please make sure it is defined." >&2;}
20532
20533   rm -f "$tmp/stdin"
20534   case $ac_file in
20535   -) cat "$tmp/out" && rm -f "$tmp/out";;
20536   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20537   esac \
20538   || as_fn_error "could not create $ac_file" "$LINENO" 5
20539  ;;
20540   :H)
20541   #
20542   # CONFIG_HEADER
20543   #
20544   if test x"$ac_file" != x-; then
20545     {
20546       $as_echo "/* $configure_input  */" \
20547       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
20548     } >"$tmp/config.h" \
20549       || as_fn_error "could not create $ac_file" "$LINENO" 5
20550     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20551       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20552 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20553     else
20554       rm -f "$ac_file"
20555       mv "$tmp/config.h" "$ac_file" \
20556         || as_fn_error "could not create $ac_file" "$LINENO" 5
20557     fi
20558   else
20559     $as_echo "/* $configure_input  */" \
20560       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20561       || as_fn_error "could not create -" "$LINENO" 5
20562   fi
20563 # Compute "$ac_file"'s index in $config_headers.
20564 _am_arg="$ac_file"
20565 _am_stamp_count=1
20566 for _am_header in $config_headers :; do
20567   case $_am_header in
20568     $_am_arg | $_am_arg:* )
20569       break ;;
20570     * )
20571       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20572   esac
20573 done
20574 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20575 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20576          X"$_am_arg" : 'X\(//\)[^/]' \| \
20577          X"$_am_arg" : 'X\(//\)$' \| \
20578          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20579 $as_echo X"$_am_arg" |
20580     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20581             s//\1/
20582             q
20583           }
20584           /^X\(\/\/\)[^/].*/{
20585             s//\1/
20586             q
20587           }
20588           /^X\(\/\/\)$/{
20589             s//\1/
20590             q
20591           }
20592           /^X\(\/\).*/{
20593             s//\1/
20594             q
20595           }
20596           s/.*/./; q'`/stamp-h$_am_stamp_count
20597  ;;
20598
20599   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20600 $as_echo "$as_me: executing $ac_file commands" >&6;}
20601  ;;
20602   esac
20603
20604
20605   case $ac_file$ac_mode in
20606     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20607   # Autoconf 2.62 quotes --file arguments for eval, but not when files
20608   # are listed without --file.  Let's play safe and only enable the eval
20609   # if we detect the quoting.
20610   case $CONFIG_FILES in
20611   *\'*) eval set x "$CONFIG_FILES" ;;
20612   *)   set x $CONFIG_FILES ;;
20613   esac
20614   shift
20615   for mf
20616   do
20617     # Strip MF so we end up with the name of the file.
20618     mf=`echo "$mf" | sed -e 's/:.*$//'`
20619     # Check whether this is an Automake generated Makefile or not.
20620     # We used to match only the files named `Makefile.in', but
20621     # some people rename them; so instead we look at the file content.
20622     # Grep'ing the first line is not enough: some people post-process
20623     # each Makefile.in and add a new line on top of each file to say so.
20624     # Grep'ing the whole file is not good either: AIX grep has a line
20625     # limit of 2048, but all sed's we know have understand at least 4000.
20626     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20627       dirpart=`$as_dirname -- "$mf" ||
20628 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20629          X"$mf" : 'X\(//\)[^/]' \| \
20630          X"$mf" : 'X\(//\)$' \| \
20631          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20632 $as_echo X"$mf" |
20633     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20634             s//\1/
20635             q
20636           }
20637           /^X\(\/\/\)[^/].*/{
20638             s//\1/
20639             q
20640           }
20641           /^X\(\/\/\)$/{
20642             s//\1/
20643             q
20644           }
20645           /^X\(\/\).*/{
20646             s//\1/
20647             q
20648           }
20649           s/.*/./; q'`
20650     else
20651       continue
20652     fi
20653     # Extract the definition of DEPDIR, am__include, and am__quote
20654     # from the Makefile without running `make'.
20655     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20656     test -z "$DEPDIR" && continue
20657     am__include=`sed -n 's/^am__include = //p' < "$mf"`
20658     test -z "am__include" && continue
20659     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20660     # When using ansi2knr, U may be empty or an underscore; expand it
20661     U=`sed -n 's/^U = //p' < "$mf"`
20662     # Find all dependency output files, they are included files with
20663     # $(DEPDIR) in their names.  We invoke sed twice because it is the
20664     # simplest approach to changing $(DEPDIR) to its actual value in the
20665     # expansion.
20666     for file in `sed -n "
20667       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20668          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20669       # Make sure the directory exists.
20670       test -f "$dirpart/$file" && continue
20671       fdir=`$as_dirname -- "$file" ||
20672 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20673          X"$file" : 'X\(//\)[^/]' \| \
20674          X"$file" : 'X\(//\)$' \| \
20675          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20676 $as_echo X"$file" |
20677     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20678             s//\1/
20679             q
20680           }
20681           /^X\(\/\/\)[^/].*/{
20682             s//\1/
20683             q
20684           }
20685           /^X\(\/\/\)$/{
20686             s//\1/
20687             q
20688           }
20689           /^X\(\/\).*/{
20690             s//\1/
20691             q
20692           }
20693           s/.*/./; q'`
20694       as_dir=$dirpart/$fdir; as_fn_mkdir_p
20695       # echo "creating $dirpart/$file"
20696       echo '# dummy' > "$dirpart/$file"
20697     done
20698   done
20699 }
20700  ;;
20701     "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
20702         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
20703       esac ;;
20704     "libtool":C)
20705
20706     # See if we are running on zsh, and set the options which allow our
20707     # commands through without removal of \ escapes.
20708     if test -n "${ZSH_VERSION+set}" ; then
20709       setopt NO_GLOB_SUBST
20710     fi
20711
20712     cfgfile="${ofile}T"
20713     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20714     $RM "$cfgfile"
20715
20716     cat <<_LT_EOF >> "$cfgfile"
20717 #! $SHELL
20718
20719 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20720 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20721 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20722 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20723 #
20724 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20725 #                 2006, 2007, 2008 Free Software Foundation, Inc.
20726 #   Written by Gordon Matzigkeit, 1996
20727 #
20728 #   This file is part of GNU Libtool.
20729 #
20730 # GNU Libtool is free software; you can redistribute it and/or
20731 # modify it under the terms of the GNU General Public License as
20732 # published by the Free Software Foundation; either version 2 of
20733 # the License, or (at your option) any later version.
20734 #
20735 # As a special exception to the GNU General Public License,
20736 # if you distribute this file as part of a program or library that
20737 # is built using GNU Libtool, you may include this file under the
20738 # same distribution terms that you use for the rest of that program.
20739 #
20740 # GNU Libtool is distributed in the hope that it will be useful,
20741 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20742 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20743 # GNU General Public License for more details.
20744 #
20745 # You should have received a copy of the GNU General Public License
20746 # along with GNU Libtool; see the file COPYING.  If not, a copy
20747 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20748 # obtained by writing to the Free Software Foundation, Inc.,
20749 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20750
20751
20752 # The names of the tagged configurations supported by this script.
20753 available_tags="CXX "
20754
20755 # ### BEGIN LIBTOOL CONFIG
20756
20757 # Which release of libtool.m4 was used?
20758 macro_version=$macro_version
20759 macro_revision=$macro_revision
20760
20761 # Whether or not to build shared libraries.
20762 build_libtool_libs=$enable_shared
20763
20764 # Whether or not to build static libraries.
20765 build_old_libs=$enable_static
20766
20767 # What type of objects to build.
20768 pic_mode=$pic_mode
20769
20770 # Whether or not to optimize for fast installation.
20771 fast_install=$enable_fast_install
20772
20773 # The host system.
20774 host_alias=$host_alias
20775 host=$host
20776 host_os=$host_os
20777
20778 # The build system.
20779 build_alias=$build_alias
20780 build=$build
20781 build_os=$build_os
20782
20783 # A sed program that does not truncate output.
20784 SED=$lt_SED
20785
20786 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20787 Xsed="\$SED -e 1s/^X//"
20788
20789 # A grep program that handles long lines.
20790 GREP=$lt_GREP
20791
20792 # An ERE matcher.
20793 EGREP=$lt_EGREP
20794
20795 # A literal string matcher.
20796 FGREP=$lt_FGREP
20797
20798 # A BSD- or MS-compatible name lister.
20799 NM=$lt_NM
20800
20801 # Whether we need soft or hard links.
20802 LN_S=$lt_LN_S
20803
20804 # What is the maximum length of a command?
20805 max_cmd_len=$max_cmd_len
20806
20807 # Object file suffix (normally "o").
20808 objext=$ac_objext
20809
20810 # Executable file suffix (normally "").
20811 exeext=$exeext
20812
20813 # whether the shell understands "unset".
20814 lt_unset=$lt_unset
20815
20816 # turn spaces into newlines.
20817 SP2NL=$lt_lt_SP2NL
20818
20819 # turn newlines into spaces.
20820 NL2SP=$lt_lt_NL2SP
20821
20822 # How to create reloadable object files.
20823 reload_flag=$lt_reload_flag
20824 reload_cmds=$lt_reload_cmds
20825
20826 # An object symbol dumper.
20827 OBJDUMP=$lt_OBJDUMP
20828
20829 # Method to check whether dependent libraries are shared objects.
20830 deplibs_check_method=$lt_deplibs_check_method
20831
20832 # Command to use when deplibs_check_method == "file_magic".
20833 file_magic_cmd=$lt_file_magic_cmd
20834
20835 # The archiver.
20836 AR=$lt_AR
20837 AR_FLAGS=$lt_AR_FLAGS
20838
20839 # A symbol stripping program.
20840 STRIP=$lt_STRIP
20841
20842 # Commands used to install an old-style archive.
20843 RANLIB=$lt_RANLIB
20844 old_postinstall_cmds=$lt_old_postinstall_cmds
20845 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20846
20847 # A C compiler.
20848 LTCC=$lt_CC
20849
20850 # LTCC compiler flags.
20851 LTCFLAGS=$lt_CFLAGS
20852
20853 # Take the output of nm and produce a listing of raw symbols and C names.
20854 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20855
20856 # Transform the output of nm in a proper C declaration.
20857 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20858
20859 # Transform the output of nm in a C name address pair.
20860 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20861
20862 # Transform the output of nm in a C name address pair when lib prefix is needed.
20863 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20864
20865 # The name of the directory that contains temporary libtool files.
20866 objdir=$objdir
20867
20868 # Shell to use when invoking shell scripts.
20869 SHELL=$lt_SHELL
20870
20871 # An echo program that does not interpret backslashes.
20872 ECHO=$lt_ECHO
20873
20874 # Used to examine libraries when file_magic_cmd begins with "file".
20875 MAGIC_CMD=$MAGIC_CMD
20876
20877 # Must we lock files when doing compilation?
20878 need_locks=$lt_need_locks
20879
20880 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20881 DSYMUTIL=$lt_DSYMUTIL
20882
20883 # Tool to change global to local symbols on Mac OS X.
20884 NMEDIT=$lt_NMEDIT
20885
20886 # Tool to manipulate fat objects and archives on Mac OS X.
20887 LIPO=$lt_LIPO
20888
20889 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20890 OTOOL=$lt_OTOOL
20891
20892 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20893 OTOOL64=$lt_OTOOL64
20894
20895 # Old archive suffix (normally "a").
20896 libext=$libext
20897
20898 # Shared library suffix (normally ".so").
20899 shrext_cmds=$lt_shrext_cmds
20900
20901 # The commands to extract the exported symbol list from a shared archive.
20902 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20903
20904 # Variables whose values should be saved in libtool wrapper scripts and
20905 # restored at link time.
20906 variables_saved_for_relink=$lt_variables_saved_for_relink
20907
20908 # Do we need the "lib" prefix for modules?
20909 need_lib_prefix=$need_lib_prefix
20910
20911 # Do we need a version for libraries?
20912 need_version=$need_version
20913
20914 # Library versioning type.
20915 version_type=$version_type
20916
20917 # Shared library runtime path variable.
20918 runpath_var=$runpath_var
20919
20920 # Shared library path variable.
20921 shlibpath_var=$shlibpath_var
20922
20923 # Is shlibpath searched before the hard-coded library search path?
20924 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20925
20926 # Format of library name prefix.
20927 libname_spec=$lt_libname_spec
20928
20929 # List of archive names.  First name is the real one, the rest are links.
20930 # The last name is the one that the linker finds with -lNAME
20931 library_names_spec=$lt_library_names_spec
20932
20933 # The coded name of the library, if different from the real name.
20934 soname_spec=$lt_soname_spec
20935
20936 # Command to use after installation of a shared archive.
20937 postinstall_cmds=$lt_postinstall_cmds
20938
20939 # Command to use after uninstallation of a shared archive.
20940 postuninstall_cmds=$lt_postuninstall_cmds
20941
20942 # Commands used to finish a libtool library installation in a directory.
20943 finish_cmds=$lt_finish_cmds
20944
20945 # As "finish_cmds", except a single script fragment to be evaled but
20946 # not shown.
20947 finish_eval=$lt_finish_eval
20948
20949 # Whether we should hardcode library paths into libraries.
20950 hardcode_into_libs=$hardcode_into_libs
20951
20952 # Compile-time system search path for libraries.
20953 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20954
20955 # Run-time system search path for libraries.
20956 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20957
20958 # Whether dlopen is supported.
20959 dlopen_support=$enable_dlopen
20960
20961 # Whether dlopen of programs is supported.
20962 dlopen_self=$enable_dlopen_self
20963
20964 # Whether dlopen of statically linked programs is supported.
20965 dlopen_self_static=$enable_dlopen_self_static
20966
20967 # Commands to strip libraries.
20968 old_striplib=$lt_old_striplib
20969 striplib=$lt_striplib
20970
20971
20972 # The linker used to build libraries.
20973 LD=$lt_LD
20974
20975 # Commands used to build an old-style archive.
20976 old_archive_cmds=$lt_old_archive_cmds
20977
20978 # A language specific compiler.
20979 CC=$lt_compiler
20980
20981 # Is the compiler the GNU compiler?
20982 with_gcc=$GCC
20983
20984 # Compiler flag to turn off builtin functions.
20985 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20986
20987 # How to pass a linker flag through the compiler.
20988 wl=$lt_lt_prog_compiler_wl
20989
20990 # Additional compiler flags for building library objects.
20991 pic_flag=$lt_lt_prog_compiler_pic
20992
20993 # Compiler flag to prevent dynamic linking.
20994 link_static_flag=$lt_lt_prog_compiler_static
20995
20996 # Does compiler simultaneously support -c and -o options?
20997 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20998
20999 # Whether or not to add -lc for building shared libraries.
21000 build_libtool_need_lc=$archive_cmds_need_lc
21001
21002 # Whether or not to disallow shared libs when runtime libs are static.
21003 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21004
21005 # Compiler flag to allow reflexive dlopens.
21006 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21007
21008 # Compiler flag to generate shared objects directly from archives.
21009 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21010
21011 # Whether the compiler copes with passing no objects directly.
21012 compiler_needs_object=$lt_compiler_needs_object
21013
21014 # Create an old-style archive from a shared archive.
21015 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21016
21017 # Create a temporary old-style archive to link instead of a shared archive.
21018 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21019
21020 # Commands used to build a shared archive.
21021 archive_cmds=$lt_archive_cmds
21022 archive_expsym_cmds=$lt_archive_expsym_cmds
21023
21024 # Commands used to build a loadable module if different from building
21025 # a shared archive.
21026 module_cmds=$lt_module_cmds
21027 module_expsym_cmds=$lt_module_expsym_cmds
21028
21029 # Whether we are building with GNU ld or not.
21030 with_gnu_ld=$lt_with_gnu_ld
21031
21032 # Flag that allows shared libraries with undefined symbols to be built.
21033 allow_undefined_flag=$lt_allow_undefined_flag
21034
21035 # Flag that enforces no undefined symbols.
21036 no_undefined_flag=$lt_no_undefined_flag
21037
21038 # Flag to hardcode \$libdir into a binary during linking.
21039 # This must work even if \$libdir does not exist
21040 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21041
21042 # If ld is used when linking, flag to hardcode \$libdir into a binary
21043 # during linking.  This must work even if \$libdir does not exist.
21044 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21045
21046 # Whether we need a single "-rpath" flag with a separated argument.
21047 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21048
21049 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21050 # DIR into the resulting binary.
21051 hardcode_direct=$hardcode_direct
21052
21053 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21054 # DIR into the resulting binary and the resulting library dependency is
21055 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21056 # library is relocated.
21057 hardcode_direct_absolute=$hardcode_direct_absolute
21058
21059 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21060 # into the resulting binary.
21061 hardcode_minus_L=$hardcode_minus_L
21062
21063 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21064 # into the resulting binary.
21065 hardcode_shlibpath_var=$hardcode_shlibpath_var
21066
21067 # Set to "yes" if building a shared library automatically hardcodes DIR
21068 # into the library and all subsequent libraries and executables linked
21069 # against it.
21070 hardcode_automatic=$hardcode_automatic
21071
21072 # Set to yes if linker adds runtime paths of dependent libraries
21073 # to runtime path list.
21074 inherit_rpath=$inherit_rpath
21075
21076 # Whether libtool must link a program against all its dependency libraries.
21077 link_all_deplibs=$link_all_deplibs
21078
21079 # Fix the shell variable \$srcfile for the compiler.
21080 fix_srcfile_path=$lt_fix_srcfile_path
21081
21082 # Set to "yes" if exported symbols are required.
21083 always_export_symbols=$always_export_symbols
21084
21085 # The commands to list exported symbols.
21086 export_symbols_cmds=$lt_export_symbols_cmds
21087
21088 # Symbols that should not be listed in the preloaded symbols.
21089 exclude_expsyms=$lt_exclude_expsyms
21090
21091 # Symbols that must always be exported.
21092 include_expsyms=$lt_include_expsyms
21093
21094 # Commands necessary for linking programs (against libraries) with templates.
21095 prelink_cmds=$lt_prelink_cmds
21096
21097 # Specify filename containing input files.
21098 file_list_spec=$lt_file_list_spec
21099
21100 # How to hardcode a shared library path into an executable.
21101 hardcode_action=$hardcode_action
21102
21103 # The directories searched by this compiler when creating a shared library.
21104 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21105
21106 # Dependencies to place before and after the objects being linked to
21107 # create a shared library.
21108 predep_objects=$lt_predep_objects
21109 postdep_objects=$lt_postdep_objects
21110 predeps=$lt_predeps
21111 postdeps=$lt_postdeps
21112
21113 # The library search path used internally by the compiler when linking
21114 # a shared library.
21115 compiler_lib_search_path=$lt_compiler_lib_search_path
21116
21117 # ### END LIBTOOL CONFIG
21118
21119 _LT_EOF
21120
21121   case $host_os in
21122   aix3*)
21123     cat <<\_LT_EOF >> "$cfgfile"
21124 # AIX sometimes has problems with the GCC collect2 program.  For some
21125 # reason, if we set the COLLECT_NAMES environment variable, the problems
21126 # vanish in a puff of smoke.
21127 if test "X${COLLECT_NAMES+set}" != Xset; then
21128   COLLECT_NAMES=
21129   export COLLECT_NAMES
21130 fi
21131 _LT_EOF
21132     ;;
21133   esac
21134
21135
21136 ltmain="$ac_aux_dir/ltmain.sh"
21137
21138
21139   # We use sed instead of cat because bash on DJGPP gets confused if
21140   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21141   # text mode, it properly converts lines to CR/LF.  This bash problem
21142   # is reportedly fixed, but why not run on old versions too?
21143   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21144     || (rm -f "$cfgfile"; exit 1)
21145
21146   case $xsi_shell in
21147   yes)
21148     cat << \_LT_EOF >> "$cfgfile"
21149
21150 # func_dirname file append nondir_replacement
21151 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
21152 # otherwise set result to NONDIR_REPLACEMENT.
21153 func_dirname ()
21154 {
21155   case ${1} in
21156     */*) func_dirname_result="${1%/*}${2}" ;;
21157     *  ) func_dirname_result="${3}" ;;
21158   esac
21159 }
21160
21161 # func_basename file
21162 func_basename ()
21163 {
21164   func_basename_result="${1##*/}"
21165 }
21166
21167 # func_dirname_and_basename file append nondir_replacement
21168 # perform func_basename and func_dirname in a single function
21169 # call:
21170 #   dirname:  Compute the dirname of FILE.  If nonempty,
21171 #             add APPEND to the result, otherwise set result
21172 #             to NONDIR_REPLACEMENT.
21173 #             value returned in "$func_dirname_result"
21174 #   basename: Compute filename of FILE.
21175 #             value retuned in "$func_basename_result"
21176 # Implementation must be kept synchronized with func_dirname
21177 # and func_basename. For efficiency, we do not delegate to
21178 # those functions but instead duplicate the functionality here.
21179 func_dirname_and_basename ()
21180 {
21181   case ${1} in
21182     */*) func_dirname_result="${1%/*}${2}" ;;
21183     *  ) func_dirname_result="${3}" ;;
21184   esac
21185   func_basename_result="${1##*/}"
21186 }
21187
21188 # func_stripname prefix suffix name
21189 # strip PREFIX and SUFFIX off of NAME.
21190 # PREFIX and SUFFIX must not contain globbing or regex special
21191 # characters, hashes, percent signs, but SUFFIX may contain a leading
21192 # dot (in which case that matches only a dot).
21193 func_stripname ()
21194 {
21195   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21196   # positional parameters, so assign one to ordinary parameter first.
21197   func_stripname_result=${3}
21198   func_stripname_result=${func_stripname_result#"${1}"}
21199   func_stripname_result=${func_stripname_result%"${2}"}
21200 }
21201
21202 # func_opt_split
21203 func_opt_split ()
21204 {
21205   func_opt_split_opt=${1%%=*}
21206   func_opt_split_arg=${1#*=}
21207 }
21208
21209 # func_lo2o object
21210 func_lo2o ()
21211 {
21212   case ${1} in
21213     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
21214     *)    func_lo2o_result=${1} ;;
21215   esac
21216 }
21217
21218 # func_xform libobj-or-source
21219 func_xform ()
21220 {
21221   func_xform_result=${1%.*}.lo
21222 }
21223
21224 # func_arith arithmetic-term...
21225 func_arith ()
21226 {
21227   func_arith_result=$(( $* ))
21228 }
21229
21230 # func_len string
21231 # STRING may not start with a hyphen.
21232 func_len ()
21233 {
21234   func_len_result=${#1}
21235 }
21236
21237 _LT_EOF
21238     ;;
21239   *) # Bourne compatible functions.
21240     cat << \_LT_EOF >> "$cfgfile"
21241
21242 # func_dirname file append nondir_replacement
21243 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
21244 # otherwise set result to NONDIR_REPLACEMENT.
21245 func_dirname ()
21246 {
21247   # Extract subdirectory from the argument.
21248   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
21249   if test "X$func_dirname_result" = "X${1}"; then
21250     func_dirname_result="${3}"
21251   else
21252     func_dirname_result="$func_dirname_result${2}"
21253   fi
21254 }
21255
21256 # func_basename file
21257 func_basename ()
21258 {
21259   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
21260 }
21261
21262
21263 # func_stripname prefix suffix name
21264 # strip PREFIX and SUFFIX off of NAME.
21265 # PREFIX and SUFFIX must not contain globbing or regex special
21266 # characters, hashes, percent signs, but SUFFIX may contain a leading
21267 # dot (in which case that matches only a dot).
21268 # func_strip_suffix prefix name
21269 func_stripname ()
21270 {
21271   case ${2} in
21272     .*) func_stripname_result=`$ECHO "X${3}" \
21273            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
21274     *)  func_stripname_result=`$ECHO "X${3}" \
21275            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
21276   esac
21277 }
21278
21279 # sed scripts:
21280 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
21281 my_sed_long_arg='1s/^-[^=]*=//'
21282
21283 # func_opt_split
21284 func_opt_split ()
21285 {
21286   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
21287   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
21288 }
21289
21290 # func_lo2o object
21291 func_lo2o ()
21292 {
21293   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
21294 }
21295
21296 # func_xform libobj-or-source
21297 func_xform ()
21298 {
21299   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
21300 }
21301
21302 # func_arith arithmetic-term...
21303 func_arith ()
21304 {
21305   func_arith_result=`expr "$@"`
21306 }
21307
21308 # func_len string
21309 # STRING may not start with a hyphen.
21310 func_len ()
21311 {
21312   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
21313 }
21314
21315 _LT_EOF
21316 esac
21317
21318 case $lt_shell_append in
21319   yes)
21320     cat << \_LT_EOF >> "$cfgfile"
21321
21322 # func_append var value
21323 # Append VALUE to the end of shell variable VAR.
21324 func_append ()
21325 {
21326   eval "$1+=\$2"
21327 }
21328 _LT_EOF
21329     ;;
21330   *)
21331     cat << \_LT_EOF >> "$cfgfile"
21332
21333 # func_append var value
21334 # Append VALUE to the end of shell variable VAR.
21335 func_append ()
21336 {
21337   eval "$1=\$$1\$2"
21338 }
21339
21340 _LT_EOF
21341     ;;
21342   esac
21343
21344
21345   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
21346     || (rm -f "$cfgfile"; exit 1)
21347
21348   mv -f "$cfgfile" "$ofile" ||
21349     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21350   chmod +x "$ofile"
21351
21352
21353     cat <<_LT_EOF >> "$ofile"
21354
21355 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21356
21357 # The linker used to build libraries.
21358 LD=$lt_LD_CXX
21359
21360 # Commands used to build an old-style archive.
21361 old_archive_cmds=$lt_old_archive_cmds_CXX
21362
21363 # A language specific compiler.
21364 CC=$lt_compiler_CXX
21365
21366 # Is the compiler the GNU compiler?
21367 with_gcc=$GCC_CXX
21368
21369 # Compiler flag to turn off builtin functions.
21370 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21371
21372 # How to pass a linker flag through the compiler.
21373 wl=$lt_lt_prog_compiler_wl_CXX
21374
21375 # Additional compiler flags for building library objects.
21376 pic_flag=$lt_lt_prog_compiler_pic_CXX
21377
21378 # Compiler flag to prevent dynamic linking.
21379 link_static_flag=$lt_lt_prog_compiler_static_CXX
21380
21381 # Does compiler simultaneously support -c and -o options?
21382 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21383
21384 # Whether or not to add -lc for building shared libraries.
21385 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21386
21387 # Whether or not to disallow shared libs when runtime libs are static.
21388 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21389
21390 # Compiler flag to allow reflexive dlopens.
21391 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21392
21393 # Compiler flag to generate shared objects directly from archives.
21394 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21395
21396 # Whether the compiler copes with passing no objects directly.
21397 compiler_needs_object=$lt_compiler_needs_object_CXX
21398
21399 # Create an old-style archive from a shared archive.
21400 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21401
21402 # Create a temporary old-style archive to link instead of a shared archive.
21403 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21404
21405 # Commands used to build a shared archive.
21406 archive_cmds=$lt_archive_cmds_CXX
21407 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21408
21409 # Commands used to build a loadable module if different from building
21410 # a shared archive.
21411 module_cmds=$lt_module_cmds_CXX
21412 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21413
21414 # Whether we are building with GNU ld or not.
21415 with_gnu_ld=$lt_with_gnu_ld_CXX
21416
21417 # Flag that allows shared libraries with undefined symbols to be built.
21418 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21419
21420 # Flag that enforces no undefined symbols.
21421 no_undefined_flag=$lt_no_undefined_flag_CXX
21422
21423 # Flag to hardcode \$libdir into a binary during linking.
21424 # This must work even if \$libdir does not exist
21425 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21426
21427 # If ld is used when linking, flag to hardcode \$libdir into a binary
21428 # during linking.  This must work even if \$libdir does not exist.
21429 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21430
21431 # Whether we need a single "-rpath" flag with a separated argument.
21432 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21433
21434 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21435 # DIR into the resulting binary.
21436 hardcode_direct=$hardcode_direct_CXX
21437
21438 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21439 # DIR into the resulting binary and the resulting library dependency is
21440 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21441 # library is relocated.
21442 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21443
21444 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21445 # into the resulting binary.
21446 hardcode_minus_L=$hardcode_minus_L_CXX
21447
21448 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21449 # into the resulting binary.
21450 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21451
21452 # Set to "yes" if building a shared library automatically hardcodes DIR
21453 # into the library and all subsequent libraries and executables linked
21454 # against it.
21455 hardcode_automatic=$hardcode_automatic_CXX
21456
21457 # Set to yes if linker adds runtime paths of dependent libraries
21458 # to runtime path list.
21459 inherit_rpath=$inherit_rpath_CXX
21460
21461 # Whether libtool must link a program against all its dependency libraries.
21462 link_all_deplibs=$link_all_deplibs_CXX
21463
21464 # Fix the shell variable \$srcfile for the compiler.
21465 fix_srcfile_path=$lt_fix_srcfile_path_CXX
21466
21467 # Set to "yes" if exported symbols are required.
21468 always_export_symbols=$always_export_symbols_CXX
21469
21470 # The commands to list exported symbols.
21471 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21472
21473 # Symbols that should not be listed in the preloaded symbols.
21474 exclude_expsyms=$lt_exclude_expsyms_CXX
21475
21476 # Symbols that must always be exported.
21477 include_expsyms=$lt_include_expsyms_CXX
21478
21479 # Commands necessary for linking programs (against libraries) with templates.
21480 prelink_cmds=$lt_prelink_cmds_CXX
21481
21482 # Specify filename containing input files.
21483 file_list_spec=$lt_file_list_spec_CXX
21484
21485 # How to hardcode a shared library path into an executable.
21486 hardcode_action=$hardcode_action_CXX
21487
21488 # The directories searched by this compiler when creating a shared library.
21489 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21490
21491 # Dependencies to place before and after the objects being linked to
21492 # create a shared library.
21493 predep_objects=$lt_predep_objects_CXX
21494 postdep_objects=$lt_postdep_objects_CXX
21495 predeps=$lt_predeps_CXX
21496 postdeps=$lt_postdeps_CXX
21497
21498 # The library search path used internally by the compiler when linking
21499 # a shared library.
21500 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21501
21502 # ### END LIBTOOL TAG CONFIG: CXX
21503 _LT_EOF
21504
21505  ;;
21506     "po-directories":C)
21507     for ac_file in $CONFIG_FILES; do
21508       # Support "outfile[:infile[:infile...]]"
21509       case "$ac_file" in
21510         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21511       esac
21512       # PO directories have a Makefile.in generated from Makefile.in.in.
21513       case "$ac_file" in */Makefile.in)
21514         # Adjust a relative srcdir.
21515         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
21516         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
21517         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
21518         # In autoconf-2.13 it is called $ac_given_srcdir.
21519         # In autoconf-2.50 it is called $srcdir.
21520         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
21521         case "$ac_given_srcdir" in
21522           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
21523           /*) top_srcdir="$ac_given_srcdir" ;;
21524           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
21525         esac
21526         # Treat a directory as a PO directory if and only if it has a
21527         # POTFILES.in file. This allows packages to have multiple PO
21528         # directories under different names or in different locations.
21529         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
21530           rm -f "$ac_dir/POTFILES"
21531           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
21532           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
21533           POMAKEFILEDEPS="POTFILES.in"
21534           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
21535           # on $ac_dir but don't depend on user-specified configuration
21536           # parameters.
21537           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
21538             # The LINGUAS file contains the set of available languages.
21539             if test -n "$OBSOLETE_ALL_LINGUAS"; then
21540               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
21541             fi
21542             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
21543             # Hide the ALL_LINGUAS assigment from automake < 1.5.
21544             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
21545             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
21546           else
21547             # The set of available languages was given in configure.in.
21548             # Hide the ALL_LINGUAS assigment from automake < 1.5.
21549             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
21550           fi
21551           # Compute POFILES
21552           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
21553           # Compute UPDATEPOFILES
21554           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
21555           # Compute DUMMYPOFILES
21556           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
21557           # Compute GMOFILES
21558           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
21559           case "$ac_given_srcdir" in
21560             .) srcdirpre= ;;
21561             *) srcdirpre='$(srcdir)/' ;;
21562           esac
21563           POFILES=
21564           UPDATEPOFILES=
21565           DUMMYPOFILES=
21566           GMOFILES=
21567           for lang in $ALL_LINGUAS; do
21568             POFILES="$POFILES $srcdirpre$lang.po"
21569             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
21570             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
21571             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
21572           done
21573           # CATALOGS depends on both $ac_dir and the user's LINGUAS
21574           # environment variable.
21575           INST_LINGUAS=
21576           if test -n "$ALL_LINGUAS"; then
21577             for presentlang in $ALL_LINGUAS; do
21578               useit=no
21579               if test "%UNSET%" != "$LINGUAS"; then
21580                 desiredlanguages="$LINGUAS"
21581               else
21582                 desiredlanguages="$ALL_LINGUAS"
21583               fi
21584               for desiredlang in $desiredlanguages; do
21585                 # Use the presentlang catalog if desiredlang is
21586                 #   a. equal to presentlang, or
21587                 #   b. a variant of presentlang (because in this case,
21588                 #      presentlang can be used as a fallback for messages
21589                 #      which are not translated in the desiredlang catalog).
21590                 case "$desiredlang" in
21591                   "$presentlang"*) useit=yes;;
21592                 esac
21593               done
21594               if test $useit = yes; then
21595                 INST_LINGUAS="$INST_LINGUAS $presentlang"
21596               fi
21597             done
21598           fi
21599           CATALOGS=
21600           if test -n "$INST_LINGUAS"; then
21601             for lang in $INST_LINGUAS; do
21602               CATALOGS="$CATALOGS $lang.gmo"
21603             done
21604           fi
21605           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
21606           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"
21607           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
21608             if test -f "$f"; then
21609               case "$f" in
21610                 *.orig | *.bak | *~) ;;
21611                 *) cat "$f" >> "$ac_dir/Makefile" ;;
21612               esac
21613             fi
21614           done
21615         fi
21616         ;;
21617       esac
21618     done ;;
21619     "po/stamp-it":C)
21620     if  ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
21621        as_fn_error "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5
21622     fi
21623     rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
21624     >"po/stamp-it.tmp"
21625     sed '/^#/d
21626          s/^[[].*] *//
21627          /^[    ]*$/d
21628         '"s|^|  $ac_top_srcdir/|" \
21629       "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
21630
21631     sed '/^POTFILES =/,/[^\\]$/ {
21632                 /^POTFILES =/!d
21633                 r po/POTFILES
21634           }
21635          ' "po/Makefile.in" >"po/Makefile"
21636     rm -f "po/Makefile.tmp"
21637     mv "po/stamp-it.tmp" "po/stamp-it"
21638    ;;
21639
21640   esac
21641 done # for ac_tag
21642
21643
21644 as_fn_exit 0
21645 _ACEOF
21646 ac_clean_files=$ac_clean_files_save
21647
21648 test $ac_write_fail = 0 ||
21649   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
21650
21651
21652 # configure is writing to config.log, and then calls config.status.
21653 # config.status does its own redirection, appending to config.log.
21654 # Unfortunately, on DOS this fails, as config.log is still kept open
21655 # by configure, so config.status won't be able to write to it; its
21656 # output is simply discarded.  So we exec the FD to /dev/null,
21657 # effectively closing config.log, so it can be properly (re)opened and
21658 # appended to by config.status.  When coming back to configure, we
21659 # need to make the FD available again.
21660 if test "$no_create" != yes; then
21661   ac_cs_success=:
21662   ac_config_status_args=
21663   test "$silent" = yes &&
21664     ac_config_status_args="$ac_config_status_args --quiet"
21665   exec 5>/dev/null
21666   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21667   exec 5>>config.log
21668   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21669   # would make configure fail if this is the last instruction.
21670   $ac_cs_success || as_fn_exit $?
21671 fi
21672 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21673   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21674 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21675 fi
21676
21677 echo ""
21678 echo "LordsAWar is now configured. Type 'make' to compile it."
21679 echo ""
21680 echo "Configuration:"
21681 echo " Installation location : $prefix"
21682 echo " Editor compilation    : $use_editor"
21683 echo " Play-by-mail          : $use_pbm"
21684 echo " Sound support         : $use_sound"
21685 echo ""
21686 echo "Extra Options:"
21687 echo " Compiler Optimizations: $use_opts"